:root {
  --ink: #f7f4ed;
  --case: #070909;
  --case-edge: #696b6b;
  --case-line: rgba(255, 255, 255, 0.22);
  --panel: #0b0f10;
  --shadow: rgba(0, 0, 0, 0.34);
  --strap: #171412;
  --strap-line: rgba(255, 255, 255, 0.12);
  --accent: #38f0d0;
  --accent-hot: #ff6a33;
  --page-a: #101516;
  --page-b: #2c241d;
  --page-c: #081011;
  --grid: rgba(255, 255, 255, 0.08);
  --watch-width: min(94vw, 1120px);
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page-c);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

body[data-theme="nightstand"] {
  --case: #f2671d;
  --case-edge: #ff9340;
  --strap: #22160f;
  --accent: #ffe36b;
  --accent-hot: #ff6c24;
  --page-a: #4d2814;
  --page-b: #b65b1d;
  --page-c: #160f0b;
  --grid: rgba(255, 218, 118, 0.1);
  --watch-width: min(90vw, 920px);
}

body[data-theme="rooftop"] {
  --case: #0a0f17;
  --case-edge: #7bdcff;
  --accent: #7ee7ff;
  --accent-hot: #ffb24d;
  --page-a: #061027;
  --page-b: #0a4162;
  --page-c: #020712;
  --grid: rgba(126, 231, 255, 0.16);
  --watch-width: min(92vw, 980px);
}

body[data-theme="glasshouse"] {
  --case: #071310;
  --case-edge: #ff5fbb;
  --accent: #baff38;
  --accent-hot: #ff42bf;
  --page-a: #072c28;
  --page-b: #0f694f;
  --page-c: #04100f;
  --grid: rgba(186, 255, 56, 0.12);
  --watch-width: min(88vw, 930px);
}

body[data-theme="ice"] {
  --case: #071625;
  --case-edge: #8ef7ff;
  --accent: #93ffeb;
  --accent-hot: #c87cff;
  --page-a: #08215f;
  --page-b: #2bbcff;
  --page-c: #021029;
  --grid: rgba(147, 255, 235, 0.13);
  --watch-width: min(88vw, 930px);
}

body[data-theme="walnut"] {
  --case: #0d0b08;
  --case-edge: #c1a25f;
  --strap: #3b2011;
  --accent: #d8ef73;
  --accent-hot: #f06d24;
  --page-a: #4a2612;
  --page-b: #8b4d20;
  --page-c: #20140d;
  --grid: rgba(255, 204, 91, 0.1);
}

body[data-theme="lava"] {
  --case: #180909;
  --case-edge: #f6b14d;
  --strap: #58200f;
  --accent: #ffe057;
  --accent-hot: #ff4e1f;
  --page-a: #3d1010;
  --page-b: #ee6d20;
  --page-c: #190c18;
  --grid: rgba(255, 238, 110, 0.12);
}

body[data-theme="disco"] {
  --case: #101317;
  --case-edge: #d9d2c0;
  --strap: #111111;
  --accent: #71f4ff;
  --accent-hot: #ef3f88;
  --page-a: #0a2757;
  --page-b: #bb3e7d;
  --page-c: #071221;
  --grid: rgba(127, 244, 255, 0.12);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zotter-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(74px, 8vh, 118px) clamp(14px, 5vw, 64px);
  isolation: isolate;
}

body[data-theme="nightstand"] .zotter-page {
  place-items: end center;
  padding: clamp(82px, 8vh, 116px) clamp(14px, 4vw, 52px) clamp(44px, 8vh, 88px);
}

body[data-theme="glasshouse"] .zotter-page,
body[data-theme="ice"] .zotter-page {
  place-items: end center;
  padding: clamp(78px, 7vh, 110px) clamp(14px, 5vw, 64px) clamp(52px, 8vh, 90px);
}

body[data-theme="rooftop"] .zotter-page {
  place-items: center;
  padding: clamp(78px, 7vh, 110px) clamp(14px, 5vw, 64px) clamp(34px, 5vh, 64px);
}

.zotter-page::before,
.zotter-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.zotter-page::before {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 18%),
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--accent-hot) 58%, transparent), transparent 20%),
    radial-gradient(circle at 52% 78%, rgba(255, 232, 166, 0.16), transparent 28%),
    repeating-radial-gradient(ellipse at 50% 52%, transparent 0 34px, rgba(255, 255, 255, 0.055) 35px 39px),
    conic-gradient(from 128deg at 52% 48%, var(--page-a), var(--page-b), var(--page-c), var(--page-a));
}

.zotter-page::after {
  z-index: -1;
  background:
    repeating-linear-gradient(118deg, transparent 0 24px, rgba(255, 255, 255, 0.035) 25px 28px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid) 1px, transparent 1px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 26px, rgba(255, 255, 255, 0.04) 27px 28px);
  background-size:
    100% 100%,
    clamp(34px, 6vw, 78px) clamp(34px, 6vw, 78px),
    clamp(34px, 6vw, 78px) clamp(34px, 6vw, 78px),
    100% 100%;
  mix-blend-mode: screen;
  opacity: 0.72;
  transform: rotate(-1.5deg) scale(1.04);
}

body[data-theme="nightstand"] .zotter-page::before {
  background:
    linear-gradient(180deg, rgba(18, 12, 8, 0.14), rgba(12, 7, 4, 0.08) 46%, rgba(9, 5, 2, 0.22)),
    url("assets/backgrounds/retro-nightstand-lava-lamp.png");
  background-position: center;
  background-size: cover;
}

body[data-theme="nightstand"] .zotter-page::after {
  background:
    radial-gradient(ellipse at 48% 43%, transparent 0 42%, rgba(10, 5, 2, 0.38) 100%),
    linear-gradient(180deg, rgba(255, 193, 74, 0.07), rgba(0, 0, 0, 0.2));
  mix-blend-mode: normal;
  opacity: 1;
  transform: none;
}

body[data-theme="rooftop"] .zotter-page::before {
  background:
    linear-gradient(180deg, rgba(2, 5, 16, 0.08), rgba(1, 3, 10, 0.28)),
    url("assets/backgrounds/zotter-rooftop-observatory.png");
  background-position: center;
  background-size: cover;
}

body[data-theme="glasshouse"] .zotter-page::before {
  background:
    linear-gradient(180deg, rgba(0, 15, 13, 0.08), rgba(0, 8, 8, 0.2)),
    url("assets/backgrounds/zotter-glasshouse-lab.png");
  background-position: center;
  background-size: cover;
}

body[data-theme="ice"] .zotter-page::before {
  background:
    linear-gradient(180deg, rgba(2, 8, 25, 0.02), rgba(1, 7, 18, 0.12)),
    url("assets/backgrounds/zotter-ice-cave-stage.png");
  background-position: center;
  background-size: cover;
}

body[data-theme="rooftop"] .zotter-page::after,
body[data-theme="glasshouse"] .zotter-page::after,
body[data-theme="ice"] .zotter-page::after {
  background:
    radial-gradient(ellipse at 50% 62%, transparent 0 44%, rgba(0, 0, 0, 0.38) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
  mix-blend-mode: normal;
  opacity: 1;
  transform: none;
}

body[data-theme="walnut"] .zotter-page::before {
  background:
    radial-gradient(circle at 15% 20%, rgba(191, 219, 91, 0.34), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(238, 104, 31, 0.46), transparent 19%),
    repeating-linear-gradient(104deg, rgba(55, 24, 8, 0.65) 0 12px, rgba(124, 67, 24, 0.5) 13px 29px, rgba(48, 22, 9, 0.7) 30px 38px),
    conic-gradient(from 118deg at 52% 52%, #332016, #8f5524, #2a1810, #5e3419, #332016);
}

body[data-theme="lava"] .zotter-page::before {
  background:
    radial-gradient(ellipse at 18% 72%, rgba(255, 221, 76, 0.56), transparent 12%),
    radial-gradient(ellipse at 77% 30%, rgba(255, 87, 34, 0.58), transparent 16%),
    radial-gradient(ellipse at 45% 42%, rgba(255, 169, 52, 0.4), transparent 22%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 237, 102, 0.06) 0 3px, transparent 4px 38px),
    linear-gradient(135deg, #250813, #712315 34%, #f07921 58%, #1a0a1c);
}

body[data-theme="disco"] .zotter-page::before {
  background:
    radial-gradient(circle at 22% 26%, rgba(90, 237, 255, 0.48), transparent 16%),
    radial-gradient(circle at 80% 18%, rgba(255, 65, 145, 0.5), transparent 18%),
    radial-gradient(circle at 56% 76%, rgba(255, 224, 82, 0.32), transparent 19%),
    conic-gradient(from 0deg at 50% 50%, #0b1d55, #db3d7a, #f1d35a, #18b7c8, #0b1d55);
}

body[data-theme="disco"] .zotter-page::after {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.09) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.09) 75%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.07) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.07) 75%),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(0deg, var(--grid) 1px, transparent 1px);
  background-size:
    56px 56px,
    56px 56px,
    clamp(34px, 6vw, 78px) clamp(34px, 6vw, 78px),
    clamp(34px, 6vw, 78px) clamp(34px, 6vw, 78px);
}

.theme-switcher {
  position: fixed;
  z-index: 5;
  top: clamp(12px, 2.6vw, 26px);
  left: 50%;
  display: flex;
  max-width: calc(100vw - 24px);
  gap: 8px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(6, 8, 9, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.theme-button {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
}

.theme-button:hover,
.theme-button:focus-visible,
.theme-button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.theme-swatch {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
}

.copyright-notice {
  position: fixed;
  right: clamp(10px, 2vw, 24px);
  bottom: clamp(9px, 1.7vw, 18px);
  z-index: 6;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(3, 6, 8, 0.48);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  font-size: clamp(9px, 1.2vw, 11px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
}

.walnut-swatch {
  background: linear-gradient(135deg, #34190c, #e3b24c 48%, #9bb342);
}

.nightstand-swatch {
  background:
    radial-gradient(circle at 70% 38%, #ff8021 0 28%, transparent 29%),
    linear-gradient(135deg, #5b2d12, #d89535 52%, #2c1a10);
}

.rooftop-swatch {
  background:
    radial-gradient(circle at 70% 30%, #fff4a6 0 22%, transparent 23%),
    linear-gradient(135deg, #06102b, #15a9d1 55%, #d88432);
}

.glasshouse-swatch {
  background:
    radial-gradient(circle at 72% 34%, #ff45ba 0 22%, transparent 23%),
    linear-gradient(135deg, #092a23, #1e9f70 52%, #c9ff3a);
}

.ice-swatch {
  background:
    radial-gradient(circle at 70% 34%, #c27cff 0 24%, transparent 25%),
    linear-gradient(135deg, #0a2b80, #42d7ff 54%, #efffff);
}

.lava-swatch {
  background: radial-gradient(circle at 36% 34%, #ffe65a, #ff6f22 45%, #45100c 72%);
}

.disco-swatch {
  background:
    linear-gradient(90deg, #12c8ff 0 25%, #f33d8a 25% 50%, #ffe25a 50% 75%, #0f2465 75%);
}

.watch-scene {
  position: relative;
  width: var(--watch-width);
  display: grid;
  place-items: center;
  padding-block: min(9vw, 92px);
}

body[data-theme="nightstand"] .watch-scene {
  padding-block: 0;
  transform: translateY(clamp(-22px, -2.5vh, -10px));
}

body[data-theme="rooftop"] .watch-scene,
body[data-theme="glasshouse"] .watch-scene,
body[data-theme="ice"] .watch-scene {
  padding-block: 0;
}

body[data-theme="rooftop"] .watch-scene {
  transform: none;
}

.watch-shadow {
  position: absolute;
  width: min(82vw, 840px);
  height: min(12vw, 120px);
  bottom: min(2vw, 18px);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 68%);
  filter: blur(9px);
  opacity: 0.76;
}

.watch {
  position: relative;
  width: 100%;
  max-width: 1120px;
  aspect-ratio: 3.45;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 42px 54px rgba(0, 0, 0, 0.44));
}

body[data-theme="nightstand"] .watch {
  max-width: 920px;
  aspect-ratio: 3.26;
  filter: drop-shadow(0 26px 22px rgba(28, 11, 1, 0.46));
}

body[data-theme="glasshouse"] .watch,
body[data-theme="ice"] .watch {
  max-width: 930px;
  aspect-ratio: 5.8;
  filter:
    drop-shadow(0 22px 20px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 24%, transparent));
}

body[data-theme="rooftop"] .watch {
  max-width: 980px;
  aspect-ratio: 5.8;
  filter:
    drop-shadow(0 20px 18px rgba(0, 0, 0, 0.46))
    drop-shadow(0 0 26px color-mix(in srgb, var(--accent) 22%, transparent));
}

body[data-theme="nightstand"] .watch::before,
body[data-theme="nightstand"] .watch::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body[data-theme="nightstand"] .watch::before {
  left: 0;
  right: 0;
  bottom: -1%;
  z-index: 0;
  height: 17%;
  background:
    radial-gradient(ellipse at 18% 76%, #130c09 0 6%, transparent 7%),
    radial-gradient(ellipse at 82% 76%, #130c09 0 6%, transparent 7%),
    linear-gradient(115deg, transparent 0 11%, #130c09 12% 23%, transparent 24%),
    linear-gradient(65deg, transparent 0 77%, #130c09 78% 89%, transparent 90%);
}

body[data-theme="nightstand"] .watch::after {
  left: 8%;
  right: 8%;
  bottom: -2%;
  z-index: -1;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(24, 9, 1, 0.7), rgba(24, 9, 1, 0) 70%);
  filter: blur(8px);
}

.strap {
  position: absolute;
  left: 50%;
  width: min(58%, 620px);
  height: 32%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, transparent 48%, var(--strap-line) 49% 51%, transparent 52%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 24px),
    linear-gradient(180deg, color-mix(in srgb, var(--strap) 74%, white), var(--strap));
  box-shadow:
    inset 0 10px 18px rgba(255, 255, 255, 0.06),
    inset 0 -18px 24px rgba(0, 0, 0, 0.32);
  transform: translateX(-50%);
}

body[data-theme="walnut"] .strap {
  background:
    repeating-linear-gradient(96deg, rgba(255, 205, 113, 0.12) 0 4px, transparent 5px 19px),
    repeating-linear-gradient(90deg, #2b1409 0 18px, #5d2f13 19px 31px, #351809 32px 43px);
}

body[data-theme="lava"] .strap {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 231, 89, 0.36), transparent 16%),
    radial-gradient(circle at 70% 74%, rgba(255, 78, 31, 0.5), transparent 18%),
    linear-gradient(180deg, #71240f, #1a0808);
}

body[data-theme="disco"] .strap {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, #24272a, #090a0b);
  background-size:
    22px 100%,
    100% 100%;
}

.strap-top {
  top: 0;
  border-radius: 34px 34px 10px 10px;
  clip-path: polygon(14% 0, 86% 0, 76% 100%, 24% 100%);
}

.strap-bottom {
  bottom: 0;
  border-radius: 10px 10px 34px 34px;
  clip-path: polygon(24% 0, 76% 0, 86% 100%, 14% 100%);
}

body[data-theme="nightstand"] .strap {
  display: none;
}

body[data-theme="rooftop"] .strap,
body[data-theme="glasshouse"] .strap,
body[data-theme="ice"] .strap {
  display: none;
}

body[data-theme="nightstand"] .watch-shadow {
  display: none;
}

body[data-theme="rooftop"] .watch-shadow,
body[data-theme="glasshouse"] .watch-shadow,
body[data-theme="ice"] .watch-shadow {
  bottom: -10%;
  width: min(74vw, 760px);
  height: min(8vw, 76px);
  opacity: 0.82;
}

body[data-theme="nightstand"] .side-crown {
  display: none;
}

body[data-theme="rooftop"] .side-crown,
body[data-theme="glasshouse"] .side-crown,
body[data-theme="ice"] .side-crown,
body[data-theme="rooftop"] .screw,
body[data-theme="glasshouse"] .screw,
body[data-theme="ice"] .screw {
  display: none;
}

.watch-case {
  position: relative;
  z-index: 1;
  width: min(100%, 1040px);
  aspect-ratio: 4.45;
  padding: clamp(10px, 1.8vw, 22px);
  border: clamp(5px, 0.85vw, 10px) solid var(--case-edge);
  border-radius: clamp(24px, 4.6vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.1), transparent 28%),
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.14), transparent 18%),
    var(--case);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.26),
    inset 0 -24px 40px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 0, 0, 0.62),
    0 20px 70px rgba(0, 0, 0, 0.4);
}

body[data-theme="nightstand"] .watch-case {
  width: min(100%, 900px);
  aspect-ratio: 3.36;
  padding: clamp(12px, 2vw, 22px);
  border: clamp(4px, 0.65vw, 7px) solid #251107;
  border-radius: clamp(24px, 4.2vw, 46px);
  background:
    radial-gradient(ellipse at 18% 10%, rgba(255, 244, 179, 0.55), transparent 20%),
    linear-gradient(180deg, #ff852c 0 12%, #f4691f 13% 58%, #ca3e12 100%);
  box-shadow:
    inset 0 7px 0 rgba(255, 224, 130, 0.34),
    inset 0 -18px 28px rgba(93, 17, 0, 0.38),
    0 0 0 clamp(2px, 0.35vw, 4px) #ff9a3f,
    0 0 0 clamp(6px, 0.85vw, 10px) rgba(70, 22, 4, 0.72),
    0 28px 30px rgba(31, 10, 0, 0.48);
  transform: perspective(900px) rotateX(1deg);
}

body[data-theme="glasshouse"] .watch-case,
body[data-theme="ice"] .watch-case {
  width: min(100%, 930px);
  aspect-ratio: 5.8;
  padding: 0;
  border: 0;
  border-radius: clamp(8px, 1.6vw, 16px);
  background: transparent;
  box-shadow: none;
}

body[data-theme="rooftop"] .watch-case {
  width: min(100%, 980px);
  aspect-ratio: 5.8;
  padding: 0;
  border: 0;
  border-radius: clamp(8px, 1.6vw, 16px);
  background: transparent;
  box-shadow: none;
}

body[data-theme="nightstand"] .watch-case::before,
body[data-theme="nightstand"] .watch-case::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body[data-theme="nightstand"] .watch-case::before {
  left: 5%;
  right: 5%;
  top: clamp(-38px, -4vw, -22px);
  z-index: -1;
  height: clamp(48px, 8vw, 82px);
  border: clamp(4px, 0.65vw, 7px) solid #251107;
  border-bottom: 0;
  border-radius: clamp(22px, 4vw, 44px) clamp(22px, 4vw, 44px) 10px 10px;
  background:
    linear-gradient(180deg, rgba(255, 224, 126, 0.36), transparent 28%),
    linear-gradient(180deg, #ff8a2f, #c84313);
  box-shadow:
    inset 0 8px 0 rgba(255, 255, 255, 0.16),
    0 -2px 0 rgba(255, 180, 77, 0.64);
}

body[data-theme="nightstand"] .watch-case::after {
  left: 6%;
  right: 6%;
  bottom: clamp(8px, 1.2vw, 14px);
  z-index: 2;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 213, 116, 0.52);
  box-shadow: 0 1px 0 rgba(90, 18, 0, 0.46);
}

.watch-face {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: clamp(8px, 1vw, 14px);
  padding: clamp(12px, 1.8vw, 22px);
  border-radius: clamp(20px, 4vw, 48px);
  background:
    radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 25%),
    linear-gradient(180deg, #1a1d1e, #050606 64%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 18px 28px rgba(255, 255, 255, 0.06),
    inset 0 -22px 36px rgba(0, 0, 0, 0.58);
}

body[data-theme="rooftop"] .watch-face,
body[data-theme="glasshouse"] .watch-face,
body[data-theme="ice"] .watch-face {
  display: block;
  height: 100%;
  padding: 0;
  border-radius: clamp(8px, 1.6vw, 16px);
  background: transparent;
  box-shadow: none;
}

body[data-theme="nightstand"] .watch-face {
  gap: clamp(5px, 0.8vw, 9px);
  padding: clamp(9px, 1.55vw, 17px);
  border: clamp(3px, 0.45vw, 5px) solid #30150b;
  border-radius: clamp(14px, 2.8vw, 28px);
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 65, 17, 0.5), transparent 1.8%),
    linear-gradient(180deg, #1c2021, #040505 74%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 18px 28px rgba(255, 255, 255, 0.05),
    inset 0 -22px 34px rgba(0, 0, 0, 0.78);
}

.display-glass {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 0;
  padding: clamp(8px, 1.2vw, 16px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(12px, 2vw, 24px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.12), transparent 30% 68%, rgba(255, 255, 255, 0.08)),
    rgba(2, 5, 6, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.72),
    inset 0 30px 36px rgba(255, 255, 255, 0.04),
    0 0 32px color-mix(in srgb, var(--accent) 18%, transparent);
}

body[data-theme="nightstand"] .display-glass {
  padding: clamp(6px, 1vw, 11px);
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: clamp(9px, 1.6vw, 16px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.16), transparent 24% 70%, rgba(255, 138, 45, 0.1)),
    linear-gradient(180deg, rgba(42, 47, 48, 0.95), rgba(5, 6, 6, 0.96));
  box-shadow:
    inset 0 0 0 clamp(2px, 0.4vw, 4px) rgba(0, 0, 0, 0.78),
    inset 0 12px 22px rgba(255, 255, 255, 0.04),
    0 8px 0 rgba(71, 16, 3, 0.22);
}

body[data-theme="rooftop"] .display-glass,
body[data-theme="glasshouse"] .display-glass,
body[data-theme="ice"] .display-glass {
  height: 100%;
  padding: clamp(6px, 1vw, 10px);
  border: clamp(2px, 0.35vw, 4px) solid color-mix(in srgb, var(--case-edge) 78%, white);
  border-radius: clamp(8px, 1.4vw, 14px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.22), transparent 22% 76%, rgba(255, 255, 255, 0.09)),
    rgba(2, 5, 7, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 -18px 24px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(0, 0, 0, 0.58),
    0 22px 46px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px) saturate(1.1);
}

body[data-theme="rooftop"] .display-glass {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.display-glass::after {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58%);
  opacity: 0.54;
  transform: translateX(-18%);
  pointer-events: none;
}

.flip-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(var(--letter-count, 6), minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(5px, 1vw, 13px);
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(8px, 1.3vw, 16px);
  border: 1px solid var(--case-line);
  border-radius: clamp(7px, 1.2vw, 14px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0)),
    rgba(5, 7, 8, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -16px 32px rgba(0, 0, 0, 0.36),
    0 20px 48px var(--shadow);
}

body[data-theme="nightstand"] .flip-board {
  gap: clamp(4px, 0.85vw, 10px);
  padding: clamp(5px, 0.85vw, 9px);
  border: 0;
  border-radius: clamp(6px, 1.2vw, 11px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 5% 95%, rgba(255, 255, 255, 0.05)),
    #050707;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -14px 18px rgba(0, 0, 0, 0.44);
}

body[data-theme="rooftop"] .flip-board,
body[data-theme="glasshouse"] .flip-board,
body[data-theme="ice"] .flip-board {
  gap: clamp(5px, 0.9vw, 11px);
  padding: clamp(5px, 0.9vw, 10px);
  border: 0;
  border-radius: clamp(5px, 0.9vw, 10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 24%),
    rgba(1, 4, 5, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -18px 24px rgba(0, 0, 0, 0.42);
}

.flip-letter {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  perspective: 720px;
}

.flip-window {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: var(--panel);
  box-shadow:
    inset 0 12px 22px rgba(255, 255, 255, 0.08),
    inset 0 -18px 28px rgba(0, 0, 0, 0.34);
  transform-style: preserve-3d;
}

body[data-theme="nightstand"] .flip-window {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: clamp(4px, 0.8vw, 8px);
  background:
    linear-gradient(180deg, #232728 0 49%, #0b0d0e 50%),
    var(--panel);
  box-shadow:
    inset 0 9px 12px rgba(255, 255, 255, 0.08),
    inset 0 -12px 18px rgba(0, 0, 0, 0.46),
    0 4px 0 rgba(0, 0, 0, 0.42);
}

body[data-theme="rooftop"] .flip-window,
body[data-theme="glasshouse"] .flip-window,
body[data-theme="ice"] .flip-window {
  border-radius: clamp(4px, 0.7vw, 7px);
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0 49%, rgba(0, 0, 0, 0.36) 50%),
    rgba(3, 6, 8, 0.9);
  box-shadow:
    inset 0 10px 16px rgba(255, 255, 255, 0.08),
    inset 0 -15px 18px rgba(0, 0, 0, 0.45),
    0 0 18px color-mix(in srgb, var(--accent) 22%, transparent);
}

.flip-window::before,
.flip-window::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.flip-window::before {
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: rgba(0, 0, 0, 0.76);
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.07);
}

.flip-window::after {
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 20%, transparent 78%, rgba(255, 255, 255, 0.08));
}

.letter-photo {
  position: absolute;
  inset: clamp(3px, 0.55vw, 7px);
  z-index: 1;
  border-radius: 3px;
  background-color: transparent;
  background-image: var(--letter-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: contrast(1.08) saturate(0.9);
  transform-origin: 50% 100%;
}

body[data-theme="nightstand"] .letter-photo {
  inset: clamp(2px, 0.35vw, 5px);
}

body[data-theme="rooftop"] .letter-photo,
body[data-theme="glasshouse"] .letter-photo,
body[data-theme="ice"] .letter-photo {
  inset: clamp(2px, 0.38vw, 5px);
}

.letter-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(28px, 7vw, 108px);
  font-weight: 900;
  line-height: 1;
}

.watch-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: color-mix(in srgb, var(--accent) 72%, white);
  font-size: clamp(8px, 1.15vw, 13px);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

body[data-theme="nightstand"] .watch-caption {
  color: #ffe26f;
  font-size: clamp(7px, 0.95vw, 11px);
  text-shadow: 0 1px 0 #1c0802;
}

body[data-theme="rooftop"] .watch-caption,
body[data-theme="glasshouse"] .watch-caption,
body[data-theme="ice"] .watch-caption {
  display: none;
}

.screw,
.side-crown {
  position: absolute;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.screw {
  width: clamp(10px, 1.5vw, 18px);
  height: clamp(10px, 1.5vw, 18px);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 42%, rgba(0, 0, 0, 0.55) 43% 57%, transparent 58%),
    radial-gradient(circle at 32% 28%, #fff, #9ea4a7 30%, #303333 75%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.48);
}

.screw-a {
  top: 10%;
  left: 5%;
}

.screw-b {
  top: 10%;
  right: 5%;
}

.screw-c {
  bottom: 10%;
  left: 5%;
}

.screw-d {
  right: 5%;
  bottom: 10%;
}

.side-crown {
  top: 50%;
  width: clamp(18px, 3.4vw, 42px);
  height: clamp(46px, 8vw, 86px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 8px),
    linear-gradient(180deg, color-mix(in srgb, var(--case-edge) 82%, white), #292d2d);
  transform: translateY(-50%);
}

.crown-left {
  left: calc(clamp(18px, 3.4vw, 42px) * -0.62);
  border-radius: 16px 4px 4px 16px;
}

.crown-right {
  right: calc(clamp(18px, 3.4vw, 42px) * -0.62);
  border-radius: 4px 16px 16px 4px;
}

.flip-letter.is-flipping .letter-photo {
  animation: flipPhoto 520ms cubic-bezier(0.24, 0.74, 0.24, 1);
}

@keyframes flipPhoto {
  0% {
    opacity: 1;
    transform: rotateX(0deg);
  }

  44% {
    opacity: 0.76;
    transform: rotateX(-82deg);
  }

  52% {
    opacity: 0.58;
    transform: rotateX(78deg);
  }

  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

@media (max-width: 720px) {
  :root {
    --watch-width: min(96vw, 680px);
  }

  .zotter-page {
    padding-top: 86px;
  }

  .theme-switcher {
    gap: 4px;
    padding: 5px;
  }

  .theme-button {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .watch {
    aspect-ratio: 1.54;
  }

  .watch-case {
    aspect-ratio: 1.9;
    border-radius: 34px;
  }

  .strap {
    width: 52%;
    height: 38%;
  }

  .display-glass {
    padding: 7px;
  }

  .flip-board {
    gap: 5px;
    padding: 7px;
  }

  body[data-theme="nightstand"] .zotter-page {
    padding-top: 76px;
    padding-bottom: 48px;
  }

  body[data-theme="nightstand"] .zotter-page::before {
    background-position: 58% center;
  }

  body[data-theme="nightstand"] .watch {
    aspect-ratio: 2.68;
  }

  body[data-theme="nightstand"] .watch-case {
    aspect-ratio: 2.56;
    border-radius: 30px;
  }

  body[data-theme="rooftop"] .watch,
  body[data-theme="glasshouse"] .watch,
  body[data-theme="ice"] .watch,
  body[data-theme="rooftop"] .watch-case,
  body[data-theme="glasshouse"] .watch-case,
  body[data-theme="ice"] .watch-case {
    aspect-ratio: 4.25;
  }

  body[data-theme="rooftop"] .zotter-page,
  body[data-theme="glasshouse"] .zotter-page,
  body[data-theme="ice"] .zotter-page {
    padding-bottom: 54px;
  }
}

@media (max-width: 450px) {
  .theme-button span:last-child {
    display: none;
  }

  .theme-button {
    padding-inline: 9px;
  }

  .watch-case {
    padding: 10px;
  }

  .watch-face {
    padding: 10px;
  }

  body[data-theme="nightstand"] .watch {
    aspect-ratio: 2.24;
  }

  body[data-theme="nightstand"] .watch-case {
    aspect-ratio: 2.18;
  }

  body[data-theme="rooftop"] .watch,
  body[data-theme="glasshouse"] .watch,
  body[data-theme="ice"] .watch,
  body[data-theme="rooftop"] .watch-case,
  body[data-theme="glasshouse"] .watch-case,
  body[data-theme="ice"] .watch-case {
    aspect-ratio: 3.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flip-letter.is-flipping .letter-photo {
    animation: none;
  }
}
