/* Rice paper for the Authelia portal, the same ground as the Admin Center. */
:root,
[data-theme="light"],
[data-theme="dark"],
[data-theme="grey"],
[data-theme="oled"] {
  color-scheme: light !important;
  --background: #f3eee6 !important;
  --foreground: oklch(24.8% 0 0) !important;
  --card: #fff !important;
  --card-foreground: oklch(24.8% 0 0) !important;
  --popover: #fff !important;
  --popover-foreground: oklch(24.8% 0 0) !important;
  --muted: #efeae2 !important;
  --muted-foreground: oklch(44.6% 0 0) !important;
  --accent: #efeae2 !important;
  --accent-foreground: oklch(24.8% 0 0) !important;
  --border: oklch(90.8% 0 0) !important;
  --input: oklch(90.8% 0 0) !important;
  --divider: oklch(0% 0 0 / 0.1) !important;
  --custom-icon: oklch(0% 0 0) !important;
  --custom-loading-bar: oklch(0% 0 0) !important;
  --primary: oklch(56.45% 0.1633 253.271) !important;
  --primary-foreground: oklch(100% 0 0) !important;
  --ring: oklch(56.45% 0.1633 253.271) !important;
}

html,
body,
.bg-background {
  background-color: #f3eee6 !important;
  background-image: url("/hoho/paper-grain.svg") !important;
  background-size: 280px 280px !important;
}

body::before {
  content: "";
  position: fixed;
  z-index: 2;
  top: 8px;
  left: 0;
  width: 168px;
  height: 156px;
  background: url("/hoho/sun.svg") left top / 168px 156px no-repeat;
  pointer-events: none;
}

.hoho-scene {
  position: fixed;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hoho-shore {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(280px, calc(46vw * 280 / 340));
}

.hoho-shore > img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  border: 0 !important;
  object-fit: fill;
}

.hoho-stones {
  position: absolute;
  inset: 0;
}

.hoho-stones b {
  position: absolute;
  display: block;
  background: url("/hoho/stone.svg?v=1") center / 100% 100% no-repeat;
}

.hoho-mill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(340px, 46vw);
  aspect-ratio: 340 / 280;
}

.hoho-mill img {
  position: absolute;
  max-width: none !important;
  border: 0 !important;
}

.hoho-back,
.hoho-front {
  inset: 0;
  width: 100%;
  height: 100%;
}

.hoho-wheel {
  left: 38.8235%;
  top: 55%;
  width: 47.0588%;
  height: 57.1429%;
  transform: translate(-50%, -50%);
  animation: hoho-turn 16s linear infinite;
}

@keyframes hoho-turn {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.hoho-stones b:nth-child(1) { left: 1.600%; top: 95.800%; height: 3.143%; aspect-ratio: 1.8182; transform: translate(-50%, -50%) rotate(-14deg); }
.hoho-stones b:nth-child(2) { left: 8.200%; top: 87.200%; height: 2.214%; aspect-ratio: 1.6129; transform: translate(-50%, -50%) rotate(6deg); }
.hoho-stones b:nth-child(3) { left: 9.400%; top: 96.400%; height: 2.571%; aspect-ratio: 1.8056; transform: translate(-50%, -50%) rotate(-17deg); }
.hoho-stones b:nth-child(4) { left: 10.700%; top: 90.600%; height: 1.857%; aspect-ratio: 1.6154; transform: translate(-50%, -50%) rotate(11deg); }
.hoho-stones b:nth-child(5) { left: 12.400%; top: 84.800%; height: 2.857%; aspect-ratio: 1.8000; transform: translate(-50%, -50%) rotate(-3deg); }
.hoho-stones b:nth-child(6) { left: 23.600%; top: 93.200%; height: 2.286%; aspect-ratio: 1.6875; transform: translate(-50%, -50%) rotate(15deg); }
.hoho-stones b:nth-child(7) { left: 34.100%; top: 86.200%; height: 2.429%; aspect-ratio: 1.7647; transform: translate(-50%, -50%) rotate(-8deg); }
.hoho-stones b:nth-child(8) { left: 35.400%; top: 96.800%; height: 2.000%; aspect-ratio: 1.6429; transform: translate(-50%, -50%) rotate(4deg); }
.hoho-stones b:nth-child(9) { left: 36.900%; top: 90.000%; height: 3.214%; aspect-ratio: 1.8667; transform: translate(-50%, -50%) rotate(-12deg); }
.hoho-stones b:nth-child(10) { left: 48.800%; top: 94.600%; height: 2.143%; aspect-ratio: 1.7333; transform: translate(-50%, -50%) rotate(17deg); }
.hoho-stones b:nth-child(11) { left: 54.200%; top: 85.400%; height: 2.714%; aspect-ratio: 1.7895; transform: translate(-50%, -50%) rotate(-5deg); }
.hoho-stones b:nth-child(12) { left: 55.500%; top: 97.000%; height: 1.786%; aspect-ratio: 1.6000; transform: translate(-50%, -50%) rotate(9deg); }
.hoho-stones b:nth-child(13) { left: 57.100%; top: 89.400%; height: 3.000%; aspect-ratio: 1.8095; transform: translate(-50%, -50%) rotate(-16deg); }
.hoho-stones b:nth-child(14) { left: 70.200%; top: 92.800%; height: 2.286%; aspect-ratio: 1.7500; transform: translate(-50%, -50%) rotate(2deg); }
.hoho-stones b:nth-child(15) { left: 78.600%; top: 85.600%; height: 2.500%; aspect-ratio: 1.7714; transform: translate(-50%, -50%) rotate(-10deg); }
.hoho-stones b:nth-child(16) { left: 80.000%; top: 96.200%; height: 2.071%; aspect-ratio: 1.6552; transform: translate(-50%, -50%) rotate(13deg); }
.hoho-stones b:nth-child(17) { left: 81.500%; top: 90.400%; height: 2.786%; aspect-ratio: 1.7949; transform: translate(-50%, -50%) rotate(-7deg); }
.hoho-stones b:nth-child(18) { left: 82.800%; top: 87.000%; height: 2.214%; aspect-ratio: 1.7742; transform: translate(-50%, -50%) rotate(8deg); }
.hoho-stones b:nth-child(19) { left: 93.100%; top: 95.000%; height: 3.071%; aspect-ratio: 1.8605; transform: translate(-50%, -50%) rotate(-1deg); }
.hoho-stones b:nth-child(20) { left: 97.400%; top: 86.800%; height: 1.929%; aspect-ratio: 1.6296; transform: translate(-50%, -50%) rotate(16deg); }
