:root { color-scheme: dark; background: #020704; color: #f1f6eb; }
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; min-height: 100%; }
body { font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
main { height: 100svh; min-height: 420px; overflow: hidden; position: relative; isolation: isolate; display: grid; place-items: center; }
#universe, .shade, .clocks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#universe { z-index: -4; }
.shade { z-index: -3; background: radial-gradient(ellipse at center, transparent 22%, #00000018 64%, #00000085 100%); }
.clocks { z-index: -1; }
.message { text-align: center; position: relative; margin-top: -8px; padding: 30px 20px; animation: enter 1.8s ease both; }
.message::before { content: ''; position: absolute; inset: -45px -90px; z-index: -1; background: radial-gradient(ellipse, #020704ec 0%, #020704c2 30%, transparent 70%); pointer-events: none; }
h1 { font-weight: 400; font-size: clamp(62px, 9.4vw, 150px); line-height: 1.08; letter-spacing: -.065em; margin: 0; white-space: nowrap; text-shadow: 0 0 38px #c3ffd21a, 0 3px 24px #000; }
h1 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.07em; }
.signal { width: 28px; height: 28px; margin: 0 auto 30px; border: 1px solid #a1ffb359; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 26px #72ff9721; }
.signal span { width: 6px; height: 6px; background: #b3ffc0; border-radius: 50%; box-shadow: 0 0 14px #90ffac; animation: signal 4s ease-in-out infinite; }
.dots { display: flex; gap: 7px; justify-content: center; margin-top: 27px; }
.dots span { height: 3px; width: 3px; border-radius: 50%; background: #adf9bb; opacity: .3; animation: pulse 2.8s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .25s; }
.dots span:nth-child(3) { animation-delay: .5s; }
.clock { position: absolute; width: var(--size); left: var(--x); top: var(--y); opacity: var(--opacity); transform: translate(-50%, -50%) rotate(var(--tilt)); }
.clock-float { transform-origin: center 44%; animation: drift var(--duration) ease-in-out infinite alternate; animation-delay: var(--delay); }
.clock-spin { transform-origin: center 44%; animation: clock-spin var(--spin-duration) linear infinite; animation-direction: var(--direction); animation-delay: var(--spin-delay); }
.clock svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 8px 22px #000b); }
.clock .minute { transform-origin: 90px 98px; animation: hand-spin var(--minute-duration) linear infinite; animation-direction: var(--direction); animation-delay: var(--hand-delay); }
.clock .hour { transform-origin: 90px 98px; animation: hand-spin var(--hour-duration) linear infinite; animation-direction: var(--direction); animation-delay: var(--hand-delay); }
.clock .second { transform-origin: 90px 98px; animation: hand-spin 60s steps(60, end) infinite; animation-delay: var(--hand-delay); }
.clock .drip { transform-origin: 114px 190px; animation: drip 8s ease-in-out infinite; }
.clock--seconds .clock-float, .clock--seconds .clock-spin, .clock--seconds .hour, .clock--seconds .minute, .clock--seconds .drip { animation: none; }
.corner { position: absolute; pointer-events: none; width: 22px; height: 22px; border: solid #baffcb29; }
.corner.top { left: 27px; top: 27px; border-width: 1px 0 0 1px; }
.corner.bottom { right: 27px; bottom: 27px; border-width: 0 1px 1px 0; }
#motion { position: absolute; right: 43px; bottom: 42px; padding: 11px; border-radius: 50%; border: 1px solid #a9efb530; width: 42px; height: 42px; display: grid; place-items: center; color: #bddec3; background: #05140bb3; cursor: pointer; transition: border-color .2s, background .2s; }
#motion svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.5; }
#motion:hover { background: #12371b; border-color: #b6ffc68a; }
#motion:focus-visible { outline: 2px solid #b6ffc6; outline-offset: 5px; }
.sound-controls { position: absolute; bottom: 42px; left: 43px; display: flex; align-items: center; gap: 14px; }
#sound { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 10px 15px; border: 1px solid #a9efb530; border-radius: 24px; color: #bddec3; background: #05140bb3; cursor: pointer; transition: border-color .2s, background .2s; }
#sound span { font: 10px Arial, sans-serif; letter-spacing: .1em; white-space: nowrap; }
#sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#sound .sound-waves { display: none; }
#sound[aria-pressed="true"] .sound-waves { display: initial; }
#sound[aria-pressed="true"] .sound-slash { display: none; }
#sound[aria-pressed="true"] { color: #c4ffd1; border-color: #a9efb555; }
#sound:hover { background: #12371b; border-color: #b6ffc68a; }
#sound:focus-visible { outline: 2px solid #b6ffc6; outline-offset: 5px; }
#sound-hint { position: absolute; top: 31%; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 7px; width: max-content; max-width: calc(100% - 40px); padding: 15px 24px; border: 1px solid #a9efb54d; border-radius: 14px; color: #effff2; background: #04150ee8; box-shadow: 0 8px 35px #0009, 0 0 25px #71ff9b0d; backdrop-filter: blur(10px); text-align: center; letter-spacing: .01em; line-height: 1.5; text-shadow: 0 1px 8px #000; pointer-events: none; }
#sound-hint[hidden] { display: none; }
#sound-hint .hint-ko { font-size: clamp(14px, 1.4vw, 19px); font-weight: 500; }
#sound-hint .hint-en { color: #bcdfc8; font-size: clamp(12px, 1.05vw, 14px); }
.paused *, .paused *::before { animation-play-state: paused !important; }
.paused .message { animation-play-state: running !important; }
@keyframes drift { from { transform: translate3d(-5px, -14px, 0) rotate(-5deg); } to { transform: translate3d(9px, 16px, 0) rotate(6deg); } }
@keyframes hand-spin { to { transform: rotate(360deg); } }
@keyframes clock-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes drip { 50% { transform: translateY(8px) scaleY(1.08); } }
@keyframes signal { 50% { opacity: .5; box-shadow: 0 0 24px #90ffac; } }
@keyframes pulse { 40% { opacity: .9; } 80% { opacity: .3; } }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  h1 { font-size: clamp(44px, 11.8vw, 70px); }
  .message { padding: 20px 12px; }
  .message::before { inset: -45px -36px; }
  .signal { width: 23px; height: 23px; margin-bottom: 25px; }
  .dots { margin-top: 24px; }
  .clock:nth-child(1) { --x: 17% !important; --y: 22% !important; --size: 112px !important; }
  .clock:nth-child(2) { --x: 87% !important; --y: 19% !important; --size: 90px !important; }
  .clock:nth-child(3) { --x: 12% !important; --y: 75% !important; --size: 98px !important; }
  .clock:nth-child(4) { --x: 81% !important; --y: 79% !important; --size: 130px !important; }
  .clock:nth-child(5) { --x: 57% !important; --y: 9% !important; --size: 48px !important; }
  .clock:nth-child(6) { --x: 40% !important; --y: 91% !important; --size: 43px !important; }
  .corner.top { top: 18px; left: 18px; }
  .corner.bottom { bottom: 18px; right: 18px; }
  #motion { right: 30px; bottom: 31px; width: 38px; height: 38px; padding: 9px; }
  .sound-controls { left: 30px; bottom: 31px; gap: 8px; align-items: flex-start; flex-direction: column-reverse; max-width: calc(100vw - 115px); }
  #sound { min-height: 38px; padding: 9px 12px; }
  #sound-hint { top: 32%; padding: 12px 16px; gap: 5px; }
}
@media (max-height: 600px) { #sound-hint { top: 22px; padding: 10px 16px; gap: 3px; } #sound-hint .hint-ko { font-size: 14px; } #sound-hint .hint-en { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .message { animation: none; } }
