/* ---------------------------------------------------------------------
   PASSAGE — thegoodluckcats.com

   HIS DIRECTION, 9 Nov 2026, after rejecting the first attempt:
   more colour, a different layout from gravitrek.com and heliopoly.com,
   and a lighter version. He chose papyrus & lapis, light by default,
   with the map leading.

   So the page is papyrus, the ink is lapis, and four accents carry the
   sections. The palette is taken from the cat art itself — the lapis
   collars, the gold leaf, the turquoise faience, the terracotta.

     papyrus  #f6efe0   the page
     paper    #fffaf2   what sits on it
     lapis    #15365e   every heading, and the ink
     gold     #d9a21b   the way in, and anything lit
     turq     #2fa39b   the second track, the paperwork
     clay     #c4553c   what is in the way
     night    #10243d   the dark version's page

   Dark is still available on the toggle, but light is what the site
   opens as, which is the opposite of how the shared sheet assumes a
   theme works — hence own_css, and hence the explicit restatements of
   both modes further down.

   This theme is NOT shared. catelonia.com runs `talisman`, which this
   was carved out of on 9 Nov after it turned out a rewrite here was
   silently restyling that site too.
   --------------------------------------------------------------------- */

:root{
  --papyrus:#f6efe0; --paper:#fffaf2; --lapis:#15365e; --lapis-dk:#0e2340;
  --gold:#d9a21b; --turq:#2fa39b; --clay:#c4553c;
  --night:#10243d;

  --page:var(--papyrus);
  --card:var(--paper);
  --ink:var(--lapis);
  --body:#4a4335;
  --rule:rgba(21,54,94,.16);
  --dim:#6b6354;
  --maxw:1240px;
}

:root[data-mode="dark"]{
  --page:var(--night);
  --card:#17304e;
  --ink:#f3ead9;
  --body:#cfd8e4;
  --rule:rgba(243,234,217,.16);
  --dim:#9fb0c2;
}

body{background:var(--page);color:var(--body);
  font-family:"Cormorant Garamond",Georgia,serif;font-size:17.5px;
  line-height:1.6}
a{color:var(--lapis)}
:root[data-mode="dark"] a{color:var(--gold)}

h1,h2,h3,h4,.kicker,.btn,.nav-login,.site-head nav a,.pg-no,.tag,
.eng,.pg-foot,.mapdot b,.mapkey{font-family:"Oswald",system-ui,sans-serif}
h1,h2,h3{color:var(--ink);text-transform:uppercase;letter-spacing:.02em;
  font-weight:700;line-height:1.05}
h1{font-size:clamp(2.1rem,5vw,3.5rem)}
h2{font-size:clamp(1.45rem,3.2vw,2.3rem)}
.kicker{font-weight:500;font-size:.8rem;letter-spacing:.28em;
  text-transform:uppercase;color:var(--clay)}
.sub,.lede{color:var(--body)}
b,strong{color:var(--ink)}

/* ---- the page frame ------------------------------------------------
   .wrap and the masthead's layout are written fresh in every theme;
   the shared sheet carries only the burger, the drawer and the footer. */
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 22px}

.site-head{position:sticky;top:0;z-index:30;display:flex;align-items:center;
  gap:22px;padding:10px 22px;background:var(--paper);
  border-bottom:2px solid var(--lapis)}
:root[data-mode="dark"] .site-head{background:var(--lapis-dk);
  border-bottom-color:var(--gold)}

.brand-mark{display:flex;flex-direction:column;gap:2px;text-decoration:none;
  flex:0 0 auto;min-width:0}
.brand-mark img{height:36px;width:auto;display:block;max-width:100%}
.brand-mark span{font-family:"Oswald",sans-serif;font-size:.54rem;
  letter-spacing:.24em;text-transform:uppercase;color:var(--dim)}

.site-head nav a{text-transform:uppercase;letter-spacing:.09em;
  font-size:.77rem;font-weight:500;color:var(--lapis);text-decoration:none}
:root[data-mode="dark"] .site-head nav a{color:#e8dec9}
.nav-play{background:var(--gold);color:var(--lapis-dk)!important;
  font-weight:700;letter-spacing:.12em;border-radius:3px;padding:8px 16px;
  box-shadow:0 2px 0 #a97c12}
.nav-login{color:var(--dim)}
.nav-toggle{display:none}

@media(min-width:901px){
  .site-head nav{margin-left:auto;display:flex;gap:2px;flex-wrap:wrap}
  .site-head nav a{padding:9px 11px;border-bottom:2px solid transparent}
  .site-head nav a:hover{border-bottom-color:var(--clay)}
}
@media(max-width:900px){
  .site-head{gap:10px;padding:8px 104px 8px 14px}
  .brand-mark{flex:1 1 auto}
  .brand-mark img{height:28px}
  .site-head nav{background:var(--paper);border-bottom:2px solid var(--lapis)}
  :root[data-mode="dark"] .site-head nav{background:var(--lapis-dk)}
  .wrap{padding:0 16px}
}

/* Site team, 22 Nov 2026: dark blue is the only look (config fixed_mode). The light look's two rules that
   stood here are kept in themes/passage/_aside/theme-light-20261122.css. */

/* ---- bands --------------------------------------------------------- */
.band{padding:54px 0;border-top:1px solid var(--rule)}
.band.pale{background:var(--paper)}
.band.dark{background:linear-gradient(180deg,#eee3cd,#f6efe0)}
:root[data-mode="dark"] .band.pale{background:#16304f}
:root[data-mode="dark"] .band.dark{background:var(--night)}

/* ---- the map, which is the spine of this site ----------------------
   No continents are drawn. There is no world map in the art library and
   hand-drawn cartography is exactly the generated filler that got the
   first attempt thrown out. What IS real is the coordinates: every mark
   sits at the site's true latitude and longitude on a plain graticule,
   and the mark itself is the painted plate for that place. */
.mapwrap{display:grid;grid-template-columns:1.45fr 1fr;gap:26px;
  align-items:start}
.mapboard{position:relative;border:2px solid var(--lapis);border-radius:5px;
  background:var(--paper);overflow:hidden;aspect-ratio:2/1}
:root[data-mode="dark"] .mapboard{background:#0c1d33}
.mapgrid{position:absolute;inset:0;
  background-image:
    repeating-linear-gradient(90deg,var(--rule) 0 1px,transparent 1px 8.333%),
    repeating-linear-gradient(0deg,var(--rule) 0 1px,transparent 1px 16.667%)}
.mapeq{position:absolute;left:0;right:0;top:50%;height:1px;
  background:var(--clay);opacity:.5}
.mapkey{position:absolute;left:10px;bottom:8px;font-size:.6rem;
  letter-spacing:.18em;text-transform:uppercase;color:var(--dim)}

.mapdot{position:absolute;transform:translate(-50%,-50%);width:46px;
  height:46px;border-radius:50%;border:2px solid var(--lapis);
  background:var(--card) center/cover no-repeat;cursor:pointer;padding:0;
  box-shadow:0 2px 7px rgba(21,54,94,.3);transition:transform .12s}
.mapdot:hover,.mapdot:focus-visible{transform:translate(-50%,-50%) scale(1.22);
  z-index:5;outline:none;border-color:var(--clay)}
.mapdot.lit{border-color:var(--gold);box-shadow:0 0 0 3px rgba(217,162,27,.4),
  0 2px 7px rgba(21,54,94,.3)}
.mapdot.on{border-color:var(--clay);transform:translate(-50%,-50%) scale(1.25);
  z-index:6}
.mapdot b{position:absolute;left:50%;top:calc(100% + 4px);
  transform:translateX(-50%);font-size:.56rem;letter-spacing:.11em;
  text-transform:uppercase;color:var(--ink);white-space:nowrap;
  background:var(--card);padding:1px 5px;border-radius:2px;
  opacity:0;pointer-events:none;transition:opacity .12s}
.mapdot:hover b,.mapdot.on b{opacity:1}

/* the panel the map feeds */
.mapside{border:2px solid var(--lapis);border-radius:5px;overflow:hidden;
  background:var(--card)}
.mapside>img{display:block;width:100%;height:210px;object-fit:cover;
  border-bottom:2px solid var(--lapis)}
.mapside .in{padding:16px 18px 18px;display:flex;flex-direction:column;
  gap:9px}
.mapside .pg-no{font-size:.72rem;letter-spacing:.2em;color:var(--dim)}
.mapside h3{font-size:1.25rem;margin:0}
.mapside .pg-cat{font-style:italic;color:var(--clay);font-size:1.08rem}
.mapside .pg-stake{font-size:.97rem;color:var(--body)}
.mapcount{display:flex;gap:7px;align-items:baseline;margin-top:4px;
  font-family:"Oswald",sans-serif;font-size:.72rem;letter-spacing:.18em;
  text-transform:uppercase;color:var(--dim)}
.mapcount i{font-style:normal;color:var(--gold);font-size:1rem}

@media(max-width:900px){
  .mapwrap{grid-template-columns:1fr;gap:16px}
  .mapdot{width:34px;height:34px}
  .mapdot b{display:none}
}

/* ---- the eighteen as cards (used on /eighteen/) -------------------- */
.pg-grid{display:grid;gap:14px;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.pg-site{background:var(--card);border:1px solid var(--rule);
  border-left:4px solid var(--gold);border-radius:4px;overflow:hidden;
  display:flex;flex-direction:column}
.pg-site:hover{border-left-color:var(--clay)}
.pg-site img{display:block;width:100%;height:158px;object-fit:cover}
.pg-site .in{padding:14px 16px 16px;display:flex;flex-direction:column;
  gap:7px;flex:1}
.pg-no{font-size:.72rem;letter-spacing:.2em;color:var(--dim)}
.pg-site h3{font-size:1.05rem;margin:0}
.pg-cat{font-style:italic;color:var(--clay);font-size:1rem}
.pg-stake{font-size:.95rem;line-height:1.45;color:var(--body)}
.pg-foot{margin-top:auto;display:flex;gap:9px;align-items:center;
  flex-wrap:wrap;font-size:.66rem;letter-spacing:.14em;
  text-transform:uppercase}
.eng{padding:2px 9px;border-radius:99px;border:1px solid var(--rule);
  color:var(--lapis)}
:root[data-mode="dark"] .eng{color:#e8dec9}
.eng.ALIGN{border-color:var(--lapis);color:var(--lapis)}
.eng.PLACE{border-color:var(--gold);color:#9a7310}
.eng.CLEAR{border-color:var(--turq);color:#1d7a73}
.eng.TRACE{border-color:var(--clay);color:var(--clay)}
.dots{color:var(--gold);letter-spacing:.18em}

/* ---- cards that carry a picture ------------------------------------
   His rule: never an explanatory section made of coloured bars and
   paragraphs. Every card here has room for the art. */
.pg-two{display:grid;gap:16px;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.pg-card{background:var(--card);border:1px solid var(--rule);
  border-radius:4px;padding:18px 20px}
.pg-card h3{font-size:1rem;margin:0 0 8px}
.pg-card p{margin:0;color:var(--body)}
.pg-card.for{border-left:4px solid var(--turq)}
.pg-card.against{border-left:4px solid var(--clay)}
.pg-card.elsewhere{border-left:4px solid var(--gold)}

.pg-card.art{padding:0;overflow:hidden;display:flex;flex-direction:column}
.pg-card.art>img{display:block;width:100%;height:170px;object-fit:cover;
  border-bottom:1px solid var(--rule)}
.pg-card.art.item>img{object-fit:contain;height:160px;padding:12px;
  background:#efe4cd}
:root[data-mode="dark"] .pg-card.art.item>img{background:#0d1e35}
.pg-card.art .in{padding:15px 18px 17px}

/* the three documents, shown as the objects they are */
.docrow{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;
  margin-top:20px}
.docrow figure{margin:0;background:var(--card);border:1px solid var(--rule);
  border-radius:4px;padding:14px;text-align:center}
.docrow img{display:block;width:100%;height:150px;object-fit:contain}
.docrow figcaption{margin-top:9px;font-family:"Oswald",sans-serif;
  font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink)}
@media(max-width:620px){.docrow{grid-template-columns:1fr}}

/* ---- engines, rules, port ------------------------------------------ */
.pg-rules{counter-reset:r;list-style:none;padding:0;margin:0;display:grid;
  gap:11px}
.pg-rules li{counter-increment:r;position:relative;
  padding:13px 16px 13px 56px;background:var(--card);border-radius:4px;
  border-left:3px solid var(--gold)}
.pg-rules li::before{content:counter(r,decimal-leading-zero);
  position:absolute;left:17px;top:12px;font-family:"Oswald",sans-serif;
  font-size:1.1rem;color:var(--clay)}
.pg-rules b{display:block;font-family:"Oswald",sans-serif;font-size:.8rem;
  letter-spacing:.1em;text-transform:uppercase;margin-bottom:4px}
.pg-rules span{color:var(--body);font-size:.97rem}

.pg-eng{display:grid;gap:13px;
  grid-template-columns:repeat(auto-fit,minmax(215px,1fr))}
.pg-eng article{border:1px solid var(--rule);border-top:4px solid var(--lapis);
  border-radius:4px;padding:18px;background:var(--card);
  display:flex;flex-direction:column;gap:10px}
.pg-eng b{font-family:"Oswald",sans-serif;font-size:1.45rem;
  letter-spacing:.14em;color:var(--lapis)}
:root[data-mode="dark"] .pg-eng b{color:var(--gold)}
.pg-eng span{color:var(--body);font-size:.96rem;flex:1}
.pg-eng i{font-family:"Oswald",sans-serif;font-style:normal;font-size:.66rem;
  letter-spacing:.2em;color:var(--dim)}

.pg-port{text-align:center;max-width:64ch;margin:0 auto}
.pg-port .tag{display:inline-block;margin-bottom:16px;padding:5px 14px;
  border:1px solid var(--clay);border-radius:99px;color:var(--clay);
  font-size:.7rem;letter-spacing:.22em;text-transform:uppercase}
.pg-port .btn{margin-top:22px}
.pg-crest{display:block;height:auto;width:min(400px,76%);margin:0 auto 24px;
  filter:drop-shadow(0 8px 20px rgba(21,54,94,.22))}

/* ---- hero ----------------------------------------------------------- */
.pg-hero{position:relative;min-height:clamp(380px,52vh,620px);display:flex;
  align-items:flex-end;border-bottom:2px solid var(--lapis);overflow:hidden}
.pg-hero img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover}
.pg-hero:after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,var(--papyrus) 1%,rgba(246,239,224,.9) 34%,
             rgba(246,239,224,.6) 58%,rgba(246,239,224,.05) 88%)}
:root[data-mode="dark"] .pg-hero:after{
  background:linear-gradient(90deg,var(--night) 1%,rgba(16,36,61,.88) 34%,
             rgba(16,36,61,.6) 58%,rgba(16,36,61,.05) 88%)}
.pg-hero .wrap{position:relative;z-index:2;width:100%;padding:40px 22px}
.pg-hero h1{max-width:18ch}
.pg-hero .lede{max-width:44ch;font-size:1.22rem;margin-top:13px}
@media(max-width:900px){
  .pg-hero{min-height:auto;display:block;padding-bottom:26px}
  .pg-hero img{position:static;height:220px}
  .pg-hero:after{background:none}
  .pg-hero .lede{max-width:none}
}

/* ---- buttons -------------------------------------------------------- */
.btn{display:inline-block;padding:11px 22px;border-radius:3px;
  text-decoration:none;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;font-size:.78rem;border:2px solid var(--lapis);
  color:var(--lapis)}
.btn-play{background:var(--gold);border-color:var(--gold);
  color:var(--lapis-dk);box-shadow:0 3px 0 #a97c12}
.btn-play:active{transform:translateY(2px);box-shadow:0 1px 0 #a97c12}
.btn-quiet{border-color:var(--rule);color:var(--dim)}
:root[data-mode="dark"] .btn{border-color:var(--gold);color:var(--gold)}
:root[data-mode="dark"] .btn-play{color:var(--lapis-dk)}

/* ---- footer --------------------------------------------------------- */
.site-foot{background:var(--lapis);color:#e8dec9;border-top:4px solid var(--gold)}
.site-foot a{color:#f0e6d2}
:root[data-mode="dark"] .site-foot{background:var(--lapis-dk)}


/* the board's edges, so the placement is checkable rather than taken on
   trust -- and a slightly smaller disc, because the Andean three sit
   close enough together to read as the cluster they really are */
.mapdot{width:38px;height:38px}
.mapedge{position:absolute;font-family:"Oswald",sans-serif;font-size:.58rem;
  letter-spacing:.16em;color:var(--dim)}
.mapedge.w{left:7px;top:50%;transform:translateY(-50%)}
.mapedge.e{right:7px;top:50%;transform:translateY(-50%)}
.mapedge.n{top:6px;left:50%;transform:translateX(-50%)}
.mapedge.s{bottom:6px;left:50%;transform:translateX(-50%)}
@media(max-width:900px){.mapdot{width:30px;height:30px}}

/* the key sat in the bottom-left corner, which is where Nazca lands */
.mapkey{top:8px;left:12px;bottom:auto}


/* =====================================================================
   THE ROAD, THE LEVEL PAGES AND THE BOARD
   Added 9 Nov 2026.
   ===================================================================== */

/* ---- the road ------------------------------------------------------
   Eighteen stages, six to a row, the road doubling back like a world
   map in a platform game. Her plate is the token; the number is on it;
   a tick or a flag rides the corner. */
.roadboard{position:relative;border:2px solid var(--lapis);border-radius:6px;
  background:
    radial-gradient(circle at 18% 12%,rgba(47,163,155,.14),transparent 42%),
    radial-gradient(circle at 82% 78%,rgba(217,162,27,.16),transparent 46%),
    var(--paper);
  aspect-ratio:16/10;overflow:visible;padding:0}
:root[data-mode="dark"] .roadboard{background:
    radial-gradient(circle at 18% 12%,rgba(47,163,155,.16),transparent 42%),
    radial-gradient(circle at 82% 78%,rgba(217,162,27,.18),transparent 46%),
    #0c1d33}

.roadline{position:absolute;inset:0;width:100%;height:100%;
  pointer-events:none}
.roadline polyline{fill:none;stroke:var(--lapis);stroke-width:1.1;
  stroke-linecap:round;stroke-linejoin:round;opacity:.3;
  vector-effect:non-scaling-stroke;stroke-dasharray:5 4}
:root[data-mode="dark"] .roadline polyline{stroke:var(--gold);opacity:.4}

.stage{position:absolute;transform:translate(-50%,-50%);width:74px;
  height:74px;border-radius:50%;padding:0;cursor:pointer;border:3px solid;
  background:var(--card);overflow:visible;transition:transform .12s}
.stage img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;border-radius:50%}
.stage.c0{border-color:var(--gold)}
.stage.c1{border-color:var(--turq)}
.stage.c2{border-color:var(--clay)}
.stage.c3{border-color:var(--lapis)}
.stage:hover,.stage:focus-visible{transform:translate(-50%,-50%) scale(1.12);
  z-index:6;outline:none}
.stage.on{transform:translate(-50%,-50%) scale(1.16);z-index:7;
  box-shadow:0 0 0 5px rgba(196,85,60,.28)}

.snum{position:absolute;left:-7px;top:-7px;width:27px;height:27px;
  border-radius:50%;background:var(--lapis);color:#fff8e7;
  font-family:"Oswald",sans-serif;font-size:.82rem;line-height:27px;
  letter-spacing:.02em;z-index:3;box-shadow:0 1px 3px rgba(0,0,0,.4)}
.smark{position:absolute;right:-6px;bottom:-6px;width:24px;height:24px;
  border-radius:50%;background:var(--paper);border:2px solid var(--lapis);
  color:var(--dim);font-size:.78rem;line-height:21px;z-index:3}
.stage.done .smark{background:var(--turq);border-color:var(--turq);
  color:#06302d}
.stage.flag .smark{background:var(--clay);border-color:var(--clay);
  color:#fff1ea}
.sname{position:absolute;left:50%;top:calc(100% + 6px);
  transform:translateX(-50%);font-family:"Oswald",sans-serif;font-size:.6rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--ink);
  white-space:nowrap;background:var(--card);padding:1px 6px;border-radius:2px;
  opacity:0;pointer-events:none;transition:opacity .12s;z-index:8}
.stage:hover .sname,.stage.on .sname{opacity:1}

@media(max-width:1100px){ .stage{width:58px;height:58px}
  .snum{width:23px;height:23px;line-height:23px;font-size:.72rem} }
@media(max-width:900px){
  .roadboard{aspect-ratio:1/1.15}
  .stage{width:50px;height:50px;border-width:2px}
  .snum{width:20px;height:20px;line-height:20px;font-size:.64rem;
    left:-5px;top:-5px}
  .smark{width:19px;height:19px;line-height:16px;font-size:.66rem}
  .sname{display:none}
}

/* ---- a level's own page -------------------------------------------- */
.sitegrid{display:grid;grid-template-columns:1.25fr .75fr;gap:30px;
  align-items:start}
.sitecard{border:2px solid var(--lapis);border-radius:5px;overflow:hidden;
  background:var(--card)}
.sitecard img{display:block;width:100%;height:280px;object-fit:cover;
  object-position:center 14%;border-bottom:2px solid var(--lapis)}
.sitecard .in{padding:16px 18px 18px}
.sitecard h3{font-size:1.4rem;margin:4px 0 12px}
.sitefacts{display:grid;grid-template-columns:auto 1fr;gap:5px 14px;
  margin:16px 0 0;font-size:.92rem}
.sitefacts dt{font-family:"Oswald",sans-serif;font-size:.66rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--dim);
  align-self:center}
.sitefacts dd{margin:0;color:var(--ink)}
.sitenote{margin-top:24px;padding:14px 18px;background:var(--card);
  border-left:4px solid var(--turq);border-radius:3px;font-size:.98rem}
@media(max-width:900px){.sitegrid{grid-template-columns:1fr;gap:22px}
  .sitecard img{height:230px}}

/* ---- the numbered board on /next/ ---------------------------------- */
.board{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:13px;
  grid-template-columns:repeat(auto-fill,minmax(176px,1fr))}
.bcell{position:relative;border:2px solid var(--lapis);border-radius:5px;
  overflow:hidden;background:var(--card)}
.bcell a{display:block;text-decoration:none;color:inherit}
.bcell img{display:block;width:100%;height:98px;object-fit:cover}
.bnum{display:inline-block;margin:9px 0 0 11px;font-family:"Oswald",sans-serif;
  font-size:1.5rem;color:var(--gold);line-height:1}
.bname{display:block;padding:2px 11px 0;font-family:"Oswald",sans-serif;
  font-size:.82rem;text-transform:uppercase;letter-spacing:.05em;
  color:var(--ink)}
.bcat{display:block;padding:1px 11px 12px;font-style:italic;
  color:var(--clay);font-size:.95rem}
.bmark{position:absolute;right:8px;top:8px;width:30px;height:30px;
  border-radius:50%;border:2px solid var(--lapis);background:var(--paper);
  color:var(--dim);cursor:pointer;font-size:.9rem;line-height:1;z-index:3}
.bcell.done{border-color:var(--turq)}
.bcell.done .bmark{background:var(--turq);border-color:var(--turq);color:#06302d}
.bcell.flag{border-color:var(--clay)}
.bcell.flag .bmark{background:var(--clay);border-color:var(--clay);color:#fff1ea}
.boardnote{margin-top:16px;font-size:.92rem;color:var(--dim);max-width:70ch;
  border-left:3px solid var(--rule);padding-left:14px}

/* ---- cards that are links ------------------------------------------ */
a.pg-site,a.pg-card{text-decoration:none;color:inherit;display:flex;
  flex-direction:column}
a.pg-card{display:block}
a.pg-site:hover,a.pg-card:hover{border-color:var(--clay)}

/* His note: the cat cards were cropping to the bow ties. The portraits
   are tall and object-fit:cover takes the middle, so the heads went. */
.pg-site.face img{object-position:center 12%;height:200px}

/* ---- the cats, given room -------------------------------------------
   His note: "make in fact higher thumb views for them". The portraits
   are tall; a 200px window took a band across the middle, which on a
   cat is the bow tie. */
.pg-site.face img{height:330px;object-position:center 10%}
@media(max-width:900px){.pg-site.face img{height:270px}}

/* a colour per card, cycling, so the roster reads as a set rather than
   eighteen identical boxes */
.pg-site.c0{border-left-color:var(--gold)}
.pg-site.c1{border-left-color:var(--turq)}
.pg-site.c2{border-left-color:var(--clay)}
.pg-site.c3{border-left-color:var(--lapis)}

/* the band on a cat's own page that points at her bridge */
.catplace{background:var(--card);border-bottom:2px solid var(--lapis);
  padding:16px 0}
.catplace .wrap{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.catplace .kicker{flex:0 0 auto}
.catplace p{margin:0;flex:1 1 320px;color:var(--body)}
.catplace .btn{flex:0 0 auto}


/* =====================================================================
   STRUCTURE PORTED FROM NOCTURNE                        9 Nov 2026

   The character and episode pages come from the shared templates, but
   their layout has always lived in each theme's own stylesheet. This
   theme was written from scratch and had none of it, so 63 classes --
   every class on 48 character pages and 44 episode pages -- fell back
   to the browser's defaults. The turnaround printed at 896x1152.

   These are nocturne's rules, unchanged in structure. They are driven
   by its variable names, which are defined just below in papyrus and
   lapis, so the layout is nocturne's and the colour is this site's.
   Three hard-coded darks were swapped for the page and card tokens.
   ===================================================================== */

:root{
  --bg:var(--page); --bg2:var(--paper); --panel:var(--card);
  --line:var(--rule); --soft:var(--dim);
  --cyan:var(--turq); --ember:var(--clay);
}
:root[data-mode="dark"]{
  --bg:var(--page); --bg2:#16304f; --panel:var(--card);
  --line:var(--rule); --soft:var(--dim);
}

.skip{position:absolute;left:-999px}
.kicker{font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.22em;
  font-size:.72rem;color:var(--ember);margin:0 0 18px}
.home-fac h2,.home-cats h2,.home-join h2,.home-spotlight h2,.page-head h1{
  font-size:clamp(1.6rem,3.4vw,2.6rem);text-transform:uppercase;margin-bottom:26px}
.ch-card{background:var(--panel);border:1px solid var(--line);overflow:hidden;transition:.2s}
.ch-card:hover{border-color:var(--cyan);transform:translateY(-3px)}
.ch-art{aspect-ratio:3/4;background:var(--page);display:flex;align-items:center;justify-content:center}
.ch-art img{width:100%;height:100%;object-fit:contain}
.ch-initial{font-family:"Oswald",sans-serif;font-size:3rem;color:var(--line)}
.ch-meta{padding:12px 14px}
.ch-name{font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.03em;display:block;font-size:1rem}
.ch-role{color:var(--soft);font-size:.8rem}
.filters{display:flex;gap:6px;flex-wrap:wrap;padding:0 24px 22px;max-width:var(--maxw);margin:0 auto}
.filters button{font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.08em;
  font-size:.72rem;padding:7px 13px;background:transparent;color:var(--soft);
  border:1px solid var(--line);cursor:pointer}
.filters button.on{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.page-head{padding:60px 24px 10px;max-width:var(--maxw);margin:0 auto}
.page-head .lede{max-width:56ch;margin-top:12px}
.fac-list{display:grid;gap:2px;background:var(--line);border:1px solid var(--line);margin-top:20px}
.fac-count{font-family:"Oswald",sans-serif;color:var(--cyan);font-size:.8rem;letter-spacing:.1em}
.ch-title{color:var(--gold);font-size:1.1rem;margin:8px 0 0}
.back{font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;color:var(--cyan)}
.ch-facts{list-style:none;padding:0;display:flex;gap:24px;flex-wrap:wrap;margin:20px 0 0}
.ch-facts li{font-family:"Oswald",sans-serif;font-size:.95rem}
.ch-facts li span{display:block;font-size:.62rem;letter-spacing:.16em;color:var(--soft);text-transform:uppercase}
.ch-body{display:grid;grid-template-columns:1.6fr 1fr;gap:44px;padding:48px 24px}
@media(max-width:820px){
.ch-body{grid-template-columns:1fr}
}
.ch-bio p{font-size:1.08rem;margin:0 0 1em}
.ch-turn h3{text-transform:uppercase;font-size:1rem;color:var(--soft);letter-spacing:.1em;margin-bottom:12px}
.turn-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.turn-row img{background:
  repeating-conic-gradient(var(--card) 0 25%,var(--page) 0 50%) 50%/16px 16px;border:1px solid var(--line)}
.lore-wrap{max-width:760px;padding:40px 24px}
.site-foot .fine{font-size:.8rem;opacity:.8}
.more{margin-top:22px}
.more a{color:var(--cyan);font-family:"Oswald",sans-serif;letter-spacing:.08em}

/* ---- the eighteen, as heads ----------------------------------------
   His call of 9 Nov: on the cats' own site the board should be the
   cats, and moving across one opens her place in the panel. Rows and
   columns, not a road. The portraits are full-length, so the frame is
   square and the crop sits on the head. */
.catheads{display:grid;grid-template-columns:repeat(6,1fr);gap:11px;
  align-content:start}
.head{position:relative;aspect-ratio:1;border-radius:50%;padding:0;
  cursor:pointer;border:3px solid;background:var(--card);overflow:visible;
  transition:transform .12s}
.head img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 7%;border-radius:50%}
.head.c0{border-color:var(--gold)}
.head.c1{border-color:var(--turq)}
.head.c2{border-color:var(--clay)}
.head.c3{border-color:var(--lapis)}
.head:hover,.head:focus-visible{transform:scale(1.1);z-index:6;outline:none}
.head.on{transform:scale(1.12);z-index:7;
  box-shadow:0 0 0 5px rgba(196,85,60,.3)}

.hnum{position:absolute;left:-5px;top:-5px;width:25px;height:25px;
  border-radius:50%;background:var(--lapis);color:#fff8e7;
  font-family:"Oswald",sans-serif;font-size:.76rem;line-height:25px;z-index:3;
  box-shadow:0 1px 3px rgba(0,0,0,.35)}
.hname{position:absolute;left:50%;top:calc(100% + 5px);
  transform:translateX(-50%);font-family:"Oswald",sans-serif;font-size:.62rem;
  letter-spacing:.1em;text-transform:uppercase;color:var(--ink);
  white-space:nowrap;background:var(--card);padding:1px 6px;border-radius:2px;
  opacity:0;pointer-events:none;transition:opacity .12s;z-index:8}
.head:hover .hname,.head.on .hname{opacity:1}

@media(max-width:1100px){.catheads{grid-template-columns:repeat(5,1fr)}}
@media(max-width:900px){
  .catheads{grid-template-columns:repeat(6,1fr);gap:8px}
  .hnum{width:19px;height:19px;line-height:19px;font-size:.62rem}
  .hname{display:none}
}
@media(max-width:520px){.catheads{grid-template-columns:repeat(4,1fr)}}

/* ---- the stage ------------------------------------------------------
   His call: the scene images want to be big. The panel was a sidebar a
   third of the width; now the scene runs the full width and the detail
   sits on it. */
.scenestage{position:relative;border:2px solid var(--lapis);border-radius:6px;
  overflow:hidden;aspect-ratio:21/9;background:var(--card)}
.scenestage>img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover}
.scenestage:after{content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(13,27,42,.9) 0%,
             rgba(13,27,42,.62) 34%,rgba(13,27,42,0) 62%)}
.scenecard{position:absolute;left:0;bottom:0;top:0;z-index:2;
  width:min(470px,54%);padding:26px 26px 24px;display:flex;
  flex-direction:column;justify-content:flex-end;gap:7px;color:#f3ead9}
.scenecard .pg-no{color:rgba(243,234,217,.72)}
.scenecard h2{color:#fff8e7;font-size:clamp(1.3rem,2.3vw,2rem);margin:0}
.scenecard .pg-cat{color:var(--gold);font-style:italic;font-size:1.05rem}
.scenecard .pg-stake{color:rgba(243,234,217,.88);font-size:.98rem}
.scenecard .pg-foot{color:rgba(243,234,217,.7)}
.scenecard .eng{border-color:rgba(243,234,217,.4);color:#f3ead9}
.scenecard .btn{align-self:flex-start;margin-top:10px}

.headslead{margin:22px 0 12px;font-family:"Oswald",sans-serif;
  font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--dim)}

@media(max-width:900px){
  .scenestage{aspect-ratio:4/3}
  .scenestage:after{background:linear-gradient(180deg,rgba(13,27,42,0) 24%,
               rgba(13,27,42,.9) 72%)}
  .scenecard{width:100%;top:auto;padding:18px}
}


/* the heads were laid out for a third of the width and now have all of
   it; nine across, and never larger than a thumb needs to be */
.catheads{grid-template-columns:repeat(9,1fr);gap:14px;
  max-width:1000px}
@media(max-width:1100px){.catheads{grid-template-columns:repeat(6,1fr)}}
@media(max-width:620px){.catheads{grid-template-columns:repeat(5,1fr);gap:9px}}

/* the front page's own lead: two columns, and type sized so the picture
   is what fills the screen rather than the words above it */
.homelead{display:grid;grid-template-columns:1.15fr .85fr;gap:30px;
  align-items:end}
.homelead h1{font-size:clamp(1.9rem,3.3vw,2.8rem);max-width:16ch;margin:6px 0 0}
.homelead .lede{font-size:1.06rem;margin:0;padding-bottom:4px}
@media(max-width:900px){
  .homelead{grid-template-columns:1fr;gap:14px;align-items:start}
  .homelead h1{max-width:none}
}

/* On a phone the detail is taller than the picture, so overlaying it
   pushed the site name off the top of the frame. Below the picture
   instead, in flow, on the dark panel. */
@media(max-width:900px){
  .scenestage{aspect-ratio:auto;display:block;background:#0d1b2a}
  .scenestage>img{position:static;width:100%;height:210px;object-fit:cover}
  .scenestage:after{display:none}
  .scenecard{position:static;width:auto;padding:16px 18px 18px;
    display:block}
  .scenecard h2{margin:4px 0 0}
  .scenecard .btn{margin-top:14px;display:inline-block}
  .scenecard .pg-stake{margin-top:8px}
}

/* ---- heads left, scene right ----------------------------------------
   His call of 9 Nov. Three across and six down is the shape that fits a
   narrow column without the heads shrinking to nothing, and it leaves
   the scene the whole of the rest. The stage takes its height from the
   column so the two end level. */
.homestage{display:grid;grid-template-columns:272px 1fr;gap:20px;
  margin-top:24px;align-items:stretch}
.headcol{display:flex;flex-direction:column}
.headcol .headslead{margin:0 0 10px}
.homestage .catheads{grid-template-columns:repeat(3,1fr);gap:12px;
  max-width:none;flex:1;align-content:space-between}
.homestage .scenestage{aspect-ratio:auto;height:100%;min-height:430px}

@media(max-width:1040px){
  .homestage{grid-template-columns:1fr}
  .homestage .scenestage{min-height:0;aspect-ratio:16/9;order:-1}
  .homestage .catheads{grid-template-columns:repeat(9,1fr)}
}
@media(max-width:900px){
  .homestage .scenestage{aspect-ratio:auto}
  .homestage .catheads{grid-template-columns:repeat(6,1fr)}
}
@media(max-width:520px){.homestage .catheads{grid-template-columns:repeat(5,1fr)}}

/* In the three-across column the name label sits on the row below, and
   the stage beside it already says who she is the moment you touch a
   head. So the label goes here; it stays in the wide layouts. */
.homestage .catheads .hname{display:none}

/* Stacked, the stage kept height:100% from the two-column rule, and
   with an aspect-ratio the browser then derives the WIDTH from that
   height -- so it grew past the page. Height back to auto when stacked. */
@media(max-width:1040px){
  .homestage .scenestage{height:auto;width:100%}
}


/* =====================================================================
   THE HAND                                              9 Nov 2026

   His brief: the cat area wants to be further up, the caption on the
   right, hovering turns the scene over, clicking goes into the area --
   and a better idea than a grid of heads.

   Everything in this universe is a card. So the eighteen are dealt
   across the foot of the scene, overlapping, each one lifting as you
   cross it. The hand sits ON the picture, which is what moves the cats
   up the page, and it keeps them next to the thing they change.

   His second note, about phones: on mobile the grid sat so far below
   the scene that you never saw it change. Cards on the picture fix
   that too -- and on a touch screen there is no hover to preview with,
   so a tap simply goes into the area. The preview is wrapped in
   (hover:hover) so touch devices never get the half-state.
   ===================================================================== */

.dealt{display:grid;grid-template-columns:1fr 340px;gap:20px;
  margin-top:24px;align-items:stretch}

.dealt .scenestage{position:relative;aspect-ratio:16/10;height:auto;
  width:auto;min-height:0;border:2px solid var(--lapis);border-radius:6px;
  overflow:hidden;background:var(--card)}
.dealt .scenestage>img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover}
.dealt .scenestage:after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(13,27,42,0) 44%,
             rgba(13,27,42,.72) 78%,rgba(13,27,42,.9) 100%)}

/* ---- the deal ------------------------------------------------------- */
.hand{position:absolute;left:0;right:0;bottom:16px;z-index:3;
  display:flex;justify-content:center;align-items:flex-end;padding:0 14px}
.card{position:relative;flex:0 0 auto;width:84px;aspect-ratio:3/4;
  margin:0 -15px;border-radius:7px;overflow:hidden;border:2px solid;
  background:var(--card);text-decoration:none;
  transform:rotate(var(--turn)) translateY(var(--lift));
  transform-origin:50% 120%;
  box-shadow:0 5px 14px rgba(8,20,34,.5);
  transition:transform .15s ease, box-shadow .15s ease}
.card>img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 6%}
.card.c0{border-color:var(--gold)}
.card.c1{border-color:var(--turq)}
.card.c2{border-color:var(--clay)}
.card.c3{border-color:#e9dcc2}
.cnum{position:absolute;left:4px;top:4px;z-index:2;min-width:21px;
  height:21px;padding:0 4px;border-radius:11px;background:rgba(13,27,42,.86);
  color:#fff8e7;font-family:"Oswald",sans-serif;font-size:.64rem;
  line-height:21px;letter-spacing:.04em}

@media (hover:hover){
  .card:hover{transform:rotate(0deg) translateY(-26px) scale(1.14);
    z-index:40;box-shadow:0 14px 26px rgba(8,20,34,.6)}
}
.card.on{transform:rotate(0deg) translateY(-18px) scale(1.08);z-index:35;
  box-shadow:0 12px 22px rgba(8,20,34,.55),0 0 0 3px var(--gold)}

/* ---- the caption, now a column of its own --------------------------- */
.dealt .scenecard{position:static;width:auto;padding:22px 22px 24px;
  display:flex;flex-direction:column;justify-content:center;gap:8px;
  background:var(--lapis);border:2px solid var(--lapis);border-radius:6px;
  color:#f3ead9}
.dealt .scenecard .pg-no{color:rgba(243,234,217,.72)}
.dealt .scenecard h2{color:#fff8e7;font-size:clamp(1.25rem,1.9vw,1.75rem);
  margin:0}
.dealt .scenecard .pg-cat{color:var(--gold);font-style:italic;
  font-size:1.05rem;margin:0}
.dealt .scenecard .pg-stake{color:rgba(243,234,217,.88);font-size:.97rem;
  margin:0}
.dealt .scenecard .pg-foot{color:rgba(243,234,217,.7)}
.dealt .scenecard .eng{border-color:rgba(243,234,217,.4);color:#f3ead9}
.dealt .scenecard .btn{align-self:flex-start;margin-top:12px}
.handhint{margin:14px 0 0;font-size:.86rem;color:rgba(243,234,217,.58);
  border-top:1px solid rgba(243,234,217,.18);padding-top:12px}

/* ---- narrower --------------------------------------------------------
   The caption drops under the scene, and the hand stops overlapping so
   eighteen cards still fit across a phone. On touch there is no preview:
   a tap goes into the area, which is what he asked for. */
@media(max-width:1040px){
  .dealt{grid-template-columns:1fr}
  .dealt .scenestage{aspect-ratio:16/9}
  .dealt .scenecard{justify-content:flex-start}
  .handhint{margin-top:12px}
}
@media(max-width:900px){
  .dealt .scenestage{aspect-ratio:5/4}
  .hand{bottom:10px;padding:0 8px;flex-wrap:wrap;gap:5px;
    justify-content:center}
  .card{width:52px;margin:0;transform:none;box-shadow:0 3px 8px rgba(8,20,34,.45)}
  .card.on{transform:scale(1.06);box-shadow:0 0 0 3px var(--gold)}
  .cnum{min-width:17px;height:17px;line-height:17px;font-size:.56rem}
}
@media(max-width:420px){ .card{width:46px} }

/* Eighteen cards have to fit the frame they are dealt into: at 78px wide
   with a -17px margin the step is 44px, so 17*44+78 = 826 inside an
   ~860px stage. And the hand sits clear of the bottom edge so the outer
   cards, which ride lowest on the arc, keep their lower half. */
.hand{bottom:30px;padding:0 6px}
.card{width:78px;margin:0 -17px}
@media(max-width:1240px){ .card{width:68px;margin:0 -15px} }

/* Rotation widens the outer cards beyond their box, so the first one was
   still kissing the frame. 74px at -16px steps 42: 17*42+74 = 788 in an
   ~876px frame, with room for the tilt. */
.card{width:74px;margin:0 -16px}
@media(max-width:1240px){ .card{width:64px;margin:0 -15px} }

/* On a phone the hand wrapped to three rows and buried the picture --
   the opposite of the point, which was to keep the cats next to the
   scene they change. One row, scrolled sideways, pinned to the foot of
   the frame. A tap still goes straight into that area. */
@media(max-width:900px){
  .hand{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
    justify-content:flex-start;gap:6px;bottom:8px;padding:4px 8px;
    scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;
    scrollbar-width:none}
  .hand::-webkit-scrollbar{display:none}
  .card{width:54px;margin:0;scroll-snap-align:center}
  .dealt .scenestage{aspect-ratio:4/3}
}

/* the staging strip that heads every one of the eighteen areas */
.stagebar{background:var(--lapis);color:#f3ead9;
  border-bottom:4px solid var(--gold)}
.stagebar .wrap{display:flex;align-items:center;gap:22px;flex-wrap:wrap;
  padding-top:16px;padding-bottom:16px}
.stagebar .kicker{color:var(--gold)}
.stagebar p{margin:5px 0 0;color:rgba(243,234,217,.85);max-width:72ch}
.stagebar>.wrap>div{flex:1 1 420px}
.stagebar .btn{flex:0 0 auto;border-color:var(--gold)}

/* =====================================================================
   TWO ROWS, A TALLER SCENE, AND A PORTRAIT PLATE FOR PHONES  9 Nov 2026
   ===================================================================== */

/* nine and nine: fewer cards to a row means each can be larger and the
   fan stays well inside the frame. 9 at 92px with -14px margins steps
   64px, so 8*64+92 = 604 in an ~876px frame. */
.hand{flex-direction:column;align-items:center;gap:4px;bottom:18px}
.handrow{display:flex;justify-content:center;align-items:flex-end}
.card{width:92px;margin:0 -14px}
@media(max-width:1240px){ .card{width:78px;margin:0 -13px} }

/* he asked for more height behind the cards */
.dealt .scenestage{aspect-ratio:4/3}

/* the phone's plate is a real portrait cut of the same painting, not the
   wide one letterboxed. Two <img>, one shown: a <picture> is what
   regressed a live layout once (AGENTS.md), and only one is ever
   rendered so the second costs nothing. */
.scene-tall{display:none}
@media(max-width:900px){
  .scene-wide{display:none}
  .scene-tall{display:block}
  .dealt .scenestage{aspect-ratio:3/4}
}

/* The transform read rotate() then translateY(), so each card was moved
   along its own tilted axis -- which skewed the fan instead of arcing
   it, and the row sloped off to one side. Translate first, in the
   upright frame, then rotate. */
.card{transform:translateY(var(--lift)) rotate(var(--turn))}
@media (hover:hover){
  .card:hover{transform:translateY(-26px) rotate(0deg) scale(1.14)}
}
.card.on{transform:translateY(-18px) rotate(0deg) scale(1.08)}
.hand{gap:10px}

/* The two-row rules above were appended after the phone block, so at
   equal specificity they won and the cards came back to 78px -- two
   rows of them covered most of the portrait plate. Restated here, last,
   where they belong: nine to a row at 44px with a -6px step is
   8*38+44 = 348 inside a 390px screen, flat, no fan, leaving the
   picture visible above them. */
@media(max-width:900px){
  .hand{flex-direction:column;flex-wrap:nowrap;overflow:visible;
    gap:5px;bottom:8px;padding:0 6px}
  .handrow{justify-content:center}
  .card{width:44px;margin:0 -3px;transform:none;
    box-shadow:0 2px 6px rgba(8,20,34,.5)}
  .card.on{transform:scale(1.08);box-shadow:0 0 0 2px var(--gold)}
  .cnum{min-width:15px;height:15px;line-height:15px;font-size:.5rem;
    left:2px;top:2px}
}
@media(max-width:420px){ .card{width:38px;margin:0 -2px} }

/* ---- the card arrives with you --------------------------------------
   His ask: the card you took on the front page should follow through to
   the area, the page should carry her record rather than four facts, and
   the way in should be this adventure specifically. */
.bigcard{position:relative;display:block;aspect-ratio:3/4;overflow:hidden;
  border-radius:9px;border:3px solid var(--gold);background:var(--card);
  box-shadow:0 10px 26px rgba(8,20,34,.3)}
.bigcard>img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 6%}
.bigcard .cnum{min-width:30px;height:30px;line-height:30px;font-size:.86rem;
  left:8px;top:8px;background:rgba(13,27,42,.9)}

.sitecard{border:none;background:transparent;overflow:visible}
.sitecard .in{padding:16px 2px 0}
.catrole{margin:2px 0 0;font-family:"Oswald",sans-serif;font-size:.74rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--clay)}
.catbio{margin:12px 0 0;color:var(--body);font-size:.98rem}

.sitefacts.wide{margin-top:30px;border-top:1px solid var(--rule);
  padding-top:18px;grid-template-columns:auto 1fr;gap:9px 20px}

/* her own art, which nothing on this site was showing */
.scenestrip{display:grid;gap:14px;margin-top:22px;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.scenestrip figure{margin:0;background:var(--card);border:1px solid var(--rule);
  border-radius:5px;overflow:hidden}
.scenestrip img{display:block;width:100%;height:170px;object-fit:cover}
.scenestrip figcaption{padding:10px 12px 12px;font-size:.88rem;
  color:var(--dim);line-height:1.4}

@media(max-width:900px){
  .scenestrip{grid-template-columns:1fr 1fr;gap:10px}
  .scenestrip img{height:130px}
  .scenestrip figcaption{font-size:.8rem}
}

/* the three documents are a way through to how the paperwork works */
.doccard{display:block;text-decoration:none;background:var(--card);
  border:1px solid var(--rule);border-radius:4px;padding:14px;
  text-align:center;color:inherit}
.doccard:hover{border-color:var(--clay)}
.doccard img{display:block;width:100%;height:150px;object-fit:contain}
.doccard span{display:block;margin-top:9px;font-family:"Oswald",sans-serif;
  font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink)}

/* =====================================================================
   THE CHARACTER MARQUEE                                   9 Nov 2026

   `ch-marquee` and everything under it has no rule in any stylesheet in
   this repository -- not in components.css, not in nocturne, not
   anywhere. The block renders at browser defaults, which on a phone
   means the name, the faction and the ROLE/SPECIES/GENDER row all run
   off the left edge and the portrait sits on top of the hero.

   This is NOT something this theme broke: gravitrek.com's own character
   pages do exactly the same thing at 390px, on all 142 of them.
   Reported rather than fixed there, because that is a live design and
   nobody asked for it to change. Here it is styled, because he asked
   for this site to be mobile friendly.
   ===================================================================== */

.ch-marquee{position:relative;overflow:hidden;
  border-bottom:2px solid var(--lapis);background:var(--lapis-dk);
  min-height:clamp(320px,46vh,520px);display:flex;align-items:flex-end}
.ch-mq-bg{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;opacity:.85}
.ch-marquee:before{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(14,35,64,0) 38%,
             rgba(14,35,64,.82) 76%,rgba(14,35,64,.95) 100%)}
.ch-mq-in{position:relative;z-index:2;display:flex;align-items:flex-end;
  gap:22px;padding-top:26px;padding-bottom:26px;width:100%}
.ch-mq-port{margin:0;flex:0 0 150px}
.ch-mq-port img{display:block;width:100%;height:auto;border-radius:7px;
  border:3px solid var(--gold);box-shadow:0 10px 24px rgba(0,0,0,.45)}
.ch-mq-txt{flex:1 1 auto;min-width:0;color:#f3ead9}
.ch-mq-txt .back{display:inline-block;font-family:"Oswald",sans-serif;
  font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--gold);text-decoration:none;margin-bottom:8px}
.ch-mq-txt h1{color:#fff8e7;margin:0}
.ch-title{margin:6px 0 0;color:rgba(243,234,217,.85);font-size:1.05rem}
.ch-facts{list-style:none;display:flex;flex-wrap:wrap;gap:8px 26px;
  margin:14px 0 0;padding:0}
.ch-facts li{font-size:1rem;color:#f3ead9}
.ch-facts b,.ch-facts strong{display:block;font-family:"Oswald",sans-serif;
  font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(243,234,217,.6);font-weight:500}

@media(max-width:760px){
  .ch-marquee{min-height:0;display:block}
  .ch-mq-bg{position:static;height:210px}
  .ch-marquee:before{display:none}
  .ch-mq-in{display:block;background:var(--lapis-dk);padding-top:18px;
    padding-bottom:20px}
  .ch-mq-port{width:118px;float:right;margin:0 0 10px 14px}
  .ch-mq-txt h1{font-size:1.9rem}
  .ch-facts{gap:6px 18px}
}

/* The marquee text was still sitting against the left edge and the
   portrait was running off the right. Stated explicitly rather than
   relying on .wrap, which this block also carries. */
.ch-mq-in{box-sizing:border-box;padding-left:22px;padding-right:22px}
@media(max-width:760px){
  .ch-mq-in{padding-left:16px;padding-right:16px}
  .ch-mq-port{float:none;width:120px;margin:0 0 12px}
  .ch-mq-bg{display:block;width:100%;height:200px;object-fit:cover}
}

/* ---- the character marquee, corrected for a light theme -------------
   The marquee is styled by an inline <style> inside character.html, not
   by any stylesheet -- which is why nothing in the repo appeared to
   style it, and why a theme rule at the same specificity loses to it.

   Its phone rule is `padding: 0 0 4px; margin-top:-86px`, so the name
   and facts sit flush against the screen edge and ride up over the
   picture, and it then colours them `var(--ink)` -- which is correct in
   a dark theme and unreadable in this one, where --ink is lapis.

   gravitrek.com has the identical markup and the identical inline rule,
   so its 142 character pages behave the same way at 390px. Not changed
   there: that is a live design and nobody asked for it.
   --------------------------------------------------------------------- */
@media(max-width:760px){
  .ch-marquee .ch-mq-in{position:static;margin-top:0;
    padding:16px 16px 8px;background:var(--card)}
  .ch-marquee .ch-mq-port{width:120px;margin:0 0 12px}
  .ch-marquee .ch-mq-txt h1{color:var(--ink)}
  .ch-marquee .ch-mq-txt .ch-title{color:var(--clay)}
  .ch-marquee .ch-mq-txt .ch-facts li{color:var(--body)}
  .ch-marquee:after{display:none}
}

/* ---- looking after a cat -------------------------------------------- */
.caregrid{display:grid;gap:14px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.carecard{background:var(--card);border:1px solid var(--rule);
  border-left:4px solid var(--turq);border-radius:4px;padding:16px 18px}
.carecard h3{font-size:.98rem;margin:0 0 7px}
.carecard p{margin:0;color:var(--body);font-size:.95rem}
.mycats{margin-top:18px;padding:18px 20px;border:1px dashed var(--rule);
  border-radius:5px;background:rgba(255,255,255,.04)}
.mycats p{margin:0}


/* ---- adopt: signing in, your cats, the cats waiting ----------------
   Added 9 Nov 2026 when adoption went from described to working.
   Nothing above is changed; these use the page's own tokens.         */
.signin{margin-top:18px;padding:18px 20px;border:1px solid var(--rule);
  border-radius:5px;background:var(--card);max-width:640px}
.signin-row{display:grid;gap:12px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.signin label{display:block;font-size:.82rem;letter-spacing:.04em;
  text-transform:uppercase;color:var(--dim)}
.signin input{display:block;width:100%;margin-top:6px;padding:10px 12px;
  border:1px solid var(--rule);border-radius:3px;background:var(--bg);
  color:var(--ink);font:inherit;font-size:.98rem}
.signin input:focus{outline:2px solid var(--gold);outline-offset:1px}
.signin-msg{margin:12px 0 0;color:var(--clay);font-size:.94rem}
/* The same line carries news as well as trouble, and red for news
   reads as a failure. */
.signin-msg.ok{color:var(--ink)}
.signedin{margin-top:18px;display:flex;align-items:center;gap:14px;
  flex-wrap:wrap;color:var(--body)}

.catgrid{display:grid;gap:14px;
  grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.catcard{background:var(--card);border:1px solid var(--rule);
  border-radius:4px;overflow:hidden;display:flex;flex-direction:column}
/* The art is drawn on a tall canvas and must never be cropped: a cat
   with his ears cut off is not the cat that was painted. */
.catcard>img{display:block;width:100%;height:190px;object-fit:contain;
  padding:10px;background:rgba(255,255,255,.05)}
.catcard .in{padding:12px 14px 14px;display:flex;flex-direction:column;
  gap:9px;flex:1}
.catcard .num{margin:0;font-size:.82rem;letter-spacing:.05em;
  text-transform:uppercase;color:var(--dim)}
.catcard .adoptb{padding:8px 14px;font-size:.9rem;margin-top:auto;
  align-self:flex-start}
.catcard .careline{margin:0;display:flex;gap:7px;flex-wrap:wrap}
.careb{padding:6px 11px;border:1px solid var(--rule);border-radius:3px;
  background:transparent;color:var(--body);font:inherit;font-size:.86rem;
  cursor:pointer}
.careb:hover{border-color:var(--gold);color:var(--ink)}
.careb[disabled]{opacity:.5;cursor:default}
.catcard .bag{margin:0;font-size:.86rem;color:var(--dim)}

@media (max-width:520px){
  .catgrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:11px}
  .catcard>img{height:150px}
}

/* ---- taking a cat in -----------------------------------------------
   Added 10 Nov 2026. A card that is about to become yours should not
   simply vanish from a grid.                                          */
.catcard.taking{animation:takein .9s ease-out both}
@keyframes takein{
  0%{transform:scale(1);box-shadow:0 0 0 0 rgba(232,196,104,0)}
  35%{transform:scale(1.06) rotate(-1.5deg);
      box-shadow:0 0 0 10px rgba(232,196,104,.35)}
  100%{transform:scale(.6) translateY(-26px);opacity:0;
       box-shadow:0 0 0 24px rgba(232,196,104,0)}
}
.hurrah{position:fixed;inset:0;z-index:4000;display:grid;place-items:center;
  background:rgba(8,14,20,.72);backdrop-filter:blur(3px);
  animation:fadein .25s ease-out both;padding:20px}
@keyframes fadein{from{opacity:0}to{opacity:1}}
.hurrah .card{background:var(--card);border:1px solid var(--rule);
  border-left:4px solid var(--gold);border-radius:6px;padding:26px 30px;
  max-width:440px;text-align:center;animation:pop .45s cubic-bezier(.2,1.5,.4,1) both}
@keyframes pop{from{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}
.hurrah img{display:block;width:190px;height:190px;object-fit:contain;
  margin:0 auto 14px;background:rgba(255,255,255,.06);border-radius:6px;
  padding:8px}
.hurrah h3{margin:0 0 8px;font-size:1.3rem}
.hurrah p{margin:0 0 16px;color:var(--body)}
.spark{position:fixed;width:9px;height:9px;border-radius:2px;z-index:4001;
  pointer-events:none;animation:fall 1.5s linear forwards}
@keyframes fall{
  0%{transform:translate(0,0) rotate(0);opacity:1}
  100%{transform:translate(var(--dx),78vh) rotate(640deg);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .catcard.taking,.hurrah,.hurrah .card{animation:none}
  .spark{display:none}
}


.glc-start{display:grid;gap:16px;margin-top:22px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.glc-start-card{background:var(--card);border:1px solid var(--rule);border-radius:6px;overflow:hidden;
  display:flex;flex-direction:column}
.glc-start-card img{display:block;width:100%;height:190px;object-fit:contain;background:var(--lapis-dk);padding:10px}
.glc-start-card .in{padding:16px 18px 18px;display:flex;flex-direction:column;gap:8px;flex:1}
.glc-start-card h3{margin:0;font-size:1.1rem}
.glc-start-card p{margin:0;color:var(--body)}
.glc-start-card .glc-btns{margin-top:auto;display:flex;flex-wrap:wrap;gap:8px}
.glc-step-no{font-family:"Oswald",sans-serif;color:var(--gold);font-size:.8rem;letter-spacing:.2em}
.glc-steps{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:18px;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));counter-reset:st}
.glc-steps li{background:var(--card);border:1px solid var(--rule);border-radius:6px;padding:18px;
  display:flex;flex-direction:column;align-items:flex-start;gap:8px;counter-increment:st;position:relative}
.glc-steps li::before{content:counter(st);position:absolute;top:12px;right:14px;font-family:"Oswald",sans-serif;
  color:var(--gold);font-size:1.4rem;opacity:.75}
.glc-steps img{width:84px;height:84px;object-fit:contain}
.glc-steps b{font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}
.glc-steps span{color:var(--body)}
.glc-rule{max-width:860px;text-align:center}
.glc-rule blockquote{margin:14px auto 12px;font-size:clamp(1.25rem,2.6vw,1.7rem);line-height:1.4;color:var(--ink);
  border-left:0;padding:0;font-style:italic}
.glc-rule .sub{font-size:1.08rem}
.glc-rule-inline{border-left:3px solid var(--gold);padding:6px 0 6px 14px;font-style:italic;color:var(--ink)}
.glc-cast{display:grid;gap:14px;margin-top:22px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
.glc-cast a{display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;
  background:var(--card);border:1px solid var(--rule);border-radius:6px;padding:14px 10px}
.glc-cast img{width:100%;height:170px;object-fit:contain}
.glc-cast b{font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.06em;color:var(--ink);font-size:.9rem}
.glc-toc{padding:14px 0}
.glc-toc .wrap{display:flex;flex-wrap:wrap;gap:8px 18px}
.glc-toc a{font-family:"Oswald",sans-serif;text-transform:uppercase;letter-spacing:.08em;font-size:.8rem}
.glc-how{display:grid;gap:24px;max-width:880px}
.glc-how.has-pic{grid-template-columns:140px 1fr;align-items:start}
.glc-how img{width:140px;height:140px;object-fit:contain}
.glc-how .sub{font-size:1.1rem;margin:10px 0 0}
.glc-story-step{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:26px;align-items:center;
  margin-top:30px}
.glc-story-art{width:100%;border-radius:6px;border:1px solid var(--rule);aspect-ratio:16/10;object-fit:cover}
.glc-story-step h3{margin:0 0 8px;font-size:1.15rem}
.glc-story-step .sub{font-size:1.1rem}
.glc-story-cast{display:flex;gap:10px;margin-top:12px}
.glc-story-cast img{height:96px;width:auto}
.glc-faq{max-width:860px}
.glc-faq details{background:var(--card);border:1px solid var(--rule);border-radius:6px;margin:0 0 10px;padding:0 18px}
.glc-faq summary{cursor:pointer;padding:15px 0;font-family:"Oswald",sans-serif;text-transform:uppercase;
  letter-spacing:.05em;color:var(--ink)}
.glc-faq details p{margin:0 0 14px;color:var(--body);font-size:1.08rem}
.glc-faq details[open] summary{color:var(--gold)}
@media (max-width:700px){
  .glc-how.has-pic{grid-template-columns:1fr}
  .glc-how img{width:96px;height:96px}
  .glc-story-step{grid-template-columns:1fr;gap:14px}
  .glc-start-card img{height:160px}
}
@media (max-width:640px){
  /* the realms chip waits for the first scroll (base.html adds gt-past-first) */
  html:not(.gt-past-first) .gx-badge{display:none}
  /* the beta notice on the site's pages: a sheet at the top, not a dimmed box over the cards (the game page,
     /enter/, keeps its own) */
  body:not(.p-enter) .gt-beta{place-items:start center;background:transparent;pointer-events:none}
  body:not(.p-enter) .gt-beta-box{pointer-events:auto;box-shadow:0 10px 30px rgba(0,0,0,.55)}
  body.gt-beta-lock:not(.p-enter){overflow:auto}
}
/* site team, 22 Nov 2026: this theme never laid out .ch-grid, so every character card on /characters/ and the
   faction pages was drawn the full width of the page (85,154 px for the list). A grid, as the other themes have;
   components.css keeps its own phone rule (two across at 390). */
.ch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;
  max-width:var(--maxw);margin:8px auto 44px;padding:0 24px}
@media (max-width:640px){.ch-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 16px;gap:10px}}
