:root {
  --jh-face-sans: "Work Sans", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --jh-face-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* archive palette: warm wood cabinet, saturated gaming accents */
  --jh-bg: #E8D2A0;
  --jh-surface: #F5EBCE;
  --jh-surface-2: #E3D0A0;
  --jh-surface-3: #D4BC85;
  --jh-ink: #2B1B12;
  --jh-ink-soft: #5C4429;
  --jh-muted: #7A6440;
  --jh-line: rgba(43, 27, 18, 0.24);
  --jh-line-soft: rgba(43, 27, 18, 0.13);
  --jh-walnut-deep: #1E1209;

  --jh-brass: #F2A81D;
  --jh-brass-dark: #C97F0A;
  --jh-brass-soft: rgba(242, 168, 29, 0.22);
  --jh-forest: #1FA463;
  --jh-forest-soft: rgba(31, 164, 99, 0.16);
  --jh-rust: #E8402A;
  --jh-slate: #2E8FBF;

  --jh-primary: var(--jh-brass);
  --jh-primary-strong: var(--jh-brass-dark);
  --jh-primary-soft: var(--jh-brass-soft);
  --jh-accent: var(--jh-forest);
  --jh-accent-soft: var(--jh-forest-soft);
  --jh-danger: #D93B30;
  --jh-focus: #1FA463;

  --jh-blend-primary: linear-gradient(180deg, #FFC94D 0%, var(--jh-brass) 55%, var(--jh-brass-dark) 100%);
  --jh-blend-accent: linear-gradient(135deg, var(--jh-brass), var(--jh-rust));
  --jh-blend-headline: none;

  --jh-page-accent: var(--jh-brass);
  --jh-title-mancala: #F2A81D;
  --jh-title-futoshiki: #1FA463;
  --jh-title-anagrama: #E8402A;
  --jh-title-simon: #2E8FBF;
  --jh-title-hashi: #C2571B;

  --jh-gap-1: 0.4rem; --jh-gap-2: 0.72rem; --jh-gap-3: 1.05rem; --jh-gap-4: 1.5rem; --jh-gap-5: 2.2rem; --jh-gap-6: 3.3rem;
  --jh-round-1: 7px; --jh-round-2: 10px; --jh-round-3: 14px;
  --jh-depth-1: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(62, 39, 35, 0.06), 0 1px 3px rgba(62, 39, 35, 0.14);
  --jh-depth-2: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 28px rgba(62, 39, 35, 0.22);
  --jh-width-max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--jh-face-sans); color: var(--jh-ink);
  background-color: var(--jh-bg);
  background-image:
    repeating-linear-gradient(0deg, rgba(62, 39, 35, 0.035) 0px, rgba(62, 39, 35, 0.035) 1px, transparent 1px, transparent 3px),
    radial-gradient(1100px 760px at 104% -8%, rgba(176, 141, 87, 0.18), transparent 58%),
    radial-gradient(900px 720px at -8% 112%, rgba(47, 82, 51, 0.10), transparent 55%);
  background-attachment: fixed;
  line-height: 1.6; font-size: clamp(1rem, 0.96rem + 0.25vw, 1.08rem);
}
h1, h2, h3, h4 { font-family: var(--jh-face-display); font-weight: 700; line-height: 1.16; color: var(--jh-ink); margin: 0 0 var(--jh-gap-2); }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); letter-spacing: -0.005em; }
h2 { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.95rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.6vw, 1.35rem); font-weight: 600; }
p { margin: 0 0 var(--jh-gap-3); }
a { color: var(--jh-brass-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--jh-forest); }
:focus-visible { outline: 3px solid var(--jh-focus); outline-offset: 2px; border-radius: 3px; }
img { max-width: 100%; height: auto; display: block; }
.skip-jump { position: absolute; left: -9999px; top: 0; background: var(--jh-ink); color: var(--jh-surface); padding: var(--jh-gap-2) var(--jh-gap-3); z-index: 100; border-radius: 0 0 var(--jh-round-1) 0; }
.skip-jump:focus { left: 0; }
.wrap { width: 100%; max-width: var(--jh-width-max); margin: 0 auto; padding: 0 var(--jh-gap-3); }

/* ---- header ---- */
.top-bar { background: var(--jh-surface); border-bottom: 3px solid var(--jh-brass); box-shadow: inset 0 -4px 0 -3px rgba(62, 39, 35, 0.2), 0 2px 8px rgba(62, 39, 35, 0.08); position: sticky; top: 0; z-index: 40; }
.top-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--jh-gap-2) var(--jh-gap-3); min-height: 66px; }
#on-board { display: grid; grid-template-columns: repeat(5, minmax(48px, 72px)); gap: 6px; width: fit-content; margin: 0 auto; padding: 14px; background: var(--jh-surface-2); border: 2px solid var(--jh-brass-dark); border-radius: var(--jh-round-2); }
.on-cell { aspect-ratio: 1 / 1; border: 1.5px solid var(--jh-line); border-radius: 50%; background: var(--jh-surface); font-size: clamp(1.2rem, 4vw, 1.9rem); cursor: pointer; padding: 0; }
.on-cell--diag { background: #EDDDB2; }
.on-cell--onca { background: var(--jh-brass); border-color: var(--jh-brass-dark); box-shadow: 0 0 0 3px rgba(201, 127, 10, 0.45); }
.on-cell--go { outline: 3px solid var(--jh-forest); outline-offset: -3px; }
.on-cell--jump { outline: 3px solid var(--jh-rust); outline-offset: -3px; }
.on-cell:disabled { cursor: default; }
.on-cell:focus-visible { outline: 3px solid var(--jh-focus); outline-offset: 2px; }

.dom-table { max-width: 100%; }
.dom-label { font-family: var(--jh-face-display); font-weight: 700; font-size: 0.95rem; color: var(--jh-ink-soft); margin: var(--jh-gap-3) 0 var(--jh-gap-1); }
#dom-chain { display: flex; flex-wrap: wrap; gap: 4px; min-height: 58px; padding: var(--jh-gap-2); background: var(--jh-surface-2); border: 1.5px solid var(--jh-line); border-radius: var(--jh-round-2); align-items: center; }
#dom-hand { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--jh-gap-2) 0; }
.dom-stone { display: inline-flex; border: 2px solid var(--jh-ink); border-radius: 8px; background: var(--jh-surface); overflow: hidden; font-family: var(--jh-face-display); font-weight: 700; }
.dom-half { display: grid; place-items: center; width: 26px; height: 40px; font-size: 1.05rem; color: var(--jh-ink); }
.dom-half + .dom-half { border-left: 2px solid var(--jh-ink); }
.dom-stone--hand { cursor: pointer; padding: 0; opacity: 0.55; }
.dom-stone--hand.dom-stone--ok { opacity: 1; box-shadow: 0 2px 0 var(--jh-brass-dark), var(--jh-depth-1); }
.dom-stone--hand:disabled { cursor: default; }
.dom-stone--hand:focus-visible { outline: 3px solid var(--jh-focus); outline-offset: 2px; }
.dom-empty { color: var(--jh-muted); font-size: 0.92rem; margin: 0; }
.dom-choice { display: flex; gap: var(--jh-gap-2); align-items: center; flex-wrap: wrap; margin-top: var(--jh-gap-2); padding: var(--jh-gap-2); border: 1.5px dashed var(--jh-brass-dark); border-radius: var(--jh-round-2); background: var(--jh-brass-soft); }
.dom-choice[hidden] { display: none; }

.destaque-plaque { display: grid; grid-template-columns: 150px 1fr; gap: var(--jh-gap-5); align-items: center; background: var(--jh-surface); border: 2px solid var(--jh-brass-dark); border-radius: var(--jh-round-3); box-shadow: var(--jh-depth-1); padding: var(--jh-gap-5); position: relative; }
.destaque-plaque::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--jh-line-soft); border-radius: calc(var(--jh-round-3) - 5px); pointer-events: none; }
.destaque-plaque__art { width: 140px; height: 140px; border-radius: var(--jh-round-2); }
.destaque-plaque__body h2 { margin-bottom: var(--jh-gap-2); }
.destaque-plaque__body p { max-width: 58ch; }
.destaque-plaque__body .btn { margin-top: var(--jh-gap-3); }
@media (max-width: 640px) { .destaque-plaque { grid-template-columns: 1fr; text-align: center; } .destaque-plaque__art { margin: 0 auto; } }

.salon-notice { max-width: 62ch; margin: 0 auto; text-align: center; padding: var(--jh-gap-5) var(--jh-gap-4); border: 2px double var(--jh-ink); border-radius: 3px; background: var(--jh-surface); box-shadow: var(--jh-depth-1); }
.salon-notice__top { font-family: var(--jh-face-display); font-size: 0.85rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--jh-brass-dark); margin-bottom: var(--jh-gap-2); }
.salon-notice h2 { margin-bottom: var(--jh-gap-3); }
.salon-notice p { text-align: left; }
.salon-notice p.salon-notice__top, .salon-notice p.salon-notice__sign { text-align: center; }
.salon-notice__sign { font-family: var(--jh-face-display); font-style: italic; color: var(--jh-ink-soft); margin-top: var(--jh-gap-3); }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { color: var(--jh-ink); }
.brand__logo { height: 54px; width: auto; display: block; margin: 4px 0; }
.menu-toggle { display: none; background: var(--jh-surface); border: 1.5px solid var(--jh-ink); border-radius: var(--jh-round-1); color: var(--jh-ink); padding: 0.5rem 0.7rem; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.top-menu ul { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: var(--jh-gap-1); margin: 0; padding: 0; }
.link-nav { display: inline-block; padding: 0.5rem 0.75rem; border-radius: var(--jh-round-1); text-decoration: none; color: var(--jh-ink-soft); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em; }
.link-nav:hover { background: var(--jh-brass-soft); color: var(--jh-ink); }
.link-nav[aria-current="page"], .link-nav[aria-current="true"] { color: var(--jh-surface); background: var(--jh-ink); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font: inherit; font-weight: 600; letter-spacing: 0.01em; padding: 0.7rem 1.2rem; border-radius: var(--jh-round-1); border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform 0.06s ease, filter 0.15s ease, background-color 0.15s ease; }
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--jh-brass); color: var(--jh-walnut-deep); box-shadow: var(--jh-depth-1); }
.btn-main:hover { background: var(--jh-brass-dark); color: var(--jh-surface); }
.btn-outline { background: transparent; color: var(--jh-ink); border-color: var(--jh-ink); }
.btn-outline:hover { background: var(--jh-ink); color: var(--jh-surface); }
.btn-small { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

/* ---- hero ---- */
.hero { padding: var(--jh-gap-6) 0 var(--jh-gap-5); }
.hero-tag { display: inline-block; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jh-surface); background: var(--jh-forest); padding: 0.32rem 0.8rem; border-radius: 4px; margin-bottom: var(--jh-gap-3); }
.hero-lede { font-size: 1.1rem; color: var(--jh-ink-soft); max-width: 60ch; }
.hero-cta { display: flex; gap: var(--jh-gap-2); flex-wrap: wrap; margin-top: var(--jh-gap-4); }

/* ---- catalog cabinet (signature hero graphic, now hosts the hero copy in its open drawer) ---- */
.cabinet--hero { display: block; background: linear-gradient(180deg, var(--jh-surface-2), var(--jh-surface-3)); border: 1px solid var(--jh-line); border-radius: var(--jh-round-2); padding: 22px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(62, 39, 35, 0.08), 0 8px 22px rgba(62, 39, 35, 0.14); }
.cabinet-drawer.cabinet-drawer--open { position: relative; width: 100%; height: auto; max-width: none; background: var(--jh-surface); border: 1px solid var(--jh-line); border-radius: 12px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -14px 22px rgba(62, 39, 35, 0.1), 0 10px 18px rgba(62, 39, 35, 0.18); padding: 44px var(--jh-gap-4) var(--jh-gap-3); margin-bottom: 14px; display: block; align-items: initial; justify-content: initial; }
.cabinet-plate.cabinet-plate--open { position: absolute; top: 18px; left: 24px; right: auto; height: 24px; width: auto; padding: 0 14px; background: var(--jh-brass); border-radius: 3px; box-shadow: 0 1px 2px rgba(62, 39, 35, 0.3); color: var(--jh-walnut-deep); font-family: var(--jh-face-sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; display: inline-flex; align-items: center; text-align: left; line-height: normal; }
.cabinet-drawer__inner { max-width: 62ch; }
.cabinet-row { display: flex; gap: 10px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
@media (max-width: 620px) { .cabinet-drawer.cabinet-drawer--open { padding: 50px var(--jh-gap-4) var(--jh-gap-4); } }
.cabinet-drawer { position: relative; width: 92px; height: 128px; background: var(--jh-surface); border: 1px solid var(--jh-line); border-radius: 10px 10px 3px 3px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -8px 12px rgba(62, 39, 35, 0.08); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px; }
.cabinet-plate { position: absolute; top: 16px; left: 8px; right: 8px; height: 22px; background: var(--drawer-accent, var(--jh-brass)); border-radius: 3px; box-shadow: 0 1px 2px rgba(62, 39, 35, 0.3); color: var(--jh-walnut-deep); font-family: var(--jh-face-sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 3px; line-height: 1.1; }
.cabinet-pull { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.55), transparent 62%), var(--jh-brass-dark); border: 1px solid rgba(62, 39, 35, 0.4); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(62, 39, 35, 0.3); animation: jh-glint 5s ease-in-out infinite; }
.cabinet-drawer:nth-child(2) .cabinet-pull { animation-delay: 0.6s; }
.cabinet-drawer:nth-child(3) .cabinet-pull { animation-delay: 1.2s; }
.cabinet-drawer:nth-child(4) .cabinet-pull { animation-delay: 1.8s; }
.cabinet-drawer:nth-child(5) .cabinet-pull { animation-delay: 2.4s; }
@keyframes jh-glint { 0%, 100% { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 1px 2px rgba(62, 39, 35, 0.3); } 50% { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85), 0 0 9px rgba(176, 141, 87, 0.65); } }
@media (max-width: 480px) { .cabinet-drawer { width: 74px; height: 108px; } }

/* ---- sections ---- */
.section { padding: var(--jh-gap-6) 0; }
.section-tint { background: rgba(233, 220, 185, 0.55); border-block: 1px solid var(--jh-line-soft); }
.section-head { max-width: 62ch; margin-bottom: var(--jh-gap-4); }
.section-label { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--jh-brass-dark); margin-bottom: var(--jh-gap-1); }

/* ---- game/catalog card-tiles: card-catalog drawer labels ---- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--jh-gap-4); }
.card-game { position: relative; display: flex; flex-direction: column; background: var(--jh-surface); border: 1px solid var(--jh-line); border-radius: 4px; padding-top: 16px; text-decoration: none; color: inherit; box-shadow: var(--jh-depth-1); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card-game::before { content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 58px; height: 16px; background: var(--tile-accent, var(--jh-brass)); clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%); box-shadow: 0 1px 2px rgba(62, 39, 35, 0.35); }
.card-game[href*="mancala"] { --tile-accent: var(--jh-title-mancala); }
.card-game[href*="futoshiki"] { --tile-accent: var(--jh-title-futoshiki); }
.card-game[href*="anagrama"] { --tile-accent: var(--jh-title-anagrama); }
.card-game[href*="sequencia"] { --tile-accent: var(--jh-title-simon); }
.card-game[href*="pontes"] { --tile-accent: var(--jh-title-hashi); }
.card-game:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 18px rgba(62, 39, 35, 0.2); }
.card-game-media { aspect-ratio: 1 / 1; background: var(--jh-surface-2); border-top: 1px solid var(--jh-line-soft); border-bottom: 1px solid var(--jh-line-soft); }
.card-game-body { padding: var(--jh-gap-3); }
.card-game-title { margin-bottom: 0.3rem; font-size: 1.15rem; color: var(--jh-ink); }
.card-game-meta { color: var(--jh-muted); font-size: 0.74rem; margin: 0; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

.feature-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--jh-gap-4); }
.feature { background: var(--jh-surface); border: 1px solid var(--jh-line); border-radius: var(--jh-round-2); padding: var(--jh-gap-4); box-shadow: var(--jh-depth-1); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--jh-gap-5); }
.prose h3 { margin-top: var(--jh-gap-4); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 var(--jh-gap-3); }
.prose li { margin-bottom: 0.4rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 var(--jh-gap-3); }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.7rem; border: 1px solid var(--jh-line); }
.prose th { background: var(--jh-surface-2); }
.prose kbd { background: var(--jh-surface-2); border: 1px solid var(--jh-line); border-radius: 4px; padding: 0.05rem 0.4rem; font-size: 0.9em; }
.header-block { background: var(--jh-surface-2); border-bottom: 1px solid var(--jh-line); padding: var(--jh-gap-5) 0; }
.path-nav { font-size: 0.9rem; color: var(--jh-muted); margin-bottom: var(--jh-gap-2); }
.path-nav a { color: var(--jh-muted); }
.callout { border: 1px solid var(--jh-line); border-left: 5px solid var(--jh-brass); background: var(--jh-surface); border-radius: var(--jh-round-1); padding: var(--jh-gap-3); margin: 0 0 var(--jh-gap-4); }
.quick-card { border-left: 5px solid var(--tile-accent, var(--jh-brass)); }

.contact-mailto { background: var(--jh-surface-2); border: 1px solid var(--jh-line); border-radius: var(--jh-round-1); padding: var(--jh-gap-3); }

/* ---- footer ---- */
.bottom-bar { background: var(--jh-surface-2); border-top: 3px solid var(--jh-brass); padding: var(--jh-gap-5) 0 var(--jh-gap-4); margin-top: var(--jh-gap-6); }
.bottom-bar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--jh-gap-4); }
.bottom-bar h4 { font-family: var(--jh-face-sans); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--jh-brass-dark); font-weight: 700; margin: 0 0 var(--jh-gap-2); }
.bottom-bar ul { list-style: none; margin: 0; padding: 0; }
.bottom-bar li { margin-bottom: 0.4rem; }
.bottom-bar a { color: var(--jh-ink-soft); text-decoration: none; font-size: 0.95rem; }
.bottom-bar a:hover { color: var(--jh-forest); text-decoration: underline; }
.footer-baseline { margin-top: var(--jh-gap-4); padding-top: var(--jh-gap-3); border-top: 1px solid var(--jh-line); color: var(--jh-muted); font-size: 0.86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--jh-gap-2); }

/* ---- FAQ: ledger / index-card rows ---- */
.faq { display: grid; gap: 0; border-bottom: 1px solid var(--jh-line); }
.qa-item { border-top: 3px solid var(--jh-brass); background: transparent; border-radius: 0; box-shadow: none; }
.qa-question { width: 100%; text-align: left; font: inherit; font-weight: 600; padding: 0.85rem 0.15rem; background: transparent; border: 0; cursor: pointer; display: flex; justify-content: space-between; gap: var(--jh-gap-2); color: var(--jh-ink); }
.qa-question:hover { background: var(--jh-brass-soft); }
.qa-sign { color: var(--jh-forest); font-weight: 800; }
.qa-answer { padding: 0 0.15rem 1rem; color: var(--jh-ink-soft); }
.qa-answer[hidden] { display: none; }

/* ---- game layout ---- */
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--jh-gap-4); align-items: start; }
.game-stage { background: var(--jh-surface); border: 1px solid var(--jh-line); border-radius: var(--jh-round-2); box-shadow: var(--jh-depth-1); padding: clamp(10px, 2.5vw, 22px); container-type: inline-size; }
.game-panel { display: grid; gap: var(--jh-gap-3); }
.panel-card { background: var(--jh-surface); border: 1px solid var(--jh-line); border-radius: var(--jh-round-2); padding: var(--jh-gap-3); box-shadow: var(--jh-depth-1); }
.status-line { font-weight: 700; font-size: 1.02rem; margin: 0; color: var(--jh-ink); }
.control-row { display: flex; flex-wrap: wrap; gap: var(--jh-gap-2); align-items: center; }
.control-row + .control-row { margin-top: var(--jh-gap-2); }
.field-inline { display: grid; gap: 0.3rem; flex: 1 1 120px; }
.field-inline label { font-size: 0.85rem; font-weight: 600; color: var(--jh-muted); }
.field-inline select { font: inherit; color: var(--jh-ink); background: var(--jh-surface); border: 1.5px solid var(--jh-line); border-radius: var(--jh-round-1); padding: 0.5rem; }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--jh-gap-2); text-align: center; }
.score-grid div { background: var(--jh-surface-2); border: 1px solid var(--jh-line-soft); border-radius: var(--jh-round-1); padding: var(--jh-gap-2); }
.score-grid strong { display: block; font-family: var(--jh-face-display); font-size: 1.4rem; color: var(--jh-page-accent); }
.score-grid span { font-size: 0.74rem; color: var(--jh-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.numpad { display: flex; flex-wrap: wrap; gap: 6px; }
.numpad .btn { flex: 1 1 40px; padding: 0.55rem 0; }

/* ---- Mancala ---- */
#mancala-board { display: grid; place-items: center; }
.man-mid { display: flex; align-items: stretch; gap: 2cqw; width: 100%; }
.man-pits { flex: 1; display: grid; gap: 2cqw; }
.man-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2cqw; }
.man-pit { aspect-ratio: 1 / 1; border-radius: 50%; border: 1px solid var(--jh-line); background: var(--jh-surface-2); box-shadow: inset 0 2px 6px rgba(62, 39, 35, 0.18); font-weight: 700; font-family: var(--jh-face-display); font-size: 5cqw; color: var(--jh-ink); cursor: pointer; }
.man-pit--you { background: color-mix(in srgb, var(--jh-title-mancala) 26%, var(--jh-surface-2)); border-color: var(--jh-brass); }
.man-pit--you:not(:disabled):hover { background: color-mix(in srgb, var(--jh-title-mancala) 42%, var(--jh-surface)); }
.man-pit:disabled { cursor: default; }
.man-store { width: 14cqw; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-family: var(--jh-face-display); font-size: 6cqw; }
.man-store--you { background: var(--jh-title-mancala); color: var(--jh-walnut-deep); box-shadow: var(--jh-depth-1); }
.man-store--cpu { background: var(--jh-slate); color: var(--jh-surface); }

/* ---- Futoshiki ---- */
#futoshiki-board { display: grid; justify-content: center; gap: 2px; }
.fut-cell { width: 13cqw; max-width: 62px; aspect-ratio: 1 / 1; border: 2px solid var(--jh-line); border-radius: 4px; background: var(--jh-surface); font-weight: 700; font-family: var(--jh-face-display); font-size: clamp(1rem, 6cqw, 1.7rem); color: var(--jh-title-futoshiki); cursor: pointer; }
.fut-cell--given { background: var(--jh-surface-2); color: var(--jh-ink); }
.fut-cell--sel { outline: 3px solid var(--jh-focus); outline-offset: -2px; }
.fut-op { display: grid; place-items: center; font-weight: 800; color: var(--jh-brass-dark); font-size: 3.5cqw; min-width: 12px; }
.fut-op--v { align-self: center; }

/* ---- Anagrama ---- */
#anagrama-board { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ana-tile { width: 15cqw; max-width: 60px; aspect-ratio: 1 / 1; border: 0; border-radius: var(--jh-round-1); background: var(--jh-brass); color: var(--jh-walnut-deep); font-weight: 700; font-family: var(--jh-face-display); font-size: clamp(1.1rem, 6cqw, 1.9rem); text-transform: uppercase; cursor: pointer; box-shadow: var(--jh-depth-1); }
.ana-tile--used { background: var(--jh-surface-2); color: var(--jh-muted); box-shadow: none; }
#anagrama-answer { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: var(--jh-gap-3); }
.ana-slot { width: 15cqw; max-width: 56px; aspect-ratio: 1 / 1; border-bottom: 4px solid var(--jh-title-anagrama); display: grid; place-items: center; font-weight: 700; font-family: var(--jh-face-display); font-size: clamp(1.1rem, 6cqw, 1.8rem); text-transform: uppercase; color: var(--jh-ink); }

/* ---- Sequência (Simon) ---- */
#simon-board { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; max-width: 460px; margin: 0 auto; }
.simon-pad { aspect-ratio: 1 / 1; border: 1px solid var(--jh-line); border-radius: 8px; cursor: pointer; opacity: 0.78; transition: opacity 0.1s ease, transform 0.06s ease, box-shadow 0.1s ease; }
.simon-pad--0 { background: var(--jh-brass); }
.simon-pad--1 { background: var(--jh-forest); }
.simon-pad--2 { background: var(--jh-rust); }
.simon-pad--3 { background: var(--jh-slate); }
.simon-pad--lit { opacity: 1; transform: scale(1.03); box-shadow: 0 0 0 3px var(--jh-surface), 0 0 0 5px var(--jh-brass-dark); }
.simon-pad:hover { opacity: 0.92; }

/* ---- Pontes (Hashi) ---- */
#hashi-board { display: grid; gap: 0; aspect-ratio: 1 / 1; }
.hashi-empty { position: relative; }
.hashi-island { border: 2px solid var(--jh-title-hashi); border-radius: 50%; background: var(--jh-surface); color: var(--jh-title-hashi); font-weight: 700; font-family: var(--jh-face-display); font-size: 5cqw; cursor: pointer; margin: 8%; aspect-ratio: 1/1; }
.hashi-island--done { background: var(--jh-title-hashi); color: var(--jh-surface); }
.hashi-island--over { border-color: var(--jh-danger); color: var(--jh-danger); }
.hashi-island--sel { box-shadow: 0 0 0 3px var(--jh-focus); }
.hashi-bridge::before { content: ""; position: absolute; background: var(--jh-title-hashi); }
.hashi-bridge--h::before { left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); }
.hashi-bridge--v::before { top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); }
.hashi-bridge--double.hashi-bridge--h::before { height: 3px; box-shadow: 0 6px 0 var(--jh-title-hashi), 0 -6px 0 var(--jh-title-hashi); }
.hashi-bridge--double.hashi-bridge--v::before { width: 3px; box-shadow: 6px 0 0 var(--jh-title-hashi), -6px 0 0 var(--jh-title-hashi); }

/* ---- cookie UI ---- */
.cookie-strip { position: fixed; left: 50%; bottom: var(--jh-gap-3); transform: translateX(-50%); width: min(720px, calc(100% - 2 * var(--jh-gap-3))); background: var(--jh-surface); border: 1px solid var(--jh-line); border-top: 3px solid var(--jh-brass); border-radius: var(--jh-round-2); box-shadow: var(--jh-depth-2); padding: var(--jh-gap-3); z-index: 60; }
.cookie-strip[hidden] { display: none; }
.cookie-strip p { font-size: 0.92rem; margin-bottom: var(--jh-gap-2); }
.cookie-strip-actions { display: flex; flex-wrap: wrap; gap: var(--jh-gap-2); }
.cookie-panel { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: var(--jh-gap-3); background: rgba(46, 30, 26, 0.55); }
.cookie-panel[hidden] { display: none; }
.cookie-panel-body { background: var(--jh-surface); border-radius: var(--jh-round-2); border: 1px solid var(--jh-line); border-top: 3px solid var(--jh-brass); max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; padding: var(--jh-gap-4); box-shadow: var(--jh-depth-2); }
.cookie-option { display: flex; gap: var(--jh-gap-2); align-items: flex-start; border: 1px solid var(--jh-line); border-radius: var(--jh-round-1); padding: var(--jh-gap-2); margin-bottom: var(--jh-gap-2); }
.cookie-option input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--jh-brass-dark); }
.cookie-option label { font-weight: 700; }
.cookie-option p { margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--jh-muted); }
.cookie-panel-actions { display: flex; flex-wrap: wrap; gap: var(--jh-gap-2); margin-top: var(--jh-gap-3); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap.prose::after { content: ""; display: table; clear: both; }
.howto-figure { float: right; width: min(42%, 260px); margin: 0.3rem 0 var(--jh-gap-3, 1.05rem) var(--jh-gap-4, 1.5rem); border-radius: var(--jh-round-2, 10px); overflow: hidden; border: 1px solid var(--jh-line); box-shadow: var(--jh-depth-1); }
.howto-figure img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .howto-figure { float: none; width: 100%; max-width: 340px; margin: 0 auto var(--jh-gap-3, 1.05rem); } }

@media (max-width: 860px) {
  .game-layout { grid-template-columns: 1fr; }
  .game-panel { order: 2; }
  .menu-toggle { display: inline-block; }
  .top-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--jh-surface); border-bottom: 3px solid var(--jh-brass); box-shadow: 0 8px 18px rgba(62, 39, 35, 0.16); padding: var(--jh-gap-2) var(--jh-gap-3); }
  .top-menu-open { display: block; }
  .top-menu ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .link-nav { display: block; }
  .footer-baseline { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; } }
