@font-face{font-family:AulaGame;font-style:normal;font-weight:800;font-display:swap;src:url('../fonts/aula-game-latin.woff2') format('woff2')}
.ats-module{height:100%;min-height:0;position:relative;display:flex;flex-direction:column;overflow:hidden;container-type:inline-size;background:#102b3a;color:#18323a}
.ats-module .ats-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none;padding:8px 12px;background:#f5faf7;border-bottom:1px solid #d9e7e1}
.ats-module .awc-modes,.ats-module .awc-actions{display:flex;gap:6px;align-items:center;min-width:0}
.ats-module button{min-width:44px;min-height:44px;font-family:inherit;font-weight:600;font-size:15px;line-height:1.2;touch-action:manipulation;cursor:pointer}
.ats-module .ats-icon{width:44px;height:44px;padding:10px;flex:none;border-radius:12px}
.ats-module .ats-icon svg{width:24px;height:24px}
.ats-module .ats-game-summary{border-radius:14px;background:#e8f3ed;border:1px solid #c4ded3;color:#1d6559;padding:10px 16px}
.ats-module .ats-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(var(--ats-columns,2),minmax(0,1fr));grid-template-rows:repeat(var(--ats-rows,2),minmax(180px,1fr));gap:clamp(10px,1.2cqw,18px);padding:clamp(10px,1.3cqw,18px);overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 50% 0,#265267 0,transparent 70%),#102b3a}
.ats-module .ats-team{position:relative;isolation:isolate;min-width:0;min-height:180px;container-type:size;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:clamp(9px,1.2cqw,12px);overflow:hidden;border:2px solid color-mix(in srgb,var(--ats-team-color) 60%,#274154);border-radius:20px;background:#284e60;box-shadow:0 4px 0 #081b2766}
.ats-module .ats-landscape,.ats-module .ats-shade{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;user-select:none;z-index:-2}
.ats-module .ats-landscape{display:block;object-fit:cover}
.ats-module .ats-shade{z-index:-1;background:linear-gradient(180deg,#071e3a62 0%,#072b4250 45%,#061b38a8 100%)}
.ats-module .ats-team-name{display:flex;gap:8px;justify-content:center;align-items:center;flex:none;min-height:40px;max-width:100%;padding:7px 10px;color:#fff;background:#09233cb3;border:1px solid #ffffff45;border-radius:12px;font-size:clamp(16px,4.5cqw,23px);text-shadow:0 1px 2px #0a2133}
.ats-module .ats-team-name:hover{background:#112d46e6;border-color:#fff;color:#fff}
.ats-module .ats-team-name span{display:block;min-width:0;overflow-wrap:anywhere;line-height:1.15;text-align:center}
.ats-module .ats-team-name i{width:16px;height:16px;flex:none;opacity:.8;display:flex}
.ats-module .ats-team-name i svg{width:16px;height:16px}
.ats-module .ats-score{display:flex;align-items:center;justify-content:center;flex:1;min-height:40px;font-weight:800;font-size:clamp(40px,min(30cqw,calc(100cqh - 106px)),160px);line-height:1;color:#fff;font-variant-numeric:tabular-nums;text-shadow:0 3px 0 #0b263dc9,0 0 18px #071e39;letter-spacing:-.03em;text-align:center}
.ats-module .ats-score[data-digits="4"]{font-size:clamp(36px,min(24cqw,calc(100cqh - 106px)),130px)}
.ats-module .ats-score[data-digits="5"]{font-size:clamp(32px,min(20cqw,calc(100cqh - 106px)),110px)}
.ats-module .ats-controls{display:grid;grid-template-columns:1fr 1fr;gap:9px;flex:none}
.ats-module .ats-controls button{font-size:clamp(22px,6.3cqw,32px);min-height:48px;padding:6px 10px;border-radius:13px;border:1px solid #ffffff85;box-shadow:0 3px 0 #061b3880;font-weight:750;color:#102f40}
.ats-module .ats-minus{background:#fffffff0}.ats-module .ats-minus:hover{background:#fff;color:#102f40;border-color:#fff}
.ats-module .ats-plus{background:var(--ats-team-color)}.ats-module .ats-plus:hover{background:color-mix(in srgb,var(--ats-team-color) 75%,#fff);color:#102f40;border-color:#fff}
.ats-module .ats-controls button:active{transform:translateY(2px);box-shadow:none}.ats-module .ats-controls button:disabled{opacity:.45}
.ats-module .ats-point-pulse .ats-score{animation:ats-point-pop .25s ease-out}
@keyframes ats-point-pop{45%{color:var(--ats-team-color);text-shadow:0 3px 0 #0b263dc9,0 0 24px #ffffff9c}}
.ats-module .ats-options,.ats-module .ats-team-editor{position:absolute;right:8px;top:62px;bottom:8px;width:min(420px,calc(100% - 16px));display:flex;flex-direction:column;gap:16px;padding:16px;background:#fff;color:#18323a;z-index:15;border:1px solid #cfdfd7;border-radius:18px;box-shadow:0 12px 40px #10273340;overflow:auto;overscroll-behavior:contain}
.ats-module .ats-team-editor{overflow:hidden}
.ats-module .ats-options header,.ats-module .ats-team-editor header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.ats-module .ats-options header strong,.ats-module .ats-team-editor header strong{font-size:22px;line-height:1.2}
.ats-module .ats-setting{flex:none;border-top:1px solid #e0e9e4;padding-top:14px}
.ats-module h3{margin:0 0 10px;font-size:16px}
.ats-module .ats-counts,.ats-module .ats-steps{display:flex;gap:7px;flex-wrap:wrap}
.ats-module .ats-counts button{width:49px;font-size:20px;padding:8px}
.ats-module button[aria-pressed=true]{background:#e4f5ed;border-color:#168477;color:#176d62}
.ats-module .ats-name-form{display:grid;gap:10px;flex:none}
.ats-module .ats-name-form label{display:grid;gap:7px;font-size:15px;font-weight:600}
.ats-module .ats-name-form input{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #c9dcd2;border-radius:10px;font-family:inherit;font-size:16px;line-height:1.3;background:#fff;color:#18323a}
.ats-module .ats-primary{color:#fff;background:#128477;border-color:#128477}.ats-module .ats-primary:hover{color:#fff;background:#0e7367;border-color:#0e7367}
.ats-module .ats-scene-heading{flex:none;margin:0}
.ats-module .ats-scene-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;gap:9px;min-height:80px;flex:1;overflow:auto;align-content:start;padding:3px;overscroll-behavior:contain}
.ats-module .ats-scene-choice{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:0;border:2px solid #d8e5df;background:#fff;border-radius:11px;overflow:hidden;align-self:start}
.ats-module .ats-scene-choice img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.ats-module .ats-scene-choice span{padding:7px 4px;font-size:12px;line-height:1.2;overflow-wrap:anywhere;text-align:center;min-height:34px;display:flex;align-items:center;justify-content:center}
.ats-module .ats-scene-choice[aria-pressed=true]{outline:2px solid #168477;outline-offset:1px}
.ats-module .ats-confirm{display:flex;gap:8px;flex-wrap:wrap;align-items:center;flex:none;padding:12px;background:#fff8e8;color:#5b4926;border:1px solid #e8d5ab;border-radius:12px}
.ats-module .ats-confirm p{width:100%;margin:0;font-size:15px;line-height:1.35}
@container(max-width:750px){.ats-module .ats-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:minmax(190px,1fr)}.ats-module[data-team-count="3"] .ats-team:last-child{grid-column:1/-1}.ats-module .ats-scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:430px){.ats-module .ats-grid{padding:8px;gap:8px;grid-auto-rows:minmax(185px,1fr)}.ats-module .ats-team{padding:9px;border-radius:15px;gap:5px}.ats-module .ats-team-name{font-size:14px;padding:6px;min-height:40px;gap:5px}.ats-module .ats-team-name i{display:none}.ats-module .ats-controls{gap:6px}.ats-module .ats-controls button{min-height:44px;font-size:22px;padding:5px}.ats-module .ats-top{padding:6px}.ats-module .ats-options,.ats-module .ats-team-editor{padding:12px;top:60px;gap:12px}.ats-module .ats-counts{gap:5px}.ats-module .ats-counts button{width:44px}}
@media(prefers-reduced-motion:reduce){.ats-module .ats-point-pulse .ats-score{animation:none}}
/* The game takes the whole board; leaving it restores the original chrome. */
.aw-app.aw-team-game>.aw-stage{inset:0!important;z-index:36!important;border-radius:0!important}
.aw-app.aw-team-game>.aw-brand,.aw-app.aw-team-game>.aw-rail,.aw-app.aw-team-game>.aw-top-actions,.aw-app.aw-team-game>.aw-dock,.aw-app.aw-team-game>.aw-page-controls,.aw-app.aw-team-game>.aw-minimized,.aw-app.aw-team-game>.aw-focus-back,.aw-app.aw-team-game>.aw-ink-plane,.aw-app.aw-team-game>.aw-laser{display:none!important}
.aw-app.aw-team-game .aw-window[data-type=team-score]{border:0!important;border-radius:0!important;box-shadow:none}
.aw-app.aw-team-game .aw-window[data-type=team-score]>.aw-window-header,.aw-app.aw-team-game .aw-window[data-type=team-score]>.aw-resize,.aw-app.aw-team-game .aw-floating-clock,.aw-app.aw-team-game .aw-floating-timer{display:none!important}
.aw-app.aw-team-game .aw-window[data-type=team-score]>.aw-module-host{height:100%;flex:1;min-height:0;border-radius:0;padding:0}
.ats-module .ats-team-name,.ats-module .ats-podium-card>strong{font-family:AulaGame,system-ui,sans-serif;font-weight:800;line-height:1.12;letter-spacing:.01em}
.ats-module .ats-top{padding:9px 14px;background:linear-gradient(110deg,#f7fbf8,#eaf5ef);min-height:62px}
.ats-module .ats-mode-button{width:auto;max-width:none;gap:7px;padding:8px 11px}
.ats-module .ats-mode-button>span{font-size:14px;white-space:nowrap}
.ats-module .ats-goal-summary{padding:6px 10px;border-radius:10px;background:#fff2c8;color:#725623;font-size:13px;white-space:nowrap}
.ats-module .ats-finish-ready{border-color:#d7aa46;background:#fff4cd;color:#866119;box-shadow:0 0 0 2px #f3d37a55}
.ats-module .ats-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px}
.ats-module .ats-controls button{width:56px;max-width:62px;flex:0 1 56px;min-width:44px;min-height:44px;height:44px;padding:4px;font-size:20px;border-radius:12px}
.ats-module .ats-controls .ats-penalty{display:inline-flex;align-items:center;justify-content:center;gap:2px;background:#672a4cdc;color:#fff;border-color:#ffd2dc9c}
.ats-module .ats-penalty>span{font-size:20px}.ats-module .ats-penalty>i,.ats-module .ats-penalty svg{display:flex;width:19px;height:19px;flex:none}.ats-module .ats-penalty svg{fill:#ffb0bf;stroke:#ffb0bf;stroke-width:1}
.ats-module .ats-controls .ats-penalty:hover{background:#7a3158;color:#fff;border-color:#ffd2dc}
.ats-module .ats-lives{display:flex;justify-content:center;align-items:center;gap:7px;min-height:24px;flex:none}
.ats-module .ats-heart,.ats-module .ats-heart svg{display:block;width:23px;height:23px;color:#ff9dae;flex:none}
.ats-module .ats-heart svg{fill:currentColor;stroke:#ffe9ed;stroke-width:1.2;filter:drop-shadow(0 1px 2px #102b3a80)}
.ats-module .ats-heart.is-empty svg{fill:#132e4570;stroke:#ffd6df9c;filter:none}
.ats-module .ats-progress{height:5px;width:100%;max-width:240px;margin:0 auto;background:#092b4a90;overflow:hidden;border-radius:4px;flex:none;border:1px solid #ffffff30}
.ats-module .ats-progress i{display:block;height:100%;background:#ffe295;transition:width .2s ease-out;border-radius:inherit}
.ats-module .ats-goal-met{border-color:#ffe295;box-shadow:0 0 0 1px #ffe29580,0 4px 0 #081b2766}
.ats-module .ats-switches{display:grid;gap:10px}
.ats-module .ats-switches label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px}
.ats-module .ats-switches input{width:22px;height:22px;flex:none;accent-color:#128477}
.ats-module .ats-goals{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px}
.ats-module .ats-goals button{min-width:52px}
.ats-module .ats-custom-goal{display:flex;gap:8px;align-items:end}
.ats-module .ats-custom-goal label{display:grid;gap:5px;font-size:13px;flex:1;min-width:0}
.ats-module .ats-custom-goal input{width:100%;min-width:0;min-height:44px;border:1px solid #cbded4;border-radius:10px;padding:8px;font:inherit;background:#fff;color:#18323a}
.ats-module .ats-life-pulse .ats-lives{animation:ats-life-loss .3s ease-out}
.ats-module .ats-goal-spark{animation:ats-goal-spark .6s ease-out}
@keyframes ats-life-loss{25%{transform:translateX(-3px)}60%{transform:translateX(3px)}}
@keyframes ats-goal-spark{50%{box-shadow:0 0 0 4px #ffe295aa,0 0 26px #ffe29570}}
.ats-module .ats-podium{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;gap:15px;overflow:auto;padding:24px;color:#fff;text-align:center;background:radial-gradient(ellipse at 50% 0,#315b70 0,transparent 65%),#102b3a}
.ats-module .ats-podium-trophy,.ats-module .ats-podium-trophy svg{width:62px;height:62px;color:#ffe09b;flex:none}
.ats-module .ats-podium h2{font-family:AulaGame,system-ui,sans-serif;font-size:clamp(28px,3.7cqw,52px);line-height:1.15;margin:0;flex:none;font-weight:800}
.ats-module .ats-podium-caption{font-size:clamp(16px,1.9cqw,24px);line-height:1.3;margin:0;flex:none;color:#e8f2f7}
.ats-module .ats-podium-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:100%;max-width:1100px;flex:none}
.ats-module .ats-podium-card{position:relative;isolation:isolate;overflow:hidden;min-width:0;min-height:220px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;padding:18px;border:2px solid #b7d7e3;border-radius:20px;background:#224154}
.ats-module .ats-podium-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.ats-module .ats-podium-card:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#102b3a60,#102b3ab0)}
.ats-module .ats-podium-card[data-team-rank="1"]{border-color:#ffe09b;box-shadow:0 0 0 2px #ffe09b38}
.ats-module .ats-rank{width:66px;height:66px;display:flex;justify-content:center;align-items:center;border-radius:50%;background:#102b3ade;border:2px solid #ffe09b;color:#ffe09b;font-size:42px;font-weight:800;flex:none}
.ats-module .ats-podium-card>strong{font-size:clamp(22px,2.2cqw,34px);overflow-wrap:anywhere;max-width:100%}
.ats-module .ats-podium-points{font-size:clamp(18px,2.1cqw,28px);font-weight:700}
.ats-module .ats-podium-rest{display:flex;gap:8px 18px;justify-content:center;flex-wrap:wrap;max-width:1100px;font-size:17px;line-height:1.3;flex:none}
.ats-module .ats-podium-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;flex:none}
@container(max-width:750px){.ats-module .ats-mode-button>span{display:none}.ats-module .ats-mode-button{width:44px;padding:10px}.ats-module .ats-top{padding:7px 9px}.ats-module .ats-goal-summary{font-size:12px;padding:5px 7px}.ats-module .ats-podium-cards{gap:10px}.ats-module .ats-podium-card{min-height:190px;padding:12px;gap:10px}}
@container(max-width:430px){.ats-module .ats-top{gap:6px;padding:6px;flex-wrap:wrap}.ats-module .ats-top .awc-actions{gap:3px}.ats-module .ats-top .awc-modes{gap:4px}.ats-module .ats-game-summary{font-size:13px;padding:9px}.ats-module .ats-controls{gap:6px}.ats-module .ats-controls button{font-size:18px;width:50px;flex-basis:50px}.ats-module .ats-lives{gap:4px}.ats-module .ats-heart,.ats-module .ats-heart svg{width:20px;height:20px}.ats-module .ats-podium{padding:16px 12px;gap:12px}.ats-module .ats-podium-cards{grid-template-columns:1fr}.ats-module .ats-podium-card{min-height:165px}.ats-module .ats-podium-rest{font-size:15px}}
@media(prefers-reduced-motion:reduce){.ats-module .ats-life-pulse .ats-lives,.ats-module .ats-goal-spark{animation:none}.ats-module .ats-progress i{transition:none}}

/* Linked teams retain their points while their organisation changes. */
.ats-module .ats-organize{display:flex;align-items:center;gap:7px;width:auto;padding:10px 12px}.ats-organize>span{font-size:13px;white-space:nowrap}.ats-members-count{font:600 12px/1.2 system-ui,sans-serif;color:#fff;text-shadow:0 1px 3px #142636;margin:-2px 0 0}.ats-module .ats-team-editor:has(.ats-members){overflow:auto}.ats-members{border:1px solid #d9e5df;border-radius:12px;background:#f6faf7;padding:12px}.ats-members h3{font-size:15px;margin:0 0 8px}.ats-members ul{list-style:none;display:flex;flex-direction:column;gap:6px;margin:0;padding:0}.ats-members li{font-size:16px;line-height:1.3;overflow-wrap:anywhere}.ats-linked-note{font-size:14px;margin:0 0 10px;color:#416d60}.ats-linked-note+button{min-height:44px}.ats-link-paused{flex:none;margin:0;padding:8px 12px;background:#fff4db;color:#7d5c16;font-size:13px;line-height:1.4}.ats-module .ats-name-form input[readonly]{background:#f3f7f4;color:#4e6c61}
@container(max-width:750px){.ats-module .ats-organize{width:44px;padding:10px}.ats-organize>span{display:none}}
