:root {
  color-scheme: dark;
  --ink: #06101d;
  --ink-2: #0b1728;
  --paper: #f5f1e8;
  --muted: #9eb0bf;
  --line: rgba(255,255,255,.16);
  --lime: #c9ff3d;
  --coral: #ff684f;
  --cyan: #43e5ef;
  --football: #b9f34a;
  --handball: #45e4ee;
  --safe-t: max(16px, env(safe-area-inset-top));
  --safe-r: max(18px, env(safe-area-inset-right));
  --safe-b: max(16px, env(safe-area-inset-bottom));
  --safe-l: max(18px, env(safe-area-inset-left));
  font-family: Inter, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; height: 100dvh; margin: 0; overflow: hidden; background: var(--ink); overscroll-behavior: none; }
body { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
button { color: inherit; border: 0; cursor: pointer; }
button:focus-visible, canvas:focus-visible { outline: 3px solid var(--paper); outline-offset: 4px; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svg-library { position: fixed; width: 0; height: 0; overflow: hidden; }
#i-mark path:first-child, #i-mark path:last-child { fill: currentColor; stroke: none; }
#i-mark .cut { fill: none; stroke: var(--ink); stroke-width: 5; }
#i-play path { fill: currentColor; stroke: none; }

#app { position: fixed; inset: 0; width: 100%; height: var(--app-height, 100dvh); overflow: hidden; }
.screen { width: 100%; height: 100%; }
.screen { position: absolute; inset: 0; display: none; overflow: hidden; background: var(--ink); }
.screen.active { display: block; animation: screen-in .32s ease both; }
@keyframes screen-in { from { opacity: 0; transform: scale(1.012); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: scale(1.04) translate3d(-.7%,0,0); } to { transform: scale(1.1) translate3d(.7%,-.5%,0); } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }

.boot-reel, .sport-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boot-reel { filter: saturate(.9) contrast(1.05); }
.boot-wash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(18,47,70,.2), rgba(4,9,18,.75) 68%), linear-gradient(90deg, rgba(3,8,14,.72), transparent 50%, rgba(3,8,14,.72)); }
.boot-brand { position: relative; z-index: 2; width: min(680px, 88vw); height: 100%; margin: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.boot-brand > svg { width: 76px; height: 76px; color: var(--lime); filter: drop-shadow(0 8px 30px rgba(201,255,61,.28)); }
.boot-brand p { margin: 15px 0 0; color: var(--lime); font-weight: 900; font-size: 11px; letter-spacing: .34em; }
.boot-brand h1 { margin: -4px 0 -12px; font-family: "Arial Black", "Avenir Next Condensed", sans-serif; font-style: italic; font-size: clamp(62px, 10vw, 140px); line-height: 1; letter-spacing: -.08em; color: var(--paper); text-shadow: 0 14px 60px #000; }
.boot-brand > span { color: var(--coral); font-size: clamp(18px, 2.4vw, 30px); font-weight: 1000; letter-spacing: .42em; margin-left: .42em; }
.boot-brand .giant { margin-top: 42px; min-width: 230px; }
.boot-brand small { margin-top: 18px; color: #d9e1e8; font-size: 10px; font-weight: 800; letter-spacing: .24em; }

.topbar { position: relative; z-index: 20; height: 78px; padding: var(--safe-t) var(--safe-r) 8px var(--safe-l); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(5,14,25,.86); backdrop-filter: blur(18px); }
.topbar.transparent { background: linear-gradient(#03101be8, transparent); border: 0; }
.brand-button { display: flex; align-items: center; gap: 10px; background: none; padding: 4px; text-align: left; }
.brand-button > svg { width: 36px; height: 36px; color: var(--lime); }
.brand-button span { display: flex; flex-direction: column; line-height: 1; }
.brand-button b { font-family: "Arial Black", sans-serif; font-size: 17px; letter-spacing: -.04em; }
.brand-button small { margin-top: 5px; color: var(--muted); font-size: 8px; letter-spacing: .18em; font-weight: 900; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.profile-pill { height: 38px; padding: 0 14px; display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 99px; color: #dce5e9; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.profile-pill svg { color: var(--coral); }
.icon-button, .hud-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(8,20,34,.8); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); transition: transform .16s, background .16s; }
.icon-button:hover, .hud-button:hover { transform: translateY(-2px); background: rgba(24,45,61,.95); }

.hub-screen { background: radial-gradient(circle at 50% 25%, #18304a 0, #07111f 43%, #040811 100%); }
.hub-screen::before { content: ""; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.hub-main { position: relative; z-index: 2; height: calc(100% - 78px); padding: clamp(18px, 3vh, 36px) var(--safe-r) calc(var(--safe-b) + 14px) var(--safe-l); display: grid; grid-template-rows: auto 1fr; gap: clamp(14px, 2.6vh, 28px); max-width: 1500px; margin: auto; }
.hub-copy { display: flex; align-items: end; gap: 24px; }
.hub-copy .eyebrow { align-self: center; }
.hub-copy h2 { margin: 0; font-family: "Arial Black", sans-serif; font-size: clamp(28px, 4vw, 58px); letter-spacing: -.055em; }
.hub-copy p { max-width: 420px; margin: 0 0 6px auto; color: #c2ced6; font-size: 14px; }
.eyebrow { display: inline-block; color: var(--lime); font-size: 9px; font-weight: 1000; letter-spacing: .24em; }
.sport-choices { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sport-card { position: relative; min-height: 0; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,.2); background: #0c1c2b; text-align: left; box-shadow: 0 25px 60px rgba(0,0,0,.28); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.sport-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.55); box-shadow: 0 34px 80px rgba(0,0,0,.4); }
.sport-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.sport-card:hover img { transform: scale(1.045); }
.sport-card .sport-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 18%, rgba(1,9,16,.26) 45%, rgba(3,10,18,.96) 100%); }
.handball-card .sport-scrim { background: linear-gradient(180deg, rgba(10,7,38,.1), rgba(13,9,44,.2) 43%, rgba(11,7,34,.96)); }
.sport-card-content { position: absolute; inset: auto 0 0; padding: clamp(20px, 3vw, 38px); display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.sport-icon { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: #07111f; background: var(--football); box-shadow: 0 8px 28px rgba(185,243,74,.2); }
.handball-card .sport-icon { background: var(--handball); }
.sport-icon svg { width: 31px; height: 31px; stroke-width: 2.5; }
.sport-card-content small { font-size: 8px; font-weight: 1000; letter-spacing: .18em; color: #b8c7d0; }
.sport-card-content > b { font-family: "Arial Black", sans-serif; font-style: italic; font-size: clamp(38px, 5vw, 72px); letter-spacing: -.07em; line-height: .95; }
.sport-card-content em { grid-column: 1 / -1; margin-top: 14px; font-size: 13px; font-style: normal; color: #d5dde2; }
.card-cta { grid-column: 1 / -1; margin-top: 20px; display: flex; align-items: center; gap: 8px; color: var(--football); font-size: 10px; font-weight: 1000; letter-spacing: .12em; }
.handball-card .card-cta { color: var(--handball); }
.card-cta svg { width: 12px; height: 12px; }
.oto-note { position: absolute; z-index: 4; left: var(--safe-l); bottom: var(--safe-b); max-width: 310px; display: none; align-items: center; gap: 12px; }
.oto-note .oto-actor { flex: 0 0 54px; }
.oto-note p { display: flex; flex-direction: column; margin: 0; font-size: 10px; }
.oto-note b { color: var(--coral); font-size: 8px; letter-spacing: .12em; }
.oto-note span { color: #d5dde2; margin-top: 4px; line-height: 1.35; }

.sport-home { --accent: var(--football); --accent-2: #f0c944; background: #07140e; }
.sport-home.handball { --accent: var(--handball); --accent-2: var(--coral); background: #0d0a2c; }
.sport-bg { animation: drift 16s ease-in-out infinite alternate; }
.sport-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,10,17,.98) 0, rgba(3,10,17,.88) 34%, rgba(3,10,17,.22) 70%, rgba(3,10,17,.45)), linear-gradient(0deg, rgba(3,10,17,.88), transparent 45%); }
.handball .sport-overlay { background: linear-gradient(90deg, rgba(9,5,34,.98), rgba(9,5,34,.84) 36%, rgba(9,5,34,.2) 70%, rgba(9,5,34,.5)), linear-gradient(0deg, rgba(9,5,34,.9), transparent 45%); }
.home-main { position: relative; z-index: 3; height: calc(100% - 78px); padding: clamp(20px, 4vh, 48px) clamp(var(--safe-r), 6vw, 90px) var(--safe-b); display: grid; grid-template-columns: minmax(330px, 620px) 1fr; grid-template-rows: 1fr auto; gap: 20px 5vw; align-items: center; }
.home-title h2 { margin: 5px 0 10px; font-family: "Arial Black", sans-serif; font-size: clamp(68px, 12vw, 180px); line-height: .84; letter-spacing: -.09em; font-style: italic; text-shadow: 0 16px 60px #000; }
.handball .home-title h2 { color: #f3f1ff; transform: skewX(-4deg); }
.home-title p { max-width: 470px; margin: 0; color: #e0e6e8; font-size: clamp(14px, 1.5vw, 19px); line-height: 1.5; }
.home-actions { justify-self: start; display: grid; width: min(440px, 38vw); gap: 10px; }
.primary, .secondary { min-height: 52px; padding: 12px 18px; border-radius: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 1000; letter-spacing: .04em; transition: transform .15s, filter .15s; }
.primary { color: #07111f; background: var(--accent, var(--lime)); box-shadow: 0 12px 34px color-mix(in srgb, var(--accent, var(--lime)) 28%, transparent); }
.primary:hover, .secondary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.primary.giant { min-height: 66px; padding: 14px 24px; border-radius: 17px; }
.primary.giant > svg { width: 27px; height: 27px; }
.primary span, .secondary span { display: flex; flex-direction: column; align-items: flex-start; }
.primary small, .secondary small { margin-top: 4px; font-size: 9px; font-weight: 750; letter-spacing: .04em; opacity: .74; }
.secondary { justify-content: flex-start; color: var(--paper); border: 1px solid rgba(255,255,255,.2); background: rgba(6,17,28,.77); backdrop-filter: blur(14px); }
.secondary > svg { color: var(--accent, var(--lime)); width: 24px; height: 24px; }
.home-stats { grid-column: 1 / -1; display: flex; gap: 10px; }
.home-stats span { min-width: 110px; padding: 12px 16px; display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); background: rgba(4,12,20,.35); }
.home-stats small { color: #aebbc4; font-size: 7px; font-weight: 1000; letter-spacing: .16em; }
.home-stats b { color: var(--accent); font-size: 22px; }
.home-oto { position: absolute; z-index: 5; right: var(--safe-r); bottom: var(--safe-b); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 7px; border-radius: 60px; background: rgba(4,12,20,.74); border: 1px solid var(--line); backdrop-filter: blur(14px); }
.home-oto .oto-actor { flex: 0 0 48px; }
.home-oto span { display: flex; flex-direction: column; max-width: 210px; }
.home-oto b { font-size: 10px; }
.home-oto small { margin-top: 4px; color: var(--accent); font-size: 7px; font-weight: 1000; letter-spacing: .13em; }

.modes-screen, .tutorial-screen { overflow-y: auto; background: radial-gradient(circle at 75% 0, #173047, transparent 40%), #07111f; }
.simple-header { min-height: 82px; padding: var(--safe-t) var(--safe-r) 12px var(--safe-l); display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); background: rgba(5,14,25,.88); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 4; }
.simple-header div { display: flex; flex-direction: column; }
.simple-header small { color: var(--accent, var(--lime)); font-size: 8px; font-weight: 1000; letter-spacing: .18em; }
.simple-header h2 { margin: 3px 0 0; font-family: "Arial Black", sans-serif; font-size: 22px; letter-spacing: -.04em; }
.modes-main { max-width: 1280px; min-height: calc(100% - 82px); margin: auto; padding: clamp(24px, 5vw, 70px); }
.mode-intro { max-width: 620px; margin-bottom: 28px; }
.mode-intro h3 { margin: 8px 0; font-family: "Arial Black", sans-serif; font-size: clamp(32px, 5vw, 72px); line-height: .9; letter-spacing: -.065em; }
.mode-intro p { color: #b8c7d0; max-width: 500px; line-height: 1.5; }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode-card { position: relative; min-height: 180px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(135deg, rgba(18,42,54,.95), rgba(7,17,31,.92)); text-align: left; transition: transform .18s, border-color .18s; }
.mode-card:hover { transform: translateY(-4px); border-color: var(--accent, var(--lime)); }
.mode-card svg { width: 34px; height: 34px; color: var(--accent, var(--lime)); }
.mode-card small { display: block; margin-top: 22px; color: #92a7b5; font-size: 8px; font-weight: 1000; letter-spacing: .16em; }
.mode-card b { display: block; margin-top: 5px; font-family: "Arial Black", sans-serif; font-size: 22px; }
.mode-card p { margin: 7px 0 0; color: #c5d1d8; font-size: 12px; line-height: 1.4; }
.mode-card.featured { grid-column: span 2; background-size: cover; background-position: center; }
.mode-card.featured::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,13,23,.96), rgba(4,13,23,.5)); }
.mode-card.featured > * { position: relative; }

.tutorial-main { max-width: 1300px; min-height: calc(100% - 82px); margin: auto; padding: clamp(20px, 4vw, 58px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(26px, 5vw, 72px); align-items: center; }
.tutorial-visual { position: relative; aspect-ratio: 12 / 7; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #09233b; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.tutorial-visual canvas { width: 100%; height: 100%; display: block; }
.tutorial-visual .oto-tutorial { position: absolute; width: 25%; max-width: 160px; right: 1%; bottom: -3%; filter: drop-shadow(0 15px 30px #000); }
.tutorial-copy .step-count { color: var(--accent, var(--lime)); font-size: 9px; font-weight: 1000; letter-spacing: .18em; }
.tutorial-step { display: grid; grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tutorial-step > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--accent, var(--lime)); border-radius: 50%; color: var(--accent, var(--lime)); font-weight: 1000; }
.tutorial-step b { display: block; font-size: 15px; }
.tutorial-step p { margin: 5px 0 0; color: #b8c6cf; font-size: 12px; line-height: 1.4; }
.tutorial-copy .primary { margin-top: 24px; width: 100%; }
.text-button { width: 100%; padding: 15px; color: #d7e0e5; background: none; font-size: 10px; font-weight: 1000; letter-spacing: .1em; }

.game-screen { background: #02070c; touch-action: none; }
#gameCanvas { width: 100%; height: 100%; display: block; object-fit: contain; outline: none; touch-action: none; }
.match-hud { position: absolute; z-index: 5; top: var(--safe-t); left: var(--safe-l); right: var(--safe-r); display: flex; justify-content: center; pointer-events: none; }
.scoreboard { height: 50px; padding: 0 14px; display: grid; grid-template-columns: minmax(42px, 90px) 26px 66px 26px minmax(42px, 90px); align-items: center; text-align: center; border-radius: 14px; background: rgba(3,11,18,.86); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 10px 30px rgba(0,0,0,.3); backdrop-filter: blur(12px); }
.scoreboard span { overflow: hidden; text-overflow: ellipsis; font-size: 10px; font-weight: 1000; letter-spacing: .08em; }
.scoreboard b { font-size: 22px; color: var(--paper); }
.scoreboard em { font-style: normal; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--accent, var(--lime)); font-weight: 1000; }
.hud-button { position: absolute; right: 0; pointer-events: auto; }
.desktop-guide { position: absolute; z-index: 5; left: 50%; top: calc(var(--safe-t) + 58px); transform: translateX(-50%); padding: 7px 12px; border-radius: 9px; background: rgba(3,11,18,.62); color: #bfccd4; font-size: 8px; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(8px); transition: opacity .4s; }
.desktop-guide b { color: var(--accent, var(--lime)); margin-left: 8px; }
.desktop-guide b:first-child { margin-left: 0; }
.match-message { position: absolute; z-index: 6; left: 50%; top: 19%; transform: translate(-50%, -8px); min-width: 190px; padding: 10px 18px; display: flex; flex-direction: column; align-items: center; border-radius: 12px; background: rgba(3,11,18,.9); border: 1px solid var(--accent, var(--lime)); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; backdrop-filter: blur(12px); }
.match-message.visible { opacity: 1; transform: translate(-50%, 0); }
.match-message b { font-family: "Arial Black", sans-serif; font-size: 16px; }
.match-message span { margin-top: 3px; color: #c4d1d8; font-size: 9px; }
.lesson-card { position: absolute; z-index: 7; left: 50%; bottom: calc(var(--safe-b) + 18px); width: min(430px, 80vw); transform: translateX(-50%); padding: 14px 18px; border-radius: 15px; background: rgba(3,11,18,.92); border: 1px solid var(--accent, var(--lime)); text-align: center; backdrop-filter: blur(12px); display: none; }
.lesson-card.visible { display: block; }
.lesson-card span { color: var(--accent, var(--lime)); font-size: 8px; font-weight: 1000; letter-spacing: .14em; }
.lesson-card b { display: block; margin-top: 4px; font-family: "Arial Black", sans-serif; font-size: 17px; }
.lesson-card p { margin: 3px 0 0; color: #c1cdd5; font-size: 10px; }
.touch-controls { position: absolute; z-index: 8; inset: auto var(--safe-r) var(--safe-b) var(--safe-l); height: 150px; display: flex; justify-content: space-between; align-items: end; pointer-events: none; }
.joystick { width: 118px; height: 118px; border-radius: 50%; border: 2px solid rgba(255,255,255,.36); background: rgba(3,11,18,.32); box-shadow: inset 0 0 28px rgba(255,255,255,.06); pointer-events: auto; touch-action: none; }
.joystick::before { content: ""; position: absolute; width: 32px; height: 32px; margin: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.joystick span { width: 54px; height: 54px; margin: 30px; display: block; border-radius: 50%; background: rgba(245,241,232,.88); border: 4px solid rgba(3,11,18,.55); box-shadow: 0 8px 22px #0008; transform: translate(0,0); }
.action-cluster { display: grid; grid-template-columns: 76px 92px; grid-template-rows: 56px 82px; gap: 8px; align-items: end; pointer-events: auto; }
.touch-action { border-radius: 50%; background: rgba(4,13,23,.78); border: 2px solid rgba(255,255,255,.34); backdrop-filter: blur(8px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; touch-action: none; transition: transform .08s, background .08s; }
.touch-action.pressed { transform: scale(.93); background: var(--accent, var(--lime)); color: var(--ink); }
.touch-action svg { width: 20px; height: 20px; }
.touch-action b { font-size: 8px; letter-spacing: .05em; }
.touch-action.pass { width: 68px; height: 68px; grid-row: 2; }
.touch-action.shoot { width: 86px; height: 86px; grid-column: 2; grid-row: 2; border-color: var(--accent, var(--lime)); }
.touch-action.sprint { width: 56px; height: 56px; grid-column: 2; grid-row: 1; justify-self: start; }
.orientation-gate { display: none; position: absolute; z-index: 30; inset: 0; background: #07111f; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px; }
.orientation-gate .oto-orientation { width: 120px; margin-bottom: 12px; }
.orientation-gate b { font-family: "Arial Black", sans-serif; font-size: 26px; }
.orientation-gate span { color: #b8c6cf; margin-top: 8px; }

dialog { width: min(630px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; border: 1px solid rgba(255,255,255,.22); border-radius: 22px; color: var(--paper); background: rgba(7,17,31,.97); box-shadow: 0 35px 100px #000a; backdrop-filter: blur(22px); }
dialog::backdrop { background: rgba(1,5,9,.7); backdrop-filter: blur(6px); }
.modal-shell { position: relative; padding: clamp(24px, 5vw, 42px); overflow-y: auto; max-height: calc(100vh - 32px); }
.modal-close { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: var(--paper); font-size: 24px; }
.modal-kicker { color: var(--accent, var(--lime)); font-size: 8px; font-weight: 1000; letter-spacing: .18em; }
.modal-shell h2 { margin: 8px 0 12px; font-family: "Arial Black", sans-serif; font-size: clamp(28px, 6vw, 52px); line-height: .95; letter-spacing: -.05em; }
.modal-shell > #modalContent > p { color: #bcc9d1; line-height: 1.55; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.modal-actions .primary, .modal-actions .secondary { width: 100%; }
.rule-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.rule-item { padding: 15px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.rule-item svg { width: 100%; height: 90px; color: var(--accent, var(--lime)); }
.rule-item b { display: block; font-size: 12px; }
.rule-item p { margin: 5px 0 0; color: #b8c6cf; font-size: 10px; line-height: 1.4; }
.setting-row { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.setting-row span { display: flex; flex-direction: column; }
.setting-row b { font-size: 13px; }
.setting-row small { margin-top: 4px; color: #9eafba; font-size: 10px; }
.setting-row select { min-width: 150px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0a1b2c; color: var(--paper); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: calc(var(--safe-b) + 14px); transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 99px; background: var(--paper); color: var(--ink); font-size: 11px; font-weight: 900; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.reduce-motion * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
body.high-contrast { --paper: #fff; --muted: #d8e1e7; --line: rgba(255,255,255,.42); }
body.large-text { font-size: 118%; }
body.calm .match-message { top: 22%; }

@media (hover:hover) and (pointer:fine) {
  .touch-controls { display: none; }
}
.force-touch .touch-controls { display: flex !important; }

@media (max-width: 900px) {
  .topbar { height: 64px; }
  .profile-pill { display: none; }
  .hub-main { height: calc(100% - 64px); padding-top: 12px; gap: 10px; }
  .hub-copy { gap: 10px; }
  .hub-copy .eyebrow, .hub-copy p { display: none; }
  .hub-copy h2 { font-size: 26px; }
  .sport-choices { gap: 10px; }
  .sport-card { border-radius: 14px; }
  .sport-card-content { padding: 14px; }
  .sport-icon { width: 38px; height: 38px; }
  .sport-icon svg { width: 23px; height: 23px; }
  .sport-card-content > b { font-size: clamp(29px, 7vw, 48px); }
  .sport-card-content em { margin-top: 8px; font-size: 10px; }
  .card-cta { margin-top: 10px; font-size: 8px; }
  .home-main { height: calc(100% - 64px); grid-template-columns: 1fr 330px; padding: 10px var(--safe-r) var(--safe-b) var(--safe-l); }
  .home-title h2 { font-size: clamp(58px, 14vw, 112px); }
  .home-title p { font-size: 12px; }
  .home-actions { width: 310px; gap: 7px; }
  .primary.giant { min-height: 55px; }
  .secondary { min-height: 46px; }
  .home-stats { display: none; }
  .home-oto { display: none; }
  .simple-header { min-height: 64px; }
  .modes-main { padding: 20px; }
  .mode-intro { margin-bottom: 16px; }
  .mode-intro h3 { font-size: 34px; }
  .mode-intro p { font-size: 11px; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .mode-card { min-height: 135px; padding: 15px; }
  .mode-card svg { width: 26px; height: 26px; }
  .mode-card small { margin-top: 12px; }
  .mode-card b { font-size: 17px; }
  .mode-card p { display: none; }
  .tutorial-main { padding: 16px; gap: 20px; }
  .tutorial-step { padding: 10px 0; }
  .tutorial-step p { font-size: 10px; }
  .tutorial-copy .primary { margin-top: 12px; }
  .desktop-guide { display: none; }
  .lesson-card { bottom: calc(var(--safe-b) + 5px); width: 44vw; padding: 10px; }
  .lesson-card p { font-size: 8px; }
}

@media (orientation: portrait) and (max-width: 900px) {
  /* El aviso de rotar SOLO aparece en partido abierto y si no elegiste vertical. */
  body.match-wide:not(.accept-vertical) .game-screen.active .orientation-gate { display: flex; }
  /* Penales y golero son verticales nativos: el arco llena la pantalla. */
  body.match-focus #gameCanvas { object-fit: cover; }
  body.match-wide.accept-vertical #gameCanvas { object-fit: contain; }
  .hub-copy { display: block; }
  .hub-main { overflow-y: auto; }
  .sport-choices { grid-template-columns: 1fr; min-height: 760px; }
  .home-main { grid-template-columns: 1fr; align-content: center; }
  .home-actions { width: 100%; }
  .tutorial-main { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .mode-card.featured { grid-column: span 2; }
}

@media (max-height: 520px) and (orientation: landscape) {
  .topbar, .simple-header { height: 52px; min-height: 52px; padding-top: max(4px, env(safe-area-inset-top)); }
  .brand-button > svg { width: 29px; height: 29px; }
  .hub-main { height: calc(100% - 52px); }
  .sport-card-content { padding: 12px 16px; }
  .sport-icon { width: 34px; height: 34px; }
  .sport-card-content > b { font-size: 35px; }
  .sport-card-content em { display: none; }
  .home-main { height: calc(100% - 52px); }
  .home-title h2 { font-size: 70px; }
  .home-title p { font-size: 11px; }
  .home-actions { grid-template-columns: 1fr 1fr; width: 430px; }
  .home-actions .primary { grid-row: span 2; }
  .home-actions .secondary { min-height: 50px; }
  .tutorial-main { min-height: calc(100% - 52px); padding: 10px 18px; }
  .tutorial-step { padding: 7px 0; }
  .tutorial-copy .primary { min-height: 50px; }
  .touch-controls { height: 126px; }
  .joystick { width: 100px; height: 100px; }
  .joystick span { width: 48px; height: 48px; margin: 24px; }
  .joystick::before { margin: 34px; }
  .action-cluster { transform: scale(.86); transform-origin: right bottom; }
}

/* OTBALL Mobile — Safari/iPhone is the primary layout. */
@media (max-width: 900px), (pointer: coarse) {
  :root {
    --safe-t: max(6px, env(safe-area-inset-top));
    --safe-b: max(6px, env(safe-area-inset-bottom));
    --mobile-header: calc(44px + env(safe-area-inset-top));
  }

  .boot-brand { width: min(520px, 92vw); }
  .boot-brand > svg { width: 48px; height: 48px; }
  .boot-brand p { margin-top: 6px; font-size: 7px; }
  .boot-brand h1 { margin: 0 0 -5px; font-size: clamp(46px, 12vw, 76px); }
  .boot-brand > span { font-size: 14px; }
  .boot-brand .giant { min-width: 190px; min-height: 48px; margin-top: 18px; }
  .boot-brand small { margin-top: 9px; font-size: 7px; }

  .topbar, .simple-header { height: var(--mobile-header); min-height: var(--mobile-header); padding: max(4px, env(safe-area-inset-top)) var(--safe-r) 4px var(--safe-l); }
  .brand-button { gap: 7px; }
  .brand-button > svg { width: 27px; height: 27px; }
  .brand-button b { font-size: 14px; }
  .brand-button small { margin-top: 3px; font-size: 6px; }
  .icon-button { width: 36px; height: 36px; }

  .hub-main { height: calc(100% - var(--mobile-header)); padding: 7px var(--safe-r) calc(var(--safe-b) + 2px) var(--safe-l); gap: 7px; }
  .hub-copy { min-height: 27px; align-items: center; }
  .hub-copy .eyebrow, .hub-copy p { display: none; }
  .hub-copy h2 { font-size: clamp(21px, 4.5vw, 29px); }
  .sport-choices { min-height: 0; gap: 8px; }
  .sport-card { border-radius: 13px; }
  .sport-card-content { padding: 10px 12px; display: flex; align-items: center; gap: 9px; }
  .sport-card-content small, .sport-card-content em, .card-cta { display: none; }
  .sport-icon { width: 36px; height: 36px; flex: 0 0 36px; }
  .sport-icon svg { width: 22px; height: 22px; }
  .sport-card-content > b { font-size: clamp(27px, 5.5vw, 40px); white-space: nowrap; }

  .home-main { height: calc(100% - var(--mobile-header)); padding: 8px var(--safe-r) var(--safe-b) var(--safe-l); grid-template-columns: minmax(0, .88fr) minmax(280px, 1.12fr); grid-template-rows: 1fr; gap: 12px; align-items: center; }
  .home-title { min-width: 0; }
  .home-title .eyebrow { font-size: 6px; letter-spacing: .14em; }
  .home-title h2 { margin: 4px 0 6px; font-size: clamp(46px, 9.2vw, 66px); line-height: .84; }
  .home-title p { max-width: 300px; font-size: 10px; line-height: 1.3; }
  .home-actions { width: 100%; max-width: none; grid-template-columns: 1fr 1fr; grid-template-rows: 70px 48px; gap: 7px; }
  .home-actions .primary { grid-column: 1 / -1; grid-row: 1; }
  .home-actions .secondary { grid-row: 2; min-height: 48px; padding: 7px 10px; }
  .primary.giant { min-height: 70px; padding: 8px 14px; }
  .primary.giant > svg { width: 22px; height: 22px; }
  .primary, .secondary { border-radius: 12px; font-size: 11px; }
  .primary small, .secondary small { display: none; }
  .secondary > svg { width: 19px; height: 19px; }
  .home-stats, .home-oto { display: none; }

  .modes-main { min-height: calc(100% - var(--mobile-header)); padding: 9px var(--safe-r) var(--safe-b) var(--safe-l); }
  .mode-intro { margin: 0 0 8px; }
  .mode-intro .eyebrow, .mode-intro p { display: none; }
  .mode-intro h3 { margin: 0; font-size: 24px; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .mode-card, .mode-card.featured { grid-column: span 1; min-height: 86px; padding: 9px; border-radius: 12px; }
  .mode-card svg { width: 21px; height: 21px; }
  .mode-card small { margin-top: 6px; font-size: 6px; }
  .mode-card b { margin-top: 3px; font-size: 13px; line-height: 1.05; }
  .mode-card p { display: none; }

  .tutorial-main { min-height: calc(100% - var(--mobile-header)); padding: 8px var(--safe-r) var(--safe-b) var(--safe-l); grid-template-columns: minmax(170px, .68fr) minmax(320px, 1.32fr); gap: 14px; }
  .tutorial-visual { border-radius: 14px; }
  .tutorial-visual img { width: 25%; }
  .tutorial-copy .step-count { font-size: 8px; }
  .tutorial-step { grid-template-columns: 32px 1fr; gap: 9px; padding: 7px 0; }
  .tutorial-step > span { width: 28px; height: 28px; font-size: 11px; }
  .tutorial-step b { font-size: 14px; }
  .tutorial-step p { margin-top: 2px; font-size: 11.5px; line-height: 1.2; }
  .tutorial-copy .primary { min-height: 48px; margin-top: 7px; }
  .text-button { min-height: 36px; padding: 5px; font-size: 9.5px; }

  #gameCanvas { object-fit: cover; }
  .match-hud { top: max(4px, env(safe-area-inset-top)); left: var(--safe-l); right: var(--safe-r); }
  .scoreboard { height: 36px; padding: 0 10px; grid-template-columns: 44px 20px 52px 20px 44px; border-radius: 11px; }
  .scoreboard span { font-size: 7px; }
  .scoreboard b { font-size: 16px; }
  .scoreboard em { font-size: 10px; }
  #homeTeam { color: #f7fbff; }
  #awayTeam { color: #ff7465; }
  .hud-button { width: 36px; height: 36px; }
  .desktop-guide { display: none; }

  .match-message { top: 46px; min-width: 92px; padding: 5px 10px; border-radius: 9px; }
  .match-message b { font-size: 12px; }
  .match-message span { display: none; }
  .lesson-card { left: var(--safe-l); top: 48px; bottom: auto; width: 142px; transform: none; padding: 6px 9px; border-radius: 9px; text-align: left; }
  .lesson-card span { font-size: 6px; }
  .lesson-card b { margin-top: 2px; font-size: 11px; }
  .lesson-card p { display: none; }

  .touch-controls { inset: auto var(--safe-r) var(--safe-b) var(--safe-l); height: 90px; align-items: end; }
  .joystick { position: relative; width: 82px; height: 82px; border-width: 1.5px; opacity: .6; transition: opacity .12s, transform .12s; }
  .joystick.active { opacity: 1; transform: scale(1.03); }
  .joystick::before { width: 22px; height: 22px; margin: 29px; }
  .joystick span { width: 38px; height: 38px; margin: 20px; border-width: 3px; }
  .action-cluster { display: flex; flex-direction: row; align-items: end; gap: 9px; transform: none; }
  .touch-action { flex: 0 0 auto; background: rgba(4,13,23,.66); border-width: 1.5px; box-shadow: 0 7px 18px #0005; }
  .touch-action.pass { width: 52px; height: 52px; color: #e9fbff; background: rgba(16,48,69,.9); border-color: rgba(116,224,255,.72); }
  .touch-action.shoot { width: 66px; height: 66px; background: color-mix(in srgb, var(--accent, var(--lime)) 16%, rgba(4,13,23,.92)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, var(--lime)) 8%, transparent), 0 8px 20px #0008; }
  .touch-action.sprint { display: none !important; }
  .touch-action svg { width: 17px; height: 17px; }
  .touch-action b { font-size: 7px; }

  dialog { width: min(600px, calc(100vw - 22px)); max-height: calc(var(--app-height, 100dvh) - 14px); border-radius: 15px; }
  .modal-shell { max-height: calc(var(--app-height, 100dvh) - 16px); padding: 16px 20px; }
  .modal-close { width: 34px; height: 34px; right: 9px; top: 8px; }
  .modal-shell h2 { margin: 5px 38px 7px 0; font-size: clamp(23px, 5.2vw, 34px); }
  .modal-shell > #modalContent > p { margin: 7px 0; font-size: 10px; line-height: 1.35; }
  .modal-actions { gap: 7px; margin-top: 11px; }
  .modal-actions .primary, .modal-actions .secondary { min-height: 44px; }
  .rule-visual { grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 9px 0; }
  .rule-item { padding: 7px; border-radius: 9px; }
  .rule-item svg { height: 27px; }
  .rule-item b { font-size: 10px; }
  .rule-item p { font-size: 8.5px; line-height: 1.25; }
  .rules-content > p { display: none; }
  .rules-content h2 { margin-bottom: 5px; font-size: clamp(23px, 4.7vw, 30px); }
  .rules-content .rule-visual { margin: 6px 0 8px; }
  .rules-content .rule-item { min-height: 60px; display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-content: center; }
  .rules-content .rule-item svg { grid-row: 1 / 3; width: 40px; height: 32px; }
  .rules-content .rule-item b { font-size: 11.5px; }
  .rules-content .rule-item p { margin: 2px 0 0; font-size: 10.5px; line-height: 1.16; }
  .rules-content > .primary { min-height: 42px; }
}

@media (max-height: 360px) and (orientation: landscape) {
  :root { --mobile-header: calc(42px + env(safe-area-inset-top)); }
  .topbar, .simple-header { height: var(--mobile-header); min-height: var(--mobile-header); padding-top: max(2px, env(safe-area-inset-top)); padding-bottom: 2px; }
  .hub-main, .home-main { height: calc(100% - var(--mobile-header)); }
  .home-title h2 { font-size: 52px; }
  .home-title p { display: none; }
  .home-actions { grid-template-rows: 64px 46px; }
  .primary.giant { min-height: 64px; }
  .tutorial-copy .primary.giant { min-height: 46px; }
  .tutorial-step { padding: 5px 0; }
  .tutorial-step p { font-size: 11.5px; }
  .modes-main, .tutorial-main { min-height: calc(100% - var(--mobile-header)); }
}

@media (orientation: portrait) and (max-width: 700px) {
  .hub-main { height: calc(100% - var(--mobile-header)); overflow: hidden; grid-template-rows: auto 1fr; }
  .sport-choices { min-height: 0; grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .sport-card-content > b { font-size: clamp(32px, 10vw, 48px); }
  .home-main { height: calc(100% - var(--mobile-header)); grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: center; padding: 16px var(--safe-r) var(--safe-b) var(--safe-l); overflow-y: auto; }
  .home-title h2 { font-size: clamp(58px, 18vw, 92px); }
  .home-actions { width: 100%; }
  .tutorial-main { grid-template-columns: 1fr; overflow-y: auto; }
  .tutorial-visual { display: none; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
}

/* OTBALL 9 — profiles, customization and private online rooms. */
.profile-chip { min-width: 46px; height: 40px; padding: 4px 10px 4px 4px; display: flex; align-items: center; gap: 8px; border-radius: 99px; color: var(--paper); background: rgba(5,15,26,.74); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.profile-chip > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 50%; color: var(--ink); background: var(--accent, var(--lime)); font-size: 11px; font-weight: 1000; }
.profile-chip > .profile-chip-copy { width: auto; height: auto; display: flex; flex: 1 1 auto; align-items: flex-start; place-items: unset; border-radius: 0; color: var(--paper); background: none; }
.profile-chip b { max-width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 9px; letter-spacing: .08em; }
.profile-pill { background: rgba(5,15,26,.58); }
.online-cta { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }

.profile-screen, .online-screen { background: radial-gradient(circle at 80% 0, color-mix(in srgb, var(--accent, var(--lime)) 13%, transparent), transparent 38%), linear-gradient(145deg, #0a1a2a, #050a12 62%); }
.profile-main { height: calc(100% - 78px); max-width: 1340px; margin: auto; padding: 22px var(--safe-r) var(--safe-b) var(--safe-l); display: grid; grid-template-columns: minmax(230px, 300px) 1fr; gap: 16px; overflow-y: auto; }
.profile-summary, .profile-workspace { border: 1px solid var(--line); border-radius: 20px; background: rgba(7,18,30,.78); box-shadow: 0 24px 70px #0005; backdrop-filter: blur(15px); }
.profile-summary { padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.profile-avatar { position: relative; width: 104px; height: 104px; display: grid; place-items: center; border-radius: 28px; color: var(--ink); background: linear-gradient(145deg, var(--profile-primary, #f5f1e8), var(--profile-secondary, #43e5ef)); box-shadow: inset 0 0 0 5px #ffffff24, 0 18px 38px #0007; }
.profile-avatar svg { width: 54px; height: 54px; stroke-width: 2.6; }
.profile-avatar em { position: absolute; right: -8px; bottom: -8px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #091422; border: 3px solid var(--profile-accent, var(--lime)); font: 1000 12px/1 Arial; }
.profile-summary h3 { margin: 18px 0 3px; font-family: "Arial Black", sans-serif; font-size: 24px; letter-spacing: -.045em; }
.profile-summary > small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.level-bar { width: 100%; margin: 17px 0 13px; text-align: left; }
.level-bar span { display: flex; justify-content: space-between; color: #c9d4da; font-size: 8px; font-weight: 900; }
.level-bar i { height: 7px; margin-top: 7px; display: block; overflow: hidden; border-radius: 99px; background: #ffffff16; }
.level-bar i::after { content: ""; width: var(--level-progress, 30%); height: 100%; display: block; border-radius: inherit; background: var(--profile-accent, var(--lime)); }
.profile-switcher { width: 100%; display: grid; grid-template-columns: 1fr 42px; gap: 7px; }
.profile-switcher select, .field-control input, .field-control select, .online-panel input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--paper); background: #0a1a2a; outline: none; }
.profile-switcher button { border-radius: 11px; color: var(--ink); background: var(--profile-accent, var(--lime)); font-size: 22px; font-weight: 900; }
.profile-mini-stats { width: 100%; margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.profile-mini-stats span { padding: 10px 4px; border-radius: 10px; background: #ffffff0a; }
.profile-mini-stats small { display: block; color: var(--muted); font-size: 6px; letter-spacing: .08em; }
.profile-mini-stats b { display: block; margin-top: 3px; font-size: 18px; }
.profile-workspace { min-width: 0; padding: 18px; }
.profile-tabs { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.profile-tabs button { min-height: 40px; padding: 0 15px; display: flex; align-items: center; gap: 7px; flex: 0 0 auto; border-radius: 10px; color: #aebdc6; background: #ffffff08; font-size: 9px; font-weight: 1000; letter-spacing: .08em; }
.profile-tabs button.active { color: var(--ink); background: var(--profile-accent, var(--lime)); }
.profile-panel { display: none; padding-top: 18px; }
.profile-panel.active { display: block; }
.panel-heading { margin-bottom: 15px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.panel-heading h3 { margin: 0; font-family: "Arial Black", sans-serif; font-size: 26px; letter-spacing: -.04em; }
.panel-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-control { display: flex; flex-direction: column; gap: 6px; }
.field-control > span { color: #aebdc6; font-size: 7px; font-weight: 1000; letter-spacing: .12em; }
.field-control input[type="color"] { min-height: 46px; padding: 4px; }
.color-fields { grid-template-columns: repeat(4, 1fr); }
.save-profile { width: 100%; min-height: 48px; margin-top: 14px; }
.ranking-table { display: grid; gap: 7px; }
.rank-row { min-height: 54px; padding: 8px 12px; display: grid; grid-template-columns: 34px 1fr repeat(3, 70px); align-items: center; gap: 8px; border-radius: 12px; background: #ffffff09; border: 1px solid transparent; }
.rank-row.me { border-color: var(--profile-accent, var(--lime)); background: color-mix(in srgb, var(--profile-accent, var(--lime)) 10%, transparent); }
.rank-row > b:first-child { color: var(--profile-accent, var(--lime)); font-size: 16px; }
.rank-player { display: flex; flex-direction: column; min-width: 0; }
.rank-player b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.rank-player small, .rank-stat small { color: var(--muted); font-size: 7px; }
.rank-stat { text-align: right; }
.rank-stat b { display: block; font-size: 14px; }
.unlock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.unlock-card { min-height: 90px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff07; }
.unlock-card svg { color: var(--profile-accent, var(--lime)); }
.unlock-card b { display: block; margin-top: 10px; font-size: 11px; }
.unlock-card small { color: var(--muted); font-size: 8px; }

.connection-state { margin-left: auto; padding: 7px 10px; border: 1px solid #ffffff24; border-radius: 99px; color: #94a4af; font-size: 7px; font-weight: 1000; letter-spacing: .1em; }
.connection-state.connected { color: #c9ff3d; border-color: #c9ff3d66; }
.online-main { height: calc(100% - 78px); max-width: 1120px; margin: auto; padding: 26px var(--safe-r) var(--safe-b) var(--safe-l); display: grid; grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr); align-items: center; gap: clamp(24px, 6vw, 80px); overflow-y: auto; }
.online-hero h3 { margin: 8px 0 12px; font-family: "Arial Black", sans-serif; font-size: clamp(40px, 6vw, 74px); line-height: .9; letter-spacing: -.06em; }
.online-hero p { max-width: 450px; color: #b8c6cf; font-size: 13px; line-height: 1.55; }
.online-sport-badge { width: fit-content; margin-top: 20px; padding: 10px 15px; display: flex; align-items: center; gap: 10px; border-radius: 13px; border: 1px solid var(--line); background: #ffffff08; }
.online-sport-badge > svg { width: 32px; height: 32px; color: var(--accent); }
.online-sport-badge span { display: flex; flex-direction: column; }
.online-sport-badge small { color: var(--muted); font-size: 6px; font-weight: 900; letter-spacing: .14em; }
.online-sport-badge b { margin-top: 2px; font-size: 13px; }
.online-panel { padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: rgba(7,18,30,.86); box-shadow: 0 25px 70px #0007; backdrop-filter: blur(16px); }
.online-panel label { display: flex; flex-direction: column; gap: 7px; }
.online-panel label > span, .team-choice > span { color: #aebdc6; font-size: 7px; font-weight: 1000; letter-spacing: .13em; }
.online-panel input { font-size: 16px; user-select: text; -webkit-user-select: text; }
.room-code-input { margin-bottom: 9px; text-transform: uppercase; font-weight: 1000; letter-spacing: .22em; }
.online-buttons { margin: 13px 0; display: grid; grid-template-columns: 1fr 26px; align-items: center; gap: 7px; }
.online-buttons > span { color: var(--muted); text-align: center; font-size: 8px; font-weight: 1000; }
.online-buttons .primary { min-height: 48px; }
.online-panel > .secondary { width: 100%; }
.online-note { display: block; margin-top: 13px; color: var(--muted); font-size: 8px; line-height: 1.4; text-align: center; }
.online-lobby { text-align: center; }
.online-lobby > small { color: var(--accent); font-size: 7px; font-weight: 1000; letter-spacing: .16em; }
.room-code { width: 100%; margin: 8px 0 12px; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 14px; border-radius: 13px; color: var(--paper); background: #ffffff08; border: 1px dashed #ffffff40; }
.room-code b { font: 1000 27px/1 "Arial Black", sans-serif; letter-spacing: .18em; }
.room-code span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 7px; font-weight: 900; }
.lobby-players { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lobby-player { min-height: 55px; padding: 8px; display: flex; align-items: center; gap: 8px; text-align: left; border-radius: 12px; background: #ffffff08; border: 1px solid var(--line); }
.lobby-player.empty { color: #778995; border-style: dashed; }
.lobby-player i { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 30px; border-radius: 50%; color: var(--ink); background: var(--accent); font-style: normal; font-weight: 1000; }
.lobby-player b { display: block; font-size: 10px; }
.lobby-player small { color: var(--muted); font-size: 7px; }
.team-choice { margin-top: 10px; display: grid; grid-template-columns: 1fr 86px 86px; align-items: center; gap: 6px; text-align: left; }
.team-choice button { min-height: 36px; border-radius: 9px; color: #b5c3cb; background: #ffffff09; font-size: 8px; font-weight: 1000; }
.team-choice button.active { color: var(--ink); background: var(--accent); }
.online-lobby > p { min-height: 18px; margin: 10px 0; color: #bdc9d1; font-size: 9px; }
.online-lobby .giant { width: 100%; }
.online-match-badge { position: absolute; z-index: 7; top: max(7px, env(safe-area-inset-top)); left: var(--safe-l); height: 30px; padding: 0 9px; display: flex; align-items: center; gap: 6px; border-radius: 99px; color: #c9ff3d; background: #04101acc; border: 1px solid #c9ff3d55; }
.online-match-badge span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.online-match-badge b { font-size: 7px; letter-spacing: .1em; }
.touch-action.shoot.aiming { transform: scale(.94); color: var(--ink); background: var(--accent); box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 20%, transparent), 0 10px 24px #0008; }
.online-spectator .touch-controls, .online-spectator .desktop-guide { display: none !important; }
.touch-controls { opacity: var(--control-opacity, .85); }
.lefty .touch-controls { flex-direction: row-reverse; }
.controls-small .joystick, .controls-small .action-cluster { transform: scale(.86); }
.controls-small .joystick { transform-origin: left bottom; }
.controls-small.lefty .joystick { transform-origin: right bottom; }
.controls-small .action-cluster { transform-origin: right bottom; }
.controls-small.lefty .action-cluster { transform-origin: left bottom; }
.controls-large .joystick, .controls-large .action-cluster { transform: scale(1.12); }
.controls-large .joystick { transform-origin: left bottom; }
.controls-large.lefty .joystick { transform-origin: right bottom; }
.controls-large .action-cluster { transform-origin: right bottom; }
.controls-large.lefty .action-cluster { transform-origin: left bottom; }

@media (max-width: 900px), (pointer: coarse) {
  .profile-chip { width: 36px; min-width: 36px; height: 36px; padding: 3px; }
  .profile-chip > span { width: 28px; height: 28px; flex-basis: 28px; }
  .profile-chip b { display: none; }
  .profile-main, .online-main { height: calc(100% - var(--mobile-header)); }
  .profile-main { padding: 8px var(--safe-r) var(--safe-b) var(--safe-l); grid-template-columns: 180px 1fr; gap: 8px; }
  .profile-summary, .profile-workspace { border-radius: 13px; }
  .profile-summary { padding: 10px; }
  .profile-avatar { width: 58px; height: 58px; border-radius: 17px; }
  .profile-avatar svg { width: 30px; height: 30px; }
  .profile-avatar em { width: 26px; height: 26px; right: -4px; bottom: -4px; font-size: 9px; }
  .profile-summary h3 { margin: 8px 0 2px; font-size: 16px; }
  .level-bar { margin: 8px 0; }
  .profile-mini-stats { padding-top: 7px; }
  .profile-mini-stats span { padding: 6px 2px; }
  .profile-mini-stats b { font-size: 13px; }
  .profile-workspace { padding: 9px; overflow-y: auto; }
  .profile-tabs button { min-height: 34px; padding: 0 10px; font-size: 7px; }
  .profile-panel { padding-top: 9px; }
  .panel-heading { margin-bottom: 8px; }
  .panel-heading h3 { font-size: 18px; }
  .panel-heading p { display: none; }
  .profile-fields { gap: 6px; }
  .field-control { gap: 3px; }
  .field-control input, .field-control select { min-height: 38px; font-size: 12px; }
  .color-fields { grid-template-columns: repeat(4, 1fr); }
  .save-profile { min-height: 40px; margin-top: 8px; }
  .rank-row { min-height: 42px; padding: 5px 8px; grid-template-columns: 24px 1fr repeat(3, 51px); }
  .rank-stat b { font-size: 11px; }
  .unlock-grid { grid-template-columns: repeat(3, 1fr); }
  .unlock-card { min-height: 70px; padding: 8px; }
  .unlock-card b { margin-top: 5px; font-size: 9px; }

  .online-main { padding: 8px var(--safe-r) var(--safe-b) var(--safe-l); grid-template-columns: minmax(190px, .7fr) minmax(310px, 1.3fr); gap: 12px; }
  .online-hero h3 { margin: 5px 0 8px; font-size: clamp(30px, 6.5vw, 46px); }
  .online-hero p { margin: 0; font-size: 10px; line-height: 1.35; }
  .online-sport-badge { margin-top: 10px; padding: 6px 9px; }
  .online-sport-badge > svg { width: 24px; height: 24px; }
  .online-panel { padding: 11px; border-radius: 13px; }
  .online-panel input { min-height: 40px; }
  .online-buttons { margin: 7px 0; }
  .online-buttons .primary { min-height: 42px; }
  .online-note { margin-top: 7px; }
  .room-code { margin: 5px 0 7px; padding: 6px; }
  .room-code b { font-size: 21px; }
  .lobby-player { min-height: 43px; padding: 5px; }
  .team-choice { margin-top: 6px; grid-template-columns: 1fr 72px 72px; }
  .team-choice button { min-height: 31px; }
  .online-lobby > p { margin: 5px 0; min-height: 12px; }
  .online-lobby .giant { min-height: 48px; }
  .online-match-badge { height: 25px; padding: 0 7px; }
}

@media (max-height: 360px) and (orientation: landscape) {
  .profile-main, .online-main { height: calc(100% - var(--mobile-header)); }
  .profile-avatar { width: 50px; height: 50px; }
  .profile-summary h3 { margin-top: 5px; }
  .profile-summary > small, .level-bar span { display: none; }
  .level-bar { margin: 6px 0; }
  .online-hero p, .online-sport-badge { display: none; }
  .online-panel { padding: 8px 11px; }
  .online-panel input { min-height: 36px; }
  .online-buttons { margin: 5px 0; }
  .online-buttons .primary, .online-panel > .secondary { min-height: 37px; }
  .online-note { display: none; }
  .online-lobby .giant { min-height: 42px; }
}

@media (orientation: portrait) and (max-width: 700px) {
  .profile-main { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .profile-summary { display: grid; grid-template-columns: 62px 1fr; column-gap: 12px; text-align: left; align-items: center; }
  .profile-avatar { grid-row: 1 / 4; }
  .profile-summary h3 { margin: 0; }
  .level-bar, .profile-switcher, .profile-mini-stats { grid-column: 1 / -1; }
  .profile-mini-stats { display: none; }
  .profile-workspace { overflow: visible; }
  .online-main { grid-template-columns: 1fr; align-content: start; overflow-y: auto; }
  .online-hero p, .online-sport-badge { display: none; }
  .online-hero h3 { font-size: 36px; }
}

/* OTBALL 10 — mobile clarity, varied loading scenes and expressive Oto. */
.oto-actor {
  position: relative;
  width: 110px;
  aspect-ratio: .88;
  display: block;
  flex: 0 0 auto;
  isolation: isolate;
  animation: oto-breathe 2.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px #0007);
}
.oto-actor > * { position: absolute; display: block; }
.oto-actor .oto-head > *, .oto-actor .oto-body > * { position: absolute; display: block; }
.oto-actor .oto-body { z-index: 1; left: 22%; top: 51%; width: 56%; height: 43%; border-radius: 42% 42% 33% 33%; background: linear-gradient(135deg, #d6aa78, #a66f4e 78%); box-shadow: inset -7px -6px 0 #74463845; }
.oto-actor .oto-body::after { content: ""; position: absolute; left: 15%; right: 15%; top: 14%; height: 18%; border-radius: 99px; background: var(--accent, #c9ff3d); box-shadow: 0 3px 0 #17101b66; }
.oto-actor .oto-head { z-index: 4; left: 13%; top: 5%; width: 74%; height: 62%; border-radius: 46% 46% 48% 48%; background: radial-gradient(circle at 35% 32%, #f0ca98 0 7%, transparent 8%), linear-gradient(145deg, #dfb583, #bd845d 72%); box-shadow: inset -8px -5px 0 #83513b40, 0 5px 0 #17101b22; transform-origin: 50% 82%; transition: transform .25s ease;
}
.oto-actor .oto-ear { z-index: 2; top: 3%; width: 31%; height: 31%; border-radius: 55% 16% 60% 25%; background: linear-gradient(145deg, #443039, #1d1821); transform-origin: 50% 80%; }
.oto-actor .oto-ear.left { left: 7%; transform: rotate(-22deg); }
.oto-actor .oto-ear.right { right: 7%; transform: scaleX(-1) rotate(-22deg); }
.oto-actor .oto-eye { z-index: 2; top: 34%; width: 13%; height: 16%; border-radius: 50%; background: #080a0e; box-shadow: inset 2px 2px 0 #fff, 0 0 0 3px #6f493b2b; animation: oto-blink 4.8s infinite; }
.oto-actor .oto-eye.left { left: 24%; }
.oto-actor .oto-eye.right { right: 24%; }
.oto-actor .oto-muzzle { left: 25%; top: 49%; width: 50%; height: 36%; border-radius: 48% 48% 55% 55%; background: #4a3437; box-shadow: inset 0 -7px 0 #2a2028; }
.oto-actor .oto-nose { z-index: 3; left: 42%; top: 51%; width: 16%; height: 12%; border-radius: 48% 48% 58% 58%; background: #090a0e; box-shadow: inset 2px 2px 0 #ffffff35; }
.oto-actor .oto-mouth { z-index: 3; left: 42%; top: 66%; width: 16%; height: 7%; border-bottom: 3px solid #090a0e; border-radius: 0 0 50% 50%; }
.oto-actor .oto-tongue { z-index: 4; left: 45%; top: 71%; width: 11%; height: 0; border-radius: 0 0 50% 50%; background: #ff7b8e; transition: height .2s ease; }
.oto-actor .oto-paw { z-index: 5; top: 75%; width: 21%; height: 19%; border-radius: 45%; background: #c38d63; box-shadow: inset 0 -4px 0 #774c3a33; }
.oto-actor .oto-paw.left { left: 19%; transform: rotate(5deg); }
.oto-actor .oto-paw.right { right: 19%; transform: rotate(-5deg); }
.oto-actor .oto-tail { z-index: 0; right: 6%; top: 56%; width: 27%; height: 27%; border: 7px solid #a66f4e; border-left-color: transparent; border-radius: 50%; transform-origin: 20% 70%; animation: oto-tail 1.15s ease-in-out infinite alternate; }
.oto-actor .oto-board { z-index: 7; right: -20%; bottom: -3%; width: 52%; height: 40%; border: 4px solid #d8b26b; border-radius: 7%; background: repeating-linear-gradient(0deg, #ecf5ef 0 12%, #b6d8cf 13% 14%); transform: rotate(-7deg); box-shadow: 0 8px 14px #0006; }
.oto-actor .oto-board::after { content: "7"; position: absolute; inset: 16% 0 0; color: #173047; text-align: center; font: 1000 1.3em/1 "Arial Black", sans-serif; }
.oto-small { width: 54px; }
.home-oto .oto-small { width: 48px; }
.oto-actor[data-mood="curious"] .oto-head { transform: rotate(9deg); }
.oto-actor[data-mood="curious"] .oto-ear.right { animation: oto-ear 1.8s ease-in-out infinite; }
.oto-actor[data-mood="focus"] .oto-eye { top: 38%; height: 8%; border-radius: 50% 50% 30% 30%; animation: none; }
.oto-actor[data-mood="focus"] .oto-eye.left { transform: rotate(8deg); }
.oto-actor[data-mood="focus"] .oto-eye.right { transform: rotate(-8deg); }
.oto-actor[data-mood="happy"] { animation: oto-happy .42s ease-in-out infinite alternate; }
.oto-actor[data-mood="happy"] .oto-eye { top: 38%; height: 7%; background: transparent; box-shadow: none; border-top: 3px solid #090a0e; animation: none; }
.oto-actor[data-mood="happy"] .oto-mouth { top: 64%; height: 12%; border-bottom-width: 4px; }
.oto-actor[data-mood="happy"] .oto-tongue { height: 12%; }
.oto-actor[data-mood="surprised"] .oto-eye { top: 31%; width: 15%; height: 20%; animation: none; }
.oto-actor[data-mood="surprised"] .oto-mouth { left: 44%; top: 66%; width: 12%; height: 12%; border: 3px solid #090a0e; border-radius: 50%; }
.oto-actor[data-mood="sad"] .oto-head { transform: translateY(3%) rotate(-4deg); }
.oto-actor[data-mood="sad"] .oto-eye { top: 37%; height: 8%; animation: none; }
.oto-actor[data-mood="sad"] .oto-mouth { transform: rotate(180deg); top: 72%; }
.oto-actor[data-mood="sleep"] .oto-eye { top: 40%; height: 1px; border-radius: 0; background: #090a0e; box-shadow: none; animation: none; }
.oto-actor[data-mood="sleep"]::after { content: "Z"; position: absolute; z-index: 9; right: -2%; top: 0; color: #aeefff; font: 1000 18px/1 Arial; animation: oto-z 1.7s ease-out infinite; }
@keyframes oto-breathe { 50% { transform: translateY(-2%); } }
@keyframes oto-blink { 0%,46%,50%,100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }
@keyframes oto-tail { to { transform: rotate(18deg); } }
@keyframes oto-ear { 50% { transform: scaleX(-1) rotate(-34deg); } }
@keyframes oto-happy { to { transform: translateY(-4%) rotate(1.5deg); } }
@keyframes oto-z { to { transform: translate(16px,-18px) scale(1.35); opacity: 0; } }

.load-stage { position: absolute; z-index: 90; inset: 0; overflow: hidden; background: #030912; color: #f7fbff; }
.load-stage[hidden] { display: none; }
.load-stage.entering { display: block; animation: load-in .22s ease both; }
.load-stage.leaving { animation: load-out .25s ease both; pointer-events: none; }
#loadingCanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.load-shade { position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, transparent 0 18%, #020812aa 68%), linear-gradient(90deg, #020812ee 0 34%, transparent 72%); }
.load-content { position: relative; z-index: 2; width: min(1120px, calc(100% - var(--safe-l) - var(--safe-r) - 36px)); height: 100%; margin: auto; display: grid; grid-template-columns: minmax(170px, .52fr) minmax(330px, 1fr); align-items: center; gap: clamp(16px, 5vw, 80px); }
.load-oto-wrap { display: grid; place-items: center; min-height: 260px; border-radius: 48% 52% 44% 56%; background: radial-gradient(circle, color-mix(in srgb, var(--load-accent, #c9ff3d) 24%, transparent), transparent 66%); }
.oto-loading { width: clamp(130px, 18vw, 220px); }
.load-copy { max-width: 600px; }
.load-copy small { color: var(--load-accent, #c9ff3d); font-size: 9px; font-weight: 1000; letter-spacing: .22em; }
.load-copy h2 { margin: 9px 0 12px; font-family: "Arial Black", sans-serif; font-size: clamp(42px, 7.4vw, 100px); line-height: .84; letter-spacing: -.065em; font-style: italic; }
.load-copy p { max-width: 520px; min-height: 42px; margin: 0 0 22px; color: #d5e0e7; font-size: clamp(12px, 1.4vw, 17px); line-height: 1.45; }
.load-progress { width: min(420px, 100%); height: 7px; overflow: hidden; border-radius: 99px; background: #ffffff17; box-shadow: inset 0 0 0 1px #ffffff1c; }
.load-progress i { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--load-accent, #c9ff3d), #fff); box-shadow: 0 0 16px var(--load-accent, #c9ff3d); transition: width .12s linear; }
.load-copy > span { display: block; margin-top: 8px; color: #91a4b0; font-size: 7px; font-weight: 1000; letter-spacing: .17em; }
.load-stage[data-kind="football"] { --load-accent: #b9f34a; }
.load-stage[data-kind="handball"] { --load-accent: #45e4ee; }
.load-stage[data-kind="online"] { --load-accent: #a48bff; }
.load-stage[data-kind="profile"] { --load-accent: #ffc76e; }
@keyframes load-in { from { opacity: 0; } }
@keyframes load-out { to { opacity: 0; transform: scale(1.015); } }

.team-key { position: absolute; z-index: 7; left: var(--safe-l); top: calc(var(--safe-t) + 4px); display: flex; gap: 5px; pointer-events: none; }
.team-key span { height: 30px; padding: 0 8px 0 5px; display: flex; align-items: center; gap: 6px; border-radius: 99px; color: #e8f1f4; background: rgba(3,11,18,.8); border: 1px solid #ffffff24; backdrop-filter: blur(9px); }
.team-key i { width: 17px; height: 17px; display: block; border-radius: 50%; background: var(--team-primary, #f7fbff); border: 4px solid var(--team-secondary, #087fa5); box-shadow: 0 0 0 2px var(--team-accent, #c9ff3d); }
.team-key-rival i { border-radius: 3px; transform: rotate(45deg) scale(.78); background: #ff6557; border-color: #671b38; box-shadow: 0 0 0 2px #ffb39f; }
.team-key b { font-size: 7px; letter-spacing: .08em; }
.online-match-badge { top: calc(var(--safe-t) + 39px); }

.oto-reaction { position: absolute; z-index: 12; right: calc(var(--safe-r) + 8px); top: 70px; width: 170px; min-height: 82px; padding: 8px 10px 8px 78px; display: flex; align-items: center; border-radius: 16px; color: #f7fbff; background: rgba(3,11,18,.88); border: 1px solid var(--accent, #c9ff3d); box-shadow: 0 18px 40px #0008; opacity: 0; transform: translateX(24px) scale(.96); pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2,.9,.2,1.2); }
.oto-reaction.visible { opacity: 1; transform: none; }
.oto-reaction-actor { position: absolute; left: 7px; bottom: -5px; width: 68px; }
.oto-reaction > b { font: 1000 10px/1.25 "Arial Black", sans-serif; letter-spacing: -.02em; }

#app[data-sport="football"] .game-screen { --team-rival: #ff6557; }
#app[data-sport="handball"] .game-screen { --team-rival: #ff7a55; }

@media (max-width: 900px), (pointer: coarse) {
  .load-content { width: calc(100% - var(--safe-l) - var(--safe-r) - 18px); grid-template-columns: 148px 1fr; gap: 12px; }
  .load-oto-wrap { min-height: 150px; }
  .oto-loading { width: 128px; }
  .load-copy small { font-size: 6px; }
  .load-copy h2 { margin: 5px 0 7px; font-size: clamp(31px, 7vw, 50px); }
  .load-copy p { min-height: 25px; margin: 0 0 12px; font-size: 10px; line-height: 1.3; }
  .load-progress { height: 5px; }
  .load-copy > span { margin-top: 5px; font-size: 6px; }

  .team-key { top: calc(var(--safe-t) + 40px); gap: 4px; }
  .team-key span { height: 23px; padding: 0 6px 0 4px; gap: 4px; }
  .team-key i { width: 12px; height: 12px; border-width: 3px; box-shadow: 0 0 0 1px var(--team-accent, #c9ff3d); }
  .team-key b { font-size: 5.5px; }
  .online-match-badge { top: calc(var(--safe-t) + 67px); }
  .oto-reaction { right: calc(var(--safe-r) + 2px); top: 45px; width: 56px; min-height: 58px; padding: 0; border-radius: 16px; }
  .oto-reaction-actor { width: 48px; left: 4px; bottom: -5px; }
  .oto-reaction > b { display: none; }

  .touch-controls { height: 82px; }
  .joystick { width: 74px; height: 74px; background: radial-gradient(circle, rgba(255,255,255,.13) 0 24%, transparent 25%), rgba(3,11,18,.5); border-color: rgba(255,255,255,.48); }
  .joystick::before { width: 20px; height: 20px; margin: 25px; }
  .joystick span { width: 34px; height: 34px; margin: 18px; }
  .action-cluster { gap: 8px; }
  .touch-action.pass { width: 48px; height: 48px; }
  .touch-action.shoot { width: 60px; height: 60px; }
  .touch-action b { font-size: 6px; }
  .touch-action svg { width: 16px; height: 16px; }

  .sport-choices { height: 100%; }
  .sport-card { min-height: 0; }
  .sport-card::after { content: ""; position: absolute; inset: 0; border: 2px solid transparent; border-radius: inherit; pointer-events: none; }
  .football-card::after { border-color: #b9f34a55; }
  .handball-card::after { border-color: #45e4ee55; }
}

@media (max-height: 360px) and (orientation: landscape) {
  .load-content { grid-template-columns: 112px 1fr; }
  .load-oto-wrap { min-height: 105px; }
  .oto-loading { width: 92px; }
  .load-copy p { display: none; }
  .load-copy h2 { font-size: 32px; }
  .oto-reaction { top: 42px; }
  .team-key { top: calc(var(--safe-t) + 36px); }
}

@media (orientation: portrait) and (max-width: 700px) {
  .load-content { grid-template-columns: 1fr; grid-template-rows: 40% 1fr; align-content: center; text-align: center; }
  .load-oto-wrap { min-height: 0; height: 100%; }
  .oto-loading { width: min(145px, 36vw); }
  .load-copy { align-self: start; }
  .load-copy p { margin-left: auto; margin-right: auto; }
  .load-progress { margin: auto; }
}

/* OTBALL 10.1 — every customization feature must be visible and self-explanatory. */
.profile-pill-copy, .profile-chip-copy { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.profile-pill-copy b, .profile-chip-copy b { font-size: 9px; font-weight: 1000; letter-spacing: .08em; }
.profile-pill-copy small, .profile-chip-copy small { max-width: 100px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 6px; font-weight: 900; letter-spacing: .09em; white-space: nowrap; text-overflow: ellipsis; }

.hub-customize { min-height: 46px; margin-left: auto; padding: 7px 14px 7px 9px; display: flex; align-items: center; gap: 9px; flex: 0 0 auto; border: 1px solid #ffc76e88; border-radius: 13px; color: #fff5df; background: linear-gradient(135deg, #442512dd, #14101add); box-shadow: 0 10px 30px #0004; text-align: left; }
.hub-customize > svg { width: 28px; height: 28px; padding: 5px; flex: 0 0 28px; border-radius: 8px; color: #17101b; background: #ffc76e; }
.hub-customize span { min-width: 0; display: flex; flex-direction: column; }
.hub-customize b { font-size: 10px; font-weight: 1000; letter-spacing: .06em; }
.hub-customize small { margin-top: 3px; color: #e6cdb5; font-size: 6px; font-weight: 900; letter-spacing: .08em; }
.personalize-cta { border-color: #ffc76e88; background: linear-gradient(135deg, rgba(67,35,16,.9), rgba(16,18,31,.88)); }
.personalize-cta > svg { color: #ffc76e; }

.profile-guide { min-height: 48px; margin-bottom: 10px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--profile-accent, var(--lime)) 40%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--profile-accent, var(--lime)) 7%, #0a1725); }
.profile-guide > svg { width: 25px; height: 25px; flex: 0 0 25px; color: var(--profile-accent, var(--lime)); }
.profile-guide span { display: flex; flex-direction: column; }
.profile-guide b { font-size: 10px; letter-spacing: .06em; }
.profile-guide small { margin-top: 3px; color: #b8c6cf; font-size: 8px; }
.profile-switcher { grid-template-columns: 1fr 72px; }
.profile-switcher button { font-size: 8px; }
.profile-avatar[data-badge="round"] { border-radius: 50%; }
.profile-avatar[data-badge="diamond"] { border-radius: 22px; clip-path: polygon(50% 0, 96% 28%, 82% 82%, 50% 100%, 18% 82%, 4% 28%); }

.club-live-preview { min-height: 92px; margin: 0 0 12px; padding: 10px 14px; display: flex; align-items: center; gap: 15px; border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(circle at 18% 0, color-mix(in srgb, var(--kit-accent) 20%, transparent), transparent 42%), #081623; }
.kit-figure { position: relative; width: 66px; height: 70px; flex: 0 0 66px; }
.kit-figure .kit-head { position: absolute; z-index: 2; left: 26px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--skin, #d6a474); }
.kit-figure .kit-shirt { position: absolute; left: 10px; top: 14px; width: 48px; height: 40px; display: grid; place-items: center; clip-path: polygon(21% 0, 38% 8%, 62% 8%, 79% 0, 100% 22%, 82% 37%, 76% 100%, 24% 100%, 18% 37%, 0 22%); color: var(--kit-accent); background: linear-gradient(90deg, var(--kit-primary) 0 42%, var(--kit-secondary) 42% 58%, var(--kit-primary) 58%); font: 1000 12px/1 Arial; filter: drop-shadow(0 8px 8px #0007); }
.kit-figure .kit-shorts { position: absolute; left: 21px; top: 51px; width: 27px; height: 15px; clip-path: polygon(0 0, 100% 0, 90% 100%, 55% 80%, 45% 80%, 10% 100%); background: var(--kit-secondary); }
.kit-figure.keeper .kit-shirt { background: linear-gradient(90deg, var(--kit-keeper) 0 42%, var(--kit-secondary) 42% 58%, var(--kit-keeper) 58%); }
.club-live-preview > span { display: flex; flex-direction: column; }
.club-live-preview b { font-size: 11px; }
.club-live-preview small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.35; }

@media (max-width: 900px), (pointer: coarse) {
  .profile-pill { height: 36px; padding: 3px 9px 3px 5px; display: flex; gap: 6px; }
  .profile-pill > svg { width: 20px; height: 20px; }
  .profile-pill-copy b { font-size: 8px; }
  .profile-pill-copy small { max-width: 72px; font-size: 5.5px; }
  .profile-chip { width: auto; min-width: 104px; height: 36px; padding: 3px 9px 3px 3px; }
  .profile-chip b { display: block; }
  .profile-chip-copy small { max-width: 66px; }
  .hub-customize { min-height: 36px; padding: 5px 9px 5px 6px; border-radius: 10px; }
  .hub-customize > svg { width: 25px; height: 25px; flex-basis: 25px; }
  .hub-customize small { display: none; }
  .home-actions { grid-template-columns: repeat(3, 1fr); grid-template-rows: 70px 48px; }
  .home-actions .primary { grid-column: 1 / -1; }
  .home-actions .secondary { grid-row: 2; min-width: 0; justify-content: center; padding: 6px 7px; gap: 6px; }
  .home-actions .secondary span { align-items: center; text-align: center; white-space: nowrap; }
  .profile-guide { min-height: 38px; margin-bottom: 7px; padding: 5px 8px; }
  .profile-guide > svg { width: 20px; height: 20px; flex-basis: 20px; }
  .profile-guide b { font-size: 8px; }
  .profile-guide small { font-size: 6.5px; }
  .club-live-preview { min-height: 74px; margin-bottom: 8px; padding: 6px 10px; }
  .kit-figure { width: 52px; height: 59px; flex-basis: 52px; transform: scale(.82); transform-origin: left center; margin-right: -8px; }
}

@media (max-width: 470px) and (orientation: portrait) {
  .profile-pill-copy small, .profile-chip-copy small { display: none; }
  .hub-customize b { font-size: 8px; }
  .home-actions { grid-template-columns: 1fr; grid-template-rows: 66px repeat(3, 44px); }
  .home-actions .primary { grid-column: 1; grid-row: 1; }
  .home-actions .secondary { grid-row: auto; }
}

/* OTBALL 11 — mobile-first clarity, readable controls and distinct venues. */
.sport-online-badge { position: absolute; z-index: 2; right: clamp(16px, 2.5vw, 30px); top: clamp(16px, 2.5vw, 30px); display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #d9c3ff88; border-radius: 999px; color: #f4ebff; background: #28164dcc; box-shadow: 0 8px 24px #0007; font-size: 9px; font-weight: 1000; letter-spacing: .12em; }
.sport-online-badge i { width: 7px; height: 7px; border-radius: 50%; background: #9cff7b; box-shadow: 0 0 10px #9cff7b; }
.online-cta { border-color: #ad7bffcc; background: linear-gradient(135deg, rgba(83,40,151,.96), rgba(20,20,48,.96)); box-shadow: inset 0 0 0 1px #ffffff12, 0 10px 26px #130a2c88; }
.online-cta > svg { color: #d7bdff; }
.learn-cta > svg { color: #ffd06a; }
.control-state { grid-column: 1 / -1; height: 24px; display: flex; align-items: center; justify-content: center; gap: 6px; align-self: end; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #e9faff; background: rgba(3,12,21,.88); box-shadow: 0 6px 18px #0005; }
.control-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent, var(--lime)); box-shadow: 0 0 8px var(--accent, var(--lime)); }
.control-state b { font-size: 9px; letter-spacing: .12em; }
.control-state[data-mode="defense"] { color: #fff4ee; border-color: #ff806d99; }
.control-state[data-mode="defense"] i { background: #ff806d; box-shadow: 0 0 8px #ff806d; }

@media (max-width: 900px), (pointer: coarse) {
  .hub-customize { display: none; }
  .profile-pill { height: 36px; padding: 3px 9px 3px 6px; display: flex; }
  .profile-pill-copy small { display: none; }
  .profile-chip { width: auto; min-width: 96px; height: 36px; padding: 3px 9px 3px 3px; }
  .profile-chip b { display: block; font-size: 9px; }
  .profile-chip-copy small { display: none; }
  .hub-copy h2 { font-size: clamp(24px, 5vw, 34px); }
  .sport-card-content { padding: 13px 15px; }
  .sport-card-content > b { font-size: clamp(32px, 6vw, 44px); }
  .sport-online-badge { right: 10px; top: 10px; padding: 6px 8px; font-size: 8px; }

  .home-main { grid-template-columns: minmax(210px, .82fr) minmax(315px, 1.18fr); gap: 14px; }
  .home-title .eyebrow { font-size: 8px; }
  .home-title h2 { font-size: clamp(50px, 9.5vw, 72px); }
  .home-title p { font-size: 12px; line-height: 1.35; }
  .home-actions { grid-template-columns: 1fr 1fr; grid-template-rows: 62px 50px 50px; gap: 8px; }
  .home-actions .primary { grid-column: 1 / -1; grid-row: 1; }
  .home-actions .secondary { grid-row: auto; min-height: 50px; padding: 7px 10px; overflow: hidden; font-size: 10px; line-height: 1.05; }
  .home-actions .secondary span { min-width: 0; white-space: normal; }
  .home-actions .secondary svg { flex: 0 0 20px; }
  .primary.giant { min-height: 62px; }
  .primary, .secondary { font-size: 12px; }

  .scoreboard { height: 40px; padding: 0 11px; grid-template-columns: 54px 22px 55px 22px 54px; }
  .scoreboard span { font-size: 9px; }
  .scoreboard b { font-size: 18px; }
  .scoreboard em { font-size: 11px; }
  .hud-button { width: 40px; height: 40px; }
  .team-key { top: calc(var(--safe-t) + 44px); }
  .team-key span { height: 27px; padding: 0 8px 0 5px; gap: 5px; }
  .team-key i { width: 14px; height: 14px; }
  .team-key b { font-size: 8px; }
  .match-message { top: 51px; min-width: 120px; padding: 7px 13px; }
  .match-message b { font-size: 13px; }

  .lesson-card { left: var(--safe-l); top: 53px; width: min(255px, 38vw); padding: 9px 12px; border-radius: 11px; }
  .lesson-card span { font-size: 8px; }
  .lesson-card b { font-size: 14px; }
  .lesson-card p { display: block; margin-top: 4px; font-size: 11px; line-height: 1.25; }

  .touch-controls { height: 104px; }
  .joystick { width: 88px; height: 88px; opacity: .78; background: rgba(3,11,18,.58); border: 2px solid rgba(255,255,255,.54); }
  .joystick::before { width: 24px; height: 24px; margin: 30px; }
  .joystick span { width: 42px; height: 42px; margin: 21px; }
  .action-cluster { display: grid; grid-template-columns: 72px 84px; grid-template-rows: 24px 72px; gap: 6px 8px; align-items: end; }
  .control-state { grid-row: 1; }
  .touch-action.pass, .touch-action.shoot { grid-row: 2; border-radius: 22px; }
  .touch-action.pass { grid-column: 1; width: 72px; height: 62px; }
  .touch-action.shoot { grid-column: 2; width: 84px; height: 72px; }
  .touch-action svg { width: 22px; height: 22px; }
  .touch-action b { font-size: 9px; letter-spacing: .04em; }

  .profile-pill-copy b, .profile-chip-copy b { font-size: 10px; }
  .profile-tabs button { min-height: 38px; font-size: 9px; }
  .profile-guide b { font-size: 10px; }
  .profile-guide small, .field-control span, .online-panel label > span, .team-choice > span { font-size: 9px; }
  .profile-mini-stats small, .online-note, .online-lobby > small, .lobby-player small { font-size: 8px; }
  .online-hero p { font-size: 12px; }
  .online-panel { border-color: #ad7bff66; }
  .online-buttons .primary, .online-panel > .secondary { font-size: 11px; }
}

@media (max-height: 360px) and (orientation: landscape) {
  .home-main { gap: 10px; }
  .home-title h2 { font-size: 52px; }
  .home-actions { grid-template-rows: 56px 46px 46px; gap: 6px; }
  .primary.giant { min-height: 56px; }
  .home-actions .secondary { min-height: 46px; }
  .touch-controls { height: 96px; }
  .joystick { width: 82px; height: 82px; }
  .joystick::before { margin: 27px; }
  .joystick span { margin: 18px; }
  .action-cluster { grid-template-columns: 68px 78px; grid-template-rows: 22px 66px; }
  .touch-action.pass { width: 68px; height: 57px; }
  .touch-action.shoot { width: 78px; height: 66px; }
}


/* ——— OTBALL 11.1: dificultad, joystick flotante y zona táctil ——— */
.skill-picker { display: inline-flex; flex-wrap: wrap; max-width: 100%; gap: 6px; margin: 2px 0 10px; padding: 5px; border-radius: 12px; background: rgba(4,12,20,.55); backdrop-filter: blur(6px); }
.skill-picker button { padding: 8px clamp(8px, 1.6vw, 13px); border-radius: 8px; background: transparent; color: #b7c6cf; font-size: clamp(8.5px, 1.5vw, 10px); font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.skill-picker button.active { background: var(--accent, #c9ff3d); color: #08131c; }
.touch-zone { position: absolute; z-index: 7; left: 0; top: 20%; bottom: 0; width: 46%; touch-action: none; }
.lefty .touch-zone { left: auto; right: 0; }
@media (hover: hover) and (pointer: fine) { .touch-zone { display: none; } }
.force-touch .touch-zone { display: block !important; }
.joystick.floating { position: fixed; transform: translate(-50%, -50%); margin: 0; z-index: 9; }
.large-text .skill-picker button { font-size: 12px; }


/* ——— OTBALL 11.2: layout de partido a prueba de iPhone ——— */
.action-cluster { margin-left: auto; }                      /* nunca se van a la izquierda */
.touch-controls { justify-content: flex-start; }
body.no-fullscreen [data-action="fullscreen"] { display: none !important; }
.match-message { top: calc(var(--safe-t) + 54px); max-width: min(60vw, 430px); }
.control-state { position: absolute; z-index: 8; right: calc(var(--safe-r) + 4px); bottom: calc(var(--safe-b) + 158px); }
@media (max-height: 430px) { .team-key { display: none; } .match-message { top: calc(var(--safe-t) + 46px); padding: 7px 12px; } .scoreboard { transform: scale(.9); transform-origin: top center; } }
@media (max-width: 740px) { .match-message b { font-size: 15px; } .oto-reaction { max-width: 46vw; } }
body.typing .screen.active { overflow: visible; }
input, select { scroll-margin: 130px; }
.profile-main { -webkit-overflow-scrolling: touch; }


/* ——— OTBALL 11.2: tienda, regalo, stickers, chat y festejos ——— */
.gift-button { position: relative; }
.gift-button .gift-dot { display: none; position: absolute; right: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.gift-button.ready .gift-dot { display: block; animation: pulse 1.1s ease-in-out infinite; }
.gift-burst { margin: 14px 0; text-align: center; }
.gift-burst b { display: block; font: 1000 64px/1 "Arial Black", sans-serif; color: var(--lime); }
.gift-burst span { font-weight: 900; letter-spacing: .25em; color: var(--muted); }
.shop-header { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(9,20,32,.75); margin-bottom: 12px; }
.shop-header .oto-actor { width: 54px; height: 54px; position: relative; }
.shop-header b { display: block; } .shop-header small { color: var(--muted); }
.shop-wallet { margin-left: auto; font: 1000 20px "Arial Black", sans-serif; color: var(--lime); font-style: normal; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.shop-card { padding: 12px; border-radius: 13px; background: rgba(10,22,35,.8); border: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; gap: 6px; }
.shop-card.equipped { border-color: var(--lime); }
.shop-card b { font-size: 12px; } .shop-card p { margin: 0; font-size: 11px; color: var(--muted); flex: 1; }
.shop-card button { padding: 9px; border-radius: 9px; background: var(--lime); color: #08131c; font-weight: 900; font-size: 10px; }
.shop-card.equipped button { background: transparent; border: 1px solid var(--lime); color: var(--lime); }
.shop-card button:disabled { background: rgba(255,255,255,.12); color: var(--muted); }
.shop-hint { color: var(--muted); font-size: 11px; }
.unlock-card { position: relative; } .unlock-card.done { border-color: var(--lime); }
.unlock-card .claim { margin-top: 7px; padding: 8px 10px; border-radius: 8px; background: var(--lime); color: #08131c; font-weight: 1000; font-size: 10px; animation: pulse 1.4s ease-in-out infinite; }
.rank-face { flex: 0 0 30px; width: 30px; height: 30px; margin-right: 4px; border-radius: 50%; background: #16283a center/cover; display: grid; place-items: center; font-style: normal; font-weight: 1000; color: var(--lime); }
.cpu-tag { font-style: normal; font-size: 8px; padding: 2px 5px; border-radius: 5px; background: rgba(255,255,255,.14); color: var(--muted); vertical-align: 2px; }
#profileInitial.has-photo { color: transparent; background-size: cover; background-position: center; }
.profile-avatar { background-size: cover; background-position: center; }
.reward-breakdown { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0 4px; }
.reward-breakdown span, .reward-breakdown b { padding: 7px 11px; border-radius: 9px; background: rgba(255,255,255,.09); font-size: 11px; font-weight: 900; }
.reward-breakdown b { background: var(--lime); color: #08131c; }
.sticker-button { position: absolute; z-index: 8; left: calc(var(--safe-l) + 4px); top: calc(var(--safe-t) + 42px); width: 40px; height: 40px; border-radius: 50%; background: rgba(6,15,25,.82); border: 1px solid rgba(255,255,255,.22); color: var(--lime); display: grid; place-items: center; }
.sticker-wheel { position: absolute; z-index: 9; left: calc(var(--safe-l) + 6px); top: calc(var(--safe-t) + 88px); display: none; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border-radius: 13px; background: rgba(4,11,18,.94); border: 1px solid rgba(255,255,255,.15); }
.sticker-wheel.open { display: grid; }
.sticker-wheel button { padding: 9px 11px; border-radius: 9px; background: rgba(255,255,255,.1); font-size: 10px; font-weight: 900; }
.sticker-pop { position: absolute; z-index: 9; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 14px; background: rgba(4,11,18,.92); border: 1px solid var(--accent, var(--lime)); opacity: 0; pointer-events: none; transition: opacity .16s, transform .2s; }
.sticker-pop[data-side="mine"] { left: calc(var(--safe-l) + 8px); bottom: calc(var(--safe-b) + 216px); transform: translateY(8px); }
.sticker-pop[data-side="rival"] { right: calc(var(--safe-r) + 8px); top: calc(var(--safe-t) + 58px); transform: translateY(-8px); }
.sticker-pop.visible { opacity: 1; transform: none; }
.sticker-pop .oto-actor { width: 46px; height: 46px; position: relative; flex: 0 0 46px; }
.sticker-pop b { display: block; font-size: 14px; } .sticker-pop small { color: var(--muted); font-size: 9px; }
.victory-overlay { position: absolute; z-index: 11; inset: 0; display: grid; place-items: center; background: rgba(3,9,16,.55); }
.victory-card { display: grid; place-items: center; gap: 8px; animation: victory-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.victory-card .oto-actor { width: 110px; height: 110px; position: relative; }
.victory-card b { font: italic 1000 clamp(40px, 9vw, 74px) "Arial Black", sans-serif; color: var(--lime); text-shadow: 0 8px 40px rgba(201,255,61,.45); }
@keyframes victory-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -6%; width: 10px; height: 16px; border-radius: 2px; animation: confetti-fall 1.6s linear both; }
@keyframes confetti-fall { to { transform: translateY(115vh) rotate(240deg); } }
.match-message.mega b { font-size: clamp(30px, 7vw, 54px); color: var(--lime); }
.match-message.mega { animation: goal-sweep 1.3s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes goal-sweep { 0% { transform: translate(-160%, 0); opacity: 0; } 18% { transform: translate(-50%, 0); opacity: 1; } 82% { transform: translate(-50%, 0); } 100% { transform: translate(60%, 0); opacity: 0; } }
.lobby-chat-box { margin-top: 10px; border-radius: 13px; background: rgba(8,18,29,.8); border: 1px solid rgba(255,255,255,.1); padding: 9px; }
.lobby-chat { max-height: 120px; overflow-y: auto; display: grid; gap: 4px; margin-bottom: 7px; }
.lobby-chat p { margin: 0; font-size: 11px; color: #dbe6ec; }
.lobby-chat p b { color: var(--cyan); margin-right: 6px; }
.lobby-chat p.mine b { color: var(--lime); }
.chat-row { display: flex; gap: 6px; }
.chat-row input { flex: 1; padding: 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(3,9,16,.8); color: #fff; }
.chat-row .secondary { padding: 8px 12px; }
.chat-stickers { display: flex; gap: 5px; margin-top: 7px; flex-wrap: wrap; }
.chat-stickers button { padding: 6px 9px; border-radius: 8px; background: rgba(255,255,255,.1); font-size: 9px; font-weight: 900; }
.reduce-motion .confetti i, .reduce-motion .match-message.mega { animation-duration: .01s; }


/* ═══ OTBALL 11.3 — PACK VISUAL ═══ */

/* Tipografía con carácter: títulos con capa, inclinación y degradado */
h1, h2, h3, .boot-brand h1 { letter-spacing: -.02em; }
.home-title h2, .hub-copy h2 {
  font-style: italic; letter-spacing: -.035em;
  background: linear-gradient(178deg, #ffffff 30%, var(--accent, var(--lime)) 105%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 0 rgba(2,8,14,.55)) drop-shadow(0 14px 34px rgba(0,0,0,.5));
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--accent, var(--lime)); border-radius: 2px; }
.simple-header h2 { font-style: italic; letter-spacing: -.02em; }
.panel-heading h3, .mode-intro h3, .online-hero h3 { font-style: italic; }

/* Botones con vida: resorte + brillo que barre los primarios */
.primary, .secondary, .mode-card, .sport-card, .touch-action, .shop-card button, .skill-picker button { transition: transform .14s cubic-bezier(.2,1.6,.4,1), box-shadow .18s, filter .18s; }
.primary:active, .secondary:active, .mode-card:active, .shop-card button:active, .skill-picker button:active { transform: scale(.94); }
.primary { position: relative; overflow: hidden; box-shadow: 0 10px 26px rgba(201,255,61,.22), inset 0 -3px 0 rgba(0,0,0,.25); }
.primary::after { content: ""; position: absolute; top: -60%; bottom: -60%; width: 34%; left: -55%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); animation: sheen 3.4s ease-in-out infinite; pointer-events: none; }
@keyframes sheen { 0%, 62% { left: -55%; } 88%, 100% { left: 135%; } }
.primary.giant { box-shadow: 0 16px 40px rgba(201,255,61,.3), inset 0 -4px 0 rgba(0,0,0,.28); }
.sport-card:hover, .mode-card:hover { transform: translateY(-5px) scale(1.015); box-shadow: 0 22px 48px rgba(0,0,0,.5), 0 0 0 2px var(--accent, var(--lime)); }
.icon-button:hover, .hud-button:hover { transform: scale(1.1) rotate(-4deg); }

/* Entrada escalonada de tarjetas */
.mode-grid .mode-card, .sport-choices .sport-card, .home-actions > * { animation: card-in .5s cubic-bezier(.2,1.3,.4,1) both; }
.mode-grid .mode-card:nth-child(2), .home-actions > :nth-child(2) { animation-delay: .05s; }
.mode-grid .mode-card:nth-child(3), .home-actions > :nth-child(3) { animation-delay: .1s; }
.mode-grid .mode-card:nth-child(4), .home-actions > :nth-child(4) { animation-delay: .15s; }
.mode-grid .mode-card:nth-child(5), .home-actions > :nth-child(5) { animation-delay: .2s; }
.mode-grid .mode-card:nth-child(6) { animation-delay: .25s; }
.sport-choices .sport-card:nth-child(2) { animation-delay: .09s; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.reduce-motion .mode-card, .reduce-motion .sport-card, .reduce-motion .home-actions > *, .reduce-motion .primary::after { animation: none !important; }

/* Fondos de menú vivos: motas de luz flotando */
.hub-screen::after, .sport-home::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(3px 3px at 12% 78%, rgba(201,255,61,.5), transparent 60%), radial-gradient(2px 2px at 34% 22%, rgba(69,228,238,.55), transparent 60%), radial-gradient(3px 3px at 61% 64%, rgba(255,255,255,.35), transparent 60%), radial-gradient(2px 2px at 83% 30%, rgba(255,104,79,.45), transparent 60%), radial-gradient(2px 2px at 47% 88%, rgba(201,255,61,.4), transparent 60%);
  animation: motes 13s linear infinite; opacity: .8; }
@keyframes motes { from { transform: translateY(14px); } 50% { transform: translateY(-12px); } to { transform: translateY(14px); } }
.reduce-motion .hub-screen::after, .reduce-motion .sport-home::after { animation: none; }

/* Marcador estilo transmisión */
.scoreboard { position: relative; overflow: hidden; border-left: 4px solid var(--team-primary, var(--accent, var(--lime))); border-right: 4px solid #ff6557; box-shadow: 0 12px 30px rgba(0,0,0,.55); animation: hud-in .55s cubic-bezier(.2,1.4,.4,1) both; }
.scoreboard b { font-variant-numeric: tabular-nums; text-shadow: 0 3px 0 rgba(0,0,0,.4); }
.scoreboard em { font-variant-numeric: tabular-nums; letter-spacing: .06em; }
@keyframes hud-in { from { transform: translate(-50%, -26px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.match-hud .top-actions { animation: hud-in .55s .1s cubic-bezier(.2,1.4,.4,1) both; }

/* Oto: tres caras nuevas */
.oto-actor[data-mood="cheer"] { animation: oto-cheer .38s ease-in-out infinite alternate; }
.oto-actor[data-mood="cheer"] .oto-paw.left { top: 42%; left: 6%; transform: rotate(-42deg); }
.oto-actor[data-mood="cheer"] .oto-paw.right { top: 42%; right: 6%; transform: rotate(42deg); }
.oto-actor[data-mood="cheer"] .oto-eye { top: 37%; height: 7%; background: transparent; box-shadow: none; border-top: 3px solid #090a0e; border-radius: 0; }
.oto-actor[data-mood="cheer"] .oto-mouth { top: 62%; height: 14%; border-bottom-width: 5px; }
.oto-actor[data-mood="cheer"] .oto-tongue { height: 12%; }
@keyframes oto-cheer { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-9%) rotate(2deg); } }
.oto-actor[data-mood="grr"] .oto-eye { top: 36%; height: 10%; border-radius: 12% 60% 50% 50%; }
.oto-actor[data-mood="grr"] .oto-eye.left { transform: rotate(24deg); }
.oto-actor[data-mood="grr"] .oto-eye.right { transform: rotate(-24deg); }
.oto-actor[data-mood="grr"] .oto-mouth { top: 66%; width: 22%; left: 39%; border-bottom: 4px solid #090a0e; border-radius: 40% 40% 0 0; }
.oto-actor[data-mood="grr"] .oto-head { animation: oto-grr .16s linear infinite alternate; }
@keyframes oto-grr { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }
.oto-actor[data-mood="cool"] .oto-eye { top: 33%; height: 15%; width: 17%; border-radius: 18%; background: linear-gradient(150deg, #1b2733, #050a10); box-shadow: 0 0 0 2px var(--accent, #c9ff3d); }
.oto-actor[data-mood="cool"] .oto-eye.left { left: 21%; } .oto-actor[data-mood="cool"] .oto-eye.right { right: 21%; }
.oto-actor[data-mood="cool"] .oto-mouth { top: 67%; width: 20%; left: 40%; }

/* Sticker pop con rebote */
.sticker-pop.visible { animation: sticker-bounce .42s cubic-bezier(.2,1.7,.4,1) both; }
@keyframes sticker-bounce { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sticker-pop b { font-style: italic; }

/* Misiones diarias */
.mission-card { position: relative; z-index: 2; margin: 6px 0 12px; padding: 11px 13px; border-radius: 14px; background: rgba(4,12,20,.68); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); max-width: 470px; }
.mission-card > b { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .12em; color: var(--accent, var(--lime)); }
.mission-card > b svg { width: 15px; height: 15px; }
.mission-row { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.mission-row small { flex: 1; font-size: 10.5px; font-weight: 700; color: #dbe6ec; }
.mission-bar { flex: 0 0 66px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.14); overflow: hidden; }
.mission-bar i { display: block; height: 100%; background: var(--accent, var(--lime)); border-radius: 4px; transition: width .4s cubic-bezier(.2,1,.3,1); }
.mission-row em { font-style: normal; font-size: 9px; font-weight: 900; color: var(--muted); min-width: 34px; text-align: right; }
.mission-row button { padding: 6px 9px; border-radius: 8px; background: var(--lime); color: #08131c; font-weight: 1000; font-size: 9px; animation: pulse 1.3s ease-in-out infinite; }
.mission-row .done-tag { font-size: 9px; font-weight: 1000; color: var(--lime); }
@media (max-height: 500px) { .mission-card { display: none; } }

/* Serie online + compartir */
.series-badge { margin: 8px 0 0; font: 1000 13px "Arial Black", sans-serif; color: var(--lime); letter-spacing: .1em; }
.share-row { display: flex; gap: 6px; }

/* Festejo comprado: overlay más fiesta */
.victory-overlay[data-cele="cele-dance"] .victory-card .oto-actor { animation: oto-cheer .3s ease-in-out infinite alternate; width: 130px; height: 130px; }
.victory-overlay[data-cele="cele-dance"] .victory-card b { animation: pulse .5s ease-in-out infinite; }


/* ═══ OTBALL 11.4 — LAYOUT IPHONE + PERSONALIDAD ═══ */

/* — Distribución de partido a prueba de teléfonos (Safari, sin instalar) — */
.scoreboard { max-width: min(56vw, 430px); }
@media (max-width: 760px) {
  .scoreboard { transform: translateX(-50%) scale(.84); transform-origin: top center; }
  .scoreboard b { font-size: 19px; } .scoreboard em { font-size: 11px; }
  .match-message { top: calc(var(--safe-t) + 46px); max-width: 56vw; padding: 7px 12px; }
  .match-message b { font-size: 14px; } .match-message span { font-size: 9px; }
  .oto-reaction { top: calc(var(--safe-t) + 46px); left: calc(var(--safe-l) + 6px); max-width: 42vw; transform: scale(.9); transform-origin: top left; }
  .online-match-badge { display: none; }
}
@media (pointer: coarse) {
  .lesson-card { bottom: calc(var(--safe-b) + 158px); width: min(340px, 52vw); }
  .control-state { bottom: calc(var(--safe-b) + 162px); }
}
@media (max-height: 400px) {
  .scoreboard { transform: translateX(-50%) scale(.76); }
  .lesson-card { display: none !important; }
  .sticker-button { transform: scale(.85); }
}
body.browser-ios .touch-controls { bottom: max(var(--safe-b), 14px); }
body.browser-ios .game-screen { padding-bottom: 4px; }

/* — Tarjeta VS de presentación — */
.versus-card { position: absolute; z-index: 12; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; padding: 0 6vw; background: linear-gradient(100deg, rgba(3,9,16,.94) 38%, rgba(3,9,16,.75) 50%, rgba(3,9,16,.94) 62%); animation: vs-in .45s cubic-bezier(.2,1.4,.4,1) both; }
.versus-card.leaving { animation: vs-out .4s ease both; }
@keyframes vs-in { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes vs-out { to { opacity: 0; transform: scale(.97); } }
.vs-side { display: grid; justify-items: center; gap: 10px; animation: vs-slide .5s cubic-bezier(.2,1.5,.4,1) both; }
.vs-side.vs-away { animation-name: vs-slide-r; }
@keyframes vs-slide { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes vs-slide-r { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.vs-side i { width: 58px; height: 58px; border-radius: 50%; border: 3px solid var(--accent, var(--lime)); background: radial-gradient(circle at 32% 30%, var(--team-primary, #f5f1e8), var(--team-secondary, #087fa5)); box-shadow: 0 0 30px rgba(201,255,61,.3); }
.vs-side.vs-away i { border-color: #ff6557; background: radial-gradient(circle at 32% 30%, #ff6557, #5b1838); box-shadow: 0 0 30px rgba(255,101,87,.3); }
.vs-side b { font: italic 1000 clamp(15px, 3.4vw, 26px) "Arial Black", sans-serif; text-align: center; max-width: 34vw; }
.vs-mid { font: italic 1000 clamp(38px, 9vw, 72px) "Arial Black", sans-serif; color: var(--accent, var(--lime)); text-shadow: 4px 4px 0 rgba(0,0,0,.5); animation: pulse .5s ease-in-out 2; }
.vs-scene { position: absolute; bottom: 16%; left: 50%; transform: translateX(-50%); font-weight: 900; font-size: 10px; letter-spacing: .3em; color: var(--muted); }
.reduce-motion .versus-card, .reduce-motion .vs-side { animation: none; }

/* — Pantallas de carga con arte del deporte — */
.load-stage { z-index: 40; }
.load-stage::before { content: ""; position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(4px) brightness(.5) saturate(1.15); transform: scale(1.06); }
.load-stage[data-kind="football"]::before { background-image: url('assets/football-stadium.webp'); }
.load-stage[data-kind="handball"]::before { background-image: url('assets/handball-arena.webp'); }
.load-stage[data-kind="online"]::before, .load-stage[data-kind="profile"]::before { background-image: url('assets/oto-mascot.webp'); filter: blur(26px) brightness(.35); }
.load-stage[data-kind="football"] .load-copy h2 { color: var(--football); }
.load-stage[data-kind="handball"] .load-copy h2 { color: var(--handball); }
.load-copy h2 { font-style: italic; letter-spacing: -.02em; text-shadow: 0 6px 24px rgba(0,0,0,.6); }
.load-copy > span { display: inline-block; animation: kicker-slide .6s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes kicker-slide { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.load-progress { height: 8px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.14); box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.load-progress i { background: linear-gradient(90deg, var(--accent, var(--lime)), #fff); box-shadow: 0 0 14px var(--accent, var(--lime)); }

/* — Personalidad: cortes en diagonal, patas de Oto, grano — */
.primary, .secondary { border-radius: 11px; }
.primary.giant, .football-start { clip-path: polygon(3% 0, 100% 0, 97% 100%, 0 100%); border-radius: 4px; }
.simple-header { position: relative; }
.simple-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--accent, var(--lime)) 0 28%, transparent 28.5%); }
.profile-screen .profile-main, .modes-main { position: relative; }
.profile-screen .profile-main::before, .modes-main::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .05; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="90" height="90" viewBox="0 0 24 24" fill="white"><circle cx="7" cy="8.5" r="2"/><circle cx="12" cy="6.5" r="2"/><circle cx="17" cy="8.5" r="2"/><path d="M12 11.2c-3 0-5.6 2.6-5.6 5 0 1.6 1.2 2.6 2.7 2.4 1.1-.2 1.9-.6 2.9-.6s1.8.4 2.9.6c1.5.2 2.7-.8 2.7-2.4 0-2.4-2.6-5-5.6-5z"/></svg>'); background-size: 90px; transform: rotate(-8deg) scale(1.2); }
#app::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035; background-image: repeating-conic-gradient(rgba(255,255,255,.9) 0 .0001%, transparent 0 .0002%); mix-blend-mode: overlay; }

/* — Stats del resultado — */
.match-stats { display: grid; gap: 8px; margin: 10px auto 2px; max-width: 330px; }
.match-stats > div { display: flex; align-items: center; gap: 9px; }
.match-stats small { flex: 0 0 68px; text-align: left; font-size: 9px; font-weight: 900; letter-spacing: .12em; color: var(--muted); }
.stat-bar { flex: 1; height: 8px; border-radius: 5px; background: rgba(255,101,87,.45); overflow: hidden; }
.stat-bar i { display: block; height: 100%; background: var(--accent, var(--lime)); border-radius: 5px; }
.match-stats b { font-variant-numeric: tabular-nums; font-size: 13px; }
.mvp-line { margin: 6px 0 0; font-weight: 900; font-size: 11px; color: #ffd873; letter-spacing: .08em; }


/* ═══ OTBALL 11.5 — CARGA GRANDE, FUEGO Y FOTO ═══ */

/* Pantalla de carga rediseñada: tipografía GRANDE, sin textos raros */
#loadingCanvas { display: none !important; }
.load-content { display: grid; justify-items: center; gap: 4px; width: min(560px, 88vw); text-align: center; }
.load-oto-wrap { display: grid; justify-items: center; }
.load-oto-wrap .oto-actor { width: 104px; height: 104px; position: relative; flex: none; filter: drop-shadow(0 12px 26px rgba(0,0,0,.55)); }
.load-copy { display: grid; justify-items: center; gap: 6px; }
.load-copy > span { font: 900 clamp(11px, 2.6vw, 14px)/1 system-ui; letter-spacing: .3em; color: var(--accent, var(--lime)); }
.load-copy h2 { margin: 2px 0; font: italic 1000 clamp(38px, 8.5vw, 70px)/0.95 "Arial Black", sans-serif; }
.load-copy p { margin: 2px 0 8px; max-width: 460px; font: 700 clamp(13px, 3.2vw, 16px)/1.45 system-ui; color: #e6edf2; text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.load-copy small { padding: 6px 14px; border-radius: 99px; background: rgba(255,255,255,.12); font: 900 10px/1 system-ui; letter-spacing: .22em; color: #cfdbe2; }
.load-progress { width: min(420px, 78vw); margin-top: 10px; }
@media (max-height: 420px) { .load-oto-wrap .oto-actor { width: 74px; height: 74px; } .load-copy h2 { font-size: clamp(30px, 7vw, 46px); } }

/* Barra de FUEGO (momentum) */
.momentum-wrap { position: absolute; z-index: 8; right: calc(var(--safe-r) + 4px); bottom: calc(var(--safe-b) + 196px); display: grid; gap: 3px; justify-items: end; }
.momentum-wrap small { font: 900 8px/1 system-ui; letter-spacing: .24em; color: #ffb36b; }
.momentum-bar { width: 92px; height: 7px; border-radius: 5px; background: rgba(255,255,255,.14); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.momentum-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #ff8a5f, #ffd873); transition: width .35s ease; }
.momentum-wrap.full .momentum-bar { box-shadow: 0 0 14px #ffd873; }
.momentum-wrap.full small { color: #ffd873; animation: pulse .55s ease-in-out infinite; }
@media (hover:hover) and (pointer:fine) { .momentum-wrap { bottom: calc(var(--safe-b) + 58px); } }
@media (max-height: 400px) { .momentum-wrap { display: none; } }

/* Foto del partido en el resultado */
.match-photo { display: block; width: min(300px, 64vw); margin: 10px auto 2px; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); box-shadow: 0 14px 34px rgba(0,0,0,.5); transform: rotate(-1.6deg); }

/* Foto real de Oto en el festejo */
.oto-photo { width: 108px; height: 108px; object-fit: cover; border-radius: 50%; border: 4px solid var(--lime); box-shadow: 0 0 44px rgba(201,255,61,.5); }
.victory-card .oto-actor { display: none; }
.victory-card .oto-photo { animation: victory-pop .5s cubic-bezier(.2,1.6,.4,1) both; }
.shop-header { background: rgba(9,20,32,.75) url('assets/oto-mascot.webp') right -18px center / 92px no-repeat; }
@media (max-width: 700px) { .shop-header { background-image: none; } }

/* Marcador que late al gol */
.scoreboard.scored { animation: score-pop .55s cubic-bezier(.2,1.6,.4,1); }
@keyframes score-pop { 0% { transform: translateX(-50%) scale(1); } 35% { transform: translateX(-50%) scale(1.12); box-shadow: 0 0 34px var(--accent, var(--lime)); } 100% { transform: translateX(-50%) scale(1); } }
@media (max-width: 760px) { @keyframes score-pop { 0% { transform: translateX(-50%) scale(.84); } 35% { transform: translateX(-50%) scale(.95); } 100% { transform: translateX(-50%) scale(.84); } } }

/* Marquesina del deporte en el inicio */
.home-title { position: relative; }
.home-title::before { content: ""; position: absolute; left: -8vw; right: -8vw; top: -34px; height: 22px; opacity: .12; pointer-events: none;
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 60px); color: var(--accent, var(--lime)); transform: skewY(-1.4deg); }

/* Aro del avatar que gira */
.profile-avatar { position: relative; }
.profile-avatar::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 3px dashed var(--profile-accent, var(--lime)); opacity: .6; animation: iconSpin 11s linear infinite; }
@keyframes iconSpin { to { transform: rotate(360deg); } }
.reduce-motion .profile-avatar::before { animation: none; }

/* ============================================================
   V12 · CLUBES, AVISOS, CATEGORÍA Y CONTROLES ELEVABLES
   ============================================================ */
:root { --controls-lift: 14px; }

.gender-picker { margin-top: 10px; }
.gender-picker button { letter-spacing: .06em; }

/* Controles táctiles: altura configurable + respuesta al toque */
.touch-controls { inset: auto var(--safe-r) calc(var(--safe-b) + var(--controls-lift)) var(--safe-l); }
.touch-action.pressed { transform: scale(.9); filter: brightness(1.25); }
.touch-action { transition: transform .08s ease, filter .12s ease; }

/* Campana y punto de aviso */
.bell-button, .club-button { position: relative; }
.bell-dot {
  position: absolute; top: 6px; right: 6px; width: 11px; height: 11px; border-radius: 50%;
  background: #ff5d4a; border: 2px solid #07111f; animation: bellPulse 1.6s infinite;
}
@keyframes bellPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

/* Panel de avisos */
.notif-panel[hidden] { display: none !important; }
.notif-panel {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 60;
  background: linear-gradient(160deg, #0b1a2c, #07111f 70%);
  border-left: 1px solid rgba(190, 226, 255, .16);
  box-shadow: -18px 0 50px rgba(0, 0, 0, .5);
  transform: translateX(105%); transition: transform .22s ease;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 14px calc(env(safe-area-inset-bottom, 0px) + 12px);
}
.notif-panel.open { transform: translateX(0); }
.notif-panel > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.notif-panel > header b { font: 900 clamp(18px, 2.6vw, 24px)/1 'Arial Black', Arial; letter-spacing: .12em; }
.notif-panel > header > div { display: flex; gap: 8px; align-items: center; }
.notif-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.notif-item {
  display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(190, 226, 255, .12);
  border-radius: 14px; padding: 11px 12px; text-align: left; color: inherit; cursor: pointer;
}
.notif-item:active { transform: scale(.985); }
.notif-item.unread { border-color: var(--sport-accent, #c9ff3d); background: rgba(201, 255, 61, .07); }
.notif-item svg { width: 24px; height: 24px; stroke: var(--sport-accent, #c9ff3d); fill: none; stroke-width: 1.7; }
.notif-item b { display: block; font: 900 13px/1.25 Arial; letter-spacing: .04em; }
.notif-item small { display: block; opacity: .75; font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.notif-item em { font: 700 9.5px Arial; opacity: .55; white-space: nowrap; }

/* Pantalla de club */
.club-screen.active { display: flex; flex-direction: column; height: 100%; animation: screen-in .32s ease both; }
#club:not(.active) { display: none !important; }
.club-tabs {
  display: flex; gap: 6px; padding: 4px 14px 10px;
  padding-left: calc(env(safe-area-inset-left, 0px) + 14px);
}
.club-tabs button {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(190, 226, 255, .18);
  background: rgba(255, 255, 255, .05); color: inherit; font: 900 12px Arial; letter-spacing: .08em;
}
.club-tabs button.active { background: var(--sport-accent, #c9ff3d); color: #06131c; border-color: transparent; }
.club-tabs button i { display: inline-block; min-width: 17px; padding: 1px 4px; margin-left: 4px; border-radius: 999px; background: #ff5d4a; color: #fff; font-style: normal; font-size: 10px; }
.club-main {
  flex: 1; overflow-y: auto; padding: 4px 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
  padding-left: calc(env(safe-area-inset-left, 0px) + 14px);
  padding-right: calc(env(safe-area-inset-right, 0px) + 14px);
}
.club-hero {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: linear-gradient(120deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(190, 226, 255, .14); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px;
}
.club-hero-copy h3 { font: 900 clamp(20px, 3.2vw, 30px)/1 'Arial Black', Arial; letter-spacing: .04em; margin: 0 0 4px; }
.club-hero-copy p { margin: 0 0 4px; opacity: .85; font-size: 13px; }
.club-hero-copy small { opacity: .6; font-weight: 700; letter-spacing: .06em; font-size: 10.5px; }
.club-badge {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 16px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04));
  border: 1px solid rgba(190, 226, 255, .25); flex: 0 0 auto;
}
.club-badge svg { width: 62%; height: 62%; stroke: var(--sport-accent, #c9ff3d); fill: none; stroke-width: 1.6; }
.club-level { text-align: right; display: flex; flex-direction: column; gap: 5px; min-width: 130px; }
.club-level b { font: 900 15px 'Arial Black', Arial; letter-spacing: .06em; }
.club-level small { opacity: .6; font-size: 10px; letter-spacing: .05em; }
.club-actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.club-actions-row .primary, .club-actions-row .secondary { flex: 1 1 150px; min-height: 48px; }
.club-actions-row .danger { border-color: rgba(255, 105, 90, .5); color: #ffb3a8; flex: 0 1 130px; }
.club-columns { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }
.club-columns h4 { font: 900 12px Arial; letter-spacing: .14em; opacity: .7; margin: 2px 0 8px; }
.club-chat-panel, .club-side {
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(190, 226, 255, .1);
  border-radius: 16px; padding: 12px; min-width: 0;
}
.club-chat-feed { display: flex; flex-direction: column; gap: 7px; max-height: 320px; overflow-y: auto; margin-bottom: 9px; }
.club-msg { background: rgba(255, 255, 255, .05); border-radius: 12px; padding: 8px 10px; font-size: 12.5px; position: relative; }
.club-msg.mine { background: rgba(201, 255, 61, .1); }
.club-msg.announce { border: 1px solid var(--sport-accent, #c9ff3d); }
.club-msg b { display: inline; font-size: 11px; opacity: .8; margin-right: 6px; letter-spacing: .04em; }
.club-msg small { position: absolute; right: 9px; top: 8px; font-size: 8.5px; opacity: .45; }
.club-msg .club-join-challenge { margin-top: 7px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 11px; }
.club-empty-line { opacity: .55; font-size: 12px; text-align: center; padding: 14px 6px; }
.announce-check { display: flex; gap: 7px; align-items: center; font-size: 11px; opacity: .75; margin-top: 7px; }
.member-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; max-height: 300px; overflow-y: auto; }
.member-row {
  display: grid; grid-template-columns: 12px 1fr auto auto; gap: 9px; align-items: center;
  background: rgba(255, 255, 255, .04); border-radius: 12px; padding: 8px 10px;
}
.member-row.me { outline: 1px solid rgba(201, 255, 61, .4); }
.member-dot { width: 9px; height: 9px; border-radius: 50%; background: #55606e; }
.member-dot.online { background: #46e07c; box-shadow: 0 0 8px rgba(70, 224, 124, .8); }
.member-main b { display: block; font-size: 12.5px; letter-spacing: .03em; }
.member-main small { display: block; font-size: 9.5px; opacity: .6; letter-spacing: .04em; }
.member-stats { display: flex; gap: 7px; }
.member-stats small { font: 800 9.5px Arial; opacity: .65; }
.member-menu { position: relative; }
.member-menu summary { list-style: none; cursor: pointer; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, .08); font-weight: 900; }
.member-menu[open] summary { background: var(--sport-accent, #c9ff3d); color: #06131c; }
.member-menu > div {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 8; display: flex; flex-direction: column; gap: 4px;
  background: #0d1c2d; border: 1px solid rgba(190, 226, 255, .2); border-radius: 12px; padding: 7px; min-width: 150px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
}
.member-menu button { text-align: left; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 0; color: inherit; font: 800 11px Arial; letter-spacing: .05em; }
.member-menu button:active { background: var(--sport-accent, #c9ff3d); color: #06131c; }
.club-activity { display: flex; flex-direction: column; gap: 5px; max-height: 220px; overflow-y: auto; }
.activity-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; align-items: center; font-size: 11.5px; opacity: .85; padding: 5px 2px; border-bottom: 1px dashed rgba(190, 226, 255, .08); }
.activity-row svg { width: 16px; height: 16px; stroke: var(--sport-accent, #c9ff3d); fill: none; stroke-width: 1.6; }
.activity-row small { font-size: 8.5px; opacity: .5; white-space: nowrap; }
.club-search-bar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.club-search-bar input {
  flex: 1 1 200px; min-height: 48px; border-radius: 12px; border: 1px solid rgba(190, 226, 255, .2);
  background: rgba(255, 255, 255, .06); color: inherit; padding: 0 14px; font: 700 14px Arial;
}
.club-results { display: flex; flex-direction: column; gap: 8px; }
.club-card {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(190, 226, 255, .12); border-radius: 14px; padding: 10px 12px;
}
.club-card-copy b { display: block; font: 900 14px Arial; letter-spacing: .04em; }
.club-card-copy small { display: block; font-size: 10px; opacity: .6; margin-top: 2px; letter-spacing: .05em; }
.club-card .primary { min-height: 42px; padding: 0 16px; }
.invite-only { opacity: .55; font-weight: 800; font-size: 10px; }
.club-error { color: #ffb3a8; font-size: 12px; }
.club-push-banner {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  background: linear-gradient(100deg, rgba(201, 255, 61, .14), rgba(201, 255, 61, .04));
  border: 1px solid rgba(201, 255, 61, .4); border-radius: 14px; padding: 10px 14px; margin-bottom: 10px;
}
.club-push-banner b { display: block; font-size: 12px; letter-spacing: .06em; }
.club-push-banner small { display: block; font-size: 10.5px; opacity: .7; }
.club-push-banner .primary { min-height: 42px; padding: 0 16px; }
.peek-top { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.peek-top span { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 7px 10px; }
.peek-top b { display: block; font-size: 12px; }
.peek-top small { font-size: 9.5px; opacity: .6; }
.quiet-range { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.modal-note { opacity: .7; font-size: 12px; }
.field-control.wide { grid-column: 1 / -1; }

/* Estados vacíos con Oto */
.empty-state { text-align: center; padding: 34px 18px; max-width: 520px; margin: 0 auto; }
.empty-state.small { padding: 22px 12px; }
.empty-oto { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sport-accent, #c9ff3d); margin-bottom: 12px; }
.empty-state h3 { font: 900 clamp(19px, 3vw, 26px)/1.1 'Arial Black', Arial; letter-spacing: .04em; margin: 0 0 8px; }
.empty-state p { opacity: .78; font-size: 13.5px; line-height: 1.45; margin: 0 0 16px; }
.loading-state .load-progress { max-width: 220px; margin: 0 auto 12px; }
.connection-state.online { color: #46e07c; }

/* Teléfonos chicos: columnas del club apiladas y tarjetas compactas */
@media (max-width: 760px) {
  .club-columns { grid-template-columns: 1fr; }
  .club-hero { grid-template-columns: auto 1fr; }
  .club-level { grid-column: 1 / -1; text-align: left; }
  .club-card { grid-template-columns: auto 1fr; grid-auto-rows: auto; }
  .club-card .primary, .club-card .text-button { grid-column: 2; justify-self: start; }
  .notif-panel { width: 100vw; border-left: 0; }
}
@media (max-height: 460px) {
  .club-hero { padding: 9px 12px; }
  .club-chat-feed { max-height: 168px; }
  .member-list { max-height: 150px; }
  .empty-state { padding: 14px 12px; }
  .empty-oto { width: 56px; height: 56px; }
}

/* Marcador y HUD: legibilidad en pantallas chicas */
@media (max-width: 700px) {
  .scoreboard b { font-size: clamp(17px, 4.6vw, 24px); }
  .scoreboard em { font-size: clamp(11px, 3vw, 15px); }
  .match-message b { font-size: clamp(20px, 6vw, 34px); }
}

/* Alto contraste refuerza lo nuevo */
body.high-contrast .notif-item, body.high-contrast .club-card, body.high-contrast .member-row { border-width: 2px; border-color: rgba(220, 240, 255, .45); }
body.high-contrast .bell-dot { border-color: #fff; }

/* v12.0.1 — hotfix superposición + cortes en teléfono */
.gender-picker { margin-top: 0; }
@media (max-height: 430px) {
  .home-title h2 { font-size: clamp(26px, 7vh, 44px); }
  .skill-picker { margin-bottom: 6px; padding: 4px; }
  .home-stats { gap: 10px; }
  .home-actions { gap: 7px; }
}
@media (max-width: 740px) {
  .sport-card-content > b { font-size: clamp(22px, 6.4vw, 40px); letter-spacing: -.05em; word-break: keep-all; }
  .sport-card-content em { font-size: 9px; }
  .hub-copy h2 { font-size: clamp(24px, 6.5vw, 40px); }
}

/* v12.1 — amigos y espectador */
.friend-code-card {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center;
  background: linear-gradient(110deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(190, 226, 255, .16); border-radius: 16px; padding: 12px 16px; margin-bottom: 10px;
}
.friend-code-card > span b { display: block; font: 900 12px Arial; letter-spacing: .08em; }
.friend-code-card > span small { display: block; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.friend-code { font: 900 clamp(20px, 3.4vw, 28px)/1 'Arial Black', Arial; letter-spacing: .3em; color: var(--sport-accent, #c9ff3d); }
.friend-row { grid-template-columns: 12px 1fr auto auto; }
.friend-actions { display: flex; gap: 6px; }
.friend-actions .primary, .friend-actions .secondary { min-height: 38px; padding: 0 12px; font-size: 10.5px; display: inline-flex; align-items: center; gap: 5px; }
.friend-actions svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.member-dot.playing { background: #ffd35c; box-shadow: 0 0 9px rgba(255, 211, 92, .9); animation: bellPulse 1.4s infinite; }
@media (max-width: 760px) {
  .friend-code-card { grid-template-columns: 1fr auto; }
  .friend-code-card .secondary { grid-column: 2; }
  .friend-row { grid-template-columns: 12px 1fr auto; grid-auto-rows: auto; }
  .friend-actions { grid-column: 2 / -1; justify-self: start; }
}

/* ============ v13 · BOOT CON OTO + ESTADOS NUEVOS DE OTO ============ */
.boot-beams { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.boot-beams i {
  position: absolute; top: -12%; width: 130px; height: 125%;
  background: linear-gradient(180deg, rgba(201,255,61,.16), transparent 78%);
  transform-origin: top center; filter: blur(4px);
  animation: beamSweep 7.5s ease-in-out infinite;
}
.boot-beams i:nth-child(1) { left: 12%; animation-delay: 0s; }
.boot-beams i:nth-child(2) { left: 48%; animation-delay: 2.4s; background: linear-gradient(180deg, rgba(69,228,238,.14), transparent 78%); }
.boot-beams i:nth-child(3) { left: 78%; animation-delay: 4.6s; }
@keyframes beamSweep { 0%,100% { transform: rotate(-14deg); opacity: .5; } 50% { transform: rotate(13deg); opacity: 1; } }
.boot-crowd {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background:
    radial-gradient(circle at 8px 62px, #16283a 7px, transparent 8px),
    radial-gradient(circle at 26px 54px, #1d3347 8px, transparent 9px),
    radial-gradient(circle at 46px 64px, #12222f 7px, transparent 8px),
    radial-gradient(circle at 64px 52px, #24405a 8px, transparent 9px);
  background-size: 76px 90px; background-repeat: repeat-x;
  mask-image: linear-gradient(180deg, transparent, #000 40%);
  animation: crowdBob 3.4s ease-in-out infinite;
}
@keyframes crowdBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.boot-stage {
  position: relative; z-index: 3; height: 100%;
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 5vw, 70px);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 12px) calc(env(safe-area-inset-bottom, 0px) + 14px) env(safe-area-inset-left, 12px);
}
.boot-oto { position: relative; background: none; border: 0; flex: 0 0 auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.oto-boot { display: block; transform: scale(2.1); transform-origin: center bottom; }
.boot-oto:active .oto-boot { animation: otoBoop .5s ease; }
@keyframes otoBoop { 30% { transform: scale(2.25) rotate(-5deg); } 65% { transform: scale(2.05) rotate(4deg); } 100% { transform: scale(2.1); } }
.boot-ball {
  position: absolute; left: 50%; bottom: -16px; width: 30px; height: 30px; margin-left: 26px;
  border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffffff, #cfd8d4 62%, #9fb0a8);
  box-shadow: 0 6px 10px rgba(0,0,0,.45); animation: ballKick 2.8s ease-in-out infinite;
}
@keyframes ballKick { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(160deg); } }
.boot-oto-bubble {
  position: absolute; top: -46px; left: 50%; transform: translateX(-50%);
  background: #f4f8f2; color: #0b1520; font: 900 15px 'Arial Black', Arial;
  padding: 7px 13px; border-radius: 13px; white-space: nowrap; z-index: 5;
  animation: bubblePop .32s cubic-bezier(.2,1.7,.4,1) both;
}
.boot-oto-bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 7px solid transparent; border-top-color: #f4f8f2; border-bottom: 0; }
@keyframes bubblePop { from { transform: translateX(-50%) scale(.4); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
.boot-brand .boot-paw { width: 15px; height: 15px; vertical-align: -2px; fill: var(--lime, #c9ff3d); stroke: none; }
.boot-ticket { position: relative; overflow: visible; }
.boot-ticket::before, .boot-ticket::after {
  content: ''; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: #07111f; border-radius: 50%;
}
.boot-ticket::before { left: -9px; } .boot-ticket::after { right: -9px; }
.boot-ticket small { display: block; font-size: 8.5px; letter-spacing: .2em; opacity: .75; }
@media (max-width: 720px), (max-height: 420px) {
  .oto-boot { transform: scale(1.5); }
  .boot-stage { gap: 10px; }
}

/* Estados nuevos de Oto */
.oto-actor[data-mood="sad"] .oto-ear { transform: rotate(24deg) translateY(4px); }
.oto-actor[data-mood="sad"] .oto-mouth { transform: scaleY(.4) translateY(3px); }
.oto-actor[data-mood="sad"] .oto-tail { animation: none; transform: rotate(18deg); }
.oto-actor[data-mood="sad"] { filter: saturate(.75); }
.oto-actor[data-mood="nervous"] { animation: otoTremble .18s linear infinite; }
@keyframes otoTremble { 0% { transform: translateX(-1px); } 50% { transform: translateX(1.4px); } 100% { transform: translateX(-1px); } }
.oto-actor[data-mood="shock"] { animation: otoShock .5s ease both; }
.oto-actor[data-mood="shock"] .oto-eye { transform: scale(1.5); }
.oto-actor[data-mood="shock"] .oto-ear { transform: rotate(-16deg) translateY(-3px); }
@keyframes otoShock { 0% { transform: translateY(0); } 35% { transform: translateY(-13px) scale(1.06); } 70% { transform: translateY(0); } }
.oto-actor[data-mood="dance"] { animation: otoDance .62s ease-in-out infinite; }
@keyframes otoDance { 0%,100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-7px); } }
.oto-actor[data-mood="sleepy"] { animation: otoSleep 2.8s ease-in-out infinite; filter: saturate(.8) brightness(.92); }
.oto-actor[data-mood="sleepy"] .oto-eye { transform: scaleY(.22); }
@keyframes otoSleep { 0%,100% { transform: translateY(0); } 50% { transform: translateY(2.5px); } }
.reduce-motion .oto-actor[data-mood="nervous"], .reduce-motion .oto-actor[data-mo
/* ============ v13.1 · VERTICAL NATIVO ============ */
.orientation-gate .primary { margin-top: 18px; min-height: 52px; padding: 0 26px; }

/* En vertical: HUD, controles y pausa reorganizados para el pulgar */
@media (orientation: portrait) and (max-width: 900px) {
  /* marcador arriba, centrado bajo el notch */
  .match-hud { top: max(6px, env(safe-area-inset-top)); }
  .scoreboard { height: 44px; grid-template-columns: minmax(40px,64px) 22px 58px 22px minmax(40px,64px); }
  .scoreboard b { font-size: 20px; }
  .scoreboard em { font-size: 14px; }
  .scoreboard span { font-size: 9px; }
  .hud-button { width: 46px; height: 46px; }

  /* joystick y acciones grandes y bajos, cómodos para los pulgares */
  .touch-controls { height: 210px; inset: auto var(--safe-r) calc(var(--safe-b) + var(--controls-lift) + 8px) var(--safe-l); }
  .joystick { width: 128px; height: 128px; }
  .touch-action { width: 76px; height: 76px; }
  .touch-action b { font-size: 10px; }
  .action-cluster { gap: 12px; }

  /* menos texto encima de la cancha en vertical */
  .team-key { transform: scale(.85); transform-origin: top left; }
  .desktop-guide { display: none; }
  .momentum-wrap { bottom: calc(var(--safe-b) + 250px); }
  .lesson-card { max-width: 78vw; }

  /* botón de stickers arriba a la derecha, lejos de los pulgares de juego */
  .sticker-button { left: auto; right: calc(var(--safe-r) + 6px); top: calc(var(--safe-t) + 96px); }
  .sticker-wheel { left: auto; right: calc(var(--safe-r) + 6px); top: calc(var(--safe-t) + 142px); }
}

/* En penales/golero verticales, controles aún más grandes y centrados abajo */
@media (orientation: portrait) and (max-width: 900px) {
  body.match-focus .touch-controls { justify-content: center; gap: 40px; height: 190px; }
  body.match-focus .joystick { width: 140px; height: 140px; }
  body.match-focus .action-cluster { flex-direction: row; }
  body.match-focus .team-key { display: none; }
}

/* Teléfonos muy angostos (iPhone SE, 360px): todo un punto más compacto */
@media (orientation: portrait) and (max-width: 380px) {
  .joystick { width: 116px; height: 116px; }
  .touch-action { width: 68px; height: 68px; }
  .scoreboard { grid-template-columns: minmax(34px,54px) 20px 50px 20px minmax(34px,54px); }
}

/* ============ v13.1 · DISFRACES Y PROPS DE OTO (data-costume) ============ */
.oto-actor[data-costume] { overflow: visible; }
/* Bandera de festejo */
.oto-actor[data-costume="flag"]::before {
  content: ""; position: absolute; z-index: 8; left: -18%; bottom: 4%; width: 5%; height: 70%;
  background: #caa26a; transform: rotate(8deg); transform-origin: bottom;
  box-shadow: 14px -2px 0 -1px var(--accent, #c9ff3d), 26px 1px 0 -3px var(--accent, #c9ff3d);
  animation: otoFlagWave 1.1s ease-in-out infinite alternate;
}
@keyframes otoFlagWave { to { transform: rotate(-4deg); } }
/* Guantes de arquero */
.oto-actor[data-costume="gloves"] .oto-paw { background: var(--team-accent, #f2c84b); box-shadow: inset 0 -4px 0 #0004, 0 0 0 2px #0a141e; width: 26%; height: 24%; top: 70%; }
/* Silbato de árbitro + gorra */
.oto-actor[data-costume="ref"] .oto-head { background: linear-gradient(145deg, #2a2a30, #17171c 72%); }
.oto-actor[data-costume="ref"]::before {
  content: ""; position: absolute; z-index: 8; left: 54%; top: 60%; width: 12%; height: 8%;
  background: #d9d2c0; border-radius: 40%; box-shadow: -10px 2px 0 -3px #d9d2c0;
}
.oto-actor[data-costume="ref"]::after {
  content: ""; position: absolute; z-index: 6; left: 8%; top: -4%; width: 84%; height: 20%;
  background: #17171c; border-radius: 40% 40% 0 0; box-shadow: 0 6px 0 -2px #ffd23c;
}
/* Copa */
.oto-actor[data-costume="trophy"]::before {
  content: ""; position: absolute; z-index: 8; left: 34%; top: -34%; width: 32%; height: 34%;
  background: linear-gradient(#ffe58a, #d9a92e); border-radius: 20% 20% 50% 50%;
  box-shadow: 0 14px 0 -8px #d9a92e, inset 0 -6px 0 #b98a1e; animation: otoLift 1.4s ease-in-out infinite;
}
.oto-actor[data-costume="trophy"]::after { content: ""; position: absolute; z-index: 7; left: 44%; top: -3%; width: 12%; height: 8%; background: #b98a1e; }
@keyframes otoLift { 50% { transform: translateY(-4px); } }
/* Capa de superhéroe */
.oto-actor[data-costume="cape"]::before {
  content: ""; position: absolute; z-index: 0; left: 8%; top: 44%; width: 84%; height: 56%;
  background: linear-gradient(#e0403f, #a81f2e); border-radius: 20% 20% 45% 45%;
  transform-origin: top; animation: otoCape 1.3s ease-in-out infinite alternate;
}
@keyframes otoCape { to { transform: rotate(3deg) scaleY(1.05); } }
/* Lentes de estadísticas */
.oto-actor[data-costume="glasses"]::before {
  content: ""; position: absolute; z-index: 6; left: 20%; top: 33%; width: 60%; height: 14%;
  border: 3px solid #10202e; border-radius: 40%; background: linear-gradient(120deg, #9fe8ff88, #ffffff33);
  box-shadow: inset 0 0 0 2px #ffffff55;
}
/* Confeti */
.oto-actor[data-costume="confetti"]::before {
  content: ""; position: absolute; z-index: 9; inset: -40% -20% 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, #ffd23c 3px, transparent 4px),
    radial-gradient(circle at 80% 15%, #45e4ee 3px, transparent 4px),
    radial-gradient(circle at 50% 8%, #ff6d7d 3px, transparent 4px),
    radial-gradient(circle at 32% 30%, #c9ff3d 2px, transparent 3px),
    radial-gradient(circle at 68% 34%, #ffd23c 2px, transparent 3px);
  animation: otoConfetti 1.5s linear infinite;
}
@keyframes otoConfetti { from { transform: translateY(-8px); opacity: 1; } to { transform: translateY(14px); opacity: .3; } }
/* Pelota de fútbol / handball al lado */
.oto-actor[data-costume="ball"]::before {
  content: ""; position: absolute; z-index: 8; left: -14%; bottom: 2%; width: 30%; height: 30%;
  border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff, #cfd8d4 62%, #9fb0a8);
  box-shadow: 0 4px 6px #0006; animation: otoBallHop 1s ease-in-out infinite;
}
.oto-actor[data-costume="handball"]::before {
  content: ""; position: absolute; z-index: 8; right: -14%; top: 30%; width: 26%; height: 26%;
  border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffb27d, #ff7b4d 60%, #e8632f);
  box-shadow: 0 4px 6px #0006; animation: otoBallHop .8s ease-in-out infinite;
}
@keyframes otoBallHop { 50% { transform: translateY(-8px) rotate(120deg); } }
/* Medalla */
.oto-actor[data-costume="medal"]::before {
  content: ""; position: absolute; z-index: 8; left: 40%; top: 62%; width: 20%; height: 20%;
  border-radius: 50%; background: radial-gradient(#ffe58a, #d9a92e); box-shadow: 0 -14px 0 -8px #45e4ee, inset 0 -3px 0 #b98a1e;
}
