/*
Theme Name: Complete GTA 6
Theme URI: https://completegta6.com/
Author: Complete GTA 6
Description: Hand-built guide theme for completegta6.com. Section hubs, tick-off guides, prominent search, and labeled news and rumors. No page builder and no required plugins.
Version: 1.0.11
Requires at least: 6.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: completegta6
*/

:root{
  /* Layout idea: the logo turned into a place. Each page opens on a night sky with a striped sun going down;
     the guide sits below as stickers (thick black outline, hard shadow), and the logo's check mark is the reader's own progress. */
  --night:#1B0F3B;     /* the sky, the top bar and the footer, in both themes */
  --desk:#F3EEFA;      /* page */
  --sheet:#FFFFFF;     /* sticker face */
  --canary:#FFE14D;    /* live, open, yours */
  --pink:#FF7AC0;
  --ink:#1B0F3B;
  --rule:rgba(27,15,59,.2);
  --edge:#000000;      /* control outlines */
  --line:#000000;      /* sticker outlines, as in the logo */
  --hot:#FB22A9; --sun:#FDB713; --dusk:#D725E2;   /* the logo's sunset */
  --ok:#0B7A43; --wait:#B84A00; --no:#C4122B;     /* stamp inks */
  --stamp:#FFFFFF;
  --display:"Kanit","Archivo Black","Arial Black",sans-serif;
  --text:"Barlow","Fira Sans","Segoe UI",system-ui,sans-serif;
  --cond:"Barlow Condensed","Arial Narrow","Roboto Condensed",sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --desk:#120A2C; --sheet:#241A5E; --ink:#F4EFFF; --rule:rgba(244,239,255,.22); --edge:#F4EFFF;
    --ok:#57E39A; --wait:#FFB36B; --no:#FF8C9B; --stamp:transparent;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --desk:#120A2C; --sheet:#241A5E; --ink:#F4EFFF; --rule:rgba(244,239,255,.22); --edge:#F4EFFF;
  --ok:#57E39A; --wait:#FFB36B; --no:#FF8C9B; --stamp:transparent;
}
/* Canary and pink stickers keep daytime inks in both themes. */
.on-color{
  --sheet:#FFFFFF; --ink:#1B0F3B; --rule:rgba(27,15,59,.3); --edge:#000000;
  --ok:#0B7A43; --wait:#B84A00; --no:#C4122B; --stamp:#FFFFFF;
  color:var(--ink);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;padding-bottom:3.6rem;background:var(--desk);color:var(--ink);font:400 1.0625rem/1.5 var(--text)}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
h1,h2,h3,h4,p,dl,dd,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
button,input{font:inherit}
[hidden]{display:none !important}
:focus-visible{outline:3px solid var(--hot);outline-offset:2px;border-radius:6px}
#content:focus{outline:0}
.wrap{width:min(100% - 2rem,73.75rem);margin-inline:auto}
.vh,.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:1rem;top:-5rem;z-index:30;padding:.6rem .8rem;border-radius:8px;background:#fff;color:#000}
.skip:focus{top:.5rem}

/* Top bar: part of the night sky */
.mast{background:var(--night);color:#fff}
.mast__row{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:.7rem 1rem;padding-block:.8rem .7rem}
.logo{display:block;grid-column:1;grid-row:1;width:11rem}
.shift{grid-column:2;grid-row:1;justify-self:end;padding:.55rem .8rem;border:2px solid #fff;border-radius:999px;background:transparent;color:#fff;font:600 1rem/1 var(--cond);cursor:pointer}
.mast .searchbar{grid-column:1 / -1;grid-row:2}
.searchbar{display:flex;gap:.5rem}
.searchbar input{flex:1;min-width:0;padding:.7rem .85rem;border:2.5px solid #000;border-radius:12px;background:#fff;color:#1B0F3B}
.searchbar input::placeholder{color:#1B0F3B;opacity:.6}
.btn{display:inline-block;padding:.75rem 1rem;border:2.5px solid var(--edge);border-radius:12px;background:#000;color:#fff;font:italic 800 1.05rem/1 var(--display);text-decoration:none;cursor:pointer}
.searchbar .btn{border-color:#000;background:var(--canary);color:#1B0F3B}
.searchbar--big{margin-top:1.2rem;max-width:40rem}
.searchbar--big input{padding:.95rem 1rem;font-size:1.12rem}
.searchbar--big .btn{padding:.95rem 1.15rem;font-size:1.15rem}
.home .mast .searchbar,.search .mast .searchbar,.error404 .mast .searchbar{display:none}
.tabs__row{display:flex;gap:.35rem;overflow-x:auto;padding:.15rem 0 .8rem;scrollbar-width:none}
.tabs__row::-webkit-scrollbar{display:none}
.tabs a{flex:none;padding:.5rem .72rem;border:2px solid #000;border-radius:999px;background:#fff;color:#1B0F3B;font:600 1.02rem/1 var(--cond);text-decoration:none}
.tabs a[aria-current]{background:var(--canary)}

/* The sky: every page opens on it */
.sky{position:relative;overflow:hidden;background:var(--night);color:#fff;border-bottom:3px solid #000}
.sky__in{position:relative;z-index:3;padding-block:1rem 7.8rem}
.sky h1{max-width:13em;font:italic 800 clamp(2.1rem,5.6vw + .6rem,3.9rem)/.98 var(--display);letter-spacing:-.005em;text-wrap:balance;
  text-shadow:.06em 0 0 #000,-.06em 0 0 #000,0 .06em 0 #000,0 -.06em 0 #000,.045em .045em 0 #000,-.045em .045em 0 #000,.045em -.045em 0 #000,-.045em -.045em 0 #000,.1em .13em 0 #000}
.sky .lede{margin-top:1rem;max-width:44ch;font-size:1.1rem}
.sky .meta{margin-top:.6rem;font:600 1rem/1.3 var(--cond);opacity:.86}
.sky .meta .stamp{margin-right:.4rem;opacity:1}
.sun{position:absolute;z-index:1;right:1.1rem;bottom:-6px;width:7rem;height:7rem;border-radius:50%;background:linear-gradient(180deg,#FFF27A 0%,#FFE14D 40%,#FDB713 100%);animation:rise 1s cubic-bezier(.2,.8,.2,1) both}
@keyframes rise{from{transform:translateY(42%)}to{transform:none}}
/* Horizon stripes pass in front of the sun, so they double as its blinds. */
.glow{position:absolute;z-index:2;left:0;right:0;bottom:0;height:58px;
  background:linear-gradient(180deg,#8E22C9 0 2px,transparent 2px 7px,#B224D6 7px 10px,transparent 10px 15px,#D725E2 15px 20px,transparent 20px 23px,#FB22A9 23px 30px,transparent 30px 32px,#FD5F4A 32px 42px,transparent 42px 44px,#FDB713 44px 58px)}
.sky--home .sky__in{padding-block:1.3rem 10.6rem}
.sky--home h1{max-width:11.5em;font-size:clamp(2.35rem,7.4vw + .5rem,4.7rem)}
.sky--home .sun{bottom:13px;width:8.5rem;height:8.5rem}
.sky--home .glow{height:93px;
  background:linear-gradient(180deg,#8E22C9 0 3px,transparent 3px 12px,#B224D6 12px 17px,transparent 17px 24px,#D725E2 24px 32px,transparent 32px 37px,#FB22A9 37px 49px,transparent 49px 52px,#FD5F4A 52px 68px,transparent 68px 71px,#FDB713 71px 93px)}
.crumbs{display:flex;flex-wrap:wrap;gap:.2rem .5rem;margin-bottom:.9rem;font:600 1.02rem/1.3 var(--cond)}
.crumbs li + li::before{content:"/";margin-right:.5rem;opacity:.6}
.crumbs a{text-decoration-thickness:2px;text-underline-offset:3px}

/* Stickers */
.sticker{border:2.5px solid var(--line);border-radius:16px;background:var(--sheet);box-shadow:4px 5px 0 #000}
.sticker--canary{background:var(--canary)}
.sticker--pink{background:var(--pink)}
.pad{padding:1rem 1.1rem 1.15rem}
.stamp{display:inline-block;padding:.24em .55em .28em;border:2px solid currentColor;border-radius:7px;background:var(--stamp);color:var(--ink);font:italic 800 .95rem/1 var(--display);letter-spacing:.01em;white-space:nowrap}
.stamp--yes{color:var(--ok)} .stamp--wait{color:var(--wait)} .stamp--no{color:var(--no)}
.sky .stamp{background:#fff;color:#1B0F3B}
.sky .stamp--no{color:#C4122B}
.sec{margin-top:2.6rem;scroll-margin-top:.8rem}
.sec__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem 1rem;margin-bottom:.9rem}
.sec__head h2{font:italic 800 clamp(1.7rem,3.2vw + 1rem,2.3rem)/1.05 var(--display);text-wrap:balance}
.sec__head p{max-width:60ch}
.sec__head a,.back a,.empty a{text-decoration-color:var(--hot);text-decoration-thickness:2px;text-underline-offset:3px}
.sec__more{margin-left:auto;font:600 1.05rem/1.3 var(--cond)}
.empty{max-width:60ch}
.back{margin-top:1.7rem;font:600 1.08rem/1.3 var(--cond)}

/* Section tiles */
.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.tile{display:flex;flex-direction:column;justify-content:space-between;gap:.45rem;height:100%;min-height:5.1rem;padding:.7rem .8rem .65rem;border:2.5px solid var(--line);border-radius:14px;background:var(--sheet);color:var(--ink);text-decoration:none;box-shadow:3px 4px 0 #000;transition:transform .12s,box-shadow .12s}
.tile b{font:italic 800 1.22rem/1.05 var(--display)}
.tile p{display:none;font-size:.98rem;line-height:1.35}
.tile span{font:600 1rem/1.2 var(--cond)}
.tile--open{background:var(--canary);color:#1B0F3B}
.tile--soon span{opacity:.72}
.tile:hover{transform:translate(-1px,-2px);box-shadow:5px 7px 0 #000}
.tile:active{transform:translate(2px,3px);box-shadow:1px 1px 0 #000}

/* Rows: guides in a section, search results, news */
.rows{overflow:hidden}
.rows > li{display:grid;grid-template-columns:minmax(0,1fr);gap:.25rem .9rem;padding:.9rem 1rem;border-bottom:1px solid var(--rule)}
.rows > li:last-child{border-bottom:0}
.rows h3{font:600 1.15rem/1.25 var(--text)}
.rows h3 a{text-decoration-color:var(--hot);text-decoration-thickness:2px;text-underline-offset:3px}
.rows p{max-width:68ch}
.rows .when{font:600 1rem/1.3 var(--cond);opacity:.76}
.rows .when .stamp{margin-right:.45rem;opacity:1}

/* Reading: block content inside a sticker */
.prose{padding:1.1rem 1.1rem 1.3rem}
.prose > * + *{margin-top:.8rem}
.prose h2{margin-top:2rem;padding-top:1.1rem;border-top:2.5px solid var(--line);font:italic 800 clamp(1.5rem,2.2vw + 1.05rem,1.95rem)/1.08 var(--display);text-wrap:balance;scroll-margin-top:.8rem}
.prose > h2:first-child{margin-top:0;padding-top:0;border-top:0}
.prose h3{margin-top:1.4rem;font:600 1.2rem/1.25 var(--text)}
.prose p,.prose li{max-width:68ch}
.prose a{text-decoration-color:var(--hot);text-decoration-thickness:2px;text-underline-offset:3px}
.prose strong,.prose b{font-weight:600}
.prose ul:not([class*="is-style-"]),.prose ol:not([class*="is-style-"]){padding-left:1.35rem}
.prose ul:not([class*="is-style-"]){list-style:disc}
.prose ol:not([class*="is-style-"]){list-style:decimal}
.prose li + li{margin-top:.35rem}
.prose blockquote{margin:0;padding:.2rem 0 .2rem 1rem;border-left:4px solid var(--hot)}
.prose figcaption{margin-top:.4rem;font:600 .98rem/1.3 var(--cond);opacity:.76}
.prose .is-style-steps,.prose .is-style-checklist,.prose .is-style-sources{border-top:2px solid var(--line)}
.prose .is-style-steps > li,.prose .is-style-checklist > li,.prose .is-style-sources > li{max-width:none;margin-top:0;padding:.8rem 0;border-bottom:1px solid var(--rule)}
.is-style-steps{counter-reset:step}
.prose .is-style-steps > li{position:relative;min-height:3.5rem;padding-left:2.8rem;counter-increment:step}
.is-style-steps > li::before{content:counter(step);position:absolute;left:0;top:.72rem;font:italic 800 1.6rem/1.05 var(--display)}
.prose .is-style-checklist:not(.has-ticks) > li{position:relative;min-height:3.6rem;padding-left:2.8rem}
.is-style-checklist:not(.has-ticks) > li::before{content:"";position:absolute;left:0;top:.78rem;width:2rem;height:2rem;border:2.5px solid var(--edge);border-radius:9px}
.is-style-checklist.has-ticks > li{display:grid;grid-template-columns:2rem minmax(0,1fr);gap:.8rem}
.is-style-checklist > li.is-done > div strong{text-decoration:line-through;text-decoration-thickness:2px}
.is-style-sources > li{padding:.55rem 0;font:600 1.03rem/1.35 var(--cond)}
.ticks{margin-top:.6rem;font:600 1rem/1.3 var(--cond)}
.check{position:relative;display:block;width:2rem;height:2rem}
.check input{position:absolute;inset:-.4rem;width:calc(100% + .8rem);height:calc(100% + .8rem);margin:0;opacity:0;cursor:pointer}
.check i{display:block;width:100%;height:100%;border:2.5px solid var(--edge);border-radius:9px;background:var(--sheet)}
.check input:checked + i{border-color:#000;background:#000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/78% no-repeat}
.check input:focus-visible + i{outline:3px solid var(--hot);outline-offset:2px}
.prose .wp-block-table{overflow-x:auto}
.prose .wp-block-table table{width:100%;border-collapse:collapse;border-top:2px solid var(--line)}
.prose .wp-block-table td,.prose .wp-block-table th{padding:.65rem .9rem .65rem 0;border:0;border-bottom:1px solid var(--rule);text-align:left;vertical-align:top}
.prose .wp-block-table th{font:600 1rem/1.3 var(--cond)}
.prose .wp-block-table thead{border-bottom:0}
.prose .is-style-answers table{table-layout:auto}
.prose .is-style-answers td:first-child{font-weight:600}
.prose .is-style-answers td:last-child{width:1%;padding-right:0;text-align:right;white-space:nowrap;font-weight:600}
@media (max-width:39.99rem){
  /* A long short answer wraps inside its stamp, so the question keeps about 8.5rem on a phone. One-line stamps look as before. */
  .prose .is-style-answers .stamp{width:max-content;max-width:max(6.5rem,calc(100vw - 13rem));padding:.18em .55em .22em;line-height:1.12;text-align:left;white-space:normal;overflow-wrap:break-word}
}
.notice{padding:.7rem .9rem;border:2.5px dashed var(--edge);border-radius:12px;font:600 1.05rem/1.4 var(--cond)}
.notice .stamp{margin-right:.5rem}
/* Contact form */
.prose .contact .notice{margin:1rem 0 0}
.contact__form{display:grid;gap:1rem;margin-top:1.1rem}
.prose .contact__form p{margin:0}
.contact__form label{display:block;margin-bottom:.3rem;font:600 1.05rem/1.3 var(--cond)}
.contact__form input[type="text"],.contact__form input[type="email"],.contact__form select,.contact__form textarea{display:block;width:100%;padding:.7rem .8rem;border:2.5px solid var(--edge);border-radius:12px;background:var(--sheet);color:var(--ink);font:inherit}
.contact__form textarea{min-height:9.5rem;resize:vertical}
.contact__form .btn{font-size:1.1rem}
.prose .contact__trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.prose .contact__note{font:500 .98rem/1.45 var(--cond)}

/* A guide page */
.guide{display:grid;gap:1.7rem;margin-top:1.7rem}
.guide__body{min-width:0}
.toc{align-self:start;padding:1rem 1.1rem 1.1rem}
.toc h2{font:italic 800 1.5rem/1 var(--display)}
.toc ol{columns:2;column-gap:1.25rem;margin-top:.5rem;font:600 1.08rem/1.25 var(--cond)}
.toc li{break-inside:avoid}
.toc a{display:block;padding:.42rem 0;text-decoration-thickness:2px;text-underline-offset:3px}
.home-blocks{margin-top:2.6rem}

/* Paging */
.pagination{margin-top:1.4rem}
.pagination .nav-links{display:flex;flex-wrap:wrap;gap:.45rem}
.pagination .page-numbers{padding:.55rem .85rem;border:2px solid var(--edge);border-radius:999px;background:var(--sheet);color:var(--ink);font:600 1.02rem/1 var(--cond);text-decoration:none}
.pagination .page-numbers.current{background:var(--canary);color:#1B0F3B;border-color:#000}

/* Footer */
.foot{margin-top:3rem;padding:1.9rem 0 2.1rem;border-top:3px solid #000;background:var(--night);color:#fff}
.foot__grid{display:grid;gap:1.1rem}
.foot img{width:14rem}
.foot p{max-width:62ch}
.foot ul{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;font:600 1.05rem/1.3 var(--cond)}
.foot a{text-decoration-thickness:2px;text-underline-offset:3px}

/* Thumb bar on phones */
.dock{position:fixed;inset:auto 0 0 0;z-index:10;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border-top:2.5px solid #000;background:var(--sheet)}
.dock a,.dock button{padding:1.05rem .2rem;border:0;background:none;color:inherit;font:600 1rem/1 var(--cond);text-align:center;text-decoration:none;cursor:pointer}
.dock a[aria-current]{background:var(--canary);color:#1B0F3B}

@media (min-width:40rem){
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tile p{display:block}
  .rows > li{grid-template-columns:minmax(0,1fr) auto;align-items:start}
  .rows > li > .when{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
  .rows > li > p{grid-column:1}
}
@media (min-width:60rem){
  body{padding-bottom:0}
  .dock{display:none}
  .mast__row{grid-template-columns:auto minmax(0,1fr) auto;gap:1.5rem;padding-block:.9rem .8rem}
  .logo{width:15.5rem}
  .tabs__row{flex-wrap:wrap;overflow:visible}
  .mast .searchbar{grid-column:2;grid-row:1;justify-self:center;width:100%;max-width:34rem}
  .shift{grid-column:3}
  .sky__in{padding-block:1.4rem 5rem}
  .sun{right:max(2rem,calc((100vw - 73.75rem) / 2 + 2rem));width:14rem;height:14rem;bottom:-62px}
  .sky--home .sky__in{padding-block:2.2rem 7.4rem}
  .sky--home .sun{width:20rem;height:20rem;bottom:-79px}
  .tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:.9rem}
  .tile{min-height:8.4rem;padding:.85rem .95rem .8rem}
  .pad{padding:1.4rem 1.6rem 1.6rem}
  .prose{padding:1.5rem 1.7rem 1.8rem}
  .rows > li{padding:1rem 1.4rem}
  .guide--toc{grid-template-columns:minmax(0,1fr) 17.5rem;gap:2.6rem;align-items:start}
  .guide--toc .guide__body{grid-column:1;grid-row:1}
  .guide--toc .toc{grid-column:2;grid-row:1;position:sticky;top:1rem}
  .toc ol{columns:1}
  .foot__grid{grid-template-columns:auto minmax(0,1fr);align-items:center;gap:1.25rem 2.5rem}
  .foot ul{grid-column:2}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .sun{animation:none}
  .tile{transition:none}
}

/* Directories (Characters, Weapons): icon cards on top of a section page; the guides stay underneath. */
.dir-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem;margin-top:1.3rem}
.jump{display:flex;flex:1 1 14rem;gap:.35rem;min-width:0;overflow-x:auto;padding:.15rem .1rem .35rem;scrollbar-width:none}
.jump::-webkit-scrollbar{display:none}
.jump a{flex:none;padding:.5rem .72rem;border:2px solid var(--edge);border-radius:999px;background:var(--sheet);color:var(--ink);font:600 1.02rem/1 var(--cond);text-decoration:none}
.jump a i{margin-left:.38rem;font-style:normal;opacity:.66}
.later{flex:none;display:inline-flex;align-items:center;gap:.5rem;padding:.5rem .8rem;border:2px solid var(--edge);border-radius:999px;background:var(--sheet);color:var(--ink);font:600 1.02rem/1 var(--cond);cursor:pointer}
.later i{display:block;width:1.05rem;height:1.05rem;border:2px solid currentColor;border-radius:5px}
.later[aria-pressed="true"]{border-color:#000;background:var(--canary);color:#1B0F3B}
.later[aria-pressed="true"] i{background:#000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/82% no-repeat;border-color:#000}
html:not(.js) .later,html:not(.js) [data-close]{display:none}
.dir{margin-top:2.1rem}
.dir .sec__head{align-items:center}
.dir .sec__head h2{display:flex;align-items:center;gap:.6rem}
.dir .sec__head p{flex-basis:100%;font:600 1.03rem/1.35 var(--cond);opacity:.84}
.dir__n{font:600 1.1rem/1 var(--cond);opacity:.66}
.roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.roster > li{min-width:0}
.card{display:flex;flex-direction:column;align-items:center;gap:.45rem;height:100%;padding:.7rem .35rem .6rem;border:2.5px solid var(--line);border-radius:14px;background:var(--sheet);color:var(--ink);text-align:center;text-decoration:none;box-shadow:3px 4px 0 #000;transition:transform .12s,box-shadow .12s}
.card:hover{transform:translate(-1px,-2px);box-shadow:5px 7px 0 #000}
.card:active{transform:translate(2px,3px);box-shadow:1px 1px 0 #000}
.card[aria-expanded="true"]{background:var(--canary);color:#1B0F3B}
.card__txt{display:flex;flex-direction:column;gap:.14rem;min-width:0;max-width:100%}
.card__k{font:600 .86rem/1.15 var(--cond);opacity:.8}
.card b{font:italic 800 .98rem/1.08 var(--display);overflow-wrap:anywhere}
.card__x{font:600 .92rem/1.15 var(--cond);opacity:.86}
.card--gun .card__x{opacity:1}
.card__d{display:none}
.coin{flex:none;display:grid;place-items:center;width:3.5rem;aspect-ratio:1;border:2.5px solid #000;border-radius:50%;background:#fff;color:#1B0F3B;font:italic 800 1.2rem/1 var(--display)}
.coin--lead{background:linear-gradient(180deg,#FFF27A 0%,#FFE14D 40%,#FDB713 100%)}
.coin--main{background:var(--pink)}
.plate{flex:none;display:grid;place-items:center;width:100%;max-width:7.5rem;aspect-ratio:2/1;border:2.5px solid #000;border-radius:10px;background:var(--canary);color:#1B0F3B;--plate:#FFE14D}
.plate svg{display:block;width:86%;height:auto;fill:currentColor}
.plate--official{background:var(--pink);--plate:#FF7AC0}
.plate--h{width:4.2rem;border-width:2px;border-radius:8px}
/* The open card's sheet sits in the grid, right under its row. */
.roster__open{grid-column:1 / -1;margin:.1rem 0 .3rem}
.dossiers{display:grid;gap:.8rem;margin-top:1rem}
.js .dossiers{display:none}
.dossier{padding:1rem 1.1rem 1.15rem;scroll-margin-top:1rem}
.dossier:focus{outline:0}
.dossier__head{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .8rem}
.dossier__head .coin{width:2.9rem;font-size:1rem}
.dossier__head .plate{width:4.6rem}
.dossier h3{font:italic 800 clamp(1.4rem,2vw + 1rem,1.8rem)/1.05 var(--display);text-wrap:balance}
.dossier__close{margin-left:auto;padding:.45rem .75rem;border:2px solid var(--edge);border-radius:999px;background:none;color:inherit;font:600 1rem/1 var(--cond);cursor:pointer}
.dossier dl{display:grid;gap:.75rem 1.6rem;margin-top:.9rem}
.dossier dt{font:600 1rem/1.2 var(--cond);opacity:.74}
.dossier dd{max-width:68ch}
.dossier dd b{font-weight:600}
.src{border-top:2px solid var(--line);margin-top:.3rem}
.src li{padding:.5rem 0;border-bottom:1px solid var(--rule);font:600 1.02rem/1.35 var(--cond)}
.src li span{opacity:.72}
.src a{text-decoration-color:var(--hot);text-decoration-thickness:2px;text-underline-offset:3px}
.sp{display:none}
.sp-off{font:600 1rem/1.35 var(--cond);opacity:.8}
html[data-later="on"] .sp{display:inline}
html[data-later="on"] .sp-off{display:none}
.more{margin-top:1rem}
.dir-note{margin-top:1.3rem}
.rel{margin:1.4rem 0 .6rem;font:600 1.1rem/1.2 var(--cond)}
.lnk{text-decoration:underline;text-decoration-color:var(--hot);text-decoration-thickness:2px;text-underline-offset:3px}
@media (min-width:40rem){
  .roster{gap:.75rem}
  .card{padding:.85rem .6rem .75rem}
  .card b{font-size:1.1rem}
  .coin{width:4rem;font-size:1.35rem}
  .plate{max-width:8.5rem}
}
@media (min-width:56rem){
  .roster{gap:.9rem}
  .card{flex-direction:row;align-items:center;gap:.9rem;padding:.85rem 1rem;text-align:left}
  .card__txt{flex:1}
  .card b{font-size:1.18rem}
  .card__d{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-top:.2rem;font-size:.95rem;line-height:1.3}
  .coin{width:4.4rem;font-size:1.45rem}
  .plate{width:7.2rem}
  .dossier{padding:1.3rem 1.6rem 1.5rem}
  .dossier dl{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .dossier dl > .wide{grid-column:1 / -1}
}
@media (prefers-reduced-motion:reduce){.card{transition:none}}

/* The map of Leonida (Map section page): our tiles on a canvas, pins as buttons, the entry list underneath. */
.leo{margin-top:2.1rem;scroll-margin-top:.8rem}
.leo__head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem 1rem;margin-bottom:.9rem}
.leo__head h2{font:italic 800 clamp(1.7rem,3.2vw + 1rem,2.3rem)/1.05 var(--display)}
.leo__count{font:600 1.05rem/1.3 var(--cond);opacity:.86}
.leo__frame{position:relative;overflow:visible;padding:0}
.leo__tools{position:relative;z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:.55rem .8rem;padding:.7rem;border-bottom:2.5px solid var(--line);border-radius:14px 14px 0 0;background:var(--sheet)}
.leo__find{position:relative;flex:1 1 15rem;min-width:0}
.leo__find input{box-sizing:border-box;width:100%;padding:.62rem .9rem .62rem 2.3rem;border:2px solid var(--edge);border-radius:999px;background:var(--sheet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%231B0F3B' stroke-width='2.6'/%3E%3Cpath d='M15.5 15.5l5 5' stroke='%231B0F3B' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") .8rem 50%/1.05rem no-repeat;color:var(--ink);font:600 1.02rem/1.2 var(--text)}
html[data-theme="dark"] .leo__find input{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='%23F4EFFF' stroke-width='2.6'/%3E%3Cpath d='M15.5 15.5l5 5' stroke='%23F4EFFF' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E")}
.leo__results{position:absolute;left:.7rem;right:.7rem;top:calc(100% - .2rem);z-index:8;max-width:30rem;max-height:20rem;overflow:auto;border:2.5px solid var(--line);border-radius:12px;background:var(--sheet);box-shadow:4px 5px 0 #000}
.leo__results li{display:flex;flex-direction:column;gap:.05rem;padding:.55rem .8rem;border-bottom:1px solid var(--rule);cursor:pointer}
.leo__results li:last-child{border-bottom:0}
.leo__results li[aria-selected="true"],.leo__results li:hover{background:var(--canary);color:#1B0F3B}
.leo__results b{font:600 1rem/1.25 var(--text)}
.leo__results span{font:600 .9rem/1.2 var(--cond);opacity:.78}
.leo__results .leo__none{cursor:default;font:600 .98rem/1.3 var(--cond)}
.leo__chips{display:flex;gap:.35rem;min-width:0;overflow-x:auto;padding:.1rem .1rem .3rem;scrollbar-width:none}
.leo__chips::-webkit-scrollbar{display:none}
.leo-chip{flex:none;display:inline-flex;align-items:center;gap:.4rem;padding:.38rem .7rem .38rem .38rem;border:2px solid var(--edge);border-radius:999px;background:var(--sheet);color:var(--ink);font:600 1rem/1 var(--cond);cursor:pointer}
.leo-chip i,.leo-list__kind i{display:grid;place-items:center;width:1.45rem;height:1.45rem;border:2px solid #000;border-radius:6px;background:var(--c);color:#1B0F3B;font:italic 800 .8rem/1 var(--display)}
.leo-chip span{opacity:.6}
.leo-chip[aria-pressed="true"]{border-color:#000;background:var(--canary);color:#1B0F3B}
.leo__spoil{display:inline-flex;align-items:center;gap:.45rem;font:600 1rem/1.2 var(--cond);cursor:pointer}
.leo__spoil input{width:1.15rem;height:1.15rem;accent-color:#FB22A9}
.leo__body{position:relative}
html:not(.js) .leo__tools{display:none}
html:not(.js) .leo__stage{border-radius:14px}
.leo-guides__k{margin-top:.2rem;font:600 .95rem/1.2 var(--cond);opacity:.72}
.leo__stage{position:relative;height:clamp(25rem,74vh,47rem);overflow:hidden;border-radius:0 0 14px 14px;background:#1D1A55;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
html:not(.js) .leo__stage,.leo__frame:not(.is-live) .leo__stage{cursor:default}
.leo__stage:focus-visible{outline:3px solid var(--hot);outline-offset:-3px;border-radius:0 0 14px 14px}
.is-moving .leo__stage{cursor:grabbing}
.leo__poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.leo__canvas{position:absolute;inset:0;display:block}
.leo__pins{position:absolute;inset:0;pointer-events:none}
.leo-pin{position:absolute;left:0;top:0;width:30px;height:30px;margin:-15px 0 0 -15px;padding:0;border:0;background:none;color:#1B0F3B;cursor:pointer;pointer-events:auto}
.leo-pin i{display:grid;place-items:center;box-sizing:border-box;width:100%;height:100%;border:2.5px solid #000;border-radius:8px;background:var(--c);font:italic 800 .92rem/1 var(--display);box-shadow:2px 3px 0 #000;transition:transform .12s}
.leo-pin--near i{border-style:dashed;border-radius:50%}
.leo-pin:hover i{transform:translate(-1px,-2px)}
.leo-pin.is-on{z-index:2}
.leo-pin.is-on i{transform:scale(1.28);box-shadow:0 0 0 3px #fff,3px 4px 0 3px #000}
.leo-pin.is-new::after{content:"";position:absolute;right:-5px;top:-5px;width:11px;height:11px;border:2px solid #000;border-radius:50%;background:#FB22A9}
.leo-pin--group{width:34px;height:34px;margin:-17px 0 0 -17px}
.leo-pin--group i{border-radius:999px;background:#fff;font:italic 800 1rem/1 var(--display)}
.leo__zoom{position:absolute;right:.7rem;top:.7rem;display:grid;gap:.4rem}
.leo__zoom button{display:grid;place-items:center;min-width:2.6rem;height:2.6rem;padding:0 .5rem;border:2.5px solid #000;border-radius:10px;background:#fff;color:#1B0F3B;font:italic 800 1.25rem/1 var(--display);box-shadow:2px 3px 0 #000;cursor:pointer}
.leo__zoom button[data-leo-fit]{font:600 1rem/1 var(--cond)}
.leo__zoom button:active{transform:translate(2px,2px);box-shadow:0 1px 0 #000}
.leo__tip{position:absolute;left:.7rem;bottom:.7rem;display:flex;flex-direction:column;gap:.15rem;max-width:min(19rem,calc(100% - 4.8rem));padding:.6rem 2.2rem .6rem .8rem;border:2.5px solid #000;border-radius:12px;background:#fff;color:#1B0F3B;box-shadow:3px 4px 0 #000}
.leo__tip b{font:600 1.02rem/1.2 var(--text)}
.leo__tip span{font:600 .95rem/1.2 var(--cond)}
.leo__tip small{font-size:.8rem;line-height:1.3;opacity:.75}
.leo__tipx{position:absolute;right:.3rem;top:.25rem;width:1.8rem;height:1.8rem;border:0;background:none;color:inherit;font-size:1.3rem;cursor:pointer}
.leo__toast{position:absolute;left:50%;top:.7rem;max-width:calc(100% - 7rem);padding:.45rem .85rem;border:2.5px solid #000;border-radius:999px;background:var(--canary);color:#1B0F3B;font:600 .98rem/1.2 var(--cond);text-align:center;transform:translateX(-50%);box-shadow:2px 3px 0 #000}
.leo__wheel{position:absolute;left:50%;top:50%;padding:.55rem .95rem;border-radius:999px;background:rgba(27,15,59,.86);color:#fff;font:600 1.02rem/1.2 var(--cond);transform:translate(-50%,-50%);pointer-events:none}
.leo__sheet{position:absolute;right:.7rem;top:.7rem;bottom:.7rem;z-index:4;box-sizing:border-box;width:min(23rem,calc(100% - 5rem));overflow:auto;padding:.9rem 1rem 1.1rem;border:2.5px solid #000;border-radius:14px;background:var(--sheet);color:var(--ink);box-shadow:4px 5px 0 #000;overscroll-behavior:contain}
.has-sheet .leo__zoom{right:auto;left:.7rem}
.leo__sheet:focus{outline:0}
.leo-sheet__top{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .55rem}
.leo-sheet__kind{display:inline-flex;align-items:center;gap:.35rem;font:600 1rem/1 var(--cond)}
.leo-sheet__kind::before{content:"";width:.85rem;height:.85rem;border:2px solid #000;border-radius:4px;background:var(--c)}
.leo-sheet__x{margin-left:auto;padding:.32rem .6rem;border:2px solid var(--edge);border-radius:999px;background:var(--sheet);color:var(--ink);font:600 .95rem/1 var(--cond);cursor:pointer}
.leo__sheet h3{margin-top:.6rem;font:italic 800 1.35rem/1.1 var(--display);text-wrap:balance}
.leo-sheet__where{margin-top:.2rem;font:600 1.02rem/1.25 var(--cond);opacity:.82}
.leo-sheet__body{margin-top:.65rem;display:grid;gap:.5rem}
.leo-sheet__spoil{margin-top:.7rem;padding:.55rem .8rem;border:2px dashed var(--edge);border-radius:10px;background:none;color:var(--ink);font:600 1rem/1.2 var(--cond);cursor:pointer}
.leo-sheet__tags{display:flex;flex-wrap:wrap;gap:.3rem}
.leo-sheet__tags span{padding:.15rem .5rem;border:1.5px solid var(--edge);border-radius:999px;font:600 .88rem/1.2 var(--cond)}
.leo__sheet dl{display:grid;gap:.6rem;margin-top:.9rem;padding-top:.8rem;border-top:1px solid var(--rule)}
.leo__sheet dt{font:600 .92rem/1.2 var(--cond);opacity:.72}
.leo__sheet dd{margin-top:.1rem;font-size:.98rem;line-height:1.42}
.leo-src li,.leo-guides li{margin-top:.25rem}
.leo-src a,.leo-guides a{text-decoration-color:var(--hot);text-decoration-thickness:2px;text-underline-offset:3px}
.leo-src span{font:600 .9rem/1.2 var(--cond);opacity:.72}
.leo-guides a{font-weight:600}
.leo__credit{margin-top:.8rem;max-width:80ch;font:400 .88rem/1.45 var(--text);opacity:.8}
.leo__credit a{text-decoration-color:var(--hot);text-underline-offset:2px}
@media (max-width:47.49rem){
  .leo__stage{height:clamp(22rem,64vh,36rem)}
  .leo__sheet{left:.45rem;right:.45rem;top:auto;bottom:.45rem;width:auto;max-height:62%}
  .has-sheet .leo__zoom{left:auto;right:.7rem}
  .leo__tools{padding:.6rem}
}
.leo-list__note{max-width:68ch;margin-bottom:.4rem;font:600 1.02rem/1.35 var(--cond);opacity:.84}
.leo-list__kind{display:flex;align-items:center;gap:.5rem;margin:1.5rem 0 .65rem;font:italic 800 1.35rem/1.1 var(--display)}
.leo-list__kind span{font:600 1.05rem/1 var(--cond);opacity:.66}
.leo-entries{display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem}
.leo-entry{display:flex;flex-direction:column;gap:.35rem;padding:.85rem .95rem;border:2px solid var(--edge);border-radius:12px;background:var(--sheet);scroll-margin-top:1rem}
.leo-entry__top{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .7rem}
.leo-entry__go{margin-left:auto;font:600 1rem/1.2 var(--cond);text-decoration-color:var(--hot);text-decoration-thickness:2px;text-underline-offset:3px}
.leo-entry__nopin{margin-left:auto;font:600 .95rem/1.2 var(--cond);opacity:.66}
.leo-entry h4{font:600 1.12rem/1.25 var(--text)}
.leo-entry__where{font:600 1rem/1.25 var(--cond);opacity:.8}
.leo-entry p{max-width:68ch;font-size:1rem;line-height:1.45}
.leo-entry details summary{cursor:pointer;font:600 1rem/1.3 var(--cond)}
.leo-entry details[open] summary{margin-bottom:.35rem}
.leo-entry details > p + p,.leo-entry details > p + ul{margin-top:.35rem}
.leo-spoil summary{color:var(--no)}
@media (min-width:56rem){.leo-entries{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){.leo-pin i{transition:none}}
