:root {
  --bg: #071221;
  --ink: #f6f8ff;
  --muted: #93a3bc;
  --accent: #a8e682;
  --accent-deep: #5d8f49;
  --hairline: rgba(169,189,224,.15);
  --lcd: #b6c99f;
  --lcd-dark: #2c4229;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, select:focus-visible, input:focus-visible, canvas:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.ambient { position: fixed; z-index: -1; pointer-events: none; filter: blur(66px); border-radius: 50%; opacity: .4; }
.ambient--a { width: 460px; height: 460px; background: #1a366a; left: -260px; top: 130px; }
.ambient--b { width: 480px; height: 480px; background: #18395b; right: -220px; bottom: -240px; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .22; background-image: linear-gradient(to right, #a9bbdc15 1px, transparent 1px), linear-gradient(to bottom, #a9bbdc15 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(90deg,transparent,black 20%,black 80%,transparent); }
.app-shell { width: min(1490px, calc(100% - 72px)); margin: 0 auto; }
.site-head, .site-foot { display: flex; justify-content: space-between; align-items: center; }
.site-head { padding: 33px 0 24px; border-bottom: 1px solid var(--hairline); }
.wordmark { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 850; letter-spacing: -.075em; }
.wordmark__icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #91d76b; color: var(--accent); border-radius: 10px; font-size: 21px; transform: rotate(-5deg); }
.wordmark__accent { color: var(--accent); }
.head-label, .phone-footnote { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #98e778; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 13px #8ee06484; vertical-align: middle; }
.hero { display: grid; grid-template-columns: minmax(265px,1fr) minmax(320px, 425px) minmax(235px,.8fr); align-items: center; gap: clamp(24px,3.5vw,72px); padding: 52px 0 43px; }
.intro { align-self: center; max-width: 430px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--accent); letter-spacing: .17em; font-weight: 780; font-size: 10px; margin: 0 0 25px; }
.eyebrow-line { display: block; width: 25px; height: 1px; background: var(--accent); }
h1 { font-weight: 850; letter-spacing: -.078em; line-height: 1.075; font-size: clamp(35px,3.6vw,58px); margin: 0 0 22px; }
h1 em { color: var(--accent); font-style: normal; }
.intro-copy { font-size: 14px; line-height: 1.85; color: var(--muted); max-width: 360px; margin: 0 0 30px; }
.intro-copy strong { font-weight: 650; color: #d5deed; }
.score-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.score-card { padding: 16px 15px 14px; border: 1px solid var(--hairline); border-radius: 15px; background: rgba(23,37,62,.63); }
.score-card span { display: block; font-size: 9px; letter-spacing: .085em; font-weight: 760; color: #a3b2c8; margin-bottom: 5px; }
.numbers { color: var(--accent); font: 700 clamp(24px,2.4vw,32px)/1.15 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.quick-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.primary-action, .secondary-action { border-radius: 12px; min-height: 48px; font-size: 11px; letter-spacing: .035em; font-weight: 850; transition: transform .15s,background .15s; }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.primary-action { background: var(--accent); border: 0; color: #15201b; padding: 0 15px; }
.primary-action span { margin-right: 7px; }
.secondary-action { background: #203149; border: 1px solid #314561; color: #d6e0f0; padding: 0 16px; }
.settings-panel { margin-top: 37px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--hairline); padding-bottom: 13px; font-size: 10px; letter-spacing: .13em; font-weight: 850; color: #dbe4ef; }
.section-heading__meta { color: #657995; }
.setting-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 18px 0 14px; }
.setting > span { display: block; font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.setting select { display: block; width: 100%; min-width: 0; height: 39px; border-radius: 9px; border: 1px solid #324358; background: #17273a; padding: 0 8px; color: #e8f0f8; font-size: 11px; }
.setting option { background: #17273a; }
.sound-control { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: #c5d2e4; font-size: 10px; font-weight: 830; letter-spacing: .1em; }
.sound-control input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle-rail { position: relative; display: inline-block; width: 32px; height: 18px; border-radius: 12px; background: #314459; border: 1px solid #5d7188; transition: background .15s; }
.toggle-rail::after { content: ""; position: absolute; width: 12px; height: 12px; left: 2px; top: 2px; background: #c7d3e0; border-radius: 50%; transition: transform .16s; }
.sound-control input:checked + .toggle-rail { background: #547e47; }
.sound-control input:checked + .toggle-rail::after { transform: translateX(14px); background: #c2f2a8; }
.sound-control input:focus-visible + .toggle-rail { outline: 3px solid var(--accent); outline-offset: 3px; }
.settings-hint { color: #687e99; margin: 10px 0 0; font-size: 10px; line-height: 1.6; }
.phone-section { position: relative; display: flex; flex-direction: column; align-items: center; isolation: isolate; }
.phone-shadow { position: absolute; left: 8%; right: 8%; top: 10%; height: 85%; border-radius: 50%; background: #507ac028; filter: blur(62px); z-index: -1; }
.phone { position: relative; width: min(100%, 425px); min-height: 650px; padding: 22px 14px 27px; border-radius: 67px 67px 47px 47px / 67px 67px 53px 53px; border: 3px solid #5565a3; background: linear-gradient(105deg,#253d81 0%,#152864 12%,#15276a 28%,#101c4c 62%,#14225c 84%,#334b8f 100%); box-shadow: inset 8px 1px 12px #aac0f522,inset -11px -4px 13px #0008, 0 0 0 5px #071126,0 15px 9px -5px #0004,0 42px 85px #0008; }
.phone::before { content: ""; position: absolute; inset: 6px; border-radius: inherit; border: 1px solid #8b9bc222; pointer-events: none; }
.phone::after { content: ""; position: absolute; width: 4px; height: 98px; top: 149px; left: -6px; border-radius: 4px 0 0 4px; background: #394b81; box-shadow: 0 2px 0 #111c45; }
.phone-top { position: relative; height: 87px; display: flex; flex-direction: column; align-items: center; }
.earpiece { display: block; width: 65px; height: 10px; border-radius: 50%; background: linear-gradient(#081234,#263a74); box-shadow: 0 -1px 2px #607bb8, inset 0 2px 4px #0009; margin: 7px 0 14px; }
.brand { color: #f1f4ff; font: 950 20px/1 Arial, sans-serif; letter-spacing: -.085em; text-shadow: 0 1px 1px #000b; }
.model { position: absolute; right: 3px; bottom: 8px; font: 700 8px/1 system-ui,sans-serif; color: #b7c3ef; letter-spacing: .1em; }
.screen-assembly { background: linear-gradient(160deg,#8091bd,#5e72a1 46%,#8697bf); border: 2px solid #263c76; border-radius: 29px 29px 20px 20px; padding: 14px 6px 5px; box-shadow: inset 0 2px 4px #dfe9ff5e,inset 0 -5px 7px #263a7499,0 6px 7px #07124066; }
.screen-labels { display: flex; justify-content: space-between; align-items: center; color: #172c61; font: 800 10px/1 Arial,sans-serif; margin: 0 5px 7px; }
.screen-labels span:first-child, .screen-labels span:last-child { font-size: 7px; letter-spacing: 1px; }
.lcd-frame { position: relative; background: var(--lcd); border: 4px solid #485f67; border-radius: 6px; overflow: hidden; aspect-ratio: 7/4; box-shadow: inset 0 2px 7px #20341b77,0 0 0 1px #a5c6af; }
.lcd-frame canvas { display: block; width: 100%; height: 100%; aspect-ratio: 7/4; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; cursor: crosshair; }
.lcd-glare { position: absolute; inset: 0; background: linear-gradient(150deg,#fff2 3%,transparent 32%,transparent 80%,#122a1210); pointer-events: none; }
.screen-caption { display: flex; justify-content: space-between; padding: 8px 12px 3px; font-size: 8px; color: #1c3163; font-weight: 900; letter-spacing: .1em; }
.control-deck { padding: 10px 13px 0; }
.softkey-row { display: flex; justify-content: space-between; padding: 0 3px; margin: 0 0 6px; }
.phone-btn, .nav-btn { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; color: #f7f9ff; border: 1px solid #6679b6; background: linear-gradient(145deg,#3d5596,#263c7c 60%,#223670); box-shadow: inset 0 1px 3px #a9b9ec55,0 3px 0 #07163e,0 5px 6px #03091a75; transition: transform .08s,box-shadow .08s,background .08s; }
.phone-btn:active, .nav-btn:active, .phone-btn.is-pressed, .nav-btn.is-pressed { transform: translateY(2px); box-shadow: inset 0 2px 4px #08143d,0 1px 0 #07163e; }
.softkey { min-width: 90px; height: 34px; border-radius: 20px 13px 17px 12px; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.softkey small { font-size: 11px; margin-left: 4px; }
.softkey--right { border-radius: 13px 20px 12px 17px; color: #ffe0e3; }
.nav-pad { display: grid; width: 174px; height: 144px; margin: 1px auto 11px; grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); align-items: stretch; justify-items: stretch; }
.nav-btn { border-radius: 12px; color: #b6d0ef; font-size: 18px; line-height: 1; }
.nav-btn--up { grid-area: 1/2; }.nav-btn--left { grid-area: 2/1; }.nav-btn--center { grid-area: 2/2; }.nav-btn--right { grid-area: 2/3; }.nav-btn--down { grid-area: 3/2; }
.nav-btn--center { border-radius: 50%; color: #e2f7d2; background: linear-gradient(#344e8a,#172c68); font-size: 11px; font-weight: 950; }
.number-pad { display: grid; width: min(100%, 200px); margin: 0 auto; grid-template-columns: repeat(3,1fr); gap: 6px 8px; padding: 1px 2px; }
.num-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 24px 18px 23px 17px; height: 30px; min-width: 0; }
.num-btn:nth-child(3n) { border-radius: 17px 24px 18px 23px; }
.num-btn b { font-size: 14px; line-height: 15px; font-weight: 750; }
.num-btn small { font-size: 8px; min-height: 9px; line-height: 9px; letter-spacing: .04em; color: #bdc8e9; }
.phone-bottom { display: flex; gap: 8px; justify-content: center; margin: 19px auto 0; }
.phone-bottom span { width: 4px; height: 4px; border-radius: 50%; background: #354f91; box-shadow: 0 1px 0 #657ac1; }
.phone-footnote { margin: 25px 0 0; text-align: center; }
.help { align-self: center; max-width: 345px; }
.help h2 { font-size: clamp(24px,2.4vw,36px); letter-spacing: -.06em; line-height: 1.22; margin: 26px 0 16px; }
.help h2 span { color: var(--accent); }
.help > p:not(.credit) { line-height: 1.8; color: var(--muted); font-size: 13px; margin: 0 0 26px; }
.help-card { display: flex; align-items: flex-start; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.help-card__icon { flex: 0 0 34px; display: grid; place-items: center; height: 34px; background: #1c3147; border: 1px solid #334f61; color: var(--accent); font-size: 18px; border-radius: 10px; font-weight: 800; }
.help-card div { display: grid; gap: 6px; }
.help-card strong { font-size: 10px; letter-spacing: .1em; }
.help-card div span { font-size: 11px; color: var(--muted); line-height: 1.55; }
.tip { display: flex; gap: 11px; align-items: flex-start; margin-top: 22px; padding: 14px; border-radius: 12px; background: #a0e57d10; border: 1px solid #a0e57d30; }
.tip__marker { flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #14271a; font-weight: 900; font-size: 12px; height: 18px; }
.tip p { color: #b7c7b7; font-size: 11px; line-height: 1.65; margin: 0; }
.tip strong { color: var(--accent); }
.credit { color: #647b95; font-size: 10px; line-height: 1.65; margin-top: 26px; }
.credit strong { color: #8ba1b7; }
.site-foot { padding: 27px 0 35px; border-top: 1px solid var(--hairline); color: #627792; font-size: 9px; letter-spacing: .12em; font-weight: 700; gap: 15px; }
.site-foot { flex-wrap: wrap; }
.site-foot a { color: var(--accent); text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(225px,1fr) minmax(295px,425px); justify-content: center; gap: 32px; }
  .intro { grid-column: 1; grid-row: 1; }
  .phone-section { grid-column: 2; grid-row: 1 / span 2; }
  .help { max-width: none; grid-column: 1; grid-row: 2; align-self: start; }
  .help-card { padding: 11px 0; }
  .help h2 { font-size: 27px; }
}
@media (max-width: 740px) {
  .app-shell { width: min(100% - 32px, 450px); }
  .site-head { padding: 21px 0; }
  .head-label { font-size: 8px; letter-spacing: .06em; }
  .hero { display: flex; flex-direction: column; padding: 35px 0 24px; gap: 36px; }
  .intro, .help { width: 100%; max-width: 420px; }
  .intro { display: contents; }
  .eyebrow, h1, .intro-copy { align-self: stretch; }
  .eyebrow { margin: 0 0 -20px; }
  h1 { font-size: clamp(37px,9vw,49px); margin: 0 0 -22px; }
  .intro-copy { margin: 0 0 -10px; max-width: none; }
  .score-cards { align-self: stretch; margin: 0 0 -24px; }
  .quick-actions { align-self: stretch; margin: 0 0 -8px; }
  .phone-section { order: 1; align-self: stretch; }
  .settings-panel { order: 2; width: 100%; margin: 0; }
  .help { order: 3; }
  .phone { width: min(100%, 425px); }
  .phone-footnote { margin-top: 24px; }
  .site-foot { align-items: flex-start; flex-direction: column; line-height: 1.5; }
}
@media (max-width: 360px) {
  .app-shell { width: calc(100% - 20px); }
  .phone { padding-inline: 10px; min-height: 610px; }
  .head-label { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.player-panel { margin: 0 0 16px; }
.player-panel label { display: block; margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.player-panel input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #324358; border-radius: 10px; background: #17273a; color: var(--ink); font: inherit; font-size: 16px; }
.player-panel p, .ranking-note { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 8px 0 0; }
.ranking-panel { margin-bottom: 28px; padding: 18px; border: 1px solid var(--hairline); border-radius: 15px; background: rgba(23,37,62,.63); }
.ranking-panel h2 { margin: 0 0 8px; font-size: 26px; }
.ranking-list { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: ranking; }
.ranking-list li { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--hairline); counter-increment: ranking; font-size: 13px; }
.ranking-list li::before { content: counter(ranking) "."; color: var(--muted); }
.ranking-list li:first-child { color: var(--accent); }
.ranking-list .ranking-name { overflow-wrap: anywhere; }
.ranking-list strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 740px) {
  .player-panel { align-self: stretch; margin: 0 0 -16px; }
}

/* Carcasas inspiradas en cuatro terminales clásicos; comparten área de juego. */
.model-hint { margin: 0 0 20px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.9; }
.model-hint span { color: var(--accent); font-weight: 750; }
.model-hint kbd { padding: 2px 6px; border: 1px solid #6679b6; border-radius: 4px; color: var(--ink); font: inherit; }
.phone[data-model="alcatel-511"] { border-color: #a2aca9; border-radius: 85px 85px 60px 60px / 65px 65px 90px 90px; background: linear-gradient(100deg,#d1d6d1,#83928e 17%,#465d59 48%,#6d817a 80%,#b9c4bd); }
.phone[data-model="alcatel-511"]::after { background: #687e74; }
.phone[data-model="alcatel-511"] .brand { color: #172f2c; font-size: 18px; letter-spacing: .12em; text-shadow: 0 1px #e1e8df; }
.phone[data-model="alcatel-511"] .model { color: #e3e9e2; letter-spacing: .08em; }
.phone[data-model="alcatel-511"] .earpiece { width: 88px; height: 8px; background: repeating-linear-gradient(90deg,#233d36 0 3px,#8c9c91 3px 6px); box-shadow: 0 1px 2px #ecf1e2; }
.phone[data-model="alcatel-511"] .screen-assembly { border-color: #334b43; border-radius: 40px 40px 32px 32px; background: linear-gradient(135deg,#d4dbcd,#9caf9c); box-shadow: inset 0 2px 4px #f6fff2,0 5px 8px #263c37; }
.phone[data-model="alcatel-511"] .screen-labels, .phone[data-model="alcatel-511"] .screen-caption { color: #324b3c; }
.phone[data-model="alcatel-511"] .phone-btn, .phone[data-model="alcatel-511"] .nav-btn { border-color: #d1dbce; color: #203b2e; background: linear-gradient(#e9eedf,#a8b8a5); box-shadow: inset 0 1px 3px #fff9,0 3px 0 #32493f,0 5px 6px #142c2875; }
.phone[data-model="alcatel-511"] .num-btn { border-radius: 50%; }
.phone[data-model="alcatel-511"] .num-btn small { color: #385447; }
.phone[data-model="nokia-8210"] { border-color: #bd6468; border-radius: 45px 45px 65px 65px / 55px 55px 80px 80px; background: linear-gradient(100deg,#df7479,#9a2539 18%,#681a2c 55%,#a9384d 85%,#e98d8c); }
.phone[data-model="nokia-8210"]::after { background: #832a3c; }
.phone[data-model="nokia-8210"] .model { color: #ffd9d7; }
.phone[data-model="nokia-8210"] .earpiece { width: 54px; background: #391822; box-shadow: inset 0 2px 4px #19080e,0 1px 1px #e69795; }
.phone[data-model="nokia-8210"] .screen-assembly { border-color: #5d2532; border-radius: 20px 20px 35px 35px; background: linear-gradient(120deg,#e5d8cf,#afaaa3); box-shadow: inset 0 2px 4px #fff8,0 5px 8px #3f102a; }
.phone[data-model="nokia-8210"] .screen-labels, .phone[data-model="nokia-8210"] .screen-caption { color: #54383b; }
.phone[data-model="nokia-8210"] .phone-btn, .phone[data-model="nokia-8210"] .nav-btn { border-color: #e3ccbf; background: linear-gradient(#f5e7d9,#bfaea5); color: #502737; box-shadow: inset 0 1px 3px #fff9,0 3px 0 #521b2b,0 5px 6px #28051475; }
.phone[data-model="nokia-8210"] .num-btn { border-radius: 45% 45% 35% 35%; }
.phone[data-model="nokia-8210"] .num-btn small { color: #694d54; }
.phone[data-model="siemens-c35"] { border-color: #929ba2; border-radius: 35px 35px 42px 42px; background: linear-gradient(100deg,#a5aeb6,#424b57 15%,#232c37 60%,#535f6a 85%,#abb8c3); }
.phone[data-model="siemens-c35"]::after { top: 24px; left: -9px; height: 65px; width: 7px; background: #404b57; border-radius: 5px 5px 0 0; }
.phone[data-model="siemens-c35"] .brand { font-size: 17px; letter-spacing: .14em; }
.phone[data-model="siemens-c35"] .model { color: #e4e8eb; }
.phone[data-model="siemens-c35"] .earpiece { width: 74px; height: 8px; border-radius: 3px; background: repeating-linear-gradient(0deg,#14202c 0 2px,#778695 2px 3px); }
.phone[data-model="siemens-c35"] .screen-assembly { border-color: #161f2a; border-radius: 12px; background: linear-gradient(135deg,#c3cad0,#77858e); box-shadow: inset 0 2px 4px #fff8,0 5px 8px #141c29; }
.phone[data-model="siemens-c35"] .screen-labels, .phone[data-model="siemens-c35"] .screen-caption { color: #273947; }
.phone[data-model="siemens-c35"] .phone-btn, .phone[data-model="siemens-c35"] .nav-btn { border-color: #a9b5bf; background: linear-gradient(#cfd8df,#899ca9); color: #162c40; box-shadow: inset 0 1px 3px #fff9,0 3px 0 #15202b,0 5px 6px #09142075; border-radius: 7px; }
.phone[data-model="siemens-c35"] .num-btn small { color: #324c60; }
.phone[data-model="siemens-c35"] .nav-btn--center { background: linear-gradient(#80bade,#497695); color: #071e2e; }
.phone:not([data-model="nokia-3310"]) .phone-btn:active,
.phone:not([data-model="nokia-3310"]) .nav-btn:active { box-shadow: inset 0 2px 4px #0005,0 1px 0 #17222b; }
