/* KokoTrip Business · Золотая регата v10 · стилевые правила изолированы префиксом kc- */
/* KokoTrip coin collecting minigame: all styles namespaced kc- */
.kc-locked{overflow:hidden!important}
.kc-launch{position:fixed;z-index:89;left:21px;bottom:22px;display:flex;align-items:center;gap:9px;border:1px solid #f7d881;padding:10px 16px 10px 10px;border-radius:999px;background:linear-gradient(135deg,#fff8df,#fff);box-shadow:0 10px 30px #063b4a25;color:#153743;font:800 13px/1.2 Inter,"Segoe UI",Arial,sans-serif;cursor:pointer;transition:transform .2s,box-shadow .2s}
.kc-launch:hover{transform:translateY(-4px);box-shadow:0 17px 36px #063b4a36}.kc-launch__coin{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:linear-gradient(145deg,#fff5a4,#f3b52f 60%,#d48613);border:3px solid #f4d979;color:#fff2bd;font-size:20px;text-shadow:0 2px 2px #bd731d;box-shadow:inset 0 0 0 2px #ffeda6,0 3px 9px #bd8a2640;animation:kc-tilt 4s ease-in-out infinite}
@keyframes kc-tilt{0%,100%{transform:rotate(-12deg)}50%{transform:rotate(12deg)}}
.kc-modal{position:fixed;inset:0;margin:auto;border:0;padding:0;max-width:min(960px,calc(100vw - 30px));width:960px;max-height:min(92dvh,790px);overflow:auto;background:transparent;color:#153743;border-radius:28px;box-shadow:0 30px 90px #022d3e77}
.kc-modal::backdrop{background:#082936bf;backdrop-filter:blur(6px)}
.kc-panel{position:relative;overflow:hidden;background:linear-gradient(155deg,#f6ffff,#eafbf8);font:normal 16px/1.5 Inter,"Segoe UI",Arial,sans-serif;padding:28px 30px 24px;color:#193943}
.kc-panel *{box-sizing:border-box}.kc-close{position:absolute;z-index:5;top:18px;right:18px;border:1px solid #b8dfe1;background:#fff;color:#234b53;width:42px;height:42px;border-radius:50%;font-size:29px;line-height:1;cursor:pointer}.kc-close:hover{background:#e1f8f7}
.kc-header{padding-right:55px}.kc-mini-label{font-size:12px;font-weight:900;color:#108c91;letter-spacing:.16em;margin:0 0 7px}.kc-header h2{font-size:clamp(1.55rem,3vw,2.55rem);color:#153a46;line-height:1.15;margin:0 0 8px;font-weight:900;letter-spacing:-.04em}.kc-header p{font-size:14px;color:#54717c;margin:0 0 21px;max-width:700px}
.kc-main{display:grid;grid-template-columns:225px minmax(0,1fr);gap:20px;align-items:stretch}.kc-info{border:1px solid #d9ebeb;border-radius:21px;background:#ffffffe5;padding:17px 15px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}.kc-info__mascot{width:100%;height:126px;display:grid;place-items:center;background:radial-gradient(circle,#defaf0 0,transparent 70%)}.kc-info__mascot img{max-height:125px;width:auto;height:auto;object-fit:contain}.kc-rules{font-size:14px;font-weight:850;color:#184c58;text-align:center;margin:9px 0 13px}.kc-rules span{color:#efae21}
.kc-hud{display:grid;grid-template-columns:1fr 1fr;gap:9px}.kc-hud>div{padding:10px 12px;text-align:center;border-radius:13px;background:#e9f8f5}.kc-hud small{display:block;color:#507982;font-size:10px;letter-spacing:.11em;font-weight:850}.kc-hud strong{font-size:26px;color:#0f7780;line-height:1.25;font-variant-numeric:tabular-nums}.kc-help{font-size:12px;line-height:1.5;color:#5d737b;margin:14px 0 15px;text-align:center}.kc-action{margin-top:auto}.kc-start,.kc-restart{width:100%;border:0;border-radius:12px;min-height:46px;padding:11px 14px;background:#159da4;color:white;font-weight:850;font-size:14px;cursor:pointer;box-shadow:0 8px 16px #0c898b29}.kc-start:hover,.kc-restart:hover{background:#0d7886}
.kc-field{--kc-boat-clearance:52px;position:relative;min-width:0;height:365px;overflow:hidden;border:2px solid #c9e9e8;border-radius:23px;background:linear-gradient(180deg,#abeafa 0%,#dcf9fc 57%,#77d2d8 58%,#149ea6 100%);touch-action:none;user-select:none;isolation:isolate}
.kc-sun{position:absolute;width:98px;height:98px;right:13%;top:12%;border-radius:50%;background:radial-gradient(circle,#fff7c2,#fff2a0 68%,#fff0a000);filter:drop-shadow(0 0 30px #fff8d8);opacity:.9}.kc-island{position:absolute;bottom:42%;background:#4b9c96;border-radius:50% 50% 0 0;opacity:.56}.kc-island--a{width:210px;height:50px;left:-30px}.kc-island--b{width:150px;height:34px;right:10px}.kc-hills{position:absolute;bottom:45%;left:35%;height:75px;width:155px;background:linear-gradient(135deg,transparent 49%,#86b8b4 50%,#86b8b4 70%,transparent 71%);opacity:.55}
.kc-wave{position:absolute;width:160%;height:90px;left:-30%;border-radius:45%;background:#c9f8f533;bottom:8%;animation:kc-wave 6s ease-in-out infinite alternate}.kc-wave--two{background:#fff9;bottom:-22%;animation-delay:-2s}.kc-playground{position:absolute;inset:0;z-index:3;pointer-events:none}
.kc-boat{--kc-scale:1;position:absolute;z-index:4;left:50%;bottom:var(--kc-boat-clearance);width:112px;height:78px;transform:translateX(-50%) scale(var(--kc-scale));transform-origin:center bottom;transition:left 90ms linear,filter .12s;filter:drop-shadow(0 8px 7px #004e6077)}.kc-boat__hull{position:absolute;bottom:0;left:8px;width:96px;height:23px;border-radius:5px 5px 45px 45px;background:linear-gradient(#da7b32,#b65321);border-bottom:5px solid #82371f}.kc-boat__sail{position:absolute;bottom:24px;left:30px;width:0;height:0;border-left:0 solid transparent;border-right:38px solid transparent;border-bottom:0 solid transparent;border-top:46px solid #fff5dc;transform:skewX(8deg);filter:drop-shadow(2px 2px 1px #d6e0c8)}.kc-boat__flag{position:absolute;top:0;left:27px;display:block;background:#f7d052;color:#fff;width:23px;height:18px;clip-path:polygon(0 0,100% 15%,80% 100%,0 85%);font-size:12px;text-align:center}.kc-boat::before{content:"";position:absolute;left:28px;top:0;width:3px;height:57px;background:#fff1c6}.kc-boat--catch{animation:kc-pop .21s ease-out}
.kc-coin{position:absolute;left:0;top:0;z-index:5;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:radial-gradient(circle at 33% 25%,#fff9cc,#ffe071 36%,#e6a523 75%,#b77117);border:3px solid #ffd86f;color:#fff4b2;box-shadow:inset 0 0 0 2px #f8e3a2,0 4px 8px #21647542;font-size:19px;font-weight:900;text-shadow:0 1px #ba7910}
.kc-sound{margin-top:9px;width:100%;padding:7px 10px;border:1px solid #bbdfe1;border-radius:10px;background:#f3fcfc;color:#1d6773;font-weight:800;font-size:12px;cursor:pointer}.kc-sound[aria-pressed="false"]{background:#f6f8f8;color:#647c82}.kc-coin--collected{transition:transform .15s ease-in,opacity .15s ease-in!important;opacity:0}.kc-field-msg{position:absolute;z-index:6;left:50%;top:44%;transform:translate(-50%,-50%);width:min(82%,310px);border:1px solid #ffffffc9;background:#ffffffea;box-shadow:0 16px 38px #12596633;padding:21px 16px;border-radius:18px;text-align:center;backdrop-filter:blur(6px);pointer-events:none}.kc-field-msg strong{display:block;color:#0a7781;font-weight:900;font-size:clamp(16px,2vw,21px);margin-bottom:5px}.kc-field-msg span{font-size:13px;color:#527078}.kc-field-msg[hidden],.kc-start[hidden],.kc-restart[hidden]{display:none!important}
.kc-status{font-size:12px;color:#526f79;margin:13px 0 0;text-align:center}
@keyframes kc-wave{from{transform:translateX(-5%) rotate(-2deg)}to{transform:translateX(7%) rotate(2deg)}}@keyframes kc-pop{40%{transform:translateX(-50%) scale(var(--kc-scale)) translateY(-7px);filter:drop-shadow(0 0 12px #ffd44b)}100%{transform:translateX(-50%) scale(var(--kc-scale))}}
@media(max-width:700px){.kc-launch{left:12px;bottom:12px;padding:7px 9px}.kc-launch__label{font-size:11px}.kc-launch__coin{height:30px;width:30px;font-size:16px}.kc-modal{max-width:calc(100vw - 14px);width:100%;max-height:94dvh;border-radius:20px}.kc-panel{padding:18px 13px 15px}.kc-header{padding-right:43px}.kc-header h2{font-size:1.65rem}.kc-header p{font-size:12px;margin-bottom:11px}.kc-close{top:9px;right:9px;width:37px;height:37px}.kc-main{grid-template-columns:1fr;gap:10px}.kc-info{display:grid;grid-template-columns:62px 1fr;gap:8px 12px;align-items:center;padding:8px 11px}.kc-info__mascot{grid-row:1 / 3;height:70px}.kc-info__mascot img{max-height:67px}.kc-rules{margin:0;text-align:left;font-size:12px}.kc-hud{gap:7px}.kc-hud>div{padding:5px}.kc-hud strong{font-size:19px}.kc-help{grid-column:1 / -1;margin:0;font-size:11px;text-align:left}.kc-action{grid-column:1 / -1}.kc-start,.kc-restart{min-height:40px}.kc-field{height:min(42dvh,320px);min-height:220px}.kc-status{margin:8px 0 0}}
@media(prefers-reduced-motion:reduce){.kc-launch__coin,.kc-wave,.kc-boat--catch{animation:none!important}.kc-launch,.kc-boat{transition:none!important}}

/* v3 extras: three counters, soft speed cue and an accessible local leaderboard */
.kc-hud{grid-template-columns:repeat(3,minmax(0,1fr))}
.kc-hud>div{padding:10px 6px}.kc-hud strong{font-size:19px}
.kc-rank-kind{display:inline-block;font-size:11px;color:#52767b;font-weight:700;text-align:right}
.kc-ranking{margin-top:12px;padding:14px 17px;border:1px solid #c9e7e4;border-radius:17px;background:linear-gradient(145deg,#f2ffff,#fffaf0)}
.kc-ranking-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.kc-ranking h3{margin:2px 0 0;font-size:18px;color:#123b46}
.kc-rank-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 18px;margin:0;padding:0}
.kc-rank-list li{display:flex;gap:10px;align-items:baseline;min-width:0;padding:5px 8px;border-radius:8px;background:#fff8;font-size:12px;color:#315763}
.kc-rank-list li:nth-child(-n+3){background:#fff2cf}
.kc-rank-list li span:nth-child(1){font-variant-numeric:tabular-nums;color:#ab7819;font-weight:900;min-width:20px}
.kc-rank-list li span:nth-child(2){font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}
.kc-rank-list li span:nth-child(3){font-variant-numeric:tabular-nums;color:#107d82;font-weight:900}
.kc-ranking .kc-rank-empty{grid-column:1/-1;color:#667c82;font-size:12px;padding:4px}
.kc-save{border-top:1px solid #cde7e5;margin-top:11px;padding-top:11px}
.kc-save[hidden]{display:none!important}.kc-save label{font-size:13px;font-weight:850;color:#174955;display:block;margin-bottom:7px}
.kc-save-row{display:flex;gap:8px}.kc-save-row input{min-width:0;flex:1;border:1px solid #aacfd1;background:#fff;border-radius:9px;padding:10px 12px;color:#163e47}
.kc-save-row button{border:0;border-radius:9px;background:#159da4;color:#fff;font-weight:850;padding:10px 13px;white-space:nowrap}
.kc-save-hint{font-size:11px;line-height:1.5;color:#527078;margin:5px 0 0}
.kc-level-up{animation:kc-gears .52s ease-out}.kc-save-row input:focus-visible,.kc-save-row button:focus-visible{outline:3px solid #f1be41;outline-offset:2px}
@keyframes kc-gears{35%{transform:scale(1.12);color:#dc991d}100%{transform:scale(1)}}
@media(max-width:700px){.kc-ranking{padding:10px}.kc-ranking h3{font-size:15px}.kc-rank-list{gap:4px 8px}.kc-hud>div{padding:5px 2px}.kc-hud strong{font-size:16px}.kc-hud small{font-size:9px}.kc-ranking-head{align-items:start}.kc-rank-kind{max-width:125px;font-size:10px}.kc-save-row{flex-wrap:wrap}.kc-save-row button{flex:1}}
@media(max-width:370px){.kc-rank-list{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.kc-level-up{animation:none!important}}

/* v4: full-screen control, fast stars and temporary boat extension */
.kc-window-actions{position:absolute;z-index:9;right:18px;top:16px;display:flex;align-items:center;gap:8px}
.kc-window-actions .kc-close{position:static;flex:none}
.kc-expand{min-height:42px;display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:1px solid #b8dfe1;background:#fff;border-radius:999px;color:#176773;font-weight:850;font-size:12px;cursor:pointer}
.kc-expand:hover{background:#dff9f5}.kc-expand:focus-visible{outline:3px solid #efbb3e;outline-offset:2px}
.kc-header{padding-right:210px}
.kc-modal.kc-modal--expanded,.kc-modal:fullscreen{inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0;margin:0;overflow:auto}
.kc-modal.kc-modal--expanded .kc-panel,.kc-modal:fullscreen .kc-panel{min-height:100%;padding:24px clamp(14px,4vw,62px)}
.kc-modal.kc-modal--expanded .kc-main,.kc-modal:fullscreen .kc-main{grid-template-columns:minmax(200px,260px) minmax(0,1fr)}
.kc-modal.kc-modal--expanded .kc-field,.kc-modal:fullscreen .kc-field{height:max(52dvh,390px)}
.kc-modal.kc-modal--expanded .kc-ranking,.kc-modal:fullscreen .kc-ranking{max-width:1100px;margin-left:auto;margin-right:auto}
.kc-modal.kc-modal--expanded .kc-main,.kc-modal:fullscreen .kc-main{max-width:1500px;margin:auto}
.kc-modal.kc-modal--expanded .kc-header,.kc-modal:fullscreen .kc-header{max-width:1500px;margin:0 auto 12px}
.kc-boat__hull{left:50%!important;transform:translateX(-50%);width:calc(96px * var(--kc-length,1));transition:width .23s ease,box-shadow .23s ease}
.kc-boat--boost .kc-boat__hull{background:linear-gradient(#f3b65d,#bb6329);box-shadow:0 0 18px #ffda5f, inset 0 2px 5px #ffdf8f}
.kc-boat--boost:after{content:'✦';position:absolute;bottom:9px;left:50%;transform:translateX(-50%);color:#ffed9c;font-size:20px;text-shadow:0 0 7px #ffc62d}
.kc-powerup{position:absolute;z-index:6;top:12px;left:50%;transform:translateX(-50%);background:#fff7cfee;color:#825a04;border:1px solid #ffdf7c;border-radius:999px;font-weight:900;font-size:12px;padding:7px 12px;white-space:nowrap;box-shadow:0 6px 25px #d39c3440;pointer-events:none}
.kc-powerup[hidden]{display:none!important}
.kc-star{position:absolute;z-index:6;left:0;top:0;width:52px;height:62px;display:grid;place-items:center;font-size:51px;color:#fff7b0;line-height:1;text-shadow:0 0 9px #fff,0 0 18px #ffe44a,0 0 30px #ff9913;filter:drop-shadow(0 0 6px #f6a900);animation:kc-star-glimmer .38s ease-in-out infinite alternate;will-change:transform}
.kc-star:before{content:'';position:absolute;top:-38px;left:24px;width:5px;height:42px;border-radius:8px;background:linear-gradient(transparent,#ffef81);filter:blur(2px);opacity:.88;z-index:-1}
@keyframes kc-star-glimmer{from{filter:drop-shadow(0 0 6px #f6a900) brightness(1)}to{filter:drop-shadow(0 0 15px #ffed65) brightness(1.25)}}
.kc-star--caught{opacity:0;transition:opacity .12s,scale .12s;scale:.25}
.kc-rank-list li span:last-child{white-space:nowrap}.kc-rank-list li span.kc-rank-speed{font-size:10px;color:#587a80;font-weight:800}
@media(max-width:700px){.kc-window-actions{right:9px;top:9px;gap:5px}.kc-expand{min-height:37px;padding:6px 8px;font-size:11px}.kc-expand span{display:none}.kc-header{padding-right:88px}.kc-modal.kc-modal--expanded .kc-main,.kc-modal:fullscreen .kc-main{grid-template-columns:1fr;gap:10px}.kc-modal.kc-modal--expanded .kc-field,.kc-modal:fullscreen .kc-field{height:max(49dvh,260px);min-height:0}.kc-modal.kc-modal--expanded .kc-panel,.kc-modal:fullscreen .kc-panel{padding:17px 12px}.kc-powerup{font-size:10px}}
@media(prefers-reduced-motion:reduce){.kc-star{animation:none!important}}

@media(max-width:700px){
 .kc-modal.kc-modal--expanded .kc-header,.kc-modal:fullscreen .kc-header{margin-bottom:6px}
 .kc-modal.kc-modal--expanded .kc-header h2,.kc-modal:fullscreen .kc-header h2{font-size:1.32rem;margin-bottom:2px}
 .kc-modal.kc-modal--expanded .kc-header p,.kc-modal:fullscreen .kc-header p{display:none}
 .kc-modal.kc-modal--expanded .kc-info,.kc-modal:fullscreen .kc-info{grid-template-columns:1fr;padding:6px 9px;gap:4px}
 .kc-modal.kc-modal--expanded .kc-info__mascot,.kc-modal:fullscreen .kc-info__mascot,
 .kc-modal.kc-modal--expanded .kc-rules,.kc-modal:fullscreen .kc-rules,
 .kc-modal.kc-modal--expanded .kc-help,.kc-modal:fullscreen .kc-help{display:none}
 .kc-modal.kc-modal--expanded .kc-hud>div,.kc-modal:fullscreen .kc-hud>div{padding:3px 4px}
 .kc-modal.kc-modal--expanded .kc-action,.kc-modal:fullscreen .kc-action{display:flex;gap:7px;align-items:stretch}
 .kc-modal.kc-modal--expanded .kc-action .kc-start,.kc-modal:fullscreen .kc-action .kc-start,
 .kc-modal.kc-modal--expanded .kc-action .kc-restart,.kc-modal:fullscreen .kc-action .kc-restart{flex:1}
 .kc-modal.kc-modal--expanded .kc-action .kc-sound,.kc-modal:fullscreen .kc-action .kc-sound{flex:0 0 auto;width:auto;padding:5px;margin-top:0;font-size:11px}
 .kc-modal.kc-modal--expanded .kc-field,.kc-modal:fullscreen .kc-field{height:max(53dvh,290px)}
}

/* v5: fullscreen mobile, slower stars, and catchable clock that halves the fall speed */
.kc-clock{position:absolute;z-index:7;left:0;top:0;width:46px;height:48px;display:grid;place-items:center;font-size:38px;line-height:1;filter:drop-shadow(0 0 8px #72eefa);text-shadow:0 0 14px #baf9ff;will-change:transform}
.kc-clock:after{content:'';position:absolute;width:42px;height:42px;inset:3px;border:2px dashed #bdfaff;border-radius:50%;animation:kc-clock-spin 1.8s linear infinite;pointer-events:none}
.kc-clock--caught{opacity:0;scale:.3;transition:opacity .12s,scale .12s}
@keyframes kc-clock-spin{to{transform:rotate(360deg)}}
.kc-slow-badge{position:absolute;z-index:8;top:48px;left:50%;transform:translateX(-50%);padding:6px 12px;background:#e5f9ffeb;color:#086d82;border:1px solid #66bfe8;border-radius:999px;font-size:12px;font-weight:900;box-shadow:0 7px 22px #0877b644;white-space:nowrap;pointer-events:none}
.kc-slow-badge[hidden]{display:none!important}
.kc-hud strong.kc-hud-slowed{color:#0c87ba}
@media(max-width:700px){
  .kc-modal.kc-modal--expanded{inset:0!important;margin:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;overflow:auto;overscroll-behavior:contain}
  .kc-modal.kc-modal--expanded .kc-panel{min-height:100dvh;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));}
  .kc-modal.kc-modal--expanded .kc-header{margin-bottom:5px;padding-right:48px}
  .kc-modal.kc-modal--expanded .kc-mini-label{font-size:9px;margin-bottom:2px}
  .kc-modal.kc-modal--expanded .kc-header h2{font-size:1.23rem;margin-bottom:1px}
  .kc-modal.kc-modal--expanded .kc-main{gap:8px}
  .kc-modal.kc-modal--expanded .kc-info{border-radius:12px;padding:6px 7px;gap:5px}
  .kc-modal.kc-modal--expanded .kc-hud{gap:6px}
  .kc-modal.kc-modal--expanded .kc-hud>div{padding:3px 4px;border-radius:8px}
  .kc-modal.kc-modal--expanded .kc-hud strong{font-size:16px}
  .kc-modal.kc-modal--expanded .kc-hud small{font-size:8px}
  .kc-modal.kc-modal--expanded .kc-action{gap:5px}
  .kc-modal.kc-modal--expanded .kc-action button{min-height:35px;font-size:11px}
  .kc-modal.kc-modal--expanded .kc-field{height:clamp(310px,calc(100dvh - 175px),840px);min-height:310px;border-radius:15px}
  .kc-modal.kc-modal--playing .kc-ranking,.kc-modal.kc-modal--playing .kc-status{display:none}
  .kc-modal.kc-modal--expanded .kc-expand{display:none}
  .kc-modal.kc-modal--finished .kc-field{height:min(39dvh,320px);min-height:220px}
  .kc-modal.kc-modal--expanded .kc-window-actions{right:7px;top:8px}
  .kc-modal.kc-modal--expanded .kc-close{min-width:37px;width:37px;height:37px}
  .kc-modal.kc-modal--expanded .kc-powerup{top:7px;font-size:9px}
  .kc-modal.kc-modal--expanded .kc-slow-badge{top:39px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.kc-clock:after{animation:none!important}}


/* v7: simplified full-width game: no fish, gulls or mascots; hull follows field width. */
.kc-modal,.kc-modal.kc-modal--expanded,.kc-modal:fullscreen{
  inset:0!important;margin:0!important;width:100vw!important;max-width:100vw!important;
  height:100dvh!important;max-height:100dvh!important;border-radius:0!important;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;box-shadow:none;
}
.kc-modal::backdrop{background:#052b33e8;backdrop-filter:none}
.kc-modal .kc-panel,.kc-modal.kc-modal--expanded .kc-panel{
  min-height:100%;width:100%;max-width:none;padding:clamp(10px,2.2vh,22px) clamp(10px,2vw,34px) 16px;
}
.kc-modal .kc-header,.kc-modal.kc-modal--expanded .kc-header{
  max-width:none;margin:0 0 9px;padding-right:62px;
}
.kc-modal .kc-header h2,.kc-modal.kc-modal--expanded .kc-header h2{
  font-size:clamp(1.24rem,2.4vw,1.9rem);margin:0 0 3px;
}
.kc-modal .kc-header p,.kc-modal.kc-modal--expanded .kc-header p{display:none}
.kc-modal .kc-main,.kc-modal.kc-modal--expanded .kc-main,.kc-modal:fullscreen .kc-main{
  display:flex;flex-direction:column;max-width:none;width:100%;gap:8px;margin:0;
}
.kc-modal .kc-info,.kc-modal.kc-modal--expanded .kc-info{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:9px;padding:8px 10px;border-radius:13px;
}
.kc-info__mascot,.kc-rules,.kc-help{display:none!important}
.kc-modal .kc-hud{grid-column:1;gap:7px;min-width:0}
.kc-modal .kc-hud>div,.kc-modal.kc-modal--expanded .kc-hud>div{padding:5px 4px;min-width:0}
.kc-modal .kc-hud strong,.kc-modal.kc-modal--expanded .kc-hud strong{font-size:clamp(15px,2vw,21px)}
.kc-modal .kc-hud small,.kc-modal.kc-modal--expanded .kc-hud small{font-size:clamp(8px,.75vw,11px)}
.kc-modal .kc-action,.kc-modal.kc-modal--expanded .kc-action{
  display:flex;gap:6px;align-items:center;grid-column:2;min-width:0;
}
.kc-modal .kc-action button,.kc-modal.kc-modal--expanded .kc-action button{min-height:38px}
.kc-modal .kc-start,.kc-modal .kc-restart{font-size:12px;padding:8px 12px;white-space:nowrap}
.kc-modal .kc-sound{width:auto!important;flex:none!important;min-width:40px;padding:7px 9px!important;font-size:11px;margin:0}
.kc-window-actions{top:10px;right:10px}.kc-close{width:40px;height:40px}
.kc-expand{display:none!important}
.kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field,.kc-modal:fullscreen .kc-field{
  height:clamp(320px,calc(100dvh - 178px),1200px);min-height:320px;width:100%;
  border-radius:15px;flex:none;--kc-boat-clearance:clamp(88px,15dvh,155px);
}
.kc-boat{
  --kc-base-w:80px;--kc-length:1;--kc-scale:1;
  position:absolute;width:var(--kc-effective-w,80px)!important;
  height:var(--kc-effective-h,54px)!important;
  transform:translateX(-50%)!important;transform-origin:center bottom;
  bottom:var(--kc-boat-clearance);transition:left 70ms linear,filter .12s;
}
.kc-boat::before{content:'';position:absolute;left:39%;top:6%;width:2.7%;height:78%;background:#fff1c6}
.kc-boat__hull{
  position:absolute;left:0!important;bottom:0;width:100%!important;height:24%;
  transform:none!important;transition:width .23s ease,box-shadow .2s;
  border-bottom:clamp(2px,.35vw,5px) solid #82371f;
  border-radius:8% 8% 43% 43%;
}
.kc-boat__sail{
  position:absolute;left:41%;bottom:27%;width:46%;height:66%;
  border:0!important;transform:none!important;clip-path:polygon(0 0,0 100%,100% 100%);
  background:linear-gradient(125deg,#ffffff,#fff0cb);
  filter:drop-shadow(2px 2px 2px #4e7777aa);
}
.kc-boat__flag{position:absolute;top:0;left:37%;width:23%;height:18%;font-size:clamp(8px,1.5vw,14px);}
.kc-boat--catch{animation:kc-boat-hit-v7 .19s ease-out}
@keyframes kc-boat-hit-v7{50%{transform:translateX(-50%) translateY(-5px)}to{transform:translateX(-50%) translateY(0)}}
.kc-wave,.kc-wave--two{animation:none!important;will-change:auto}
.kc-modal .kc-ranking,.kc-modal.kc-modal--expanded .kc-ranking{max-width:none;width:100%;margin:9px 0 0}
.kc-modal.kc-modal--playing .kc-ranking,.kc-modal.kc-modal--playing .kc-status{display:none!important}
.kc-modal .kc-status{margin:7px 0 0}
@media(max-width:700px){
 .kc-modal .kc-panel,.kc-modal.kc-modal--expanded .kc-panel{padding:max(7px,env(safe-area-inset-top)) 6px max(8px,env(safe-area-inset-bottom))}
 .kc-modal .kc-header,.kc-modal.kc-modal--expanded .kc-header{margin-bottom:5px;padding-right:46px}
 .kc-modal .kc-mini-label{font-size:9px;margin-bottom:1px}
 .kc-modal .kc-header h2,.kc-modal.kc-modal--expanded .kc-header h2{font-size:clamp(1.15rem,4.8vw,1.55rem);margin-bottom:0}
 .kc-modal .kc-info,.kc-modal.kc-modal--expanded .kc-info{grid-template-columns:1fr;gap:5px;padding:5px 6px}
 .kc-modal .kc-hud{grid-column:1}
 .kc-modal .kc-hud>div,.kc-modal.kc-modal--expanded .kc-hud>div{padding:4px 2px}
 .kc-modal .kc-action,.kc-modal.kc-modal--expanded .kc-action{grid-column:1;display:flex;gap:6px}
 .kc-modal .kc-start,.kc-modal .kc-restart{flex:1;min-width:0;font-size:12px}
 .kc-modal .kc-sound{min-height:36px}
 .kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field{
   height:clamp(300px,calc(100dvh - 173px),1050px);min-height:300px;
   --kc-boat-clearance:clamp(90px,16dvh,150px);
 }
 .kc-close{width:35px;height:35px}
 .kc-ranking{margin-top:8px}
}
@media(max-height:600px){
 .kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field{height:clamp(250px,calc(100dvh - 162px),750px);min-height:250px;--kc-boat-clearance:clamp(55px,13dvh,100px)}
}
@media(prefers-reduced-motion:reduce){.kc-boat--catch{animation:none!important}}

/* v8: compact PORTRAIT layout, light rendering for mobile browsers */
.kc-modal,.kc-modal.kc-modal--expanded,.kc-modal:fullscreen{
  inset:0!important;margin:auto!important;
  width:min(420px,100vw)!important;max-width:420px!important;
  height:min(94dvh,920px)!important;max-height:94dvh!important;
  overflow-x:hidden!important;overflow-y:auto!important;
  border-radius:22px!important;box-shadow:0 14px 45px #042e3b55!important;
}
.kc-modal .kc-panel,.kc-modal.kc-modal--expanded .kc-panel,.kc-modal:fullscreen .kc-panel{
  min-height:100%;width:100%;max-width:100%;padding:13px 12px 14px!important;
}
.kc-modal .kc-header,.kc-modal.kc-modal--expanded .kc-header{
  padding-right:43px;margin-bottom:8px;max-width:100%;
}
.kc-modal .kc-mini-label{font-size:10px;letter-spacing:.1em}
.kc-modal .kc-header h2,.kc-modal.kc-modal--expanded .kc-header h2{
  font-size:clamp(1.18rem,4.7vw,1.47rem);line-height:1.15;margin-bottom:0;
}
.kc-modal .kc-main,.kc-modal.kc-modal--expanded .kc-main,.kc-modal:fullscreen .kc-main{
  display:flex;flex-direction:column;gap:9px;width:100%;max-width:100%;
}
.kc-modal .kc-info,.kc-modal.kc-modal--expanded .kc-info{
  display:grid;grid-template-columns:minmax(0,1fr);gap:7px;padding:8px;border-radius:13px;
}
.kc-modal .kc-hud{grid-column:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.kc-modal .kc-hud>div{padding:4px 2px}
.kc-modal .kc-hud strong{font-size:clamp(16px,4vw,20px)}
.kc-modal .kc-hud small{font-size:9px}
.kc-modal .kc-action,.kc-modal.kc-modal--expanded .kc-action{
  grid-column:1;display:flex;gap:7px;width:100%;
}
.kc-modal .kc-action .kc-start,.kc-modal .kc-action .kc-restart{
  flex:1;min-width:0;min-height:39px;font-size:12px;
}
.kc-modal .kc-action .kc-sound{
  flex:none;min-height:39px;max-width:45%;font-size:11px;
}
.kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field,.kc-modal:fullscreen .kc-field{
  display:block;width:100%!important;height:auto!important;
  aspect-ratio:2 / 3;min-height:0!important;max-height:none!important;
  border-radius:15px;flex:none;--kc-boat-clearance:clamp(60px,13dvh,115px);
}
.kc-modal .kc-ranking,.kc-modal.kc-modal--expanded .kc-ranking{width:100%;max-width:100%;margin-top:9px}
.kc-window-actions{top:9px;right:10px}
.kc-modal .kc-close{width:36px;height:36px}
.kc-modal .kc-expand{display:none!important}
.kc-modal .kc-status{margin-top:8px}
/* Strip expensive continuous paint/compositing effects. Gameplay is intentionally 30 FPS. */
.kc-coin,.kc-star,.kc-clock{box-shadow:none!important;filter:none!important;will-change:auto!important}
.kc-star,.kc-clock:after,.kc-wave,.kc-launch__coin{animation:none!important}
.kc-field-msg{backdrop-filter:none!important}
.kc-sun{filter:none!important}
.kc-boat{filter:none!important;transition:none!important}
.kc-boat--catch{animation:none!important}
@media(max-width:700px){
 .kc-modal,.kc-modal.kc-modal--expanded{inset:0!important;margin:0 auto!important;
   width:100vw!important;max-width:100vw!important;height:100dvh!important;
   max-height:100dvh!important;border-radius:0!important;box-shadow:none!important}
 .kc-modal .kc-panel,.kc-modal.kc-modal--expanded .kc-panel{
   padding:max(9px,env(safe-area-inset-top)) 8px max(10px,env(safe-area-inset-bottom))!important;
 }
 .kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field{
   aspect-ratio:2 / 3;height:auto!important;min-height:0!important;
 }
}
@media(max-height:620px){
 .kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field{--kc-boat-clearance:clamp(52px,12dvh,85px)}
}

/* v9: 600px desktop dialog with left HUD, whole playfield visible without scrolling. */
@media (min-width:701px) {
  .kc-modal,.kc-modal.kc-modal--expanded,.kc-modal:fullscreen {
    width:600px!important;max-width:600px!important;
    height:min(646px,calc(100dvh - 14px))!important;max-height:calc(100dvh - 14px)!important;
    overflow:hidden!important;border-radius:20px!important;
    margin:auto!important;inset:0!important;
  }
  .kc-modal .kc-panel,.kc-modal.kc-modal--expanded .kc-panel {
    padding:11px 13px 11px!important;min-height:0!important;
  }
  .kc-modal .kc-header,.kc-modal.kc-modal--expanded .kc-header {
    padding-right:45px!important;margin:0 0 7px!important;
  }
  .kc-modal .kc-header h2,.kc-modal.kc-modal--expanded .kc-header h2 {
    font-size:1.34rem!important;line-height:1.13!important;
  }
  .kc-modal .kc-main,.kc-modal.kc-modal--expanded .kc-main {
    display:grid!important;
    grid-template-columns:190px minmax(0,1fr)!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    grid-template-areas:"info field" "ranking field"!important;
    gap:9px 10px!important;
    align-items:start!important;
    width:100%!important;
  }
  .kc-modal .kc-info,.kc-modal.kc-modal--expanded .kc-info {
    grid-area:info!important;
    display:flex!important;flex-direction:column!important;
    gap:8px!important;padding:9px 8px!important;
    align-items:stretch!important;
    min-width:0;
  }
  .kc-modal .kc-hud,.kc-modal.kc-modal--expanded .kc-hud {
    width:100%!important;
    grid-template-columns:1fr!important;
    gap:5px!important;
  }
  .kc-modal .kc-hud>div{padding:5px 4px!important}
  .kc-modal .kc-hud strong{font-size:18px!important}
  .kc-modal .kc-action,.kc-modal.kc-modal--expanded .kc-action {
    display:flex!important;flex-direction:column!important;
    width:100%!important;gap:5px!important;
  }
  .kc-modal .kc-action button,.kc-modal.kc-modal--expanded .kc-action button {
    width:100%!important;max-width:none!important;min-height:35px!important;
    margin:0!important;padding:5px!important;font-size:11px!important;
  }
  .kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field {
    grid-area:field!important;
    justify-self:center!important;align-self:start!important;
    box-sizing:border-box!important;
    height:min(540px,calc(100dvh - 125px))!important;
    aspect-ratio:2 / 3!important;
    width:auto!important;max-width:100%!important;
    min-height:0!important;max-height:none!important;
    margin:0 auto!important;border-radius:16px!important;
    --kc-boat-clearance:clamp(60px,14dvh,110px);
  }
  .kc-modal .kc-ranking,.kc-modal.kc-modal--expanded .kc-ranking,
  .kc-modal.kc-modal--playing .kc-ranking {
    grid-area:ranking!important;
    display:block!important;
    min-height:0!important;max-height:205px!important;
    overflow-y:auto!important;
    margin:0!important;padding:7px!important;
    border-radius:11px!important;
    scrollbar-width:thin;
  }
  .kc-modal .kc-ranking h3{font-size:13px!important}
  .kc-modal .kc-ranking-head{margin-bottom:4px!important}
  .kc-modal .kc-rank-kind{display:none!important}
  .kc-modal .kc-rank-list{grid-template-columns:1fr!important;gap:3px!important}
  .kc-modal .kc-rank-list li{font-size:10px!important;padding:3px 4px!important;gap:4px!important}
  .kc-modal .kc-save-row{flex-wrap:wrap!important}
  .kc-modal .kc-save-row button{width:100%!important}
  .kc-modal .kc-status{font-size:10px!important;line-height:1.3;margin:5px 0 0!important}
}
/* Phone remains full viewport width, with the ranking below the playfield. */
@media (max-width:700px) {
  .kc-modal .kc-main,.kc-modal.kc-modal--expanded .kc-main {
    display:flex!important;flex-direction:column!important;
    gap:8px!important;
  }
  .kc-modal .kc-info{order:0}
  .kc-modal .kc-field{order:1}
  .kc-modal .kc-ranking{order:2}
  .kc-modal,.kc-modal.kc-modal--expanded{width:100vw!important;max-width:100vw!important}
}
/* A brief golden flash and hop ONLY when the coin actually lands in the hull. */
.kc-boat--catch{animation:kc-catch-hop-v9 .27s cubic-bezier(.2,.8,.35,1)!important}
.kc-boat--catch .kc-boat__hull{animation:kc-catch-glow-v9 .3s ease-out!important}
.kc-boat::after{
  content:"";position:absolute;right:5%;bottom:14%;width:12px;height:12px;
  border-radius:50%;background:#fff7b3;opacity:0;pointer-events:none;
}
.kc-boat--catch::after{animation:kc-catch-lamp-v9 .33s ease-out!important}
@keyframes kc-catch-hop-v9{
  0%,100%{bottom:var(--kc-boat-clearance)}
  40%{bottom:calc(var(--kc-boat-clearance) + 10px)}
  70%{bottom:calc(var(--kc-boat-clearance) + 2px)}
}
@keyframes kc-catch-glow-v9{
  0%,100%{box-shadow:none}
  25%,55%{box-shadow:0 0 17px 7px #ffd34d, inset 0 0 9px #fff1a5;
          background:linear-gradient(#ffe19a,#efa33b)}
}
@keyframes kc-catch-lamp-v9{
  0%,100%{opacity:0;box-shadow:none}
  30%,65%{opacity:1;box-shadow:0 0 14px 7px #ffec7a,0 0 28px 10px #ffdf5c80}
}
@media (prefers-reduced-motion:reduce){
 .kc-boat--catch,.kc-boat--catch .kc-boat__hull,.kc-boat--catch::after{animation:none!important}
 .kc-boat--catch .kc-boat__hull{box-shadow:0 0 10px 4px #ffe180}
}

/* v10: mobile viewport layout — full playfield ABOVE the compact control bar. */
@media (max-width:700px) {
  .kc-modal,.kc-modal.kc-modal--expanded,.kc-modal:fullscreen{
    position:fixed!important;inset:0!important;margin:0!important;
    width:100vw!important;max-width:100vw!important;
    height:100dvh!important;max-height:100dvh!important;
    overflow:hidden!important;border-radius:0!important;
  }
  .kc-modal .kc-panel,.kc-modal.kc-modal--expanded .kc-panel {
    display:flex!important;flex-direction:column!important;
    height:100%!important;min-height:0!important;overflow:hidden!important;
    padding:max(6px,env(safe-area-inset-top)) 7px max(7px,env(safe-area-inset-bottom))!important;
  }
  .kc-modal .kc-header,.kc-modal.kc-modal--expanded .kc-header{
    flex:0 0 auto!important;min-height:0!important;margin:0 0 5px!important;
    padding:0 38px 0 2px!important;
  }
  .kc-modal .kc-header h2,.kc-modal.kc-modal--expanded .kc-header h2{
    font-size:clamp(16px,4vw,21px)!important;margin:1px 0!important;
    line-height:1.1!important;
  }
  .kc-modal .kc-mini-label{font-size:9px!important;margin-bottom:0!important}
  .kc-modal .kc-header p{display:none!important}
  .kc-modal .kc-close{width:33px!important;height:33px!important;}
  .kc-modal .kc-main,.kc-modal.kc-modal--expanded .kc-main {
    display:flex!important;flex-direction:column!important;flex:1 1 0!important;
    min-height:0!important;height:100%!important;
    position:relative!important;overflow:hidden!important;gap:6px!important;
  }
  .kc-modal .kc-field,.kc-modal.kc-modal--expanded .kc-field {
    order:0!important;flex:1 1 0!important;
    width:100%!important;max-width:100%!important;height:auto!important;
    min-height:0!important;max-height:none!important;aspect-ratio:auto!important;
    margin:0!important;border-radius:14px!important;
    --kc-boat-clearance:clamp(54px,10dvh,85px);
  }
  .kc-modal .kc-info,.kc-modal.kc-modal--expanded .kc-info {
    order:1!important;flex:0 0 auto!important;display:flex!important;
    flex-direction:column!important;gap:5px!important;
    width:100%!important;margin:0!important;padding:6px!important;
    border-radius:12px!important;
  }
  .kc-modal .kc-rules,.kc-modal .kc-help,.kc-modal .kc-info__mascot{
    display:none!important;
  }
  .kc-modal .kc-hud,.kc-modal.kc-modal--expanded .kc-hud{
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
    width:100%!important;align-self:stretch!important;gap:5px!important;margin:0!important;
  }
  .kc-modal .kc-hud>div{padding:3px 2px!important;border-radius:8px!important;}
  .kc-modal .kc-hud small{font-size:8px!important;letter-spacing:0!important}
  .kc-modal .kc-hud strong{font-size:clamp(15px,4.2vw,19px)!important;line-height:1.1!important}
  .kc-modal .kc-action,.kc-modal.kc-modal--expanded .kc-action{
    display:grid!important;grid-template-columns:minmax(0,1.6fr) minmax(0,1.15fr) minmax(0,.9fr)!important;
    align-items:stretch!important;gap:5px!important;margin:0!important;width:100%!important;
  }
  .kc-modal .kc-action button,.kc-modal.kc-modal--expanded .kc-action button{
    margin:0!important;padding:5px 3px!important;min-width:0!important;
    min-height:34px!important;width:100%!important;max-width:none!important;
    font-size:clamp(9px,2.7vw,12px)!important;line-height:1.15!important;
    border-radius:8px!important;
  }
  .kc-modal .kc-action button[hidden]{display:none!important}
  .kc-modal .kc-rank-toggle{display:block!important;max-width:none!important;
    border:1px solid #b5dbd6!important;background:#fffdf0!important;
    color:#17646a!important;font-weight:800!important;
  }
  .kc-modal .kc-ranking,.kc-modal.kc-modal--expanded .kc-ranking{
    display:none!important;position:absolute!important;inset:0!important;
    order:2!important;z-index:20!important;max-height:none!important;
    min-height:0!important;overflow-y:auto!important;
    border-radius:14px!important;margin:0!important;padding:14px 12px!important;
    background:linear-gradient(155deg,#f6ffff,#fff7e0)!important;
    box-shadow:inset 0 0 0 1px #cce6de!important;
  }
  .kc-modal.kc-modal--show-ranking .kc-ranking,
  .kc-modal.kc-modal--playing.kc-modal--show-ranking .kc-ranking{
    display:block!important;
  }
  .kc-modal .kc-rank-dismiss{display:inline-flex!important;align-items:center;justify-content:center;
    flex:none;border:1px solid #c0dddd;border-radius:9px;background:#fff;
    padding:6px 8px;color:#15525a;font-size:12px;font-weight:800;cursor:pointer;
  }
  .kc-modal .kc-rank-list{grid-template-columns:1fr!important}
  .kc-modal .kc-status{display:none!important}
  .kc-modal .kc-boat--catch{animation:kc-catch-hop-v9 .27s cubic-bezier(.2,.8,.35,1)!important}
}
@media(min-width:701px){
  .kc-rank-toggle,.kc-rank-dismiss{display:none!important}
}

/* ===== Dedicated /games/ page: non-modal game and no global shortcut ===== */
.games-hub{background:linear-gradient(180deg,#eefbfb,#fff 40%)}
.games-hub__intro{background:linear-gradient(110deg,#efffff,#e8f7f5);border-bottom:1px solid #d5ebeb}
.games-hub__intro-inner,.games-hub__layout,.games-hub__upcoming-inner{width:min(1220px,calc(100% - 30px));margin-inline:auto}
.games-hub__intro-inner{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 0}
.games-hub__eyebrow{font-size:.71rem;font-weight:900;color:#158b94;letter-spacing:.11em}
.games-hub__intro h1{font-size:clamp(1.55rem,2.8vw,2.7rem);margin:5px 0 6px;line-height:1.12}
.games-hub__intro p{color:#526e76;font-size:.88rem;margin:0;max-width:690px}
.games-hub__back{font-size:.86rem;font-weight:800;white-space:nowrap;color:#087c87}
.games-hub__back:hover{text-decoration:underline}
.games-hub__body{padding:17px 0 25px}
.games-hub__layout{display:grid;grid-template-columns:minmax(0,600px) minmax(260px,1fr);gap:24px;align-items:start}
.games-hub__game{min-width:0}
.games-hub__loading{padding:25px;background:#fff;border-radius:15px}
.games-hub__side{display:grid;gap:16px}
.games-hub__aside-card{padding:23px;border:1px solid #d4e8e9;border-radius:22px;background:#fff;box-shadow:0 7px 20px #074e5011}
.games-hub__aside-card h2{font-size:1.3rem;margin:7px 0 12px}
.games-hub__aside-note{font-size:.8rem;color:#5b757a;line-height:1.45;margin:0 0 13px}
.games-hub__leaders{list-style:none;padding:0;margin:0;display:grid;gap:4px;counter-reset:rank}
.games-hub__leaders li{display:flex;gap:9px;align-items:baseline;border-radius:9px;background:#f0f8f7;padding:7px 9px;min-width:0;font-size:.81rem}
.games-hub__leaders li:nth-child(-n+3){background:#fff3ce}
.games-hub__leaders li span:first-child{color:#95671b;font-weight:900}
.games-hub__leaders li span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}
.games-hub__leaders li span:last-child{color:#118992;font-weight:800}
.games-hub__rules p,.games-hub__rules li{font-size:.86rem;color:#526d74}
.games-hub__rules ul{margin:10px 0;padding-left:19px}
.games-hub__upcoming{padding:25px 0 54px}
.games-hub__upcoming-inner{display:flex;align-items:center;gap:22px;padding:25px;background:#103b48;color:#fff;border-radius:22px}
.games-hub__upcoming-icon{font-size:2.5rem}
.games-hub__upcoming h2{font-size:1.22rem;color:white;margin:0 0 7px}
.games-hub__upcoming p{font-size:.88rem;color:#c8e8e8;margin:0}
/* Game never becomes a browser-level modal. */
.games-hub .kc-modal.kc-modal--page,.games-hub .kc-modal.kc-modal--expanded.kc-modal--page{
 position:relative!important;display:block!important;inset:auto!important;margin:0!important;
 width:600px!important;max-width:100%!important;height:min(690px,calc(100dvh - 295px))!important;
 min-height:350px!important;max-height:none!important;overflow:hidden!important;
 border:1px solid #cbe2e2!important;border-radius:22px!important;box-shadow:0 12px 32px #0b3d4c19!important;
}
.games-hub .kc-modal--page .kc-panel{width:100%!important;height:100%!important;min-height:0!important;padding:14px!important;display:flex!important;flex-direction:column!important}
.games-hub .kc-modal--page .kc-header{flex:0 0 auto!important;padding:0!important;max-width:none!important;margin:0 0 8px!important}
.games-hub .kc-modal--page .kc-header h2{font-size:1.3rem!important;margin:3px 0!important}
.games-hub .kc-modal--page .kc-main{display:grid!important;grid-template-columns:minmax(155px,36%) minmax(0,1fr)!important;gap:9px!important;flex:1 1 0!important;min-height:0!important;overflow:hidden!important;align-items:stretch!important}
.games-hub .kc-modal--page .kc-info{grid-column:1!important;display:flex!important;flex-direction:column!important;padding:11px!important;gap:10px!important}
.games-hub .kc-modal--page .kc-rules,.games-hub .kc-modal--page .kc-help{display:none!important}
.games-hub .kc-modal--page .kc-hud{display:grid!important;grid-template-columns:1fr!important;width:100%!important;gap:6px!important;margin:0!important}
.games-hub .kc-modal--page .kc-action{display:flex!important;flex-direction:column!important;gap:7px!important;grid-column:1!important;margin-top:auto!important;align-items:stretch!important}
.games-hub .kc-modal--page .kc-action button{display:block!important;width:100%!important;max-width:100%!important;min-height:39px!important;padding:8px 5px!important;font-size:12px!important}
.games-hub .kc-modal--page .kc-action button[hidden]{display:none!important}
.games-hub .kc-modal--page .kc-field{grid-column:2!important;order:0!important;flex:1 1 0!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border-radius:14px!important;--kc-boat-clearance:clamp(52px,12dvh,85px)}
.games-hub .kc-modal--page .kc-ranking{display:none!important}
.games-hub .kc-modal--page .kc-status{display:block!important;flex:0 0 auto!important;margin:6px 0 0!important;line-height:1.2!important;font-size:10px!important}
.games-hub .kc-modal--page .kc-rank-toggle{display:inline-flex!important}
@media(max-width:900px){.games-hub__layout{grid-template-columns:minmax(0,600px);justify-content:center}.games-hub__side{grid-template-columns:1fr 1fr}.games-hub__intro-inner{padding:13px 0}}
@media(max-width:700px){
 .games-hub__intro-inner{padding:8px 0;align-items:center}
 .games-hub__intro h1{font-size:1.24rem;margin:1px 0}
 .games-hub__intro p{display:none}
 .games-hub__back{font-size:.72rem}
 .games-hub__body{padding:5px 0 16px}
 .games-hub__layout{display:block;width:100%;max-width:none}
 .games-hub__game{width:100%;max-width:none}
 .games-hub .kc-modal.kc-modal--page,.games-hub .kc-modal.kc-modal--expanded.kc-modal--page{
  position:relative!important;inset:auto!important;margin:0!important;width:100vw!important;max-width:100vw!important;
  height:calc(100dvh - 180px)!important;min-height:300px!important;border-radius:0!important;
  overflow:hidden!important;box-shadow:none!important;
 }
 .games-hub .kc-modal--page .kc-panel{padding:5px 6px!important;height:100%!important}
 .games-hub .kc-modal--page .kc-header{padding:0!important;flex:0 0 auto!important;margin:0 0 4px!important}
 .games-hub .kc-modal--page .kc-header h2{font-size:clamp(16px,4vw,21px)!important}
 .games-hub .kc-modal--page .kc-main{display:flex!important;flex-direction:column!important;gap:6px!important;flex:1 1 0!important;height:100%!important;min-height:0!important;overflow:hidden!important}
 .games-hub .kc-modal--page .kc-field{order:0!important;grid-column:auto!important;flex:1 1 0!important;min-height:0!important;width:100%!important;height:auto!important;--kc-boat-clearance:clamp(52px,10dvh,83px)}
 .games-hub .kc-modal--page .kc-info{order:1!important;grid-column:auto!important;display:flex!important;flex:0 0 auto!important;flex-direction:column!important;padding:6px!important;gap:5px!important}
 .games-hub .kc-modal--page .kc-hud{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important}
 .games-hub .kc-modal--page .kc-action{display:grid!important;grid-template-columns:1.4fr 1fr .9fr!important;align-items:stretch!important;gap:5px!important;margin:0!important}
 .games-hub .kc-modal--page .kc-action button{min-height:35px!important;font-size:clamp(9px,2.7vw,12px)!important;padding:5px 2px!important}
 .games-hub .kc-modal--page .kc-status{display:none!important}
 .games-hub .kc-modal--page .kc-ranking,.games-hub .kc-modal--page.kc-modal--show-ranking .kc-ranking{
  position:absolute!important;inset:0!important;z-index:25!important;overflow-y:auto!important;
  display:none!important;background:#f6ffff!important;border-radius:12px!important;padding:12px!important;max-height:none!important;
 }
 .games-hub .kc-modal--page.kc-modal--show-ranking .kc-ranking{display:block!important}
 .games-hub__side{width:min(100% - 20px,600px);margin:18px auto 0;grid-template-columns:1fr}
 .games-hub__aside-card{padding:16px}
}
@media(prefers-reduced-motion:reduce){.games-hub *{scroll-behavior:auto!important}}


/* =================== 1.0.17: identical portrait playing field ===================
   Game FIELD (not the outer card) is >= 600 CSS px on desktop.
   Aspect ratio is 3:4 at all viewport widths. No vertical cropping.
   Smaller laptop screens may scroll the page rather than hide the boat.
   Desktop HUD remains at the left; mobile HUD stays below the sea.
   Scoped to /games/ only; site.css is unchanged.
   ============================================================================ */
.games-hub__layout{width:min(1270px,calc(100% - 30px));}
@media (min-width:901px){
 .games-hub__layout{
  grid-template-columns:minmax(860px,880px) minmax(260px,1fr);
  gap:20px;
 }
 .games-hub .kc-modal.kc-modal--page,
 .games-hub .kc-modal.kc-modal--expanded.kc-modal--page{
  width:100%!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;
 }
 .games-hub .kc-modal--page .kc-panel{
  display:block!important;width:100%!important;height:auto!important;
  min-height:0!important;padding:14px!important;
 }
 .games-hub .kc-modal--page .kc-header{margin-bottom:10px!important;}
 .games-hub .kc-modal--page .kc-main{
  display:grid!important;
  grid-template-columns:205px minmax(600px,1fr)!important;
  align-items:start!important;gap:12px!important;
  height:auto!important;min-height:0!important;
  overflow:visible!important;flex:none!important;
 }
 .games-hub .kc-modal--page .kc-info{
  grid-column:1!important;grid-row:1!important;
  align-self:start!important;
 }
 .games-hub .kc-modal--page .kc-field{
  grid-column:2!important;grid-row:1!important;
  flex:none!important;
  width:100%!important;height:auto!important;
  min-height:0!important;max-height:none!important;
  aspect-ratio:3 / 4!important;
  --kc-boat-clearance:12%;
 }
 .games-hub .kc-modal--page .kc-status{margin-top:10px!important;}
}
/* Narrow desktop/tablet: stack the game controls to protect field proportions. */
@media (min-width:701px) and (max-width:900px){
 .games-hub__layout{display:block;width:min(100% - 24px,810px);}
 .games-hub .kc-modal.kc-modal--page,
 .games-hub .kc-modal.kc-modal--expanded.kc-modal--page{
  width:100%!important;max-width:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;
 }
 .games-hub .kc-modal--page .kc-panel{height:auto!important;display:block!important;}
 .games-hub .kc-modal--page .kc-main{
  display:flex!important;flex-direction:column!important;gap:10px!important;
  overflow:visible!important;height:auto!important;min-height:0!important;
 }
 .games-hub .kc-modal--page .kc-field{
  order:0!important;flex:none!important;width:100%!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  aspect-ratio:3 / 4!important;--kc-boat-clearance:12%;
 }
 .games-hub .kc-modal--page .kc-info{
  order:1!important;width:100%!important;display:flex!important;
  padding:10px!important;gap:8px!important;
 }
 .games-hub .kc-modal--page .kc-hud{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 .games-hub .kc-modal--page .kc-action{display:flex!important;flex-direction:row!important;gap:8px!important;margin:0!important;}
 .games-hub .kc-modal--page .kc-action button{min-width:0!important;max-width:none!important;}
 .games-hub .kc-modal--page .kc-status{display:none!important;}
 .games-hub__side{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:15px;}
}
@media (max-width:700px){
 .games-hub .kc-modal.kc-modal--page,
 .games-hub .kc-modal.kc-modal--expanded.kc-modal--page{
  width:100vw!important;max-width:100vw!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  overflow:visible!important;
 }
 .games-hub .kc-modal--page .kc-panel{
  display:block!important;height:auto!important;min-height:0!important;
 }
 .games-hub .kc-modal--page .kc-main{
  display:flex!important;flex-direction:column!important;gap:6px!important;
  height:auto!important;min-height:0!important;overflow:visible!important;
 }
 .games-hub .kc-modal--page .kc-field{
  order:0!important;flex:none!important;
  height:auto!important;min-height:0!important;max-height:none!important;
  width:100%!important;aspect-ratio:3 / 4!important;
  --kc-boat-clearance:12%;
 }
 .games-hub .kc-modal--page .kc-info{order:1!important;flex:none!important;}
 .games-hub .kc-modal--page .kc-ranking{max-height:100%!important;}
}


/* Responsive overflow fix: below 1200px move the leader cards beneath the game. */
@media (min-width:901px) and (max-width:1200px){
 .games-hub__layout{display:block!important;width:min(880px,calc(100% - 24px))!important;}
 .games-hub__side{display:grid!important;grid-template-columns:1fr 1fr!important;margin-top:18px!important;}
}
@media(max-width:700px){
 .games-hub__layout{width:100%!important;max-width:none!important;margin:0!important;}
 .games-hub .kc-modal.kc-modal--page,
 .games-hub .kc-modal.kc-modal--expanded.kc-modal--page{width:100%!important;max-width:100%!important;}
}


/* Prototype v11: mobile viewport fit; only the /games/ view is affected. */
@media (max-width:700px) {
  html,body{height:100%;margin:0;overflow:hidden!important;overscroll-behavior:none;}
  body{display:flex;flex-direction:column;min-height:100dvh;max-height:100dvh;}
  .site-header{display:none!important;}
  .games-hub{display:flex!important;flex-direction:column!important;min-height:0!important;height:100dvh!important;flex:1 1 auto!important;overflow:hidden!important;}
  .games-hub__intro{flex:0 0 auto!important;border-bottom:1px solid #dcebea!important;}
  .games-hub__intro-inner{width:100%!important;padding:5px 10px!important;min-height:41px!important;}
  .games-hub__eyebrow{font-size:9px!important;letter-spacing:.05em!important;}
  .games-hub__intro h1{font-size:15px!important;line-height:1.13!important;margin:0!important;}
  .games-hub__intro p{display:none!important;}
  .games-hub__back{padding:6px!important;font-size:11px!important;}
  .games-hub__body{flex:1 1 0!important;min-height:0!important;overflow:hidden!important;padding:0!important;display:flex!important;}
  .games-hub__layout{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;}
  .games-hub__game{flex:1 1 0!important;min-height:0!important;overflow:hidden!important;}
  #koko-game-mount{height:100%!important;min-height:0!important;}
  .games-hub .kc-modal.kc-modal--page, .games-hub .kc-modal.kc-modal--expanded.kc-modal--page{
    width:100%!important;height:100%!important;min-height:0!important;max-height:100%!important;
    overflow:hidden!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  }
  .games-hub .kc-modal--page .kc-panel{height:100%!important;min-height:0!important;max-height:100%!important;padding:5px 8px 8px!important;display:flex!important;flex-direction:column!important;}
  .games-hub .kc-modal--page .kc-header{flex:0 0 auto!important;margin:0 0 5px!important;padding:0!important;}
  .games-hub .kc-modal--page .kc-mini-label{display:none!important;}
  .games-hub .kc-modal--page .kc-header h2{font-size:16px!important;line-height:1.12!important;margin:1px 0!important;}
  .games-hub .kc-modal--page .kc-header p{display:none!important;}
  .games-hub .kc-modal--page .kc-main{
    height:100%!important;min-height:0!important;max-height:100%!important;
    display:flex!important;flex-direction:column!important;flex:1 1 0!important;gap:5px!important;overflow:hidden!important;
  }
  .games-hub .kc-modal--page .kc-field{
    flex:1 1 0!important;min-height:0!important;max-height:none!important;height:auto!important;
    width:100%!important;aspect-ratio:auto!important;order:0!important;
    border-radius:15px!important;border-width:1px!important;
    --kc-boat-clearance:clamp(44px,9dvh,72px)!important;
  }
  .games-hub .kc-modal--page .kc-info{
    order:1!important;flex:0 0 auto!important;min-height:0!important;width:100%!important;
    gap:5px!important;padding:4px 5px 5px!important;display:flex!important;flex-direction:column!important;
    border-radius:12px!important;
  }
  .games-hub .kc-modal--page .kc-hud{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:5px!important;}
  .games-hub .kc-modal--page .kc-hud>div{padding:3px!important;border-radius:9px!important;min-height:45px!important;}
  .games-hub .kc-modal--page .kc-hud small{font-size:9px!important;}
  .games-hub .kc-modal--page .kc-hud strong{font-size:17px!important;line-height:1.18!important;}
  .games-hub .kc-modal--page .kc-action{display:grid!important;grid-template-columns:1.6fr 1fr .85fr!important;gap:5px!important;margin:0!important;align-items:stretch!important;}
  .games-hub .kc-modal--page .kc-action button{min-height:38px!important;max-height:43px!important;font-size:clamp(10px,2.75vw,12px)!important;padding:5px!important;border-radius:9px!important;}
  .games-hub .kc-modal--page .kc-status{display:none!important;}
  .games-hub__side,.games-hub__upcoming{display:none!important;}
  .games-hub .kc-modal--page .kc-ranking{display:none!important;}
  .games-hub .kc-modal--page.kc-modal--show-ranking .kc-ranking{
    display:block!important;position:absolute!important;inset:0!important;
    z-index:40!important;overflow-y:auto!important;max-height:100%!important;
  }
  .kc-field-msg{top:46%!important;width:min(85%,310px)!important;padding:16px 10px!important;}
  .kc-field-msg strong{font-size:17px!important;}
  .kc-field-msg span{font-size:12px!important;}
}
@media(max-width:700px) and (max-height:620px){
  .games-hub__intro-inner{min-height:32px!important;padding:1px 8px!important;}
  .games-hub__intro h1{font-size:13px!important;}
  .games-hub .kc-modal--page .kc-header h2{font-size:14px!important;}
  .games-hub .kc-modal--page .kc-info{gap:3px!important;padding:3px!important;}
  .games-hub .kc-modal--page .kc-hud>div{min-height:36px!important;padding:2px!important;}
  .games-hub .kc-modal--page .kc-hud strong{font-size:15px!important;}
  .games-hub .kc-modal--page .kc-action button{min-height:32px!important;max-height:35px!important;}
  .games-hub .kc-modal--page .kc-field{--kc-boat-clearance:38px!important;}
}


/* v13: full-height overlay, iPhone 18 Pro Max 1320:2868 portrait stage. */
.game-entry-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.game-open-button{border:0;border-radius:13px;background:#119ca3;color:#fff;padding:12px 20px;font:800 15px/1.2 inherit;cursor:pointer;box-shadow:0 9px 22px #0e7f8740}
.game-open-button:hover{background:#087b88}
.game-cover{border:1px solid #cde7e5;border-radius:24px;padding:48px 24px;background:linear-gradient(160deg,#d8fcf9,#fff9e9);text-align:center}
.game-cover__icon{font-size:80px}.game-cover h2{font-size:clamp(24px,3vw,38px)}.game-cover p{color:#526f78}
body.game-modal-open{overflow:hidden!important}
.games-hub #koko-game-mount .kc-modal[hidden]{display:none!important}
.games-hub #koko-game-mount .kc-modal.kc-modal--page,
.games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page{
 position:fixed!important;inset:0!important;z-index:1000!important;
 margin:0!important;width:100vw!important;max-width:none!important;
 height:100dvh!important;max-height:none!important;min-height:0!important;
 border:0!important;border-radius:0!important;background:#072b39df!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:8px!important;overflow:auto!important;box-shadow:none!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-panel{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 flex:0 0 auto!important;width:max-content!important;max-width:100%!important;
 height:auto!important;min-height:0!important;max-height:calc(100dvh - 16px)!important;
 padding:9px 12px 10px!important;border-radius:18px!important;
 background:#effbf9!important;overflow:visible!important;position:relative!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-header{
 width:100%!important;flex:none!important;max-width:none!important;
 margin:0 0 5px!important;padding:0 42px 0 0!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-mini-label{font-size:9px!important;margin:0!important}
.games-hub #koko-game-mount .kc-modal--page .kc-header h2{font-size:15px!important;margin:0!important;line-height:1.25!important}
.game-modal-close{position:absolute;top:9px;right:10px;z-index:99;width:32px;height:32px;border:0;border-radius:50%;background:#fff;color:#21474d;font-size:26px;line-height:1;cursor:pointer}
.games-hub #koko-game-mount .kc-modal--page .kc-main{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 gap:6px!important;flex:none!important;height:auto!important;max-height:none!important;
 overflow:visible!important;width:auto!important;min-width:0!important;
 position:relative!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-field{
 box-sizing:border-box!important;display:block!important;order:0!important;grid-column:auto!important;
 flex:none!important;
 /* Height is primary. Width follows the actual iPhone 18 Pro Max display aspect ratio. */
 height:min(calc(100dvh - 177px),calc((100vw - 42px) * 2868 / 1320))!important;
 width:auto!important;aspect-ratio:1320 / 2868!important;
 max-width:calc(100vw - 42px)!important;min-height:0!important;max-height:none!important;
 border-radius:14px!important;margin:0!important;
 --kc-boat-clearance:12%!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-info{
 order:1!important;grid-column:auto!important;display:flex!important;
 flex-direction:column!important;gap:4px!important;padding:5px!important;
 width:100%!important;max-width:100%!important;margin:0!important;
 border-radius:11px!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-hud{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:4px!important;margin:0!important;width:100%!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-hud>div{padding:3px 2px!important;min-width:0!important}
.games-hub #koko-game-mount .kc-modal--page .kc-hud strong{font-size:15px!important}
.games-hub #koko-game-mount .kc-modal--page .kc-hud small{font-size:8px!important}
.games-hub #koko-game-mount .kc-modal--page .kc-action{
 display:grid!important;grid-template-columns:1.6fr 1.15fr .9fr!important;
 align-items:stretch!important;gap:4px!important;width:100%!important;margin:0!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-action button{
 display:block!important;width:100%!important;max-width:none!important;
 font-size:11px!important;min-height:33px!important;max-height:38px!important;
 padding:4px 3px!important;margin:0!important;border-radius:8px!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-action button[hidden]{display:none!important}
.games-hub #koko-game-mount .kc-modal--page .kc-status{display:none!important}
.games-hub #koko-game-mount .kc-modal--page .kc-ranking{
 display:none!important;position:absolute!important;inset:0!important;
 z-index:50!important;order:2!important;max-height:100%!important;
 min-height:0!important;overflow-y:auto!important;margin:0!important;
 background:#f5ffff!important;padding:12px!important;border-radius:12px!important;
}
.games-hub #koko-game-mount .kc-modal--page.kc-modal--show-ranking .kc-ranking{display:block!important}
.games-hub #koko-game-mount .kc-modal--page .kc-rank-toggle,
.games-hub #koko-game-mount .kc-modal--page .kc-rank-dismiss{display:inline-flex!important;align-items:center;justify-content:center}
.games-hub #koko-game-mount .kc-modal--page .kc-rank-list{grid-template-columns:1fr!important}
@media(max-height:540px){
 .games-hub #koko-game-mount .kc-modal--page .kc-panel{padding:5px!important}
 .games-hub #koko-game-mount .kc-modal--page .kc-header{margin-bottom:2px!important}
 .games-hub #koko-game-mount .kc-modal--page .kc-field{height:min(calc(100dvh - 156px),calc((100vw - 30px) * 2868 / 1320))!important}
 .games-hub #koko-game-mount .kc-modal--page .kc-hud>div{padding:1px!important}
 .games-hub #koko-game-mount .kc-modal--page .kc-action button{min-height:29px!important}
}
/* v14: doubled field width, constrained by viewport height and width */
.games-hub #koko-game-mount .kc-modal--page .kc-field,
.games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-field{
 height:min(calc(100dvh - 145px),calc((100vw - 44px) * 2868 / 2640))!important;
 width:auto!important;aspect-ratio:2640 / 2868!important;
 max-width:calc(100vw - 44px)!important;min-height:0!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-panel{overflow:hidden!important}
.games-hub #koko-game-mount .kc-modal--page .kc-main{width:100%!important}
.games-hub #koko-game-mount .kc-modal--page .kc-info{width:100%!important}
.game-modal-close{display:flex!important;align-items:center;justify-content:center;position:absolute!important;top:8px!important;right:8px!important;z-index:999!important;width:42px!important;height:42px!important;border:2px solid #b9d8da!important;background:white!important;color:#173e47!important;font:700 29px/1 Arial,sans-serif!important;cursor:pointer!important;box-shadow:0 2px 9px #1235!important}
@media(max-height:540px){.games-hub #koko-game-mount .kc-modal--page .kc-field{height:min(calc(100dvh - 130px),calc((100vw - 44px) * 2868 / 2640))!important}}

/* v15 — embedded game, above the fold, v14 wide proportion (2640:2868). */
@media(max-width:700px){html,body{height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important}body{display:block!important;min-height:100dvh!important}.games-hub{height:auto!important;overflow:visible!important}.games-hub__body,.games-hub__layout,.games-hub__game{height:auto!important;overflow:visible!important}}
body:has(.games-hub){margin:0!important}
body:has(.games-hub) .site-header{display:none!important}
.games-hub{min-height:100dvh!important;background:#effaf9!important}
.games-hub__intro-inner{padding:5px 10px!important;min-height:42px!important;width:min(1200px,calc(100% - 12px))!important}
.games-hub__intro h1{font-size:clamp(16px,2vw,22px)!important;margin:0!important}
.games-hub__intro p,.games-hub__eyebrow{display:none!important}
.games-hub__body{padding:2px 0 0!important}
.games-hub__layout{display:block!important;width:100%!important;max-width:none!important;margin:0 auto!important}
.games-hub__game{width:100%!important;max-width:none!important}
.games-hub #koko-game-mount{width:100%!important;height:auto!important;min-height:0!important}
.games-hub #koko-game-mount .kc-modal.kc-modal--page,
.games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page{
 position:relative!important;display:block!important;inset:auto!important;
 margin:0 auto!important;padding:0!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;
 width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;
 min-height:0!important;overflow:visible!important;background:transparent!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-panel{
 width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;
 padding:3px 8px 5px!important;margin:0!important;background:transparent!important;
 border-radius:0!important;overflow:visible!important;min-height:0!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-header{
 flex:none!important;margin:0 0 2px!important;padding:0!important;text-align:center!important;
 width:100%!important;max-width:none!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-header h2{font-size:clamp(13px,1.8vw,18px)!important;line-height:1.12!important;margin:0!important}
.games-hub #koko-game-mount .kc-modal--page .kc-mini-label{display:none!important}
.games-hub #koko-game-mount .kc-modal--page .kc-main{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;
 flex:none!important;gap:4px!important;margin:0!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-field,
.games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-field{
 display:block!important;order:0!important;grid-column:auto!important;
 flex:none!important;box-sizing:border-box!important;
 height:min(max(200px,calc(100dvh - 158px)),calc((100vw - 16px) * 2868 / 2640))!important;
 width:auto!important;max-width:calc(100vw - 16px)!important;
 aspect-ratio:2640 / 2868!important;
 min-height:0!important;max-height:none!important;
 border-radius:12px!important;margin:0 auto!important;
 --kc-boat-clearance:12%!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-info{
 order:1!important;flex:none!important;display:flex!important;flex-direction:column!important;
 width:min(100%,560px)!important;max-width:calc(100vw - 16px)!important;
 gap:3px!important;padding:4px!important;margin:0!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-hud{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important;width:100%!important;margin:0!important}
.games-hub #koko-game-mount .kc-modal--page .kc-hud>div{min-height:0!important;padding:2px!important}
.games-hub #koko-game-mount .kc-modal--page .kc-hud small{font-size:8px!important;line-height:1.1!important}
.games-hub #koko-game-mount .kc-modal--page .kc-hud strong{font-size:16px!important;line-height:1.1!important}
.games-hub #koko-game-mount .kc-modal--page .kc-action{
 display:grid!important;grid-template-columns:1.6fr 1.15fr .9fr!important;
 gap:4px!important;width:100%!important;margin:0!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-action button{min-height:30px!important;max-height:34px!important;font-size:11px!important;padding:3px!important}
.games-hub #koko-game-mount .kc-modal--page .kc-ranking{display:none!important}
.games-hub #koko-game-mount .kc-modal--page.kc-modal--show-ranking .kc-ranking{display:block!important}
.games-hub #koko-game-mount .kc-modal--page .kc-status{display:none!important}
.games-hub__side{width:min(100% - 20px,960px)!important;margin:24px auto!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
.games-hub__upcoming{display:block!important}
.game-cover,.game-entry-actions,.game-modal-close{display:none!important}
@media(max-width:700px){
 .games-hub #koko-game-mount .kc-modal--page .kc-field,
 .games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-field{
  height:min(max(200px,calc(100dvh - 158px)),calc((100vw - 16px) * 2868 / 2640))!important;
 }
 .games-hub__side{grid-template-columns:1fr!important}
}
@media(max-height:540px){
 .games-hub #koko-game-mount .kc-modal--page .kc-field,
 .games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-field{
  height:min(max(150px,calc(100dvh - 126px)),calc((100vw - 16px) * 2868 / 2640))!important;
 }
 .games-hub #koko-game-mount .kc-modal--page .kc-action button{min-height:27px!important}
}

/* v16 — alignment fix: field and controls share ONE centered column. */
.games-hub #koko-game-mount .kc-modal--page .kc-main,
.games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-main{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 box-sizing:border-box!important;
 width:min(calc((100dvh - 158px) * 2640 / 2868),calc(100vw - 16px))!important;
 max-width:calc(100vw - 16px)!important;
 height:auto!important;min-height:0!important;
 margin:0 auto!important;gap:5px!important;overflow:visible!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-field,
.games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-field{
 width:100%!important;max-width:100%!important;
 height:auto!important;aspect-ratio:2640 / 2868!important;
 min-height:0!important;margin:0!important;flex:none!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-info,
.games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-info{
 align-self:stretch!important;box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;
 margin:0!important;flex:none!important;
}
.games-hub #koko-game-mount .kc-modal--page .kc-header{
 width:100%!important;text-align:center!important;
}
@media(max-height:540px){
 .games-hub #koko-game-mount .kc-modal--page .kc-main,
 .games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-main{
  width:min(calc((100dvh - 126px) * 2640 / 2868),calc(100vw - 16px))!important;
 }
}

/* v17: top-ten finish prompt constrained to the playfield */
.kc-field{position:relative!important;isolation:isolate}
.kc-record-overlay[hidden]{display:none!important}
.kc-record-overlay{position:absolute;inset:0;z-index:60;display:grid;place-items:center;padding:12px;background:rgba(7,42,54,.55);touch-action:auto}
.kc-record-card{position:relative;width:min(360px,100%);max-height:calc(100% - 8px);overflow-y:auto;background:#fffdf5;border:2px solid #f0cf6e;border-radius:19px;padding:24px 18px 19px;text-align:center;box-shadow:0 20px 50px #002b4655;color:#173d47}
.kc-record-card h3{font-size:clamp(19px,3vw,27px);margin:5px 0 7px;color:#0c7c85}
.kc-record-card p{font-size:13px;line-height:1.45;margin:0 0 11px}
.kc-record-score{font-size:clamp(25px,4vw,38px);font-weight:900;color:#bd831c;line-height:1.2;margin-bottom:9px}
.kc-record-card label{display:block;font-size:13px;font-weight:800;text-align:left;margin-bottom:5px}
.kc-record-card input{width:100%;min-width:0;border:1px solid #a9cfd2;background:#fff;border-radius:9px;padding:10px 12px;color:#143d46;font-size:16px}
.kc-record-card button[type=submit]{width:100%;border:0;border-radius:10px;background:#159da4;color:white;font-weight:850;margin-top:10px;padding:11px;cursor:pointer}
.kc-record-card .kc-record-dismiss{position:absolute;right:8px;top:7px;border:0;background:#f0f6f6;color:#254f56;border-radius:50%;width:32px;height:32px;font-size:22px;cursor:pointer}
.kc-record-note{font-size:11px!important;color:#57727b;margin-top:7px!important}
@media(max-height:560px){.kc-record-card{padding:12px 15px}.kc-record-card h3{margin:1px 0 3px}.kc-record-card p{margin-bottom:5px}}


/* v18: mobile stacking fix + scenic background around the game field */
.games-hub #koko-game-mount,
.games-hub #koko-game-mount .kc-modal--page,
.games-hub #koko-game-mount .kc-panel,
.games-hub #koko-game-mount .kc-main{position:relative!important;z-index:3!important}
.games-hub__side,.games-hub__upcoming{position:relative!important;z-index:1!important}
.games-hub #koko-game-mount .kc-modal--page .kc-panel{margin-bottom:14px!important}
.games-hub__game{padding-bottom:8px!important}
.kc-field{
  background:
    linear-gradient(180deg,#9fd9ea 0%,#b6e7ef 36%,#92cfd0 36.5%,#7dc5cb 49%,#60bcc6 50%,#55b6c0 72%,#3ca7b3 72.5%,#2897a3 100%)!important;
}
.kc-sun,.kc-mountain,.kc-forest,.kc-glamp,.kc-glamp__tent,.kc-glamp__fire,.kc-island,.kc-hills,.kc-wave{pointer-events:none!important}
.kc-sun{right:13%!important;top:12%!important;width:18%!important;height:18%!important;max-width:124px;max-height:124px;background:radial-gradient(circle,#fff7bf,#efe18f 66%,#fff0a000)!important;opacity:.95!important}
.kc-mountain{position:absolute;bottom:53%;background:linear-gradient(180deg,#b7d7d1,#89b4ac);clip-path:polygon(0 100%,50% 0,100% 100%);opacity:.9}
.kc-mountain--a{left:12%;width:29%;height:19%}
.kc-mountain--b{left:30%;width:39%;height:28%;opacity:.72}
.kc-forest{position:absolute;bottom:49%;background:#6fa69d;opacity:.85}
.kc-forest--a{left:0;width:40%;height:10%;clip-path:polygon(0 100%,0 60%,6% 70%,12% 48%,18% 68%,24% 44%,30% 66%,36% 42%,42% 64%,48% 38%,54% 62%,60% 43%,66% 65%,72% 48%,78% 67%,84% 50%,90% 70%,100% 58%,100% 100%)}
.kc-forest--b{right:0;width:31%;height:8%;clip-path:polygon(0 100%,0 60%,8% 70%,16% 49%,24% 69%,32% 47%,40% 67%,48% 43%,56% 65%,64% 47%,72% 68%,80% 51%,88% 72%,100% 61%,100% 100%)}
.kc-glamp{position:absolute;left:16%;bottom:46%;width:20%;height:10%;min-width:56px;min-height:26px;opacity:.92}
.kc-glamp__tent{position:absolute;bottom:0;left:0;width:48%;height:78%;clip-path:polygon(50% 0,0 100%,100% 100%);background:linear-gradient(135deg,#f8e7c8,#d7a97b);box-shadow:inset -8px 0 0 rgba(121,75,35,.12)}
.kc-glamp__tent--small{left:38%;width:34%;height:58%;background:linear-gradient(135deg,#ecf2d7,#a9c07c)}
.kc-glamp__fire{position:absolute;bottom:4%;left:74%;width:11%;height:20%;border-radius:50% 50% 55% 55%;background:radial-gradient(circle at 50% 30%,#fff2a8,#ffba46 55%,#ff7c2e 100%);box-shadow:0 0 12px #ffc16a}
.kc-island{background:#7db3ab!important;opacity:.72!important}
.kc-island--a{width:34%!important;height:9%!important;left:-4%!important;bottom:46%!important}
.kc-island--b{width:24%!important;height:6%!important;right:3%!important;bottom:46%!important}
.kc-hills{left:36%!important;bottom:49%!important;width:24%!important;height:14%!important;background:linear-gradient(135deg,transparent 49%,#8eb9b1 50%,#8eb9b1 70%,transparent 71%)!important;opacity:.7!important}
.kc-wave--one{bottom:15%!important;background:#ffffff18!important}
.kc-wave--two{bottom:3%!important;background:#d7fffb21!important}
@media(max-width:700px){
  .games-hub__body{padding-bottom:14px!important;overflow:visible!important}
  .games-hub__layout{display:block!important;overflow:visible!important}
  .games-hub__game{position:relative!important;z-index:3!important;padding-bottom:14px!important}
  .games-hub #koko-game-mount .kc-modal--page .kc-panel{margin-bottom:16px!important}
  .games-hub__side{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;width:min(calc(100% - 16px),560px)!important;margin:0 auto 14px!important}
  .games-hub__upcoming{display:block!important;padding:0 0 18px!important}
  .games-hub__upcoming-inner{width:min(calc(100% - 16px),560px)!important;margin:0 auto!important;padding:16px!important;border-radius:18px!important}
  .kc-record-overlay{padding:10px!important}
  .kc-record-card{width:min(92%,340px)!important;padding:18px 14px 14px!important}
  .kc-record-card h3{font-size:21px!important}
}
@media(max-width:460px){
  .games-hub #koko-game-mount .kc-modal--page .kc-panel{padding-left:6px!important;padding-right:6px!important}
  .games-hub__side{width:calc(100% - 12px)!important}
  .games-hub__upcoming-inner{width:calc(100% - 12px)!important}
  .kc-record-card{width:min(94%,320px)!important}
}



/* v21: quiet scenic icon pattern around the field (desktop only).
   Entirely self-contained: no requests or assets added to commercial pages. */
.games-hub{position:relative!important;overflow-x:hidden!important}
@media(min-width:901px){
 body{background:#e8f6f3!important}
 .games-hub{background:linear-gradient(180deg,#edf9f7 0%,#e8f6f3 100%)!important}
 .games-hub::before,.games-hub::after{
   content:"";position:absolute;top:65px;bottom:auto;height:min(980px,100%);
   width:calc((100% - 640px) / 2);min-width:0;max-width:none;
   z-index:0;pointer-events:none;opacity:.80;
   background-repeat:no-repeat;
 }
 .games-hub::before{
   left:0;
   background-image:
      url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MCIgaGVpZ2h0PSI3MCIgdmlld0JveD0iMCAwIDcwIDcwIj48cGF0aCBkPSJNMzIgOCAxNyAyOWg3TDEyIDQ3aDEzbC02IDhoMjZsLTYtOGgxM0w0MCAyOWg3eiIgZm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eiIgZmlsbD0iI2YyZGNjMCIvPjxwYXRoIGQ9Ik0zMyAzMCAyNCA1M2gxOHoiIGZpbGw9IiNiODhkNjkiLz48cGF0aCBkPSJNMTIgNTZoNDUiIHN0cm9rZT0iIzgzYjRhOCIgc3Ryb2tlLXdpZHRoPSIzIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4="),
      url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MCIgaGVpZ2h0PSI3MCIgdmlld0JveD0iMCAwIDcwIDcwIj48cGF0aCBkPSJNNSA1NSAyMyAyMmwxNiAyOEw0OCAxMCA2MiAzN2w5IDE4eiIgZmlsbD0iI2E3YzhiZCIgc3Ryb2tlPSIjODZiMmE5IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz48cGF0aCBkPSJtNDggMTAgOCAxNC04LTMtNSA1ek0yMyAyMmw2IDExLTYtMy00IDN6IiBmaWxsPSIjZThmNGVmIi8+PC9zdmc+"),
      url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MCIgaGVpZ2h0PSI3MCIgdmlld0JveD0iMCAwIDcwIDcwIj48cGF0aCBkPSJNNCAzMmM5IDAgOS0xMCAxOC0xMHM5IDEwIDE4IDEwIDktMTAgMTgtMTAgOSAxMCAxOCAxME00IDQ1YzkgMCA5LTEwIDE4LTEwczkgMTAgMTggMTAgOS0xMCAxOC0xMCA5IDEwIDE4IDEwIiBmaWxsPSJub25lIiBzdHJva2U9IiM2Y2FkYjQiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+"),
      url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MCIgaGVpZ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mQiLz48L3N2Zz4="),
      url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MCIgaGVpZ2h0PSI3MCIgdmlld0JveD0iMCAwIDcwIDcwIj48cGF0aCBkPSJNOSAzMWEyMyAyMyAwIDAgMSA0NiAwSDl6IiBmaWxsPSIjZTJjMDlmIiBzdHJva2U9IiNiZGEyODAiIHN0cm9rZS13aWR0aD0iMiIvPjxwYXRoIGQ9Ik0zMiAzMXYyOHEwIDYgNiA2IiBmaWxsPSJub25lIiBzdHJva2U9IiNhMzhjNzQiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PHBhdGggZD0iTTMyIDljLTYgNi05IDEzLTkgMjJoMThjMC05LTMtMTYtOS0yMiIgZmlsbD0iI2Y0ZTJjOCIvPjwvc3ZnPg==");
   background-size:52px 52px,56px 56px,54px 54px,62px 62px,65px 65px,53px 53px,59px 59px,47px 47px;
   background-position:17% 11%,73% 20%,24% 33%,78% 46%,18% 60%,72% 73%,28% 84%,80% 95%;
 }
 .games-hub::after{
   right:0;
   background-image:
      url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3MCIgaGVpZ2h0PSI3MCIgdmlld0JveD0iMCAwIDcwIDcwIj48cGF0aCBkPSJNMzIgMjNRMzggNDQgMjkgNjQiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2MwYTA4MCIgc3Ryb2tlLXdpZHRoPSI1IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48cGF0aCBkPSJNMzIgMjNRNDggNiA1OSAyMFE0NiAxOCAzMiAyN1E0MyAyOSA0OSA0MVEzOCAzNiAzMCAyOFExOCAzNCAxMiA0M1ExNCAyNyAyOCAyM1ExOCAyMSA3IDE1UTIyIDEwIDMxIDIyUTI5IDExIDM0IDdRNDEgMTcgMzIg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wIj48cGF0aCBkPSJNNCAzMmM5IDAgOS0xMCAxOC0xMHM5IDEwIDE4IDEwIDktMTAgMTgtMTAgOSAxMCAxOCAxME00IDQ1YzkgMCA5LTEwIDE4LTEwczkgMTAgMTggMTAgOS0xMCAxOC0xMCA5IDEwIDE4IDEwIiBmaWxsPSJub25lIiBzdHJva2U9IiM2Y2FkYjQiIHN0cm9rZS13aWR0aD0iNCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+PC9zdmc+");
   background-size:56px 56px,60px 60px,54px 54px,53px 53px,58px 58px,53px 53px,48px 48px,66px 66px;
   background-position:72% 9%,23% 22%,76% 37%,24% 50%,75% 61%,22% 73%,76% 84%,22% 94%;
 }
 .games-hub__intro,.games-hub__body,.games-hub__upcoming{position:relative!important;z-index:1!important}
 .games-hub__layout{position:relative!important;z-index:2!important}
}
@media(max-width:700px){
 .games-hub__upcoming{display:none!important}
 .games-hub__side{margin-top:14px!important}
 .games-hub #koko-game-mount .kc-modal--page .kc-main{position:relative!important;z-index:3!important}
 .games-hub #koko-game-mount .kc-modal--page .kc-info{position:relative!important;z-index:4!important;background:#effaf9!important;border:1px solid #d8ebea!important;border-radius:14px!important;box-shadow:0 5px 14px rgba(0,45,55,.06)!important}
}
@media(max-width:520px){
 .games-hub__side{width:calc(100% - 14px)!important;margin:14px auto 12px!important}
 .games-hub #koko-game-mount .kc-modal--page .kc-info{padding:5px!important}
}

/* v20: desktop geometry fix. Keep the game field contained, not stretched across laptop screens.
   Loaded on /games/ only; existing mobile rules and global site.css are unchanged. */
@media (min-width: 701px) {
  .games-hub #koko-game-mount .kc-modal--page .kc-main,
  .games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-main {
    box-sizing: border-box !important;
    width: min(600px, calc(100vw - 24px), calc((100dvh - 172px) * 2640 / 2868)) !important;
    max-width: 600px !important;
    min-width: 0 !important;
    margin-inline: auto !important;
    flex: none !important;
    align-items: stretch !important;
  }
  .games-hub #koko-game-mount .kc-modal--page .kc-field,
  .games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-field {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 2640 / 2868 !important;
    flex: none !important;
  }
  .games-hub #koko-game-mount .kc-modal--page .kc-info,
  .games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-info {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
}



/* 1.0.18: mobile page scroll / footer stacking fix.
   The earlier v11 full-viewport flex container forced the next blocks to overflow
   outside <main>. Make game hub regular document flow on phones.
   Scoped to /games/ only. No changes to desktop or site.css. */
@media (max-width:700px) {
  html:has(.games-hub),
  body:has(.games-hub) {
    height:auto!important;
    min-height:100%!important;
    max-height:none!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:auto!important;
    -webkit-overflow-scrolling:touch;
  }
  body:has(.games-hub) {
    display:block!important;
    touch-action:pan-y!important;
  }
  body:has(.games-hub) > .games-hub {
    display:block!important;
    height:auto!important;
    min-height:100dvh!important;
    max-height:none!important;
    flex:none!important;
    overflow:visible!important;
    overflow-x:clip!important;
  }
  .games-hub .games-hub__intro,
  .games-hub .games-hub__body {
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:none!important;
    overflow:visible!important;
  }
  .games-hub .games-hub__layout,
  .games-hub .games-hub__game,
  .games-hub #koko-game-mount {
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    flex:none!important;
    overflow:visible!important;
  }
  /* Swipe scroll is allowed on the idle / finished sea, but blocked while
     actively steering the boat, so finger movement remains accurate. */
  .games-hub #koko-game-mount .kc-modal--page .kc-field {
    touch-action:pan-y!important;
  }
  .games-hub #koko-game-mount .kc-modal--page.kc-modal--playing .kc-field {
    touch-action:none!important;
  }
}


/* Game desktop compact v23: reserve space for the HUD and Start/Pause/Sound buttons.
   No changes to small-screen game styling, proportions or mechanics. */
@media (min-width:701px) {
  .games-hub #koko-game-mount .kc-modal--page .kc-main,
  .games-hub #koko-game-mount .kc-modal.kc-modal--expanded.kc-modal--page .kc-main {
    width: min(520px, calc(100vw - 24px), calc((100dvh - 285px) * 2640 / 2868)) !important;
    max-width: 520px !important;
  }
}
