:root { font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif; color-scheme: light; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: #5b557d; background: radial-gradient(circle at 10% 0%, #fff4fb, transparent 30%), radial-gradient(circle at 92% 10%, #dbf4ff, transparent 34%), linear-gradient(135deg, #e8e7ff, #ffe7f2 55%, #e0f6ed); }
button { font: inherit; }
.app-shell { width: min(1100px, 100%); min-height: 100vh; margin: auto; padding: 18px; }
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 15px; margin-bottom: 16px; text-align: center; }
.header-actions { display: flex; justify-self: end; gap: 8px; }
.header-actions .small-button { justify-self: auto; }
.eyebrow { margin: 0 0 2px; color: #a98ab9; font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 3.7rem); letter-spacing: -.06em; text-shadow: 0 2px #fff; }
.home-link, .small-button { width: max-content; border: 1px solid rgba(117,95,151,.25); border-radius: 999px; padding: .56rem .86rem; color: #66527c; background: rgba(255,255,255,.72); box-shadow: 0 4px 12px rgba(87,68,116,.1); text-decoration: none; font-weight: 850; }
.small-button { justify-self: end; cursor: pointer; }
.game-card { overflow: hidden; border: 1px solid rgba(255,255,255,.94); border-radius: 26px; background: rgba(255,255,255,.53); box-shadow: 0 24px 60px rgba(93,74,122,.16); backdrop-filter: blur(10px); }
.hud { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.45); }
.hud div { min-width: 0; padding: 11px 15px; border-right: 1px solid rgba(128,105,159,.13); text-align: center; }
.hud div:last-child { border: 0; }
small { display: block; color: #a086ae; font-size: .66rem; font-weight: 900; letter-spacing: .12em; }
strong { display: block; overflow: hidden; margin-top: 3px; color: #66527c; font-size: clamp(.85rem, 2.2vw, 1.15rem); text-overflow: ellipsis; white-space: nowrap; }
.canvas-wrap { position: relative; aspect-ratio: 16 / 9; min-height: 340px; background: #dfe6ff; touch-action: none; }
canvas { display: block; width: 100%; height: 100%; outline: none; }
.overlay { position: absolute; z-index: 2; top: 50%; left: 50%; width: min(430px, calc(100% - 30px)); padding: 24px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 16px 45px rgba(86,68,118,.18); text-align: center; }
.overlay p { margin: 0; color: #ad82a2; font-size: .73rem; font-weight: 900; letter-spacing: .14em; }
.overlay h2 { margin: .25rem 0 .35rem; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.overlay span { display: block; color: #85738e; font-size: .84rem; font-weight: 700; }
.overlay button { display: block; margin: 16px auto 0; border: 0; border-radius: 999px; padding: .78rem 1.12rem; color: white; background: linear-gradient(135deg, #e994bb, #9c91d6); box-shadow: 0 4px 0 #9d6d98; font-weight: 900; cursor: pointer; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 15px; min-height: 64px; padding: 10px 16px; }
.action-row .small-button { justify-self: auto; }
.level-picker, .difficulty-picker, .volume-control { display: inline-flex; align-items: center; gap: 7px; color: #7d6888; font-size: .82rem; font-weight: 850; }
.level-picker select, .difficulty-picker select { max-width: 205px; border: 1px solid rgba(117,95,151,.25); border-radius: 999px; padding: .48rem .65rem; color: #66527c; background: rgba(255,255,255,.86); font: inherit; }
.volume-control input { width: 96px; accent-color: #e58ab4; cursor: pointer; }
.volume-control output { min-width: 38px; color: #66527c; font-variant-numeric: tabular-nums; }
#status { color: #89758f; font-size: .84rem; font-weight: 700; }
.avatar-customizer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; padding: 11px 16px 14px; border-top: 1px solid rgba(128,105,159,.13); background: rgba(255,255,255,.28); }
.avatar-customizer[hidden] { display: none; }
.avatar-customizer > strong { margin: 0; color: #7e628d; font-size: .86rem; }
.avatar-customizer label { display: inline-flex; align-items: center; gap: 7px; color: #7d6888; font-size: .82rem; font-weight: 850; }
.avatar-customizer select { min-width: 105px; border: 1px solid rgba(117,95,151,.25); border-radius: 999px; padding: .48rem .65rem; color: #66527c; background: rgba(255,255,255,.86); font: inherit; }
.touch-controls { display: none; justify-content: center; gap: 15px; padding: 0 0 16px; }
.touch-controls button { width: 70px; height: 54px; border: 0; border-radius: 16px; color: #6c587d; background: rgba(255,255,255,.9); box-shadow: 0 4px 0 rgba(143,112,158,.28); font-size: 1.4rem; font-weight: 900; touch-action: none; }
.touch-controls .jump { width: 90px; color: white; background: #e58ab4; font-size: 1rem; }
.footer-note { margin: 16px 0 0; color: #897991; font-size: .82rem; text-align: center; }
@media (max-width: 680px) { .app-shell { padding: 10px; } .topbar { grid-template-columns: 1fr auto; } .topbar > .title-block { grid-column: 1 / -1; grid-row: 1; } .home-link, .topbar > .header-actions { grid-row: 2; } .topbar > .header-actions { grid-column: 2; justify-self: end; } .canvas-wrap { aspect-ratio: auto; height: min(61vh, 570px); } .touch-controls { display: flex; } .action-row { flex-direction: column; gap: 8px; } .avatar-customizer { flex-direction: column; align-items: stretch; } .avatar-customizer > strong { text-align: center; } .avatar-customizer label { justify-content: space-between; } .avatar-customizer select { min-width: 150px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
