/* Guides (web/blog/, written by tools/build_blog.py). Same language as the launcher (web/launcher.css): the menus' dark teal sheet
   over a picture of the game, menu blue text, the chosen item near white on a bar that ends in a grey block, outlined key boxes.
   One bold thing per page: the PLAY bar. Reading text is upright and larger than the menus'; only titles keep the menus' italic capitals. */
:root {
  --f: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, Arial, sans-serif;
  --sheet: rgba(4, 24, 34, .86); --bar: rgba(92, 150, 184, .26); --bar2: rgba(92, 150, 184, .14);
  --blue: rgb(83, 151, 179); --hi: rgb(196, 225, 229); --text: rgb(176, 205, 214); --dim: rgb(130, 158, 170); --block: rgb(150, 156, 158); --key: rgb(63, 173, 209);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; }
html { background: #03090c; color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; color: var(--text); font: 17px/1.65 var(--f); -webkit-font-smoothing: antialiased;
  background: linear-gradient(180deg, rgba(3, 9, 12, .35) 0, rgba(3, 9, 12, .9) 520px, #03090c 900px), var(--pic) center top / max(100%, 1200px) auto no-repeat, #03090c; }
a { color: var(--key); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .12s; }
a:hover { color: var(--hi); }
a:focus-visible { outline: 2px solid var(--key); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

/* top: the logo on the darker band the game keeps above its menus, the language and PLAY on the right edge */
.top { display: flex; align-items: center; gap: 20px; padding: 18px var(--pad); background: linear-gradient(180deg, rgba(1, 8, 12, .86), rgba(1, 8, 12, .5)); border-bottom: 3px solid var(--bar); }
.top .logo img { width: clamp(150px, 24vw, 250px); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-style: italic; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; }
.top nav a { color: var(--blue); text-decoration: none; padding: 10px 0; }
.top nav a:hover { color: var(--hi); }
/* PLAY: the menus' chosen line, bar and end block */
.top nav a.play, .cta a { position: relative; color: #fff; padding: 9px 30px 9px 34px; background: linear-gradient(90deg, transparent, rgba(92, 150, 184, .42) 34%); transition: background-color .12s, transform .12s var(--ease); }
.top nav a.play::after, .cta a::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 8px; background: #e8eef0; }
.top nav a.play:hover, .cta a:hover { background-color: rgba(92, 150, 184, .22); }
.top nav a.play:active, .cta a:active { transform: scale(.97); }

main { max-width: 860px; margin: clamp(90px, 15vw, 190px) auto 0; padding: 0 0 56px; background: var(--sheet); box-shadow: 0 0 0 1px rgba(92, 150, 184, .08), 0 0 120px rgba(0, 6, 10, .6); }
.crumbs { padding: 18px var(--pad) 0; font-size: 14px; color: var(--dim); }
.crumbs a { color: var(--dim); }
/* title: right-aligned over its bar, as MAIN MENU */
h1 { margin: 14px 0 0; padding: 16px var(--pad) 16px 12%; text-align: right; font: italic 600 clamp(26px, 4.6vw, 44px)/1.12 var(--f); text-transform: uppercase; letter-spacing: .02em; color: var(--hi); text-wrap: balance;
  background: linear-gradient(90deg, transparent, var(--bar) 30%); }
.lead { margin: 22px var(--pad) 0; font-size: 19px; line-height: 1.55; color: var(--hi); text-wrap: pretty; }
.date { margin: 10px var(--pad) 0; font-size: 14px; color: var(--dim); }
article > p, article > ul, article > ol, article > h2, article > figure, article > .keys, article > .cta, article > .filter-bar, article > .table-wrap { margin-left: var(--pad); margin-right: var(--pad); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.filter-bar input, .filter-bar select { background: var(--bar2); border: 1px solid var(--bar); color: var(--hi); font: 500 15px/1.4 var(--f); padding: 9px 12px; min-width: 180px; flex: 1 1 180px; }
.filter-bar input:focus, .filter-bar select:focus { outline: 2px solid var(--key); outline-offset: 1px; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; padding: 10px 12px; background: var(--bar); color: var(--hi); font: italic 600 14px/1.2 var(--f); text-transform: uppercase; letter-spacing: .04em; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--bar2); color: var(--hi); vertical-align: middle; }
.data-table tr:hover td { background: rgba(92, 150, 184, .09); }
.data-table code { background: var(--bar2); padding: 2px 7px; border: 1px solid var(--bar); color: var(--key); font-size: 14px; }
.copy-btn { background: var(--bar); border: 1px solid var(--key); color: var(--hi); font: 600 12px/1 var(--f); text-transform: uppercase; letter-spacing: .05em; padding: 6px 10px; cursor: pointer; transition: transform .12s, background-color .12s; }
.copy-btn:hover { background: rgba(92, 150, 184, .28); }
.copy-btn:active { transform: scale(.97); }
.copy-btn[data-copied="1"] { background: var(--key); color: #04121a; }
article p { text-wrap: pretty; margin-top: 16px; margin-bottom: 0; }
article h2 { margin-top: 44px; margin-bottom: 0; padding-bottom: 8px; border-bottom: 3px solid var(--bar); font: italic 600 24px/1.2 var(--f); color: var(--blue); text-wrap: balance; }
article ul, article ol { padding-left: 1.2em; margin-top: 14px; margin-bottom: 0; }
article li { margin-top: 8px; }
article li::marker { color: var(--blue); }
article b, article strong { color: var(--hi); font-weight: 600; }
figure { margin-top: 28px; margin-bottom: 0; }
figure img { width: 100%; outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; }
figcaption { margin-top: 8px; font-size: 14px; font-style: italic; color: var(--dim); }

/* keys: the launcher's outlined key boxes, one action per line */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 28px; margin-top: 18px; padding: 0; list-style: none; }
.keys li { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 9px 0; border-bottom: 1px solid var(--bar2); }
kbd { display: inline-block; min-width: 2.1em; padding: 2px 8px; border: 2px solid var(--key); color: var(--hi); font: 600 14px/1.5 var(--f); text-align: center; white-space: nowrap; }

.cta { margin-top: 44px; display: flex; justify-content: flex-end; }
.cta a { display: inline-block; text-decoration: none; font: italic 600 clamp(24px, 4vw, 34px)/1 var(--f); text-transform: uppercase; letter-spacing: .03em; padding: 18px 44px 18px 80px; }

/* hub and "more guides": menu lines, the name on the right edge, one line under it that says what it is */
.list { list-style: none; margin: 26px 0 0; padding: 0; }
.list li { margin: 0; }
.list a { position: relative; display: block; padding: 16px calc(var(--pad) + 20px) 16px var(--pad); text-align: right; text-decoration: none; color: var(--blue); }
.list a::before { content: ""; position: absolute; inset: 4px 0 4px 8%; background: linear-gradient(90deg, transparent, var(--bar) 22%); opacity: 0; transition: opacity .12s ease-out; }
.list a::after { content: ""; position: absolute; right: var(--pad); top: 4px; bottom: 4px; width: 8px; background: var(--block); opacity: 0; transition: opacity .12s ease-out; }
.list a:hover::before, .list a:hover::after, .list a:focus-visible::before, .list a:focus-visible::after { opacity: 1; }
.list b { position: relative; display: block; font: italic 600 clamp(19px, 2.8vw, 25px)/1.2 var(--f); text-transform: uppercase; letter-spacing: .02em; color: inherit; text-wrap: balance; transition: color .12s; }
.list a:hover b, .list a:focus-visible b { color: #fff; }
.list span { position: relative; display: block; margin-top: 4px; font-size: 15px; color: var(--dim); text-wrap: pretty; }
.more { margin: 52px var(--pad) 0; padding-bottom: 8px; border-bottom: 3px solid var(--bar); font: italic 600 20px/1.2 var(--f); color: var(--dim); }

footer { max-width: 860px; margin: 0 auto; padding: 26px var(--pad) 60px; font-size: 14px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { color: var(--dim); }
@media (max-width: 560px) { body { font-size: 16px; } h1 { padding-left: var(--pad); } .top nav a.lang-long { display: none; } .cta a { padding-left: 48px; } }
/* translated guides (pt-BR, ru, tr, de): longer words, so the header wraps instead of widening a phone page */
:is(:root:lang(pt), :root:lang(ru), :root:lang(tr), :root:lang(de)) :is(.top, .top nav) { flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .top nav a.play:active, .cta a:active { transform: none; } }
