/* FNCE 1010 Live: shared design tokens (same palette and type as the lecture decks) */
:root {
  --navy: #011F5B; --navy2: #1F4E9E; --blue: #4E8FD6; --ink: #232A36; --ink2: #3E4654; --mute: #7B8290;
  --line: #E3DFD6; --cream: #FBFAF7; --sand: #B9B2A3; --red: #990011; --red2: #C8102E; --gold: #B58A2E;
  --deep: #0B1630; --deep2: #13244A; --glass: rgba(255, 255, 255, .07); --glass2: rgba(255, 255, 255, .12);
  --ok: #2F9E6E;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
.tabnum { font-variant-numeric: tabular-nums; }

/* navy stage with the decks' grain and light */
.stage {
  min-height: 100%; color: #F2F5FA; background-color: #0E1B34;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(900px 640px at 10% -10%, rgba(110, 140, 200, .22), rgba(110, 140, 200, 0) 60%),
    radial-gradient(900px 700px at 110% 110%, rgba(153, 0, 17, .16), rgba(153, 0, 17, 0) 60%),
    linear-gradient(165deg, #15264A 0%, #0D1A31 55%, #0A1428 100%);
  background-attachment: fixed;
}

/* countdown ring */
.ring { transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; }
.ring .track { stroke: rgba(255, 255, 255, .12); }
.ring .bar { stroke: #fff; stroke-linecap: round; transition: stroke .4s; }
.ring.light .track { stroke: #E7E2D7; }
.ring.light .bar { stroke: var(--navy); }
.ring.hurry .bar { stroke: #FF5A6E; }
.ring.light.hurry .bar { stroke: var(--red); }

/* connection dot */
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
[hidden] { display: none !important; }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: #48C78E; box-shadow: 0 0 0 0 rgba(72, 199, 142, .6); animation: beat 2.4s infinite; }
.conn.reconnecting i, .conn.connecting i { background: #F2B544; animation: none; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(72, 199, 142, .55); } 70% { box-shadow: 0 0 0 8px rgba(72, 199, 142, 0); } 100% { box-shadow: 0 0 0 0 rgba(72, 199, 142, 0); } }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { transform: scale(.92); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
