@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito+Sans:wght@400;600;700;800;900&display=swap');
:root{font-family:'Nunito Sans','Apple SD Gothic Neo','Malgun Gothic',sans-serif;color:#ebf1ff;background:#0c1429;color-scheme:dark}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 12% 8%,#34493f 0,transparent 44%),radial-gradient(ellipse at 88% 28%,#394333 0,transparent 34%),#142722}button,textarea,select,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible,textarea:focus-visible{outline:3px solid #87e8b1;outline-offset:3px}button[disabled]{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}[hidden]{display:none!important}
.topbar{height:72px;max-width:1400px;margin:auto;padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #d5b88e2e}.back{font-size:14px;color:#b2c0d9;background:#ffffff0c;border:1px solid #ffffff1e;border-radius:10px;padding:9px 15px;white-space:nowrap}.brand{font-weight:900;font-size:19px;color:#fff;display:flex;align-items:center;gap:7px;position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap}.brand-dot{color:#b1f57d;text-shadow:0 0 17px #a7f676bb}.header-actions{margin-left:auto;display:flex;gap:10px}.header-actions button{background:#253452;color:#dcf6e8;border:1px solid #506b8d;border-radius:10px;padding:10px 16px;font-size:13px;font-weight:800}
.sticky-main{max-width:1370px;margin:auto;padding:30px 26px 85px}
.intro{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:26px}
.intro-copy{max-width:680px}
.eyebrow,.section-head>span,.ranking-heading>div>span{font-size:11px;letter-spacing:2px;font-weight:900;color:#87dec8}
.intro h1{margin:3px 0 6px;font-size:clamp(34px,4vw,54px);letter-spacing:-2px;line-height:1.18;font-weight:900;color:#fff}
.intro-sparkle{font-size:23px;color:#e9cf74;vertical-align:top;margin-left:8px}
.intro p{color:#c4d6cb;font-size:15px;margin:0;line-height:1.75}
.intro-side{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.intro-visual{position:relative;width:240px;height:66px;border-radius:18px;border:1px solid rgba(190,224,193,.34);background:linear-gradient(135deg,rgba(47,78,66,.92),rgba(26,48,43,.95));box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 14px 28px rgba(5,16,13,.38);overflow:hidden}
.intro-visual::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 24%,rgba(255,237,183,.3),transparent 42%),linear-gradient(180deg,transparent 56%,rgba(34,63,51,.55) 100%)}
.intro-window-mullion{position:absolute;left:50%;top:0;bottom:0;width:4px;background:rgba(97,74,54,.72);box-shadow:1px 0 0 rgba(226,196,150,.35)}
.intro-Visual-bar,.intro-visual::after{content:"";position:absolute;left:0;right:0;top:52%;height:4px;background:rgba(97,74,54,.72);box-shadow:0 1px 0 rgba(226,196,150,.3)}
.intro-sticky-avatar{position:absolute;z-index:2;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-size:19px;filter:drop-shadow(0 4px 10px rgba(0,0,0,.35))}
.intro-sticky-avatar.is-blob{left:46px;top:14px;background:radial-gradient(circle at 32% 30%,#e8ffd1,#7be382);animation:intro-cling-bob 2.6s ease-in-out infinite}
.intro-sticky-avatar.is-dino{right:48px;top:16px;background:radial-gradient(circle at 32% 30%,#ffe4ee,#f29ab7);animation:intro-cling-bob 2.6s .9s ease-in-out infinite}
.intro-gust-line{position:absolute;left:-40px;top:24px;width:72px;height:2px;border-radius:99px;background:linear-gradient(90deg,transparent,rgba(232,255,244,.8),transparent);animation:intro-gust-sweep 3.2s linear infinite}
@keyframes intro-cling-bob{0%,100%{transform:translateY(0) scale(1,.98)}50%{transform:translateY(5px) scale(.94,1.08)}}
@keyframes intro-gust-sweep{from{transform:translateX(0)}to{transform:translateX(310px)}}
.intro-chips{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.intro-chips span{padding:9px 13px;border-radius:99px;color:#f3ebd5;background:#2d443c;border:1px solid #a8af8c72;font-size:12px;font-weight:700;white-space:nowrap}

.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 365px;align-items:start;gap:22px}
.stage-panel,.control-panel{border:1px solid #7c8c725c;background:#1c2e2a;border-radius:24px;box-shadow:0 17px 48px #0717106a;overflow:hidden}
.stage-toolbar{min-height:58px;padding:8px 22px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;background:linear-gradient(95deg,#493d32,#293b32);color:#f8f0df;font-weight:800;font-size:14px}
.stage-live{display:flex;align-items:center;gap:10px;min-width:0}
.pulse-dot{width:9px;height:9px;border-radius:50%;background:#91eeaf;box-shadow:0 0 0 5px #91eeaf22,0 0 12px #81e4ae;flex-shrink:0}
.stage-toolbar>span{padding:5px 11px;background:#e0ca9d1b;border-radius:10px;font-family:'DM Sans',sans-serif;color:#f5e8ca}
.survival-clock{background:#0006!important;color:#a6edbd!important;font-size:13px!important}

/* Broadcast Overview Progress & Telemetry Strip */
.sticky-overview{padding:12px 20px 11px;background:linear-gradient(180deg,rgba(25,44,38,.96),rgba(20,36,31,.96));border-bottom:1px solid rgba(164,196,171,.18)}
.sticky-overview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;font-size:12px}
.sticky-overview-label{font-weight:800;color:#cbe3d2}
.sticky-overview-phase{font-size:11px;font-weight:900;letter-spacing:.04em;color:#f8dfa1;padding:3px 9px;border-radius:99px;background:rgba(245,213,132,.14);border:1px solid rgba(245,213,132,.32)}
.sticky-overview-percent{font-family:'DM Sans',sans-serif;font-weight:900;font-size:13px;color:#9ef2b6;margin-left:auto}
.sticky-overview-bar{position:relative;height:12px;border-radius:99px;background:rgba(9,20,17,.68);border:1px solid rgba(154,193,167,.25);overflow:visible}
.sticky-overview-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#6bddc6,#a7ef70,#f7cf71);box-shadow:0 0 14px rgba(167,239,112,.38);transition:width .22s ease}
.sticky-overview-markers{position:absolute;inset:0;pointer-events:none}
.sticky-overview-marker{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;transform:translate(-50%,-50%);border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.45);transition:left .22s ease,opacity .2s ease}
.sticky-overview-marker.is-fallen{opacity:.38;transform:translate(-50%,-50%) scale(.78);border-color:rgba(255,255,255,.55)}
.sticky-overview-marker.is-danger{box-shadow:0 0 0 3px rgba(255,216,117,.45),0 2px 8px rgba(0,0,0,.5)}
.sticky-overview-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;font-size:11px;color:#9eb8a8}
.sticky-overview-foot small{font-size:11px}
#overview-gap{font-weight:800;color:#dfeee3;white-space:nowrap}

.sticky-arcade-strip{padding:8px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:rgba(19,33,29,.92);border-bottom:1px solid rgba(154,193,167,.16)}
.sticky-gimmick-badges{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.gimmick-pill{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;border-radius:99px;font-size:11px;font-weight:800;background:rgba(46,74,64,.72);border:1px solid rgba(150,192,165,.28);color:#d9eee0;white-space:nowrap}
.gimmick-pill.is-tap{border-color:rgba(232,169,248,.45);color:#f7dfff;background:rgba(66,46,78,.68)}
.gimmick-pill.is-gust{border-color:rgba(155,202,255,.38);color:#d7ebff}
.gimmick-pill.is-snag{border-color:rgba(247,207,113,.38);color:#f9e7ba}
.gimmick-pill.is-rejoin{border-color:rgba(107,221,198,.4);color:#cafff4}
.gimmick-pill.is-hang{border-color:rgba(242,154,183,.38);color:#ffd9e6}
.gimmick-pill.is-strong{border-color:rgba(167,239,112,.45);color:#e0ffc7}
.sticky-telemetry-pill{display:inline-flex;align-items:center;gap:7px;padding:4px 11px;border-radius:99px;background:rgba(11,23,20,.65);border:1px solid rgba(167,239,112,.26);font-size:11px;color:#b8d1c1;white-space:nowrap}
.sticky-telemetry-pill strong{color:#a8f2ba;font-weight:900}
.sticky-telemetry-pill.is-gusting{border-color:#ffd480;background:rgba(75,54,28,.65)}
.sticky-telemetry-pill.is-gusting strong{color:#ffe29c}

.stage-wrap{position:relative;overflow:hidden;background:#c9d8c5}
.stage-wrap canvas{width:100%;height:auto;aspect-ratio:820/600;display:block;touch-action:manipulation;cursor:crosshair}
.stage-hint{pointer-events:none;position:absolute;left:50%;bottom:15%;transform:translateX(-50%);background:#26392fe5;border:1px solid #e5d4af8a;backdrop-filter:blur(8px);border-radius:17px;min-width:min(88%,345px);padding:14px 20px;text-align:center;display:flex;flex-direction:column;gap:3px;align-items:center;box-shadow:0 10px 30px #02071455}
.stage-hint strong{font-size:15px;color:#fff9eb}
.stage-hint small{color:#e9ddc2;font-size:11px}
.hand{font-size:27px;animation:hand-tap 1.8s infinite}
.turn-toast{position:absolute;top:12%;left:50%;transform:translateX(-50%);z-index:11;background:#112440eb;border:1px solid #afeed0;border-radius:100px;padding:10px 22px;white-space:nowrap;max-width:88%;overflow:hidden;text-overflow:ellipsis;box-shadow:0 12px 28px #0006;font-weight:900;color:#dffff2;pointer-events:none}
.survival-banner{pointer-events:none;position:absolute;left:50%;bottom:6%;transform:translateX(-50%);max-width:88%;width:max-content;text-align:center;display:flex;flex-direction:column;gap:3px;padding:11px 22px;border:1px solid #ffd27c99;border-radius:17px;background:#1d3053da;box-shadow:0 8px 25px #0008}
.survival-banner>span{font-size:22px}.survival-banner strong{font-size:16px;color:#f6dea2}.survival-banner small{font-size:11px;color:#e2e8df}
.stage-actions{display:flex;gap:10px;padding:16px;background:#172723;border-top:1px solid rgba(145,175,153,.18)}
.stage-actions button{min-width:0;padding:14px 16px;border-radius:13px;font-size:14px;font-weight:900;transition:transform .12s ease,filter .15s ease}
.stage-actions button:hover:not(:disabled){transform:translateY(-1px);filter:brightness(1.04)}
.btn-secondary{background:#2a3e38;border:1px solid #5c7a6e;color:#e6f4ec}
.btn-shake{background:linear-gradient(110deg,#fbd07c,#f59f7c);color:#2d1910;border:0;flex:1;box-shadow:0 7px 19px rgba(247,178,107,.34)}
.btn-primary{background:linear-gradient(110deg,#9befb6,#c0eb78);color:#122b29;border:0;flex:1;box-shadow:0 7px 19px #9aef8940}

.control-panel{padding:22px 20px}
.section-head h2,.ranking-heading h2{font-size:21px;letter-spacing:-.6px;margin:3px 0 15px;color:#fff}
.control-label{display:flex;justify-content:space-between;font-size:13px;font-weight:900;color:#e0eafc;margin:8px 0}
.control-label span{color:#7deac2;font-size:12px}
.player-count-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.player-count-row .control-label{flex:1;margin:0}
#player-total{min-width:104px;padding:10px 12px;color:#effff8;background:#142620;border:1px solid #639b85;border-radius:11px;font-size:13px;font-weight:800}
#player-total:disabled{opacity:.65;cursor:not-allowed}

/* Ladder-style roster: numbered avatars, color accents, direct name edits, and quick actions */
.player-roster-heading{margin:16px 0 10px}
.player-roster-heading h3{margin:0;padding-left:11px;border-left:4px solid #a8eba8;color:#f2f8e9;font-size:17px;font-weight:900}
.player-roster-heading p{margin:6px 0 0;color:#b6c9bb;font-size:11px;line-height:1.55}
.control-panel .player-inputs{
  display:grid;grid-template-columns:minmax(0,1fr);gap:8px;
  max-height:300px;padding:2px 4px 7px 0;overflow-y:auto;overscroll-behavior:contain;
}
.control-panel .player-name-field{
  display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;min-height:54px;
  border:1px solid #607d72;border-left:4px solid var(--sticky-color,#a7ef70);
  border-radius:12px;background:#213a32;padding:6px 8px;
}
.control-panel .player-name-field:focus-within{border-color:#baf5a2;border-left-color:var(--sticky-color,#baf5a2);box-shadow:inset 0 0 0 1px #baf5a25a}
.control-panel .player-name-number{color:#b4c9b4;flex:0 0 20px;text-align:center;font-size:11px;font-weight:800}
.control-panel .player-avatar{
  flex:0 0 39px;width:39px;height:39px;border:1px solid #7da090;border-radius:10px;
  background:#375b4e;color:#f9fff4;padding:0;display:grid;place-items:center;font-size:23px;line-height:1;
}
.control-panel .player-avatar:hover:not(:disabled){background:#467662}
.control-panel .player-name-field input{
  flex:1;min-width:0;width:100%;height:38px;padding:5px 2px;
  background:transparent;border:0;border-radius:0;outline:none;
  color:#fffaf0;font-size:13px;font-weight:800;
}
.control-panel .player-name-field input::placeholder{color:#c1d2bf;opacity:.9}
.control-panel .player-name-field input:disabled{opacity:.65;cursor:not-allowed}
.control-panel .player-remove{
  display:grid;place-items:center;flex:0 0 28px;width:28px;height:32px;padding:0;
  border:0;border-radius:7px;background:transparent;color:#d4e0d6;font-size:22px;line-height:1;
}
.control-panel .player-remove:hover:not(:disabled){background:#794447;color:#fff}
.control-panel .player-remove:disabled{opacity:.25;cursor:not-allowed}
.player-roster-actions{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap;margin-top:11px}
.player-roster-btns{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.player-roster-actions .add-player-btn{
  border:1px solid #afe49a;border-radius:10px;background:#b7ef9e;color:#24372c;
  min-height:38px;padding:7px 12px;font-weight:900;font-size:12px;
}
.player-roster-actions .add-player-btn:hover:not(:disabled){background:#d5ffc1}
.player-roster-actions .roster-sub-btn{
  border:1px solid #638273;border-radius:10px;background:#263f36;color:#dff1e5;
  min-height:38px;padding:7px 10px;font-weight:800;font-size:11px;
}
.player-roster-actions .roster-sub-btn:hover:not(:disabled){background:#315146;border-color:#88b29d}
#roster-total{color:#b4cbb9;font-size:11px;font-weight:750;margin-left:auto}
.control-panel .player-name-field :focus-visible,
.control-panel .player-count-row select:focus-visible{outline:2px solid #ceffa5;outline-offset:2px}
.field-note{color:#9ab2a3;font-size:11px;line-height:1.55;margin:8px 0 0}
.section-divider{height:1px;background:#375046;margin:18px 0}

.selection{border:none;margin:0 0 17px;padding:0;min-width:0}
.selection legend{color:#e8f2ff;font-size:13px;font-weight:900;padding:0;margin-bottom:10px}
.seg-buttons,.scene-buttons{display:flex;gap:7px}
.selection button{border:1px solid #557064;background:#233931;color:#c9ddd2;border-radius:11px;padding:10px 6px;font-size:12px;font-weight:800;flex:1;min-width:0;white-space:nowrap}
.selection button.active{background:#285548;color:#b8f7c6;border-color:#7be0b3;box-shadow:inset 0 0 0 1px #7be0b370}
.selection .scene-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.selection .scene-buttons .scene-choice{white-space:normal;min-height:56px;padding:8px 6px;line-height:1.35;font-size:11px;border-color:#7f99816a}
.selection .scene-buttons .scene-choice[data-scene=hallasan]{background:linear-gradient(155deg,#6e7463,#3f5a52)}
.selection .scene-buttons .scene-choice[data-scene=seoraksan]{background:linear-gradient(155deg,#607e8e,#344957)}
.selection .scene-buttons .scene-choice[data-scene=jirisan]{background:linear-gradient(155deg,#537d6c,#345b4d)}
.selection .scene-buttons .scene-choice.active{border-color:#f2d69a;color:#fff9e8;box-shadow:inset 0 0 0 2px #ebd69a70,0 0 15px #ecd7a629}

.ranking-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.ranking-heading h2{margin-bottom:12px}
.ranking-progress{font-size:12px;font-weight:900;color:#9ce8ad;padding:4px 10px;border-radius:99px;background:rgba(156,232,173,.12);border:1px solid rgba(156,232,173,.28)}
.ranking-list{padding:0;margin:0;max-height:330px;overflow:auto;display:grid;gap:7px;list-style:none}
.ranking-list li{
  position:relative;overflow:hidden;
  background:#263d35;border:1px solid #64857360;border-left:4px solid var(--sticky-color,#9ce8ad);
  border-radius:11px;padding:9px 11px 12px;display:flex;align-items:center;gap:9px;color:#edf4ff;min-width:0;
}
.ranking-list .ranking-empty{border-left-width:1px;color:#9cb5a6;justify-content:center;font-size:12px;padding:20px}
.rank-number{width:26px;height:26px;display:grid;place-items:center;background:#355147;border-radius:8px;font-weight:900;font-size:12px;flex-shrink:0}
.ranking-list li:first-child .rank-number{background:#e9c86b;color:#4d3a17}
.ranking-list li.is-dropped{opacity:.68;background:#202d2d;border-color:#42534c}
.ranking-list li.is-dropped .rank-number{background:#344240;color:#cbd8d2}
.ranking-list li.is-surviving .rank-number{background:#33775f;color:#edffdd}
.ranking-list li.is-hanging{border-color:#f0c97899;background:linear-gradient(108deg,#3a3d2f,#263b34)}
.ranking-list li.is-hanging .rank-number{background:#c89c46;color:#271d09}
.ranking-name{min-width:0;overflow-wrap:anywhere;font-weight:800;flex:1;font-size:13px}
.ranking-height{font-size:11px;color:#b5cbbd;white-space:nowrap;font-weight:700}
.rank-dot{height:22px;width:22px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;box-shadow:inset -2px -2px 4px #0004,0 2px 5px rgba(0,0,0,.25)}
.rank-dot svg{width:18px;height:18px;display:block;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3))}
.ranking-meter{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(0,0,0,.28)}
.ranking-meter>i{display:block;height:100%;width:var(--meter,100%);background:var(--sticky-color,#9ce8ad);transition:width .25s ease}

/* Outcome card & common-game-results toolbar compatibility */
.outcome{
  margin-top:16px;padding:15px 14px;display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;
  background:linear-gradient(110deg,#315b59,#29466c);border:1px solid #79d8b86b;border-radius:14px;
}
.winner-medal{font-size:33px;flex-shrink:0}
.outcome-copy{display:flex;flex-direction:column;gap:2px;flex:1;min-width:160px}
.outcome small{font-size:11px;color:#c8e0da}
.outcome strong{font-size:20px;color:#fff;line-height:1.2}
.outcome .ug-results-actions{flex:1 1 100%;width:100%;margin-top:4px;padding-top:10px;border-top:1px solid rgba(255,255,255,.14)}
.copy-btn{margin-top:10px;width:100%;padding:12px;background:#2d473e;border:1px solid #638879;color:#eaf4ff;border-radius:12px;font-weight:800}

/* Live Survival Event Broadcast Log */
.sticky-event-panel{background:#172823;border:1px solid rgba(133,172,147,.28);border-radius:14px;padding:12px 13px}
.sticky-event-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}
.sticky-event-head span{font-size:12px;font-weight:900;color:#dff5e6}
.sticky-event-head small{font-size:11px;font-weight:800;color:#97d8ae;padding:2px 8px;border-radius:99px;background:rgba(151,216,174,.12)}
.sticky-event-list{list-style:none;margin:0;padding:0;display:grid;gap:6px;max-height:185px;overflow-y:auto}
.sticky-event-list li{display:flex;align-items:center;gap:8px;padding:7px 9px;border-radius:9px;background:#20352e;border:1px solid rgba(132,170,145,.2);font-size:11.5px;color:#e5f3ea;line-height:1.4}
.sticky-event-list li.is-empty{color:#94b09f;justify-content:center;text-align:center;padding:14px 10px}
.sticky-event-time{font-family:'DM Sans',sans-serif;font-size:10px;font-weight:800;color:#b8d7c3;padding:2px 6px;border-radius:6px;background:rgba(0,0,0,.26);flex-shrink:0}
.sticky-event-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;background:var(--event-color,#9ce8ad)}
.sticky-event-text{flex:1;min-width:0;overflow-wrap:anywhere;font-weight:700}

.play-guide{margin:40px 0 24px}.play-guide h2{font-size:22px;margin-bottom:17px}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.guide-grid>div{background:#1b2f29;border:1px solid #496659;border-radius:17px;padding:19px}.guide-grid b{display:inline-grid;place-items:center;background:#97eab1;color:#183b31;width:30px;height:30px;border-radius:10px;font-weight:900;margin-right:9px}.guide-grid strong{font-size:15px}.guide-grid p{font-size:13px;color:#c2d5c9;line-height:1.7;margin:10px 0 0}.seo-related-games{margin-top:28px}#seo-related-games h2{color:#fff}

/* Audio licensing stays readable beneath the gameplay guide. */
.sticky-audio-credits{
  margin:8px 3px 24px;padding:12px 17px;
  border:1px solid #66816b80;border-radius:12px;
  color:#b7cdbb;background:#1d352c;font-size:12px;line-height:1.75;
}
.sticky-audio-credits summary{cursor:pointer;font-weight:750;color:#e3dfbd;min-height:28px}
.sticky-audio-credits p{margin:8px 0 2px}
.sticky-audio-credits a{color:#e7d49c;text-decoration:underline;text-underline-offset:3px}

/* Light theme overrides */
html[data-theme="light"] body.standalone-hub-page-sticky #player-total{
  color:#244536;background:#ffffff;border-color:#9fbca9;color-scheme:light;
}
html[data-theme="light"] body.standalone-hub-page-sticky #player-total option{
  color:#244536;background:#ffffff;
}
html[data-theme="light"] body.standalone-hub-page-sticky #player-total:focus-visible{
  outline:3px solid #358263;outline-offset:2px;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-audio-credits{
  color:#3e5c4b;background:#f5faf3;border-color:#bad0bb;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-audio-credits summary{color:#244536}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-audio-credits a{color:#1b674c}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-overview{
  background:linear-gradient(180deg,#eef6ee,#e5f1e6);border-bottom-color:#c5dac6;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-overview-label{color:#234635}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-overview-phase{
  color:#6c4b13;background:#fdf3d7;border-color:#e4c57a;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-overview-percent{color:#1b6e49}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-overview-bar{
  background:#d5e5d7;border-color:#b4ccb8;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-overview-foot{color:#496958}
html[data-theme="light"] body.standalone-hub-page-sticky #overview-gap{color:#1f4433}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-arcade-strip{
  background:#f3f8f2;border-bottom-color:#cde0ce;
}
html[data-theme="light"] body.standalone-hub-page-sticky .gimmick-pill{
  background:#ffffff;border-color:#bfd5c2;color:#274838;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-telemetry-pill{
  background:#ffffff;border-color:#b5d1bc;color:#3d5f4e;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-telemetry-pill strong{color:#186844}
html[data-theme="light"] body.standalone-hub-page-sticky .player-roster-actions .roster-sub-btn{
  background:#f1f7f1;border-color:#b7CEbc;color:#234535;
}
html[data-theme="light"] body.standalone-hub-page-sticky .player-roster-actions .roster-sub-btn:hover:not(:disabled){
  background:#e2efe3;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-event-panel{
  background:#f3f8f2;border-color:#c6dbca;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-event-head span{color:#1f4231}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-event-head small{color:#1c6644;background:#dff2e5}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-event-list li{
  background:#ffffff;border-color:#d3e3d6;color:#244334;
}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-event-list li.is-empty{color:#587565}
html[data-theme="light"] body.standalone-hub-page-sticky .sticky-event-time{background:#e7f1e9;color:#2d5340}

/* The first instant only one participant remains is the victory moment. */
.sticky-victory{
  position:absolute;inset:0;z-index:15;pointer-events:none;overflow:hidden;
  display:grid;place-items:center;isolation:isolate;
  background:radial-gradient(ellipse at 50% 48%,rgba(21,56,44,.26),rgba(8,26,20,.54) 80%);
  --winner-color:#d0f79c;
}
.sticky-victory-rays{
  position:absolute;left:50%;top:49%;width:90%;aspect-ratio:1;
  transform:translate(-50%,-50%);
  background:repeating-conic-gradient(from 0deg,rgba(255,235,147,.11) 0deg 12deg,transparent 12deg 30deg);
  -webkit-mask:radial-gradient(circle,transparent 0 22%,black 36% 57%,transparent 76%);
  mask:radial-gradient(circle,transparent 0 22%,black 36% 57%,transparent 76%);
  animation:sticky-rays-turn 11s linear infinite;
}
.sticky-victory-card{
  position:relative;z-index:2;
  display:flex;flex-direction:column;align-items:center;gap:7px;
  width:min(84%,440px);padding:20px 17px 23px;
  border-radius:26px;border:2px solid #f5dea5;
  background:linear-gradient(145deg,rgba(30,67,55,.96),rgba(14,42,47,.98));
  box-shadow:0 0 0 6px rgba(255,234,167,.17),0 0 52px var(--winner-color),0 20px 48px rgba(4,18,17,.60);
  text-align:center;color:#fff8d9;
  animation:sticky-victory-entry .7s cubic-bezier(.16,1.35,.35,1) both,sticky-victory-pulse 2.5s 1s ease-in-out infinite alternate;
}
.sticky-victory-medal{font-size:clamp(37px,6vw,58px);filter:drop-shadow(0 0 12px #f5d17c9c)}
.sticky-victory-kicker{letter-spacing:.21em;font-size:11px;font-weight:900;color:#e2f2c3}
.sticky-victory-card strong{
  font-size:clamp(23px,4vw,43px);line-height:1.16;font-weight:900;letter-spacing:-.035em;
  max-width:100%;overflow-wrap:anywhere;text-shadow:0 3px 16px rgba(8,28,22,.4);
}
.sticky-victory-card #winner-celebration-title{font-size:clamp(13px,2.6vw,19px);font-weight:850;color:#fff1b7}
.sticky-victory-stars{font-size:20px;color:#f8da92;letter-spacing:.25em}
.sticky-confetti-layer{position:absolute;inset:0;z-index:3;overflow:hidden}
.sticky-confetti{
  position:absolute;top:-9%;left:var(--x);
  width:clamp(5px,1.3vw,10px);height:clamp(8px,1.9vw,17px);
  border-radius:2px;background:hsl(var(--hue),92%,71%);
  box-shadow:0 0 7px rgba(255,255,255,.55);
  animation:sticky-confetti-drop var(--duration,2s) var(--delay,0s) linear both;
}
@keyframes sticky-victory-entry{
  from{opacity:0;transform:translateY(45px) scale(.56) rotate(-5deg)}
  to{opacity:1;transform:translateY(0) scale(1) rotate(0)}
}
@keyframes sticky-victory-pulse{to{box-shadow:0 0 0 7px rgba(255,234,167,.26),0 0 76px var(--winner-color),0 18px 46px rgba(4,18,17,.65)}}
@keyframes sticky-rays-turn{to{transform:translate(-50%,-50%) rotate(360deg)}}
@keyframes sticky-confetti-drop{
  from{transform:translate3d(0,-10px,0) rotate(0);opacity:1}
  to{transform:translate3d(var(--dx),720px,0) rotate(920deg);opacity:0}
}
.outcome.is-champion{
  border-color:#f5d584;box-shadow:0 0 0 2px #f7dfa722,0 0 26px #d4ef9b3b;
  background:linear-gradient(115deg,#526544,#315d50);
}
.ranking-list li.is-champion{border-color:#f5d584;box-shadow:0 0 0 1px #ffedc051;background:#3b5844;opacity:1}
.ranking-list li.is-champion .rank-number{background:#f6da91;color:#4c3c20}

/* Real-time chapters & gust visual feedback */
.sticky-phase{display:inline-flex;align-items:center;padding:5px 10px;border:1px solid #f4c98675;border-radius:99px;background:#5b4736;color:#fff0c8;font-size:11px;font-weight:850;white-space:nowrap;letter-spacing:0}
.sticky-phase[hidden]{display:none!important}
.stage-wrap.is-gusting{box-shadow:inset 0 0 44px 8px #c7f2f64a}
.stage-wrap.is-tapped{box-shadow:inset 0 0 48px 10px rgba(255,238,168,.55);animation:sticky-stage-shake .36s cubic-bezier(.36,.07,.19,.97) both}
.stage-wrap.is-tapped::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:3;border:3px solid rgba(255,241,176,.85);border-radius:2px}
@keyframes sticky-stage-shake{
  0%,100%{transform:translate3d(0,0,0)}
  15%{transform:translate3d(-7px,4px,0) rotate(-.35deg)}
  30%{transform:translate3d(7px,-5px,0) rotate(.35deg)}
  45%{transform:translate3d(-6px,-3px,0) rotate(-.25deg)}
  60%{transform:translate3d(5px,4px,0) rotate(.2deg)}
  75%{transform:translate3d(-3px,2px,0) rotate(-.1deg)}
}
.stage-wrap.is-gusting::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;border:3px solid #d5fbfb77;animation:sticky-wind-pulse .48s ease-out infinite alternate}
@keyframes sticky-wind-pulse{to{opacity:.2;border-color:#fff4cf33}}

/* Extended catches remain visibly distinct until the actual bond breaks. */
.ranking-list li.is-strong-grip{border-color:#98e4a7;background:linear-gradient(108deg,#234c3e,#223a4a);box-shadow:inset 3px 0 #a5efb7}
.ranking-list li.is-strong-grip .ranking-height{color:#c5ffce;font-weight:850}

@keyframes hand-tap{0%,100%{transform:translateY(-4px) rotate(-10deg)}45%{transform:translateY(6px) rotate(5deg)}}
@media(max-width:1020px){
  .game-layout{grid-template-columns:minmax(0,1fr)}
  .control-panel .player-inputs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .topbar{height:62px;padding:0 13px}.back{font-size:12px;padding:8px}.brand{font-size:14px;left:45%}.header-actions button{padding:8px;font-size:12px}
  .sticky-main{padding:20px 10px 60px}
  .intro{flex-direction:column;align-items:flex-start;margin:4px 7px 18px}
  .intro-side{width:100%;align-items:flex-start}
  .intro-visual{width:100%;height:58px}
  .intro h1{font-size:34px}.intro p{font-size:13px}
  .intro-chips{justify-content:flex-start;margin-top:4px}.intro-chips span{font-size:10px;padding:7px 9px}
  .stage-panel,.control-panel{border-radius:16px}.game-layout{gap:15px}
  .stage-toolbar{min-height:49px;padding:6px 12px;font-size:12px;gap:5px}
  .stage-live strong{font-size:11px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sticky-phase{font-size:10px;padding:4px 7px}
  .sticky-overview{padding:10px 12px}
  .sticky-overview-foot{flex-direction:column;align-items:flex-start;gap:3px}
  .sticky-arcade-strip{padding:8px 12px}
  .stage-hint{padding:9px 12px;bottom:10%;min-width:80%}.stage-hint strong{font-size:12px}.stage-hint small{font-size:10px}.hand{font-size:20px}
  .survival-banner{bottom:5%;padding:7px 12px}.survival-banner strong{font-size:12px}.survival-banner small{font-size:9px}.survival-banner>span{font-size:17px}
  .stage-actions{gap:7px;padding:10px}.stage-actions button{padding:12px 8px;font-size:12px}
  .control-panel{padding:18px 14px}
  .control-panel .player-inputs{grid-template-columns:minmax(0,1fr)}
  .control-panel .player-name-field{gap:6px}
  .selection .scene-buttons .scene-choice{font-size:10px;min-height:52px;padding:7px 4px}
  .sticky-victory-card{width:min(88%,330px);padding:15px 10px 19px;gap:4px;border-radius:20px}
  .sticky-victory-medal{font-size:35px}.sticky-victory-rays{width:150%}.sticky-victory-stars{font-size:14px}.sticky-confetti{width:6px;height:10px}
  .guide-grid{grid-template-columns:1fr}.guide-grid>div{padding:15px}.play-guide{padding:0 7px}
}
@media(prefers-reduced-motion:reduce){
  .hand,.intro-sticky-avatar,.intro-gust-line,.sticky-victory-card,.sticky-victory-rays,.sticky-confetti,.stage-wrap.is-gusting::after{animation:none}
  .sticky-confetti{display:none}
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}
