:root {
--gold: linear-gradient(to right, #bf953f 0%, #fcf6ba 20%, #b38728 40%, #fbf5b7 60%, #aa771c 80%, #bf953f 100%);
--bg: #010103;
--panel: #0a0c10;
--green: #2ecc71;
--red: #e74c3c;
--pink: #e94560;
--yellow: #ffd700;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg); color: #eee; min-height: 100vh;
display: flex; flex-direction: column; align-items: center;
padding: 10px; overflow-x: hidden; touch-action: manipulation;
}
.lion-backdrop {
position: fixed;
top: 0; left: 50%;
transform: translateX(-50%);
width: min(560px, 96vw);
height: 78vh;
max-height: 760px;
z-index: 0;
pointer-events: none;
background-image: url('assets/lion-backdrop.svg');
background-repeat: no-repeat;
background-position: top center;
background-size: contain;
opacity: 1;
-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.45) 80%, rgba(0,0,0,0) 100%);
mask-image: linear-gradient(to bottom, #000 0%, #000 60%, rgba(0,0,0,0.45) 80%, rgba(0,0,0,0) 100%);
}
.lion-backdrop::after {
content: "";
position: absolute; inset: 0;
background: linear-gradient(to bottom,
rgba(1,1,3,0.72) 0%,
rgba(1,1,3,0.55) 16%,
rgba(1,1,3,0.28) 28%,
rgba(1,1,3,0) 40%);
pointer-events: none;
}
.container { position: relative; z-index: 1; }
h1 {
margin: 15px 0; font-size: clamp(1.8rem, 10vw, 3.2rem); text-align: center;
letter-spacing: 5px; font-weight: 900; background: var(--gold);
-webkit-background-clip: text; background-clip: text; color: transparent;
filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.9));
text-transform: uppercase; animation: shimmer 6s infinite linear; background-size: 200% auto;
}
@keyframes shimmer { to { background-position: 200% center; } }
.alpha-badge {
margin: -6px 0 20px; text-align: center;
font-size: clamp(1rem, 4.5vw, 1.6rem); font-weight: 900;
letter-spacing: 10px; text-transform: uppercase;
background: linear-gradient(to right, #00d9ff 0%, #6ff0ff 18%, #0091ff 38%, #aef3ff 55%, #2e7bff 78%, #00d9ff 100%);
-webkit-background-clip: text; background-clip: text; color: transparent;
filter: drop-shadow(0 0 14px rgba(0, 200, 255, 1)) drop-shadow(0 0 26px rgba(0, 130, 255, 0.55));
animation: shimmer 6s infinite linear; background-size: 200% auto;
padding-left: 10px;
}
.session-countdown {
margin: 4px 0 14px; text-align: center;
font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
font-size: clamp(1.4rem, 6vw, 2.2rem); font-weight: 900;
letter-spacing: 3px; color: var(--yellow);
text-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
transition: color 0.3s, text-shadow 0.3s;
}
.session-countdown.ending {
color: var(--pink);
text-shadow: 0 0 16px rgba(233, 69, 96, 0.6);
}
.session-countdown.idle {
color: #6a5a1f; text-shadow: none; opacity: 0.8;
}
@keyframes nFlash { 0% { transform: scale(1); color: var(--yellow); } 50% { transform: scale(1.6); color: var(--green); } 100% { transform: scale(1); color: var(--yellow); } }
@keyframes nFlashDown { 0% { transform: scale(1); color: var(--yellow); } 50% { transform: scale(0.7); color: var(--pink); } 100% { transform: scale(1); color: var(--yellow); } }
.n-flash-up { animation: nFlash 0.7s ease-out; display: inline-block; }
.n-flash-down { animation: nFlashDown 0.7s ease-out; display: inline-block; }
.container { max-width: 500px; width: 100%; }
.controls {
background: var(--panel); padding: 25px; border-radius: 20px;
margin-bottom: 15px; border: 1px solid #1a1a1a; box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.control-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 6px; font-weight: bold; color: var(--yellow); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; }
input[type="range"] { width: 100%; height: 10px; background: #151921; border-radius: 5px; outline: none; -webkit-appearance: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 15px var(--yellow); border: 2px solid #000; cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 15px var(--yellow); border: 2px solid #000; cursor: pointer; }
select { width: 100%; padding: 14px; background: #000; color: #fff; border: 1px solid #333; border-radius: 12px; font-size: 0.9rem; font-weight: 600; outline: none; }
.toggle-row { display: flex; gap: 10px; flex-wrap: wrap; }
.toggle-row label { display: flex; align-items: center; gap: 6px; font-size: 0.7rem; color: #888; margin: 0; cursor: pointer; }
.toggle-row input { width: 18px; height: 18px; accent-color: var(--yellow); }
.delta-rate-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.delta-rate-row .drl { font-size: 0.65rem; color: #888; text-transform: uppercase; letter-spacing: 1.5px; font-weight: bold; margin-right: 2px; }
.delta-rate-btn { padding: 7px 13px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; border-radius: 8px; background: #151921; color: var(--yellow); border: 1px solid #302810; }
.delta-rate-btn.on { background: var(--yellow); color: #000; box-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
.button-group { display: flex; gap: 10px; margin-top: 15px; flex-wrap: wrap; }
button { padding: 18px; border-radius: 14px; border: none; font-weight: 900; cursor: pointer; text-transform: uppercase; transition: 0.2s; font-family: inherit; touch-action: manipulation; }
button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
#start-btn { flex: 2; background: linear-gradient(135deg, var(--yellow), #b38728); color: #000; min-width: 140px; }
#pause-btn { flex: 1; background: #161616; color: var(--yellow); border: 1px solid #302810; min-width: 80px; transition: background 0.12s, color 0.12s; }
#pause-btn:active, #pause-btn.flash { background: var(--yellow); color: #000; }
#stop-btn { flex: 1; background: #121212; color: var(--pink); border: 1px solid #301010; min-width: 80px; }
button:disabled { opacity: 0.15; pointer-events: none; }
.game-area {
background: #040406; padding: 30px; border-radius: 30px;
text-align: center; border: 1px solid #111; min-height: 470px;
display: flex; flex-direction: column; justify-content: space-between;
box-shadow: inset 0 0 60px rgba(0,0,0,0.9);
}
#countdown-box { font-size: 7rem; font-weight: 900; color: var(--yellow); height: 140px; display: flex; align-items: center; justify-content: center; text-shadow: 0 0 35px rgba(255, 215, 0, 0.7); }
#countdown-box:empty { height: 0; }
.premise-display {
color: #fff; margin: 10px 0; font-style: italic;
min-height: 110px; display: flex; align-items: center; justify-content: center;
line-height: 1.25; text-shadow: 0 0 25px rgba(255,255,255,0.15); padding: 10px 6px;
font-weight: 800; transition: opacity 0.2s, filter 0.2s;
overflow: hidden; text-align: center;
font-size: clamp(1.4rem, 5.5vw, 3rem);
}
#premise-display {
min-height: 120px;
width: 100%;
}
.premise-display.muted { opacity: 0.06; filter: blur(10px); }
.premise-display.hidden-mode { opacity: 0; }
.trial-pulse {
display: inline-block; width: 22px; height: 22px; border-radius: 50%;
background: var(--yellow); box-shadow: 0 0 22px var(--yellow);
animation: pulse 0.9s infinite ease-in-out;
}
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8 } 50% { transform: scale(1.3); opacity: 1 } }
.response-buttons { display: flex; flex-direction: column; gap: 15px; width: 100%; }
@media (min-width: 450px) { .response-buttons { flex-direction: row; } }
.response-buttons button { flex: 1; padding: 35px 20px; font-size: 1.8rem; border: 2px solid transparent; border-radius: 20px; }
#match-btn { background: rgba(46, 204, 113, 0.05); color: var(--green); border-color: rgba(46, 204, 113, 0.2); }
#no-match-btn { background: rgba(231, 76, 60, 0.05); color: var(--red); border-color: rgba(231, 76, 60, 0.2); }
#match-btn:active, #match-btn.flash { background: var(--green); color: #000; }
#no-match-btn:active, #no-match-btn.flash { background: var(--red); color: #fff; }
.timer-container { width: 100%; height: 8px; background: #111; margin-top: 15px; border-radius: 4px; overflow: hidden; position: relative; }
#timer-bar { width: 0%; height: 100%; background: var(--yellow); }
.session-bar { width: 100%; height: 3px; background: #0a0a0a; margin-top: 6px; border-radius: 2px; overflow: hidden; }
#session-progress { width: 0%; height: 100%; background: linear-gradient(to right, #b38728, var(--yellow)); transition: width 0.5s; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 25px; }
.stat-box { background: #08080c; padding: 12px 4px; border-radius: 12px; border: 1px solid #111; }
body.practice-active .stats { grid-template-columns: 1fr; }
body.practice-active .score-only { display: none; }
body.practice-active #feedback { display: none; }
.stat-label { font-size: 0.5rem; color: #444; text-transform: uppercase; font-weight: 800; letter-spacing: 0.5px; }
.stat-value { font-size: 1.0rem; font-weight: 900; color: #bf953f; }
#feedback { font-size: 1.4rem; font-weight: 900; min-height: 36px; text-align: center; transition: color 0.15s; }
.hint { font-size: 0.6rem; color: #555; text-align: center; margin-top: 8px; letter-spacing: 1px; }
.modal {
display: none;
position: fixed; inset: 0;
background: rgba(0, 0, 0, 0.88);
z-index: 200;
align-items: flex-start; justify-content: center;
padding: 40px 16px;
overflow-y: auto;
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
animation: modal-fade 0.18s ease-out;
}
.modal.show { display: flex; }
.modal > .modal-inner {
background: var(--panel);
padding: 30px 26px 26px;
border-radius: 20px;
border: 1px solid #333;
max-width: 540px;
width: 100%;
max-height: calc(100vh - 80px);
overflow-y: auto;
position: relative;
box-shadow: 0 25px 80px rgba(0,0,0,0.9);
animation: modal-slide 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-slide { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close {
position: absolute; top: 12px; right: 14px;
width: 36px; height: 36px;
background: #000; color: var(--yellow);
border: 1px solid #333; border-radius: 50%;
font-size: 1.3rem; font-weight: 900; line-height: 1;
cursor: pointer; padding: 0;
display: flex; align-items: center; justify-content: center;
transition: background 0.15s, color 0.15s, transform 0.15s;
}
.modal-close:hover, .modal-close:focus { background: var(--yellow); color: #000; transform: scale(1.08); outline: none; }
.modal h2 { color: var(--yellow); text-align: center; margin-bottom: 15px; letter-spacing: 3px; padding-right: 30px; }
.modal h3 { color: var(--yellow); margin: 15px 0 8px; font-size: 0.9rem; letter-spacing: 2px; }
.modal p { font-size: 0.85rem; color: #ccc; line-height: 1.5; margin-bottom: 8px; }
.modal code { background: #000; padding: 2px 6px; border-radius: 4px; color: var(--yellow); font-size: 0.8rem; }
.modal .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #1a1a1a; font-size: 0.9rem; }
.modal .row span:first-child { color: #888; }
.modal .row span:last-child { color: var(--yellow); font-weight: 900; }
.modal .row.divider { border-top: 1px solid #2a2a1a; margin-top: 8px; padding-top: 12px; border-bottom: none; }
.small-btn { padding: 10px; font-size: 0.7rem; background: #222; color: var(--yellow); border-radius: 10px; }
.vol-meter { height: 10px; background: #0c0f14; border: 1px solid #302810; border-radius: 5px; margin-top: 10px; overflow: hidden; }
.vol-meter > div { height: 100%; background: linear-gradient(to right, var(--green) 0%, var(--yellow) 70%, var(--pink) 100%); border-radius: 5px; transition: width 0.06s linear; }
#premise-test-btn.playing { background: var(--yellow); color: #000; box-shadow: 0 0 12px rgba(255,215,0,0.4); }
.modal-actions { display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
.modal-actions button { flex: 1; min-width: 100px; padding: 12px; font-size: 0.75rem; }
#dprime-chart { width: 100%; height: 60px; margin: 10px 0; background: #050507; border-radius: 8px; }
#paused-overlay, #confirm-overlay {
position: fixed; inset: 0; background: rgba(0,0,0,0.88); display: none;
align-items: center; justify-content: center; z-index: 100; flex-direction: column; gap: 20px;
padding: 20px;
}
#paused-overlay { cursor: pointer; }
#paused-overlay.show, #confirm-overlay.show { display: flex; }
#paused-overlay h2 { color: var(--yellow); font-size: 2.5rem; letter-spacing: 8px; }
#paused-overlay p { color: #888; font-size: 0.9rem; }
#confirm-overlay .confirm-box { background: var(--panel); padding: 30px; border-radius: 20px; border: 1px solid #333; max-width: 360px; width: 100%; text-align: center; }
#confirm-overlay h3 { color: var(--yellow); margin-bottom: 10px; letter-spacing: 3px; }
#confirm-overlay p { color: #ccc; margin-bottom: 20px; font-size: 0.9rem; }
#confirm-overlay .btn-row { display: flex; gap: 10px; }
#confirm-overlay .btn-row button { flex: 1; padding: 14px; }
#confirm-yes { background: var(--pink); color: #fff; }
#confirm-no { background: #222; color: var(--yellow); }
#recovery-banner {
display: none; background: #1a1f0a; border: 1px solid #4a4520; border-radius: 12px;
padding: 12px 15px; margin-bottom: 15px; font-size: 0.85rem; color: var(--yellow);
}
#recovery-banner.show { display: block; }
#recovery-banner .actions { display: flex; gap: 8px; margin-top: 10px; }
#recovery-banner button { flex: 1; padding: 8px; font-size: 0.7rem; }
