/* How to play, as a guide book: a sticky row of tabs, one topic at a time, each with something to touch. */
.about { max-width: 980px; }
.guide h2 { font: 400 26px var(--display); margin: 6px 0 12px; } .guide h3 { font: 400 18px var(--display); margin: 22px 0 8px; }
.g-head h1 { margin-bottom: 6px; } .g-head p { font-size: 16px; margin: 0 0 10px; }
.g-chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; } .g-chips li { border: 2.5px solid var(--ink); background: #fff; padding: 3px 10px; font-weight: 700; font-size: 14px; } .g-chips b { font: 400 16px var(--display); margin-right: 3px; }
.g-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; background: var(--ink); border: 3px solid var(--ink); margin: 0 -2px 16px; }
.g-tabs::-webkit-scrollbar { display: none; }
.g-tabs a { flex: none; color: #fff; text-decoration: none; padding: 10px 14px 9px; font-weight: 900; font-size: 15px; border-bottom: 5px solid transparent; white-space: nowrap; }
.g-tabs a:hover { background: #2a2a2e; } .g-tabs a.on { background: var(--board); color: var(--ink); border-bottom-color: var(--hi); }
body:not(.g-tabbed) .g-sec { border-top: 3px solid var(--ink); padding-top: 8px; }
.g-sec[hidden] { display: none; } .g-sec { scroll-margin-top: 64px; } .ib { scroll-margin-top: 70px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.acard { background: #fff; border: 2.5px solid #141416; border-top-width: 6px; border-radius: 2px; padding: 8px 12px; }
.acard b { font-size: 16px; font-weight: 900; } .acard b .ic { width: 16px; height: 16px; vertical-align: -2px; margin-right: 4px; } .acard small { display: block; font-size: 14px; line-height: 1.4; margin-top: 3px; } .acard .tag { font-size: 12px; color: #5d6068; font-weight: 700; }
.elt { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid #141416; margin-right: 7px; vertical-align: -5px; } .elt .ic { width: 14px; height: 14px; }
.g-list { padding-left: 20px; } .g-list li { margin: 4px 0; line-height: 1.45; }
.g-loading, .g-tip { color: var(--graphite); font-weight: 700; }
/* start here: a comic strip in four panels */
.g-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.g-strip li { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; }
.g-strip canvas { width: 100%; aspect-ratio: 4 / 3; display: block; border-bottom: 3px solid var(--ink); }
.g-strip b { font: 400 16px var(--display); padding: 8px 10px 2px; display: flex; align-items: center; gap: 7px; } .g-strip b i { font-style: normal; width: 24px; height: 24px; display: grid; place-items: center; background: var(--hi); border: 2px solid var(--ink); font-size: 13px; }
.g-strip span { padding: 0 10px 10px; font-size: 14px; line-height: 1.4; }
.g-steps { list-style: none; padding: 0; display: grid; gap: 6px; counter-reset: s; } .g-steps li { counter-increment: s; background: #fff; border: 2.5px solid var(--ink); padding: 8px 12px 8px 44px; position: relative; } .g-steps li::before { content: counter(s); position: absolute; left: 8px; top: 7px; width: 26px; height: 26px; display: grid; place-items: center; background: var(--ink); color: var(--hi); font: 400 14px var(--display); }
.g-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; } .btn.big { font-size: 17px; padding: 12px 18px; }
/* the board */
.g-mapwrap { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
#gmap { width: 100%; aspect-ratio: 1; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; display: block; }
.g-mapinfo { background: #fff; border: 3px solid var(--ink); padding: 10px 14px; min-height: 90px; } .g-mapinfo b { font: 400 18px var(--display); } .g-mapinfo p { margin: 6px 0 0; }
.g-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
/* your hero */
.g-kit { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 12px; margin-bottom: 10px; }
.kit-hero { text-align: center; } .kit-hero canvas { width: 100%; max-width: 240px; display: block; margin: 0 auto; } .kit-hero b { font: 400 20px var(--display); display: block; } .kit-hero small { font-weight: 700; color: var(--graphite); } .kit-hero small .ic { width: 15px; height: 15px; vertical-align: -2px; margin-right: 3px; }
.kit-slots { display: grid; gap: 8px; } .kit-slot { display: grid; grid-template-columns: 72px 1fr; gap: 10px; text-align: left; background: var(--board); border: 2.5px solid var(--ink); padding: 6px; align-items: center; }
.kit-slot:hover { background: #fffbe0; } .ks-ic { position: relative; width: 72px; height: 72px; border: 3px solid var(--ink); background: var(--el); overflow: hidden; } .ks-ic img { width: 100%; height: 100%; display: block; }
.ks-t em { font-style: normal; font-weight: 900; font-size: 12px; color: var(--graphite); display: block; } .ks-t b { font-size: 16px; } .ks-t small { display: block; font-size: 13.5px; line-height: 1.35; }
/* the mix finder */
.g-mixer { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 12px; display: grid; gap: 10px; }
.mx-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .mx-row em { font-style: normal; font-weight: 900; width: 100%; }
.mx-chip { display: inline-flex; align-items: center; gap: 5px; border: 2.5px solid var(--ink); background: #fff; padding: 4px 9px 4px 6px; font-weight: 800; font-size: 14px; } .mx-chip .ic { width: 16px; height: 16px; background: var(--c); color: var(--g); border-radius: 2px; padding: 1px; }
.mx-chip.on { background: var(--c); color: var(--g); box-shadow: 2px 2px 0 var(--ink); }
.mx-out { border: 3px dashed var(--tone); padding: 10px 14px; } .mx-out.hit { border-style: solid; border-color: var(--ink); background: #fffbe0; } .mx-out b { font: 400 18px var(--display); } .mx-out .mx-word { font-size: 30px; color: var(--red); -webkit-text-stroke: 1px var(--ink); } .mx-out p { margin: 4px 0 0; }
.g-more { margin-top: 10px; } .g-more summary { font-weight: 900; cursor: pointer; }
/* the item book */
.g-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; } .g-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.g-chiprow button { border: 2.5px solid var(--ink); background: #fff; padding: 5px 11px; font-weight: 900; font-size: 14px; } .g-chiprow button.on { background: var(--ink); color: #fff; box-shadow: 0 -4px 0 var(--hi) inset; }
#isearch { flex: 1 1 200px; font: inherit; font-weight: 700; padding: 7px 10px; border: 2.5px solid var(--ink); }
.g-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; align-items: start; }
.ib { background: #fff; border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); } .ib.master { border-color: #c99a10; box-shadow: 3px 3px 0 #c99a10; } .ib.open { grid-column: 1 / -1; }
.ib-top { display: flex; gap: 10px; align-items: center; width: 100%; background: none; border: 0; padding: 7px; text-align: left; } .ib-top b { font-size: 16px; display: block; } .ib-top small { font-weight: 700; color: var(--graphite); }
.ib-ic { width: 56px; height: 56px; border: 2.5px solid var(--ink); flex: none; overflow: hidden; } .ib.master .ib-ic { border-color: #c99a10; } .ib-ic img { width: 100%; height: 100%; display: block; }
.ib-body { padding: 0 10px 10px; } .ib-st { font-weight: 900; margin: 0 0 4px; font-size: 14px; } .ib .pw { margin: 3px 0; font-size: 14px; line-height: 1.4; } .ib .pw em { font-style: normal; font-weight: 900; } .ib .pw.skill em { color: #7b3fe4; } .ib .pw i { font-style: normal; font-weight: 900; color: var(--graphite); }
.ib-big { width: 120px; height: 120px; border: 3px solid var(--ink); float: right; margin: 0 0 8px 12px; } .ib.master .ib-big { border-color: #c99a10; } .ib-in { clear: both; font-size: 13px; font-weight: 700; color: var(--graphite); margin: 6px 0 0; }
.g-build { background: #fff; border: 2.5px solid var(--ink); padding: 8px 12px; margin-bottom: 8px; } .g-build h4 { margin: 0 0 4px; font: 400 16px var(--display); } .g-build h4 .ic { width: 16px; height: 16px; margin-right: 5px; vertical-align: -2px; }
.gb-row { display: flex; align-items: center; gap: 10px; padding: 5px 0; border-top: 1.5px solid var(--rule); flex-wrap: wrap; } .gb-name { width: 150px; } .gb-name b { display: block; } .gb-name small { color: var(--graphite); font-weight: 700; font-size: 12px; }
.gb-items { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .gb-items a { width: 36px; height: 36px; border: 2px solid var(--ink); display: block; } .gb-items img { width: 100%; height: 100%; display: block; } .gb-items i { font-style: normal; color: var(--tone); font-weight: 900; }
/* controls */
.g-seg { display: inline-flex; border: 3px solid var(--ink); margin-bottom: 12px; } .g-seg button { border: 0; background: #fff; padding: 8px 14px; font-weight: 900; font-size: 15px; } .g-seg button.on { background: var(--ink); color: #fff; }
.g-phone { position: relative; width: min(100%, 560px); aspect-ratio: 844 / 390; background: #fbfbf8 radial-gradient(circle, rgba(134,189,230,.6) 1px, transparent 1.2px) 0 0 / 18px 18px; border: 6px solid var(--ink); border-radius: 26px; box-shadow: 4px 4px 0 var(--ink); margin-bottom: 10px; }
.pp { position: absolute; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 12px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.pp.stick { left: 14%; top: 70%; width: 22%; aspect-ratio: 1; background: rgba(20,20,22,.08); } .pp.atk { left: 88%; top: 76%; width: 15%; aspect-ratio: 1; background: var(--hi); font-size: 14px; } .pp.minion { left: 74%; top: 88%; width: 7%; aspect-ratio: 1; }
.pp.s1 { left: 74%; top: 70%; width: 10%; aspect-ratio: 1; background: #38b8c4; } .pp.s2 { left: 79%; top: 47%; width: 10%; aspect-ratio: 1; background: #38b8c4; } .pp.s3 { left: 90%; top: 40%; width: 10%; aspect-ratio: 1; background: #38b8c4; } .pp.ult { left: 64%; top: 52%; width: 11%; aspect-ratio: 1; background: #e3342c; color: #fff; }
.pp.spell { left: 85%; top: 18%; width: 8%; aspect-ratio: 1; } .pp.item { left: 66%; top: 25%; width: 8%; aspect-ratio: 1; background: #2350e6; color: #fff; } .pp.home { left: 75%; top: 22%; width: 7%; aspect-ratio: 1; }
.pp.gold { left: 82%; top: 7%; width: auto; padding: 2px 8px; border-radius: 3px; transform: translate(-50%, 0); display: flex; align-items: center; gap: 3px; white-space: nowrap; } .pp.map { left: 8%; top: 18%; width: 13%; aspect-ratio: 1; border-radius: 3px; background: #9a9da6; color: #fff; }
.g-keys { display: flex; flex-wrap: wrap; gap: 10px 18px; background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 14px; margin-bottom: 10px; } .g-keys span { display: inline-flex; align-items: center; gap: 4px; }
kbd { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border: 2.5px solid var(--ink); border-bottom-width: 5px; border-radius: 5px; background: var(--board); font: 400 15px var(--display); } kbd.w { min-width: 70px; } .g-keys em { font-style: normal; font-weight: 700; margin-left: 4px; }
@media (max-width: 760px) {
  .g-strip { grid-template-columns: 1fr 1fr; } .g-mapwrap, .g-kit { grid-template-columns: 1fr; } .kit-hero canvas { max-width: 180px; } .gb-name { width: 100%; }
  .g-tabs a { padding: 9px 11px 8px; font-size: 14px; } .guide h2 { font-size: 22px; }
}
@media (max-width: 600px) {
  #combos tr:first-child { display: none; }
  #combos tr { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 10px 2px; border-bottom: 1.5px solid rgba(20,20,22,.18); }
  #combos td { border: 0; padding: 0; } #combos td:nth-child(3) { grid-column: 1 / -1; order: -1; font-size: 17px; } #combos td:nth-child(4) { grid-column: 1 / -1; }
  #combos td:nth-child(2)::before { content: '+'; font-weight: 900; margin-right: 10px; }
  #kinds, #elementlist { grid-template-columns: 1fr 1fr; } #kinds .acard, #elementlist .acard { padding: 7px 9px; } #kinds .acard small, #elementlist .acard small { font-size: 13px; }
}
@media (max-width: 420px) { .g-strip { grid-template-columns: 1fr; } .grid, .g-items { grid-template-columns: 1fr; } }

/* Heroes & cards (shared/heroslots.mjs), the 60-second line, and the guide inside a match (?embed=1) */
.g-sixty { margin: 0 0 14px; padding: 10px 14px; background: #fffdf2; border: 2.5px dashed var(--ink); font-size: 16px; line-height: 1.5; }
.g-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 6px; }
.g-slots .slot { background: #fff; border: 3px solid var(--ink); border-radius: 2px; box-shadow: 3px 3px 0 var(--drop); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.g-slots .slot b { font: 400 30px/1 var(--display); } .g-slots .slot span { font-size: 14px; font-weight: 700; color: var(--graphite); } .g-slots .slot.hi { background: #fffbe6; }
@media (max-width: 480px) { .g-slots { grid-template-columns: 1fr; } .g-slots .slot { flex-direction: row; align-items: baseline; gap: 10px; } }
html[data-embed] .top, html[data-embed] .foot, html[data-embed] .g-cta, html[data-embed] .g-head p { display: none !important; }
html[data-embed] body { background: var(--board); } html[data-embed] .page { padding-top: 6px; } html[data-embed] .about-sheet { border: 0; box-shadow: none; }
html[data-portal] .top nav.links, html[data-portal] .foot, html[data-portal] .g-cta { display: none !important; }   /* the portal edition: no site around the guide */
.g-oldnote { margin: 4px 0 10px; font-size: 14px; color: var(--graphite); font-weight: 700; }

/* The match's bestiary (public/guidejungle.js): a card for each camp and objective, its creature on a stage; the
   minions' march and their cards. One stage moves at a time per card; the dark buttons keep an ink shadow here (one
   highlighter thing per screen). */
.g-jhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 8px; } .g-jhead h3 { margin: 0; }
.g-snd { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; } .g-snd svg.ink { width: 18px; height: 18px; } .g-snd[aria-pressed="true"] { background: var(--ink); color: var(--board); }
html[data-embed] .g-snd { display: none !important; }
.g-lead { margin: 0 0 12px; line-height: 1.5; }
.g-beasts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 6px; }
.bcard { background: #fff; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); display: flex; flex-direction: column; min-width: 0; scroll-margin-top: 70px; }
.bcard.buff-red { border-top: 8px solid var(--red); } .bcard.buff-blue { border-top: 8px solid var(--blue); } .bcard.objective { border-top: 8px solid var(--purple); }
.bc-stage { position: relative; border-bottom: 3px solid var(--ink); } .bc-stage canvas { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--board); }
.bc-tag { position: absolute; left: 0; top: 0; background: var(--ink); color: var(--board); font-weight: 900; font-size: 12px; padding: 3px 8px; }
.bc-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bc-body h4 { margin: 0; font: 400 20px var(--display); }
.bc-look { margin: 0; color: var(--graphite); font-weight: 700; font-size: 14px; line-height: 1.35; }
.bc-stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; } .bc-stats li { border: 2px solid var(--ink); padding: 2px 8px; font-size: 13px; font-weight: 700; } .bc-stats b { font: 400 15px var(--display); }
.bc-pack, .bc-when { margin: 0; font-size: 14px; line-height: 1.4; }
.bc-skill { background: var(--board); border: 2.5px solid var(--ink); padding: 7px 10px; } .bc-skill p { margin: 0; font-size: 14px; line-height: 1.4; } .bc-skill p + p { margin-top: 4px; } .bc-skill b { font-size: 15px; font-weight: 900; }
.bc-word { font: 400 16px var(--display); color: var(--red); margin-left: 4px; }
.bc-mix { display: flex; gap: 6px; align-items: flex-start; font-weight: 700; } .bc-mix svg.ink { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.bc-tips { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.4; } .bc-tips li { margin: 2px 0; }
.bc-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; } .bc-acts .btn { min-height: 44px; font-size: 14px; padding: 7px 12px; }
.bc-acts .btn.ink { box-shadow: 3px 3px 0 var(--tone); } .bc-acts .btn.ink:active { box-shadow: 1px 1px 0 var(--tone); }
.bc-board { margin-left: auto; display: inline-flex; gap: 4px; align-items: center; min-height: 44px; } .bc-board svg.ink { width: 16px; height: 16px; }
.g-march canvas { display: block; width: 100%; height: 210px; border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: var(--board); }
.g-wave { margin: 12px 0; }
.g-minions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 6px; }
.mcard { background: #fff; border: 2.5px solid var(--ink); padding-bottom: 8px; min-width: 0; } .mcard canvas { display: block; width: 100%; aspect-ratio: 2 / 1; border-bottom: 2.5px solid var(--ink); background: var(--board); }
.mcard h4 { margin: 6px 10px 0; font: 400 17px var(--display); } .mcard small { display: block; margin: 0 10px; font-weight: 700; color: var(--graphite); } .mcard p { margin: 4px 10px 0; font-size: 13.5px; line-height: 1.35; }
@media (max-width: 600px) {
  .g-beasts { grid-template-columns: 1fr; } .g-march canvas { height: 170px; }
  .g-minions { grid-template-columns: 1fr; } .mcard { display: grid; grid-template-columns: 132px 1fr; grid-template-rows: auto auto 1fr; padding: 0; } .mcard canvas { grid-row: 1 / 4; aspect-ratio: auto; height: 100%; min-height: 96px; border-bottom: 0; border-right: 2.5px solid var(--ink); }
  .mcard p { margin-bottom: 8px; }
}
