:root {
  color-scheme: light dark;
  --paper: #f4efe6;
  --ink: #111016;
  --text: #211b16;
  --muted: #655d53;
  --card: #fffdf8;
  --border: #ded6c7;
  --amber: #ffad36;
  --dark-muted: #c4b9ab;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK", sans-serif;
  scroll-padding-top: 5rem;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #141211; --text: #f4efe6; --muted: #c4b9ab; --card: #211d18; --border: #3c342a; }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); line-height: 1.6; }
a { color: inherit; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid #e67806; outline-offset: 4px; }
.sf { font-family: Georgia, "Songti SC", "Songti TC", "Yu Mincho", "Noto Serif CJK", serif; }
:lang(ja) .sf { font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif; }
:lang(ko) .sf { font-family: "AppleMyungjo", "Noto Serif CJK KR", Georgia, serif; }
.nv {
  position: absolute; z-index: 4; inset: env(safe-area-inset-top, 0px) 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem max(6vw, env(safe-area-inset-right, 0px)) 1.1rem max(6vw, env(safe-area-inset-left, 0px));
  color: #fff7ea;
}
.brand { font-size: 1.2rem; font-weight: 700; text-decoration: none; }
.lg {
  min-height: 44px; max-width: 54vw; border: 1px solid #ffffff59; border-radius: 2rem;
  padding: .35rem .7rem; background: #151117; color: #fff7ea; cursor: pointer;
}
.hero {
  position: relative; display: grid; align-items: center; isolation: isolate; min-height: 100svh;
  overflow: hidden; padding: 6.5rem 6vw 5rem; color: #f9f1e5;
  background: radial-gradient(ellipse at 79% 70%, #643a1e, transparent 54%), radial-gradient(ellipse at 24% 8%, #35254a, transparent 60%), #0e0c12;
}
.hd {
  position: absolute; z-index: -2; width: min(66vw, 113svh, 1100px); right: -4vw; top: 52%;
  transform: translateY(-50%) perspective(1200px) rotateX(calc(7deg + var(--tilt-x, 0deg))) rotateY(calc(-12deg + var(--tilt-y, 0deg))) rotateZ(-8deg);
  transition: transform .15s ease-out;
}
.swiss-plate {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  filter: drop-shadow(0 42px 44px #090609a6) drop-shadow(0 0 34px #ffc4813b);
}
.swiss-plate img { position: absolute; inset: 0; width: 100%; height: 100%; }
.swiss-plate img:first-child { clip-path: circle(50%); }
.swiss-plate :is(.hour, .minute, .second) { transform: rotate(var(--angle, 0deg)); }
.swiss-plate .hour { --angle: 305deg; }
.swiss-plate .minute { --angle: 54deg; }
.swiss-plate .second { --angle: 180deg; }
.hero::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #0e0c12ed 0%, #0e0c12be 20%, #0e0c124f 42%, transparent 61%);
}
.ht { width: min(55vw, 48rem); }
.platforms { display: flex; flex-wrap: wrap; gap: .2rem .85rem; color: #ffcd82; font-size: .85rem; font-weight: 700; letter-spacing: .055em; }
.platforms span { color: #e1d2c4; font-weight: 500; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 800; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { margin: .85rem 0 1.4rem; font-size: clamp(3.3rem, 7.3vw, 7.9rem); line-height: 1.02; }
h1 > *, .end h2 > * { display: block; }
:lang(zh) h1 { font-size: clamp(3.8rem, 9vw, 9.5rem); }
h1 em, .end h2 em { color: var(--amber); font-style: normal; }
.sub { max-width: 31rem; margin-bottom: 1.7rem; color: #e6dbd0; font-size: clamp(1rem, 1.4vw, 1.25rem); text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--amber); color: #1b1206; border: 1px solid var(--amber);
  border-radius: 2rem; padding: .8rem 1.25rem; font-weight: 750; text-align: center; text-decoration: none;
}
.btn.gp { background: #15111759; color: #fff3e6; border-color: #fff3e698; }
.btn:hover { background: #ffc471; }.btn.gp:hover { background: #fff3e622; }
.dial { width: 100%; aspect-ratio: 1; }
.dial-art { position: relative; }
.dial-layer, .dial-progress { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-layer { background: var(--dial-artwork) var(--tile, 0%) center / 500% 100% no-repeat; }
.dial-layer.hour { --tile: 25%; }
.dial-layer.minute { --tile: 50%; }
.dial-layer.second { --tile: 75%; }
.dial-layer.hub { --tile: 100%; }
.dial-layer:is(.hour, .minute, .second) { transform: rotate(var(--angle, 0deg)); }
.dial-progress { fill: var(--amber); fill-opacity: .8; }
.tt { height: 300svh; position: relative; }
.ts {
  position: sticky; top: 0; height: 100svh; min-height: 23rem; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 2rem 6vw 5.2rem;
  color: #fff7ed; background: linear-gradient(#221c44, #a96053);
}
.ts::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(100deg, #070616a6, transparent 72%); pointer-events: none; }
.sun { position: absolute; z-index: -2; inset: auto auto auto 0; width: clamp(5rem, 16vw, 12rem); aspect-ratio: 1; border-radius: 50%; filter: blur(5px); }
.tc { max-width: 28rem; text-shadow: 0 2px 22px #180e1a79; }
.t { font: 800 clamp(4.2rem, 12vw, 11rem)/.95 Georgia, serif; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.p { margin-top: .65rem; font-size: clamp(1.45rem, 3vw, 2.5rem); font-weight: 700; }
.q { margin-top: .35rem; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.td { width: min(100%, 57svh, 35rem); justify-self: center; filter: drop-shadow(0 22px 38px #08061490); }
.hint {
  position: absolute; inset: auto 6vw max(1.25rem, env(safe-area-inset-bottom)) ;
  justify-self: center; width: min(100%, 28rem); padding: .65rem 1rem;
  border: 1px solid #ffffff50; border-radius: 1.1rem; text-align: center; background: #181021b0;
}
.hint label { display: block; font-size: .9rem; }
.hint input { display: block; width: 100%; height: 27px; margin: .2rem 0 0; accent-color: var(--amber); cursor: pointer; }
h2 { font-size: clamp(2.55rem, 5.9vw, 6rem); line-height: 1.12; margin-bottom: 1.2rem; }
.wall { background: var(--ink); color: #f9f1e5; padding: clamp(4rem, 9vw, 8rem) 0; }
.hh { padding: 0 6vw; margin-bottom: 2rem; }
.dial-rows {
  --card-width: clamp(7.4rem, 17vw, 13rem);
  --gap: clamp(1rem, 3vw, 2.75rem);
  overflow: hidden; margin-bottom: .6rem;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.dial-track { display: flex; width: max-content; animation: dial-marquee 70s linear infinite; }
.dial-rows.reverse .dial-track { animation-duration: 85s; animation-direction: reverse; }
.dial-set {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-width);
  min-width: 100vw; justify-content: space-between;
  gap: var(--gap); padding: 1rem var(--gap) 1rem 0;
}
.dial-rows:is(:hover, :focus-within) .dial-track { animation-play-state: paused; }
@keyframes dial-marquee { to { transform: translateX(-50%); } }
.dial-rows:focus-visible { outline-offset: -4px; }
.dial-rows article { text-align: center; }
.dial-rows .dial { filter: drop-shadow(0 12px 12px #0009); }
.city-name, .city-time { display: block; margin-top: .55rem; overflow-wrap: anywhere; }
.city-time { margin-top: .05rem; color: var(--dark-muted); font-variant-numeric: tabular-nums; }
.note, .lead { max-width: 48rem; }
.note { color: var(--dark-muted); padding: 0 6vw; margin: 1.7rem 0 0; }
.wgs, .ft { width: min(100%, 84rem); padding: clamp(4rem, 8vw, 8rem) 6vw; margin-inline: auto; }
.ft { padding-top: 0; }
.lead { color: var(--muted); font-size: 1.1rem; }
.wg, .bg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.bt, .wd { grid-column: span 2; border: 1px solid var(--border); border-radius: 1.5rem; background: var(--card); padding: clamp(1rem, 2.55vw, 2rem); }
.wd, .w3 { grid-column: span 3; }.w4 { grid-column: span 4; }.w2 { grid-column: span 2; }
.d, .dk { background: var(--ink); color: #f9f1e5; border-color: #3a3030; }
.bt h3, .cap { line-height: 1.26; margin-bottom: .6rem; font-size: 1.3rem; }
.bt p { color: var(--muted); margin-bottom: 0; }.dk p { color: var(--dark-muted); }
.bt .n { color: #b65a00; font: 700 3rem Georgia, serif; margin-bottom: .6rem; }
@media (prefers-color-scheme: dark) { .bt .n { color: var(--amber); } }
.wr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-top: 1.15rem; text-align: center; }
.wr .city-name, .wr .city-time { font-size: .8rem; }
.ag { display: grid; grid-template-columns: minmax(4rem, .85fr) 1fr; gap: 1rem; align-items: center; margin-top: 1rem; }
.al p { display: flex; flex-wrap: wrap; column-gap: .45rem; margin: .5rem 0 0; font-size: .88rem; }.al time { font-weight: 750; }
.wh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: .5rem; }.wh span { color: var(--muted); font-size: .85rem; }
#planner { position: relative; margin-top: .6rem; }
.pr { display: grid; grid-template-columns: 6rem minmax(0,1fr); column-gap: .5rem; align-items: center; min-height: 2.8rem; }
.pr > span { font-size: .85rem; line-height: 1.18; overflow-wrap: anywhere; }.pr small { display: block; color: var(--muted); }
.tk { position: relative; height: .72rem; border-radius: .5rem; background: var(--border); overflow: hidden; }
.tk i, .ol i { position: absolute; top: 0; bottom: 0; }
.ol { position: absolute; inset: 0 0 0 6.5rem; pointer-events: none; }
.ol .shared { background: #ff95002e; border-inline: 1px dashed #e18918; }.ol .now { width: 2px; background: #f1463b; }
.ax { display: flex; justify-content: space-between; margin: .25rem 0 0 6.5rem; color: var(--muted); font-size: .75rem; }
.pt { color: var(--muted); font-size: .9rem; margin: .85rem 0 0; }
.fw { text-align: center; }.fw .dial { max-width: 8.5rem; margin: 1rem auto 0; }
.cdx, .big { font: 750 clamp(2rem, 4vw, 3.6rem)/1 Georgia, serif; font-variant-numeric: tabular-nums; margin: .9rem 0; }
.fs { margin-bottom: 0; color: var(--dark-muted); }
.fo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(6rem, .66fr); align-items: center; gap: 1rem; }
.ctl { display: flex; gap: .45rem; flex-wrap: wrap; }.timer-actions { margin-top: .5rem; }
.ctl button { min-width: 44px; min-height: 44px; padding: .35rem .75rem; border: 1px solid #9a8b79; border-radius: 2rem; background: transparent; color: #f9f1e5; cursor: pointer; }
.ctl button[aria-pressed="true"] { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.ctl button:disabled { opacity: .72; cursor: default; }
.ctl .go { background: var(--amber); color: #211106; border-color: var(--amber); font-weight: 750; }
.cmp ul { margin: .7rem 0 0; padding: 0; list-style: none; }.cmp li { padding: .55rem 0; border-top: 1px solid var(--border); }.dk.cmp li { border-color: #3a3030; }
.end { isolation: isolate; position: relative; overflow: hidden; padding: clamp(4rem, 12vw, 9rem) 6vw 2.5rem; background: var(--ink); color: #f9f1e5; text-align: center; }
.end .bgd { position: absolute; z-index: -1; width: min(80vw, 48rem); left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .14; }
.end .stores { justify-content: center; }.end footer { margin-top: 3rem; color: var(--dark-muted); font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 820px) {
  .hero { align-items: end; padding-top: min(57vw, 45svh); padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
  .hd { width: min(99vw, 62svh); top: 32%; right: -10vw; }
  .hero::after { background: linear-gradient(0deg, #0e0c12 6%, #0e0c12dc 26%, #0e0c125b 55%, transparent 74%); }
  .ht { width: min(100%, 35rem); }
  h1, :lang(zh) h1 { font-size: clamp(3rem, 10.8vw, 5rem); }
  .tt { height: 210svh; }
  .ts { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); justify-items: center; align-items: center; padding-top: max(1.2rem, env(safe-area-inset-top)); text-align: center; }
  .td { width: min(67vw, 40svh, 30rem); }.t { font-size: clamp(3.8rem, 15vw, 7rem); }
  .wg, .bg { grid-template-columns: repeat(2, minmax(0, 1fr)); }.wd, .bt { grid-column: auto; }.w4 { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .hero { padding-top: max(13rem, min(68vw, 47svh)); }.hero .stores .btn { flex-grow: 1; }
  .hd { top: 32%; right: -8vw; }
  .wg, .bg { grid-template-columns: minmax(0, 1fr); }
  .fo { gap: .6rem; }.fo .dial { align-self: center; }
  .pr { grid-template-columns: 5.2rem minmax(0,1fr); }.ol { left: 5.7rem; }.ax { margin-left: 5.7rem; }
}
@media (max-height: 470px) and (orientation: landscape) {
  .ts { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; min-height: 100svh; }
  .td { width: min(34vw, 54svh); }.tc { justify-self: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .hd { transition: none; }
  .tt { height: auto; }.ts { position: relative; }
  .dial-rows { overflow-x: auto; mask-image: none; scrollbar-width: thin; }
  .dial-track { animation: none; }
  .dial-set { padding-inline: 6vw; }
  .dial-set[aria-hidden="true"] { display: none; }
}
@media (scripting: none) { .tt, .wall, .wgs, .ft, .lg { display: none; } }
.tk .work { background: #4e9a68; border-radius: inherit; }
