/* Pisaczek Rozrywka — Statki (R25). Marker: PNP_PISACZEK_GAMES_SHIPS_CSS_V1. SH1 (20.11.2026). Układ strony jak w Makao (makao-v1.css), plansze 10×10 z morzem, kadłubami i mapą ciepła. */
.gm-sh .gm-back { color: var(--gm-gold); text-decoration: none; font-size: 18px; }
.gm-sh .gm-ghost { background: rgba(255,255,255,.04); color: var(--gm-ink); border: 1px solid rgba(227,196,106,.45); }
.gm-sh .gm-btn, .gm-sh .gm-btn:hover { transform: none; } .gm-sh .gm-btn { min-height: 54px; font-size: 18px; gap: 8px; }
.gm-sh .gm-btn svg { width: 22px; height: 22px; } .gm-sh .gm-btn:disabled { opacity: .5; cursor: default; }
.sh-tabs { align-self: flex-start; display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 20px; background: rgba(6,12,36,.55); border: 1px solid rgba(227,196,106,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.4); }
.sh-tabs button { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 24px; border-radius: 15px; border: 1px solid transparent; background: transparent; color: var(--gm-ink); font: inherit; font-size: 19px; font-weight: 700; cursor: pointer; }
.sh-tabs button svg { width: 22px; height: 22px; } .sh-tabs button:hover { background: rgba(227,196,106,.12); color: var(--gm-gold3); }
.sh-tabs button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); }
.sh-tabs button:focus-visible, .sh-tool:focus-visible, .sh-lvl:focus-visible, .sh-lItem:focus-visible, .sh-c:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.sh-pane[hidden], .sh-pane [hidden], .gm-sh [hidden] { display: none !important; }
.sh-muted { color: var(--gm-mute); font-size: 17px; } .sh-lead { color: var(--gm-mute); font-size: 19px; line-height: 1.5; margin: 0; }
.sh-h2 { font-size: 26px; margin: 0 0 12px; color: var(--gm-gold3); }
.sh-row2 { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sh-now { padding: 16px 18px; border-radius: 16px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.sh-now b { display: block; font-size: 18px; color: var(--gm-gold3); margin-bottom: 4px; } .sh-now p { margin: 0; font-size: 20px; line-height: 1.45; }
.sh-nowM { display: none; margin: 0; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.75); font-size: 19px; line-height: 1.4; }
.sh-nowM:empty { display: none !important; }

/* układ: plansze po lewej, panel po prawej (telefon: jedno pod drugim) */
.sh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.sh-work { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sh-side { display: flex; flex-direction: column; gap: 14px; }
.sh-topbar { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 19px; }
.sh-topbar b { font-size: 21px; color: var(--gm-gold3); } .sh-metaSeg { white-space: nowrap; }

/* scena: morze rywala + moja flota */
.sh-stage { direction: ltr; position: relative; width: 100%; border-radius: 20px; border: 2px solid rgba(227,196,106,.5); box-sizing: border-box; padding: 14px; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 90% at 50% 0%, #0F3460, #071A36 78%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 20px 50px rgba(0,0,0,.35); overflow: hidden; }
.sh-boards { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.sh-stage.solo .sh-boards, .sh-stage.placing .sh-boards { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.sh-sea { display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; }
.sh-stage.solo .sh-sea, .sh-stage.placing .sh-sea { max-width: 560px; }
.sh-seaH { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 18px; color: #CFE4FF; } .sh-seaH b { color: var(--gm-gold3); font-size: 19px; }
.sh-shots { font-size: 16px; color: #9CC3EA; white-space: nowrap; }
.sh-stage.myTurn .sh-seaE .sh-board { box-shadow: 0 0 0 3px rgba(43,217,140,.75), 0 0 28px rgba(43,217,140,.35); }
.sh-stage.aiTurn .sh-seaM .sh-board { box-shadow: 0 0 0 3px rgba(240,96,80,.75), 0 0 28px rgba(240,96,80,.35); }
.sh-stage.aiTurn .sh-seaE { opacity: .82; }

/* flota (kadłuby w rzędzie) */
.sh-fleet { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 22px; font-size: 15px; color: #B8D3F0; }
.sh-fleetL { white-space: nowrap; } .sh-fleetS { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-mini { display: inline-flex; gap: 2px; } .sh-mini b { width: 9px; height: 9px; border-radius: 2px; background: #B9C7D6; }
.sh-mini b:first-child { border-radius: 5px 2px 2px 5px; } .sh-mini b:last-child { border-radius: 2px 5px 5px 2px; } .sh-mini b:only-child { border-radius: 5px; }
.sh-mini.dead b { background: #C0392B; opacity: .55; } .sh-mini.dead { position: relative; } .sh-mini.dead::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: #FF8E7A; transform: rotate(-8deg); }

/* plansza 10×10 */
.sh-board { --hd: 22px; display: grid; grid-template-columns: var(--hd) repeat(10, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: 14px; background: rgba(2,10,26,.55); box-sizing: border-box; width: 100%; touch-action: manipulation; transition: box-shadow .2s; }
.sh-hd { display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #8FB4DA; min-height: 18px; }
.sh-corner { min-height: 0; }
.sh-c { position: relative; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 4px; cursor: default; font: inherit; color: inherit; overflow: visible;
  background: linear-gradient(155deg, #17507F 0%, #0E3A63 55%, #0B2F54 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); -webkit-tap-highlight-color: transparent; }
.sh-c::after { content: ''; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; background: rgba(255,176,58, calc(var(--heat, 0) * .88)); box-shadow: inset 0 0 0 calc(var(--heat, 0) * 2px) rgba(255,214,120,.9); }
.sh-board:not(.heatOn) .sh-c::after { display: none; }
.sh-c.can { cursor: crosshair; } .sh-c.can:hover { background: linear-gradient(155deg, #2369A3, #154B7C); }
.sh-hull, .sh-mk { position: absolute; pointer-events: none; }
.sh-mk { inset: 0; display: grid; place-items: center; }
/* pudło: biała kropka z kręgiem; na pewno puste: mała blada kropka */
.sh-c.m { background: linear-gradient(155deg, #134470, #0C3459); }
.sh-c.m .sh-mk::before { content: ''; width: 30%; height: 30%; border-radius: 50%; background: #EAF4FF; box-shadow: 0 0 0 3px rgba(234,244,255,.18); }
.sh-c.e .sh-mk::before { content: ''; width: 16%; height: 16%; border-radius: 50%; background: rgba(160,196,230,.55); }
.sh-c.e { background: linear-gradient(155deg, #123F68, #0C3256); }
/* trafienie: ogień */
.sh-c.h .sh-mk::before { content: ''; width: 58%; height: 58%; border-radius: 50%; background: radial-gradient(circle at 45% 40%, #FFF1B0 0 18%, #FFB13B 38%, #F0522E 70%, rgba(240,82,46,0) 72%); filter: drop-shadow(0 0 6px rgba(255,120,40,.9)); z-index: 2; }
.sh-c.h:not(.s) .sh-mk::before { animation: shFlick 1.1s ease-in-out infinite; }
@keyframes shFlick { 50% { transform: scale(.88); filter: drop-shadow(0 0 9px rgba(255,150,40,1)); } }
.sh-c.s .sh-mk::before { width: 52%; height: 52%; background: none; border-radius: 0; filter: none; box-shadow: none; z-index: 2;
  background: linear-gradient(45deg, transparent 42%, #FFD7C8 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #FFD7C8 42% 58%, transparent 58%); opacity: .95; }
/* kadłuby statków (moja flota, zatopione rywala, odkryte po końcu) */
.sh-c.ship .sh-hull { inset: 12%; background: linear-gradient(180deg, #D9E2EC 0%, #A9B8C8 48%, #7C8DA2 100%); box-shadow: inset 0 -2px 0 rgba(0,0,0,.25), 0 2px 4px rgba(0,0,0,.35); }
.sh-c.ship .u-o { border-radius: 50%; inset: 16%; }
.sh-c.ship .u-ha { right: -3px; border-radius: 50% 4px 4px 50% / 50% 4px 4px 50%; } .sh-c.ship .u-hm { left: -3px; right: -3px; border-radius: 0; } .sh-c.ship .u-hz { left: -3px; border-radius: 4px 70% 70% 4px / 4px 50% 50% 4px; }
.sh-c.ship .u-va { bottom: -3px; border-radius: 50% 50% 4px 4px / 50% 50% 4px 4px; background: linear-gradient(90deg, #D9E2EC, #A9B8C8 48%, #7C8DA2); } .sh-c.ship .u-vm { top: -3px; bottom: -3px; border-radius: 0; background: linear-gradient(90deg, #D9E2EC, #A9B8C8 48%, #7C8DA2); } .sh-c.ship .u-vz { top: -3px; border-radius: 4px 4px 70% 70% / 4px 4px 50% 50%; background: linear-gradient(90deg, #D9E2EC, #A9B8C8 48%, #7C8DA2); }
.sh-c.ship.s .sh-hull { background: linear-gradient(180deg, #8E3B33, #5E1F1A); }
.sh-c.ship.ghost .sh-hull { background: rgba(217,226,236,.18); box-shadow: inset 0 0 0 2px rgba(217,226,236,.75); }
.sh-c.ship .u-sel { box-shadow: 0 0 0 3px #F3D27A, 0 2px 4px rgba(0,0,0,.35); }
.sh-c.bad { background: linear-gradient(155deg, #7A2626, #5A1A1A); } .sh-c.okp { background: linear-gradient(155deg, #1F7A53, #145A3C); }
.sh-board.placing .sh-c.ship { cursor: grab; } .sh-board.placing { touch-action: none; }
/* celownik podpowiedzi (lekcje: sam; Graj: po „Podpowiedzi”) i celownik komputera */
.sh-arrow, .sh-aim { position: absolute; inset: -3px; border-radius: 50%; z-index: 4; pointer-events: none; }
.sh-arrow { border: 3px solid #2BD98C; box-shadow: 0 0 0 3px rgba(43,217,140,.25), 0 0 16px 4px rgba(43,217,140,.75); animation: shGuide 1.2s ease-in-out infinite; }
.sh-arrow::before, .sh-arrow::after { content: ''; position: absolute; background: #2BD98C; } .sh-arrow::before { left: 50%; top: -7px; bottom: -7px; width: 3px; margin-left: -1.5px; } .sh-arrow::after { top: 50%; left: -7px; right: -7px; height: 3px; margin-top: -1.5px; }
@keyframes shGuide { 50% { transform: scale(.82); } }
.sh-aim { border: 3px solid #FF6B57; box-shadow: 0 0 14px 3px rgba(255,107,87,.7); animation: shAim .52s ease-out; }
@keyframes shAim { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* efekty strzału */
.sh-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 50%; }
.sh-fx.miss { border: 2px solid rgba(220,240,255,.9); animation: shSplash .85s ease-out forwards; }
.sh-fx.hit { background: radial-gradient(circle, #FFF3B8 0 20%, #FFA42E 45%, rgba(240,70,40,0) 70%); animation: shBoom .9s ease-out forwards; }
.sh-fx.sunk { background: radial-gradient(circle, #FFF3B8 0 18%, #FF8A2E 42%, rgba(200,40,30,0) 70%); animation: shBoom2 1.2s ease-out forwards; }
@keyframes shSplash { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
@keyframes shBoom { from { transform: scale(.3); opacity: 1; } 40% { opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
@keyframes shBoom2 { from { transform: scale(.3); opacity: 1; } 40% { opacity: 1; } to { transform: scale(4); opacity: 0; } }
.sh-c.pop .sh-mk::before { animation: shPop .5s ease-out both; animation-delay: var(--d, 0ms); }
@keyframes shPop { from { transform: scale(0); } 70% { transform: scale(1.6); } to { transform: scale(1); } }
.sh-c.shake { animation: shShake .35s; } @keyframes shShake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
/* dymek rywala */
.sh-bub { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); z-index: 20; margin: 0; padding: 8px 16px; border-radius: 999px; background: #FFF8E6; color: #1A1608; font-size: 17px; font-weight: 700; box-shadow: 0 6px 18px rgba(0,0,0,.45); white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.sh-bub.pop { animation: shBub .3s ease-out; } @keyframes shBub { from { transform: translateX(-50%) scale(.6); opacity: 0; } }
/* ustawianie floty */
.sh-place { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(6,12,36,.6); border: 1px solid rgba(227,196,106,.4); text-align: center; }
.sh-place b { font-size: 20px; color: var(--gm-gold3); } .sh-place p { margin: 0; font-size: 17px; line-height: 1.45; color: #DCE8F5; }

/* narzędzia pod planszą */
.sh-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-tool { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 18px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.5); background: rgba(6,12,36,.65); color: var(--gm-ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; flex: 1 1 auto; }
.sh-tool svg { width: 24px; height: 24px; } .sh-tool:hover { background: rgba(227,196,106,.14); }
.sh-hintM { display: none; }
.sh-turbo { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.5); background: rgba(6,12,36,.65); color: var(--gm-ink); font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.sh-turbo[aria-pressed="true"] { background: rgba(43,217,140,.18); border-color: #2BD98C; color: #BFF5DD; }

/* okno końca bitwy */
.sh-dlg { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); z-index: 4000; width: min(540px, calc(100% - 24px)); box-sizing: border-box; padding: 24px 22px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, rgba(14,24,64,.97), rgba(6,12,36,.97)); border: 2px solid var(--gm-gold); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.sh-dlg h2 { margin: 0 0 8px; font-size: 28px; color: var(--gm-gold3); } .sh-dlg p { font-size: 20px; margin: 0 0 14px; line-height: 1.45; } .sh-dlg .gm-autoNote { margin-top: 12px; }
.sh-bigPts { display: flex; justify-content: center; gap: 10px; margin-bottom: 8px; font-size: 40px; line-height: 1; } .sh-bigPts i { font-style: normal; color: rgba(227,196,106,.25); } .sh-bigPts i.on { color: var(--gm-gold); text-shadow: 0 0 14px rgba(242,176,30,.7); }
.sh-bigPts i.pop { animation: shPt .45s ease-out; } @keyframes shPt { from { transform: scale(2); } }
.sh-also { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(227,196,106,.25); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 18px; }
.sh-confetti { position: absolute; inset: 0; pointer-events: none; z-index: 3900; overflow: hidden; } .sh-confetti i { position: absolute; top: -12px; width: 10px; height: 14px; border-radius: 2px; animation: shConf 2.2s ease-in forwards; }
@keyframes shConf { to { transform: translateY(820px) rotate(var(--r)); opacity: .2; } }

/* panel boczny */
.sh-how { border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); padding: 12px 16px; font-size: 18px; line-height: 1.5; }
.sh-how summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); min-height: 32px; } .sh-how p { margin: 10px 0 0; }
.sh-opt { display: flex; align-items: center; gap: 12px; margin-top: 12px; font-size: 18px; cursor: pointer; } .sh-opt input { width: 24px; height: 24px; accent-color: var(--gm-gold); flex: none; }

/* Graj — wybór rywala */
.sh-cont { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin-bottom: 22px; border-radius: 18px; border: 2px solid var(--gm-gold); background: rgba(6,12,36,.7); }
.sh-cont b { font-size: 21px; color: var(--gm-gold3); } .sh-cont p { margin: 4px 0 0; font-size: 18px; } .sh-cont > div { flex: 1; }
.sh-contArt { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(227,196,106,.16); color: var(--gm-gold3); } .sh-contArt svg { width: 34px; height: 34px; }
.sh-levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sh-lvl { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 18px; min-height: 200px; border-radius: 18px; border: 1.5px solid rgba(227,196,106,.4); background: linear-gradient(180deg, rgba(15,52,96,.55), rgba(6,12,36,.7)); color: var(--gm-ink); font: inherit; text-align: start; cursor: pointer; }
.sh-lvl:hover { border-color: var(--gm-gold); } .sh-lvl[aria-pressed="true"] { border: 2px solid var(--gm-gold); }
.sh-lvlArt { display: flex; align-items: center; gap: 10px; height: 54px; } .sh-ava { font-size: 42px; line-height: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.sh-lvSea { display: flex; gap: 3px; } .sh-lvSea i { width: 10px; height: 22px; border-radius: 3px; background: linear-gradient(180deg, #D9E2EC, #7C8DA2); }
.sh-lvlName { font-size: 21px; color: var(--gm-gold3); } .sh-lvlWho { font-size: 18px; font-weight: 700; color: #CFE4FF; } .sh-lvlD { font-size: 16px; color: var(--gm-mute); line-height: 1.35; }
.sh-lvlDone { font-size: 17px; font-weight: 700; color: #8FE3D8; margin-top: auto; } .sh-lvlPts { font-size: 16px; color: var(--gm-gold3); }
.sh-note { margin: 14px 0 0; }
.sh-lvBar { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: thin; }
.sh-lvBar button { flex: none; min-height: 48px; padding: 8px 16px; border-radius: 12px; border: 1.5px solid rgba(227,196,106,.4); background: rgba(6,12,36,.6); color: var(--gm-ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sh-lvBar button[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold)); border-color: var(--gm-gold); } .sh-lvBar small { font-weight: 600; opacity: .8; }

/* Naucz się */
.sh-lesson h2 { margin: 6px 0 4px; font-size: 26px; color: var(--gm-gold3); }
.sh-lesson { display: flex; flex-direction: column; gap: 14px; } .sh-lesson > * { margin-top: 0; margin-bottom: 0; }
.sh-desc { border-radius: 14px; border: 1px solid rgba(227,196,106,.3); background: rgba(6,12,36,.55); padding: 12px 16px; font-size: 18px; line-height: 1.5; } .sh-desc summary { cursor: pointer; font-weight: 700; color: var(--gm-gold3); }
.sh-keep { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(227,196,106,.12); }
.sh-lnAll { align-self: flex-start; }
.sh-lessons { display: flex; flex-direction: column; gap: 10px; }
.sh-lItem { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid rgba(227,196,106,.35); background: rgba(6,12,36,.6); color: var(--gm-ink); font: inherit; font-size: 18px; text-align: start; cursor: pointer; }
.sh-lItem span:nth-child(2) { flex: 1; display: flex; flex-direction: column; } .sh-lItem b { font-size: 15px; color: var(--gm-mute); font-weight: 600; } .sh-lItem i { font-style: normal; color: #8FE3D8; font-size: 22px; }
.sh-lNo { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: rgba(227,196,106,.18); color: var(--gm-gold3); flex: none; } .sh-lItem.done .sh-lNo { background: #2BA05A; color: #fff; }
.sh-big { position: fixed; inset: 0; z-index: 2147483200; display: grid; place-items: center; padding: 16px; background: rgba(2,4,14,.72); }
.sh-box { width: min(560px, 100%); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: linear-gradient(180deg, #0E1840, #060C24); border: 2px solid var(--gm-gold); font-size: 19px; }
.sh-box p { margin: 0; line-height: 1.5; }

/* BSZ1: komputer — plansze większe (rozmiar w px z ekranu albo z −/+), gra szersza niż kolumna strony; telefon bez zmian */
.sh-zoom { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--gm-mute); }
.sh-zb { min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(227,196,106,.45); background: rgba(255,255,255,.04); color: var(--gm-ink); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.sh-zb:hover:not(:disabled) { background: rgba(227,196,106,.14); color: var(--gm-gold3); } .sh-zb:disabled { opacity: .4; cursor: default; } .sh-zb:focus-visible { outline: 3px solid var(--gm-teal); outline-offset: 2px; }
.sh-zfit { font-size: 16px; } .sh-zfit[aria-pressed="true"] { color: #15120A; background: linear-gradient(180deg, var(--gm-gold3), var(--gm-gold) 55%, var(--gm-gold2)); border-color: transparent; }
@media (min-width: 1000px) {
  .gm-sh .sh-layout { --wide: max(100%, min(calc(100vw - 128px), 1640px)); width: var(--wide); margin-left: calc((100% - var(--wide)) / 2); grid-template-columns: minmax(0, 1fr) 280px; }
  .gm-sh .sh-side { position: sticky; top: 84px; }
  .gm-sh .sh-boards { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 18px; }
  .gm-sh .sh-seaE, .gm-sh .sh-stage.placing .sh-seaM, .gm-sh #shLT .sh-sea { width: calc(var(--ce, 40px) * 10 + 52px); max-width: 100%; flex: 0 0 auto; }
  .gm-sh .sh-stage.duel .sh-seaM { width: calc(var(--cm, 26px) * 10 + 52px); max-width: 100%; flex: 0 0 auto; }
}
@media (max-width: 999px) { .sh-zoom { display: none; } }
@media (max-width: 1100px) { .sh-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 999px) {
  .sh-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sh-side .sh-now, .sh-side .sh-hintBtn:not(.sh-hintM) { display: none; }
  .sh-nowM.on, #shLnNowM { display: block; } .sh-hintM { display: inline-flex; flex: 1 1 100%; }
  .sh-boards { grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; }
  .sh-seaM { max-width: 74%; } .sh-stage.placing .sh-seaM { max-width: 100%; }
  /* PHN1: plansza rywala nie skacze między turami — tekst obok Twojej floty (stała wysokość), obie plansze na jednym ekranie */
  .sh-stage.duel .sh-boards { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "e e" "m t"; gap: 10px 8px; justify-items: stretch; align-items: stretch; }
  .sh-stage.duel .sh-seaE { grid-area: e; } .sh-stage.duel .sh-seaM { grid-area: m; max-width: none; }
  .sh-stage.duel .sh-boards > .sh-nowM { grid-area: t; display: block !important; contain: size; overflow-y: auto; overscroll-behavior: contain; margin: 0; font-size: 15px; line-height: 1.35; padding: 8px 10px; border-width: 1.5px; }
  .sh-stage.duel .sh-seaM .sh-seaH { font-size: 15px; } .sh-stage.duel .sh-seaM .sh-seaH b { font-size: 16px; } .sh-stage.duel .sh-seaM { gap: 4px; } .sh-stage.duel .sh-seaM .sh-fleet { min-height: 0; } .sh-stage.duel .sh-seaM .sh-fleetL { display: none; } .sh-stage.duel .sh-seaM .sh-fleetS { flex-wrap: nowrap; gap: 3px; } .sh-stage.duel .sh-seaM .sh-mini { gap: 1px; } .sh-stage.duel .sh-seaM .sh-mini b { width: 6px; height: 7px; }
  .sh-stage.placing .sh-boards > .sh-nowM.dup { display: none !important; }
  #shLnNowM { box-sizing: border-box; height: calc(5 * 1.4em + 24px); overflow-y: auto; overscroll-behavior: contain; font-size: 16px; }
  .sh-stage.solo .sh-boards > .sh-nowM, .sh-stage.placing .sh-boards > .sh-nowM { width: 100%; max-width: 560px; box-sizing: border-box; font-size: 17px; }
  .sh-seaM .sh-board { --hd: 16px; gap: 1px; padding: 4px; } .sh-seaM .sh-hd { font-size: 11px; min-height: 14px; }
  .sh-stage.placing .sh-seaM .sh-board { --hd: 20px; gap: 2px; padding: 5px; } .sh-stage.placing .sh-seaM .sh-hd { font-size: 12px; }
  .sh-stage { padding: 10px 8px; border-radius: 16px; }
  .sh-board { --hd: 18px; padding: 4px; } .sh-hd { font-size: 12px; }
  .sh-dlg { top: 40px; }
  .sh-finM { margin-top: -4px; }
}
@media (max-width: 560px) {
  .sh-levels { grid-template-columns: minmax(0, 1fr); } .sh-lvl { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; } .sh-lvlArt { width: 100%; }
  .sh-tabs button { padding: 10px 16px; font-size: 18px; } .sh-tool { font-size: 16px; padding: 8px 12px; min-height: 52px; }
  .sh-cont { flex-wrap: wrap; } .sh-cont .gm-btn { width: 100%; }
  .sh-bub { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .sh-arrow, .sh-c.h .sh-mk::before { animation: none !important; } }
