/*
 * WordPress theme isolation.
 * Restore the same browser defaults used by the standalone SOURCE before
 * applying the original RT Protocol rules. The ID selector intentionally
 * outranks global theme rules for buttons, headings, form fields and media.
 */
#rtp-app{all:initial}
#rtp-app :where(*){all:revert}
/*
 * RT Protocol
 * Copyright © 2026 RT Protocol.
 * Original user-interface styling and layout.
 * Unauthorized copying, redistribution, republication or derivative use is prohibited without permission.
 * Third-party trademarks and game materials remain the property of their respective rights holders.
 * See LICENSE.txt.
 */

#rtp-app{
  --bg:#080b0e;
  --bg-2:#0d1115;
  --panel:#11171c;
  --panel-2:#151d23;
  --panel-3:#1a242c;
  --line:#2b3740;
  --line-soft:#202a31;
  --text:#f4f7f9;
  --muted:#94a3ad;
  --blue:#3a81bd;
  --blue-2:#69a8dc;
  --blue-dark:#1d4f79;
  --red:#b74046;
  --red-2:#ee6b70;
  --red-dark:#6c252a;
  --green:#56b879;
  --yellow:#d6a956;
  --radius:18px;
  --radius-sm:12px;
  --shadow:0 18px 55px rgba(0,0,0,.32);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color-scheme:dark;
}
#rtp-app *{box-sizing:border-box}
#rtp-app{background:var(--bg);scroll-behavior:smooth}
#rtp-app{margin:0;min-height:100vh;color:var(--text);background:
  radial-gradient(circle at 84% -10%,rgba(58,129,189,.17),transparent 35%),
  radial-gradient(circle at 0 35%,rgba(58,129,189,.07),transparent 24%),
  linear-gradient(180deg,#0b0f12 0%,#070a0d 100%);}
#rtp-app:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.15;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:32px 32px;mask-image:linear-gradient(to bottom,black,transparent 75%)}
#rtp-app button,#rtp-app input,#rtp-app select{font:inherit}
#rtp-app button{color:inherit}
#rtp-app button:focus-visible,#rtp-app input:focus-visible,#rtp-app select:focus-visible{outline:2px solid var(--blue-2);outline-offset:2px}
#rtp-app .app-shell{width:min(1460px,100%);margin:auto;padding:0 22px 54px}
#rtp-app .topbar{height:82px;display:flex;align-items:center;border-bottom:1px solid var(--line-soft);gap:14px;position:sticky;top:0;z-index:40;background:rgba(8,11,14,.86);backdrop-filter:blur(18px)}
#rtp-app .brand-button{border:0;background:transparent;padding:5px;cursor:pointer}#rtp-app .brand-logo{width:58px;height:58px;object-fit:contain}#rtp-app .brand-copy{display:flex;flex-direction:column;gap:2px}#rtp-app .brand-copy strong{font-size:15px;letter-spacing:.16em}#rtp-app .brand-copy span{font-size:10px;letter-spacing:.18em;color:var(--muted)}#rtp-app .top-actions{margin-left:auto;display:flex;gap:8px}#rtp-app .icon-btn{width:43px;height:43px;border:1px solid var(--line);border-radius:12px;background:var(--panel);cursor:pointer;font-weight:900}#rtp-app .icon-btn:hover{border-color:var(--blue);background:var(--panel-2)}
#rtp-app .stepper{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:18px 0 24px;position:sticky;top:82px;z-index:35;background:linear-gradient(var(--bg) 70%,transparent)}
#rtp-app .step{position:relative;min-height:54px;border:1px solid var(--line-soft);background:#0c1115;border-radius:14px;color:#677680;display:flex;align-items:center;justify-content:center;gap:10px;font-weight:800;letter-spacing:.08em;cursor:pointer;transition:.18s}#rtp-app .step b{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#192128;color:#84939d;font-size:12px}#rtp-app .step span{font-size:11px}#rtp-app .step.active{color:#fff;border-color:rgba(58,129,189,.7);background:linear-gradient(180deg,rgba(58,129,189,.16),rgba(58,129,189,.06));box-shadow:inset 0 0 0 1px rgba(58,129,189,.09)}#rtp-app .step.active b{background:var(--blue);color:white}#rtp-app .step.done{color:#aeb8bf}#rtp-app .step.done b{background:#27343d;color:#fff}
#rtp-app .view{display:none;animation:fade .18s ease}#rtp-app .view.active{display:block}@keyframes fade{from{opacity:.2;transform:translateY(5px)}to{opacity:1;transform:none}}
#rtp-app .panel{background:linear-gradient(180deg,rgba(20,28,34,.98),rgba(13,18,22,.98));border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
#rtp-app .eyebrow{display:block;font-size:10px;letter-spacing:.19em;font-weight:900;color:var(--blue-2);text-transform:uppercase}#rtp-app .mission-hero{min-height:190px;padding:28px 34px;display:grid;grid-template-columns:minmax(280px,1fr) minmax(260px,.65fr);align-items:center;overflow:hidden;position:relative}#rtp-app .mission-hero:after{content:"";position:absolute;width:430px;height:430px;border:1px solid rgba(58,129,189,.12);border-radius:50%;right:-150px;top:-190px;box-shadow:0 0 0 38px rgba(58,129,189,.018),0 0 0 80px rgba(58,129,189,.012)}#rtp-app .official-logo-wrap{position:relative;z-index:1;display:flex;align-items:center}#rtp-app .official-logo{width:min(255px,90%);max-width:100%;height:auto;max-height:none;object-fit:contain;object-position:left center;image-rendering:auto;filter:drop-shadow(0 10px 16px rgba(0,0,0,.4))}#rtp-app .year-picker-wrap{position:relative;z-index:1;justify-self:end;min-width:310px}#rtp-app .year-picker-wrap .eyebrow{text-align:center;margin-bottom:11px}#rtp-app .segmented{display:flex;padding:5px;background:#080c0f;border:1px solid var(--line);border-radius:14px;gap:5px}#rtp-app .segmented button{flex:1;border:0;border-radius:10px;background:transparent;padding:13px 18px;color:#74848f;font-weight:950;cursor:pointer;transition:.18s}#rtp-app .year-picker button{font-size:26px;letter-spacing:.04em}#rtp-app .segmented button.active{color:white;background:linear-gradient(180deg,#448ec9,#286ca4);box-shadow:0 5px 20px rgba(58,129,189,.23)}
#rtp-app .section-heading{display:flex;justify-content:space-between;gap:28px;align-items:end;padding:37px 3px 18px}#rtp-app .section-heading h1,#rtp-app .setup-header h1{margin:5px 0 0;font-size:clamp(30px,4vw,49px);letter-spacing:-.04em}#rtp-app .section-heading p,#rtp-app .setup-header p{max-width:650px;margin:0;color:var(--muted);line-height:1.55}
#rtp-app .generator-grid{display:grid;grid-template-columns:minmax(330px,.75fr) minmax(480px,1.45fr);gap:18px}#rtp-app .generator-controls{padding:25px;display:flex;flex-direction:column;gap:17px}#rtp-app .field{display:flex;flex-direction:column;gap:8px}#rtp-app .field>span{font-size:10px;letter-spacing:.13em;font-weight:900;color:#b7c2c9}#rtp-app .field select,#rtp-app .field input{width:100%;min-height:51px;border:1px solid var(--line);border-radius:12px;background:#090e12;color:#fff;padding:0 14px;font-weight:750}#rtp-app .field select:hover,#rtp-app .field input:hover{border-color:#3c4d59}#rtp-app .field small{color:var(--muted);line-height:1.45}#rtp-app .compact-field{margin-top:18px}#rtp-app .btn{border:1px solid transparent;border-radius:12px;min-height:46px;padding:0 18px;font-weight:950;letter-spacing:.055em;cursor:pointer;transition:.16s}#rtp-app .btn:hover{transform:translateY(-1px)}#rtp-app .btn:active{transform:translateY(0)}#rtp-app .btn:disabled{opacity:.38;cursor:not-allowed;transform:none}#rtp-app .btn-xl{min-height:62px}#rtp-app .btn-primary{background:linear-gradient(180deg,#408ac6,#2a6da5);box-shadow:0 11px 26px rgba(58,129,189,.18);color:#fff}#rtp-app .btn-primary small{display:block;font-size:9px;letter-spacing:.04em;opacity:.72;margin-top:2px}#rtp-app .btn-play{background:#f3f6f8;color:#0b1115;border-color:#fff;box-shadow:0 10px 30px rgba(255,255,255,.1)}#rtp-app .btn-play:hover{background:white}#rtp-app .btn-ghost{background:#10171c;border-color:var(--line);color:#dfe7eb}#rtp-app .btn-danger{background:#551f24;border-color:#8c3239;color:#fff}#rtp-app .generation-status{font-size:12px;color:var(--muted);background:#0a0f13;border:1px dashed #2a3740;border-radius:10px;padding:12px 13px}
#rtp-app .mission-result{overflow:hidden}#rtp-app .map-frame{min-height:430px;background:#090d10;display:grid;place-items:center;border-bottom:1px solid var(--line);position:relative}#rtp-app .map-frame img{width:100%;height:100%;max-height:570px;object-fit:contain;padding:16px}#rtp-app .map-empty{display:grid;place-items:center;max-width:410px;padding:36px;text-align:center;color:var(--muted);gap:8px}#rtp-app .map-empty strong{font-size:18px;color:#dce4e9}#rtp-app .map-empty small{line-height:1.5}#rtp-app .map-grid-icon{font-size:64px;color:#34444f}#rtp-app .mission-key{padding:20px 24px 18px;border-top:1px solid var(--line-soft);border-bottom:1px solid var(--line-soft);background:linear-gradient(180deg,rgba(12,17,21,.92),rgba(10,14,18,.86))}#rtp-app .mission-key-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:14px}#rtp-app .mission-key-head h3{margin:4px 0 0;font-size:21px}#rtp-app .key-chip{border-color:rgba(243,112,60,.45)!important;background:rgba(243,112,60,.12)!important;color:#f68f63!important}#rtp-app .map-key-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}#rtp-app .map-key-card{margin:0;background:#0b1115;border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;box-shadow:0 10px 28px rgba(0,0,0,.28)}#rtp-app .map-key-card img{display:block;width:100%;height:100%;object-fit:cover;background:#f1f3f4}#rtp-app .map-key-card.single{max-width:620px}#rtp-app .map-key-note{margin-top:12px;color:var(--muted);font-size:12px;line-height:1.55}#rtp-app .mission-copy{padding:23px 25px 27px}#rtp-app .mission-copy h2{margin:14px 0 8px;font-size:26px}#rtp-app .mission-copy p{margin:0;color:var(--muted);line-height:1.6}#rtp-app .mission-tags{display:flex;flex-wrap:wrap;gap:7px}#rtp-app .chip,#rtp-app .year-badge,#rtp-app .privacy-pill{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;border:1px solid #31414c;background:#101820;color:#b9c8d1;font-size:10px;letter-spacing:.1em;font-weight:900}#rtp-app .chip:first-child,#rtp-app .year-badge{border-color:rgba(58,129,189,.5);background:rgba(58,129,189,.12);color:#87bde8}#rtp-app .continue-bar{position:sticky;bottom:14px;z-index:25;margin-top:20px;padding:15px 16px 15px 21px;border:1px solid #3b4a54;border-radius:16px;background:rgba(15,21,26,.94);backdrop-filter:blur(16px);display:flex;justify-content:space-between;align-items:center;box-shadow:0 20px 55px rgba(0,0,0,.45)}#rtp-app .continue-bar>div{display:flex;flex-direction:column}#rtp-app .continue-bar strong{font-size:14px}#rtp-app .continue-bar span{color:var(--muted);font-size:12px;margin-top:3px}#rtp-app .continue-bar .btn{min-width:185px}
#rtp-app .setup-header{display:flex;justify-content:space-between;align-items:end;padding:14px 2px 20px}#rtp-app .setup-layout{display:grid;grid-template-columns:minmax(320px,.75fr) minmax(480px,1.25fr);gap:18px}#rtp-app .team-panel{padding:24px;grid-row:span 2}#rtp-app .team-identity{display:flex;align-items:center;gap:18px;padding:21px 0 6px}#rtp-app .team-identity h2{margin:4px 0 8px}#rtp-app .team-emblem{width:92px;height:92px;flex:0 0 92px;border:1px solid #354550;border-radius:18px;background:radial-gradient(circle,#1c2b35,#0a0f13 72%);display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 0 25px rgba(58,129,189,.08)}#rtp-app .team-emblem img{display:block;width:86%;height:86%;max-width:none;max-height:none;object-fit:contain;object-position:center center;margin:auto;justify-self:center;align-self:center}#rtp-app .team-emblem span{font-size:27px;font-weight:1000;letter-spacing:-.05em;color:#d9e4ea}#rtp-app .team-emblem.mini{width:54px;height:54px;flex-basis:54px;border-radius:14px}#rtp-app .team-emblem.mini span{font-size:16px}#rtp-app .archetype-chips{display:flex;flex-wrap:wrap;gap:6px}#rtp-app .archetype-chips span{font-size:9px;font-weight:900;letter-spacing:.08em;border:1px solid #35434d;border-radius:99px;padding:5px 8px;color:#aebcc5}#rtp-app .tac-panel,#rtp-app .primary-panel{padding:24px}#rtp-app .panel-title-row{display:flex;align-items:start;justify-content:space-between;gap:12px}#rtp-app .panel-title-row h2{margin:4px 0 0}#rtp-app .privacy-pill{border-color:#5c4730;background:#2a2115;color:#d8aa61}#rtp-app .muted{color:var(--muted);line-height:1.55}#rtp-app .tac-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}#rtp-app .tac-card{display:flex;flex-direction:column;text-align:left;gap:8px;min-height:125px;border:1px solid var(--line);border-radius:13px;background:#0c1216;padding:14px;cursor:pointer;transition:.15s}#rtp-app .tac-card:hover{border-color:#496070;background:#101920}#rtp-app .tac-card.selected{border-color:var(--blue);background:linear-gradient(145deg,rgba(58,129,189,.18),rgba(58,129,189,.05));box-shadow:inset 0 0 0 1px rgba(58,129,189,.14)}#rtp-app .tac-card .tac-arch{font-size:9px;letter-spacing:.12em;font-weight:900;color:var(--blue-2)}#rtp-app .tac-card b{font-size:15px}#rtp-app .tac-card small{color:var(--muted);line-height:1.4}#rtp-app .primary-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:17px}#rtp-app .primary-options button{border:1px solid var(--line);border-radius:13px;background:#0b1115;padding:16px 10px;cursor:pointer}#rtp-app .primary-options b{display:block;font-size:19px}#rtp-app .primary-options span{display:block;color:var(--muted);font-size:10px;margin-top:5px}#rtp-app .primary-options button.selected{border-color:var(--blue);background:rgba(58,129,189,.14);box-shadow:inset 0 0 0 1px rgba(58,129,189,.12)}
#rtp-app .play-context{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:22px;padding:16px 18px;margin-bottom:16px}#rtp-app .play-context>div:first-child{display:flex;flex-direction:column;gap:3px}#rtp-app .play-context strong{font-size:16px}#rtp-app .play-context span:not(.eyebrow){color:var(--muted);font-size:11px}#rtp-app .tp-strip{display:flex;gap:5px}#rtp-app .tp-strip span{display:grid;place-items:center;min-width:48px;height:34px;border:1px solid #2b3740;border-radius:9px;font-weight:900!important;color:#687781!important}#rtp-app .tp-strip span.active{background:var(--blue);border-color:var(--blue);color:white!important}#rtp-app .tp-strip span.done{background:#263640;color:#b8c7cf!important}#rtp-app .start-banner{display:flex;align-items:center;justify-content:space-between;gap:22px;border:1px solid rgba(58,129,189,.5);border-radius:18px;padding:24px 28px;margin:18px 0;background:linear-gradient(105deg,rgba(58,129,189,.15),rgba(15,21,25,.96) 65%);box-shadow:var(--shadow)}#rtp-app .start-banner h1{margin:4px 0 5px}#rtp-app .start-banner p{margin:0;color:var(--muted)}#rtp-app .start-banner .btn{min-width:190px}#rtp-app .scoreboard{display:grid;grid-template-columns:1fr 1fr;gap:16px}#rtp-app .player-card{position:relative;overflow:hidden;border-radius:20px;padding:18px;border:1px solid var(--line);background:#10161a;box-shadow:var(--shadow)}#rtp-app .player-card:before{content:"";position:absolute;inset:0 0 auto;height:5px}#rtp-app .player-red{border-color:rgba(183,64,70,.55);background:radial-gradient(circle at 0 0,rgba(183,64,70,.11),transparent 35%),#111619}#rtp-app .player-red:before{background:linear-gradient(90deg,var(--red),rgba(183,64,70,0))}#rtp-app .player-blue{border-color:rgba(58,129,189,.62);background:radial-gradient(circle at 100% 0,rgba(58,129,189,.13),transparent 35%),#111619}#rtp-app .player-blue:before{background:linear-gradient(270deg,var(--blue),rgba(58,129,189,0))}#rtp-app .player-card.active-clock{box-shadow:0 0 0 2px rgba(255,255,255,.16),0 22px 60px rgba(0,0,0,.46)}#rtp-app .player-red.active-clock{border-color:var(--red-2)}#rtp-app .player-blue.active-clock{border-color:var(--blue-2)}#rtp-app .player-head{display:flex;align-items:center;justify-content:space-between;gap:16px}#rtp-app .player-team-mini{display:flex;align-items:center;gap:12px}#rtp-app .player-team-mini>div:last-child{display:flex;flex-direction:column}#rtp-app .player-team-mini span{font-size:9px;letter-spacing:.14em;font-weight:900;color:var(--muted)}#rtp-app .player-team-mini strong{font-size:16px;margin-top:3px}#rtp-app .total-score{display:flex;align-items:baseline;gap:8px}#rtp-app .total-score span{font-size:9px;letter-spacing:.13em;color:var(--muted);font-weight:900}#rtp-app .total-score b{font-size:41px;line-height:1}#rtp-app .clock-display{width:100%;border:1px solid #2c3942;background:#080c0f;border-radius:15px;padding:17px 10px 14px;margin:16px 0 12px;cursor:pointer}#rtp-app .clock-display span{display:block;font-variant-numeric:tabular-nums;font-size:clamp(37px,5vw,63px);font-weight:950;letter-spacing:.03em}#rtp-app .clock-display small{display:block;color:#53636e;font-size:8px;letter-spacing:.13em;margin-top:2px}#rtp-app .active-clock .clock-display small{color:#b5c1c8}#rtp-app .player-red.active-clock .clock-display{border-color:var(--red);box-shadow:inset 0 0 24px rgba(183,64,70,.09)}#rtp-app .player-blue.active-clock .clock-display{border-color:var(--blue);box-shadow:inset 0 0 24px rgba(58,129,189,.1)}#rtp-app .score-cards{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}#rtp-app .score-card{min-width:0;border:1px solid #27333b;background:rgba(7,11,14,.66);border-radius:12px;padding:11px;display:grid;grid-template-columns:1fr auto;gap:4px 8px}#rtp-app .score-card>span{grid-column:1/-1;font-size:8px;letter-spacing:.12em;font-weight:950;color:#7d8d98}#rtp-app .score-card strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:end}#rtp-app .score-card b{font-size:25px;line-height:1}#rtp-app .score-card small{grid-column:1/-1;color:#667680;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#rtp-app .player-controls{display:grid;grid-template-columns:1fr 1fr .9fr;gap:8px;margin-top:9px}#rtp-app .counter,#rtp-app .primary-secret{min-height:48px;border:1px solid #27333b;border-radius:11px;background:#0a0f12;display:flex;align-items:center;justify-content:center;gap:8px}#rtp-app .counter span,#rtp-app .primary-secret span{font-size:8px;letter-spacing:.1em;color:#788893;font-weight:900}#rtp-app .counter button{width:28px;height:28px;border:1px solid #34434c;background:#131b20;border-radius:8px;cursor:pointer;font-size:18px}#rtp-app .counter b,#rtp-app .primary-secret b{font-size:15px}#rtp-app .primary-secret{flex-direction:column;gap:0}#rtp-app .primary-secret b{font-size:10px;margin-top:2px}#rtp-app .turn-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}#rtp-app .turn-controls .btn{min-height:68px;font-size:16px}#rtp-app .btn-switch{background:linear-gradient(180deg,#252f36,#182126);border-color:#3c4952}#rtp-app .btn-endturn{background:linear-gradient(180deg,#438bc4,#286b9f);border-color:#5598cc}#rtp-app .play-tools{display:grid;grid-template-columns:repeat(5,1fr);padding:8px}#rtp-app .tool-btn{min-height:66px;background:transparent;border:0;border-right:1px solid var(--line-soft);cursor:pointer}#rtp-app .tool-btn:last-child{border-right:0}#rtp-app .tool-btn b{display:block;font-size:17px}#rtp-app .tool-btn span{display:block;font-size:9px;color:var(--muted);margin-top:4px;letter-spacing:.06em}#rtp-app .tool-btn.danger b,#rtp-app .tool-btn.danger span{color:#de777c}#rtp-app .final-result{margin-top:16px;padding:23px}#rtp-app .final-result h2{font-size:32px;margin:5px 0 17px}#rtp-app .final-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}#rtp-app .final-grid>div{border:1px solid var(--line);border-radius:13px;padding:14px;background:#0b1014}#rtp-app .final-grid strong{display:block;font-size:19px}#rtp-app .final-grid span{display:block;color:var(--muted);font-size:11px;margin-top:4px}
#rtp-app .modal{border:0;padding:0;background:transparent;max-width:min(96vw,760px);width:100%}#rtp-app .modal::backdrop{background:rgba(0,0,0,.75);backdrop-filter:blur(7px)}#rtp-app .modal-card{border:1px solid #34434d;border-radius:20px;background:linear-gradient(180deg,#151d22,#0d1216);color:white;padding:24px;box-shadow:0 30px 90px rgba(0,0,0,.65)}#rtp-app .modal-card.wide{max-width:760px}#rtp-app .modal-card h2{font-size:28px;margin:5px 0 7px}#rtp-app .modal-card>p{color:var(--muted);line-height:1.5}#rtp-app .modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:20px}#rtp-app .initiative-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}#rtp-app .initiative-choice{min-height:100px;border-radius:14px;border:1px solid var(--line);background:#0b1014;cursor:pointer;display:flex;flex-direction:column;justify-content:center}#rtp-app .initiative-choice span{font-size:9px;letter-spacing:.14em;color:var(--muted);font-weight:900}#rtp-app .initiative-choice b{font-size:18px;margin-top:5px}#rtp-app .initiative-choice.red{border-color:rgba(183,64,70,.6);background:rgba(183,64,70,.08)}#rtp-app .initiative-choice.blue{border-color:rgba(58,129,189,.6);background:rgba(58,129,189,.09)}#rtp-app .round-score-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}#rtp-app .round-player{border:1px solid var(--line);border-radius:14px;padding:14px}#rtp-app .round-player>strong{display:block;margin-bottom:12px}#rtp-app .round-player label{display:grid;grid-template-columns:1fr 75px;align-items:center;gap:10px;font-size:11px;font-weight:900;margin-top:8px}#rtp-app .round-player input{width:100%;height:42px;border:1px solid #35434d;border-radius:9px;background:#080c0f;color:#fff;text-align:center;font-size:18px;font-weight:900}#rtp-app .red-tint{border-color:rgba(183,64,70,.48);background:rgba(183,64,70,.06)}#rtp-app .blue-tint{border-color:rgba(58,129,189,.48);background:rgba(58,129,189,.07)}#rtp-app .timer-mode{margin:18px 0}#rtp-app .dice-results{min-height:88px;border:1px solid var(--line);border-radius:13px;background:#080c0f;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:12px;margin:15px 0}#rtp-app .die{width:47px;height:47px;border-radius:10px;background:#edf3f6;color:#0b1115;display:grid;place-items:center;font-weight:1000;font-size:20px}#rtp-app .dice-history{max-height:110px;overflow:auto;font-size:10px;color:var(--muted);line-height:1.6}#rtp-app .map-modal{max-width:min(96vw,980px)}#rtp-app .modal-map-head{display:flex;justify-content:space-between;align-items:start}#rtp-app .close-x{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#0b1115;font-size:25px;cursor:pointer}#rtp-app .dialog-map-image{width:100%;max-height:72vh;object-fit:contain;background:#080c0f;border:1px solid var(--line);border-radius:13px;margin-top:15px}#rtp-app .privacy-card{text-align:center;max-width:520px;margin:auto}#rtp-app .privacy-card img{width:115px;height:115px;object-fit:contain;margin-bottom:10px}#rtp-app .privacy-card .btn{width:100%;margin-top:17px}#rtp-app .toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);padding:12px 18px;border:1px solid #40515d;border-radius:12px;background:#11191e;color:#fff;font-size:12px;font-weight:800;opacity:0;pointer-events:none;transition:.2s;z-index:100}#rtp-app .toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:980px){#rtp-app .mission-hero{grid-template-columns:1fr;gap:22px}#rtp-app .year-picker-wrap{justify-self:stretch;min-width:0}#rtp-app .official-logo{margin:auto}#rtp-app .year-picker-wrap .eyebrow{text-align:center}#rtp-app .generator-grid,#rtp-app .setup-layout{grid-template-columns:1fr}#rtp-app .team-panel{grid-row:auto}#rtp-app .scoreboard{grid-template-columns:1fr}#rtp-app .play-tools{grid-template-columns:repeat(5,1fr)}#rtp-app .play-context{grid-template-columns:1fr auto}#rtp-app .play-context .btn{grid-column:1/-1}#rtp-app .score-cards{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){#rtp-app .app-shell{padding:0 11px 35px}#rtp-app .topbar{height:68px}#rtp-app .brand-logo{width:46px;height:46px}#rtp-app .brand-copy strong{font-size:12px}#rtp-app .brand-copy span{font-size:8px}#rtp-app .top-actions .icon-btn{width:38px;height:38px}#rtp-app .stepper{top:68px;padding:10px 0 15px;gap:5px}#rtp-app .step{min-height:45px;gap:5px;border-radius:10px}#rtp-app .step b{width:21px;height:21px;font-size:10px}#rtp-app .step span{font-size:8px}#rtp-app .mission-hero{padding:20px 15px;min-height:0}#rtp-app .official-logo{width:min(235px,100%);max-width:100%;height:auto;max-height:none}#rtp-app .year-picker button{font-size:20px;padding:10px}#rtp-app .section-heading{display:block;padding:27px 2px 13px}#rtp-app .section-heading p{margin-top:10px}#rtp-app .generator-controls{padding:16px}#rtp-app .map-frame{min-height:315px}#rtp-app .mission-key{padding:16px}#rtp-app .mission-key-head{align-items:flex-start;flex-direction:column}#rtp-app .mission-key-head h3{font-size:18px}#rtp-app .map-key-grid{grid-template-columns:1fr}#rtp-app .mission-copy{padding:17px}#rtp-app .mission-copy h2{font-size:21px}#rtp-app .continue-bar{bottom:7px;padding:11px 11px 11px 14px}#rtp-app .continue-bar span{display:none}#rtp-app .continue-bar .btn{min-width:132px}#rtp-app .setup-header{align-items:center}#rtp-app .setup-header p{display:none}#rtp-app .team-panel,#rtp-app .tac-panel,#rtp-app .primary-panel{padding:16px}#rtp-app .team-emblem{width:76px;height:76px;flex-basis:76px}#rtp-app .tac-grid{grid-template-columns:1fr}#rtp-app .primary-options button{padding:13px 4px}#rtp-app .play-context{grid-template-columns:1fr}#rtp-app .tp-strip{grid-row:2;justify-content:stretch}#rtp-app .tp-strip span{flex:1}#rtp-app .start-banner{padding:18px;align-items:stretch;flex-direction:column}#rtp-app .start-banner .btn{width:100%}#rtp-app .player-card{padding:12px;border-radius:16px}#rtp-app .player-head{gap:8px}#rtp-app .player-team-mini strong{font-size:13px}#rtp-app .team-emblem.mini{width:45px;height:45px;flex-basis:45px}#rtp-app .total-score b{font-size:33px}#rtp-app .clock-display{margin:11px 0 8px;padding:12px}#rtp-app .clock-display span{font-size:42px}#rtp-app .score-cards{gap:5px}#rtp-app .score-card{padding:8px 7px}#rtp-app .score-card strong{font-size:9px}#rtp-app .score-card b{font-size:21px}#rtp-app .score-card small{font-size:7px}#rtp-app .player-controls{gap:5px}#rtp-app .counter,#rtp-app .primary-secret{gap:5px}#rtp-app .counter span{display:none}#rtp-app .counter button{width:25px;height:25px}#rtp-app .turn-controls{gap:7px}#rtp-app .turn-controls .btn{min-height:58px;font-size:12px;padding:0 6px}#rtp-app .play-tools{grid-template-columns:repeat(3,1fr)}#rtp-app .tool-btn{border-bottom:1px solid var(--line-soft)}#rtp-app .tool-btn:nth-child(3){border-right:0}#rtp-app .round-score-grid,#rtp-app .initiative-buttons{grid-template-columns:1fr}#rtp-app .modal-card{padding:18px}#rtp-app .modal-card h2{font-size:23px}#rtp-app .top-actions{gap:4px}}
@media(max-width:390px){#rtp-app .brand-copy span{display:none}#rtp-app .step span{display:none}#rtp-app .stepper{grid-template-columns:repeat(4,1fr)}#rtp-app .score-card strong{font-size:8px}#rtp-app .clock-display span{font-size:36px}#rtp-app .primary-options b{font-size:16px}#rtp-app .player-controls{grid-template-columns:1fr 1fr}#rtp-app .primary-secret{grid-column:1/-1;min-height:37px;flex-direction:row;gap:7px}}

#rtp-app .tournament-connect{margin:16px 0 4px;padding:0;overflow:hidden;border-color:#31566c;background:linear-gradient(145deg,#12232c,#0b1419)}
#rtp-app .tournament-connect>summary{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 18px;cursor:pointer;list-style:none}
#rtp-app .tournament-connect>summary::-webkit-details-marker{display:none}
#rtp-app .tournament-connect>summary>div{display:grid;gap:3px}
#rtp-app .tournament-connect>summary .eyebrow{margin:0;color:#69b8e8}
#rtp-app .tournament-connect>summary strong{font-size:14px}
#rtp-app .tournament-connect>summary small{color:var(--muted);font-size:9px}
#rtp-app .tournament-connect-toggle{padding:6px 9px;border:1px solid #345264;border-radius:8px;color:#a7c2d1;font-size:8px;font-weight:900;letter-spacing:.08em}
#rtp-app .tournament-connect[open] .tournament-connect-toggle{font-size:0}
#rtp-app .tournament-connect[open] .tournament-connect-toggle:after{content:'ZWIŃ';font-size:8px}
#rtp-app .tournament-connect.is-connected{border-color:#2f8a65;background:linear-gradient(145deg,#123127,#0b1713)}
#rtp-app .tournament-connect.is-completed{border-color:#4f6b5d}
#rtp-app .tournament-connect.needs-resolution{border-color:#a24b53;background:linear-gradient(145deg,#35181b,#160d0f)}
#rtp-app .tournament-connect-body{display:grid;gap:12px;padding:15px 18px 18px;border-top:1px solid rgba(116,156,177,.2)}
#rtp-app .tournament-connect-form{display:grid;grid-template-columns:minmax(220px,1fr) auto;align-items:end;gap:10px}
#rtp-app .tournament-connect-form input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:16px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
#rtp-app .tournament-connected{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid #2d7659;border-radius:11px;background:#102a21}
#rtp-app .tournament-connected>div{display:grid;gap:4px}
#rtp-app .tournament-connected .eyebrow{margin:0;color:#65d69b}
#rtp-app .tournament-connected strong{font-size:13px}
#rtp-app .tournament-connected small{color:#91b7a5;font-size:9px}
#rtp-app .tournament-connect-note{margin:0;color:var(--muted);font-size:9px;line-height:1.5}
#rtp-app .tournament-live-badge{display:inline-flex;width:max-content;align-items:center;gap:6px;margin-top:7px;padding:5px 8px;border:1px solid #2e8a63;border-radius:99px;background:#113326;color:#b9edd3;font-size:8px;font-weight:900;letter-spacing:.06em}
#rtp-app .tournament-live-badge i{width:7px;height:7px;border-radius:50%;background:#5add9b;box-shadow:0 0 11px rgba(90,221,155,.75)}
#rtp-app .tournament-live-badge small{color:#79b99a!important;font-size:7px!important}
#rtp-app .tournament-live-badge.is-completed{border-color:#506b5d;background:#18251f;color:#c3d4cb}
#rtp-app .tournament-live-badge.is-completed i{background:#94ae9f;box-shadow:none}
#rtp-app .tournament-live-badge.needs-resolution{border-color:#a44e55;background:#3b1a1e;color:#ffd3d6}
#rtp-app .tournament-live-badge.needs-resolution i{background:#e36e76;box-shadow:0 0 11px rgba(227,110,118,.65)}
@media(max-width:680px){#rtp-app .tournament-connect>summary{align-items:flex-start}#rtp-app .tournament-connect-form{grid-template-columns:1fr}#rtp-app .tournament-connected{align-items:stretch;flex-direction:column}#rtp-app .tournament-connected .btn{width:100%}}

/* === v3.1.0: ekran wejściowy / informacje prawne === */
#rtp-app .sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#rtp-app .access-gate{min-height:100vh;padding:clamp(24px,5vw,64px) 18px 42px;position:relative;overflow:hidden;background:
  radial-gradient(circle at 50% -8%,rgba(58,129,189,.22),transparent 34%),
  radial-gradient(circle at 0 55%,rgba(58,129,189,.08),transparent 27%),
  linear-gradient(180deg,#0c1115 0%,#070a0d 72%,#050709 100%)}
#rtp-app .access-gate:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.19;background-image:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px);background-size:34px 34px;mask-image:linear-gradient(to bottom,black,transparent 82%)}
#rtp-app .access-gate:after{content:"";position:absolute;width:min(70vw,740px);height:min(70vw,740px);border:1px solid rgba(58,129,189,.10);border-radius:50%;left:50%;top:-430px;transform:translateX(-50%);box-shadow:0 0 0 65px rgba(58,129,189,.018),0 0 0 135px rgba(58,129,189,.01);pointer-events:none}
#rtp-app .access-gate-inner{position:relative;z-index:1;width:min(1080px,100%);margin:0 auto}
#rtp-app .access-brand{text-align:center;padding:18px 10px 34px}
#rtp-app .access-official-logo{display:block;width:min(620px,92%);max-height:150px;object-fit:contain;margin:0 auto 24px;filter:drop-shadow(0 18px 28px rgba(0,0,0,.56))}
#rtp-app .access-kicker{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(58,129,189,.34);background:rgba(58,129,189,.08);border-radius:99px;padding:7px 11px;color:#8fc6ee;font-size:9px;font-weight:950;letter-spacing:.16em}
#rtp-app .access-brand h1{font-size:clamp(31px,5vw,58px);letter-spacing:-.045em;margin:13px 0 5px}
#rtp-app .access-brand p{margin:0;color:var(--muted);font-size:clamp(12px,2vw,15px)}
#rtp-app .access-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}
#rtp-app .access-info-card{border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,rgba(19,27,33,.92),rgba(10,15,19,.94));padding:20px 21px;box-shadow:0 18px 55px rgba(0,0,0,.22)}
#rtp-app .access-info-card p{margin:10px 0 0;color:#9eabb4;line-height:1.58;font-size:11px}
#rtp-app .access-info-card strong{color:#e7eef2}
#rtp-app .access-form{padding:23px;display:grid;grid-template-columns:1fr minmax(300px,.9fr);gap:24px;align-items:center;border-color:rgba(58,129,189,.38);box-shadow:0 22px 70px rgba(0,0,0,.35),inset 0 0 0 1px rgba(58,129,189,.035)}
#rtp-app .access-form h2{font-size:25px;margin:5px 0 5px}
#rtp-app .access-form p{margin:0;color:var(--muted);font-size:11px;line-height:1.5}
#rtp-app .access-password-wrap{display:grid;grid-template-columns:1fr auto;gap:8px}
#rtp-app .access-password-wrap input{min-width:0;height:54px;border:1px solid #3b4b56;border-radius:12px;background:#070b0e;color:white;padding:0 15px;font-size:16px;font-weight:750;letter-spacing:.02em}
#rtp-app .access-password-wrap input::placeholder{color:#596974}
#rtp-app .access-password-wrap input:focus{border-color:var(--blue-2)}
#rtp-app .access-password-wrap .btn{min-width:132px;min-height:54px}
#rtp-app .access-error{grid-column:1/-1!important;color:#ef7e83!important;min-height:18px!important;margin-top:-12px!important;text-align:right}
#rtp-app .access-form.shake{animation:accessShake .28s linear}
@keyframes accessShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-7px)}75%{transform:translateX(7px)}}
#rtp-app .access-footer{display:flex;align-items:center;justify-content:center;gap:9px;padding:24px 0 0;color:#596873;font-size:9px;font-weight:900;letter-spacing:.14em}
#rtp-app .access-footer img{width:31px;height:31px;object-fit:contain;opacity:.7}
#rtp-app.access-locked{background:#070a0d}

@media(max-width:760px){
  #rtp-app .access-gate{padding:22px 12px 30px}
  #rtp-app .access-brand{padding:10px 4px 24px}
  #rtp-app .access-official-logo{max-height:105px;margin-bottom:17px}
  #rtp-app .access-info-grid{grid-template-columns:1fr}
  #rtp-app .access-info-card{padding:16px}
  #rtp-app .access-form{grid-template-columns:1fr;padding:17px;gap:15px}
  #rtp-app .access-password-wrap{grid-template-columns:1fr}
  #rtp-app .access-password-wrap .btn{width:100%}
  #rtp-app .access-error{text-align:left;margin-top:-7px!important}
}

/* v3.3.0 — zapamiętywanie urządzenia */
#rtp-app .access-remember{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:8px 2px 0;cursor:pointer;color:#dce6ec}
#rtp-app .access-remember input{width:18px!important;height:18px!important;min-width:18px;padding:0!important;accent-color:var(--blue-2);cursor:pointer}
#rtp-app .access-remember span{display:flex;flex-direction:column;gap:2px;font-size:11px;line-height:1.25}
#rtp-app .access-remember strong{font-size:11px;color:#eaf2f7}
#rtp-app .access-remember small{font-size:9px;color:var(--muted);font-weight:650}
#rtp-app .device-access-settings{margin-top:20px;padding-top:17px;border-top:1px solid var(--line)}
#rtp-app .device-access-settings p{margin:7px 0 12px;color:var(--muted);font-size:10px;line-height:1.5}
#rtp-app .device-access-settings .btn{width:100%}

/* v3.3.1 — centrowanie logotypów i poprawne ukrywanie placeholdera mapy */
#rtp-app .map-empty[hidden]{display:none!important}
#rtp-app .map-frame img[hidden]{display:none!important}
#rtp-app .team-emblem{align-items:center;justify-items:center}
#rtp-app .team-emblem img{transform:none}

/* v3.3.3 — reset, ukrywanie startu po rozpoczęciu gry i widoczna nowa misja */
#rtp-app .start-banner[hidden],
#rtp-app .new-mission-banner[hidden],
#rtp-app .final-result[hidden]{display:none!important}

#rtp-app .reset-top-btn{
  width:auto!important;
  min-width:82px;
  padding:0 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-color:rgba(183,64,70,.48);
  color:#e79a9e;
}
#rtp-app .reset-top-btn b{font-size:18px;line-height:1}
#rtp-app .reset-top-btn span{font-size:9px;font-weight:950;letter-spacing:.08em}
#rtp-app .reset-top-btn:hover{border-color:var(--red);background:rgba(183,64,70,.11)}

/* 2.5.3 — pełny ekran aplikacji uruchamiany wyłącznie gestem użytkownika */
#rtp-app .fullscreen-top-btn{display:grid;place-items:center;padding:0}
#rtp-app .fullscreen-top-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#rtp-app .fullscreen-top-btn img{display:block!important;visibility:visible!important;width:22px!important;height:22px!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;opacity:1!important;object-fit:contain!important}
#rtp-app .fullscreen-top-btn.is-active{border-color:var(--blue-2);background:rgba(58,129,189,.17);color:#fff}
#rtp-app .fullscreen-top-btn[hidden]{display:none!important}
#rtp-app:fullscreen{width:100vw!important;max-width:none!important;height:100dvh!important;min-height:100vh!important;margin:0!important;padding:0!important;overflow-x:hidden!important;overflow-y:auto!important;background:var(--bg)!important}
#rtp-app:-webkit-full-screen{width:100vw!important;max-width:none!important;height:100vh!important;min-height:100vh!important;margin:0!important;padding:0!important;overflow-x:hidden!important;overflow-y:auto!important;background:var(--bg)!important}
#rtp-app:fullscreen .app-shell{width:min(1460px,100%)!important;min-height:100dvh;margin:0 auto!important}
#rtp-app:-webkit-full-screen .app-shell{width:min(1460px,100%)!important;min-height:100vh;margin:0 auto!important}
#rtp-app:fullscreen .app-shell,#rtp-app:-webkit-full-screen .app-shell{position:relative}
#rtp-app:fullscreen .topbar,#rtp-app:-webkit-full-screen .topbar{height:0!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;backdrop-filter:none!important;overflow:visible!important;z-index:65!important}
#rtp-app:fullscreen .top-actions,#rtp-app:-webkit-full-screen .top-actions{position:absolute!important;top:10px;right:14px;margin:0!important;padding:5px;border:1px solid rgba(71,91,103,.72);border-radius:14px;background:rgba(8,11,14,.9);backdrop-filter:blur(14px);box-shadow:0 8px 25px rgba(0,0,0,.34)}
#rtp-app:fullscreen .stepper,#rtp-app:-webkit-full-screen .stepper{top:0!important}

#rtp-app .new-mission-banner{
  margin-top:16px;
  padding:24px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  border-color:rgba(58,129,189,.55);
  background:linear-gradient(105deg,rgba(58,129,189,.16),rgba(15,21,25,.97) 68%);
}
#rtp-app .new-mission-banner h2{margin:4px 0 6px;font-size:28px}
#rtp-app .new-mission-banner p{margin:0;color:var(--muted);line-height:1.55;max-width:670px}
#rtp-app .new-mission-banner .btn{min-width:215px}

@media(max-width:680px){
  #rtp-app .reset-top-btn{min-width:38px!important;width:38px!important;padding:0!important}
  #rtp-app .reset-top-btn span{display:none}
  #rtp-app .new-mission-banner{padding:18px;align-items:stretch;flex-direction:column}
  #rtp-app .new-mission-banner .btn{width:100%;min-width:0}
}

/* v3.3.4 — desktop header, archetype labels, mobile mission flow and game controls */

/* Desktop: keep top-right controls safely inside the application frame. */
@media(min-width:981px){
  #rtp-app .topbar{padding-right:14px}
  #rtp-app .top-actions{margin-right:0;flex-shrink:0}
}

/* Floating game controls exist only on mobile. */
#rtp-app .mobile-game-controls{display:none}

@media(max-width:680px){
  /* On mobile show the mission description first, then map, then terrain key. */
  #rtp-app .mission-result{display:flex;flex-direction:column}
  #rtp-app .mission-copy{order:1;border-bottom:1px solid var(--line-soft)}
  #rtp-app .map-frame{order:2}
  #rtp-app .mission-key{order:3}

  /* Leave room for floating controls during the match. */
  #rtp-app #viewPlay{padding-bottom:92px}
  #rtp-app .player-card{scroll-margin-top:142px}

  /* Original in-flow buttons remain available, but no longer need to be hunted for. */
  #rtp-app .turn-controls{margin-bottom:10px}

  #rtp-app .mobile-game-controls{
    position:fixed;
    z-index:85;
    left:max(10px,env(safe-area-inset-left));
    right:max(10px,env(safe-area-inset-right));
    bottom:max(10px,env(safe-area-inset-bottom));
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:8px;
    padding:8px;
    border:1px solid rgba(78,96,108,.88);
    border-radius:16px;
    background:rgba(8,12,15,.94);
    backdrop-filter:blur(18px);
    box-shadow:0 18px 55px rgba(0,0,0,.58);
  }
  #rtp-app .mobile-game-controls[hidden]{display:none!important}

  #rtp-app .mobile-game-btn{
    min-height:55px;
    border-radius:12px;
    border:1px solid #3b4952;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:950;
    letter-spacing:.045em;
    font-size:11px;
  }
  #rtp-app .mobile-game-btn b{font-size:18px}
  #rtp-app .mobile-game-btn.switch{background:linear-gradient(180deg,#29343b,#172025)}
  #rtp-app .mobile-game-btn.endturn{background:linear-gradient(180deg,#448dc7,#276a9e);border-color:#5598cc}
  #rtp-app .mobile-game-btn:disabled{opacity:.4}
}

/* v3.3.5 — misja przed mapą również na desktopie + kolory archetypów Tac Ops */

/* W każdym widoku wynik generatora czytamy w kolejności:
   opis misji -> mapa -> klucz terenu. */
#rtp-app .mission-result{
  display:flex;
  flex-direction:column;
}
#rtp-app .mission-copy{
  order:1;
  border-bottom:1px solid var(--line-soft);
}
#rtp-app .map-frame{order:2}
#rtp-app .mission-key{order:3}

/* Kolory archetypów. Kolor jest celowo widoczny przede wszystkim
   na lewej krawędzi i etykiecie, żeby opis nadal był łatwy do czytania. */
#rtp-app .tac-card{
  position:relative;
  border-left-width:4px;
}
#rtp-app .tac-card .tac-arch{
  display:inline-flex;
  align-self:flex-start;
  min-height:22px;
  align-items:center;
  padding:0 7px;
  border:1px solid transparent;
  border-radius:999px;
}

/* Seek & Destroy — czerwony */
#rtp-app .tac-card[data-arch="seek"]{
  border-left-color:#c54a50;
  background:linear-gradient(120deg,rgba(197,74,80,.10),#0c1216 48%);
}
#rtp-app .tac-card[data-arch="seek"] .tac-arch{
  color:#f08a8f;
  background:rgba(197,74,80,.13);
  border-color:rgba(197,74,80,.38);
}

/* Security — niebieski */
#rtp-app .tac-card[data-arch="security"]{
  border-left-color:#3a81bd;
  background:linear-gradient(120deg,rgba(58,129,189,.11),#0c1216 48%);
}
#rtp-app .tac-card[data-arch="security"] .tac-arch{
  color:#86bde7;
  background:rgba(58,129,189,.14);
  border-color:rgba(58,129,189,.40);
}

/* Infiltration — ciemna zieleń */
#rtp-app .tac-card[data-arch="infiltration"]{
  border-left-color:#347052;
  background:linear-gradient(120deg,rgba(52,112,82,.12),#0c1216 48%);
}
#rtp-app .tac-card[data-arch="infiltration"] .tac-arch{
  color:#78b894;
  background:rgba(52,112,82,.15);
  border-color:rgba(52,112,82,.42);
}

/* Recon — jasna zieleń */
#rtp-app .tac-card[data-arch="recon"]{
  border-left-color:#72b978;
  background:linear-gradient(120deg,rgba(114,185,120,.11),#0c1216 48%);
}
#rtp-app .tac-card[data-arch="recon"] .tac-arch{
  color:#a7dda9;
  background:rgba(114,185,120,.14);
  border-color:rgba(114,185,120,.42);
}

/* Wybrana karta zachowuje kolor archetypu, ale dostaje mocniejszy obrys. */
#rtp-app .tac-card.selected{
  border-top-color:rgba(255,255,255,.28);
  border-right-color:rgba(255,255,255,.28);
  border-bottom-color:rgba(255,255,255,.28);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),0 8px 22px rgba(0,0,0,.20);
}

/* v3.3.6 — Tac Ops pogrupowane kolumnami według archetypu */

#rtp-app .tac-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:14px;
  align-items:start;
}

#rtp-app .tac-arch-column{
  min-width:0;
  border:1px solid var(--line-soft);
  border-radius:15px;
  overflow:hidden;
  background:rgba(7,11,14,.45);
}

#rtp-app .tac-column-head{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:0 13px;
  border-bottom:1px solid var(--line-soft);
  font-size:11px;
  font-weight:950;
  letter-spacing:.10em;
  text-transform:uppercase;
}

#rtp-app .tac-column-cards{
  display:flex;
  flex-direction:column;
  gap:9px;
  padding:10px;
}

#rtp-app .tac-column-cards .tac-card{
  width:100%;
  min-height:118px;
}

/* Nagłówek kolumny dziedziczy ten sam kod kolorystyczny co karty. */
#rtp-app .tac-column-head[data-arch="seek"]{
  color:#f08a8f;
  background:rgba(197,74,80,.12);
  box-shadow:inset 4px 0 0 #c54a50;
}
#rtp-app .tac-column-head[data-arch="security"]{
  color:#86bde7;
  background:rgba(58,129,189,.13);
  box-shadow:inset 4px 0 0 #3a81bd;
}
#rtp-app .tac-column-head[data-arch="infiltration"]{
  color:#78b894;
  background:rgba(52,112,82,.14);
  box-shadow:inset 4px 0 0 #347052;
}
#rtp-app .tac-column-head[data-arch="recon"]{
  color:#a7dda9;
  background:rgba(114,185,120,.13);
  box-shadow:inset 4px 0 0 #72b978;
}

@media(max-width:680px){
  #rtp-app .tac-grid{
    grid-template-columns:1fr;
  }
  #rtp-app .tac-arch-column{
    width:100%;
  }
}

/* v3.3.7 — bez nagłówków grup, maksymalnie 2 kolumny */

#rtp-app .tac-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px;
}

#rtp-app .tac-arch-column{
  border:0;
  border-radius:0;
  background:transparent;
  overflow:visible;
}

#rtp-app .tac-column-head{
  display:none!important;
}

#rtp-app .tac-column-cards{
  padding:0;
  gap:9px;
}

@media(max-width:680px){
  #rtp-app .tac-grid{
    grid-template-columns:1fr!important;
  }
}

/* v3.3.8 — równa wysokość wszystkich kart Tac Ops */
#rtp-app .tac-column-cards .tac-card{
  min-height:0;
}

/* v3.4.2 — wyśrodkowanie kluczy map */
#rtp-app .map-key-grid{
  justify-items:center;
}

#rtp-app .map-key-card{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

#rtp-app .map-key-card.single{
  width:min(100%,620px);
  max-width:620px;
  justify-self:center;
}

#rtp-app .map-key-card img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:780px;
  margin:auto;
  object-fit:contain;
  object-position:center center;
}

@media(max-width:680px){
  #rtp-app .map-key-card.single{
    width:100%;
  }
  #rtp-app .map-key-card img{
    max-height:none;
  }
}

/* v3.4.3 — większe, czytelne klucze map */
#rtp-app .map-key-grid{
  width:100%;
  justify-items:center;
}

#rtp-app .map-key-card.single{
  width:min(100%,1000px);
  max-width:1000px;
  justify-self:center;
}

#rtp-app .map-key-card.single img{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  max-height:none;
  margin:0 auto;
  object-fit:contain;
  object-position:center center;
}

@media(max-width:680px){
  #rtp-app .map-key-card.single{
    width:100%;
    max-width:none;
  }
  #rtp-app .map-key-card.single img{
    width:100%;
    height:auto;
    max-height:none;
  }
}

/* v3.5.0 — pełne karty Crit Op 2024 */
#rtp-app .crit-detail-card{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
#rtp-app .crit-detail-card[hidden]{display:none!important}
#rtp-app .crit-section{display:flex;flex-direction:column;gap:8px}
#rtp-app .crit-section-label{
  font-size:11px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.12em;
  color:#f07a45;
  text-transform:uppercase;
}
#rtp-app .crit-action-box{
  overflow:hidden;
  border:1px solid rgba(240,106,50,.62);
  border-radius:14px;
  background:#0c1115;
  box-shadow:inset 0 0 0 1px rgba(240,106,50,.07);
}
#rtp-app .crit-action-head{
  min-height:50px;
  padding:0 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:linear-gradient(90deg,#e75a24,#f06f2f);
  color:white;
}
#rtp-app .crit-action-head strong{
  font-size:18px;
  letter-spacing:.025em;
}
#rtp-app .crit-action-head b{
  flex:0 0 auto;
  font-size:22px;
  letter-spacing:.02em;
}
#rtp-app .crit-action-body{
  padding:15px 16px 16px;
}
#rtp-app .crit-action-body>p,
#rtp-app .crit-info-box,
#rtp-app .crit-victory-intro{
  margin:0;
  color:#d8e0e5!important;
  line-height:1.62;
  font-size:13px;
}
#rtp-app .crit-condition{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:8px;
  align-items:start;
  margin-top:13px;
  padding-top:13px;
  border-top:1px solid rgba(255,255,255,.08);
}
#rtp-app .crit-condition>span{
  color:#e8504f;
  font-size:15px;
  line-height:1.45;
}
#rtp-app .crit-condition>p{
  margin:0;
  color:#b8c4cb!important;
  font-size:12px;
  line-height:1.55;
}
#rtp-app .crit-info-box{
  padding:14px 15px;
  border:1px solid #35454f;
  border-radius:12px;
  background:linear-gradient(135deg,rgba(58,129,189,.10),rgba(8,13,16,.76));
}
#rtp-app .crit-rule-list{
  list-style:none;
  padding:0;
  margin:4px 0 0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
#rtp-app .crit-rule-list li{
  position:relative;
  padding:10px 12px 10px 31px;
  border:1px solid rgba(255,255,255,.075);
  border-radius:10px;
  background:#0b1115;
  color:#dbe3e8;
  font-size:12px;
  line-height:1.52;
}
#rtp-app .crit-rule-list li:before{
  content:"✓";
  position:absolute;
  left:11px;
  top:10px;
  color:#73bc8b;
  font-weight:1000;
}
#rtp-app .crit-cap{
  margin-top:9px;
  padding:10px 12px;
  border:1px solid rgba(240,106,50,.36);
  border-radius:10px;
  background:rgba(240,106,50,.09);
  color:#f4a17c;
  font-size:11px;
  font-weight:950;
  letter-spacing:.04em;
  text-transform:uppercase;
}
#rtp-app .crit-cap.compact{margin-top:8px}

/* Przypomnienie Crit Op w oknie końca tury */
#rtp-app .round-mission-toggle{
  width:100%;
  min-height:52px;
  margin-top:14px;
  padding:8px 13px;
  border:1px solid rgba(240,106,50,.42);
  border-radius:12px;
  background:linear-gradient(100deg,rgba(240,106,50,.13),#0b1115 60%);
  color:white;
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  cursor:pointer;
  text-align:left;
}
#rtp-app .round-mission-toggle[hidden]{display:none!important}
#rtp-app .round-mission-toggle>span{
  font-size:9px;
  font-weight:950;
  letter-spacing:.11em;
  color:#e89670;
}
#rtp-app .round-mission-toggle>b{
  justify-self:start;
  font-size:14px;
  letter-spacing:.04em;
}
#rtp-app .round-mission-toggle>i{
  font-style:normal;
  font-size:20px;
  color:#e89670;
  transition:transform .18s ease;
}
#rtp-app .round-mission-toggle[aria-expanded="true"]>i{transform:rotate(180deg)}
#rtp-app .round-mission-reminder{
  margin-top:8px;
  padding:14px;
  border:1px solid #394852;
  border-radius:13px;
  background:#090e12;
}
#rtp-app .round-mission-reminder[hidden]{display:none!important}
#rtp-app .round-reminder-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
#rtp-app .round-reminder-head>span,
#rtp-app .round-reminder-score>span{
  font-size:9px;
  font-weight:950;
  letter-spacing:.11em;
  color:#8fa3af;
}
#rtp-app .round-reminder-head>strong{
  font-size:13px;
  color:#f0f4f6;
}
#rtp-app .round-reminder-action{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:0 11px;
  border-radius:9px;
  background:linear-gradient(90deg,#d85421,#eb6a2c);
  color:#fff;
}
#rtp-app .round-reminder-action>b{font-size:12px}
#rtp-app .round-reminder-action>span{font-size:14px;font-weight:1000}
#rtp-app .round-reminder-condition{
  margin:9px 0 0!important;
  color:#b5c0c7!important;
  font-size:10px!important;
  line-height:1.45!important;
}
#rtp-app .round-reminder-extra{
  margin-top:9px;
  border:1px solid #34434d;
  border-radius:9px;
  background:#0c1216;
}
#rtp-app .round-reminder-extra summary{
  padding:9px 11px;
  cursor:pointer;
  color:#8eb9d8;
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
#rtp-app .round-reminder-extra p{
  margin:0;
  padding:0 11px 11px;
  color:#aebbc3;
  font-size:10px;
  line-height:1.5;
}
#rtp-app .round-reminder-score{
  margin-top:12px;
}
#rtp-app .round-reminder-score .crit-rule-list{
  gap:5px;
  margin-top:7px;
}
#rtp-app .round-reminder-score .crit-rule-list li{
  padding:7px 9px 7px 27px;
  font-size:10px;
}
#rtp-app .round-reminder-score .crit-rule-list li:before{
  left:9px;
  top:7px;
}

@media(max-width:680px){
  #rtp-app .crit-action-head{min-height:46px;padding:0 12px}
  #rtp-app .crit-action-head strong{font-size:15px}
  #rtp-app .crit-action-head b{font-size:18px}
  #rtp-app .crit-action-body{padding:12px}
  #rtp-app .crit-action-body>p,#rtp-app .crit-info-box,#rtp-app .crit-victory-intro{font-size:12px}
  #rtp-app .crit-rule-list li{font-size:11px}
  #rtp-app .round-mission-toggle{grid-template-columns:1fr auto}
  #rtp-app .round-mission-toggle>span{grid-column:1/-1}
}

/* v3.5.2 — na mobile ukrywamy stare przyciski tury,
   zostają tylko pływające kontrolki */
@media(max-width:680px){
  #rtp-app .turn-controls{
    display:none!important;
  }
}

/* v3.6.0 — pełne karty Tac Ops 2024 */
#rtp-app .tac-details{
  --tac-accent:#3a81bd;
  --tac-accent-rgb:58,129,189;
  margin-top:18px;
  padding:18px;
  border:1px solid rgba(var(--tac-accent-rgb),.38);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(var(--tac-accent-rgb),.08),rgba(8,12,15,.94) 42%);
}
#rtp-app .tac-details[hidden]{display:none!important}
#rtp-app .tac-details[data-arch="seek"]{--tac-accent:#c54a50;--tac-accent-rgb:197,74,80}
#rtp-app .tac-details[data-arch="security"]{--tac-accent:#3a81bd;--tac-accent-rgb:58,129,189}
#rtp-app .tac-details[data-arch="infiltration"]{--tac-accent:#347052;--tac-accent-rgb:52,112,82}
#rtp-app .tac-details[data-arch="recon"]{--tac-accent:#72b978;--tac-accent-rgb:114,185,120}

#rtp-app .tac-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding-bottom:14px;
  margin-bottom:15px;
  border-bottom:1px solid rgba(255,255,255,.075);
}
#rtp-app .tac-detail-kicker{
  display:block;
  margin-bottom:4px;
  color:var(--tac-accent);
  font-size:9px;
  font-weight:1000;
  letter-spacing:.13em;
  text-transform:uppercase;
}
#rtp-app .tac-detail-head h3{
  margin:0;
  font-size:23px;
  letter-spacing:.02em;
}

#rtp-app .tac-detail-section{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:16px;
}
#rtp-app .tac-detail-label{
  color:var(--tac-accent);
  font-size:10px;
  line-height:1;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
}
#rtp-app .tac-reveal-box,
#rtp-app .tac-extra-box{
  padding:13px 14px;
  border:1px solid rgba(var(--tac-accent-rgb),.28);
  border-radius:11px;
  background:rgba(var(--tac-accent-rgb),.06);
  color:#d6e0e5;
  font-size:12px;
  line-height:1.58;
}
#rtp-app .tac-extra-box p{margin:0}
#rtp-app .tac-extra-box p+p{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.07);
}

#rtp-app .tac-action-box{
  overflow:hidden;
  border:1px solid rgba(var(--tac-accent-rgb),.62);
  border-radius:12px;
  background:#0b1115;
}
#rtp-app .tac-action-head{
  min-height:47px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:var(--tac-accent);
  color:#fff;
}
#rtp-app .tac-action-head strong{
  font-size:16px;
  letter-spacing:.025em;
}
#rtp-app .tac-action-head b{
  flex:0 0 auto;
  font-size:20px;
}
#rtp-app .tac-action-body{padding:13px 14px}
#rtp-app .tac-action-body>p,
#rtp-app .tac-victory-intro{
  margin:0;
  color:#d7e0e5;
  font-size:12px;
  line-height:1.55;
}
#rtp-app .tac-condition{
  display:grid;
  grid-template-columns:18px 1fr;
  gap:7px;
  align-items:start;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
}
#rtp-app .tac-condition>span{
  color:var(--tac-accent);
  line-height:1.4;
}
#rtp-app .tac-condition>p{
  margin:0;
  color:#afbdc5;
  font-size:11px;
  line-height:1.52;
}

#rtp-app .tac-rule-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
#rtp-app .tac-action-body>.tac-rule-list{margin-top:9px}
#rtp-app .tac-rule-list li{
  position:relative;
  padding:9px 11px 9px 29px;
  border:1px solid rgba(255,255,255,.07);
  border-radius:9px;
  background:#0b1115;
  color:#d9e2e7;
  font-size:11px;
  line-height:1.5;
}
#rtp-app .tac-rule-list li:before{
  content:"✓";
  position:absolute;
  left:10px;
  top:9px;
  color:var(--tac-accent);
  font-weight:1000;
}
#rtp-app .tac-cap{
  margin-top:8px;
  padding:10px 12px;
  border:1px solid rgba(var(--tac-accent-rgb),.40);
  border-radius:9px;
  background:rgba(var(--tac-accent-rgb),.12);
  color:var(--tac-accent);
  font-size:10px;
  font-weight:1000;
  letter-spacing:.045em;
  text-transform:uppercase;
}

@media(max-width:680px){
  #rtp-app .tac-details{padding:14px;margin-top:14px}
  #rtp-app .tac-detail-head h3{font-size:20px}
  #rtp-app .tac-action-head strong{font-size:14px}
  #rtp-app .tac-action-head b{font-size:17px}
}

/* v3.6.1 — układ konfiguracji gracza:
   drużyna + Primary po lewej, Tac Op po prawej */
#rtp-app .setup-layout{
  grid-template-columns:minmax(320px,.78fr) minmax(500px,1.22fr);
  align-items:start;
}

#rtp-app .team-panel{
  grid-row:auto;
}

#rtp-app .tac-panel{
  grid-column:2;
  grid-row:1;
}

#rtp-app .primary-inline{
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid var(--line-soft);
}

#rtp-app .primary-inline .panel-title-row{
  margin-bottom:0;
}

#rtp-app .primary-inline .panel-title-row h2{
  margin:4px 0 0;
}

#rtp-app .primary-inline .muted{
  margin-top:10px;
}

#rtp-app .primary-inline .primary-options{
  margin-top:15px;
}

/* Stary osobny panel Primary nie powinien już występować. */
#rtp-app .primary-panel{
  display:none!important;
}

@media(max-width:980px){
  #rtp-app .setup-layout{
    grid-template-columns:1fr;
  }
  #rtp-app .team-panel,
  #rtp-app .tac-panel{
    grid-column:auto;
    grid-row:auto;
  }
  #rtp-app .primary-inline{
    margin-top:20px;
    padding-top:18px;
  }
}

/* Na telefonie kolejność naturalna:
   drużyna -> Primary -> Tac Op. */
@media(max-width:680px){
  #rtp-app .primary-inline .primary-options{
    grid-template-columns:repeat(3,1fr);
  }
}

/* v3.6.2 — mocniejsze zaznaczenie Tac Op + większa typografia pełnej karty */

/* Aktywna karta ma być oczywista nawet przy szybkim spojrzeniu. */
#rtp-app .tac-card.selected{
  transform:translateY(-1px);
  border-top-width:2px;
  border-right-width:2px;
  border-bottom-width:2px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 0 0 1px rgba(255,255,255,.08),
    0 8px 24px rgba(0,0,0,.28);
}

#rtp-app .tac-card.selected[data-arch="seek"]{
  border-color:#c54a50;
  background:linear-gradient(130deg,rgba(197,74,80,.34),rgba(197,74,80,.14) 58%,#0c1216);
}
#rtp-app .tac-card.selected[data-arch="security"]{
  border-color:#3a81bd;
  background:linear-gradient(130deg,rgba(58,129,189,.36),rgba(58,129,189,.15) 58%,#0c1216);
}
#rtp-app .tac-card.selected[data-arch="infiltration"]{
  border-color:#347052;
  background:linear-gradient(130deg,rgba(52,112,82,.38),rgba(52,112,82,.16) 58%,#0c1216);
}
#rtp-app .tac-card.selected[data-arch="recon"]{
  border-color:#72b978;
  background:linear-gradient(130deg,rgba(114,185,120,.34),rgba(114,185,120,.14) 58%,#0c1216);
}

/* Pełny opis Tac Op — większy, wygodniejszy tekst. */
#rtp-app .tac-reveal-box,
#rtp-app .tac-extra-box{
  font-size:15px;
  line-height:1.62;
}

#rtp-app .tac-action-body>p,
#rtp-app .tac-victory-intro{
  font-size:15px;
  line-height:1.6;
}

#rtp-app .tac-condition>p{
  font-size:14px;
  line-height:1.58;
}

#rtp-app .tac-rule-list li{
  font-size:14px;
  line-height:1.58;
  padding-top:11px;
  padding-bottom:11px;
}

#rtp-app .tac-rule-list li:before{
  top:11px;
}

#rtp-app .tac-cap{
  font-size:12px;
  line-height:1.45;
  padding:11px 13px;
}

@media(max-width:680px){
  #rtp-app .tac-reveal-box,
  #rtp-app .tac-extra-box,
  #rtp-app .tac-action-body>p,
  #rtp-app .tac-victory-intro{
    font-size:14px;
  }

  #rtp-app .tac-condition>p,
  #rtp-app .tac-rule-list li{
    font-size:13px;
  }
}

/* v3.7.0 — zegary, panel końca tury i dolne narzędzia */

/* Delikatnie odsuwamy prawy zestaw ikon od krawędzi na telefonach. */
@media(max-width:680px){
  #rtp-app .top-actions{margin-right:6px}
}

/* Punkty końca tury: ręczne wpisywanie + wygodne +/- */
#rtp-app .round-player label{
  grid-template-columns:1fr minmax(132px,145px);
}
#rtp-app .round-player label>span{
  font-size:11px;
  font-weight:900;
}
#rtp-app .round-score-stepper{
  display:grid;
  grid-template-columns:38px minmax(48px,1fr) 38px;
  gap:5px;
  align-items:center;
}
#rtp-app .round-score-stepper input{
  height:42px;
  min-width:0;
  padding:0 3px;
}
#rtp-app .round-score-stepper button{
  height:42px;
  border:1px solid #3a4b56;
  border-radius:9px;
  background:#131c22;
  color:#fff;
  cursor:pointer;
  font-size:22px;
  font-weight:950;
  line-height:1;
}
#rtp-app .round-score-stepper button:hover{
  border-color:var(--blue-2);
  background:#192731;
}
#rtp-app .red-tint .round-score-stepper button:hover{
  border-color:var(--red-2);
  background:rgba(183,64,70,.14);
}

/* Dolny pasek: trzy większe, jednoznaczne akcje. */
#rtp-app .play-tools{
  grid-template-columns:1fr 1.25fr 1fr!important;
  padding:9px;
}
#rtp-app .play-tools .tool-btn{
  min-height:80px;
  border-bottom:0;
}
#rtp-app .play-tools .tool-btn b{
  font-size:27px;
  line-height:1;
}
#rtp-app .play-tools .tool-btn span{
  font-size:10px;
  font-weight:850;
  line-height:1.25;
  margin-top:7px;
}
#rtp-app .play-tools .finish-tool{
  border-right:0;
}
#rtp-app .play-tools .mission-reminder-tool b{
  color:#8bc5ed;
}

/* Wybór rodzaju przypomnienia. Dialog nie zatrzymuje JS-owego zegara. */
#rtp-app .mission-reminder-choices{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}
#rtp-app .mission-reminder-choice{
  min-height:104px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0b1115;
  color:#fff;
  cursor:pointer;
  text-align:left;
}
#rtp-app .mission-reminder-choice b{
  display:block;
  font-size:20px;
}
#rtp-app .mission-reminder-choice span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  line-height:1.35;
}
#rtp-app .mission-reminder-choice.crit-choice{
  border-color:rgba(58,129,189,.55);
  background:rgba(58,129,189,.09);
}
#rtp-app .mission-reminder-choice.tac-choice{
  border-color:rgba(216,170,97,.48);
  background:rgba(216,170,97,.07);
}
#rtp-app .mission-reminder-choice:hover{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
  filter:brightness(1.12);
}

/* Przypomnienie pojawiające się pod dolnym paskiem. */
#rtp-app .play-mission-reminder{
  margin-top:12px;
  padding:18px;
  border-color:rgba(58,129,189,.44);
  background:linear-gradient(145deg,rgba(58,129,189,.08),rgba(12,17,21,.98) 38%);
}
#rtp-app .play-mission-reminder[hidden]{display:none!important}
#rtp-app .play-mission-reminder[data-kind="tac"]{
  border-color:rgba(216,170,97,.40);
  background:linear-gradient(145deg,rgba(216,170,97,.06),rgba(12,17,21,.98) 38%);
}
#rtp-app .play-reminder-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding-bottom:13px;
  margin-bottom:14px;
  border-bottom:1px solid var(--line-soft);
}
#rtp-app .play-reminder-head>div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
#rtp-app .play-reminder-head span{
  color:var(--blue-2);
  font-size:9px;
  font-weight:950;
  letter-spacing:.13em;
  text-transform:uppercase;
}
#rtp-app .play-mission-reminder[data-kind="tac"] .play-reminder-head span{
  color:#d8aa61;
}
#rtp-app .play-reminder-head strong{
  font-size:21px;
}
#rtp-app .play-reminder-close{
  width:38px;
  height:38px;
  flex:0 0 38px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0b1115;
  color:#fff;
  cursor:pointer;
  font-size:24px;
}
#rtp-app .play-reminder-summary{
  margin:0;
  color:#d1dbe0;
  font-size:15px;
  line-height:1.6;
}
#rtp-app .play-reminder-tac{
  --tac-accent:#3a81bd;
  --tac-accent-rgb:58,129,189;
  display:flex;
  flex-direction:column;
  gap:16px;
}
#rtp-app .play-reminder-tac[data-arch="seek"]{--tac-accent:#c54a50;--tac-accent-rgb:197,74,80}
#rtp-app .play-reminder-tac[data-arch="security"]{--tac-accent:#3a81bd;--tac-accent-rgb:58,129,189}
#rtp-app .play-reminder-tac[data-arch="infiltration"]{--tac-accent:#347052;--tac-accent-rgb:52,112,82}
#rtp-app .play-reminder-tac[data-arch="recon"]{--tac-accent:#72b978;--tac-accent-rgb:114,185,120}
#rtp-app .play-reminder-tac section{
  display:flex;
  flex-direction:column;
  gap:8px;
}
#rtp-app .play-reminder-label{
  color:var(--tac-accent);
  font-size:10px;
  font-weight:1000;
  letter-spacing:.12em;
  text-transform:uppercase;
}
#rtp-app .play-reminder-crit .round-reminder-head{
  display:none;
}

/* Na telefonie utrzymujemy 3 przyciski w jednym rzędzie. */
@media(max-width:680px){
  #rtp-app .play-tools{
    grid-template-columns:repeat(3,1fr)!important;
    padding:6px;
  }
  #rtp-app .play-tools .tool-btn{
    min-height:74px;
    padding:7px 4px;
  }
  #rtp-app .play-tools .tool-btn b{font-size:24px}
  #rtp-app .play-tools .tool-btn span{
    font-size:9px;
    letter-spacing:.02em;
  }
  #rtp-app .mission-reminder-choices{
    grid-template-columns:1fr;
  }
  #rtp-app .round-player label{
    grid-template-columns:1fr minmax(138px,150px);
  }
  #rtp-app .play-mission-reminder{
    padding:14px;
  }
  #rtp-app .play-reminder-head strong{
    font-size:18px;
  }
}

/* v3.7.1 — imię / nick gracza */
#rtp-app .player-name-field{margin-bottom:17px}
#rtp-app .player-name-field small{
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}
#rtp-app #playerName{letter-spacing:.01em}
#rtp-app .player-team-mini>div:last-child{min-width:0}
#rtp-app .player-team-mini>div:last-child span,
#rtp-app .player-team-mini>div:last-child strong{
  max-width:min(34vw,360px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#rtp-app .initiative-choice span,
#rtp-app .initiative-choice b,
#rtp-app .round-player>strong{overflow-wrap:anywhere}
@media(max-width:680px){
  #rtp-app .player-team-mini>div:last-child span,
  #rtp-app .player-team-mini>div:last-child strong{max-width:48vw}
}

/* v3.7.3 — mobile: oddech pod zegarami i wynik przed paskiem akcji */
@media(max-width:680px){
  /* Na ekranie gry możemy bezpiecznie sterować kolejnością bloków. */
  #rtp-app #viewPlay.active{
    display:flex;
    flex-direction:column;
  }

  #rtp-app #viewPlay>.play-context{order:1}
  #rtp-app #viewPlay>.start-banner{order:2}
  #rtp-app #viewPlay>.scoreboard{order:3}
  #rtp-app #viewPlay>.turn-controls{order:4}
  #rtp-app #viewPlay>.mobile-game-controls{order:5}

  /* Po zakończeniu bitwy wynik trafia bezpośrednio pod karty graczy. */
  #rtp-app #viewPlay>.final-result{
    order:6;
    margin-top:18px;
    margin-bottom:0;
  }

  /* Pasek nie klei się już do karty Gracza 2 / wyniku. */
  #rtp-app #viewPlay>.play-tools{
    order:7;
    margin-top:16px;
  }

  #rtp-app #viewPlay>.play-mission-reminder{
    order:8;
  }

  #rtp-app #viewPlay>.new-mission-banner{
    order:9;
  }
}

/* v3.7.4 — stabilniejsze renderowanie oficjalnego logo na iOS/Safari */
#rtp-app .access-official-logo{
  display:block;
  width:auto;
  height:auto;
  object-fit:contain;
  -webkit-transform:translateZ(0);
  transform:translateZ(0);
}
#rtp-app .official-logo{
  display:block;
  width:min(255px,100%);
  max-width:100%;
  height:auto;
  max-height:none;
  object-fit:contain;
  -webkit-transform:translateZ(0);
  transform:translateZ(0);
}
#rtp-app .official-logo-wrap{
  min-width:0;
}
@media(max-width:680px){
  #rtp-app .access-official-logo{
    width:min(100%,530px);
    height:auto;
    max-height:none;
    margin-left:auto;
    margin-right:auto;
  }
  #rtp-app .official-logo{
    width:min(235px,100%);
    height:auto;
    max-height:none;
    margin-left:auto;
    margin-right:auto;
  }
}

/* v3.7.5 — informacje prawne */
#rtp-app .legal-footer{margin:34px 0 4px;padding:18px 4px 0;border-top:1px solid var(--line-soft);color:#657680}
#rtp-app .legal-footer-main{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;font-size:10px;line-height:1.5}
#rtp-app .legal-footer-main strong{color:#9eafb9;font-size:11px;letter-spacing:.04em}
#rtp-app .legal-footer-main span{color:#71828c}
#rtp-app .legal-footer-main a{color:#83bce6;text-decoration:none;font-weight:850}
#rtp-app .legal-footer-main a:hover{text-decoration:underline}
#rtp-app .legal-footer p{max-width:1080px;margin:9px 0 0;font-size:9px;line-height:1.55;color:#53636d}

/* 2.4.5 — przywrócone oficjalne logo oraz jego wcześniejsze proporcje */
#rtp-app .official-logo{
  display:block;
  width:auto;
  max-width:min(530px,90%);
  height:auto;
  max-height:116px;
  object-fit:contain;
  object-position:left center;
  image-rendering:auto;
  filter:drop-shadow(0 12px 20px rgba(0,0,0,.45));
  -webkit-transform:translateZ(0);
  transform:translateZ(0);
}
@media(max-width:680px){
  #rtp-app .official-logo{
    width:min(100%,530px);
    max-width:100%;
    height:auto;
    max-height:none;
    margin-left:auto;
    margin-right:auto;
  }
  #rtp-app .legal-footer{margin-top:28px;padding:16px 3px calc(88px + env(safe-area-inset-bottom,0px))}
  #rtp-app .legal-footer-main{align-items:flex-start;flex-direction:column;gap:4px}
  #rtp-app .legal-footer p{margin-top:10px;font-size:8px}
}


/* v3.8.0 — wynik, dziennik, podgląd desktopowy */

/* Kolejność jest teraz taka sama na desktopie i mobile:
   gracze -> wynik końcowy -> pasek akcji. */
#rtp-app #viewPlay.active{
  display:flex;
  flex-direction:column;
}
#rtp-app #viewPlay>.play-context{order:1}
#rtp-app #viewPlay>.start-banner{order:2}
#rtp-app #viewPlay>.scoreboard{order:3}
#rtp-app #viewPlay>.turn-controls{order:4}
#rtp-app #viewPlay>.mobile-game-controls{order:5}
#rtp-app #viewPlay>.final-result{order:6;margin-top:18px;margin-bottom:0}
#rtp-app #viewPlay>.play-tools{order:7;margin-top:16px}
#rtp-app #viewPlay>.play-mission-reminder{order:8}
#rtp-app #viewPlay>.new-mission-banner{order:9}

/* Czwarty przycisk pojawia się wyłącznie po zakończeniu meczu. */
#rtp-app .play-tools.finished{
  grid-template-columns:1fr 1fr 1.25fr 1fr!important;
}
#rtp-app .play-tools .journal-tool b{
  color:#d8aa61;
}
#rtp-app .play-tools .tool-btn:disabled{
  opacity:.42;
  cursor:not-allowed;
}

/* Desktopowy podgląd — nigdy nie pojawia się na telefonie. */
#rtp-app .share-preview-dialog .share-preview-card{
  width:min(940px,94vw);
  max-width:940px;
}
#rtp-app .share-preview-card{
  max-height:min(92vh,1000px);
}
#rtp-app .share-preview-stage{
  display:grid;
  place-items:center;
  min-height:320px;
  max-height:68vh;
  margin-top:14px;
  padding:16px;
  overflow:auto;
  border:1px solid var(--line);
  border-radius:14px;
  background:
    linear-gradient(45deg,#0a0f13 25%,transparent 25%) 0 0/22px 22px,
    linear-gradient(45deg,transparent 75%,#0a0f13 75%) 0 0/22px 22px,
    linear-gradient(45deg,transparent 75%,#0a0f13 75%) 11px -11px/22px 22px,
    linear-gradient(45deg,#0a0f13 25%,#0e151a 25%) 11px -11px/22px 22px;
}
#rtp-app .share-preview-stage img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:62vh;
  height:auto;
  border-radius:8px;
  box-shadow:0 18px 50px rgba(0,0,0,.42);
}
#rtp-app .share-preview-actions{
  justify-content:flex-end;
}

@media(max-width:899px){
  #rtp-app .share-preview-dialog{
    display:none!important;
  }
}

@media(max-width:680px){
  /* Cztery akcje po bitwie w czytelnym układzie 2 × 2. */
  #rtp-app .play-tools.finished{
    grid-template-columns:repeat(2,1fr)!important;
  }
  #rtp-app .play-tools.finished .tool-btn{
    min-height:70px;
  }
}


/* v3.8.2 — rozliczenie bonusów końcowych */
#rtp-app .final-bonus-card{
  max-width:900px;
}
#rtp-app .final-bonus-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:20px;
}
#rtp-app .final-bonus-player{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:#0b1115;
}
#rtp-app .final-bonus-player.red{border-color:rgba(183,64,70,.55)}
#rtp-app .final-bonus-player.blue{border-color:rgba(58,129,189,.55)}

#rtp-app .final-bonus-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:17px;
  border-bottom:1px solid var(--line-soft);
}
#rtp-app .final-bonus-head>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:3px;
}
#rtp-app .final-bonus-head span{
  color:var(--muted);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
#rtp-app .final-bonus-head strong{
  font-size:20px;
  overflow-wrap:anywhere;
}
#rtp-app .final-bonus-head small{
  color:var(--muted);
  line-height:1.4;
}
#rtp-app .final-bonus-head>b{
  flex:0 0 auto;
  font-size:27px;
}
#rtp-app .final-bonus-player.red .final-bonus-head>b{color:#df7379}
#rtp-app .final-bonus-player.blue .final-bonus-head>b{color:#72b8e8}

#rtp-app .final-bonus-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 10px;
  padding:14px 17px;
  border-bottom:1px solid var(--line-soft);
}
#rtp-app .final-bonus-row>span{
  font-size:12px;
  font-weight:850;
}
#rtp-app .final-bonus-row>strong{
  grid-row:1/3;
  grid-column:2;
  align-self:center;
  font-size:25px;
}
#rtp-app .final-bonus-row>small{
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}

#rtp-app .final-bonus-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:16px 17px;
}
#rtp-app .final-bonus-total span{
  font-size:10px;
  font-weight:950;
  letter-spacing:.11em;
  color:var(--muted);
}
#rtp-app .final-bonus-total b{
  font-size:28px;
}
#rtp-app .final-bonus-player.red .final-bonus-total b{color:#df7379}
#rtp-app .final-bonus-player.blue .final-bonus-total b{color:#72b8e8}

@media(max-width:680px){
  #rtp-app .final-bonus-grid{grid-template-columns:1fr}
  #rtp-app .final-bonus-head strong{font-size:18px}
  #rtp-app .final-bonus-head>b{font-size:24px}
}


/* v3.8.3 — podgląd udostępniania: stały nagłówek i akcje */
#rtp-app .share-preview-dialog{
  width:min(940px,calc(100vw - 32px));
  max-width:none;
  overflow:visible;
}
#rtp-app .share-preview-dialog .share-preview-card{
  /* Nie przewijamy całego modala. Scrolluje wyłącznie środkowy podgląd. */
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  width:100%;
  max-width:none;
  height:min(92vh,1000px);
  max-height:min(92vh,1000px);
  overflow:hidden!important;
}

#rtp-app .share-preview-card>.modal-head{
  position:relative;
  z-index:4;
  margin:0;
  padding-bottom:14px;
  background:inherit;
}

#rtp-app .share-preview-card>.modal-head .close-x{
  position:relative;
  z-index:5;
  flex:0 0 auto;
}

#rtp-app .share-preview-card>#sharePreviewText{
  margin:0 0 12px;
}

#rtp-app .share-preview-card>.share-preview-stage{
  min-height:0;
  max-height:none;
  overflow:auto;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  margin-top:0;
}

#rtp-app .share-preview-card>.share-preview-actions{
  position:relative;
  z-index:4;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line-soft);
  background:inherit;
  flex:0 0 auto;
}

/* Przy małej wysokości ekranu modal nadal mieści nagłówek i przyciski,
   a zmniejsza się wyłącznie przestrzeń na grafikę. */
@media(min-width:900px) and (max-height:720px){
  #rtp-app .share-preview-dialog .share-preview-card{
    height:94vh;
    max-height:94vh;
    padding-top:18px;
    padding-bottom:18px;
  }
  #rtp-app .share-preview-card>.modal-head{
    padding-bottom:9px;
  }
  #rtp-app .share-preview-card>#sharePreviewText{
    margin-bottom:8px;
    font-size:12px;
  }
  #rtp-app .share-preview-card>.share-preview-actions{
    margin-top:9px;
    padding-top:9px;
  }
}


/* v3.8.4 — mobile: przywrócone etykiety CP / ZABICI */
@media(max-width:680px){
  #rtp-app .player-controls .counter{
    display:grid;
    grid-template-columns:25px minmax(18px,auto) 25px;
    grid-template-rows:auto 27px;
    align-items:center;
    justify-content:center;
    column-gap:6px;
    row-gap:2px;
    min-height:58px;
    padding:5px 4px;
  }

  #rtp-app .player-controls .counter span{
    display:block;
    grid-column:1/-1;
    grid-row:1;
    text-align:center;
    font-size:8px;
    line-height:1;
    letter-spacing:.09em;
    white-space:nowrap;
  }

  #rtp-app .player-controls .counter button:first-of-type{
    grid-column:1;
    grid-row:2;
  }

  #rtp-app .player-controls .counter>b{
    grid-column:2;
    grid-row:2;
    text-align:center;
  }

  #rtp-app .player-controls .counter button:last-of-type{
    grid-column:3;
    grid-row:2;
  }
}

#rtp-app{display:block;width:100%;min-height:100vh;color:var(--text);background:var(--bg);isolation:isolate}
#rtp-app .topbar{justify-content:center}
#rtp-app .top-actions{margin-left:0;margin-right:0;justify-content:center}
#rtp-app [hidden]{display:none!important}
#rtp-app .topbar{position:relative!important;top:auto!important}
#rtp-app .stepper{top:var(--rtp-wordpress-header-offset,0px)!important}
#rtp-app .year-picker{flex-wrap:wrap}
#rtp-app .year-picker button{min-width:120px}
#rtp-app .team-catalog-filter{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0 18px;padding:5px;border:1px solid var(--line);border-radius:13px;background:#0b1115}
#rtp-app .team-catalog-filter button{min-height:38px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:11px;font-weight:800;line-height:1;letter-spacing:.07em;text-transform:uppercase;cursor:pointer}
#rtp-app #teamSelect,#rtp-app #teamSelect option{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
#rtp-app .team-catalog-filter button.active{border-color:rgba(78,167,224,.55);background:linear-gradient(135deg,#22618b,#173f5b);color:#fff;box-shadow:0 5px 15px rgba(24,93,139,.24)}
#rtp-app .team-catalog-filter button[data-team-scope=archive]:not(.active){opacity:.55}
#rtp-app .team-catalog-filter button[data-team-scope=archive].active{border-color:rgba(231,92,101,.62);background:linear-gradient(135deg,#9d343d,#67242b);color:#fff;box-shadow:0 5px 15px rgba(126,38,46,.28)}
#rtp-app .team-ownership-filter{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:-8px 0 18px;padding:5px;border:1px solid var(--line);border-radius:13px;background:#0b1115}
#rtp-app .team-ownership-filter[hidden]{display:none!important}
#rtp-app .team-ownership-filter button{min-height:38px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:11px;font-weight:800;line-height:1;letter-spacing:.07em;text-transform:uppercase;cursor:pointer}
#rtp-app .team-ownership-filter button.active{border-color:rgba(78,167,224,.55);background:linear-gradient(135deg,#22618b,#173f5b);color:#fff;box-shadow:0 5px 15px rgba(24,93,139,.24)}

/* 2.5.1 — opcjonalne pakiety bez przesuwania standardowego nagłówka */
#rtp-app .mission-hero{align-items:center}
#rtp-app .ops-mode-wrap{display:grid;gap:8px;min-width:min(100%,390px)}
#rtp-app .ops-mode-picker{display:flex;flex-wrap:wrap;gap:6px;padding:5px;border:1px solid var(--line);border-radius:13px;background:#0b1115}
#rtp-app .ops-mode-picker button{flex:1 1 105px;min-height:38px;margin:0;padding:8px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--muted);font:800 10px/1 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.08em;cursor:pointer}
#rtp-app .ops-mode-picker button.active{border-color:rgba(78,167,224,.55);background:linear-gradient(135deg,#22618b,#173f5b);color:#fff;box-shadow:0 5px 15px rgba(24,93,139,.24)}
#rtp-app .extended-package-select{width:100%;min-width:210px;margin:0;border-color:rgba(78,167,224,.38)}
#rtp-app .extended-select-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;width:min(100%,480px)}
#rtp-app .extended-select-grid label{display:grid;min-width:0;gap:6px;text-align:left}
#rtp-app .extended-select-grid label>span{color:var(--muted);font:900 8px/1 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.15em}
#rtp-app .extended-package-select{display:block;min-width:0;max-width:100%;min-height:44px;padding:0 38px 0 13px;border:1px solid rgba(78,167,224,.38);border-radius:11px;background-color:#0b1115;color:var(--text);font:800 12px/1.2 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:inset 0 1px rgba(255,255,255,.025)}
#rtp-app .extended-package-select:focus{outline:2px solid rgba(78,167,224,.32);outline-offset:1px;border-color:var(--blue-2)}
#rtp-app .extended-limit-chip{border-color:rgba(216,170,97,.45);color:#e1bd7d}
#rtp-app .rtpeo-extended-section .crit-info-box> :first-child{margin-top:0}
#rtp-app .rtpeo-extended-section .crit-info-box> :last-child{margin-bottom:0}
#rtp-app .rtpeo-extended-section .crit-info-box ul,#rtp-app .round-reminder-extra ul{padding-left:20px}
#rtp-app .rtpeo-victory-table-display{display:grid;gap:7px;margin:10px 0}
#rtp-app .rtpeo-victory-table-title{color:#dbe7ee;font-size:11px;letter-spacing:.04em}
#rtp-app .rtpeo-victory-table-scroll{max-width:100%;overflow-x:auto;border:1px solid rgba(78,167,224,.28);border-radius:10px;background:#080d11;-webkit-overflow-scrolling:touch}
#rtp-app .rtpeo-victory-table-display table{width:100%;min-width:360px;border-collapse:collapse;color:#dbe3e8;font-size:11px;line-height:1.4}
#rtp-app .rtpeo-victory-table-display th,#rtp-app .rtpeo-victory-table-display td{min-width:95px;padding:9px 10px;border-right:1px solid rgba(255,255,255,.075);border-bottom:1px solid rgba(255,255,255,.075);text-align:left;vertical-align:top;white-space:normal}
#rtp-app .rtpeo-victory-table-display th:last-child,#rtp-app .rtpeo-victory-table-display td:last-child{border-right:0}
#rtp-app .rtpeo-victory-table-display tbody tr:last-child td{border-bottom:0}
#rtp-app .rtpeo-victory-table-display th{background:rgba(58,129,189,.17);color:#8fc7ed;font-size:9px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
#rtp-app .rtpeo-victory-table-display.is-compact table{font-size:10px}
#rtp-app .rtpeo-victory-table-display.is-compact th,#rtp-app .rtpeo-victory-table-display.is-compact td{padding:7px 8px}
#rtp-app .tp-strip{flex-wrap:wrap}
@media(max-width:1100px){
  #rtp-app .mission-hero{align-items:center}
  #rtp-app .ops-mode-wrap{min-width:0;width:100%}
  #rtp-app .extended-package-select{min-width:0}
  #rtp-app .extended-select-grid{grid-template-columns:1fr;width:100%}
}
@media(max-width:680px){
  #rtp-app .ops-mode-wrap{gap:12px}
  #rtp-app .extended-select-grid{gap:12px;margin-top:2px}
  #rtp-app .extended-select-grid label{gap:8px}
  #rtp-app .extended-select-grid label>span{font-size:10px;line-height:1.2}
  #rtp-app .ops-mode-picker button{min-height:48px;font-size:11px}
  #rtp-app .extended-package-select{min-height:56px;padding:0 45px 0 15px;font-size:16px;line-height:1.25;border-radius:13px}
  #rtp-app .extended-package-select option{font-size:16px}
  #rtp-app .rtpeo-victory-table-display table{min-width:420px;font-size:12px}
  #rtp-app .rtpeo-victory-table-display th{font-size:10px}
  #rtp-app .rtpeo-victory-table-display th,#rtp-app .rtpeo-victory-table-display td{padding:10px}
}

/* 2.6.0 — rozbudowane zegary i zatrzymana faza Strategy */
#rtp-app .timer-mode{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#rtp-app .timer-mode button{min-width:0;padding:10px 7px;font-size:9px}
#rtp-app .clock-mode-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#rtp-app .strategy-cp-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}
#rtp-app .strategy-player{display:grid;gap:10px;padding:18px;border:1px solid var(--line);border-radius:15px;text-align:center}
#rtp-app .strategy-player>strong{min-height:38px;font-size:15px;line-height:1.25}
#rtp-app .strategy-player>span{color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.13em}
#rtp-app .strategy-counter{display:grid;grid-template-columns:46px 1fr 46px;align-items:center;gap:9px}
#rtp-app .strategy-counter button{width:46px;height:46px;border:1px solid var(--line);border-radius:11px;background:#080c0f;color:#fff;font-size:25px;font-weight:900;cursor:pointer}
#rtp-app .strategy-counter button:hover{border-color:var(--blue-2);background:#111a20}
#rtp-app .strategy-counter b{font-size:34px}
#rtp-app .strategy-dialog .modal-actions .btn{min-width:210px}
@media(max-width:680px){
  #rtp-app .timer-mode{grid-template-columns:1fr 1fr}
  #rtp-app .clock-mode-fields,#rtp-app .strategy-cp-grid{grid-template-columns:1fr}
  #rtp-app:fullscreen .top-actions,#rtp-app:-webkit-full-screen .top-actions{top:6px;right:7px;padding:3px}
}
