@font-face {
  font-family: 'Dune Rise';
  src: url('../../Dune_Rise.ttf') format('truetype'),
       url('../../Dune_Rise.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  width: 100%; height: 100%;
  overflow: hidden;
}
body {
  width: 100%; height: 100%;
  background: #00060f;
  font-family: 'Courier New', Courier, monospace;
}

/* Background grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,.042) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,.042) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none; z-index: 0;
}

/* Vignette */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 50% 50%,
    transparent 0%, rgba(0,4,12,.96) 100%);
  pointer-events: none; z-index: 0;
}

#gol-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none; z-index: 1;
}

.scene {
  position: relative; z-index: 2;
  width: 100vw; height: 100vh;
}

.clock {
  position: absolute;
  width: 520px; height: 520px;
}

/* Clock face image — src set dynamically via JS */
.face {
  position: absolute; inset: 0; border-radius: 50%;
  background: center/cover no-repeat;
  z-index: 1; pointer-events: none;
}

/* Decorative rings */
.dr {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 2;
}
.dr1 { inset: 0;    border: 1px solid rgba(0,229,255,.32); }
.dr2 { inset: 24px; border: 1px solid rgba(0,229,255,.12);
       box-shadow: inset 0 0 40px rgba(0,229,255,.05); }
.dr3 { inset: -3px; border: 1px solid rgba(0,229,255,.1);
       box-shadow: 0 0 50px rgba(0,229,255,.1); }

/* Center hub */
.hub {
  position: absolute;
  width: 16px; height: 16px;
  background: #00e5ff; border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px #00e5ff, 0 0 22px rgba(0,229,255,.6), 0 0 44px rgba(0,229,255,.3);
  z-index: 20;
}

/* Tick marks */
.tick {
  position: absolute; top: 50%; left: 50%;
  transform-origin: 0 0; pointer-events: none; z-index: 3;
}
.tick .bar { position: absolute; border-radius: 1px; left: -1px; }
.tick.tm .bar { width: 1px; height: 6px;  top: -257px; background: rgba(0,229,255,.25); }
.tick.th .bar { width: 2px; height: 10px; top: -257px; background: rgba(0,229,255,.55); }

/* HANDS */
.hand { position: absolute; top: 50%; left: 50%; transform-origin: 0 0; }
.cw   { position: absolute; border-radius: 2px; }

/* tip card — transparent, no border */
.tip {
  position: absolute; top: 0;
  transform: translate(-50%, -50%);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.dc { display: block; }

/* Arc highlight canvas overlay */
#arc-canvas {
  position: absolute; top: 0; left: 0;
  width: 520px; height: 520px;
  display: block; z-index: 4; pointer-events: none;
}

/* ── HOUR HAND ─────────────────────────────────────────── */
#hh { z-index: 6; }
#hh .beam {
  position: absolute; width: 85px; height: 2px; top: -1px;
  background: linear-gradient(to right, rgba(0,229,255,.08) 0%, rgba(0,229,255,.75) 100%);
  box-shadow: 0 0 6px rgba(0,229,255,.4);
}
#hh .cw { width: 26px; height: 3px; top: -1.5px; left: -26px; background: rgba(0,229,255,.35); }

/* ── MINUTE HAND ───────────────────────────────────────── */
#mh { z-index: 5; }
#mh .beam {
  position: absolute; width: 165px; height: 1.5px; top: -0.75px;
  background: linear-gradient(to right, rgba(0,200,220,.08) 0%, rgba(0,188,212,.72) 100%);
  box-shadow: 0 0 5px rgba(0,188,212,.38);
}
#mh .cw { width: 20px; height: 2.5px; top: -1.25px; left: -20px; background: rgba(0,188,212,.35); }

/* ── SECOND HAND ───────────────────────────────────────── */
#sh { z-index: 7; }
#sh .beam {
  position: absolute; width: 260px; height: 1px; top: -0.5px;
  background: linear-gradient(to right, rgba(0,172,193,.08) 0%, rgba(0,172,193,.65) 100%);
  box-shadow: 0 0 3px rgba(0,172,193,.32);
}
#sh .cw { width: 33px; height: 2px; top: -1px; left: -33px; background: rgba(0,172,193,.4); }
#sh .tip {
  width: 77px; height: 52px; left: 303px;
}
#sh .tip .dc { width: 65px; height: 42px; }

/* Bottom readouts — canvas-rendered */
.dig {
  position: fixed; bottom: 62px;
  left: 50%; transform: translateX(-50%);
  display: block; z-index: 20;
}
.dateline {
  position: fixed; bottom: 12px;
  left: 50%; transform: translateX(-50%);
  display: block; z-index: 20;
}
