/* Stratego Game theme, part 1: tokens, base, header, hero and stage. site.py push joins site/theme/style/*.css in name order into the one style.css the engine accepts. */
@font-face{font-family:'Archivo';font-style:normal;font-weight:400 800;font-stretch:62% 125%;font-display:swap;src:url(https://img.stratego-game.app/s_3q6y1v5j1v2g2a/archivo-latin.4c98b9d490.woff2) format('woff2')}
:root{
  --bg:#E8ECE4;--surface:#F5F7F2;--footer-bg:#DEE4D9;--hover:#DCE3D6;
  --ink:#17231C;--muted:#46564C;--line:#C9D3C4;--line-strong:#A9B6A3;
  --red:#B32F28;--blue:#284D9A;--red-soft:#E9C9C2;--blue-soft:#C8D3E8;--lake:#3C7DA3;--lake-soft:#BBD3DF;
  --cell:#DCE3D6;--reach:#F2D27A;
  --accent:#B32F28;--accent-hover:#97261F;--on-accent:#fff;
  --link:#284D9A;--link-hover:#17336E;--focus:#E0A100;
  --stage-bg:#17231C;--on-stage:#E8ECE4;
  --font:'Archivo',system-ui,sans-serif;--wide:122%;
  --radius-s:6px;--radius-l:10px;--measure:66ch;--header-h:64px;
  --h1:clamp(2.3rem,4.6vw,3.5rem);
  /* faint contour lines, like a field map: the page heads and the footer share them */
  --contour:repeating-radial-gradient(ellipse 60% 48% at 12% 18%,transparent 0 26px,rgba(23,35,28,.07) 26px 27px),repeating-radial-gradient(ellipse 50% 40% at 92% 70%,transparent 0 22px,rgba(23,35,28,.055) 22px 23px);
}

/* base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
body{margin:0;background:var(--bg);color:var(--ink);font:1.0625rem/1.65 var(--font);text-rendering:optimizeLegibility}
img,svg{display:block;max-width:100%}
a{color:var(--link);text-underline-offset:.18em;text-decoration-thickness:1px}
a:hover{color:var(--link-hover)}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
button,input,textarea,select{font:inherit;color:inherit}
[id]{scroll-margin-top:calc(var(--header-h) + 8px)}
.wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-9999px}
.skip:focus{left:12px;top:12px;z-index:30;background:var(--surface);padding:8px 12px}

/* header: sticky, so the menu is one tap away anywhere on the page */
.site-header{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line)}
.site-header__in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 24px;min-height:var(--header-h)}
.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap;color:var(--ink);text-decoration:none;font-weight:800;font-stretch:var(--wide);font-size:1.25rem;letter-spacing:.01em}
.brand:hover{color:var(--ink)}
.brand__mark{width:26px;height:26px}
.brand__red{fill:var(--red)}.brand__blue{fill:var(--blue)}.brand__lake{fill:var(--lake-soft)}
/* nav: two play links (triangle) and three guides (square slot); the current page fills its marker red */
.site-nav{display:flex;align-items:center;gap:2px}
.site-nav a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border-radius:var(--radius-s);white-space:nowrap;color:var(--muted);text-decoration:none;font-weight:600;font-size:.95rem;transition:color .15s ease,background-color .15s ease}
.site-nav a:not(.site-nav__play)::before{content:"";flex:none;width:7px;height:7px;border-radius:1.5px;background:var(--line-strong);transition:background-color .15s ease}
.site-nav__play svg{flex:none;width:10px;height:10px;fill:var(--line-strong);transition:fill .15s ease}
.site-nav a:hover{color:var(--ink);background:var(--hover)}
.site-nav a[aria-current="page"]{color:var(--ink)}
.site-nav a[aria-current="page"]::before{background:var(--accent)}
.site-nav a[aria-current="page"] svg,.site-nav__play:hover svg{fill:var(--accent)}
.site-nav__sep{width:1px;height:22px;margin:0 8px;background:var(--line-strong)}
.menu-toggle{display:none}
/* narrow tablets: tighten the nav so brand and links stay on one row and the header keeps its height */
@media (min-width:721px) and (max-width:900px){.brand{font-size:1.1rem}.site-nav a{gap:6px;padding:0 8px;font-size:.9rem}.site-nav__sep{margin:0 4px}}

/* hero + stage */
.hero{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:12px;background:var(--contour)}
.hero__in{display:flex;flex-direction:column;gap:16px;padding:24px 20px 0}
/* the frame below is centred and full width, so the title and its one-line pitch centre over it */
.hero__text{display:grid;gap:10px;justify-items:center;text-align:center;padding:4px 0 6px}
.hero h1{margin:0;font-weight:800;font-stretch:var(--wide);font-size:var(--h1);line-height:1.02}
.hero__tagline{margin:0;max-width:60ch;color:var(--muted);font-size:1.15rem;line-height:1.5;text-wrap:balance}
/* one frame size before and after Play, on both game pages, so nothing jumps; Master of the Flag's page is about 850px tall */
.stage{position:relative;height:clamp(420px,calc(100svh - var(--header-h) - 120px),820px);overflow:hidden;border:1px solid var(--line-strong);border-radius:var(--radius-l);background:var(--stage-bg)}
/* Master of the Flag draws a fixed page about 850px tall: give it the whole screen under the header, cover included */
.hero--inner .stage{height:clamp(420px,calc(100svh - var(--header-h) - 8px),860px)}
/* once it runs, the frame takes the game's own height (measured: about 850px in its wide layout, up to 1200px where it stacks),
   so the page scrolls to Start Game and to your own rows instead of a second scrollbar inside the frame */
.hero--inner .stage[data-gf-state]{height:860px}
@media (max-width:1019px){.hero--inner .stage[data-gf-state]{height:1200px}}
.stage__cover,.stage__loading{position:absolute;inset:0}
.stage__cover img{width:100%;height:100%;object-fit:cover;object-position:center top}
.stage__cover::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(23,35,28,.5),rgba(23,35,28,0) 55%)}
.stage__play{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:max-content;display:inline-flex;align-items:center;gap:12px;min-height:60px;padding:0 30px 0 24px;border:0;border-radius:var(--radius-s);background:var(--accent);color:var(--on-accent);white-space:nowrap;font-weight:800;font-stretch:var(--wide);font-size:1.35rem;cursor:pointer;transition:transform .15s ease,background .15s ease}
.stage__play svg{flex:none;width:24px;height:24px;fill:currentColor}
.stage__play:hover{background:var(--accent-hover)}
.stage__play:active{transform:translate(-50%,-50%) scale(.97)}
.stage__loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--stage-bg);color:var(--on-stage)}
.stage__loading[hidden],.stage__cover[hidden]{display:none}
.stage__loading p{margin:0;font-weight:600}
.loader-board{display:grid;grid-template-columns:repeat(3,22px);gap:5px}
.loader-board i{width:22px;height:22px;border-radius:5px;background:var(--blue);animation:flip 1.2s ease-in-out infinite}
.loader-board i:nth-child(2n){background:var(--red)}
.loader-board i:nth-child(2),.loader-board i:nth-child(4){animation-delay:.1s}
.loader-board i:nth-child(3),.loader-board i:nth-child(5),.loader-board i:nth-child(7){animation-delay:.2s}
.loader-board i:nth-child(6),.loader-board i:nth-child(8){animation-delay:.3s}
.loader-board i:nth-child(9){animation-delay:.4s}
@keyframes flip{0%,60%,100%{transform:rotateY(0)}30%{transform:rotateY(180deg);opacity:.35}}
/* under the frame: the other game on the left, Like / Share / Fullscreen on the right */
.playbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px}
.actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.action{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid transparent;border-radius:var(--radius-s);background:none;color:var(--muted);font-weight:600;font-size:.95rem;cursor:pointer;transition:color .15s ease,background-color .15s ease}
.action:hover{color:var(--ink)}
.action svg{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.action:hover{background:var(--hover)}
.action:active{transform:scale(.97)}
.action[aria-pressed="true"]{color:var(--red);border-color:currentColor}
.action[aria-pressed="true"] svg{fill:currentColor}
.action__count:empty,.action__msg:empty,.action[hidden]{display:none}
.action__msg{color:var(--muted);font-weight:500}

/* prose; section headings carry a heavy rule like a map sheet's title bar */
.prose{max-width:var(--measure)}
.prose h2,.faq h2,.comments h2{text-wrap:balance;padding-top:.55em;border-top:3px solid var(--ink);font-weight:800;font-stretch:var(--wide);font-size:clamp(1.65rem,3.4vw,2.25rem);line-height:1.15}
.prose h2{margin:2.6em 0 .6em}
.guide > h2:first-child{margin-top:1.4em}
.prose h3{margin:1.8em 0 .4em;font-weight:700;font-stretch:108%;font-size:1.25rem;line-height:1.3}
.prose p,.prose ul,.prose ol{margin:0 0 1em}
.prose li{margin:.35em 0}
.prose li::marker{color:var(--muted)}
.prose table{width:100%;margin:1.4em 0 1.8em;border-collapse:collapse;font-size:.95rem;font-variant-numeric:tabular-nums}
.prose th,.prose td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.prose th{font-weight:700;color:var(--muted);font-size:.85rem;border-bottom:2px solid var(--ink)}
.prose td:first-child{font-weight:700;font-stretch:112%}
/* the 4 steps under How to Play are a real sequence: number them */
.guide{counter-reset:step}
#how-to-play ~ h3:not(#pieces ~ h3){counter-increment:step;display:flex;align-items:center;gap:12px}
#how-to-play ~ h3:not(#pieces ~ h3)::before{content:counter(step);flex:none;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:6px;background:var(--ink);color:var(--bg);font-size:.95rem;font-stretch:100%}
/* rank column of the pieces table: a small piece token, blue movers, red Bomb and Flag */
#pieces + p + table tbody td{vertical-align:middle}
#pieces + p + table tbody td:first-child{width:60px;text-align:center;color:#fff;font-size:.95rem;background:linear-gradient(var(--blue),var(--blue)) center/38px 30px no-repeat;background-clip:content-box;padding:8px 6px}
#pieces + p + table tbody tr:nth-last-child(-n+2) td:first-child{background-image:linear-gradient(var(--red),var(--red))}

/* diagrams */
.diagram{margin:2em 0;padding:20px;border-radius:var(--radius-l);background:var(--surface);border:1px solid var(--line)}
.diagram svg{width:100%;max-width:400px;height:auto;margin:0 auto}
.diagram[data-diagram="board"] svg{max-width:400px}
.diagram[data-diagram="setup"] svg{max-width:520px}
/* who beats whom: HTML rows (readable at any width), blue attacker left, red defender right, the rule beside them */
.bouts{list-style:none;margin:0 auto;padding:0;max-width:520px;display:grid;gap:14px}
.bouts li{display:grid;grid-template-columns:64px 36px 64px minmax(0,1fr);align-items:center;gap:0 12px}
.bout__side{display:grid;justify-items:center;gap:4px}
.tok{display:grid;place-items:center;width:32px;height:32px;border-radius:6px;background:var(--blue);color:#fff;font-weight:800;font-size:.95rem;font-stretch:112%}
.tok--red{background:var(--red)}
.bout__name{color:var(--muted);font-size:.8rem;line-height:1.2}
.bout__arrow{height:2.5px;margin-bottom:20px;background:var(--ink);position:relative}
.bout__arrow::after{content:"";position:absolute;right:0;top:50%;width:8px;height:8px;border-top:2.5px solid var(--ink);border-right:2.5px solid var(--ink);transform:translateY(-50%) rotate(45deg)}
.bout__rule{padding-left:6px;margin-bottom:20px;font-weight:600;line-height:1.3}
@media (max-width:480px){.bouts li{grid-template-columns:64px 36px 64px minmax(0,1fr);row-gap:6px}.bout__rule{grid-column:1/-1;margin:0;padding:0 0 10px;border-bottom:1px solid var(--line)}.bouts li:last-child .bout__rule{border-bottom:0;padding-bottom:0}}
.diagram[data-diagram="movement"]{display:flex;flex-wrap:wrap;justify-content:center;gap:24px 40px}
.diagram[data-diagram="movement"] svg{max-width:100%;margin:0;flex:0 1 auto}
.diagram[data-diagram="movement"] svg:first-of-type{width:230px}
.diagram[data-diagram="movement"] svg:last-of-type{width:276px}
.diagram figcaption{flex-basis:100%;margin-top:14px;color:var(--muted);font-size:.9rem;line-height:1.5}
.dg-cell{fill:var(--cell)}
.dg-zone--red{fill:var(--red-soft)}
.dg-zone--blue{fill:var(--blue-soft)}
.dg-lake{fill:var(--lake-soft)}
.dg-lake--solid{fill:var(--lake)}
.dg-reach{fill:var(--reach)}
.dg-no{stroke:var(--muted);stroke-width:2.5;stroke-linecap:round;opacity:.55}
.dg-tok rect{fill:var(--blue)}
.dg-tok--red rect{fill:var(--red)}
.dg-tok text{fill:#fff;font:700 16px var(--font)}
.dg-arrow{fill:none;stroke:var(--ink);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.dg-label,.dg-small{paint-order:stroke;stroke:var(--surface);stroke-width:5px;stroke-linejoin:round}
.dg-label{fill:var(--ink);font:600 15px var(--font)}
.dg-label--on{opacity:.8;font-size:14px}
.dg-label--lake{fill:#fff;font-size:13px;stroke:none}
.dg-small{fill:var(--muted);font:500 12px var(--font)}

/* rail: rank ladder (wide screens only) and key facts */
.rail__title{margin:0 0 8px;font-size:.8rem;font-weight:700;color:var(--muted);font-stretch:112%}
.glance{margin:20px 0 0;padding:14px 18px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;font-size:.92rem}
.glance div{min-width:0}
.glance dt{color:var(--muted);font-size:.8rem;font-weight:600}
.glance dd{margin:0;font-weight:600;line-height:1.35}
.ladder{display:none}
.ladder__list{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.ladder__item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:28px;font-size:.92rem}
.ladder__rank{display:grid;place-items:center;height:24px;border-radius:4px;background:var(--blue);color:#fff;font-weight:800;font-size:.8rem;font-stretch:112%}
.ladder__item--still .ladder__rank{background:var(--red)}
.ladder__count{color:var(--muted);font-variant-numeric:tabular-nums;font-size:.85rem}
.ladder__more{display:inline-block;margin-top:10px;font-size:.9rem;font-weight:600}
@media (min-width:1100px){
  .page-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:0 64px;align-items:start}
  .page-main{grid-column:1;grid-row:1;min-width:0}
  .rail{grid-column:2;grid-row:1;position:sticky;top:calc(var(--header-h) + 16px);padding-top:28px;display:grid;gap:16px}
  .ladder{display:block;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
  .glance{margin:0;font-size:.85rem;gap:8px 14px}
  .guide,.faq,.comments{max-width:none}
  .guide > *{max-width:var(--measure)}
  .guide > table,.guide > .diagram,.guide > .battle{max-width:none}
}

/* battle checker: two pickers, then a verdict tag (who survives) and one sentence on why */
.battle{margin:1.6em 0 2em;padding:18px 20px 20px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
.battle[hidden]{display:none}
.battle__title{margin:0 0 12px;font-weight:800;font-stretch:115%;font-size:1.05rem}
.battle__picks{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:10px 14px}
.battle__pick{display:grid;gap:6px;font-size:.85rem;font-weight:700;color:var(--muted)}
.battle__pick span{display:flex;align-items:center;gap:8px}
.battle__pick span::before{content:"";width:12px;height:12px;border-radius:3px;background:var(--blue)}
.battle__pick--red span::before{background:var(--red)}
.battle__pick select{min-height:48px;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--bg);color:var(--ink);font-weight:600;font-size:1rem}
.battle__vs{height:48px;display:grid;place-items:center;color:var(--muted);font-weight:600}
.battle .battle__result{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:16px 0 0;font-weight:500;min-height:3em}
.battle__verdict{flex:none;padding:3px 10px;border-radius:4px;color:#fff;font-weight:800;font-size:.85rem;font-stretch:112%}
.battle__result[data-win="attacker"] .battle__verdict{background:var(--blue)}
.battle__result[data-win="defender"] .battle__verdict{background:var(--red)}
.battle__result[data-win="both"] .battle__verdict{background:var(--muted)}
.battle__why{flex:1 1 260px}
/* real screenshots beside the How to Play steps: beside the text on wide screens, centred above it on phones */
.shot{margin:.4em auto 1.2em;max-width:340px}
.shot img{display:block;width:100%;height:auto;border-radius:var(--radius-l);border:1px solid var(--line)}
.shot figcaption{margin-top:8px;color:var(--muted);font-size:.85rem;line-height:1.45}
@media (min-width:721px){.shot{float:right;width:min(40%,260px);margin:.3em 0 1em 28px}.prose h2,.prose h3{clear:both}}
.shot--wide{max-width:none}
@media (min-width:721px){.shot.shot--wide{float:none;width:auto;margin:.6em 0 1.4em}}
/* two related screenshots side by side, in reading order */
.shot-pair{clear:both;display:flex;gap:16px;justify-content:center;margin:.4em 0 1.4em}
.shot-pair .shot{float:none;flex:0 1 260px;margin:0}
.diagram[data-diagram="rules-movement"]{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:24px 48px}
.diagram[data-diagram="rules-movement"] svg{margin:0;flex:0 1 auto}
.diagram[data-diagram="rules-movement"] svg:first-of-type{width:210px}
.diagram[data-diagram="rules-movement"] svg:last-of-type{width:168px}
.diagram[data-diagram="two-square-rule"] svg{max-width:320px}

/* link to the other game: a small board picture and two lines; used under the frame and in the article rail */
.switch{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;min-height:56px;padding:6px 14px 6px 6px;border-radius:var(--radius-l);color:var(--ink);text-decoration:none;transition:background-color .15s ease}
.switch:hover{color:var(--ink);background:var(--hover)}
.switch img{width:72px;height:45px;object-fit:cover;border-radius:var(--radius-s);transition:transform .2s ease}
.switch:hover img{transform:scale(1.04)}
.switch__text{display:grid;gap:1px;line-height:1.3}
.switch__text strong{font-weight:800;font-stretch:112%;font-size:1rem}
.switch__text span{color:var(--muted);font-size:.88rem}
.playbar .switch{margin-left:-6px}

/* inner pages: breadcrumb above the H1, article header, table of contents, play link, related pages */
.hero--inner .crumbs{padding-top:0;justify-content:center}

/* article pages: the same contour band as the game pages, so every page opens the same way */
.page-head{margin-bottom:12px;border-bottom:1px solid var(--line);background:var(--contour)}
.page-head .crumbs{padding-top:24px}
/* the head spans both columns: a long title breaks into two balanced lines instead of a narrow stack */
.article-head{padding:10px 0 28px}
.article-head h1{max-width:21em;margin:.25em 0 .35em;font-weight:800;font-stretch:var(--wide);font-size:var(--h1);line-height:1.05;text-wrap:balance}
.article-head__lead{max-width:76ch;text-wrap:pretty}
.article-head__lead{margin:0 0 .6em;font-size:1.2rem;line-height:1.5}
.article-head__meta{margin:0;color:var(--muted);font-size:.9rem}
.toc{display:none}
.toc__list{margin:0;padding:0 0 0 1.2em;display:grid;gap:6px;font-size:.92rem;line-height:1.35}
.toc__list{list-style:none;padding:0;gap:2px}
.toc__list a{display:flex;align-items:baseline;gap:10px;padding:4px 0;color:var(--muted);text-decoration:none;transition:color .15s ease}
.toc__list a::before{content:"";flex:none;width:7px;height:7px;border-radius:1.5px;background:var(--line-strong);transform:translateY(-1px);transition:background-color .15s ease}
.toc__list a:hover{color:var(--ink)}
.toc__list a[aria-current="true"]{color:var(--ink);font-weight:600}
.toc__list a[aria-current="true"]::before{background:var(--accent)}
.play-links{display:grid;gap:2px;padding:14px 12px 10px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
.play-links .rail__title{padding-left:6px}
.play-links .rail__title{margin-bottom:4px}
/* end of an article: one band that sends the reader to a game */
.board-cta{max-width:var(--measure);margin:3rem 0 0;padding:22px 24px;border-radius:var(--radius-l);background:var(--stage-bg);color:var(--on-stage)}
.board-cta__title{margin:0;font-weight:800;font-stretch:var(--wide);font-size:1.35rem;line-height:1.2}
.board-cta__text{margin:6px 0 16px;color:#C3CCC0;max-width:56ch}
.board-cta__links{display:flex;flex-wrap:wrap;gap:10px}
.board-cta__links a{display:inline-flex;align-items:center;min-height:46px;padding:0 18px;border:1px solid #5B6B60;border-radius:var(--radius-s);color:var(--on-stage);font-weight:700;text-decoration:none;transition:background-color .15s ease,transform .1s ease}
.board-cta__links a:hover{background:rgba(232,236,228,.08)}
.board-cta__links a:active{transform:scale(.97)}
.board-cta__links .board-cta__main{border-color:var(--accent);background:var(--accent);color:#fff}
.board-cta__links .board-cta__main:hover{background:var(--accent-hover)}
.page-grid--article .rail{display:grid;gap:16px;align-content:start}
/* below the two-column width the end band and Keep going already offer both games, so the rail is not repeated */
@media (max-width:1099px){.page-grid--article .rail{display:none}}
.related{max-width:var(--measure);margin:3.5rem 0 4rem}
.related h2{margin:0 0 .8em;padding-top:.55em;border-top:3px solid var(--ink);font-weight:800;font-stretch:var(--wide);font-size:clamp(1.65rem,3.4vw,2.25rem);line-height:1.15}
.related__list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.related__list li{position:relative;display:grid;gap:4px;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface);transition:border-color .15s ease}
.related__list li:hover{border-color:var(--line-strong)}
.related__list a{font-weight:800;font-stretch:108%;font-size:1.05rem;text-decoration:none}
.related__list a::after{content:"";position:absolute;inset:0;border-radius:inherit}
@media (min-width:720px){.related__list{grid-template-columns:repeat(2,minmax(0,1fr))}}
.related__list span{color:var(--muted);font-size:.95rem}
@media (min-width:1100px){.toc{display:block;padding:16px 18px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}.page-grid--article .rail{padding-top:8px}.related{max-width:none}}

/* faq */
.faq{max-width:var(--measure);margin-top:3.5rem}
.faq h2,.comments h2{margin:0 0 .8em}
.faq__list{border-top:1px solid var(--line)}
.faq__item{border-bottom:1px solid var(--line)}
.faq__item summary{display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:56px;padding:12px 0;font-weight:700;cursor:pointer;list-style:none}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{content:"";flex:none;width:10px;height:10px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);margin-right:4px;transform:rotate(45deg) translateY(-3px);transition:transform .2s ease}
.faq__item[open] summary::after{transform:rotate(-135deg) translateY(-2px)}
.faq__item p{margin:0 0 16px;color:var(--muted);max-width:62ch}

/* comments */
.comments{max-width:var(--measure);margin:3.5rem 0 4rem}
.comment-form{display:grid;gap:12px;padding:18px;border:1px solid var(--line);border-radius:var(--radius-l);background:var(--surface)}
.comment-form__replying{display:none;margin:0;color:var(--muted)}
.comment-form[data-gf-replying] .comment-form__replying{display:block}
.field{display:grid;gap:6px;font-size:.9rem;font-weight:600}
.field input,.field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line-strong);border-radius:var(--radius-s);background:var(--bg);font-weight:400;font-size:1rem}
.comment-form__foot{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.comment-form__msg{margin:0;color:var(--muted)}
.button{min-height:44px;padding:0 20px;border:0;border-radius:var(--radius-s);background:var(--ink);color:var(--bg);font-weight:700;cursor:pointer}
.link-button{padding:0;border:0;background:none;color:var(--link);font-weight:600;cursor:pointer;min-height:32px}
.comment-list{margin-top:20px}
.comment-list[data-gf-empty]::before{content:attr(data-empty);display:block;color:var(--muted)}
.comment-list[data-gf-off]{display:none}
.comment{padding:14px 0;border-bottom:1px solid var(--line)}
.comment__head{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline;font-size:.9rem}
.comment__head time{color:var(--muted)}
.comment__owner{display:none;padding:1px 8px;border-radius:99px;background:var(--accent);color:var(--on-accent);font-size:.75rem;font-weight:700}
[data-gf-owner] > .comment__head .comment__owner{display:inline-block}
.comment__text{margin:6px 0 4px}
.comment__to{color:var(--muted)}
.comment__replies{margin-left:20px;border-left:2px solid var(--line);padding-left:14px}

/* legal pages */
.crumbs{display:flex;gap:8px;padding-top:24px;font-size:.9rem;color:var(--muted)}
.crumbs a{flex:none;white-space:nowrap;color:var(--muted)}
.doc{padding:8px 0 4rem}
.doc h1{margin:.3em 0 .4em;font-weight:800;font-stretch:var(--wide);font-size:clamp(2rem,5vw,3rem);line-height:1.1}
.doc h2{margin-top:1.8em;font-size:1.5rem}

/* footer: brand and one sentence about the site, three short link columns, then copyright and legal links */
.site-footer{margin-top:3rem;background:var(--stage-bg);color:#AEB9AC;font-size:.92rem}
.site-footer__in{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:32px 64px;padding-top:44px;padding-bottom:28px}
.site-footer .brand{color:var(--on-stage);font-size:1.15rem}
.site-footer .brand__lake{fill:#5B9CC4}
.site-footer__desc{margin:14px 0 0;max-width:40ch;line-height:1.55}
.site-footer__cols{display:grid;grid-template-columns:repeat(3,auto);gap:16px 56px}
.site-footer__cols div{display:grid;align-content:start;gap:2px}
.site-footer__head{margin:0 0 6px;color:var(--on-stage);font-weight:700;font-size:.85rem;font-stretch:112%}
.site-footer a{color:#AEB9AC;text-decoration:none}
.site-footer__cols a{display:inline-flex;align-items:center;min-height:34px}
.site-footer a:hover{color:var(--on-stage);text-decoration:underline}
.site-footer__bottom{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding-top:18px;border-top:1px solid #314238;font-size:.84rem}
.site-footer__bottom p{margin:0}
.site-footer__legal{display:flex;flex-wrap:wrap;gap:4px 20px}
@media (max-width:860px){.site-footer__in{grid-template-columns:1fr}.site-footer__cols{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}.site-footer__cols a{min-height:40px}}
@media (max-width:480px){.site-footer__cols{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* phones */
@media (max-width:720px){
  :root{--header-h:56px}
  .brand{font-size:1rem;gap:8px}
  .brand__mark{width:22px;height:22px}
  /* one Menu button; the same nav opens as a full-width list under the bar (stays inline when JS is off) */
  .menu-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-right:-10px;padding:0 10px;border:0;border-radius:var(--radius-s);background:none;color:var(--ink);font-weight:600;font-size:.95rem;cursor:pointer}
  .menu-toggle[hidden]{display:none}
  .menu-toggle svg{flex:none;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
  .menu-toggle__close,.site-header.is-open .menu-toggle__open{display:none}
  .site-header.is-open .menu-toggle__close{display:inline}
  .site-header.has-menu:not(.is-open) .site-nav{display:none}
  .site-header.has-menu .site-nav{flex-basis:calc(100% + 40px);flex-direction:column;align-items:stretch;gap:0;margin:0 -20px;padding:4px 0 10px;border-top:1px solid var(--line)}
  .site-header.has-menu .site-nav a{min-height:52px;padding:0 20px;border-radius:0;font-size:1.05rem;color:var(--ink)}
  .hero__in{padding-top:20px}
  .hero__tagline{font-size:1.02rem}
  /* square cover first; once the game runs it fills the screen below the header, like opening stratego.io directly */
  .stage{height:auto;aspect-ratio:1/1;margin:0 -20px;border-radius:0;border-left:0;border-right:0}
  .stage[data-gf-state]{aspect-ratio:auto;height:calc(100svh - var(--header-h))}
  .stage__play{font-size:1.15rem;min-height:54px;padding:0 22px 0 18px}
  .site-nav__sep{display:none}
  .playbar{gap:8px}
  .playbar .switch{flex:1 1 100%;margin:0 -6px}
  .actions{flex:1 1 100%;flex-wrap:nowrap;margin-left:0}
  .action{flex:1 1 0;min-width:0;justify-content:center;gap:6px;padding:0 6px}
  .prose table{display:block;overflow-x:auto;font-size:.9rem}
  .prose th,.prose td{padding:9px 8px}
  .diagram{margin-left:-8px;margin-right:-8px;padding:14px}
}
@media (max-width:480px){:root{--h1:1.9rem}}
@media (max-width:380px){.action{font-size:.85rem;gap:4px;padding:0 4px}.action svg{width:16px;height:16px}}
@media (max-width:560px){.battle__picks{grid-template-columns:1fr}.battle__vs{display:none}}
