@font-face {
	font-family: 'Share Tech Mono';
	src: url('share-tech-mono.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Orbitron';
	src: url('orbitron-regular.woff2') format('woff2');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Orbitron';
	src: url('orbitron-bold.woff2') format('woff2');
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: 'Orbitron';
	src: url('orbitron-black.woff2') format('woff2');
	font-weight: 900;
	font-display: swap;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
--amber: #f5a623;
--amber-dim: #7a5010;
--amber-glow: rgba(245,166,35,0.18);
--bg: #0a0c0e;
--panel: #0e1215;
--border: #1e2830;
--green: #39d353;
--red: #ff4a4a;
--text-dim: #4a5568;
}

body {
background: var(--bg);
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: 'Share Tech Mono', monospace;
color: var(--amber);
overflow: hidden;
position: relative;
}

/* Scanline overlay */
body::before {
content: '';
position: fixed;
inset: 0;
background: repeating-linear-gradient(
  to bottom,
  transparent 0px,
  transparent 3px,
  rgba(0,0,0,0.08) 3px,
  rgba(0,0,0,0.08) 4px
);
pointer-events: none;
z-index: 10;
}

/* Vignette */
body::after {
content: '';
position: fixed;
inset: 0;
background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.75) 100%);
pointer-events: none;
z-index: 9;
}

.cockpit {
width: min(520px, 94vw);
background: var(--panel);
border: 1px solid var(--border);
border-radius: 4px;
padding: 0;
position: relative;
box-shadow:
  0 0 0 1px #000,
  0 0 60px rgba(245,166,35,0.07),
  inset 0 1px 0 rgba(255,255,255,0.04);
}

/* Top panel bar */
.panel-header {
border-bottom: 1px solid var(--border);
padding: 12px 24px;
display: flex;
align-items: center;
justify-content: space-between;
}

.panel-title {
font-family: 'Orbitron', sans-serif;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.25em;
color: var(--amber-dim);
text-transform: uppercase;
}

.status-dot {
width: 6px; height: 6px;
border-radius: 50%;
background: var(--green);
box-shadow: 0 0 8px var(--green);
animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
0%, 90%, 100% { opacity: 1; }
95% { opacity: 0.2; }
}

/* Main display area */
.display {
padding: 48px 32px 36px;
text-align: center;
position: relative;
}

.label {
font-family: 'Orbitron', sans-serif;
font-size: 9px;
letter-spacing: 0.3em;
color: var(--amber-dim);
margin-bottom: 20px;
text-transform: uppercase;
}

/* Big letter display */
.letter-display {
font-family: 'Orbitron', sans-serif;
font-size: clamp(100px, 26vw, 160px);
font-weight: 900;
line-height: 1;
color: var(--amber);
text-shadow:
  0 0 40px rgba(245,166,35,0.6),
  0 0 80px rgba(245,166,35,0.2);
letter-spacing: -0.02em;
transition: opacity 0.15s;
position: relative;
}

/* Solution reveal */
.solution-wrap {
margin-top: 28px;
min-height: 64px;
display: flex;
align-items: center;
justify-content: center;
}

.solution-word {
font-family: 'Orbitron', sans-serif;
font-size: clamp(22px, 7vw, 38px);
font-weight: 700;
letter-spacing: 0.12em;
color: var(--green);
text-shadow: 0 0 30px rgba(57,211,83,0.5);
animation: fadeIn 0.3s ease;
text-transform: uppercase;
}

.solution-placeholder {
font-size: 13px;
color: var(--amber-dim);
letter-spacing: 0.15em;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(6px); }
to   { opacity: 1; transform: translateY(0); }
}

/* Divider */
.divider {
height: 1px;
background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
margin: 0 24px;
}

/* Button panel */
.controls {
padding: 28px 32px 32px;
display: flex;
flex-direction: column;
gap: 14px;
}

.btn {
font-family: 'Orbitron', sans-serif;
font-size: 11px;
font-weight: 700;
letter-spacing: 0.2em;
text-transform: uppercase;
border: none;
border-radius: 3px;
padding: 16px;
cursor: pointer;
transition: all 0.12s;
position: relative;
overflow: hidden;
width: 100%;
}

.btn::after {
content: '';
position: absolute;
inset: 0;
background: rgba(255,255,255,0.06);
opacity: 0;
transition: opacity 0.12s;
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.98); }

.btn-reveal {
background: transparent;
border: 1px solid var(--amber);
color: var(--amber);
box-shadow: 0 0 20px rgba(245,166,35,0.1), inset 0 0 20px rgba(245,166,35,0.04);
}

.btn-reveal:hover {
box-shadow: 0 0 30px rgba(245,166,35,0.25), inset 0 0 20px rgba(245,166,35,0.08);
}

.btn-next {
background: var(--amber);
color: #0a0c0e;
box-shadow: 0 0 30px rgba(245,166,35,0.25);
}

.btn-next:hover {
background: #f7b84a;
box-shadow: 0 0 40px rgba(245,166,35,0.4);
}

/* Score tally */
.tally-bar {
padding: 14px 24px;
border-top: 1px solid var(--border);
display: flex;
align-items: center;
justify-content: space-between;
font-size: 10px;
color: var(--amber-dim);
letter-spacing: 0.18em;
}

.tally-count {
color: var(--amber);
font-family: 'Orbitron', sans-serif;
font-size: 11px;
}

/* Corner decorations */
.corner {
position: absolute;
width: 12px; height: 12px;
border-color: var(--amber-dim);
border-style: solid;
opacity: 0.5;
}
.corner-tl { top: 6px; left: 6px; border-width: 1px 0 0 1px; }
.corner-tr { top: 6px; right: 6px; border-width: 1px 1px 0 0; }
.corner-bl { bottom: 6px; left: 6px; border-width: 0 0 1px 1px; }
.corner-br { bottom: 6px; right: 6px; border-width: 0 1px 1px 0; }

.footer-link {
    color: var(--amber);
    text-decoration: none;
    letter-spacing: 0.18em;
    font-size: 14px;
    transition: color 0.15s;
}
.footer-link:hover {
    text-decoration: underline;
}
