/* Łowisko – wspólne style i strona gracza.
   Zachód słońca nad jeziorem: fiolet i brzoskwinia nad wodą, turkus i granat pod nią.
   Interfejs: półprzezroczyste szkło (glassmorphism), krój Outfit (dołączony lokalnie – działa bez internetu). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/outfit-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #0a1f3a; --bg2: rgba(255,255,255,.07); --ink: #f4f1ff; --mut: #b9b3d6;
  --acc: #ffc94a; --sun: #ff9f6b; --hot: #ff4d5a; --good: #4fe3a1; --amber: #ffab3d; --teal: #45d2c6;
  --glass: rgba(24, 22, 56, .42); --glass-line: rgba(255,255,255,.16);
  font-family: Outfit, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--ink);
  background: linear-gradient(180deg, #1c1840 0%, #2d2050 22%, #12395a 60%, #071a33 100%) fixed; }
.hidden { display: none !important; }
button { font: inherit; }
.glass { background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 28px rgba(4, 6, 24, .35), inset 0 1px 0 rgba(255,255,255,.12); }
.btn { border: 0; border-radius: 16px; background: linear-gradient(180deg, #ffd66b, #ffb12e); color: #2a1600; font-weight: 800; padding: 12px 18px; cursor: pointer;
  touch-action: manipulation; user-select: none; -webkit-user-select: none; box-shadow: 0 6px 18px rgba(255,160,60,.35), inset 0 1px 0 rgba(255,255,255,.6); letter-spacing: .3px; }
.btn.big { font-size: 22px; padding: 16px 20px; width: 100%; }
.btn.small { font-size: 14px; padding: 8px 12px; }
.btn.ghost { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--glass-line); box-shadow: none; }
.btn:focus-visible, .icon-btn:focus-visible, .depth:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
body.offline::before { content: 'Łączenie z serwerem… gra działa dalej'; position: fixed; top: 0; left: 0; right: 0; z-index: 99; background: var(--hot); color: #fff; text-align: center; padding: 4px; font-size: 13px; }

/* przytrzymanie palca nie zaznacza tekstu ani nie otwiera menu (lupa, „Kopiuj”, podgląd obrazka) */
body.player, body.screen { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.player input, body.player textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
body.player canvas, body.player button, body.player svg { -webkit-user-drag: none; }

/* ---------- dołączanie ---------- */
.player { overscroll-behavior: none; }
.join { max-width: 460px; margin: 0 auto; padding: 28px 20px; }
.logo { text-align: center; margin-bottom: 18px; }
.logo-fish { display: block; width: 160px; height: 80px; margin: 0 auto; filter: drop-shadow(0 8px 18px rgba(255,150,80,.35)); }
.logo h1 { margin: 2px 0 0; font-size: 48px; font-weight: 800; letter-spacing: .5px; background: linear-gradient(180deg, #fff, #ffd9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo p { margin: 0; color: var(--sun); font-weight: 700; text-transform: uppercase; letter-spacing: 4px; font-size: 12px; }
.join label { display: block; font-size: 14px; color: var(--mut); margin-bottom: 6px; }
.join input { width: 100%; font: inherit; font-size: 20px; padding: 14px; border-radius: 14px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.08); color: var(--ink); margin-bottom: 12px; }
.join input:focus { outline: 2px solid var(--acc); }
.howto { color: var(--mut); font-size: 15px; line-height: 1.5; padding-left: 20px; margin-top: 22px; }
.howto b { color: var(--ink); }

/* ---------- gra ---------- */
.game { max-width: 560px; margin: 0 auto; height: 100vh; height: 100dvh; overflow: hidden;
  padding: max(6px, env(safe-area-inset-top)) 8px max(6px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; }
.game > * { flex: none; }
body.player:has(.game:not(.hidden)) { overflow: hidden; }
.hud { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 2px; border-radius: 16px; padding: 4px; }
.hud-cell { padding: 2px 6px; text-align: center; border-right: 1px solid rgba(255,255,255,.08); min-width: 0; }
.hud-cell small { display: block; font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; white-space: nowrap; }
.hud-cell b { font-size: 20px; line-height: 1.15; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
#timer.urgent { color: var(--hot); animation: pulse .6s infinite alternate; }
.hud-btns { display: flex; gap: 4px; align-items: center; padding-left: 4px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(255,255,255,.08); color: var(--ink); display: grid; place-items: center; cursor: pointer; position: relative; padding: 0; font-size: 16px; }
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
#muteBtn .wave, #muteBtn .x { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
#muteBtn .x { display: none; } #muteBtn.off .x { display: inline; } #muteBtn.off .wave { display: none; } #muteBtn.off { color: var(--mut); }
.icon-btn.has-new::after { content: ''; position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 8px var(--hot); }

/* scena zajmuje całe wolne miejsce – sterowanie zawsze mieści się na ekranie */
.game > .pond-wrap { flex: 1 1 auto; }
.pond-wrap { position: relative; width: 100%; min-height: 150px; border-radius: 20px; overflow: hidden; touch-action: none; background: #12395a;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08); }
.pond-wrap canvas#pond { width: 100%; height: 100%; display: block; }
.minimap { position: absolute; top: 8px; right: 8px; width: 112px; height: 78px; border-radius: 14px; padding: 4px 4px 15px; touch-action: none; cursor: crosshair; }
.minimap canvas { width: 100%; height: 100%; display: block; }
.minimap span { position: absolute; left: 0; right: 0; bottom: 2px; text-align: center; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--mut); font-weight: 600; pointer-events: none; }
body.casting .minimap { opacity: .55; }

.depths { position: absolute; inset: 0; pointer-events: none; }
.depth { position: absolute; left: 6px; transform: translateY(-50%); pointer-events: auto; cursor: pointer; min-width: 54px; min-height: 44px; padding: 4px 8px; border-radius: 12px;
  color: var(--ink); border: 1px solid var(--glass-line); background: rgba(10, 30, 60, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: left; transition: background .2s, border-color .2s, opacity .2s; }
.depth b { display: block; font-size: 15px; line-height: 1.1; font-weight: 800; }
.depth small { font-size: 10px; color: var(--mut); text-transform: uppercase; letter-spacing: .5px; }
.depth.on { border-color: var(--acc); background: rgba(255, 201, 74, .22); box-shadow: 0 0 16px rgba(255,201,74,.35); }
.depth.on small { color: #ffe7a6; }
body.casting .depth:not(.on) { opacity: .25; }

.status { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: calc(100% - 16px); max-width: 420px; min-height: 36px; border-radius: 14px;
  text-align: center; font-size: 14px; line-height: 1.25; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 6px 10px; pointer-events: none; }
.status.warn { color: var(--amber); }
.status.hot { color: #fff; background: rgba(255, 60, 80, .55); font-size: 19px; font-weight: 900; letter-spacing: .5px; }
.status.bad { color: #ffb3b8; }
.status.good { color: var(--good); }
#lobbyOverlay:not(.hidden) ~ .status, .pond-wrap:has(#lobbyOverlay:not(.hidden)) .status, body:has(#fight:not(.hidden)) .status, body:has(#fight:not(.hidden)) .feed { display: none; }

.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; pointer-events: none; padding: 14px; background: radial-gradient(ellipse at center, rgba(10,10,40,.1), rgba(10,10,40,.4)); }
.ov-card { border-radius: 22px; padding: 14px 22px; }
.ov-title { font-size: 13px; text-transform: uppercase; letter-spacing: 3px; color: var(--mut); font-weight: 600; }
.ov-timer { font-size: 56px; font-weight: 800; color: var(--acc); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px rgba(255,201,74,.45); }
.ov-sub { font-size: 14px; color: var(--ink); max-width: 300px; }

.actions { display: flex; gap: 8px; align-items: stretch; }
.action { flex: 1; font-size: 26px; padding: 0 16px; height: 66px; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; --p: 0; z-index: 0; font-weight: 800; letter-spacing: 1px; }
.action small { display: block; font-size: 12px; font-weight: 600; opacity: .7; margin-top: 3px; letter-spacing: 0; }
.action.disabled { opacity: .45; }
/* pasek siły rzutu */
.action::before { content: ''; position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p)); background: linear-gradient(90deg, #4fe3a1, #ffd66b 60%, #ff8a4a); opacity: 0; pointer-events: none; z-index: -1; }
.action.charging::before { opacity: 1; }
.action.charging { background: rgba(20, 30, 60, .8); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 1px var(--glass-line); }
.action.charging.max::before { background: var(--hot); animation: flash .12s infinite alternate; }
@keyframes flash { from { filter: brightness(1); } to { filter: brightness(1.5); } }
.action.strike { background: linear-gradient(180deg, rgba(90,110,160,.75), rgba(50,60,110,.75)); color: #fff; box-shadow: 0 0 0 1px var(--glass-line); }
.action.strike.hot { background: linear-gradient(180deg, #ff6a76, #e0283a); animation: pulse .25s infinite alternate; font-size: 32px; box-shadow: 0 0 30px rgba(255,60,80,.6); }
.action:disabled { opacity: .55; }

.mini-rank { border-radius: 14px; padding: 3px 10px; font-size: 13px; }
.mini-rank:empty { display: none; }
.mr { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; padding: 2px 0; line-height: 1.3; border-bottom: 1px solid rgba(255,255,255,.07); }
.mr span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.mr:last-child { border: 0; }
.mr.me { color: var(--acc); font-weight: 800; }
.feed { position: absolute; left: 8px; top: 8px; right: 130px; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.feed-item { align-self: flex-start; max-width: 100%; font-size: 12px; border-radius: 10px; padding: 2px 8px 2px 4px; white-space: nowrap; overflow: hidden; transition: opacity 1s;
  background: rgba(20, 18, 50, .55); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; align-items: center; gap: 4px; animation: slidein .35s ease-out; }
.feed-item canvas { width: 34px; height: 18px; flex: none; }
.feed-item span { overflow: hidden; text-overflow: ellipsis; }
.feed-item.gold { background: rgba(140, 100, 0, .6); border-color: rgba(255,210,90,.5); }
.feed-item.fade { opacity: 0; }
@keyframes slidein { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.who { font-size: 12px; line-height: 1.2; color: var(--mut); text-align: center; }
.who a { color: var(--mut); }

/* ---------- hol ---------- */
.fight-top { position: absolute; left: 0; right: 0; top: 8px; text-align: center; pointer-events: none; padding: 0 124px 0 8px; }
.fight-hint { display: inline-block; font-size: 20px; font-weight: 800; color: var(--acc); text-shadow: 0 2px 8px rgba(0,0,0,.6); }
.surge { font-weight: 900; font-size: 20px; color: #fff; visibility: hidden; background: rgba(255,60,80,.7); border-radius: 12px; padding: 2px 12px; display: block; width: max-content; margin: 4px auto 0; box-shadow: 0 0 20px rgba(255,60,80,.6); }
.surge.on { visibility: visible; animation: pulse .2s infinite alternate; }
.fight { position: fixed; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 20; max-width: 544px; margin: 0 auto; border-radius: 22px; padding: 10px 14px; display: flex; flex-direction: column; gap: 7px;
  background: rgba(14, 14, 44, .62); }
.gauge-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; }
.gauge-label { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.gauge { position: relative; height: 18px; background: rgba(255,255,255,.08); border-radius: 9px; overflow: hidden; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.gauge-red { position: absolute; right: 0; top: 0; bottom: 0; width: 20%; background: repeating-linear-gradient(45deg, rgba(255,77,90,.4) 0 6px, rgba(255,77,90,.15) 6px 12px); }
.gauge-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: linear-gradient(90deg, #2fb98a, var(--good)); border-radius: 9px; transition: background .2s; box-shadow: 0 0 12px rgba(79,227,161,.5); }
.gauge-fill.ok { background: linear-gradient(90deg, #2fb98a, #8dffc9); box-shadow: 0 0 16px rgba(79,227,161,.8); }
.gauge-fill.slack { background: linear-gradient(90deg, #4a6a9a, #7fa3d6); box-shadow: none; }
.gauge-fill { opacity: .9; transition: none; }
.zone { position: absolute; top: 0; bottom: 0; z-index: 1; border: 2px solid rgba(120,255,190,.9); border-radius: 7px; background: rgba(79,227,161,.18); box-sizing: border-box; pointer-events: none; }
.zone.in { background: rgba(79,227,161,.32); box-shadow: 0 0 12px rgba(79,227,161,.8); }
.gauge-fill { z-index: 0; }
.slack-warn { display: none; font-weight: 900; font-size: 18px; color: #fff; background: rgba(70,110,200,.75); border-radius: 12px; padding: 2px 12px; width: max-content; margin: 4px auto 0; }
.fight-top.slack .slack-warn { display: block; animation: pulse .25s infinite alternate; }
.gauge-fill.amber { background: linear-gradient(90deg, #ff9b3d, #ffc94a); box-shadow: 0 0 12px rgba(255,171,61,.6); }
.gauge-fill.red { background: linear-gradient(90deg, #ff4d5a, #ff8a8f); box-shadow: 0 0 16px rgba(255,77,90,.8); }
.track { position: relative; height: 24px; background: linear-gradient(90deg, rgba(69,210,198,.35), rgba(10,40,90,.5)); border-radius: 12px; }
.fish-mark { position: absolute; top: 50%; width: 22px; height: 12px; border-radius: 50% 40% 40% 50%; background: var(--acc); transform: translate(-50%, -50%); box-shadow: 0 0 10px rgba(255,201,74,.7); transition: left .05s linear; }
.fish-mark::after { content: ''; position: absolute; left: 100%; top: 1px; border: 5px solid transparent; border-left: 7px solid var(--acc); }
.track-you { position: absolute; left: 4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #fff; }
.escape-line { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--hot); transform: translateX(-3px); box-shadow: 0 0 8px var(--hot); }
.reel { margin-top: 2px; height: clamp(76px, 14vh, 110px); font-size: 22px; background: linear-gradient(180deg, #6ff0b5, #2fb98a); color: #032a1a; border-radius: 20px; box-shadow: 0 6px 0 #1f7f5c, 0 10px 24px rgba(47,185,138,.35); }
.reel.down { transform: translateY(4px); box-shadow: 0 2px 0 #1f7f5c; filter: brightness(1.1); }
.fight-tip { text-align: center; font-size: 12px; color: var(--mut); }

/* ---------- wynik połowu ---------- */
.toast { position: fixed; z-index: 30; left: 50%; top: 12%; transform: translateX(-50%); border-radius: 24px; padding: 10px 24px 14px; text-align: center; animation: pop .45s cubic-bezier(.2,1.4,.4,1); min-width: 240px;
  background: rgba(24, 22, 60, .6); color: var(--ink); cursor: pointer; }
.t-close { font-size: 11px; color: var(--mut); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; animation: tclose 1.6s ease-in-out infinite; }
.toast.gold .t-close { color: #fff2d0; }
@keyframes tclose { 50% { opacity: .45; } }
.toast.gold { background: linear-gradient(160deg, rgba(255,220,120,.55), rgba(200,120,20,.5)); border-color: rgba(255,230,150,.6); box-shadow: 0 0 50px rgba(255,190,60,.5); }
.t-fish { width: 180px; height: 86px; display: block; margin: 0 auto; }
.t-name { font-size: 22px; font-weight: 800; }
.t-kg { font-size: 44px; font-weight: 800; line-height: 1; color: var(--acc); text-shadow: 0 0 20px rgba(255,201,74,.5); }
.toast.gold .t-kg { color: #fff; }
.t-trophy { font-size: 18px; font-weight: 900; color: #fff3c4; letter-spacing: 4px; margin-top: 4px; }
.t-new { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: #052a1c; background: var(--good); border-radius: 999px; padding: 2px 10px; }
.t-sub { font-size: 14px; color: var(--mut); margin-top: 6px; }
.toast.gold .t-sub { color: #fff2d0; }

/* ---------- atlas ---------- */
.atlas { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(6, 6, 24, .55); }
.atlas-card { width: 100%; max-width: 520px; max-height: 100%; overflow: auto; border-radius: 24px; padding: 14px; background: rgba(28, 24, 64, .7); animation: pop2 .3s ease-out; }
.atlas-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.atlas-card h2 { margin: 0; font-size: 22px; font-weight: 800; }
#atlasCount { font-size: 13px; color: var(--mut); }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.atlas-item { position: relative; border-radius: 16px; padding: 6px 8px 8px; background: linear-gradient(180deg, rgba(69,210,198,.16), rgba(10,40,90,.3)); border: 1px solid var(--glass-line); text-align: center; }
.atlas-item canvas { width: 100%; height: 60px; display: block; }
.atlas-item b { display: block; font-size: 15px; }
.atlas-item small { display: block; font-size: 11px; color: var(--mut); }
.atlas-item.locked { background: rgba(255,255,255,.04); }
.atlas-item.locked b { color: var(--mut); letter-spacing: 3px; }
.atlas-item.trophy { border-color: rgba(255,210,90,.6); box-shadow: inset 0 0 20px rgba(255,190,60,.15); }
.atlas-item i { position: absolute; top: 6px; right: 6px; font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; background: var(--acc); color: #2a1600; border-radius: 999px; padding: 1px 7px; }
@keyframes pop2 { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }

@keyframes pulse { from { filter: brightness(1); } to { filter: brightness(1.35); transform: scale(1.02); } }
@keyframes pop { from { transform: translateX(-50%) scale(.5); opacity: 0; } to { transform: translateX(-50%) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; } }

/* niskie ekrany: mniej ozdobników, wszystko nadal widoczne */
@media (max-height: 640px) {
  .hud-cell small { font-size: 9px; }
  .hud-cell b { font-size: 17px; }
  .icon-btn { width: 34px; height: 34px; }
  .action { height: 54px; font-size: 22px; }
  .action small { font-size: 10px; margin-top: 1px; }
  .status { font-size: 13px; min-height: 30px; }
  .mr:nth-child(n+4):not(.me) { display: none; }
  .minimap { width: 96px; height: 68px; }
  .fight-hint { font-size: 17px; }
  .surge { font-size: 16px; }
  .reel { height: 64px; }
}

/* zanęcanie – podszarpnięcie */
.btn.twitch { flex: 0 0 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; position: relative; overflow: hidden; padding: 6px 8px; }
.btn.twitch small { display: block; font-size: 10px; font-weight: 600; opacity: .7; margin-top: 2px; white-space: nowrap; }
.btn.twitch::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #9ff0d0; transform: scaleX(0); transform-origin: left; }
.btn.twitch.cool::after { animation: twitchCool .9s linear; }
@keyframes twitchCool { from { transform: scaleX(1); opacity: 1; } to { transform: scaleX(0); opacity: .3; } }
#reelInBtn { flex: 0 0 auto; }
@media (max-width: 360px) { .btn.twitch { flex-basis: 92px; font-size: 13px; } }
.gauge-fill::after { content: ''; position: absolute; right: 0; top: -2px; bottom: -2px; width: 4px; border-radius: 2px; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.9); }

/* skarby z dna */
.toast.junk { background: linear-gradient(160deg, rgba(150,120,255,.45), rgba(40,30,110,.6)); border-color: rgba(200,180,255,.5); box-shadow: 0 0 40px rgba(150,120,255,.4); }
.t-junk { font-size: 72px; line-height: 1.1; animation: junkSpin 1.2s ease-out; }
@keyframes junkSpin { from { transform: rotate(-200deg) scale(.2); } 70% { transform: rotate(12deg) scale(1.1); } to { transform: none; } }
.t-top { font-size: 12px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: #d9ccff; }
.t-note { font-size: 14px; font-style: italic; color: #f0eaff; max-width: 260px; margin: 4px auto 0; }
.toast.junk .t-sub { color: #d9ccff; }
.feed-item.junk { background: rgba(80, 60, 160, .6); }
.feed-emoji { font-style: normal; font-size: 15px; width: 22px; text-align: center; flex: none; }
.atlas-sep { grid-column: 1 / -1; margin-top: 10px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #d9ccff; }
.atlas-item.junk { background: linear-gradient(180deg, rgba(150,120,255,.18), rgba(30,20,90,.3)); }
.atlas-item.junk.locked { background: rgba(255,255,255,.04); }
.junk-ico { font-size: 40px; height: 60px; line-height: 60px; }
.atlas-item.junk.locked .junk-ico { color: var(--mut); font-weight: 800; font-size: 32px; }
.junk-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.junk-grid .atlas-item { padding: 4px 4px 6px; border-radius: 12px; }
.junk-grid .atlas-item b { font-size: 11px; line-height: 1.15; }
.junk-grid .junk-ico { font-size: 28px; height: 40px; line-height: 40px; }
.junk-grid .atlas-item.locked .junk-ico { font-size: 22px; }
.atlas-sep + .junk-grid { margin-bottom: 4px; }
/* przyciski trzymane palcem: żadnych gestów przeglądarki (przewijanie/zoom przerywały kręcenie) */
.reel, .action, .btn.twitch { touch-action: none; }
.zone.enter { animation: zoneEnter .35s ease-out; }
@keyframes zoneEnter { from { box-shadow: 0 0 0 0 rgba(140,255,200,.95), 0 0 22px rgba(79,227,161,1); background: rgba(140,255,200,.55); } }

/* trening w czasie oczekiwania na turę – gracz sam go włącza */
.train-btn { pointer-events: auto; display: block; width: 100%; margin-top: 12px; font-size: 18px; background: linear-gradient(180deg, #7af0bd, #33c98a); color: #04281a; }
.train-btn small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.train-exit { position: absolute; left: 8px; top: 8px; z-index: 6; border: 0; cursor: pointer;
  font: inherit; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: #062a1c; background: var(--good); border-radius: 999px; padding: 4px 10px; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.toast.info { background: linear-gradient(160deg, rgba(79,227,161,.35), rgba(10,60,80,.65)); border-color: rgba(140,255,200,.45); }
