/* Calm mobile-inspired HETMAN portal: rectangular surfaces, no flying geometry. */
:root { --bg: #07162a; --surface: rgba(10, 30, 52, .94); --surface-2: rgba(12, 43, 66, .92); --line: rgba(151, 208, 222, .27); --ink: #f3fbff; --muted: #b2c8d3; --cyan: #38a6d0; --cyan-bright: #a8e6f5; --gold: #d7c55e; --green: #899d51; --shadow: 0 16px 38px rgba(0, 0, 0, .35); }
* { border-radius: 0 !important; }
.mode-card, .entry-card, .journey-card, .lobby-card, .player-count-card, .mode-symbol, .account-triangle, .welcome-view, .play-footer, .command-map { clip-path: none !important; }
.entry-card::after, .entry-card::before, .journey-card::after, .journey-card::before, .mode-card::after, .mode-card::before, .player-count-card::after, .player-count-card::before, .play-footer::after, .play-footer::before { content: none !important; display: none !important; }
body { min-width: 1120px; background: #07162a; }
body::before, body::after, #prism-field, #falling-triangles, .welcome-bands, .welcome-reference, .welcome-route { display: none !important; }
.desktop-shell { grid-template: 74px minmax(1014px, calc(100vh - 74px)) / 254px minmax(842px, 1fr); min-height: 1088px; }
.topbar { padding: 0 25px; border-bottom: 3px solid #2a9ac6; background: #091b31; }
.brand-logo { width: 158px; max-height: 48px; object-fit: contain; filter: brightness(1.2); }
.brand-wordmark small { color: #bcd7df; }
.sidebar { padding: 23px 14px 16px; border-right: 1px solid rgba(152, 213, 224, .33); background: rgba(5, 21, 37, .96); }
.sidebar::after { display: none; }
.nav-label { color: #8dbbca; }
.nav-item { min-height: 40px; border-left: 3px solid transparent; background: transparent; color: #d4e6ec; }
.nav-item span { color: #78bed5; }
.nav-item span { font-size: 0; }
.nav-item span::after { content: "■"; font-size: 10px; }
.nav-item:hover, .nav-item.active { border-left-color: #d4c451; background: #123955; color: #fff; }
.nav-item.active span { color: #f0df68; text-shadow: none; }
.signout { border: 1px solid rgba(151, 208, 222, .35); background: #103c59; }
.app-view { position: relative; padding: 34px 42px 48px; background: #091a2c center / cover fixed; }
.app-view::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4, 17, 30, .76); }
.app-view[data-route="welcome"] { background-image: url("assets/blue-field.jpg"); }
.app-view[data-route="panel"], .app-view[data-route="profil"] { background-image: url("assets/spectral-grid.jpg"); }
.app-view[data-route="gra"], .app-view[data-route^="board-"] { background-image: url("assets/olive-grid.jpg"); }
.app-view[data-route="live"] { background-image: url("assets/olive-portal.jpg"); }
.app-view[data-route="ranking"], .app-view[data-route="osiagniecia"] { background-image: url("assets/blue-field.jpg"); }
.app-view[data-route="zasady"], .app-view[data-route="ustawienia"] { background-image: url("assets/spectral-grid.jpg"); }
.app-view[data-route="regulamin"], .app-view[data-route="prywatnosc"] { background-image: url("assets/spectral-grid.jpg"); }
.app-view[data-route="arsenal"], .app-view[data-route="armie"], .app-view[data-route="subscription"], .app-view[data-route="sklep"] { background-image: url("assets/olive-portal.jpg"); }
.view-header { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.view-title { color: #fff; font-size: 38px; letter-spacing: -.035em; text-transform: none; }
.view-subtitle { color: #c5d7de; }
.eyebrow { color: #b9d86b; }
.button, .blade-button, .filter, .setting-toggle, .time-choice { border: 1px solid #71c2d8; background: #167aa6; box-shadow: none; clip-path: none !important; }
.button--ghost, .blade-button--light { background: rgba(8, 30, 48, .75); color: #d4edf4; }
.card, .mode-card, .lobby-card, .entry-card, .journey-card, .player-setup, .play-footer, .progress-rail, .command-map, .lobby-hero, .rules-intro, .rules-board-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(4px); }
.card::before, .mode-card::before, .lobby-card::before, .mode-card::after, .quick-card::after { content: none !important; }
.welcome-view { display: block; min-height: 520px; border: 1px solid var(--line); background: rgba(5, 23, 40, .77); box-shadow: var(--shadow); }
.welcome-copy { max-width: 1320px; padding: 66px 70px; }
.welcome-logo { display: block; position: relative; width: min(245px, 100%); height: auto !important; max-width: 100%; margin: 0 0 30px; padding: 0; background: transparent; overflow: hidden; }
.welcome-logo img { display: block; width: 100%; height: auto; }
.welcome-logo::after { content: ""; position: absolute; inset: 0; background: url("assets/hetman-logo-clean.png") center / 100% auto no-repeat; filter: brightness(0) invert(1); clip-path: inset(52% 0 0 0); pointer-events: none; }
.welcome-kicker { color: #c9dc6e; }
.welcome-copy h1 { color: #fff; font-size: 62px; letter-spacing: -.06em; text-shadow: none; }
.welcome-copy h1 em { color: #94d9ed; }
.welcome-lead { color: #d4e4e8 !important; font-size: 15px; }
.entry-grid { margin-top: 18px; }
.entry-card { min-height: 190px; background: rgba(6, 28, 47, .94); }
.entry-card--blue { border-top: 4px solid #38a6d0; }.entry-card--red { border-top: 4px solid #d75d61; }.entry-card--yellow { border-top: 4px solid #d7c55e; }
.entry-card h2, .entry-card p, .entry-card button { color: #effaff !important; }
.entry-card p { color: #bdd3dc !important; }
.command-map, .lobby-hero { background: rgba(7, 30, 48, .92); }
.command-primary h2, .lobby-hero h2 { font-size: 32px; }
.account-triangle { clip-path: none; border: 1px solid var(--line); background: #143d58; }
.journey-card { background: rgba(8, 31, 50, .94); }
.mode-grid--variations .mode-card { min-height: 220px; padding: 23px; background: rgba(8, 31, 50, .95); }
.mode-card--classic { border-top: 4px solid #38a6d0; }.mode-card--savant { border-top: 4px solid #80a05a; }.mode-card--quick { border-top: 4px solid #d7c55e; }
.mode-card h2, .lobby-card h2, .card-title, .player-setup h2 { color: #f4fbff !important; }
.mode-card p, .lobby-card p, .player-setup p, .card-kicker { color: #c1d6df !important; }
.mode-grid--variations { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mode-card small { color: #d8d46f !important; }
.mode-symbol { width: 42px; height: 42px; border: 1px solid #74bdd2; background: #0d314d; color: #d9e976; }
.player-count-card { border: 1px solid #c4dce3; background: #eaf4f6; }.player-count-card b, .player-count-card span { color: #18323d !important; }
.player-count-card.active { border-color: #d6c65a; background: #23464f; }.player-count-card.active b, .player-count-card.active span { color: white !important; }
.game-stage { padding: 14px; border: 1px solid var(--line); background: rgba(5, 21, 35, .92); }
.board-window { border-color: #a8d8e5; }.turn-card { background: #103d5d; }
.rules-board-figure, .rules-board-figure img, .territory-schema, .token, .result, .avatar, .commander-avatar, .podium-card span { border-radius: 0 !important; }
.nav-item > span { font-size: 0 !important; }
.nav-item > span::after { content: "■"; display: block; font-size: 9px !important; line-height: 1; }
@media (max-width: 1320px) { .app-view { padding: 28px; }.welcome-copy { padding: 48px; }.welcome-copy h1 { font-size: 52px; } }

/* Clean portal shell: one typeface, a top navigation and neutral rectangular controls. */
html, body, button, input, select, textarea, .app-view, .topbar, .card, .mode-card, .player-count-card {
  font-family: "Segoe UI", Arial, sans-serif !important;
  font-stretch: normal !important;
}
html, body { min-width: 0; height: auto; overflow-y: auto !important; background: #07162a; }
.desktop-shell { display: block; min-height: 100vh; }
.sidebar { display: none !important; }
.topbar {
  position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  min-height: 95px; padding: 0 40px; border: 0 !important; border-bottom: 1px solid rgba(220,238,244,.16) !important;
  background: rgba(7,22,42,.97) !important; box-shadow: none !important;
}
.topbar::before { content: none !important; display: none !important; }
.top-nav { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 0; }
.top-nav button, .topbar-status button, .button, .blade-button, .filter, .setting-toggle, .time-choice, .signout {
  min-height: 48px; padding: 0 18px; border: 1px solid rgba(217,233,239,.25) !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; clip-path: none !important; color: #dceaf0 !important;
  font-family: "Segoe UI", Arial, sans-serif !important; font-size: 18px !important; font-weight: 600 !important;
  letter-spacing: 0 !important; text-transform: none !important;
}
.top-nav button:hover, .top-nav button:focus-visible, .button:hover, .blade-button:hover, .filter.active, .setting-toggle.on, .time-choice.active {
  border-color: rgba(235,246,250,.68) !important; background: rgba(209,231,239,.12) !important; color: #fff !important;
  transform: none !important;
}
.topbar-status { position: static; grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 10px; transform: none; }
.language-picker { display: flex; align-items: center; gap: 6px; color: #dceaf0; font-size: 14px; font-weight: 700; letter-spacing: .06em; }
.language-picker > span { color: #d7c55e; }
.language-choice { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid rgba(217,233,239,.42); background: rgba(255,255,255,.08); color: #fff; font: 700 13px "Segoe UI", Arial, sans-serif; letter-spacing: 0; cursor: pointer; }
.language-choice.active { border-color: #d7c55e; background: rgba(215,197,94,.18); color: #fff; }
.language-choice:focus-visible { outline: 2px solid #d7c55e; outline-offset: 2px; }
.icon-button { width: 46px; padding: 0 !important; }
.icon-button.is-muted { color: rgba(220, 234, 240, .48) !important; border-color: rgba(220, 234, 240, .16) !important; }
.profile-chip { display: flex; align-items: center; gap: 8px; }
.profile-chip .avatar { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(220,238,244,.35); background: transparent; color: #dceaf0; }
.profile-chip small, .profile-chip strong { display: block; text-align: left; font-size: 13px; line-height: 1.15; }
.app-view { min-height: calc(100vh - 95px); overflow: visible !important; padding: 38px 56px 60px; background-color: #091a2c !important; }
.app-view::before, .app-view::after, .card::before, .card::after, .quick-card::after { content: none !important; display: none !important; }
.view-header { max-width: 1120px; margin: 0 auto 28px; padding: 0; border: 0; background: transparent; }
.view-title, .welcome-copy h1 { font-family: "Segoe UI", Arial, sans-serif !important; font-stretch: normal !important; font-weight: 700 !important; letter-spacing: -.03em !important; }
.eyebrow, .card-kicker, .nav-label { font-family: "Segoe UI", Arial, sans-serif !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .06em !important; }
.card, .mode-card, .lobby-card, .entry-card, .journey-card, .player-setup, .play-footer, .progress-rail, .command-map, .lobby-hero, .rules-intro, .rules-board-card, .game-stage {
  border: 1px solid rgba(220,238,244,.16) !important; border-radius: 0 !important; background: rgba(7,22,42,.78) !important; box-shadow: none !important;
}
.card:hover, .mode-card:hover, .lobby-card:hover, .entry-card:hover, .journey-card:hover { transform: none !important; box-shadow: none !important; }
.mode-card, .player-count-card { min-height: 150px; border: 1px solid rgba(220,238,244,.16) !important; border-top: 1px solid rgba(220,238,244,.16) !important; background: rgba(7,22,42,.78) !important; }
.mode-card h2 { font-size: 23px !important; }.mode-card p { font-size: 16px !important; }
.player-count-card { min-height: 105px; }.player-count-card.active { background: rgba(219,236,241,.14) !important; border-color: rgba(220,238,244,.42) !important; }
.game-stage { display: block; max-width: 1320px; margin: 0 auto; padding: 0; overflow: hidden; }
.app-view[data-route^="board-"] .game-stage { background: #030b14 !important; border-color: rgba(190, 222, 236, .24) !important; }
.board-window { border: 0 !important; background: #08111d !important; box-shadow: none !important; }
.board-window::before { content: none !important; }.board-window iframe { width: 100%; height: min(94vh, 1104px); border: 0 !important; border-radius: 0 !important; filter: none !important; }
.game-side, .turn-card { display: none !important; }
.app-view[data-route="welcome"] { background-image: linear-gradient(rgba(2, 10, 18, .66), rgba(2, 10, 18, .84)), url("assets/portal-bg-04.jpg") !important; }
.app-view[data-route="welcome"] .welcome-view { background: rgba(5, 23, 40, .62); }
.app-view[data-route="welcome"] .entry-card { background: rgba(7, 22, 42, .62) !important; }
.app-view[data-route="gra"] .player-setup, .app-view[data-route="gra"] .mode-card, .app-view[data-route="gra"] .play-live-card { background: rgba(7, 22, 42, .67) !important; }
.app-view[data-route="gra"] { background-image: linear-gradient(rgba(2, 10, 18, .68), rgba(2, 10, 18, .84)), url("assets/portal-bg-02.jpg") !important; }
.app-view[data-route="live"] { background-image: linear-gradient(rgba(2, 10, 18, .65), rgba(2, 10, 18, .84)), url("assets/portal-bg-03.jpg") !important; }
.app-view[data-route="ranking"] { background-image: linear-gradient(rgba(2, 10, 18, .66), rgba(2, 10, 18, .84)), url("assets/portal-bg-04.jpg") !important; }
.app-view[data-route="zasady"] { background-image: linear-gradient(rgba(2, 10, 18, .47), rgba(2, 10, 18, .62)), url("assets/rules-carbon-wave.jpg") !important; background-position: center; background-size: cover; background-attachment: fixed; }
.app-view[data-route="arsenal"] { background-image: linear-gradient(rgba(4, 17, 48, .76), rgba(3, 12, 35, .88)), url("assets/portal-bg-07.jpg") !important; }
.app-view[data-route="sklep"] { background-image: linear-gradient(rgba(2, 10, 18, .65), rgba(2, 10, 18, .85)), url("assets/portal-bg-07.jpg") !important; }
.app-view[data-route="panel"], .app-view[data-route="profil"] { background-image: linear-gradient(rgba(2, 10, 18, .69), rgba(2, 10, 18, .84)), url("assets/portal-bg-01.jpg") !important; }
.app-view[data-route="osiagniecia"], .app-view[data-route^="board-"] { background-image: linear-gradient(rgba(2, 10, 18, .68), rgba(2, 10, 18, .84)), url("assets/portal-bg-02.jpg") !important; }
.app-view[data-route="armie"] { background-image: linear-gradient(rgba(2, 10, 18, .65), rgba(2, 10, 18, .84)), url("assets/portal-bg-03.jpg") !important; }
.app-view[data-route="subscription"] { background-image: linear-gradient(rgba(2, 10, 18, .66), rgba(2, 10, 18, .84)), url("assets/portal-bg-04.jpg") !important; }
.app-view[data-route="ustawienia"] { background-image: linear-gradient(rgba(2, 10, 18, .67), rgba(2, 10, 18, .86)), url("assets/portal-bg-05.jpg") !important; }
.app-view[data-route="regulamin"] { background-image: linear-gradient(rgba(2, 10, 18, .67), rgba(2, 10, 18, .86)), url("assets/portal-bg-06.jpg") !important; }
.app-view[data-route="prywatnosc"] { background-image: linear-gradient(rgba(2, 10, 18, .65), rgba(2, 10, 18, .85)), url("assets/portal-bg-07.jpg") !important; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 30px; }
.welcome-actions .blade-button, .welcome-actions .welcome-rule-link, .welcome-actions .welcome-subscription-link { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 16px; margin: 0; padding: 0 22px; border: 1px solid rgba(217,233,239,.42) !important; background: rgba(7,22,42,.72) !important; color: #edf7fa !important; font-size: 15px !important; font-weight: 650 !important; letter-spacing: 0 !important; text-decoration: none; text-transform: none; }
.welcome-actions .blade-button span, .welcome-actions .welcome-rule-link span, .welcome-actions .welcome-subscription-link span { font-size: 19px; line-height: 1; color: inherit; }
.welcome-actions .welcome-subscription-link { border-color: rgba(217,233,239,.42) !important; color: #edf7fa !important; }
.welcome-actions .welcome-subscription-link span { color: #f0dc6b !important; }
.action-triangle { display: inline-block; width: 16px; height: 16px; margin-left: 8px; vertical-align: -3px; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.action-triangle--blue { background: #199bdf; }.action-triangle--red { background: #e63840; }.action-triangle--green { background: #14965c; }.action-triangle--yellow { background: #f0dc28; }
.play-live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.play-live-card { min-height: 220px; padding: 26px; border: 1px solid rgba(220,238,244,.16); background: rgba(7,22,42,.78); }
.play-live-card > span { color: #9db8c4; font-size: 13px; font-weight: 650; }.play-live-card h2 { margin: 24px 0 8px; color: #f2f7f9; font-size: 25px; }.play-live-card p { min-height: 46px; margin: 0; color: #b7cbd3; font-size: 16px; line-height: 1.45; }.play-live-card .button { margin-top: 20px; }
.skin-card { border: 1px solid rgba(220,238,244,.16) !important; background: rgba(7,22,42,.78) !important; box-shadow: none !important; }
.skin-card h2 { color: #f2f7f9 !important; }.skin-card p, .skin-card > span { color: #b7cbd3 !important; }.skin-card::after { opacity: .14 !important; }
.collection-single { display: flex; min-height: 220px; max-width: 100%; align-items: center; padding: 42px; border: 1px solid rgba(220,238,244,.16); background: rgba(7,22,42,.78); }
.collection-single p { max-width: 760px; margin: 0; color: #eef7fa; font-size: 28px; font-weight: 650; line-height: 1.25; }
.rules-layout { width: 100%; max-width: none !important; }
.rules-stat-grid { grid-template-columns: repeat(3, minmax(190px, 270px)); justify-content: start; gap: 18px; }
.rules-stat-grid .rule-stat { min-height: 196px; padding: 26px 24px; }
.rules-stat-grid .rule-stat b { font-size: 48px; }
.rules-stat-grid .rule-stat span { margin-top: 5px; font-size: 18px; }
.rules-stat-grid .rule-stat small { margin-top: 12px; color: #ffffff; font-size: 16px; font-weight: 450; line-height: 1.48; }
.piece-stat-grid { margin-top: -2px; }
.piece-stat { display: flex; flex-direction: column; justify-content: flex-start; }
.piece-stat .piece-figure { display: block; width: 56px; height: 56px; margin: 0 0 13px; border: 1px solid rgba(230,242,246,.78); }
.piece-stat b { color: #ecf5f7; font-size: 25px !important; letter-spacing: -.04em; }
.piece-stat small { color: #ffffff; }
.piece-stat-grid .piece-stat:last-child small { font-size: 14px; line-height: 1.42; }
.teleport-diagram { grid-template-columns: 48px 1fr 30px 1fr; }
.teleport-diagram i:nth-of-type(2) { display: none; }
.app-view[data-route="zasady"] .card { background-color: rgba(6, 18, 30, .62); }
.app-view[data-route="zasady"] .piece-power { background: rgba(7, 19, 31, .52) !important; }
.rules-top-grid { display: grid; width: 1710px; max-width: 100%; grid-template-columns: repeat(2, minmax(0, 846px)); gap: 18px; align-items: stretch; }
.rules-intro { display: grid; min-height: 220px; padding: 18px 22px 18px 30px !important; grid-template-columns: minmax(0, 1fr) 390px; align-items: start; gap: 20px; }
.rules-intro .eyebrow, .rules-movement-card .eyebrow, .rules-goal-card .eyebrow, .rules-two-column > article.card .eyebrow, .rules-scoring-corner .eyebrow { margin: 0 0 16px !important; color: #bd7b13 !important; font-size: 15px !important; font-weight: 900; line-height: 1.15; letter-spacing: .10em; text-shadow: 0 0 12px rgba(189,123,19,.20); }
.rules-intro h2, .rules-movement-card h2, .rules-goal-card h2, .rules-two-column > article.card h2 { margin: 0 0 16px !important; color: #ffffff !important; font-size: 30px !important; line-height: 1.1; }
.rules-intro p { max-width: 42ch; margin: 0; color: #ffffff !important; font-size: 16px !important; font-weight: 450; line-height: 1.48 !important; }
.rules-board-gallery { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-self: center; }
.rules-board-gallery figure { display: flex; min-width: 0; margin: 0; flex-direction: column; align-items: center; justify-content: flex-end; }
.rules-board-gallery img { display: block; width: 180px; height: 180px; object-fit: contain; border: 1px solid rgba(220,238,244,.32); background: #0b1726; }
.rules-board-gallery figure:nth-child(2) img, .rules-board-gallery figure:nth-child(3) img { width: 90px; height: 180px; }
.rules-board-gallery figcaption { margin-top: 6px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-align: center; text-transform: uppercase; }
.rules-mini-board { width: 184px; height: 184px; margin: 0; padding: 6px !important; overflow: hidden; border: 1px solid rgba(220,238,244,.3); background: #0b1726; }.rules-mini-board img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.instruction-map { background: #07111d url("assets/instruction-diagrams.jpg") 96% 2% / 240% auto no-repeat !important; }
.rules-movement-reference { width: 210px; height: 210px; margin: 14px 0 18px; overflow: hidden; border: 1px solid rgba(220,238,244,.3); background: #07111d; }
.rules-movement-reference img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rules-movement-card { display: grid; min-height: 220px; padding: 20px 22px !important; grid-template-columns: minmax(0, 1fr) 184px; grid-template-rows: auto auto 1fr; column-gap: 24px; }
.rules-movement-card .eyebrow { grid-column: 1; }
.rules-movement-card h2 { grid-column: 1; }
.rules-movement-card .rules-lead { grid-column: 1; max-width: 38ch; margin: 0; color: #ffffff !important; font-size: 16px !important; font-weight: 450; line-height: 1.48; }
.rules-movement-card .rules-movement-reference { grid-column: 2; grid-row: 1 / span 3; width: 184px; height: 184px; margin: 0; align-self: start; }
.rules-command-grid { display: grid; width: 1710px; max-width: 100%; grid-template-columns: repeat(2, minmax(0, 846px)); gap: 18px; align-items: stretch; }
.rules-stat-stack { display: grid; grid-template-rows: 196px 256px; gap: 18px; }
.rules-goal-card { min-height: 430px; padding: 30px 34px !important; }
.rules-goal-card > p { max-width: 50ch; margin: 0; color: #ffffff !important; font-size: 16px !important; font-weight: 450; line-height: 1.48 !important; }
.rules-goal-card .strategic-mini-grid { display: none; }
.rules-goal-score { display: grid; min-height: 410px; margin-top: 0; grid-template-columns: minmax(0, 1fr) 410px; gap: 18px; align-items: stretch; }
.rules-goal-score .rules-goal-card { min-height: 410px; padding: 30px 32px !important; }
.rules-goal-score .rules-goal-card > p { max-width: 36ch; }
.rules-goal-score .rules-scoring-corner { width: 410px; min-height: 410px; padding: 28px !important; }
.rules-goal-score .rules-scoring-corner .rules-score-table td { padding: 8px 0; font-size: 16px; }
.rules-goal-score .rules-scoring-corner .rules-score-table td:last-child { font-size: 16px; }
.rules-goal-score .rules-scoring-corner .rules-score-ranking-note { margin: 16px 0 0; color: #ffffff !important; font-family: inherit; font-size: 16px !important; font-weight: 400 !important; line-height: 1.42 !important; }
.rules-two-column { width: 1710px; max-width: 100%; grid-template-columns: repeat(2, minmax(0, 846px)); gap: 18px; }
.rules-two-column > article.card { display: grid; min-height: 220px; padding: 22px 28px !important; grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: auto auto 1fr auto; column-gap: 24px; }
.rules-two-column > article.card .eyebrow { grid-column: 1; }
.rules-two-column > article.card h2 { grid-column: 1; }
.rules-two-column > article.card > p:not(.rules-caption) { grid-column: 1; margin: 0; color: #ffffff !important; font-size: 16px !important; font-weight: 450; line-height: 1.48 !important; }
.rules-two-column .teleport-diagram { display: grid; grid-column: 2; grid-row: 1 / span 3; align-self: center; grid-template-columns: 78px minmax(0, 1fr); grid-template-rows: auto auto; gap: 14px 12px; margin: 0; }
.rules-two-column .teleport-diagram i { grid-column: 1; grid-row: 1; width: 78px; height: 78px; }
.rules-two-column .teleport-diagram span { color: #ffffff; font-size: 14px; font-weight: 650; line-height: 1.25; }
.rules-two-column .teleport-diagram b { grid-column: 1; grid-row: 2; font-size: 22px; }
.rules-two-column .teleport-diagram span:last-child { grid-column: 2; grid-row: 2; }
.rules-two-column .teleport-reference { display: grid; grid-column: 2; grid-row: 1 / span 3; align-self: center; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.rules-two-column .teleport-reference img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid rgba(220,238,244,.32); }
.rules-two-column .rules-caption { grid-column: 1; margin: 12px 0 0; color: #ffffff !important; font-size: 16px !important; font-weight: 450; line-height: 1.48; }
.app-view[data-route="zasady"] .rules-two-column > article.card,
.app-view[data-route="zasady"] .rules-two-column .rules-recovery { background: linear-gradient(145deg, rgba(17, 34, 51, .91), rgba(8, 16, 26, .82)) !important; }
.app-view[data-route="zasady"] .rules-two-column > article.card:not(.rules-goal-card) {
  background: transparent !important;
}
.rules-two-column .rules-recovery > p { color: #ffffff !important; }
.rules-two-column .rules-recovery .rules-caption { font-size: 16px !important; }
.rules-recovery-grid { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rules-recovery-grid .rules-recovery { min-height: 0; padding: 22px 28px !important; background: rgba(6, 18, 30, .62); }
.rules-recovery-grid .eyebrow { margin: 0 0 16px !important; color: #bd7b13 !important; font-size: 15px !important; font-weight: 900 !important; line-height: 1.15 !important; letter-spacing: .10em !important; }
.rules-recovery-grid h2 { margin: 0 0 16px !important; color: #ffffff !important; font-size: 30px !important; line-height: 1.1; }
.rules-recovery-grid > article > p { margin: 0; color: #ffffff !important; font-size: 16px !important; font-weight: 450; line-height: 1.48 !important; }
.rules-recovery-grid .rules-caption { margin-top: 12px !important; }
.mode-card p { color: #ffffff !important; }
.mode-card .savant-chess-label { min-height: 0; margin-top: 10px; color: #ff5c5c !important; font-size: 10px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; animation: savant-chess-pulse 1.65s ease-in-out infinite; }
.rules-scoring-corner { width: 270px; min-height: 270px; padding: 20px !important; flex-direction: column; justify-content: center; border: 1px solid rgba(220,238,244,.28); }
.rules-scoring-corner .eyebrow { margin: 0 0 16px !important; color: #bd7b13 !important; font-size: 15px !important; font-weight: 900; line-height: 1.15; letter-spacing: .10em; text-shadow: 0 0 12px rgba(189,123,19,.20); }
.rules-scoring-corner .rules-score-table td { padding: 5px 0; color: #ffffff; font-size: 14px; }
.rules-scoring-corner .rules-score-table td:last-child { padding-left: 10px; color: #ffffff; font-size: 14px; font-weight: 900; }
.piece-power-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.piece-power-grid .piece-power { display: grid; min-height: 138px; aspect-ratio: auto; grid-template-columns: 62px minmax(0, 1fr); align-items: start; gap: 13px; padding: 17px; }
.piece-power-grid .piece-power .piece-figure { width: 58px; height: 58px; margin: 0; border: 0; background: transparent; }
.piece-power-grid .piece-power h3 { margin: 2px 0 7px; font-size: 18px; }
.piece-power-grid .piece-power p { margin: 0; font-size: 13px; line-height: 1.5; }
.piece-power-grid .piece-power .piece-power-label { color: #7d94a7; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.piece-rule { display: flex; min-height: 0; aspect-ratio: 1 / 1; flex-direction: column; justify-content: center; border-color: rgba(255,255,255,.72); background: transparent !important; }
.piece-rule .piece-figure { display: grid; width: min(82%, 190px); height: auto; aspect-ratio: 1 / 1; margin: 0 auto 15px; place-items: center; border: 1px solid rgba(255,255,255,.78); background: transparent; }
.piece-rule .piece-figure canvas { display: block; width: 100%; height: 100%; }
.piece-rule .piece-figure + h3, .piece-rule .piece-figure ~ p { text-align: center; }
.teleport-diagram i { width: 78px; height: 78px; clip-path: none; border: 1px solid rgba(220,238,244,.22); background-color: #142637; background-image: url("assets/board-reference.jpg"); background-repeat: no-repeat; background-size: 520%; background-position: 50% 52%; color: transparent; }
.teleport-diagram span { color: #c5d8df; }
.strategic-mini-grid span { position: relative; overflow: hidden; border-color: rgba(220,238,244,.22); background-color: #142637; background-image: url("assets/board-reference.jpg"); background-repeat: no-repeat; background-size: 330%; color: transparent; }
.strategic-mini-grid span:nth-child(1) { background-position: 50% 12%; }
.strategic-mini-grid span:nth-child(2) { background-position: 12% 50%; }
.strategic-mini-grid span:nth-child(3) { background-position: 50% 88%; }
.strategic-mini-grid span { font-size: 0; }
.strategic-mini-grid span { background-color: rgba(8,22,36,.44); background-image: none; }
.strategic-mini-grid .strategic-symbol-canvas { display: none; }
.strategic-mini-grid .strategic-symbol-canvas { position: absolute; z-index: 0; top: 7px; left: 50%; display: block; width: 88px; height: 74px; transform: translateX(-50%); }
.strategic-mini-grid span b, .strategic-mini-grid span small { position: relative; z-index: 1; padding: 2px 5px; background: rgba(4,15,29,.72); color: #edf7fa; }
.strategic-mini-grid span small { color: #b7cbd3; }
.strategic-mini-grid .strategic-symbol-canvas { display: none !important; }
.app-view[data-route="zasady"] .rules-intro > div > p.eyebrow,
.app-view[data-route="zasady"] .rules-movement-card > p.eyebrow,
.app-view[data-route="zasady"] .rules-goal-card > p.eyebrow,
.app-view[data-route="zasady"] .rules-two-column > article.card > p.eyebrow,
.app-view[data-route="zasady"] .rules-scoring-corner > p.eyebrow {
  margin: 0 0 16px !important;
  color: #bd7b13 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: .10em !important;
  text-shadow: 0 0 12px rgba(189,123,19,.20) !important;
}
.app-view[data-route="zasady"] .rules-recovery-grid > article.rules-recovery > p.eyebrow {
  margin: 0 0 16px !important;
  color: #bd7b13 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: .10em !important;
  text-shadow: 0 0 12px rgba(189,123,19,.20) !important;
}

.privacy-admin-card {
  max-width: 1120px;
  margin: 0 auto 22px;
  padding: 24px 28px !important;
}
.privacy-admin-card .eyebrow { margin: 0 0 10px; color: #d7c55e; }
.privacy-admin-card h2 { margin: 0 0 8px; color: #ffffff; font-size: 25px; }
.privacy-admin-card p { margin: 4px 0; color: #d7e4e9; font-size: 15px; line-height: 1.45; }
.privacy-admin-card a { color: #d7c55e; }

.legal-hub-grid { display: grid; max-width: 1120px; margin: 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.legal-hub-card { min-height: 260px; padding: 30px !important; text-align: left; cursor: pointer; }
.legal-hub-card .eyebrow { margin: 0 0 16px; color: #d7c55e; }
.legal-hub-card h2 { margin: 0 0 14px; color: #ffffff; font-size: 27px; }
.legal-hub-card p { max-width: 42ch; margin: 0; color: #d7e4e9; font-size: 16px; line-height: 1.5; }
.legal-hub-card span { display: block; margin-top: 26px; color: #d7c55e; font-weight: 800; }

body:has(.app-view[data-route="informacje"]) .topbar::after,
body:has(.app-view[data-route="regulamin"]) .topbar::after,
body:has(.app-view[data-route="prywatnosc"]) .topbar::after,
body:has(.app-view[data-route="subscription"]) .topbar::after {
  content: none !important;
  display: none !important;
}
.collection-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1180px; margin: 0 auto; gap: 18px; }.collection-single { min-width: 0; }.collection-single--box { grid-column: 1 / -1; display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; justify-content: stretch; gap: 30px; padding: 0; overflow: hidden; }.collection-single--box figure { min-height: 205px; margin: 0; background: #0b1522; }.collection-single--box figure img { display: block; width: 100%; height: 100%; object-fit: cover; }.collection-single--box > div { align-self: center; padding: 30px 0; }.collection-single--box h2 { margin: 0 0 10px; color: #eef7fa; font-size: 28px; }.collection-single--box p { font-size: 20px; font-weight: 500; }.collection-single--box .button { align-self: center; margin-right: 30px; }
.collection-single--skins { justify-content: space-between; gap: 28px; }.collection-single--skins .button { flex: 0 0 auto; }
.skin-shop-intro { max-width: 1180px; margin: 0 auto 18px; padding: 30px 34px; border: 1px solid rgba(220,238,244,.16); background: rgba(7,22,42,.78); }
.skin-shop-intro .eyebrow { margin: 0 0 9px; color: #d7c55e; }.skin-shop-intro h2 { margin: 0; color: #f2f7f9; font-size: 36px; }.skin-shop-intro p:last-child { margin: 10px 0 0; color: #b7cbd3; font-size: 18px; }
.skin-shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1180px; margin: 0 auto 18px; gap: 18px; }
.skin-store-card { display: grid; grid-template-columns: minmax(190px, .9fr) minmax(220px, 1.1fr); min-height: 270px; overflow: hidden; border: 1px solid rgba(220,238,244,.18); background: rgba(7,22,42,.82); }
.skin-store-preview { min-height: 270px; background-image: url('assets/army-skins-v1.png'); background-size: 200% 200%; background-repeat: no-repeat; box-shadow: inset -12px 0 20px rgba(2,10,20,.36); }
.skin-store-preview--0 { background-position: left top; }.skin-store-preview--1 { background-position: right top; }.skin-store-preview--2 { background-position: left bottom; }.skin-store-preview--3 { background-position: right bottom; }
.skin-store-preview--history { display: grid; overflow: hidden; place-items: center; background: #0b1625; }.skin-store-preview--history img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.skin-store-copy { display: flex; min-width: 0; padding: 27px; flex-direction: column; align-items: flex-start; justify-content: center; }.skin-store-copy h2 { margin: 0; color: #f2f7f9; font-size: 30px; line-height: 1.05; }.skin-store-copy p { margin: 12px 0 22px; color: #b7cbd3; font-size: 17px; }.skin-store-copy .button { margin-top: auto; }
.skin-store-badge { display: inline-block; margin: 0 0 15px; padding: 5px 8px; border: 1px solid rgba(215,197,94,.65); color: #d7c55e; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.account-skins { max-width: 1180px; margin: 18px auto; padding: 28px; border: 1px solid rgba(220,238,244,.16); background: rgba(7,22,42,.78); }.account-skins-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.account-skins-heading .eyebrow { margin: 0 0 8px; color: #d7c55e; }.account-skins-heading h2 { margin: 0; color: #f2f7f9; font-size: 30px; }.account-skins-heading p:last-of-type { margin: 8px 0 0; color: #b7cbd3; }.account-skins-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 24px; gap: 14px; }.account-skin { position: relative; min-height: 195px; overflow: hidden; padding: 0; border: 1px solid rgba(220,238,244,.17); background: #0b1625; color: #fff; text-align: left; cursor: pointer; }.account-skin img, .account-skin-preview { display: block; width: 100%; height: 153px; object-fit: cover; object-position: top; background-image: url('assets/army-skins-v1.png'); background-size: 200% 200%; }.account-skin-preview--0 { background-position: left top; }.account-skin-preview--1 { background-position: right top; }.account-skin > span { display: block; padding: 12px; font-size: 16px; font-weight: 800; }.account-skin > b { position: absolute; top: 8px; right: 8px; padding: 4px 6px; background: #d7c55e; color: #07162a; font-size: 10px; letter-spacing: .08em; }.account-skin.is-selected { border-color: #d7c55e; box-shadow: inset 0 0 0 1px rgba(215,197,94,.48); }
.app-view[data-route="panel"] .command-primary h2, .app-view[data-route="panel"] .journey-card h2 { color: #f2f7f9; font-size: 30px; line-height: 1.12; }.app-view[data-route="panel"] .command-primary > p:not(.eyebrow), .app-view[data-route="panel"] .journey-card p { color: #b7cbd3; font-size: 18px; line-height: 1.45; }.app-view[data-route="panel"] .journey-card small, .app-view[data-route="panel"] .account-triangle p, .app-view[data-route="panel"] .account-triangle small { color: #b7cbd3; font-size: 15px; }.app-view[data-route="panel"] .account-triangle b { color: #f2f7f9; font-size: 44px; }
.box-shop { grid-template-columns: minmax(280px, .85fr) minmax(360px, 1.15fr); max-width: 1080px; margin: 0 auto; border: 1px solid rgba(220,238,244,.16); background: rgba(7,22,42,.78); box-shadow: none; }
.box-shop figure { min-height: 325px; border-right: 1px solid rgba(220,238,244,.16); background: #fff; }.box-shop article { padding: 34px; background: rgba(7,22,42,.78); }.box-shop h2 { color: #eef7fa; font-size: 42px; }.box-shop article > p:not(.eyebrow), .box-shop dt { color: #b7cbd3; }.box-shop dd { color: #eef7fa; }.box-shop dl div { border-color: rgba(220,238,244,.16); }.box-promise { max-width: 1080px; margin: 18px auto 0; border-color: rgba(220,238,244,.16); background: rgba(7,22,42,.78); box-shadow: none; }.box-promise p, .box-promise strong { color: #eef7fa; }
.box-rules-link { display: grid; width: 46px; height: 46px; padding: 0 !important; place-items: center; border: 0 !important; background: transparent !important; }.box-rules-link .action-triangle { width: 20px; height: 20px; margin: 0; }
.ranking-view { display: grid; max-width: 1220px; gap: 18px; }
.subscription-cancel-note { margin: 0; text-align: center; color: #ffffff; font-size: 16px; line-height: 1.45; }
.page-scroll-control { position: fixed; z-index: 30; top: 50%; right: 18px; display: grid; width: 34px; grid-template-rows: 34px 66px 34px; transform: translateY(-50%); border: 1px solid rgba(220,238,244,.2); background: rgba(4,15,29,.76); backdrop-filter: blur(8px); }
.modal-layer { z-index: 100 !important; overflow-y: auto; }
.auth-modal { max-height: calc(100vh - 42px); }
.page-scroll-control button { display: grid; padding: 0; place-items: center; border: 0; background: transparent; color: #cfe7ef; cursor: pointer; transition: background .18s ease, color .18s ease; }
.page-scroll-control button:hover, .page-scroll-control button:focus-visible { background: rgba(34,157,193,.24); color: #fff; outline: 0; }
.page-scroll-control button span { font-size: 10px; line-height: 1; }
.page-scroll-track { position: relative; display: block; margin: 8px 15px; background: rgba(220,238,244,.24); cursor: ns-resize; }
.page-scroll-track b { position: absolute; top: 0; left: -3px; width: 7px; min-height: 16px; background: #77c7dc; box-shadow: 0 0 10px rgba(119,199,220,.45); pointer-events: none; }
.ranking-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 0 2px; border-bottom: 1px solid rgba(220,238,244,.16); }
.ranking-toolbar .eyebrow { margin: 0; color: #b7cbd3; }
.ranking-toolbar .filter-row { flex-wrap: wrap; justify-content: flex-end; }
.ranking-toolbar .filter { border-color: rgba(220,238,244,.16); background: rgba(7,22,42,.56); color: #b7cbd3; }
.ranking-toolbar .filter.active { border-color: rgba(113,194,216,.42); background: rgba(15,61,88,.5); color: #eef7fa; }
.ranking-podium { max-width: none; gap: 12px; margin: 0; }
.podium-card, .podium-card--first { position: relative; min-height: 112px; border-color: rgba(220,238,244,.16) !important; background: rgba(7,22,42,.68) !important; box-shadow: none; }
.podium-card--first { min-height: 126px; }
.podium-card span, .podium-card--first span { background: rgba(113,194,216,.12) !important; color: #d7edf3 !important; }
.podium-card .podium-place { position: absolute; top: 12px; left: 12px; display: grid; width: 24px; height: 24px; margin: 0; place-items: center; font-size: 11px; }
.podium-card img { width: 56px; height: 56px; margin: 0 0 9px; border: 1px solid rgba(220,238,244,.22); border-radius: 50%; object-fit: cover; filter: saturate(.72) contrast(1.05); }
.podium-card--first img { width: 66px; height: 66px; }
.podium-card small { color: #b7cbd3; }
.ranking-layout { gap: 18px; }
.ranking-spotlight { display: grid; grid-template-columns: minmax(210px, .82fr) minmax(330px, 1.18fr) minmax(360px, 1.35fr); gap: 16px; margin: 0 0 20px; }
.ranking-identity, .ranking-kpis, .ranking-achievements { border: 1px solid rgba(220,238,244,.16); background: rgba(7,22,42,.78); }
.ranking-identity { display: grid; justify-items: center; align-content: start; min-height: 254px; padding: 24px; text-align: center; }
.ranking-avatar { display: grid; width: 96px; height: 96px; margin-bottom: -14px; place-items: center; border: 2px solid #3179d5; background: radial-gradient(circle at 35% 25%, #294c77, #111b31 68%); color: #dceaf0; font-size: 42px; font-weight: 800; }
.ranking-tier { z-index: 1; padding: 8px 28px; background: #2d70cd; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.ranking-identity h2 { margin: 22px 0 8px; color: #fff; font-size: 28px; letter-spacing: .04em; }
.ranking-identity p { margin: 0; color: #91a7b7; font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.ranking-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 254px; }
.ranking-kpis article { min-height: 112px; padding: 22px 12px; border-left: 1px solid rgba(220,238,244,.16); text-align: center; }
.ranking-kpis article:first-child { border-left: 0; }.ranking-kpis span { display: block; margin-bottom: 14px; color: #95a8b4; font-size: 11px; font-weight: 800; letter-spacing: .1em; }.ranking-kpis b { color: #fff; font-size: 38px; }.ranking-kpis article:first-child b { color: #2d70cd; }
.ranking-achievements { padding: 20px; }.ranking-achievements header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }.ranking-achievements h3 { margin: 0; color: #fff; font-size: 17px; letter-spacing: .12em; }.ranking-achievements .text-action { min-height: 0; padding: 0; border: 0 !important; color: #2d70cd !important; font-size: 13px !important; }.ranking-achievements article { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: center; min-height: 78px; padding: 11px 0; border-top: 1px solid rgba(220,238,244,.12); }.achievement-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(49,121,213,.72); background: rgba(33,75,130,.42); font-size: 29px; }.achievement-icon--fire { color: #ef5d56; }.achievement-icon--shield { color: #a55df2; }.ranking-achievements b { color: #fff; font-size: 14px; }.ranking-achievements p { margin: 4px 0 0; color: #93a6b2; font-size: 12px; line-height: 1.35; }
.ranking-table-card, .commander-card { border-color: rgba(220,238,244,.16) !important; background: rgba(7,22,42,.68) !important; }
.rank-table tr.me { background: rgba(30,82,108,.24); }
.rank-table td, .rank-table th { border-color: rgba(220,238,244,.12); }
.rank-number, .rank-point { color: #d7edf3; }
.avatar--small, .commander-avatar { border-color: rgba(220,238,244,.22) !important; background: #10283a !important; box-shadow: none !important; color: #d7edf3 !important; }
.commander-card p, .mini-stat, .mini-stat strong { color: #b7cbd3 !important; }
@media (max-width: 720px) { .ranking-toolbar { align-items: flex-start; flex-direction: column; }.ranking-toolbar .filter-row { justify-content: flex-start; }.ranking-podium { grid-template-columns: 1fr; }.ranking-spotlight { grid-template-columns: 1fr; }.ranking-kpis { min-height: 0; }.page-scroll-control { right: 8px; width: 30px; grid-template-rows: 30px 52px 30px; } }
@media (max-width: 1050px) { .rules-top-grid { grid-template-columns: minmax(0, 1fr) 280px; }.rules-scoring-corner { grid-column: span 2; min-height: 0; }.collection-stack, .skin-shop-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .skin-shop-intro { padding: 22px; }.skin-shop-intro h2 { font-size: 28px; }.skin-store-card { grid-template-columns: 1fr; }.skin-store-preview { min-height: 220px; }.skin-store-copy { padding: 22px; }.skin-store-copy h2 { font-size: 27px; }.collection-single--box { grid-template-columns: 1fr; gap: 0; }.collection-single--box figure { min-height: 180px; }.collection-single--box > div { padding: 22px; }.collection-single--box .button { justify-self: start; margin: 0 22px 22px; }.account-skins { padding: 22px; }.account-skins-heading { align-items: start; flex-direction: column; }.account-skins-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.account-skin { min-height: 165px; }.account-skin img, .account-skin-preview { height: 125px; } }
@media (max-width: 850px) { .mode-grid--variations, .play-live-grid { grid-template-columns: 1fr; }.rules-top-grid { grid-template-columns: 1fr; }.rules-intro { grid-template-columns: 1fr; }.rules-board-gallery { grid-template-columns: 1fr 1fr 1fr; max-width: 390px; }.rules-mini-board { width: 100%; height: auto; aspect-ratio: 1 / 1; }.rules-scoring-corner { grid-column: auto; } }
@media (max-width: 850px) { .rules-movement-reference { width: 100%; height: 185px; background-size: 290% auto; } }
@media (max-width: 1050px) { .piece-power-grid { grid-template-columns: 1fr; }.piece-power-grid .piece-power { min-height: 104px; } }
@media (max-width: 1050px) {
  .topbar { display: grid; grid-template-columns: 1fr; padding: 0 20px; }.topbar-status { grid-column: 1; position: static; display: flex; justify-content: flex-end; padding: 8px 0 0; transform: none; }.top-nav { grid-column: 1; justify-content: flex-start; overflow-x: auto; }
  .top-nav button { flex: 0 0 auto; padding: 0 10px; }.app-view { padding: 26px 20px 42px; }
}

/* Mobile command layout: touch targets remain easy to hit and the board fits one phone screen. */
@media (max-width: 620px) {
  html, body { overscroll-behavior-y: none; }
  .desktop-shell { display: block; min-height: 100dvh; }
  .topbar { position: sticky; top: 0; z-index: 80; padding: 0 12px 10px; }
  .top-nav { gap: 0; width: 100%; padding-top: 4px; scrollbar-width: none; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav button { min-height: 42px; padding: 0 12px; font-size: 13px; }
  .topbar-status { justify-content: space-between; gap: 7px; padding-top: 6px; }
  .language-picker { gap: 6px; font-size: 12px; }
  .language-choice { min-width: 38px; min-height: 34px; }
  .icon-button { min-width: 42px; min-height: 34px; }
  .profile-chip > span:last-of-type, .profile-chip em { display: none; }
  .profile-chip { min-width: 42px; min-height: 34px; justify-content: center; }
  .sidebar { display: none; }
  .app-view { min-height: calc(100dvh - 101px); padding: 16px 12px 32px; }
  .view-header { gap: 14px; margin-bottom: 18px; }
  .view-title { font-size: clamp(28px, 9vw, 38px); }
  .view-subtitle { font-size: 16px; }
  .card, .mode-card, .lobby-card, .entry-card, .journey-card, .player-setup { border-radius: 0; }
  button, .button, .blade-button, .filter, .time-choice { min-height: 44px; }
  .game-stage { width: 100%; overflow: hidden; }
  .game-stage iframe { width: 100%; height: min(78dvh, 720px) !important; }
  .page-scroll-control { display: none; }
}
/* Legal pages use a quiet document treatment without the multicolour markers. */
body:has(.app-view[data-route="informacje"]) .view-header::after,
body:has(.app-view[data-route="regulamin"]) .view-header::after,
body:has(.app-view[data-route="prywatnosc"]) .view-header::after,
body:has(.app-view[data-route="informacje"]) .view-header .eyebrow::before,
body:has(.app-view[data-route="regulamin"]) .view-header .eyebrow::before,
body:has(.app-view[data-route="prywatnosc"]) .view-header .eyebrow::before,
body:has(.app-view[data-route="informacje"]) .view-header .eyebrow::after,
body:has(.app-view[data-route="regulamin"]) .view-header .eyebrow::after,
body:has(.app-view[data-route="prywatnosc"]) .view-header .eyebrow::after {
  content: none !important;
  display: none !important;
}

body:has(.app-view[data-route="subscription"]) .view-header::after,
body:has(.app-view[data-route="subscription"]) .view-header .eyebrow::before,
body:has(.app-view[data-route="subscription"]) .view-header .eyebrow::after {
  content: none !important;
  display: none !important;
}

body:has(.app-view[data-route="checkout"]) .view-header::after,
body:has(.app-view[data-route="checkout"]) .view-header .eyebrow::before,
body:has(.app-view[data-route="checkout"]) .view-header .eyebrow::after,
body:has(.app-view[data-route="checkout"]) .card .eyebrow::before,
body:has(.app-view[data-route="checkout"]) .card .eyebrow::after {
  content: none !important;
  display: none !important;
}

/* Subscription plans follow the same neutral card system as the rest of the portal. */
.pass-card, .pass-card--0, .pass-card--1, .pass-card--2 {
  border: 1px solid rgba(220,238,244,.16) !important;
  background: rgba(7,22,42,.78) !important;
  box-shadow: none !important;
}
.pass-card::after { content: none !important; display: none !important; }
.pass-card > span, .pass-card h2, .pass-card p, .pass-card small, .pass-card button, .service-note { color: #edf7fa !important; }
.pass-card button { text-decoration-color: #d7c55e !important; }
.pass-card > span { font-size: 14px !important; }
.pass-card p { font-size: 19px !important; }
.pass-card small, .pass-card button { font-size: 14px !important; }

.checkout-layout { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px; margin-bottom:22px; }
.checkout-options { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; }
.checkout-options button { min-height:106px; padding:16px; border:1px solid rgba(220,238,244,.22); background:rgba(7,22,42,.72); color:#edf7fa; text-align:left; }
.checkout-options button:hover { border-color:rgba(240,220,107,.78); background:rgba(20,37,59,.82); }
.checkout-options b, .checkout-options span { display:block; }
.checkout-options b { margin-bottom:8px; color:#f0dc6b; font-size:15px; }
.checkout-options span { font-size:15px; }
@media (max-width: 820px) { .checkout-layout, .checkout-options { grid-template-columns:1fr; } }

/* Skin catalogue: a single blue row, Hetman / King / soldier. */
.skin-store-preview--history,.account-skin-row{position:relative;display:block!important;overflow:hidden;aspect-ratio:3 / 1;min-height:0!important;height:auto!important;align-self:center;background:#0b1625}
.skin-store-preview--history img,.account-skin-row img{position:absolute;inset:0 auto auto 0;display:block;width:100%!important;height:auto!important;max-width:none;object-fit:initial!important;object-position:top;background:none!important}

.rule-event-highlight{scroll-margin-top:90px;outline:3px solid #ff951a;animation:rule-event-pulse 1.5s ease-in-out infinite}@keyframes rule-event-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,149,26,.15)}50%{box-shadow:0 0 24px 5px rgba(255,149,26,.65)}}@media(prefers-reduced-motion:reduce){.rule-event-highlight{animation:none}}

.sound-menu{z-index:10000!important;pointer-events:auto!important}.sound-menu button{pointer-events:auto!important;cursor:pointer}

.sound-menu header button{font-size:30px!important;width:52px;min-height:48px;padding:6px!important;line-height:1!important}

.sound-menu{width:340px!important;max-width:calc(100vw - 28px)}.sound-theme b{font-size:17px!important}.sound-theme small{font-size:13px!important}.sound-theme{min-height:66px}.sound-confirm{min-height:48px;background:#ff951a;color:#06101c;font-size:17px;font-weight:800}

@media(min-width:1101px){.topbar{grid-template-columns:minmax(0,1fr) auto!important;padding-left:16px!important;column-gap:20px}.top-nav{grid-column:1!important;justify-self:start;justify-content:flex-start!important}.topbar-status{grid-column:2!important}}

.skin-store-preview--history::after,.account-skin-row::after{content:"";position:absolute;left:33.3333%;top:0;width:33.3334%;height:100%;background:rgba(0,0,0,.32);mix-blend-mode:multiply;pointer-events:none}
.top-nav{justify-content:flex-start!important;justify-self:start!important;margin-left:0!important;margin-right:auto!important;grid-column:1!important}.topbar{grid-template-columns:minmax(0,1fr) auto!important;padding-left:16px!important;column-gap:16px}.topbar-status{grid-column:2!important}@media(max-width:1100px){.topbar{grid-template-columns:minmax(0,1fr)!important}.topbar-status{grid-column:1!important;justify-self:end}.top-nav{width:100%;grid-row:1}}
.modal-layer{z-index:20000!important;overflow-y:auto;pointer-events:auto}.auth-modal{overflow-y:auto!important;max-height:calc(100dvh - 32px)!important}.auth-form{min-width:0}.auth-form input,.auth-form button{pointer-events:auto!important}.auth-form .close{min-width:44px;min-height:44px}@media(max-width:650px){.modal-layer{padding:12px}.auth-modal{grid-template-columns:1fr;min-height:0}.auth-art{display:none}.auth-form{padding:20px}}
.auth-status{min-height:1.35em;margin:10px 0;color:#b8c8d3;font-size:14px;font-weight:700}.auth-status.is-pending{color:#f2c34b}.auth-status.is-success{color:#73d69b}.auth-status.is-error{color:#ff8f8f}.auth-back{display:block;margin:18px auto 0;border:0;background:transparent;color:#dce9f2;font:inherit;font-size:14px;font-weight:750;cursor:pointer}.auth-back:hover{color:#f2c34b}
.auth-form{background:#06111e;color:#edf7ff}.auth-form h2{font-size:32px!important;color:#fff!important}.auth-form p,.auth-form .field label,.auth-form .check-line{color:#d4e6f2!important;font-size:16px!important;line-height:1.5}.auth-form .field input{min-height:52px;font-size:18px!important;color:#fff!important;background:#0c2235!important;border-color:rgba(180,225,245,.55)!important}.auth-form .button{min-height:58px;font-size:20px!important;background:#142b40!important;color:#fff!important;border-color:#92d9ff!important}.auth-switch{font-size:18px!important}.auth-switch button,.auth-adult-shortcut{color:#fff!important;font-size:18px!important;font-weight:900!important}.auth-adult-shortcut{display:block;width:100%;margin:18px 0 8px;padding:14px;border:1px solid #92d9ff;background:#102a40;text-align:center;cursor:pointer}.auth-back{font-size:17px!important}

/* Start: a compact, perspective tabletop battle.  Six centimetres keeps it
   visible on desktop without stealing the landing-page headline. */
.welcome-reference.welcome-battle-scene{position:absolute!important;top:38px;right:42px;display:block!important;width:6cm;height:6cm;margin:0!important;overflow:hidden!important;border:1px solid rgba(196,228,240,.5)!important;background:radial-gradient(circle at 50% 18%,rgba(100,188,220,.25),transparent 45%),#071524!important;box-shadow:0 20px 42px rgba(0,0,0,.52),inset 0 0 24px rgba(78,192,231,.16)!important;perspective:680px;isolation:isolate}.welcome-battle-scene::before{content:"GRUNWALD 1410";position:absolute;z-index:5;top:9px;left:10px;color:#eaf8ff;font-size:8px;font-weight:900;letter-spacing:.13em;text-shadow:0 1px 4px #000}.battle-perspective{position:absolute;inset:18px 7px 21px;transform:rotateX(50deg) rotateZ(-12deg);transform-style:preserve-3d}.battle-board-floor{position:absolute;inset:16px 6px 2px;display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);gap:2px;padding:3px;background:#b9d2da;box-shadow:0 11px 18px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.42)}.battle-board-floor i{display:block;background:linear-gradient(135deg,#257fb5 0 49%,#e2edf0 50% 52%,#cf3335 53% 100%);box-shadow:inset 0 0 8px rgba(255,255,255,.38)}.battle-board-floor i:nth-child(2n){background:linear-gradient(225deg,#4a956e 0 49%,#e2edf0 50% 52%,#e3c639 53% 100%)}.battle-piece{position:absolute;z-index:3;display:block;width:58px;height:58px;background-repeat:no-repeat;background-size:300% 400%;filter:drop-shadow(0 8px 4px rgba(0,0,0,.62));transform-style:preserve-3d}.battle-hetman{left:14px;bottom:18px;background-image:url("assets/skins/grunwald-v1.png");background-position:0 0;animation:grunwald-charge 5.8s cubic-bezier(.4,0,.2,1) infinite}.battle-king{right:17px;top:15px;background-image:url("assets/skins/teutonic-v1.png");background-position:50% 0;animation:teutonic-fall 5.8s ease-in infinite}.battle-knight{z-index:2;width:37px;height:37px;background-image:url("assets/skins/grunwald-v1.png");background-position:100% 0;opacity:.88}.battle-knight--one{left:8px;top:18px;animation:battle-guard-one 5.8s ease-in-out infinite}.battle-knight--two{right:30px;bottom:4px;animation:battle-guard-two 5.8s ease-in-out infinite}.battle-impact{position:absolute;z-index:4;right:43px;top:35px;color:#f7dc61;font-size:31px;opacity:0;transform:translateZ(28px);text-shadow:0 0 16px #ff9d32;animation:battle-impact 5.8s ease-in-out infinite}.welcome-battle-scene figcaption{position:absolute;z-index:5;right:9px;bottom:6px;margin:0;color:#e7f6ff;font-size:8px;font-weight:800;letter-spacing:.08em;text-shadow:0 1px 4px #000}@keyframes grunwald-charge{0%,18%{transform:translate3d(0,0,12px) rotateZ(0)}38%,54%{transform:translate3d(53px,-40px,32px) rotateZ(-4deg)}62%,100%{transform:translate3d(0,0,12px) rotateZ(0)}}@keyframes teutonic-fall{0%,34%{transform:translate3d(0,0,14px) rotateZ(0);opacity:1}42%,54%{transform:translate3d(20px,-2px,0) rotateZ(72deg);opacity:1}61%,100%{transform:translate3d(58px,8px,-12px) rotateZ(88deg);opacity:0}}@keyframes battle-impact{0%,34%{opacity:0;transform:scale(.4) translateZ(12px)}40%,48%{opacity:1;transform:scale(1.25) translateZ(32px)}56%,100%{opacity:0;transform:scale(1.7) translateZ(20px)}}@keyframes battle-guard-one{0%,40%,100%{transform:translateZ(4px)}55%{transform:translate3d(8px,3px,12px)}}@keyframes battle-guard-two{0%,38%,100%{transform:translateZ(3px)}53%{transform:translate3d(-9px,-2px,10px)}}@media(max-width:900px){.welcome-reference.welcome-battle-scene{position:relative!important;top:auto;right:auto;width:min(6cm,calc(100% - 36px));height:min(6cm,calc(100vw - 36px));margin:0 18px 22px!important}}
.launch-access-note{max-width:39rem;margin:16px 0 0;color:#f2d968;font-weight:800;line-height:1.45}.launch-access-card{margin:0 0 24px;padding:24px;border:1px solid rgba(242,217,104,.55);background:linear-gradient(115deg,rgba(18,43,66,.94),rgba(14,24,42,.9));box-shadow:inset 0 0 40px rgba(242,217,104,.06)}.launch-access-card h2{margin:7px 0 10px;color:#f2d968}.launch-access-card p{max-width:62ch;color:#e5edf4}.launch-access-card .button{margin-top:8px}
/* Final square 3D battle panel on the Start screen. */
.welcome-reference.welcome-battle-scene {
  position: absolute !important;
  top: 38px !important;
  right: 42px !important;
  width: 454px !important;
  height: 454px !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  isolation: isolate;
  background: #06111c;
  display: block !important;
}
.welcome-reference.welcome-battle-scene img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  animation: battleCameraDrift 8s ease-in-out infinite alternate;
}
.welcome-reference.welcome-battle-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(228, 165, 58, .58);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, .45);
}
.welcome-reference.welcome-battle-scene figcaption {
  position: absolute !important;
  z-index: 2;
  right: 8px;
  bottom: 7px;
  margin: 0 !important;
  padding: 3px 6px;
  color: #fff;
  background: rgba(4, 11, 18, .7);
  font-size: 9px !important;
  letter-spacing: .12em;
}
@keyframes battleCameraDrift {
  from { transform: scale(1.02) translate3d(-1%, 0, 0); }
  to { transform: scale(1.12) translate3d(1%, -1%, 0); }
}
@media (max-width: 900px) {
  .welcome-reference.welcome-battle-scene {
    position: relative !important;
    inset: auto !important;
    width: min(100%, 454px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 22px auto 0 !important;
  }
}

/* Animated HETMAN-board scene: the board is the game's own board, not a proxy. */
.welcome-battle-scene::before { content: none !important; }
.welcome-battle-scene .hetman-mini-board {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #101c20;
}
.welcome-battle-scene .hetman-mini-board__surface {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.09) rotateX(3deg);
  filter: contrast(1.04) saturate(.92) brightness(.76);
}
.welcome-battle-scene .mini-piece {
  position: absolute;
  z-index: 2;
  display: block;
  background-repeat: no-repeat;
  background-size: 300% 400%;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, .7));
  mix-blend-mode: screen;
  transform-origin: 50% 75%;
}
.welcome-battle-scene .mini-piece--grunwald-hetman {
  left: 14%;
  bottom: 15%;
  width: 48%;
  height: 48%;
  background-image: url('assets/skins/grunwald-v1.png');
  background-position: 0 0;
  animation: hetmanCharge 6s cubic-bezier(.45, .03, .25, 1) infinite;
}
.welcome-battle-scene .mini-piece--teutonic-king {
  right: 13%;
  top: 17%;
  width: 36%;
  height: 36%;
  background-image: url('assets/skins/teutonic-v1.png');
  background-position: 50% 0;
  animation: teutonicKingFalls 6s ease-in infinite;
}
.welcome-battle-scene .mini-piece--grunwald-knight {
  left: 7%;
  top: 18%;
  width: 23%;
  height: 23%;
  background-image: url('assets/skins/grunwald-v1.png');
  background-position: 100% 0;
  animation: guardShift 6s ease-in-out infinite;
}
.welcome-battle-scene .mini-piece--teutonic-knight {
  right: 9%;
  bottom: 9%;
  width: 22%;
  height: 22%;
  background-image: url('assets/skins/teutonic-v1.png');
  background-position: 100% 0;
  animation: guardShift 6s .3s ease-in-out infinite reverse;
}
.welcome-battle-scene .mini-battle-impact {
  position: absolute;
  z-index: 3;
  top: 33%;
  right: 37%;
  color: #fff0a5;
  font: 900 34px/1 sans-serif;
  text-shadow: 0 0 12px #f29b30;
  animation: miniImpact 6s ease-in-out infinite;
}
@keyframes hetmanCharge {
  0%, 18%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  37%, 51% { transform: translate3d(52%, -42%, 0) scale(1.1); }
  64% { transform: translate3d(43%, -32%, 0) scale(1.05); }
}
@keyframes teutonicKingFalls {
  0%, 32% { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
  42%, 56% { transform: translate3d(30%, 13%, 0) rotate(50deg); opacity: 1; }
  67%, 100% { transform: translate3d(115%, 40%, 0) rotate(90deg); opacity: 0; }
}
@keyframes guardShift { 0%, 35%, 100% { transform: translate3d(0, 0, 0); } 52% { transform: translate3d(10%, -6%, 0); } }
@keyframes miniImpact { 0%, 34%, 100% { opacity: 0; transform: scale(.4); } 41%, 49% { opacity: 1; transform: scale(1.15); } 58% { opacity: 0; transform: scale(1.55); } }
