
:root {
  --ink: #000000;
  --paper: #ffffff;
  --sky: #78c0e4;
  --grass: #60b46c;
  --leaf: #a6d9ac;
  --pine: #2f6b3d;
  --muted: #474747;
  --t-sky: #dcf0fa;
  --t-grass: #e2f2e0;
  --t-aqua: #dcf5ef;
  --t-mist: #eaf5fb;
  --t-sage: #edf5e6;
  /* From the book cover: its lemon yellow. */
  --lemon: #fbf776;
  --t-lemon: #fffbd2;
  /* From the new card art: gold numerals, royal skies, purple robes, sunsets. */
  --gold: #e8b51c;
  --royal: #2b6fd8;
  --grape: #6b48c2;
  --t-lilac: #eee8fd;
  --sunset: #f2874a;
  --t-peach: #ffe8d6;
  --display: "Abril Fatface", "Bodoni 72", Didot, Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --wrap: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-decoration-color: var(--pine); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--leaf); padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { left: 0.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.site-header { border-bottom: 3px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; padding-block: 0.9rem; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 0.6rem; }
.brand-name { font-family: var(--display); font-size: 1.75rem; line-height: 1; }
.brand-sub { font-size: 0.9rem; color: var(--muted); }
.nav ul { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding-bottom: 0.1rem; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--sky); }
.nav a[aria-current="page"] { border-bottom-color: var(--grass); }

/* buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1.05rem; line-height: 1.2; padding: 0.95rem 1.4rem; border: 3px solid var(--ink); border-radius: 999px; text-decoration: none; background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); cursor: pointer; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--leaf); }
.btn.big { font-size: 1.15rem; padding: 1.05rem 1.6rem; }
.btn.small { font-size: 0.95rem; padding: 0.55rem 1rem; box-shadow: 3px 3px 0 var(--ink); }

/* hero */
.hero { padding-block: clamp(1.75rem, 3.5vw, 2.6rem) clamp(2.5rem, 5vw, 3.5rem); border-bottom: 3px solid var(--ink); background: var(--paper); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.6fr); gap: 3.5rem; align-items: center; }
.prehead { margin: 0 0 0.55rem; font-family: var(--display); font-weight: 400; color: var(--pine); font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.15; }
.byline { margin: 0.6rem 0 1.1rem; color: var(--muted); font-size: 1rem; }
.hero h1 { margin: 0 0 1.1rem; font-family: var(--display); font-weight: 400; line-height: 1; }
.hero h1 .title { display: block; font-size: clamp(3.2rem, 6.6vw, 5.4rem); letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 480px) { .hero h1 .title { white-space: normal; } }
.hero h1 .promise { display: block; font-size: clamp(1.25rem, 2.9vw, 2.4rem); line-height: 1.12; margin-top: 0.45rem; white-space: nowrap; }
@media (max-width: 480px) { .hero h1 .promise { font-size: 4.8vw; } }
.hook { font-size: 1.2rem; font-weight: 600; margin: 0 0 1.1rem; max-width: 40rem; }
.checks { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.45rem; max-width: 44rem; }
.checks li { position: relative; padding-left: 2.1rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border: 2px solid var(--ink); border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; }
.cta-note { margin: 0.8rem 0 0; font-size: 0.95rem; color: var(--muted); }
.proof { border-bottom: 3px solid var(--ink); background: var(--t-sky); }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proof li { padding: 1.6rem 1.5rem 1.7rem; border-left: 3px solid var(--ink); }
.proof li:first-child { border-left: 0; padding-left: 0; }
.proof b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.45rem, 2vw, 1.65rem); line-height: 1.08; margin-bottom: 0.45rem; text-wrap: balance; }
.proof b span { display: block; }
.proof b span.nw { display: inline; white-space: nowrap; }
.proof b s { color: var(--muted); text-decoration-thickness: 0.09em; text-decoration-color: var(--ink); }
.pull { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; margin: 1.75rem 0; padding-left: 1.25rem; border-left: 6px solid var(--gold); max-width: 30ch; text-wrap: balance; }
.pull cite { display: block; font-family: var(--body); font-style: normal; font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: 0.6rem; }
.ps { margin-top: 2rem; padding: 1.1rem 1.3rem; border: 2px dashed var(--ink); border-radius: 10px; max-width: 42rem; background: var(--paper); }
.subtitle { margin: 0 0 1.75rem; max-width: 36rem; font-size: 1.12rem; }
.formats { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.formats span { font-weight: 600; color: var(--muted); margin-right: 0.25rem; }
.cover-wrap { justify-self: center; width: min(100%, 19rem); }
.cover { display: block; width: 100%; border: 3px solid var(--ink); border-radius: 4px; box-shadow: 14px 14px 0 var(--sky), 14px 14px 0 3px var(--ink); }

/* sections */
.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.tint { background: var(--t-sky); border-block: 3px solid var(--ink); }
.section.tint-green { background: var(--t-grass); border-block: 3px solid var(--ink); }
.section.tint-lemon { background: var(--t-lemon); border-block: 3px solid var(--ink); }
.section h2, .page-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 1rem; max-width: 22ch; }
.intro { max-width: 42rem; font-size: 1.12rem; margin: 0 0 2.25rem; }
.prose > * { max-width: 42rem; }
.prose p { margin: 0 0 1.1rem; }
.page-hero { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-hero .lede { font-size: 1.2rem; max-width: 42rem; margin: 0; }

/* rating legend */
.legend { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.legend li { display: flex; gap: 0.6rem; align-items: baseline; }
.legend .em { font-size: 1.6rem; line-height: 1; }
.legend b { display: block; }

/* game cards */
.deck { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.6rem; }
.deck.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .deck.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .deck.six { grid-template-columns: minmax(0, 1fr); } }
.gcard { background: var(--paper); border: 3px solid var(--ink); border-radius: 14px; padding: 0.55rem; display: flex; flex-direction: column; box-shadow: 5px 5px 0 var(--ink); scroll-margin-top: 1rem; }
.gcard:nth-child(odd) { transform: rotate(-0.6deg); }
.gcard:nth-child(even) { transform: rotate(0.6deg); }
.gface { border: 2px solid var(--ink); border-radius: 8px; padding: 0.6rem 0.9rem 0.9rem; flex: 1; display: flex; flex-direction: column; }
.gface.sky { background: var(--t-sky); } .gface.grass { background: var(--t-grass); } .gface.aqua { background: var(--t-aqua); }
.gface.mist { background: var(--t-mist); } .gface.sage { background: var(--t-sage); }
.gface.lemon { background: var(--t-lemon); } .gface.lilac { background: var(--t-lilac); } .gface.peach { background: var(--t-peach); }
.gnum { font-family: var(--display); font-size: 1.7rem; line-height: 1; text-align: center; margin-bottom: 0.4rem; }
.gtags { font-size: 0.85rem; font-weight: 600; margin: 0 0 0.45rem; }
.gdesc { margin: 0 0 0.75rem; font-size: 0.98rem; line-height: 1.5; flex: 1; }
.grate { margin: 0; font-size: 1rem; letter-spacing: 0.05em; display: grid; gap: 0.1rem; }
.gplayers { margin: 0.5rem 0 0; font-size: 0.9rem; font-weight: 600; }
.gname { font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; text-align: center; margin: 0.55rem 0.2rem 0.15rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2rem; }
.chip { font: inherit; font-weight: 700; font-size: 0.98rem; cursor: pointer; padding: 0.5rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip:hover { background: var(--t-lemon); }
.chip[aria-pressed="true"]:hover { background: var(--ink); }
.count { font-weight: 600; color: var(--muted); margin: -1rem 0 1.5rem; }

/* situations */
.situations { display: grid; gap: 2.5rem; }
.situation { border: 3px solid var(--ink); border-radius: 14px; padding: 1.5rem 1.6rem 1.6rem; box-shadow: 6px 6px 0 var(--ink); scroll-margin-top: 1rem; }
.situation h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: none; }
.situation p.why { margin: 0 0 1.25rem; font-size: 1.08rem; }
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.75rem 1.5rem; }
.picks a { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; }
.picks span { display: block; font-size: 0.95rem; color: var(--muted); }
.situation:nth-child(5n+1) { background: var(--t-sky); } .situation:nth-child(5n+2) { background: var(--t-lemon); }
.situation:nth-child(5n+3) { background: var(--t-grass); } .situation:nth-child(5n+4) { background: var(--t-lilac); }
.situation:nth-child(5n+5) { background: var(--t-peach); }
.sit-teaser { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* flip widget */
.table { border: 3px solid var(--ink); border-radius: 18px; background: var(--grass); padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 8px 8px 0 var(--ink); }
.pair { display: flex; justify-content: center; gap: clamp(1rem, 4vw, 2.5rem); flex-wrap: wrap; margin-bottom: 1.5rem; }
.tcard { width: 11rem; aspect-ratio: 11 / 19; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; padding: 0.5rem; display: flex; transition: transform 350ms ease; }
.tcard .inner { flex: 1; border: 2px solid var(--ink); border-radius: 7px; background: var(--t-sky); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0.75rem; }
.tcard:nth-child(2) .inner { background: var(--t-grass); }
.tcard .cname { font-family: var(--display); font-size: 1.45rem; line-height: 1.1; }
.tcard .rev { font-weight: 700; font-size: 0.85rem; margin-top: 0.6rem; }
.tcard.reversed { transform: rotate(180deg); }
.table-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; align-items: center; }
.table-controls label { display: flex; gap: 0.5rem; align-items: center; font-weight: 700; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; }
.table-controls input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.prompt { text-align: center; font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.15; margin: 0 0 1.25rem; }
.steps { counter-reset: s; list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 44rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 3rem; height: 3rem; border: 3px solid var(--ink); border-radius: 50%; background: var(--leaf); font-family: var(--display); font-size: 1.4rem; }
.steps b { display: block; font-size: 1.1rem; margin-top: 0.3rem; }

/* get the book */
.formats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.fcard { border: 3px solid var(--ink); border-radius: 14px; padding: 1.5rem; box-shadow: 6px 6px 0 var(--ink); display: flex; flex-direction: column; gap: 0.75rem; }
.fcard h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; margin: 0; }
.fcard p { margin: 0; flex: 1; }
.fcard.kindle { background: var(--t-sky); }
.fcard .big { font-family: var(--display); font-size: 3.4rem; line-height: 0.9; }
.split { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 3rem; align-items: start; }
.fan { width: 100%; max-width: 24rem; display: block; }

/* footer */
.site-footer { border-top: 3px solid var(--ink); padding-block: 2.5rem 3rem; font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0 0 0.6rem; max-width: 40rem; }
.site-footer .tm { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; list-style: none; margin: 0; padding: 0; font-weight: 600; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); }
  .proof ul { grid-template-columns: minmax(0, 1fr); }
  .proof li { border-left: 0; border-top: 3px solid var(--ink); padding-left: 0; }
  .proof li:first-child { border-top: 0; }
  .cover-wrap { width: min(70%, 18rem); }
  .formats-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .btn:active { transform: none; }
}

/* ---------- tarot arcade: cards ---------- */
.tc { position: relative; display: block; flex: none; width: var(--cw, 6rem); aspect-ratio: 2 / 3; margin: 0; padding: 0; border: 2px solid var(--ink); border-radius: 8% / 5.33%; background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); container-type: inline-size; font-family: var(--body); text-align: left; overflow: hidden; -webkit-user-select: none; user-select: none; transition: transform 140ms ease; }
.tc .face, .tc .back { position: absolute; inset: 5%; border: 1.5px solid var(--ink); border-radius: 6cqw; }
.tc .face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5cqw; padding: 26cqw 6cqw 8cqw; text-align: center; }
.tc.s-wands .face { background: linear-gradient(170deg, #fff 0%, #d4efc8 100%); }
.tc.s-cups .face { background: linear-gradient(170deg, #fff 0%, #cfe8fb 100%); }
.tc.s-swords .face { background: linear-gradient(170deg, #fff 0%, #e2dcfa 100%); }
.tc.s-coins .face { background: linear-gradient(170deg, #fff 0%, #fbdde6 100%); }
.tc.major .face { background: linear-gradient(170deg, #fff 0%, #cdeef0 100%); }
.tc .ic { display: block; }
.tc .big .ic { width: 40cqw; height: 40cqw; }
.tc .nm { font-family: var(--display); font-size: 12.5cqw; line-height: 1.08; }
.tc .num { font-family: var(--display); font-size: 28cqw; line-height: 1; color: var(--pine); }
.tc .idx { position: absolute; top: 3.5%; left: 6.5%; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1.5cqw; padding: 2.5cqw 3cqw; border-radius: 5cqw; background: #fff; font-weight: 700; font-size: 17cqw; line-height: 1; }
.tc .idx .ic { width: 15cqw; height: 15cqw; }
.tc.red .idx, .tc.red .big { color: #b3261e; }
.tc.major .idx { color: var(--pine); }
.tc-row .idx { flex-direction: row; gap: 2cqw; font-size: 25cqw; padding: 2cqw 3cqw; top: 2.5%; left: 4%; }
.tc-row .idx .ic { width: 23cqw; height: 23cqw; }
.tc .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tc .back { display: grid; place-items: center; background:
    radial-gradient(circle, #fff 0 1.4cqw, transparent 2cqw) 4cqw 6cqw / 21cqw 19cqw,
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1cqw, transparent 1.5cqw) 14cqw 15cqw / 17cqw 23cqw,
    linear-gradient(165deg, #ff9fb6 0%, #c77ddf 50%, #5f6fe3 100%); }
.tc .back span { font-family: var(--display); font-size: 17cqw; line-height: 1; color: #5a3fb8; background: #fff; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3cqw 6cqw 4cqw; }
@container (max-width: 80px) {
  .tc .nm { display: none; }
  .tc .face { padding-top: 34cqw; }
  .tc .big .ic { width: 52cqw; height: 52cqw; }
  .tc .num { font-size: 36cqw; }
  .tc .back span { display: none; }
}
button.tc { cursor: pointer; font: inherit; }
button.tc:hover:not(:disabled) { transform: translateY(-5px); }
button.tc:disabled { cursor: default; }
.tc.sel { transform: translateY(-10px); outline: 4px solid var(--gold); outline-offset: 1px; }
.tc.ghost { visibility: hidden; }
.tc-slot { display: grid; place-items: center; align-content: center; gap: 0.3rem; width: var(--cw, 6rem); aspect-ratio: 2 / 3; border: 2px dashed rgba(255, 255, 255, 0.75); border-radius: 8% / 5.33%; background: rgba(255, 255, 255, 0.14); color: #fff; font-weight: 700; font-size: 0.8rem; text-align: center; container-type: inline-size; }
.tc-slot .ic { width: 38cqw; height: 38cqw; }

/* ---------- tarot arcade: tables ---------- */
.game { border: 3px solid var(--ink); border-radius: 18px; background:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1.3px, transparent 2px) 13px 29px / 131px 97px,
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.6px) 71px 8px / 89px 113px,
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.6px) 40px 60px / 67px 71px,
    linear-gradient(165deg, #3d62d6 0%, #4b55cc 45%, #7451c6 100%); padding: clamp(0.9rem, 3vw, 1.75rem); box-shadow: 8px 8px 0 var(--ink); }
.game .msg { margin: 0 0 1rem; padding: 0.75rem 1rem; min-height: 3.3rem; background: #fff; border: 3px solid var(--ink); border-radius: 12px; font-weight: 600; font-size: 1.05rem; line-height: 1.4; }
.game .controls { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.game .controls label { display: flex; gap: 0.5rem; align-items: center; font-weight: 700; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0.45rem 0.9rem; cursor: pointer; }
.game .controls input { width: 1.1rem; height: 1.1rem; accent-color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.seat { background: rgba(255, 255, 255, 0.82); border: 3px solid var(--ink); border-radius: 14px; padding: 0.7rem 0.9rem 0.6rem; margin-bottom: 1rem; }
.seat.turn { background: #fff; box-shadow: 0 0 0 4px var(--lemon); }
.seat.out { opacity: 0.6; }
.seat.pick { background: #fff; box-shadow: 0 0 0 4px var(--sky); }
.seat.pick .seat-head p { color: var(--ink); }
.seat-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 0.5rem; }
.seat-head h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.seat-head p { margin: 0; font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.hand { position: relative; min-height: 4rem; --cw: clamp(3.4rem, 9vw, 5.6rem); }
.hand.small { --cw: clamp(2.6rem, 6.5vw, 3.9rem); }
.seats-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 640px) { .seats-2 { grid-template-columns: minmax(0, 1fr); } }
.log { list-style: none; margin: 0 0 1rem; padding: 0; font-size: 0.95rem; color: #fff; display: grid; gap: 0.15rem; }
.log li { text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.book-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.book-row span { font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.5rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--t-sky); }
.ask { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }

.game .msg .book-line { display: block; margin-top: 0.6rem; padding-top: 0.6rem; border-top: 2px dashed var(--ink); font-weight: 600; }
.game .msg .book-line a { text-decoration-thickness: 2px; }

/* war */
.war-field { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.war-side { background: rgba(255, 255, 255, 0.82); border: 3px solid var(--ink); border-radius: 14px; padding: 0.8rem 0.9rem 1rem; text-align: center; }
.war-side h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 1.5rem; }
.war-side .count { margin: 0 0 0.6rem; font-weight: 600; color: var(--muted); }
.war-play { display: flex; justify-content: center; align-items: flex-end; min-height: calc(var(--cw) * 3 / 2 + 0.5rem); --cw: clamp(6.5rem, 17vw, 10rem); }
.war-play .stack { display: flex; margin-right: 0.6rem; --cw: clamp(2.4rem, 5vw, 3.2rem); }
.war-play .stack .tc + .tc { margin-left: calc(var(--cw) * -0.6); }
.war-play .win { outline: 5px solid var(--gold); outline-offset: 2px; }
.war-field .tally { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .war-field { gap: 0.6rem; }
  .war-side { padding: 0.6rem 0.5rem 0.8rem; }
  .war-side h3 { font-size: 1.15rem; }
  .war-play { --cw: min(6.4rem, 100%); }
  .war-play .stack { position: absolute; display: block; margin: 0; --cw: 1.6rem; }
  .war-play { position: relative; }
  .war-play .stack .tc { position: absolute; left: 0; top: 0; }
  .war-play .stack { left: -0.2rem; top: -0.4rem; z-index: 0; }
  .war-play .stack .tc + .tc { margin-left: 0; }
  .war-play .stack .tc:nth-child(2) { left: 0.35rem; }
  .war-play .stack .tc:nth-child(3) { left: 0.7rem; }
  .war-play > .tc { position: relative; z-index: 1; }
}

/* solitaire */
.sol { --gap: clamp(4px, 1.3vw, 14px); max-width: 54rem; margin-inline: auto; }
.sol-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--gap); }
.sol-top { margin-bottom: 1.1rem; }
.sol .pile { position: relative; cursor: pointer; }
.sol .pile .tc, .sol .pile .tc-slot { width: 100%; }
.sol .waste { position: relative; }
.sol .waste .tc { position: absolute; top: 0; }
.sol .col { position: relative; }
.sol .col .tc { position: absolute; left: 0; width: 100%; }
.sol .found .tc-slot .ic { width: 42cqw; height: 42cqw; }
.sol-status { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; align-items: center; margin-top: 1rem; }
.sol-status p { margin: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
@media (max-width: 560px) {
  .game.sol-game { padding: 0.5rem; border-radius: 12px; margin-inline: -0.6rem; }
}

/* arcade hub */
.arcade-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem; }
@media (max-width: 700px) { .arcade-grid { grid-template-columns: minmax(0, 1fr); } }
.arcade-grid .gface { gap: 0.4rem; }
.arcade-grid .gname { text-align: left; margin: 0; font-size: 1.7rem; }
.arcade-grid .gcard .btn { align-self: flex-start; margin-top: 0.6rem; }
.map-table { border-collapse: collapse; margin: 0 0 1.5rem; min-width: min(100%, 30rem); }
.map-table th, .map-table td { border: 2px solid var(--ink); padding: 0.45rem 0.8rem; text-align: left; }
.map-table th { background: var(--t-sky); }

/* arcade hub: a fan of real cards */
.arcade-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.deck-fan { display: flex; justify-content: center; padding: 1rem 0 1.5rem; }
.deck-fan img { width: clamp(5.2rem, 11vw, 9rem); aspect-ratio: 2 / 3; height: auto; border: 3px solid var(--ink); border-radius: 8% / 5.33%; box-shadow: 5px 5px 0 var(--ink); margin: 0 -1.4rem; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); background: #fff; }
.deck-fan img:nth-child(1) { --r: -14deg; --y: 1.6rem; }
.deck-fan img:nth-child(2) { --r: -7deg; --y: 0.4rem; }
.deck-fan img:nth-child(3) { --r: 0deg; --y: 0; z-index: 1; }
.deck-fan img:nth-child(4) { --r: 7deg; --y: 0.4rem; }
.deck-fan img:nth-child(5) { --r: 14deg; --y: 1.6rem; }
@media (max-width: 760px) { .arcade-hero .wrap { grid-template-columns: minmax(0, 1fr); } .deck-fan img { margin: 0 -1.1rem; } }

.game .pond { margin: 0; color: #fff; font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.hint { margin: 0.4rem 0 0; font-weight: 600; }

/* "the book is right here" notice: top bar on phones and portrait tablets, side rail on landscape desktops */
.nudge { display: none; }
.has-nudge { padding-top: 3.75rem; }
.has-nudge .nudge { position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 3.75rem; display: flex; align-items: center; gap: 0.75rem; padding: 0 max(1rem, calc((100% - 72rem) / 2)); background: var(--leaf); border-bottom: 3px solid var(--ink); color: var(--ink); text-decoration: none; }
.nudge img { flex: none; height: 2.85rem; width: auto; border: 2px solid var(--ink); border-radius: 2px; }
.nudge .n-text { flex: 1; min-width: 0; line-height: 1.2; }
.nudge b { display: block; font-size: 1.02rem; }
.nudge small { display: block; font-size: 0.85rem; font-weight: 600; color: var(--pine); }
.nudge .n-btn { flex: none; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0.4rem 0.9rem; font-weight: 700; font-size: 0.92rem; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.nudge .n-short { display: none; }
.nudge:hover .n-btn { background: var(--t-sky); }
@media (max-width: 520px) {
  .nudge small, .nudge .n-long { display: none; }
  .nudge .n-short { display: inline; }
  .nudge b { font-size: 0.95rem; }
}
@media (min-width: 1100px) and (orientation: landscape) {
  .has-nudge { padding-top: 0; padding-right: 13rem; }
  .has-nudge .nudge { top: 0; bottom: 0; left: auto; right: 0; width: 13rem; height: auto; flex-direction: column; justify-content: center; gap: 1.1rem; padding: 1.5rem 1.4rem; text-align: center; background: var(--t-sky); border-bottom: 0; border-left: 3px solid var(--ink); }
  .nudge img { height: auto; width: 8.5rem; box-shadow: 8px 8px 0 var(--grass), 8px 8px 0 2px var(--ink); margin-bottom: 0.4rem; }
  .nudge .n-text { flex: none; }
  .nudge b { font-family: var(--display); font-weight: 400; font-size: 1.5rem; line-height: 1.12; }
  .nudge small { margin-top: 0.5rem; font-size: 0.92rem; }
  .nudge .n-btn { padding: 0.65rem 1.1rem; font-size: 1rem; background: var(--leaf); box-shadow: 3px 3px 0 var(--ink); }
  .nudge:hover .n-btn { background: #fff; }
}
@media print { .nudge { display: none !important; } .has-nudge { padding: 0; } }

/* look inside the book */
.li-section { padding-top: 0.5rem; }
.li-viewer { max-width: 46rem; margin-inline: auto; }
.li-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.li-count { margin: 0; font-weight: 700; }
.li-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; }
.li-page { position: relative; margin: 0; background: #fff; border: 3px solid var(--ink); border-radius: 6px; box-shadow: 12px 12px 0 var(--lemon), 12px 12px 0 3px var(--ink); overflow: hidden; touch-action: pan-y pinch-zoom; user-select: none; }
.li-page img { display: block; width: 100%; height: auto; -webkit-user-drag: none; }
.li-cut { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 0.2rem 1rem 1.3rem; background: #fff; text-align: center; }
.li-cut[hidden] { display: none; }
.li-cut::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 8rem; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%); pointer-events: none; }
@media (max-width: 560px) { .li-cut::before { height: 4.5rem; } }
.li-cut p { margin: 0; font-weight: 700; }
.li-nav { display: grid; place-items: center; width: 3rem; height: 3rem; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); font: 700 2rem/1 var(--body); color: var(--ink); cursor: pointer; padding: 0 0 0.2rem; }
.li-nav:hover:not(:disabled) { background: var(--t-lemon); }
.li-nav:disabled { opacity: 0.3; cursor: default; }
.li-caption { margin: 1.6rem 0 0.6rem; text-align: center; font-family: var(--display); font-size: 1.35rem; line-height: 1.2; }
.li-thumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.li-thumbs button { font: inherit; font-size: 0.85rem; font-weight: 700; padding: 0.3rem 0.7rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; }
.li-thumbs button:hover { background: var(--t-lemon); }
.li-thumbs button[aria-current="true"] { background: var(--ink); color: var(--paper); }
.li-actions { justify-content: center; margin-top: 2.5rem; }
.li-note { text-align: center; }
@media (max-width: 560px) {
  .li-stage { grid-template-columns: minmax(0, 1fr); }
  .li-nav { display: none; }
  .li-page { box-shadow: 7px 7px 0 var(--lemon), 7px 7px 0 3px var(--ink); }
  .li-bar { flex-wrap: wrap; }
}
