/* SÃ¼per Haso ve HÃ¼so â€” arayÃ¼z. Tek gÃ¶rÃ¼nÃ¼m: oyunun Ã¼stÃ¼nde buzlu cam paneller, yuvarlak kalÄ±n yazÄ±, gÃ¼neÅŸ sarÄ±sÄ± vurgu. */
@font-face { font-family: 'Baloo 2'; font-weight: 400 800; font-display: swap; src: url('fonts/baloo-2-latin-ext-wght-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Baloo 2'; font-weight: 400 800; font-display: swap; src: url('fonts/baloo-2-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* dÃ¼zen: tam ekran tuval; menÃ¼ler ortada buzlu cam panel; dokunmatik tuÅŸlar kÃ¶ÅŸelerde */
  --ink: #16123a;
  --glass: rgba(28, 22, 70, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --text: #fffaf0;
  --muted: #cfc8ff;
  --sun: #ffc93c;
  --sun-deep: #ff8a1f;
  --haso: #ffc23a;
  --huso: #62b0ff;
  --pink: #ff5a8a;
  --font: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--text); overflow: hidden; overscroll-behavior: none; }
body { font-family: var(--font); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
#game { position: fixed; inset: 0; display: block; }
#safe { position: fixed; visibility: hidden; pointer-events: none; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }

/* ---- MenÃ¼ katmanÄ± ---- */
#ui { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow-y: auto; touch-action: pan-y;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse at 50% 40%, rgba(22, 18, 58, 0.1), rgba(22, 18, 58, 0.55)); }
.panel { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 22px 20px; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 28px; box-shadow: 0 24px 60px rgba(8, 4, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); animation: pop 0.28s cubic-bezier(.2, 1.4, .4, 1); }
.panel.wide { width: min(720px, 100%); }
.panel.bare { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
h1, h2, h3 { margin: 0; line-height: 1; text-wrap: balance; }
h2 { font-size: clamp(26px, 6vh, 36px); font-weight: 800; letter-spacing: 0.01em; }
h2.big { font-size: clamp(40px, 11vh, 64px); color: var(--sun); text-shadow: 0 4px 0 #8a3a0a; }
h3 { font-size: 26px; font-weight: 800; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.logo { display: flex; flex-direction: column; align-items: center; gap: 0; transform: rotate(-3deg); filter: drop-shadow(0 8px 0 rgba(20, 10, 50, 0.35)); }
.logo .super { font-size: clamp(16px, 4.6vh, 26px); font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; padding: 2px 18px 0 22px; border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--sun-deep)); color: #fff; box-shadow: 0 3px 0 #8a1f3f; margin-bottom: -4px; z-index: 1; }
.logo .names { display: flex; align-items: baseline; gap: 12px; font-size: clamp(54px, 18vh, 112px); font-weight: 800; line-height: 0.95; }
.logo .names > span { -webkit-text-stroke: 0.09em #1b1240; paint-order: stroke fill; text-shadow: 0 0.06em 0 #1b1240; }
.logo .n1 { color: var(--haso); }
.logo .n2 { color: var(--huso); }
.logo .ve { font-size: 0.36em; color: #fff; }
.tag { margin: 0; max-width: 36ch; font-size: clamp(15px, 3.6vh, 19px); font-weight: 600; line-height: 1.3; text-shadow: 0 2px 6px rgba(10, 6, 40, 0.8); }
.stats { margin: 0; font-size: 18px; line-height: 1.35; max-width: 34ch; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.col { display: flex; flex-direction: column; gap: 10px; width: min(340px, 100%); }

.btn { font: inherit; font-size: 20px; font-weight: 800; color: #24184f; background: #fffaf0; border: 0; border-radius: 18px; padding: 10px 22px 8px; min-height: 50px;
  cursor: pointer; box-shadow: 0 5px 0 #a99fd9; transition: transform 0.08s, box-shadow 0.08s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #a99fd9; }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn.primary { background: linear-gradient(180deg, #ffe066, var(--sun) 55%, #ffad2a); box-shadow: 0 5px 0 #c4620a; font-size: 26px; padding-inline: 40px; }
.btn.primary:active { box-shadow: 0 1px 0 #c4620a; }
.btn.small { font-size: 17px; min-height: 42px; padding: 6px 18px 4px; }
.btn.icon { width: 50px; padding: 0; }
.btn.danger { background: #ffc2cf; box-shadow: 0 5px 0 #b8456a; }
.btn.toggle { justify-content: space-between; gap: 16px; }
.btn.toggle[aria-pressed="false"] { background: #b8b2dc; }

.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; width: 100%; }
.lvl { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px; min-width: 0; cursor: pointer; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35); border-radius: 20px; background: linear-gradient(160deg, var(--a), var(--b)); box-shadow: 0 5px 0 rgba(10, 6, 40, 0.45);
  text-shadow: 0 2px 4px rgba(10, 6, 40, 0.7); transition: transform 0.1s; }
.lvl:active { transform: translateY(3px); }
.lvl:disabled { filter: grayscale(1) brightness(0.5); cursor: not-allowed; }
.lvl:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.lvlNum { font-size: 34px; font-weight: 800; line-height: 1; }
.lvlName { font-size: 14px; font-weight: 700; line-height: 1.1; }
.lvlStars { display: flex; gap: 3px; margin-top: 2px; }
.lvlStars i, .stars .star { display: block; width: 16px; height: 16px; background: rgba(10, 6, 40, 0.45);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.lvlStars i.on { background: var(--sun); }
.lvlMeta { font-size: 12px; font-weight: 600; opacity: 0.9; }

.stars { display: flex; gap: 10px; align-items: flex-end; }
.stars .star { width: 54px; height: 54px; }
.stars .star:nth-child(2) { width: 68px; height: 68px; }
.stars .star.on { background: linear-gradient(180deg, #fff3a0, var(--sun) 60%, var(--sun-deep)); animation: starIn 0.5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes starIn { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }
.results { margin: 0; display: grid; gap: 6px; width: min(300px, 100%); }
.results > div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 17px; }
.results > div.ok { background: rgba(94, 224, 122, 0.22); }
.results dt { font-weight: 600; color: var(--muted); }
.results dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }

.kids { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; text-align: left; }
.kid { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); border: 2px solid transparent; }
.kid.haso { border-color: var(--haso); }
.kid.huso { border-color: var(--huso); }
.kid.haso h3 { color: var(--haso); }
.kid.huso h3 { color: var(--huso); }
.kid p { margin: 4px 0 0; font-size: 15px; line-height: 1.3; }
.kid.pick { font: inherit; color: inherit; cursor: pointer; align-items: center; transition: transform 0.1s; }
.kid.pick:active { transform: scale(0.97); }
.kid.pick.sel { background: rgba(255, 255, 255, 0.18); }
.kid.pick:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.kid.pick .kidHead { width: 72px; height: 72px; }
.kids.one { grid-template-columns: 1fr; width: min(460px, 100%); }
.kidHead { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff3df; overflow: hidden; }
.tips { margin: 0; padding-left: 20px; text-align: left; font-size: 15px; line-height: 1.4; max-width: 60ch; }

/* ---- Dokunmatik kontroller ---- */
#touch { position: fixed; inset: 0; z-index: 10; touch-action: none; }
#pad, #btnA, #btnB, #btnS { position: absolute; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 2px solid rgba(255, 255, 255, 0.4); color: #fff; }
#pad { left: max(20px, env(safe-area-inset-left, 0px)); bottom: max(18px, env(safe-area-inset-bottom, 0px)); width: 172px; height: 86px; border-radius: 43px; background: rgba(20, 14, 60, 0.28); display: flex; }
#pad .arrow { flex: 1; position: relative; border-radius: 40px; }
#pad .arrow::after { content: ''; position: absolute; top: 50%; left: 50%; border: 15px solid transparent; transform: translate(-50%, -50%); }
#pad .left::after { border-right: 21px solid rgba(255, 255, 255, 0.9); border-left-width: 0; }
#pad .right::after { border-left: 21px solid rgba(255, 255, 255, 0.9); border-right-width: 0; }
#pad.l .left, #pad.r .right { background: rgba(255, 255, 255, 0.25); }
#btnA, #btnB, #btnS { border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4); line-height: 1; }
#btnA { width: 92px; height: 92px; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(22px, env(safe-area-inset-bottom, 0px)); background: rgba(255, 201, 60, 0.4); font-size: 14px; }
#btnB { --c: var(--haso); width: 72px; height: 72px; right: calc(max(20px, env(safe-area-inset-right, 0px)) + 106px); bottom: max(14px, env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--c) 45%, transparent); font-size: 16px; }
#btnS { width: 62px; height: 62px; right: calc(max(20px, env(safe-area-inset-right, 0px)) + 64px); bottom: calc(max(22px, env(safe-area-inset-bottom, 0px)) + 104px); background: rgba(98, 176, 255, 0.4); font-size: 15px; }
#btnSIcon canvas { display: block; border-radius: 50%; background: #fff3df; }
#btnA.on, #btnB.on, #btnS.on { transform: scale(0.9); filter: brightness(1.4); }
#pauseBtn { position: fixed; z-index: 15; top: max(10px, env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px));
  width: 46px; height: 46px; border-radius: 16px; border: 2px solid rgba(255, 255, 255, 0.45); background: rgba(20, 14, 60, 0.4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; gap: 6px; align-items: center; justify-content: center; cursor: pointer; }
#pauseBtn i { width: 6px; height: 18px; border-radius: 3px; background: #fff; display: block; }
#rotate { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(22, 18, 58, 0.94); font-size: 26px; font-weight: 800; color: var(--sun); text-align: center; padding: 24px; pointer-events: none; }
[hidden] { display: none !important; }

@media (max-height: 430px) {
  .panel { padding: 14px 16px; gap: 10px; border-radius: 22px; }
  .kids { gap: 8px; } .kid { padding: 8px; } .kid p { font-size: 13px; } .tips { font-size: 13px; }
  .stars .star { width: 40px; height: 40px; } .stars .star:nth-child(2) { width: 50px; height: 50px; }
  .btn.primary { font-size: 22px; padding-inline: 30px; }
}
@media (max-width: 560px) { .kids { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .panel, .stars .star.on { animation: none; } .btn, .lvl { transition: none; } }

/* ---- Arkadaşlarla oyna ---- */
.btn.duo { background: linear-gradient(180deg, #8fd0ff, var(--huso) 60%, #3d8fe6); color: #10204a; box-shadow: 0 5px 0 #1f5aa8; }
.btn.duo:active { box-shadow: 0 1px 0 #1f5aa8; }
.btn:disabled { opacity: 0.5; pointer-events: none; }
.err { margin: 0; min-height: 1.3em; color: #ffb0c0; font-weight: 700; font-size: 16px; }
#onlineErr:empty { display: none; }
.roomList { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; width: 100%; }
.roomBtn { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 0; min-width: 0; padding: 6px 4px 5px; border-radius: 16px; cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.18); box-shadow: 0 4px 0 rgba(10, 6, 40, 0.4); transition: transform 0.1s; }
.roomBtn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(10, 6, 40, 0.4); }
.roomBtn i { font-style: normal; font-size: 26px; line-height: 1.15; }
.roomBtn b { font-size: 16px; line-height: 1.1; }
.roomBtn span { max-width: 100%; font-size: 12px; font-weight: 700; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roomBtn.open { background: linear-gradient(180deg, rgba(94, 224, 122, 0.4), rgba(94, 224, 122, 0.15)); border-color: #5ee07a; }
.roomBtn.open span { color: #c8ffd4; }
.roomBtn:disabled { opacity: 0.45; cursor: default; }
.roomName { font-size: clamp(36px, 11vh, 58px); font-weight: 800; line-height: 1; color: var(--sun); text-shadow: 0 4px 0 #8a3a0a; }
.duoKids { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; width: 100%; }
.duoKid { --c: var(--huso); position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15); width: 104px; box-sizing: border-box; transition: opacity 0.2s, border-color 0.2s; }
.duoKid b { max-width: 100%; font-size: 17px; line-height: 1.1; color: var(--c); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duoKid .kidHead { width: 54px; height: 54px; }
.duoKid .kidHead.empty { display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); color: var(--muted); font-size: 30px; font-weight: 800; }
.duoKid span { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.duoKid.on { border-color: var(--c); }
.duoKid.off { opacity: 0.5; border-style: dashed; }
.duoKid .kick { position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: #e0386a; color: #fff;
  font: 800 18px/22px var(--font); cursor: pointer; }
@media (max-height: 420px) {
  .duoKid { flex-direction: row; gap: 6px; width: auto; max-width: 160px; padding: 4px 12px 4px 4px; } .duoKid .kidHead { width: 34px; height: 34px; } .duoKid .kidHead canvas { width: 34px !important; height: 34px !important; }
  .duoKid .kidHead.empty { font-size: 20px; } .duoKid span { display: none; } .roomName { font-size: 32px; } #ui-room { gap: 10px; }
  .roomList { grid-template-columns: repeat(6, 1fr); gap: 6px; } .roomBtn i { font-size: 20px; } .roomBtn b { font-size: 14px; }
  .podium { gap: 5px; } .podium li { padding: 3px 12px 3px 6px; font-size: 16px; } .podium canvas { width: 30px; height: 30px; }
}
/* ---- Profil, oyun modları, yarış sonucu ---- */
.btn.kart { background: linear-gradient(180deg, #ff9ab8, var(--pink) 60%, #e0386a); color: #fff; box-shadow: 0 5px 0 #8a1f3f; text-shadow: 0 2px 0 rgba(120, 20, 50, 0.5); }
.btn.kart:active { box-shadow: 0 1px 0 #8a1f3f; }
.profile { display: flex; align-items: center; gap: 14px; width: min(340px, 100%); }
.avBtn { position: relative; flex: 0 0 auto; width: 64px; height: 64px; padding: 0; border-radius: 50%; border: 3px solid var(--sun); background: #fff3df; overflow: hidden; cursor: pointer; }
.avBtn canvas { width: 100%; height: 100%; display: block; }
.avPlus { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: #24184f; font: 800 20px/24px var(--font); }
.avBtn.has .avPlus { display: none; }
.profCol { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.nameIn { width: 100%; box-sizing: border-box; font: inherit; font-size: 22px; font-weight: 800; color: #24184f; background: #fffaf0; border: 3px solid transparent; border-radius: 16px;
  padding: 4px 12px 0; min-height: 46px; user-select: text; -webkit-user-select: text; outline: none; }
.nameIn:focus { border-color: var(--sun); }
.nameIn::placeholder { color: #b8b2dc; }
.profBtns { display: flex; gap: 12px; }
.link { font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 2px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.mode { font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 8px 10px 6px; border: 0; border-radius: 20px; cursor: pointer;
  color: #24184f; box-shadow: 0 5px 0 rgba(10, 6, 40, 0.45); }
.mode b { font-size: 19px; line-height: 1.1; }
.mode span { font-size: 13px; font-weight: 700; opacity: 0.8; }
.mode:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(10, 6, 40, 0.45); }
.mode.coop { background: linear-gradient(180deg, #ffe066, var(--sun)); }
.mode.race { background: linear-gradient(180deg, #a8f07a, #5cc94a); }
.mode.kart { background: linear-gradient(180deg, #ffb0c8, var(--pink)); color: #fff; }
.modes[hidden], .mode[hidden], .btn[hidden] { display: none; }
.modes.one { grid-template-columns: 1fr; width: min(320px, 100%); }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.logo.ralli .n2 { color: #ff8ab0; }
.podium { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: min(400px, 100%); }
.podium li { display: flex; align-items: center; gap: 12px; padding: 6px 14px 6px 8px; border-radius: 18px; background: rgba(255, 255, 255, 0.1); font-size: 19px; font-weight: 800; }
.podium li.win { background: linear-gradient(90deg, rgba(255, 201, 60, 0.45), rgba(255, 201, 60, 0.1)); }
.podium .rank { width: 30px; text-align: center; font-size: 24px; color: var(--sun); }
.podium canvas { width: 40px; height: 40px; border-radius: 50%; background: #fff3df; flex: 0 0 auto; }
.podium .nm { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .tm { font-variant-numeric: tabular-nums; }
@media (max-height: 420px) { .mode { min-height: 60px; } .mode span { display: none; } .avBtn { width: 52px; height: 52px; } }
.podium .gap { font-size: 14px; font-weight: 700; color: #ff9ab8; font-variant-numeric: tabular-nums; }

/* ---- Telefonlarda hız: hareketli oyun alanının üstündeki bulanıklık (buzlu cam) her karede yeniden
   hesaplanır ve telefon ekran kartını çok yorar. Dokunmatik cihazlarda bulanıklık yerine koyu, yarı saydam zemin. ---- */
@media (pointer: coarse) {
  .panel:not(.bare) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(30, 24, 78, 0.93); }
  #pad, #btnA, #btnB, #btnS, #pauseBtn { -webkit-backdrop-filter: none; backdrop-filter: none; }
  #pad { background: rgba(20, 14, 60, 0.42); }
  #pauseBtn { background: rgba(20, 14, 60, 0.55); }
  .panel { box-shadow: 0 16px 40px rgba(8, 4, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
}

/* ---- Dört yönlü çubuk (futbol) ---- */
#stickKnob { display: none; }
#pad.stick { width: 150px; height: 150px; border-radius: 50%; bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: grid; place-items: center; }
#pad.stick .arrow { display: none; }
#pad.stick #stickKnob { display: block; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); border: 2px solid rgba(255, 255, 255, 0.85); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
#btnSLabel { font-size: 13px; }

/* ---- Nasıl oynanır ---- */
.howSteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; width: 100%; text-align: left; }
.howStep { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.howStep i { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 201, 60, 0.18); font-style: normal; font-size: 24px; }
.howStep b { display: block; font-size: 17px; line-height: 1.15; color: var(--sun); }
.howStep span { display: block; font-size: 14.5px; line-height: 1.35; color: var(--text); opacity: 0.92; }
.howKeys { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; width: 100%; }
.howKey { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.howKey kbd { font: inherit; font-weight: 800; color: #24184f; background: #fffaf0; border-radius: 8px; padding: 1px 9px 0; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
@media (max-height: 420px) { .howStep { padding: 8px; } .howStep i { width: 36px; height: 36px; font-size: 20px; } .howStep span { font-size: 13px; } #ui-howto { gap: 8px; } }
.raceDetail { list-style: none; margin: 0; padding: 8px 14px; width: min(420px, 100%); box-sizing: border-box; border-radius: 14px; background: rgba(0, 0, 0, 0.22); display: grid; grid-template-columns: 1fr 1fr; gap: 1px 18px; }
.raceDetail li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.raceDetail li b { color: var(--text); }
.raceDetail li.good b { color: #5ee07a; }
.raceDetail li.bad b { color: #ff9ab8; }
@media (max-width: 520px) { .raceDetail { grid-template-columns: 1fr; } }
#touch.dim { opacity: 0.16; transition: opacity 0.3s; }
