/* EuAmoXadrez — acabamento editorial em ébano, nogueira, marfim e latão */
:root {
  --forest: #080908;
  --forest-2: #17130F;
  --forest-3: #2B2118;
  --cream: #F4EFE4;
  --paper: #E7DFCF;
  --ink: #17130F;
  --muted: #55544E;
  --line: #B6AA95;
  --gold: #C4A35A;
  --gold-dark: #72562A;
  --sage: #E7DFCF;
  --pale: #F4EFE4;
  --danger: #8B3024;
  --felt: #14241D;
  --brass: #A8843F;
  --metal: #85827A;
  --shadow: 0 18px 42px rgba(8, 9, 8, .12);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { color: var(--ink); background: var(--cream); }
a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--gold-dark) !important; outline-offset: 3px !important; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold-dark) !important; outline-offset: 3px !important; }
.topbar { border-color: rgba(8,9,8,.2); background: rgba(244,239,228,.97); }
.topbar-inner { min-height: 72px; }
.brand { color: var(--forest); }
.brand-mark { border: 1px solid var(--gold); color: var(--gold); background: var(--forest); }
.brand em { color: var(--gold-dark); }
.nav { color: var(--forest-3); }
.nav a:hover { color: var(--gold-dark); }
.profile-pill { border-color: var(--line); color: var(--forest); background: var(--paper); }
.profile-icon, .feature-icon, .mode-icon, .level-emblem, .reward-item .reward-icon { border: 1px solid rgba(168,132,63,.32); color: var(--forest-3); background: var(--paper); }
.account-button { border-color: var(--forest); color: var(--cream); background: var(--forest); }
.account-button:hover, .btn-primary:hover { background: var(--forest-2); }
.btn, .account-button, .mobile-menu, .close-modal, .provider-button, .account-tab, .shirt-option, .shirt-size, .group-btn, .select, .text-input, .consent-choice, .chess-board, .puzzle-board,
.brand-mark, .profile-pill, .profile-icon, .feature, .feature-icon, .promo-banner, .article-card, .article-visual, .champion-card, .event-photo, .current-player-card, .current-player-figure, .current-player-rank, .comment-box, .comment-item, .board-panel, .turn-chip, .side-card, .mode-card, .mini-game, .progress-card, .level-emblem, .xp-chip, .progress-track, .reward-item .reward-icon, .group-btn, .chat-panel, .demo-tag, .system-message, .user-message, .event-card, .restoration-story, .restoration-cover img, .restoration-credits div, .restoration-video, .restoration-photo, .restoration-photo a, .store-card, .shirt-product, .shirt-preview, .shirt-preview figcaption, .shirt-size, .final-cta, .modal-backdrop, .account-modal, .article-modal, .puzzle-modal, .account-state, .account-feature, .account-field input, .consent-choice, .article-gallery figure, .product-card, .product-card-media, .editorial-commerce, .catalog-product-card, .product-detail-media, .personality-feature, .personality-art, .collection-feature {
  border-radius: 2px !important;
}
.hero { padding-top: 50px; }
.hero h1, .section-head h2, .final-inner h2, .shirt-details h3, .store-card h3, .personality-copy h3, .editorial-title, .catalog-title, .product-detail-copy h1, .product-card h3 {
  font-family: var(--serif);
  font-weight: 600;
}
.hero h1 { color: var(--forest); letter-spacing: -.035em; }
.hero h1 span { color: var(--gold-dark); }
.hero-copy, .section-head p, .article-card p, .champion-card p, .current-player-card p, .shirt-description { color: var(--muted); }
.eyebrow, .champion-period, .shirt-edition, .personality-kicker, .editorial-kicker, .catalog-kicker { color: var(--gold-dark); }
.eyebrow::before { background: var(--brass); }
.btn-primary { color: var(--cream); background: var(--forest); box-shadow: none; }
.btn-secondary { color: var(--forest); border-color: var(--gold-dark); background: transparent; }
.btn-secondary:hover { border-color: var(--forest); background: var(--paper); }
.hero-art { border: 1px solid var(--brass); background: linear-gradient(145deg, #17130F 0%, #080908 68%, #14241D 100%); box-shadow: var(--shadow); }
.hero-art::before, .hero-art::after { border: 1px solid rgba(196,163,90,.36); border-radius: 0; transform: rotate(45deg); }
.hero-art::before { width: 66%; height: 66%; }
.hero-art::after { width: 86%; height: 86%; }
.hero-art-glow { background: rgba(168,132,63,.13); }
.hero-board { border: 8px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.36); }
.hero-square:nth-child(odd) { background: #E7DFCF; color: #17130F; }
.hero-square:nth-child(even) { background: #2B2118; color: #F4EFE4; }
.art-stamp, .art-caption { color: var(--cream); }
.pilot-note { border-color: var(--line); color: var(--muted); background: rgba(231,223,207,.72); }
.note-dot { background: var(--brass); }
.feature-strip { gap: 10px; }
.feature { border-color: var(--line); background: rgba(231,223,207,.74); }
.feature b { color: var(--forest); }
.promo-banner { border: 1px solid var(--brass); background: linear-gradient(120deg, #E7DFCF, #F4EFE4); }
.promo-banner::after { border-color: rgba(168,132,63,.32); border-radius: 0; transform: rotate(45deg); }
.article-card, .champion-card, .current-player-card, .event-photo, .event-card, .restoration-story, .restoration-photo, .chat-panel, .comment-box, .progress-card {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: inset 0 0 0 2px rgba(168,132,63,.08);
}
.article-card:nth-child(even), .champion-card:nth-child(even), .current-player-card:nth-child(even), .event-card:nth-child(even) { background: #F0E9D9; }
.article-visual { color: var(--gold); background: linear-gradient(135deg, #17130F, #14241D); }
.article-tag, .current-player-rank, .demo-tag, .xp-chip { color: var(--forest-3); background: #E0D5C2; }
.editor-note { border-left-color: var(--brass); color: #40382C; background: #E7DFCF; }
.photo-credit, .champion-credit, .ranking-source, .series-date { color: #514B42; }
.photo-credit a { color: #5E481F; }
.game-section, .progress-section { background: var(--felt); }
.game-section, .progress-section, .game-section h2, .progress-section h2 { color: var(--cream); }
.game-section .section-head p, .progress-section .section-head p { color: #D3CCBD; }
.board-panel, .side-card, .mini-game { border-color: rgba(196,163,90,.42); color: var(--cream); background: var(--forest-2); }
.board-panel h3, .side-card h3, .board-status, .turn-chip { color: var(--cream); }
.turn-chip { border-color: rgba(196,163,90,.55); background: #2B2118; }
.chess-board, .puzzle-board { border-color: var(--gold); }
.square.light, .puzzle-square.light { background: #E7DFCF; color: #17130F; }
.square.dark, .puzzle-square.dark { background: #80633A; color: #F4EFE4; }
.square.legal::after { background: rgba(8,9,8,.48); }
.select { border-color: var(--brass); color: var(--cream); background: var(--felt); }
.progress-card { color: var(--ink); background: var(--cream); }
.progress-track { background: #CFC3AD; }
.progress-fill { background: linear-gradient(90deg, #80633A, #C4A35A); }
.store-section { color: var(--cream); background: var(--forest); }
.store-section .eyebrow, .store-card > span { color: var(--gold); }
.store-section .section-head h2, .store-card h3 { color: var(--cream); }
.store-section .section-head p, .store-note { color: #D5CCBC; }
.store-card { border-color: rgba(196,163,90,.45); background: #2B2118; }
.store-card:nth-child(2) { background: #14241D; }
.store-card:nth-child(3) { background: #17130F; }
.store-card:nth-child(4) { background: #2B2118; }
.store-card a { color: #E7DFCF; }
.shirt-product { border-color: var(--brass); color: var(--ink); background: var(--cream); box-shadow: 0 16px 42px rgba(0,0,0,.24); }
.shirt-gallery { background: #E7DFCF; }
.shirt-preview { border: 1px solid var(--brass); background: #17130F; }
.shirt-preview figcaption { border-color: var(--gold); color: var(--cream); background: rgba(8,9,8,.84); }
.shirt-option { border-color: var(--line); color: var(--forest); background: var(--cream); }
.shirt-option[aria-pressed="true"] { border-color: var(--gold-dark); box-shadow: 0 0 0 2px rgba(168,132,63,.25); }
.shirt-option img { background: #E7DFCF; }
.shirt-details h3, .shirt-price, .shirt-fieldset legend { color: var(--forest); }
.shirt-description, .shirt-unit, .shirt-pilot-note { color: var(--muted); }
.shirt-size { border-color: var(--line); color: var(--forest-3); background: var(--cream); }
.shirt-size[aria-pressed="true"] { border-color: var(--forest); color: var(--cream); background: var(--forest); }
.collection-feature { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 20px; padding: 20px 24px; border: 1px solid rgba(196,163,90,.52); background: #14241D; }
.collection-feature h3 { margin: 5px 0; color: var(--cream); font: 600 1.8rem/1.05 var(--serif); }
.collection-feature p { max-width: 660px; margin: 0; color: #D3CCBD; font-size: .82rem; }
.collection-feature .btn { flex: 0 0 auto; border-color: var(--gold); color: var(--cream); }
.final-cta { color: var(--cream); background: var(--felt); }
.final-inner h2 { color: var(--cream); }
footer { color: #E7DFCF; background: #17130F; }
.footer-inner { gap: 16px; }
.footer-brand { color: var(--gold); }
.modal-backdrop { background: rgba(8,9,8,.78); }
.account-modal, .article-modal, .puzzle-modal { border: 1px solid var(--brass); color: var(--ink); background: var(--cream); box-shadow: 0 24px 70px rgba(0,0,0,.32); }
.article-modal-head h2, .account-modal h2, .puzzle-modal h3 { color: var(--forest); font-family: var(--serif); font-weight: 600; }
.close-modal { border-color: var(--line); color: var(--forest); background: var(--paper); }
.provider-button, .account-tab, .account-field input, .text-input { border-color: var(--line); color: var(--ink); background: #FBF8F0; }
.account-tab.active { border-color: var(--forest); color: var(--cream); background: var(--forest); }
.account-state, .account-feature, .consent-choice { border-color: var(--line); color: var(--ink); background: var(--paper); }
.account-privacy { color: #4E4B44; }
.article-gallery figure { border: 1px solid var(--line); background: var(--paper); }
.article-gallery img, .champion-photo, .current-player-photo, .event-photo img, .restoration-cover img, .restoration-photo img { border-radius: 0 !important; }
.article-sources a { color: #5E481F; }
.personality-feature { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: clamp(20px,4vw,48px); align-items: center; overflow: hidden; border: 1px solid var(--brass); background: var(--cream); box-shadow: inset 0 0 0 3px rgba(168,132,63,.10); }
.personality-art { position: relative; display: block; min-height: 320px; overflow: hidden; background: #17130F; }
.personality-art img { display: block; width: 100%; height: 100%; min-height: 320px; object-fit: contain; }
.personality-art span { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; color: var(--cream); background: rgba(8,9,8,.86); font-size: .65rem; }
.personality-copy { padding: clamp(18px,3.5vw,38px); }
.personality-kicker { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.personality-copy h3 { margin: 8px 0 12px; color: var(--forest); font-size: clamp(2rem,4vw,3.2rem); line-height: 1; }
.personality-copy p { max-width: 650px; color: var(--muted); }
.personality-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.privacy-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 12px; border-top: 1px solid rgba(196,163,90,.35); color: #E7DFCF; font-size: .68rem; }
.privacy-controls button { min-height: 34px; padding: 5px 10px; border: 1px solid var(--gold); color: var(--cream); background: transparent; font-size: .68rem; font-weight: 700; cursor: pointer; }
.privacy-controls button:hover { color: var(--forest); background: var(--gold); }
.privacy-status { flex: 1 1 100%; color: #D3CCBD; }
.article-shell, .catalog-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.editorial-topline { padding: 28px 0 14px; color: var(--muted); font-size: .76rem; }
.editorial-topline a { color: var(--gold-dark); }
.editorial-hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(280px,.9fr); gap: clamp(24px,5vw,56px); align-items: center; padding: 20px 0 34px; }
.editorial-title { max-width: 760px; margin: 8px 0 14px; color: var(--forest); font-size: clamp(2.6rem,6vw,5rem); letter-spacing: -.035em; line-height: .94; }
.editorial-deck { max-width: 680px; color: var(--muted); font: 600 clamp(1.15rem,2vw,1.55rem)/1.35 var(--serif); }
.editorial-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0; color: #514B42; font-size: .72rem; }
.editorial-meta strong { color: var(--forest); }
.editorial-share { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border: 1px solid var(--gold-dark); color: var(--forest); background: transparent; font-weight: 750; }
.editorial-cover { margin: 0; padding: 8px; border: 3px double var(--brass); background: #17130F; }
.editorial-cover img { display: block; width: 100%; max-height: 520px; aspect-ratio: .95; object-fit: contain; background: #17130F; }
.editorial-cover figcaption { padding: 8px 6px 2px; color: #E7DFCF; font-size: .65rem; line-height: 1.45; }
.editorial-layout { display: grid; grid-template-columns: 220px minmax(0,760px); gap: clamp(24px,5vw,56px); justify-content: center; align-items: start; padding: 24px 0 50px; border-top: 1px solid var(--line); }
.editorial-toc { position: sticky; top: 96px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.editorial-toc h2 { margin: 0 0 10px; color: var(--forest); font: 700 .77rem var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.editorial-toc ol { margin: 0; padding-left: 18px; color: var(--muted); font-size: .72rem; }
.editorial-toc li { padding: 5px 0; }
.editorial-toc a:hover { color: var(--gold-dark); }
.editorial-body { min-width: 0; color: #322E27; font-size: .98rem; line-height: 1.8; }
.editorial-body h2 { margin: 38px 0 12px; color: var(--forest); font: 600 clamp(1.7rem,3vw,2.25rem)/1.08 var(--serif); }
.editorial-body p { margin: 0 0 16px; }
.editorial-body a, .source-list a { color: #5E481F; }
.editorial-note { margin: 18px 0; padding: 14px 16px; border-left: 3px solid var(--brass); color: #40382C; background: var(--paper); font-size: .82rem; line-height: 1.65; }
.editorial-fact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }
.editorial-fact { padding: 13px; border: 1px solid var(--line); background: var(--paper); }
.editorial-fact strong { display: block; color: var(--forest); font: 700 1.15rem var(--serif); }
.editorial-fact span { color: var(--muted); font-size: .66rem; }
.editorial-table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); }
.editorial-table { width: 100%; border-collapse: collapse; font-size: .77rem; }
.editorial-table th, .editorial-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.editorial-table th { color: var(--cream); background: var(--forest-2); }
.editorial-table tr:nth-child(even) td { background: var(--paper); }
.contextual-commerce { margin: 28px 0; padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--brass); background: #F0E9D9; }
.contextual-commerce p { margin: 0 0 5px; color: var(--muted); font-size: .83rem; }
.contextual-commerce a { color: var(--forest); font-size: .82rem; font-weight: 800; }
.editorial-commerce { margin: 22px 0 36px; padding: clamp(18px,3vw,28px); border: 1px solid var(--brass); background: #E7DFCF; }
.editorial-commerce h2 { margin: 0 0 8px; }
.editorial-commerce > p { color: var(--muted); font-size: .84rem; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.catalog-product-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.catalog-product-card:nth-child(even) { background: #F0E9D9; }
.catalog-product-card a { display: block; }
.catalog-product-card a:hover { text-decoration: none; }
.catalog-product-media { display: grid; aspect-ratio: .82; place-items: center; overflow: hidden; background: #17130F; }
.catalog-product-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.catalog-product-copy { padding: 12px; }
.catalog-product-copy span { color: var(--gold-dark); font-size: .61rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.catalog-product-copy h3 { margin: 5px 0; color: var(--forest); font: 600 1.12rem/1.05 var(--serif); }
.catalog-product-copy p { margin: 0; color: var(--muted); font-size: .69rem; line-height: 1.5; }
.catalog-product-price { display: block; margin-top: 10px; color: var(--forest); font-size: .76rem; font-weight: 850; }
.catalog-link { display: inline-flex; margin-top: 8px; color: var(--forest); font-size: .68rem; font-weight: 850; }
.collection-hero { padding: 54px 0 30px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #E7DFCF, #F4EFE4 62%, #E7DFCF); }
.collection-hero .catalog-title { max-width: 780px; margin: 10px 0; color: var(--forest); font-size: clamp(2.6rem,6vw,4.6rem); line-height: .95; }
.collection-hero p { max-width: 680px; color: var(--muted); }
.catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; padding: 28px 0 50px; }
.product-page-shell { padding: 28px 0 52px; }
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.82fr); gap: clamp(22px,5vw,56px); align-items: start; }
.product-detail-media { padding: 10px; border: 3px double var(--brass); background: #17130F; }
.product-detail-media img { display: block; width: 100%; max-height: 680px; aspect-ratio: .9; object-fit: contain; }
.product-detail-media figcaption { padding: 8px 4px 0; color: #E7DFCF; font-size: .68rem; }
.product-detail-copy { padding: 10px 0; }
.product-detail-copy h1 { margin: 8px 0; color: var(--forest); font-size: clamp(2.25rem,4vw,3.7rem); line-height: .96; }
.product-detail-copy > p { color: var(--muted); line-height: 1.7; }
.product-status { display: inline-block; margin: 16px 0; padding: 8px 12px; border: 1px solid var(--brass); color: var(--forest); background: var(--paper); font-weight: 850; }
.size-proposal { margin: 16px 0; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.size-proposal legend { padding: 0 5px; color: var(--forest); font-size: .77rem; font-weight: 800; }
.size-options { display: flex; flex-wrap: wrap; gap: 6px; }
.size-options button { min-width: 40px; min-height: 36px; border: 1px solid var(--line); color: var(--forest-3); background: var(--cream); opacity: .85; }
.size-options button:disabled { cursor: not-allowed; }
.size-note { margin: 10px 0 0 !important; color: #514B42 !important; font-size: .68rem; }
.product-disabled { width: 100%; min-height: 44px; border: 1px solid var(--line); color: #514B42; background: #D8D1C4; font-weight: 800; cursor: not-allowed; }
.product-detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.editorial-pagination { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 30px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.editorial-pagination a { max-width: 48%; padding: 12px; border: 1px solid var(--line); color: var(--forest); background: var(--paper); font-size: .78rem; font-weight: 800; }
.editorial-related { padding: 30px 0 44px; }
.editorial-related h2 { color: var(--forest); font: 600 2rem var(--serif); }
.source-list { padding-left: 20px; font-size: .78rem; line-height: 1.65; }
.source-list li { margin: 0 0 8px; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .nav { gap: 6px; font-size: .68rem; }
  .catalog-grid, .catalog-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editorial-hero { grid-template-columns: minmax(0,1fr) minmax(250px,.8fr); }
}
@media (max-width: 700px) {
  .nav { font-size: .9rem; }
  .personality-feature, .editorial-hero, .editorial-layout, .product-detail { grid-template-columns: 1fr; }
  .personality-art, .personality-art img { min-height: 0; aspect-ratio: 1.05; }
  .personality-copy { padding: 20px; }
  .collection-feature { align-items: flex-start; flex-direction: column; padding: 18px; }
  .collection-feature .btn { width: 100%; }
  .article-shell, .catalog-shell { width: min(100% - 28px, 560px); }
  .editorial-topline { padding-top: 20px; }
  .editorial-hero { padding-top: 10px; }
  .editorial-title { font-size: clamp(2.45rem,12vw,3.8rem); }
  .editorial-layout { gap: 18px; padding-top: 18px; }
  .editorial-toc { position: static; }
  .editorial-fact-grid { grid-template-columns: 1fr; }
  .catalog-grid, .catalog-product-grid { grid-template-columns: 1fr; }
  .catalog-product-media { aspect-ratio: 1.1; }
  .product-detail-media img { max-height: none; aspect-ratio: .95; }
  .editorial-pagination { flex-direction: column; }
  .editorial-pagination a { max-width: none; }
  .privacy-controls { align-items: stretch; flex-direction: column; }
  .privacy-controls button { width: 100%; min-height: 42px; }
  .personality-actions { flex-direction: column; }
  .personality-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Shared foundations for the stand-alone editorial pages. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; }
.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(8,9,8,.2); backdrop-filter: blur(12px); }
.topbar-inner { position: relative; display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; min-width: 0; align-items: center; gap: 9px; color: var(--forest); font-family: var(--sans); font-size: 1.12rem; font-weight: 850; letter-spacing: -.05em; white-space: nowrap; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border: 1px solid var(--gold); color: var(--gold); background: var(--forest); font-size: 1.35rem; }
.brand em { color: var(--gold-dark); font-style: normal; }
.nav { display: flex; align-items: center; gap: 20px; color: var(--forest-3); font-size: .82rem; font-weight: 700; }
.nav a { display: inline-flex; min-height: 44px; align-items: center; color: inherit; text-decoration: none; }
.nav a:hover { color: var(--gold-dark); }
.account-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 13px; border: 1px solid var(--forest); color: var(--cream); background: var(--forest); font-size: .76rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.account-button:hover { color: var(--cream); background: var(--forest-2); }
.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border: 1px solid transparent; font-size: .85rem; font-weight: 800; text-align: center; text-decoration: none; }
.btn-primary { color: var(--cream); background: var(--forest); }
.btn-secondary { color: var(--forest); border-color: var(--gold-dark); background: transparent; }
.btn:hover { text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.article-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.article-card { display: flex; min-width: 0; min-height: 250px; flex-direction: column; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.article-visual { display: grid; min-height: 104px; place-items: center; margin: -18px -18px 16px; color: var(--gold); background: var(--forest); font: 600 3rem var(--serif); }
.article-tag { color: var(--gold-dark); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.article-card h3 { margin: 7px 0; color: var(--forest); font: 600 1.45rem/1.12 var(--serif); }
.article-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.article-card .text-link, .text-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: auto; padding-top: 10px; color: var(--forest); font-size: .78rem; font-weight: 850; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 22px; padding-block: 22px; }
.footer-brand { color: var(--gold); font-weight: 850; }
.privacy-controls { flex-basis: 100%; }
.privacy-controls button { min-height: 44px; }
.editorial-topline a { min-height: 36px; color: var(--gold-dark); }
.editorial-toc a, .source-list a, .editorial-pagination a { overflow-wrap: anywhere; }
.editorial-toc a { display: inline-flex; min-height: 40px; align-items: center; }
.editorial-body { overflow-wrap: anywhere; }
.editorial-table { min-width: 480px; }
.editorial-share { min-height: 44px; }
.size-options button { min-width: 44px; min-height: 44px; }
.product-disclosure { margin-top: 12px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.account-modal, .article-modal, .puzzle-modal { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.account-field .text-input, .account-submit, .provider-button, .account-tab, .close-modal { min-height: 44px; }
.consent-choice { min-height: 44px; align-items: center; }
.consent-choice input { width: 20px; height: 20px; }
.modal-backdrop { padding-top: max(12px, env(safe-area-inset-top)); padding-right: max(12px, env(safe-area-inset-right)); padding-bottom: max(12px, env(safe-area-inset-bottom)); padding-left: max(12px, env(safe-area-inset-left)); }
.account-modal, .article-modal { max-height: min(90vh, 860px); max-height: min(90dvh, 860px); }
.catalog-product-card a { color: inherit; text-decoration: none; }
.catalog-product-card a:focus-visible { outline-offset: -4px !important; }
.catalog-link { min-height: 40px; align-items: center; }
.account-label-mobile { display: none; }

@media (max-width: 1000px) {
  .topbar-inner { gap: 12px; }
  .nav { gap: 12px; font-size: .75rem; }
  .account-button { padding-inline: 10px; }
  .editorial-layout { grid-template-columns: 195px minmax(0,760px); }
  .catalog-product-copy { padding: 11px; }
}
@media (max-width: 820px) {
  .home-topbar .topbar-inner { display: grid; grid-template-columns: minmax(0,1fr) auto 44px; grid-template-areas: "brand actions menu"; gap: 8px; min-height: 64px; }
  .home-topbar .topbar-inner > .brand { grid-area: brand; }
  .home-topbar .header-actions { grid-area: actions; }
  .home-topbar .header-actions .profile-pill { display: none; }
  .home-topbar .mobile-menu { grid-area: menu; display: inline-flex; width: 44px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); color: var(--forest); background: var(--paper); font-size: 1.2rem; }
  .home-topbar .account-label-desktop { display: none; }
  .home-topbar .account-label-mobile { display: inline; }
  .home-topbar .account-button { min-height: 44px; padding-inline: 11px; font-size: .78rem; }
  .home-topbar .nav { position: absolute; top: 100%; right: 0; left: 0; z-index: 35; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 14px 12px; border: 1px solid var(--line); border-top: 0; background: var(--cream); box-shadow: 0 14px 24px rgba(8,9,8,.14); }
  .home-topbar .nav.open { display: flex; }
  .home-topbar .nav a { min-height: 46px; border-bottom: 1px solid rgba(8,9,8,.1); }
  .editorial-topbar .topbar-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "brand account" "nav nav"; gap: 4px 10px; padding-block: 8px 4px; }
  .editorial-topbar .brand { grid-area: brand; }
  .editorial-topbar > .topbar-inner > .account-button { grid-area: account; }
  .editorial-topbar .editorial-nav { position: static; grid-area: nav; display: flex; min-width: 0; gap: 6px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .editorial-topbar .editorial-nav a { min-width: max-content; min-height: 44px; padding-inline: 10px; }
  .editorial-hero { gap: 22px; }
  .editorial-title { font-size: clamp(2.55rem,6.4vw,4rem); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .wrap { width: calc(100% - 28px); }
  .home-topbar .brand { gap: 7px; font-size: .98rem; }
  .home-topbar .brand-mark { width: 32px; height: 32px; flex-basis: 32px; font-size: 1.18rem; }
  .home-topbar .topbar-inner { grid-template-columns: minmax(0,1fr) auto 44px; }
  .home-topbar .account-button { padding-inline: 9px; }
  .article-shell, .catalog-shell { width: calc(100% - 28px); }
  .editorial-topline { font-size: .72rem; }
  .editorial-hero { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 12px 0 24px; }
  .editorial-title { max-width: 100%; font-size: clamp(2.4rem,11vw,3.65rem); line-height: .98; overflow-wrap: anywhere; }
  .editorial-deck { font-size: 1.15rem; }
  .editorial-cover { max-width: 520px; margin-inline: auto; }
  .editorial-cover img { max-height: 430px; aspect-ratio: 1.1; }
  .editorial-meta { gap: 8px 13px; font-size: .72rem; }
  .editorial-layout { grid-template-columns: minmax(0,1fr); gap: 14px; padding-block: 16px 34px; }
  .editorial-toc { position: static; padding: 14px; }
  .editorial-toc ol { columns: 2; column-gap: 22px; }
  .editorial-toc li { break-inside: avoid; }
  .editorial-body { font-size: 1rem; line-height: 1.75; }
  .editorial-body h2 { margin-top: 30px; }
  .editorial-fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editorial-fact { min-width: 0; overflow-wrap: anywhere; }
  .editorial-table { min-width: 440px; font-size: .74rem; }
  .editorial-table th, .editorial-table td { padding: 9px; }
  .editorial-commerce { margin-inline: -2px; padding: 16px 13px; }
  .catalog-product-grid, .catalog-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .catalog-product-media { aspect-ratio: 1.08; }
  .catalog-product-copy { padding: 14px; }
  .catalog-product-copy h3 { font-size: 1.35rem; }
  .catalog-product-copy p { font-size: .8rem; }
  .collection-hero { padding: 32px 0 22px; }
  .collection-hero .catalog-title { font-size: clamp(2.4rem,11vw,3.65rem); overflow-wrap: anywhere; }
  .collection-hero p { font-size: .95rem; }
  .product-detail { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .product-detail-media { padding: 7px; }
  .product-detail-media img { max-height: 480px; aspect-ratio: 1; }
  .product-detail-copy h1 { font-size: clamp(2.2rem,10vw,3.4rem); }
  .product-detail-copy { padding-top: 0; }
  .product-detail-links { display: grid; grid-template-columns: 1fr; }
  .editorial-pagination { flex-direction: column; gap: 8px; }
  .editorial-pagination a { max-width: none; }
  .editorial-related { padding-block: 24px 32px; }
  .article-grid { grid-template-columns: minmax(0,1fr); }
  .privacy-controls { align-items: stretch; flex-direction: column; }
  .privacy-controls button { min-height: 44px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-inner > span { overflow-wrap: anywhere; }
}
@media (max-width: 380px) {
  .home-topbar .topbar-inner { gap: 5px; }
  .home-topbar .brand { font-size: .9rem; }
  .home-topbar .brand-mark { width: 30px; height: 30px; flex-basis: 30px; }
  .home-topbar .account-button { padding-inline: 7px; font-size: .73rem; }
  .editorial-topbar .editorial-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px; overflow: visible; }
  .editorial-topbar .editorial-nav a { justify-content: center; padding-inline: 6px; border: 1px solid rgba(8,9,8,.1); }
  .feature-strip { grid-template-columns: minmax(0,1fr); }
  .community-layout > * { min-width: 0; }
  .group-list { width: 100%; min-width: 0; grid-template-columns: minmax(0,1fr); }
  .group-btn { width: 100%; min-width: 0; }
  .editorial-topbar .brand { font-size: .98rem; }
  .editorial-topbar .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .editorial-toc ol { columns: 1; }
  .editorial-fact-grid { grid-template-columns: 1fr; }
}

/* Refinamento de navegação, estados e acabamento. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  border: 1px solid var(--gold);
  color: var(--cream);
  background: var(--forest);
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }
.nav a { position: relative; transition: color .18s ease; }
.nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--brass);
  content: "";
  transition: transform .18s ease;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--forest); }
.btn, .account-button, .profile-pill, .mobile-menu, .provider-button, .account-tab, .shirt-option, .shirt-size, .group-btn, .store-card, .feature, .article-card, .champion-card, .current-player-card, .event-card, .catalog-product-card {
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:not(:disabled):hover, .account-button:hover, .profile-pill:hover, .mobile-menu:hover, .provider-button:hover, .account-tab:hover, .shirt-option:hover, .shirt-size:hover, .group-btn:hover {
  transform: translateY(-2px);
}
.btn:not(:disabled):active, .account-button:active, .profile-pill:active, .mobile-menu:active, .provider-button:active, .account-tab:active, .shirt-option:active, .shirt-size:active, .group-btn:active { transform: translateY(0); }
.btn:disabled, button:disabled { cursor: not-allowed; }
.article-card:hover, .champion-card:hover, .current-player-card:hover, .event-card:hover, .catalog-product-card:hover, .feature:hover {
  border-color: var(--brass);
  box-shadow: 0 12px 28px rgba(8, 9, 8, .12), inset 0 0 0 2px rgba(168,132,63,.1);
  transform: translateY(-3px);
}
.champion-photo, .current-player-photo, .event-photo img, .catalog-product-media img { transition: transform .35s ease, filter .35s ease; }
.champion-card:hover .champion-photo, .current-player-card:hover .current-player-photo, .event-photo:hover img, .catalog-product-card:hover .catalog-product-media img { transform: scale(1.025); }
.article-card:focus-within, .champion-card:focus-within, .current-player-card:focus-within, .event-card:focus-within, .catalog-product-card:focus-within { border-color: var(--brass); }
body.modal-open { overflow: hidden; }
.modal-backdrop.open { overscroll-behavior: contain; }
.account-modal, .article-modal, .puzzle-modal { scrollbar-color: var(--brass) transparent; }
.account-modal::-webkit-scrollbar, .article-modal::-webkit-scrollbar { width: 10px; }
.account-modal::-webkit-scrollbar-thumb, .article-modal::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 10px; background: var(--brass); background-clip: padding-box; }
.privacy-controls button:focus-visible, .nav a:focus-visible, .skip-link:focus-visible { outline-offset: 4px !important; }
@media (max-width: 820px) {
  .home-topbar .nav a::after { right: auto; bottom: 7px; left: 0; width: 34px; transform-origin: left; }
  .home-topbar .nav a.is-active { padding-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .account-button, .profile-pill, .mobile-menu, .provider-button, .account-tab, .shirt-option, .shirt-size, .group-btn, .store-card, .feature, .article-card, .champion-card, .current-player-card, .event-card, .catalog-product-card, .champion-photo, .current-player-photo, .event-photo img, .catalog-product-media img { transition: none !important; }
}

/* Menu principal em formato de guia: opções claras, alvos amplos e foco visível. */
html { scroll-padding-top: 180px; }
.home-topbar .topbar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding-block: 9px 11px;
}
.home-topbar .topbar-main {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-topbar .header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.home-topbar .profile-pill { min-height: 48px; padding: 6px 13px 6px 8px; font-size: .9rem; }
.home-topbar .account-button { min-height: 48px; padding-inline: 16px; font-size: .94rem; }
.home-topbar .mobile-menu { display: none; }
.home-topbar .nav {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  padding: 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  box-shadow: none;
}
.home-topbar .nav-guide { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.home-topbar .nav-guide-title { margin: 0; color: var(--forest); font-size: .98rem; font-weight: 850; }
.home-topbar .nav-guide-help { margin: 0; color: #5e5045; font-size: .86rem; }
.home-topbar .nav-links {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.home-topbar .nav-links li { min-width: 0; }
.home-topbar .nav a {
  display: flex;
  min-width: 0;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: var(--paper);
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}
.home-topbar .nav a::after { display: none; }
.home-topbar .nav-link-title { display: block; }
.home-topbar .nav-link-description { display: none; }
.home-topbar .nav a:hover { border-color: var(--gold-dark); color: var(--forest); background: var(--sage); }
.home-topbar .nav a.is-active { border-color: var(--gold-dark); color: var(--cream); background: var(--forest); box-shadow: inset 0 -3px 0 var(--gold); }
.home-topbar .nav a:focus-visible,
.home-topbar .mobile-menu:focus-visible,
.home-topbar .account-button:focus-visible,
.home-topbar .profile-pill:focus-visible,
.editorial-topbar .editorial-nav a:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
}

/* Em telas médias, quatro opções por linha mantêm os rótulos espaçosos. */
@media (max-width: 1100px) and (min-width: 821px) {
  html { scroll-padding-top: 230px; }
  .home-topbar .nav-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* No celular, o botão mostra o nome do menu e abre uma lista com explicações. */
@media (max-width: 820px) {
  html { scroll-padding-top: 80px; }
  .home-topbar .topbar-inner { display: block; padding-block: 8px; }
  .home-topbar .topbar-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 52px;
    gap: 8px;
  }
  .home-topbar .header-actions { margin: 0; }
  .home-topbar .header-actions .profile-pill { display: none; }
  .home-topbar .account-label-desktop { display: none; }
  .home-topbar .account-label-mobile { display: inline; }
  .home-topbar .account-button { min-height: 48px; padding-inline: 12px; font-size: .94rem; }
  .home-topbar .mobile-menu {
    display: inline-flex;
    min-width: 88px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--forest);
    color: var(--cream);
    background: var(--forest);
    font-size: .96rem;
    font-weight: 850;
  }
  .home-topbar .mobile-menu:hover { color: var(--cream); background: var(--forest-2); }
  .home-topbar .mobile-menu-icon { font-size: 1.18rem; line-height: 1; }
  .home-topbar .nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 35;
    display: none;
    max-height: calc(100dvh - 84px);
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 14px 24px rgba(8, 9, 8, .18);
  }
  .home-topbar .nav.open { display: flex; }
  .home-topbar .nav-guide { flex-direction: column; align-items: flex-start; gap: 3px; padding: 0 2px 5px; }
  .home-topbar .nav-guide-title { font-size: 1.12rem; }
  .home-topbar .nav-guide-help { font-size: .9rem; line-height: 1.45; }
  .home-topbar .nav-links { grid-template-columns: 1fr; gap: 6px; }
  .home-topbar .nav a {
    min-height: 66px;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    padding: 9px 13px;
    border-color: #cbbba8;
    font-size: 1rem;
    text-align: left;
  }
  .home-topbar .nav-link-description { display: block; color: #5e5045; font-size: .86rem; font-weight: 550; line-height: 1.35; }
  .home-topbar .nav a.is-active .nav-link-description { color: #f4e7d7; }
  .editorial-topbar .editorial-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }
  .editorial-topbar .editorial-nav a { min-width: 0; min-height: 48px; justify-content: center; padding-inline: 7px; font-size: .9rem; font-weight: 850; }
}

@media (max-width: 460px) {
  .home-topbar .brand { gap: 6px; font-size: .9rem; }
  .home-topbar .brand-mark { width: 30px; height: 30px; flex-basis: 30px; font-size: 1.1rem; }
  .home-topbar .account-button { min-height: 46px; padding-inline: 10px; font-size: .9rem; }
  .home-topbar .mobile-menu { min-width: 82px; min-height: 46px; padding-inline: 9px; font-size: .9rem; }
  .home-topbar .topbar-main { gap: 6px; }
  .editorial-topbar .editorial-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  .home-topbar .brand { font-size: .84rem; }
  .home-topbar .brand-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .home-topbar .account-button { padding-inline: 8px; }
  .home-topbar .mobile-menu { min-width: 76px; gap: 5px; padding-inline: 7px; }
}

/* Os menus das páginas de artigo e produto mantêm o mesmo tamanho de toque. */
.editorial-topbar .editorial-nav a {
  min-height: 48px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: var(--paper);
  font-size: .94rem;
  font-weight: 850;
}
.editorial-topbar .editorial-nav a:hover { border-color: var(--gold-dark); color: var(--forest); background: var(--sage); }
.store-card a { display: inline-flex; min-height: 46px; align-items: center; font-size: .9rem; font-weight: 850; text-decoration: underline; text-underline-offset: 4px; }
.store-card .store-status { display: inline-flex; min-height: 44px; align-items: center; margin: 0; color: #f1dfc3; font-size: .9rem; font-weight: 800; }

/* A abertura usa imagens como atalhos e deixa o texto essencial em primeiro plano. */
.hero { padding-block: 40px 24px; }
.hero-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 38px; }
.hero h1 { max-width: 590px; font-size: clamp(3rem, 5.2vw, 4.6rem); line-height: 1.02; }
.hero-copy { max-width: 440px; margin-block: 12px 0; font-size: 1.05rem; }
.button-row { margin-top: 20px; }
.hero-entry-gallery {
  display: grid;
  min-width: 0;
  height: 440px;
  min-height: 440px;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hero-entry-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--brass);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero-entry-main { grid-row: 1 / span 2; }
.hero-entry-link {
  position: relative;
  display: block;
  min-height: 150px;
  height: 100%;
  flex: 1;
  overflow: hidden;
  color: var(--cream);
  background: var(--forest-2);
  text-decoration: none;
}
.hero-entry-main .hero-entry-link { min-height: 300px; }
.hero-entry-link::after {
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(8,9,8,.78));
  content: "";
}
.hero-entry-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.hero-entry-link:hover img { transform: scale(1.035); }
.hero-entry-label {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 11px;
  left: 14px;
  color: #fffaf0;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-weight: 850;
  line-height: 1.15;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.hero-entry-card figcaption {
  padding: 7px 9px;
  color: #4b443a;
  background: var(--paper);
  font-size: .68rem;
  line-height: 1.35;
}
.hero-entry-card figcaption a { color: #493716; text-decoration: underline; text-underline-offset: 2px; }
.pilot-disclosure {
  width: fit-content;
  max-width: 100%;
  margin-top: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}
.pilot-disclosure summary { padding: 7px 2px; color: var(--forest-3); font-weight: 800; cursor: pointer; }
.pilot-disclosure p { max-width: 720px; margin: 0; padding: 0 2px 10px; line-height: 1.55; }
.promo-banner { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; margin-top: 15px; padding: 15px 20px; }
.promo-banner h3 { margin: 0; font-size: 1.4rem; }
.promo-label { margin-bottom: 3px; }
.promo-cta { min-height: 46px; }
.section#aprender .section-head { margin-bottom: 20px; }
.section#aprender .section-head h2 { font-size: clamp(2.1rem, 3.7vw, 3rem); }
.section#aprender .article-card p { max-width: 34ch; }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 22px; }
  .hero-entry-gallery { height: 390px; min-height: 390px; gap: 8px; }
}
@media (max-width: 820px) {
  .hero { padding-block: 28px 20px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero h1 { max-width: 560px; font-size: clamp(2.8rem, 10vw, 4.2rem); }
  .hero-entry-gallery { height: 450px; min-height: 450px; grid-template-rows: minmax(230px, 1.25fr) minmax(145px, .75fr); }
  .hero-entry-main { grid-column: 1 / -1; grid-row: auto; }
  .hero-entry-main .hero-entry-link { min-height: 230px; }
  .hero-entry-link { min-height: 145px; }
  .pilot-disclosure { margin-top: 12px; }
}
@media (max-width: 460px) {
  .hero-entry-gallery { height: 400px; min-height: 400px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: minmax(205px, 1.3fr) minmax(132px, .8fr); gap: 7px; }
  .hero-entry-main .hero-entry-link { min-height: 205px; }
  .hero-entry-link { min-height: 132px; }
  .hero-entry-card figcaption { padding: 6px; font-size: .68rem; }
  .hero-entry-label { right: 6px; bottom: 7px; left: 8px; font-size: 1rem; }
  .promo-banner { grid-template-columns: 1fr auto; padding: 13px; }
  .promo-banner h3 { font-size: 1.15rem; }
  .promo-cta { min-height: 44px; padding-inline: 12px; font-size: .8rem; }
}

/* EuAmoXadrez.com · Xadrez e Arte */
:root {
  --forest: #14241D;
  --forest-2: #1D352A;
  --forest-3: #2B2118;
  --cream: #F4EFE4;
  --paper: #FCF9F1;
  --ink: #17130F;
  --muted: #57564F;
  --line: #D4C9B6;
  --gold: #C4A35A;
  --gold-dark: #71572C;
  --sage: #E7DFCF;
  --pale: #F1E9D8;
  --danger: #8B3024;
  --felt: #14241D;
  --brass: #A8843F;
  --metal: #85827A;
  --shadow: 0 20px 54px rgba(20,36,29,.12);
}

html { scroll-behavior: smooth; }
body { color: var(--ink); background: var(--cream); }
::selection { color: var(--cream); background: var(--forest); }
.topbar { border-color: rgba(20,36,29,.22); background: rgba(244,239,228,.98); }
.brand { min-width: 0; gap: 11px; color: var(--forest); letter-spacing: normal; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; width: 48px; height: 48px; flex: 0 0 48px; border: 0; object-fit: contain; color: inherit; background: transparent; }
.brand-copy { display: grid; gap: 3px; min-width: 0; line-height: 1.05; }
.brand-name { color: var(--forest); font-size: 1.05rem; font-weight: 850; letter-spacing: -.045em; }
.brand-tagline { color: var(--gold-dark); font-size: .65rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.home-topbar .brand-name { font-size: 1.08rem; }
.home-topbar .topbar-main { min-height: 62px; }
.home-topbar .nav-guide { width: 100%; padding: 9px 14px; border-left: 3px solid var(--gold); background: var(--sage); }
.home-topbar .nav-guide-title { color: var(--forest); font-size: 1rem; }
.home-topbar .nav-guide-title::before { margin-right: 8px; color: var(--gold-dark); content: "♟"; }
.home-topbar .nav-guide-help { color: #504b41; }
.home-topbar .nav a { min-height: 54px; border-color: #cfc3af; color: var(--forest); background: var(--paper); box-shadow: 0 2px 0 rgba(20,36,29,.04); }
.home-topbar .nav a:hover { border-color: var(--gold-dark); color: var(--forest); background: #efe7d7; transform: translateY(-1px); }
.home-topbar .nav a.is-active { border-color: var(--forest); color: var(--cream); background: var(--forest); box-shadow: inset 0 -3px 0 var(--gold); }
.account-button, .btn-primary { border-color: var(--forest); color: var(--cream); background: var(--forest); }
.account-button:hover, .btn-primary:hover { border-color: var(--forest-2); color: var(--cream); background: var(--forest-2); }
.btn-secondary { border-color: var(--gold-dark); color: var(--forest); background: rgba(252,249,241,.5); }
.mobile-menu { border: 1px solid var(--forest); color: var(--cream); background: var(--forest); }
.hero { position: relative; isolation: isolate; padding-block: 50px 38px; background: linear-gradient(115deg, #F4EFE4 0%, #F8F4EB 58%, #EDE4D2 100%); }
.hero::before { position: absolute; z-index: -1; top: 0; right: 0; width: min(38vw, 480px); height: 100%; background: linear-gradient(135deg, transparent 48%, rgba(196,163,90,.08) 48%, rgba(196,163,90,.08) 50%, transparent 50%); content: ""; pointer-events: none; }
.hero h1 { max-width: 610px; color: var(--forest); font-size: clamp(3.1rem, 5.6vw, 5.1rem); letter-spacing: -.045em; line-height: .99; }
.hero h1 span { color: var(--gold-dark); }
.hero-copy { max-width: 460px; color: #4f504a; font-size: 1.08rem; line-height: 1.65; }
.hero-entry-card { border: 1px solid rgba(20,36,29,.2); background: var(--paper); box-shadow: 0 10px 28px rgba(20,36,29,.1); }
.hero-entry-card figcaption { color: #514c42; background: var(--paper); }
.hero-entry-card figcaption a { color: var(--forest); }
.hero-entry-label { padding: 6px 10px; border-left: 3px solid var(--gold); color: var(--cream); background: rgba(20,36,29,.91); }
.pilot-disclosure { color: var(--muted); }
.pilot-disclosure summary { color: var(--forest); }
.promo-banner { border-color: #c5ad78; background: #EAE1CF; }
.promo-label, .promo-banner h3 { color: var(--forest); }
.promo-banner p { color: #504b41; }
.section { padding-block: clamp(54px, 7vw, 82px); }
.section-white { background: var(--paper); }
.section-head h2, .hero h1 { color: var(--forest); }
.final-inner h2 { color: var(--cream); }
.section-head p, .article-card p, .champion-card p, .current-player-card p, .shirt-description { color: #54554e; }
.eyebrow, .champion-period, .shirt-edition, .personality-kicker, .editorial-kicker, .catalog-kicker { color: var(--gold-dark); }
.article-card, .champion-card, .current-player-card, .event-card, .restoration-story, .store-card, .shirt-product, .progress-card, .side-card, .mode-card, .product-card, .catalog-product-card { border-color: var(--line); box-shadow: 0 8px 22px rgba(20,36,29,.06); }
.article-card, .champion-card, .current-player-card, .event-card, .restoration-story, .shirt-product, .progress-card, .side-card, .mode-card, .product-card, .catalog-product-card { background: var(--paper); }
.article-card h3, .champion-card h3, .store-card h3, .personality-copy h3 { color: var(--forest); }
.article-card .text-link, .text-link { color: var(--forest); }
.champion-card .btn { margin-top: 18px; }
.photo-credit { color: #504b41; background: #F1EADB; }
.photo-credit a { color: var(--forest); }
.store-section { background: var(--forest); }
.store-section .eyebrow, .store-card > span { color: #E3C77F; }
.store-section .section-head h2, .store-card h3 { color: var(--cream); }
.store-card { border-color: rgba(231,223,207,.3); background: #1B3027; }
footer { color: #E7DFCF; background: #101C17; }
.footer-inner { color: #E7DFCF; }
.footer-brand { color: #E3C77F; }
.footer-inner a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-dark) !important; outline-offset: 3px !important; }

@media (max-width: 820px) {
  .home-topbar .topbar-main {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    grid-template-areas: "brand actions menu";
    align-items: center;
  }
  .home-topbar .topbar-main > .brand { grid-area: brand; }
  .home-topbar .topbar-main > .header-actions { grid-area: actions; }
  .home-topbar .topbar-main > .mobile-menu { grid-area: menu; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-name { font-size: .94rem; }
  .brand-tagline { font-size: .6rem; letter-spacing: .14em; }
  .home-topbar .nav-guide { border-left-width: 4px; }
  .home-topbar .nav a { min-height: 68px; }
  .home-topbar .nav a.is-active .nav-link-description { color: #F4EFE4; }
  .hero { padding-block: 34px 26px; }
  .hero::before { width: 60%; opacity: .65; }
  .hero-copy { font-size: 1rem; }
}
@media (max-width: 460px) {
  .brand { gap: 7px; }
  .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-name { font-size: clamp(.7rem, 3.7vw, .88rem); letter-spacing: -.04em; }
  .brand-tagline { font-size: .55rem; letter-spacing: .12em; }
  .home-topbar .brand { font-size: inherit; }
  .home-topbar .account-button { min-height: 46px; }
  .home-topbar .mobile-menu { min-height: 46px; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 3.6rem); }
  .hero-entry-card figcaption { line-height: 1.4; }
  .promo-banner { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .promo-cta { justify-self: start; }
}
@media (max-width: 360px) {
  .brand { gap: 5px; }
  .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
  .brand-name { font-size: .69rem; }
  .brand-tagline { font-size: .52rem; }
}

/* Mobile-first play setup: choose the classic game and level before the board. */
.play-setup {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,.65fr) auto;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(196,163,90,.44);
  background: linear-gradient(120deg, #1D352A, #172B22);
}
.play-setup-mode { min-width: 0; }
.play-setup-kicker { display: inline-block; margin-bottom: 5px; color: #E3C77F; font-size: .66rem; font-weight: 850; letter-spacing: .13em; }
.play-setup-mode h3 { margin: 0; color: var(--cream); font: 600 1.42rem/1.1 var(--serif); }
.play-setup-mode p { margin: 5px 0 0; color: #D3CCBD; font-size: .78rem; }
.play-difficulty { display: grid; gap: 6px; color: var(--cream); font-size: .74rem; font-weight: 850; }
.play-difficulty .select { min-height: 48px; height: auto; border-color: #718579; color: var(--cream); background: #102019; }
.play-start { min-height: 48px; white-space: nowrap; }
.play-upcoming { margin: 0 0 20px; border: 1px solid rgba(231,223,207,.25); background: rgba(255,255,255,.035); }
.play-upcoming summary { display: flex; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; color: var(--cream); font-size: .86rem; font-weight: 850; cursor: pointer; list-style: none; }
.play-upcoming summary::-webkit-details-marker { display: none; }
.play-upcoming summary::after { color: #E3C77F; font-size: 1.25rem; content: "+"; }
.play-upcoming[open] summary::after { content: "−"; }
.play-upcoming summary:focus-visible { outline-offset: -3px !important; }
.future-mode-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 0 12px 12px; }
.future-mode { display: grid; min-width: 0; min-height: 137px; align-content: start; gap: 8px; padding: 12px; border: 1px solid rgba(231,223,207,.2); background: rgba(8,9,8,.18); }
.future-mode-icon { color: #E3C77F; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em; }
.future-mode strong { display: block; color: var(--cream); font-size: .84rem; }
.future-mode p { margin: 3px 0 0; color: #D3CCBD; font-size: .71rem; line-height: 1.4; }
.future-mode-status { align-self: end; color: #E3C77F; font-size: .59rem; font-weight: 850; letter-spacing: .1em; }
#boardPanel { scroll-margin-top: 190px; }

/* Keep the light play notes readable inside the dark felt section. */
.game-section .side-card { color: var(--forest); background: var(--paper); }
.game-section .side-card h3 { color: var(--forest); }
.game-section .side-card p { color: #4F504A; }
.game-section .side-card .reward-line strong { color: var(--forest-3); }

@media (max-width: 1000px) {
  .play-setup { grid-template-columns: minmax(0,1fr) minmax(200px,.8fr); }
  .play-start { grid-column: 1 / -1; justify-self: start; }
  .future-mode-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .play-setup { grid-template-columns: minmax(0,1fr); gap: 12px; margin-bottom: 10px; padding: 15px; }
  .play-difficulty { font-size: .82rem; }
  .play-start { width: 100%; justify-self: stretch; }
  .play-upcoming { margin-bottom: 15px; }
  .play-upcoming summary { min-height: 52px; font-size: .9rem; }
  .future-mode { min-height: 142px; padding: 11px; }
  #boardPanel { scroll-margin-top: 82px; }
}
@media (max-width: 360px) {
  .future-mode-grid { grid-template-columns: minmax(0,1fr); }
  .future-mode { min-height: 112px; }
}

/* O cabeçalho recolhe enquanto a página se move e reaparece quando a rolagem para. */
.home-topbar {
  transform-origin: top center;
  transition: opacity .24s ease, transform .3s cubic-bezier(.22,.76,.22,1), filter .24s ease;
  will-change: opacity, transform;
}
.home-topbar.is-scrolling {
  transform: translateY(-100%) scaleY(.9);
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .home-topbar { transition: none !important; }
  .home-topbar.is-scrolling { transform: none; opacity: .04; filter: none; }
}

/* Mantém a marca e os controles confortáveis sem apertar o cabeçalho em celulares estreitos. */
@media (max-width: 380px) {
  .home-topbar .topbar-main { grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px; }
  .home-topbar .brand-name { font-size: clamp(.78rem, 4vw, .88rem); }
  .home-topbar .brand-tagline { font-size: .52rem; letter-spacing: .11em; }
  .home-topbar .account-button { padding-inline: 6px; font-size: .72rem; }
  .home-topbar .mobile-menu { min-width: 70px; min-height: 44px; gap: 4px; padding-inline: 6px; font-size: .84rem; }
}

/* Refinamento minimalista: mesma identidade, menos camadas e menos ruído visual. */
:root { --shadow: 0 6px 18px rgba(20,36,29,.06); }
.topbar { backdrop-filter: none; }
.hero { padding-block: 38px 28px; background: var(--cream); }
.hero::before, .hero-art::before, .hero-art::after, .hero-art-glow, .promo-banner::after { display: none; }
.hero h1 { font-size: clamp(2.8rem,5vw,4.45rem); line-height: 1.02; }
.hero-entry-gallery { gap: 12px; }
.hero-entry-card, .article-card, .champion-card, .current-player-card, .event-card,
.restoration-story, .restoration-photo, .chat-panel, .comment-box, .progress-card,
.side-card, .mode-card, .store-card, .shirt-product, .product-card, .catalog-product-card {
  border-radius: 3px !important;
  box-shadow: none !important;
}
.hero-entry-card { border-color: var(--line); }
.hero-entry-card figcaption { font-size: .7rem; }
.hero-entry-link img, .champion-photo, .current-player-photo, .event-photo img, .catalog-product-media img { transition: none; }
.hero-entry-link:hover img, .champion-card:hover .champion-photo, .current-player-card:hover .current-player-photo,
.event-photo:hover img, .catalog-product-card:hover .catalog-product-media img { transform: none; }
.promo-banner { border-color: var(--line); border-radius: 3px; background: var(--sage); }
.section { padding-block: clamp(46px,5.5vw,68px); }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.95rem,3.6vw,2.85rem); }
.article-card, .champion-card, .current-player-card, .event-card, .restoration-story,
.progress-card, .mode-card, .side-card, .product-card, .catalog-product-card {
  border-color: var(--line);
  background: var(--paper);
}
.article-card:nth-child(even), .champion-card:nth-child(even), .current-player-card:nth-child(even),
.event-card:nth-child(even), .store-card:nth-child(n) { background: var(--paper); }
.article-visual { background: var(--forest); }
.article-card:nth-child(2) .article-visual { background: var(--sage); }
.article-card:nth-child(3) .article-visual { background: var(--forest-2); }
.champion-photo, .current-player-photo, .event-photo img { background: var(--sage); }
.editor-note, .ranking-source, .series-date { border-color: var(--line); }
.store-section, .game-section, .progress-section, .final-cta { background: var(--forest); }
.store-card { border-color: rgba(231,223,207,.28); background: var(--forest-2); }
.play-setup { border-color: rgba(231,223,207,.25); background: var(--forest-2); }
.board-panel, .side-card, .mini-game { box-shadow: none; }
.collection-feature { border-color: rgba(231,223,207,.28); background: var(--forest-2); }
.account-modal, .article-modal, .puzzle-modal { box-shadow: 0 12px 36px rgba(8,9,8,.16); }
.btn:not(:disabled):hover, .account-button:hover, .profile-pill:hover, .mobile-menu:hover,
.provider-button:hover, .account-tab:hover, .shirt-option:hover, .shirt-size:hover, .group-btn:hover,
.article-card:hover, .champion-card:hover, .current-player-card:hover, .event-card:hover,
.catalog-product-card:hover, .feature:hover { transform: none; }
.article-card:hover, .champion-card:hover, .current-player-card:hover, .event-card:hover,
.catalog-product-card:hover, .feature:hover { border-color: var(--gold-dark); }

/* Introdução: partida completa, tabuleiro inicial correto e escolhas sempre visíveis. */
.site-intro[hidden], .site-intro-screen[hidden] { display: none !important; }
.site-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  overflow: auto;
  color: var(--ink);
  background: var(--cream);
  opacity: 1;
  transition: opacity .24s ease, visibility .24s ease;
}
.site-intro.is-leaving { visibility: hidden; opacity: 0; pointer-events: none; }
.site-intro-screen {
  display: grid;
  width: min(1240px,100%);
  min-height: min(860px,calc(100dvh - 20px));
  max-height: calc(100dvh - 20px);
  grid-template-rows: auto minmax(0,1fr) auto;
  padding: clamp(14px,2.7vw,30px) clamp(14px,3vw,36px);
  overflow: auto;
  background: var(--cream);
}
.site-intro-topline { display: flex; min-height: 48px; align-items: center; justify-content: space-between; }
.site-intro-brand-lockup { display: inline-flex; min-width: 0; align-items: center; gap: 10px; }
.site-intro-brand-lockup img { display: block; width: 42px; height: 42px; object-fit: contain; }
.site-intro-brand-lockup span { display: grid; gap: 3px; line-height: 1.05; }
.site-intro-brand-lockup strong { color: var(--forest); font-size: 1rem; font-weight: 850; letter-spacing: -.035em; }
.site-intro-brand-lockup small { color: var(--gold-dark); font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.site-intro-content {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0,.9fr) minmax(340px,1.1fr);
  align-items: center;
  gap: clamp(24px,6vw,78px);
  padding: clamp(18px,3vh,34px) clamp(0px,3vw,36px);
}
.site-intro-copy { max-width: 470px; }
.site-intro-kicker { display: block; color: var(--gold-dark); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.site-intro-copy h1 { margin: 12px 0 9px; color: var(--forest); font: 600 clamp(2.5rem,4.6vw,4.15rem)/1.02 var(--serif); letter-spacing: -.04em; }
.site-intro-players { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 700; }
.site-intro-players span { margin-inline: 4px; color: var(--gold-dark); }
.site-intro-move { display: inline-flex; min-height: 42px; align-items: center; margin-top: 23px; padding: 7px 11px; border-left: 3px solid var(--gold); color: var(--forest); background: var(--sage); font: 800 .9rem/1.35 ui-monospace,SFMono-Regular,Consolas,monospace; }
.site-intro-narration { min-height: 4.5em; max-width: 43ch; margin: 11px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.site-intro-scene { width: 100%; max-width: 560px; margin: 0; justify-self: center; }
.site-intro-board-shell { position: relative; width: min(100%,52vw,56svh,560px); aspect-ratio: 1; margin-inline: auto; padding: 5px; border: 1px solid var(--line); background: var(--paper); }
.site-intro-board { display: grid; width: 100%; height: 100%; grid-template: repeat(8,1fr) / repeat(8,1fr); overflow: hidden; }
.site-intro-square { min-width: 0; min-height: 0; }
.site-intro-square.is-light { background: #E7DFCF; }
.site-intro-square.is-dark { background: #315541; }
.site-intro-square.is-last-move { background: #C4A35A; }
.site-intro-pieces { position: absolute; inset: 5px; pointer-events: none; }
.site-intro-piece { position: absolute; display: grid; width: 12.5%; height: 12.5%; place-items: center; color: #F4EFE4; font: 400 clamp(1.35rem,4.8vw,2.8rem)/1 Georgia,"Times New Roman",serif; text-shadow: 0 1px 2px rgba(0,0,0,.55); transform: translate(-50%,-50%); transition: left .52s cubic-bezier(.2,.7,.25,1), top .52s cubic-bezier(.2,.7,.25,1); }
.site-intro-piece.is-black { color: #14241D; text-shadow: 0 1px 1px rgba(244,239,228,.78); }
.site-intro-scene-footer { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px 0; color: var(--muted); font-size: .72rem; }
.site-intro-scene-footer span:last-child { color: var(--forest); font-variant-numeric: tabular-nums; font-weight: 800; }
.site-intro-actions { display: grid; grid-template-columns: minmax(180px,.65fr) minmax(0,1.35fr); align-items: center; gap: clamp(16px,3vw,36px); padding-top: 17px; border-top: 1px solid var(--line); }
.site-intro-action-copy h2 { margin: 0 0 4px; color: var(--forest); font-size: .96rem; font-weight: 800; }
.site-intro-action-copy p { margin: 0; color: var(--muted); font-size: .76rem; }
.entry-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0; }
.entry-option {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--forest);
  background: var(--paper);
  text-align: left;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.entry-option span { display: grid; gap: 3px; }
.entry-option strong { color: inherit; font-size: .88rem; font-weight: 850; line-height: 1.25; }
.entry-option small { color: var(--muted); font-size: .7rem; line-height: 1.3; }
.entry-option:hover { border-color: var(--forest); background: var(--sage); }
.entry-option-primary { border-color: var(--forest); color: var(--cream); background: var(--forest); }
.entry-option-primary small { color: #D9DFD9; }
.entry-option-primary:hover { color: #fff; background: var(--forest-2); }
.entry-option:focus-visible, .lesson-step-button:focus-visible, .lesson-back:focus-visible, .lesson-enter:focus-visible { outline: 3px solid var(--gold-dark); outline-offset: 3px; }
.site-intro-screen.is-pane-leaving { opacity: 0; transition: opacity .18s ease; }
body.site-intro-active { overflow: hidden; }

/* O estudo usa posições reais da mesma partida, sem recomeçar do meio como se fosse abertura. */
.site-study-screen { grid-template-rows: auto minmax(0,1fr); }
.lesson-topline { display: grid; min-height: 48px; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.lesson-back, .lesson-enter { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 3px; color: var(--forest); background: var(--paper); font-size: .8rem; font-weight: 800; }
.lesson-back { justify-self: start; }
.lesson-enter { justify-self: end; border-color: var(--forest); color: var(--cream); background: var(--forest); }
.lesson-progress-label { color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-align: center; }
.lesson-content { display: grid; min-height: 0; grid-template-columns: minmax(280px,.9fr) minmax(0,1.1fr); align-items: center; gap: clamp(20px,5vw,64px); overflow: auto; padding: 22px clamp(0px,3vw,34px); }
.lesson-board-column { width: min(100%,500px); justify-self: center; }
.lesson-match-label { display: block; margin-bottom: 8px; color: var(--gold-dark); font-size: .66rem; font-weight: 850; letter-spacing: .1em; text-align: center; }
.lesson-board-frame { padding: 5px; border: 1px solid var(--line); background: var(--paper); }
.lesson-board { display: grid; width: 100%; aspect-ratio: 1; grid-template: repeat(8,1fr) / repeat(8,1fr); }
.lesson-square { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; }
.lesson-square.is-light { background: #E7DFCF; }
.lesson-square.is-dark { background: #315541; }
.lesson-square.is-last-move { background: #C4A35A; }
.lesson-piece { color: #F4EFE4; font: 400 clamp(1.35rem,4vw,2.7rem)/1 Georgia,"Times New Roman",serif; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lesson-piece.is-black { color: #14241D; text-shadow: 0 1px 1px rgba(244,239,228,.75); }
.lesson-rank, .lesson-file { position: absolute; color: rgba(20,36,29,.66); font: 700 .55rem/1 var(--sans); }
.lesson-rank { top: 3px; left: 3px; }
.lesson-file { right: 3px; bottom: 3px; }
.lesson-board-caption { margin: 7px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }
.lesson-copy { max-width: 560px; }
.lesson-move-label { display: block; color: var(--gold-dark); font: 800 .72rem/1.35 ui-monospace,SFMono-Regular,Consolas,monospace; letter-spacing: .03em; }
.lesson-copy h1 { margin: 10px 0 9px; color: var(--forest); font: 600 clamp(1.9rem,3.4vw,3rem)/1.04 var(--serif); letter-spacing: -.025em; }
.lesson-copy > p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.lesson-tip { margin-top: 14px; padding: 10px 12px; border-left: 3px solid var(--gold); color: var(--forest); background: var(--sage); font-size: .78rem; line-height: 1.5; }
.lesson-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lesson-step-button { min-height: 46px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 3px; color: var(--forest); background: var(--paper); font-size: .8rem; font-weight: 800; }
.lesson-step-button:disabled { opacity: .48; }
.lesson-next { border-color: var(--forest); color: var(--cream); background: var(--forest); }
.lesson-source-note { margin-top: 14px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.lesson-source-note a { color: var(--forest); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 860px) {
  .site-intro-screen { width: min(720px,100%); min-height: calc(100dvh - 20px); grid-template-rows: auto minmax(0,1fr) auto; padding: 10px 16px 14px; }
  .site-intro-topline { min-height: 42px; }
  .site-intro-content { grid-template-columns: minmax(0,1fr); grid-template-rows: max-content max-content; align-content: center; justify-items: center; gap: 9px; padding: 8px 0 10px; text-align: center; }
  .site-intro-copy { width: 100%; max-width: 600px; }
  .site-intro-kicker { font-size: .62rem; }
  .site-intro-copy h1 { max-width: 22ch; margin: 5px auto 4px; font-size: clamp(1.85rem,5.5vw,2.7rem); }
  .site-intro-players { font-size: .78rem; }
  .site-intro-move { min-height: 36px; margin-top: 10px; padding: 6px 9px; font-size: .8rem; }
  .site-intro-narration { min-height: 2.8em; max-width: 54ch; margin: 5px auto 0; font-size: .75rem; line-height: 1.4; }
  .site-intro-scene { width: min(100%,76vw,42svh,400px); }
  .site-intro-board-shell { width: 100%; }
  .site-intro-piece { font-size: clamp(1.25rem,6vw,2.3rem); }
  .site-intro-scene-footer { padding-top: 5px; font-size: .68rem; }
  .site-intro-actions { grid-template-columns: minmax(0,1fr); gap: 8px; padding-top: 10px; }
  .site-intro-action-copy { text-align: center; }
  .site-intro-action-copy h2 { margin: 0; font-size: .85rem; }
  .site-intro-action-copy p { font-size: .7rem; }
  .entry-option { min-height: 58px; padding: 8px 12px; }
  .lesson-content { grid-template-columns: minmax(0,1fr); grid-template-rows: max-content max-content; align-content: start; justify-items: center; gap: 15px; padding: 14px 0 20px; }
  .lesson-board-column { width: min(100%,68vw,38svh,360px); }
  .lesson-copy { width: 100%; max-width: 600px; }
  .lesson-copy h1 { font-size: clamp(1.75rem,6vw,2.5rem); }
}
@media (max-width: 600px) {
  .site-intro-screen { padding: 8px 12px 10px; }
  .site-intro-brand-lockup img { width: 36px; height: 36px; }
  .site-intro-brand-lockup strong { font-size: .92rem; }
  .site-intro-brand-lockup small { font-size: .56rem; }
  .site-intro-content { gap: 7px; padding-block: 5px 7px; }
  .site-intro-copy h1 { max-width: 21ch; font-size: clamp(1.62rem,7vw,2.25rem); }
  .site-intro-players { font-size: .74rem; }
  .site-intro-move { min-height: 34px; margin-top: 7px; font-size: .77rem; }
  .site-intro-narration { min-height: 2.55em; font-size: .71rem; }
  .site-intro-scene { width: min(100%,76vw,40svh,340px); }
  .site-intro-piece { font-size: clamp(1.16rem,7vw,2rem); }
  .site-intro-action-copy { display: none; }
  .site-intro-actions { gap: 0; padding-top: 8px; }
  .entry-options { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .entry-option { min-height: 49px; justify-content: center; padding: 7px 10px; text-align: center; }
  .entry-option span { gap: 1px; }
  .entry-option strong { font-size: .83rem; }
  .entry-option small { font-size: .65rem; }
  .lesson-topline { min-height: 44px; grid-template-columns: auto minmax(0,1fr) auto; gap: 5px; }
  .lesson-back, .lesson-enter { min-height: 42px; padding: 7px 9px; font-size: .7rem; }
  .lesson-progress-label { font-size: .58rem; letter-spacing: .035em; }
  .lesson-board-column { width: min(100%,70vw,36svh,320px); }
  .lesson-copy h1 { margin-block: 7px; font-size: clamp(1.6rem,7vw,2.2rem); }
  .lesson-copy > p { font-size: .82rem; }
  .lesson-tip { margin-top: 9px; padding: 8px 10px; font-size: .73rem; }
  .lesson-controls { margin-top: 11px; }
}
@media (max-height: 700px) and (max-width: 860px) {
  .site-intro-content { gap: 5px; padding-block: 4px 5px; }
  .site-intro-kicker { font-size: .54rem; }
  .site-intro-copy h1 { margin-block: 3px; font-size: clamp(1.32rem,5vw,1.8rem); }
  .site-intro-players { font-size: .66rem; }
  .site-intro-move { min-height: 30px; margin-top: 4px; padding: 4px 8px; font-size: .71rem; }
  .site-intro-narration { min-height: 2.3em; margin-top: 3px; font-size: .65rem; }
  .site-intro-scene { width: min(100%,70vw,32svh,280px); }
  .site-intro-scene-footer { padding-top: 3px; font-size: .61rem; }
  .site-intro-actions { padding-top: 6px; }
  .site-intro-action-copy h2 { font-size: .75rem; }
  .site-intro-action-copy p { font-size: .62rem; }
  .entry-option { min-height: 46px; padding-block: 5px; }
  .entry-option strong { font-size: .78rem; }
  .entry-option small { font-size: .61rem; }
  .lesson-content { gap: 9px; padding-block: 8px 12px; }
  .lesson-board-column { width: min(100%,64vw,31svh,270px); }
  .lesson-copy h1 { margin-block: 5px; font-size: clamp(1.35rem,5vw,1.85rem); }
  .lesson-copy > p { font-size: .75rem; }
  .lesson-tip { margin-top: 7px; padding-block: 7px; }
  .lesson-source-note { margin-top: 9px; }
}
@media (orientation: landscape) and (max-width: 860px) and (max-height: 560px) {
  .site-intro-screen { padding: 6px 14px 8px; }
  .site-intro-topline { min-height: 34px; }
  .site-intro-brand-lockup img { width: 32px; height: 32px; }
  .site-intro-content { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); grid-template-rows: none; align-content: center; justify-items: stretch; gap: 12px; padding: 2px 8px; text-align: left; }
  .site-intro-copy { max-width: none; }
  .site-intro-kicker { font-size: .55rem; }
  .site-intro-copy h1 { max-width: 18ch; margin: 4px 0; font-size: clamp(1.3rem,5vh,1.9rem); }
  .site-intro-players { font-size: .7rem; }
  .site-intro-move { min-height: 30px; margin-top: 5px; padding: 4px 8px; font-size: .72rem; }
  .site-intro-narration { min-height: 2.3em; margin-top: 4px; font-size: .66rem; line-height: 1.35; }
  .site-intro-scene { width: min(100%,40svh,260px); }
  .site-intro-piece { font-size: clamp(1rem,6vh,1.8rem); }
  .site-intro-scene-footer { padding-top: 3px; font-size: .58rem; }
  .site-intro-actions { grid-template-columns: minmax(0,.55fr) minmax(0,1.45fr); gap: 12px; padding-top: 6px; }
  .site-intro-action-copy { text-align: left; }
  .site-intro-action-copy h2 { font-size: .76rem; }
  .site-intro-action-copy p { font-size: .62rem; }
  .entry-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .entry-option { min-height: 44px; padding: 6px 9px; }
  .entry-option strong { font-size: .76rem; }
  .entry-option small { font-size: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-intro, .site-intro-screen, .entry-option, .site-intro-piece { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* Durante o jogo, o portal recolhe a navegação para deixar o tabuleiro livre. */
html:not(.game-focus) { scroll-padding-top: 300px; }
html.game-focus { scroll-padding-top: 72px; }
html.game-focus #boardPanel { scroll-margin-top: 0; }
.home-topbar.game-focus .topbar-inner { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0; padding-block: 6px; }
.home-topbar.game-focus .topbar-main { display: flex; width: 100%; min-height: 54px; align-items: center; gap: 10px; }
.home-topbar.game-focus .nav-guide,
.home-topbar.game-focus .nav { display: none; }
.home-topbar.game-focus .mobile-menu { display: inline-flex; min-width: 88px; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding-inline: 10px; }
.home-topbar.game-focus .nav.open { position: static; display: flex; width: 100%; max-height: min(64dvh,560px); overflow-y: auto; padding: 10px 0 4px; }
.home-topbar.game-focus.is-menu-open .nav-guide { display: flex; }
@media (min-width: 821px) and (max-width: 1100px) {
  html:not(.game-focus) { scroll-padding-top: 360px; }
}
@media (max-width: 820px) {
  html:not(.game-focus) { scroll-padding-top: 80px; }
  .home-topbar.game-focus .topbar-inner { display: flex; padding-block: 6px; }
  .home-topbar.game-focus .topbar-main { display: grid; grid-template-columns: minmax(0,1fr) auto auto; min-height: 50px; gap: 6px; }
  .home-topbar.game-focus .header-actions { margin: 0; }
  .home-topbar.game-focus .nav.open { max-height: calc(100dvh - 78px); }
}

/* Introdução v27: contraste verde, hierarquia curta e áreas que nunca se sobrepõem. */
.site-intro {
  --intro-deep: #10281F;
  --intro-forest: #173D2E;
  --intro-felt: #214B38;
  --intro-cream: #F5F0E6;
  --intro-copy: #E9EDE4;
  --intro-muted: #C2CEC3;
  --intro-gold: #D6B665;
  --intro-line: rgba(245,240,230,.25);
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  color: var(--intro-cream);
  background:
    radial-gradient(ellipse at 76% 42%, rgba(112,145,92,.22), transparent 34%),
    radial-gradient(ellipse at 12% 100%, rgba(196,163,90,.10), transparent 38%),
    linear-gradient(132deg,var(--intro-deep) 0%,var(--intro-forest) 57%,#1A4433 100%);
}
.site-intro-screen {
  width: min(1480px,100%);
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  max-height: none;
  grid-template-rows: auto minmax(min-content,1fr) auto;
  margin-inline: auto;
  padding: clamp(14px,2vw,30px) clamp(16px,3.2vw,52px);
  overflow: visible;
  color: var(--intro-cream);
  background: transparent;
}
.site-intro-screen.site-study-screen {
  width: min(1240px,100%);
  min-height: calc(100vh - 32px);
  min-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(0,1fr);
  color: var(--ink);
  background: var(--cream);
}
.site-intro-topline { min-height: 50px; }
.site-intro-brand-lockup img { width: 44px; height: 44px; }
.site-intro-brand-lockup strong { color: var(--intro-cream); font-size: 1.05rem; }
.site-intro-brand-lockup small { color: var(--intro-gold); }
.site-intro-content {
  min-height: min-content;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: clamp(20px,4vw,64px);
  padding: clamp(12px,2vh,26px) clamp(0px,2.4vw,34px);
}
.site-intro-copy { width: 100%; max-width: 560px; }
.site-intro-kicker { color: var(--intro-gold); font-size: .72rem; letter-spacing: .14em; }
.site-intro-copy h1 {
  max-width: 12ch;
  margin: 10px 0 9px;
  color: var(--intro-cream);
  font-size: clamp(3rem,5.1vw,5.3rem);
  line-height: .98;
}
.site-intro-players { color: var(--intro-copy); font-size: .94rem; }
.site-intro-players span { color: var(--intro-gold); }
.site-intro-move {
  min-height: 44px;
  margin-top: 18px;
  border-left-color: var(--intro-gold);
  color: var(--intro-cream);
  background: rgba(245,240,230,.10);
}
.site-intro-narration {
  min-height: 0;
  max-width: 38ch;
  margin-top: 10px;
  color: var(--intro-muted);
  font-size: .92rem;
  line-height: 1.55;
}
.site-intro-scene { max-width: 600px; }
.site-intro-board-shell {
  width: min(100%,44vw,520px);
  width: min(100%,44vw,49svh,520px);
  padding: 7px;
  border-color: rgba(214,182,101,.72);
  background: rgba(245,240,230,.08);
  box-shadow: 0 24px 64px rgba(0,0,0,.26), inset 0 0 0 1px rgba(245,240,230,.10);
}
.site-intro-pieces { inset: 7px; }
.site-intro-piece { font-size: clamp(1.4rem,4.3vw,3rem); }
.site-intro-piece.is-black { color: #10281F; }
.site-intro-scene-footer { padding-top: 10px; color: var(--intro-muted); font-size: .76rem; }
.site-intro-scene-footer span:last-child { color: var(--intro-gold); }
.site-intro-actions {
  grid-template-columns: minmax(190px,.72fr) minmax(0,1.6fr);
  gap: clamp(16px,2.5vw,34px);
  padding-top: 16px;
  border-top-color: var(--intro-line);
}
.site-intro-action-copy h2 { color: var(--intro-cream); font-size: .98rem; }
.site-intro-action-copy p { color: var(--intro-muted); font-size: .78rem; }
.entry-options { gap: 12px; }
.entry-option {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 20px;
  min-height: 76px;
  gap: 12px;
  padding: 11px 14px;
  border-color: rgba(245,240,230,.48);
  color: var(--intro-deep);
  background: var(--intro-cream);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.entry-option span { gap: 3px; }
.entry-option-icon {
  display: grid !important;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(16,40,31,.2);
  color: var(--intro-forest);
  background: rgba(16,40,31,.06);
  font: 700 1.3rem/1 Georgia,"Times New Roman",serif;
}
.entry-option-arrow {
  display: grid !important;
  place-items: center;
  color: var(--intro-forest);
  font-size: 1.2rem;
  font-weight: 800;
}
.entry-option strong { color: inherit; font-size: .9rem; }
.entry-option small { color: #56645B; font-size: .73rem; }
.entry-option:hover { border-color: var(--intro-gold); background: #FFF8E8; }
.entry-option-primary {
  border-color: var(--intro-gold);
  color: var(--intro-deep);
  background: var(--intro-gold);
}
.entry-option-primary .entry-option-icon { border-color: rgba(16,40,31,.25); background: rgba(16,40,31,.08); }
.entry-option-primary small { color: #354637; }
.entry-option-primary:hover { border-color: #E8CE83; color: var(--intro-deep); background: #E8CE83; }
.entry-option:focus-visible { outline: 3px solid var(--intro-cream) !important; outline-offset: 4px !important; }

@media (min-width: 1920px) {
  .site-intro-screen { width: min(2220px,100%); padding-inline: clamp(56px,4vw,136px); }
  .site-intro-copy h1 { max-width: 13ch; font-size: clamp(5rem,4.4vw,7.5rem); }
  .site-intro-board-shell { width: min(100%,45vw,54svh,760px); }
  .site-intro-piece { font-size: clamp(3rem,3vw,4.5rem); }
  .site-intro-actions { grid-template-columns: minmax(240px,.72fr) minmax(0,1.6fr); }
  .entry-option { min-height: 94px; grid-template-columns: 48px minmax(0,1fr) 24px; gap: 16px; padding: 15px 20px; }
  .entry-option-icon { width: 46px; height: 46px; }
  .entry-option strong { font-size: 1.05rem; }
  .entry-option small { font-size: .82rem; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .site-intro-screen { padding-block: 10px; }
  .site-intro-topline { min-height: 42px; }
  .site-intro-brand-lockup img { width: 38px; height: 38px; }
  .site-intro-content { gap: clamp(18px,3vw,40px); padding-block: 8px; }
  .site-intro-copy h1 { margin-block: 7px; font-size: clamp(2.55rem,4.5vw,4.2rem); }
  .site-intro-move { min-height: 38px; margin-top: 12px; }
  .site-intro-narration { margin-top: 7px; font-size: .84rem; }
  .site-intro-board-shell { width: min(100%,42vw,44svh,470px); }
  .site-intro-scene-footer { padding-top: 7px; }
  .site-intro-actions { padding-top: 12px; }
  .entry-option { min-height: 66px; }
}
@media (max-width: 860px) {
  .site-intro { padding-inline: max(12px,env(safe-area-inset-left)) max(12px,env(safe-area-inset-right)); }
  .site-intro-screen {
    width: min(760px,100%);
    min-height: calc(100vh - 24px);
    min-height: calc(100dvh - 24px);
    grid-template-rows: auto auto auto;
    padding: 10px clamp(14px,3vw,24px) 14px;
  }
  .site-intro-topline { min-height: 44px; }
  .site-intro-brand-lockup img { width: 38px; height: 38px; }
  .site-intro-content {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 8px 0 12px;
    text-align: center;
  }
  .site-intro-copy { max-width: 620px; }
  .site-intro-kicker { font-size: .65rem; }
  .site-intro-copy h1 { max-width: 13ch; margin: 5px auto 4px; font-size: clamp(2.3rem,6vw,3.8rem); }
  .site-intro-players { font-size: .84rem; }
  .site-intro-move { min-height: 38px; margin-top: 10px; font-size: .82rem; }
  .site-intro-narration { max-width: 52ch; margin: 6px auto 0; font-size: .8rem; line-height: 1.42; }
  .site-intro-scene { width: 100%; }
  .site-intro-board-shell { width: min(100%,68vw,38svh,420px); }
  .site-intro-piece { font-size: clamp(1.35rem,6vw,2.5rem); }
  .site-intro-scene-footer { max-width: min(100%,420px); margin-inline: auto; padding-top: 7px; font-size: .7rem; }
  .site-intro-actions { grid-template-columns: minmax(0,1fr); gap: 10px; padding-top: 12px; }
  .site-intro-action-copy { text-align: center; }
  .site-intro-action-copy h2 { margin-bottom: 2px; font-size: .9rem; }
  .site-intro-action-copy p { font-size: .72rem; }
  .entry-options { width: 100%; max-width: 650px; gap: 10px; margin-inline: auto; }
  .entry-option { min-height: 66px; padding-inline: 12px; }
}
@media (max-width: 600px) {
  .site-intro { padding-top: max(10px,env(safe-area-inset-top)); padding-bottom: max(10px,env(safe-area-inset-bottom)); }
  .site-intro-screen { min-height: calc(100vh - 20px); min-height: calc(100dvh - 20px); padding: 7px 5px 10px; }
  .site-intro-topline { min-height: 40px; }
  .site-intro-brand-lockup { gap: 8px; }
  .site-intro-brand-lockup img { width: 34px; height: 34px; }
  .site-intro-brand-lockup strong { font-size: .95rem; }
  .site-intro-brand-lockup small { font-size: .56rem; }
  .site-intro-content { gap: 7px; padding: 5px 0 8px; }
  .site-intro-kicker { font-size: .58rem; letter-spacing: .1em; }
  .site-intro-copy h1 { max-width: 15ch; margin-block: 4px 3px; font-size: clamp(2rem,8vw,2.75rem); line-height: 1; }
  .site-intro-players { font-size: .77rem; }
  .site-intro-move { min-height: 34px; margin-top: 7px; padding: 5px 9px; font-size: .76rem; }
  .site-intro-narration { max-width: 38ch; margin-top: 5px; font-size: .72rem; line-height: 1.35; }
  .site-intro-board-shell { width: min(100%,68vw,34svh,320px); padding: 5px; }
  .site-intro-pieces { inset: 5px; }
  .site-intro-piece { font-size: clamp(1.18rem,7vw,2.15rem); }
  .site-intro-scene-footer { padding-top: 6px; font-size: .66rem; }
  .site-intro-actions { gap: 7px; padding-top: 9px; }
  .site-intro-action-copy h2 { margin: 0; font-size: .83rem; }
  .site-intro-action-copy p { display: none; }
  .entry-options { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .entry-option { min-height: 54px; grid-template-columns: 34px minmax(0,1fr) 18px; gap: 10px; padding: 7px 10px; }
  .entry-option-icon { width: 32px; height: 32px; font-size: 1.1rem; }
  .entry-option strong { font-size: .82rem; }
  .entry-option small { font-size: .66rem; }
}
@media (max-width: 360px) {
  .site-intro-brand-lockup strong { font-size: .86rem; }
  .site-intro-kicker { font-size: .54rem; }
  .site-intro-copy h1 { font-size: clamp(1.8rem,8vw,2.3rem); }
  .site-intro-board-shell { width: min(100%,66vw,32svh,280px); }
}
@media (orientation: landscape) and (max-width: 860px) and (max-height: 560px) {
  .site-intro-screen { min-height: calc(100vh - 20px); min-height: calc(100dvh - 20px); padding: 5px clamp(12px,3vw,24px) 8px; }
  .site-intro-topline { min-height: 34px; }
  .site-intro-brand-lockup img { width: 30px; height: 30px; }
  .site-intro-content {
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    grid-template-rows: none;
    align-content: center;
    gap: 12px;
    padding: 3px 6px;
    text-align: left;
  }
  .site-intro-copy { max-width: none; }
  .site-intro-kicker { font-size: .54rem; }
  .site-intro-copy h1 { max-width: 12ch; margin: 3px 0; font-size: clamp(1.45rem,5.2vh,2.1rem); }
  .site-intro-players { font-size: .68rem; }
  .site-intro-move { min-height: 30px; margin-top: 5px; padding: 4px 8px; font-size: .7rem; }
  .site-intro-narration { max-width: 38ch; margin: 4px 0 0; font-size: .64rem; line-height: 1.3; }
  .site-intro-board-shell { width: min(100%,38vw,42svh,230px); }
  .site-intro-piece { font-size: clamp(1rem,5.8vh,1.8rem); }
  .site-intro-scene-footer { padding-top: 4px; font-size: .58rem; }
  .site-intro-actions { grid-template-columns: minmax(0,1fr); gap: 0; padding-top: 7px; }
  .site-intro-action-copy { display: none; }
  .entry-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .entry-option { min-height: 42px; grid-template-columns: 30px minmax(0,1fr) 16px; gap: 8px; padding: 5px 8px; }
  .entry-option-icon { width: 28px; height: 28px; font-size: 1rem; }
  .entry-option strong { font-size: .72rem; }
  .entry-option small { font-size: .58rem; }
}
@media (prefers-reduced-motion: reduce) {
  .site-intro::before, .site-intro-screen, .entry-option { transition: none !important; }
}

/* Keep every animated piece visually inside its own square on every display. */
.site-intro-piece {
  font-size: clamp(14px,2.4vw,32px);
  line-height: .9;
}
@media (max-width: 860px) {
  .site-intro-piece { font-size: clamp(14px,5vw,30px); }
}
@media (orientation: landscape) and (max-width: 860px) and (max-height: 560px) {
  .site-intro-piece { font-size: clamp(12px,4vh,22px); }
}
@supports (font-size: 1cqw) {
  .site-intro-board-shell { container-type: inline-size; }
  .site-intro-piece { font-size: clamp(12px,10.2cqw,60px); }
}

/* Put the portal's purpose and its two first steps in the opening view. */
.site-intro-screen#siteIntroAnimation { grid-template-rows: auto minmax(min-content,1fr); }
.site-intro-copy h1 {
  max-width: 15ch;
  font-size: clamp(2.7rem,5vw,5.1rem);
  line-height: 1;
}
.site-intro-purpose {
  max-width: 40ch;
  margin: 10px 0 0;
  color: var(--intro-copy);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.48;
}
.site-intro-actions {
  grid-template-columns: minmax(0,1fr);
  align-items: start;
  gap: 8px;
  margin-top: 22px;
  padding-top: 0;
  border: 0;
}
.site-intro-action-copy h2 { margin: 0 0 3px; color: var(--intro-cream); font-size: .94rem; }
.site-intro-action-copy p { margin: 0; color: var(--intro-muted); font-size: .76rem; line-height: 1.35; }
.site-intro-actions .entry-options {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin: 0;
}
.site-intro-actions .entry-option {
  min-width: 0;
  min-height: 74px;
  grid-template-columns: 32px minmax(0,1fr) 16px;
  gap: 8px;
  padding: 9px 10px;
}
.site-intro-actions .entry-option span { min-width: 0; }
.site-intro-actions .entry-option-icon { width: 30px; height: 30px; font-size: 1.08rem; }
.site-intro-actions .entry-option-arrow { font-size: 1rem; }
.site-intro-actions .entry-option strong { font-size: .82rem; }
.site-intro-actions .entry-option small { font-size: .65rem; line-height: 1.25; }
.site-intro-live-copy {
  display: grid;
  grid-template-columns: max-content minmax(0,1fr);
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.site-intro-live-copy .site-intro-move { min-height: 34px; margin: 0; padding: 5px 9px; font-size: .8rem; }
.site-intro-live-copy .site-intro-narration { min-height: 0; margin: 0; font-size: .76rem; line-height: 1.4; }

@media (max-width: 860px) {
  .site-intro-screen#siteIntroAnimation { grid-template-rows: auto auto; align-content: start; }
  .site-intro-content {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: max-content max-content;
    align-content: start;
    gap: 13px;
    padding: 8px 0 10px;
    text-align: center;
  }
  .site-intro-copy { width: 100%; max-width: 620px; }
  .site-intro-copy h1 { max-width: 16ch; margin: 5px auto 4px; font-size: clamp(2rem,6.2vw,3.25rem); }
  .site-intro-purpose { max-width: 52ch; margin: 6px auto 0; font-size: .88rem; line-height: 1.42; }
  .site-intro-actions { gap: 8px; margin-top: 14px; }
  .site-intro-action-copy h2 { margin: 0; font-size: .88rem; }
  .site-intro-action-copy p { margin-top: 2px; font-size: .72rem; }
  .site-intro-actions .entry-options { gap: 8px; }
  .site-intro-actions .entry-option { min-height: 64px; grid-template-columns: 28px minmax(0,1fr) 14px; gap: 7px; padding: 8px; }
  .site-intro-actions .entry-option-icon { width: 27px; height: 27px; font-size: 1rem; }
  .site-intro-actions .entry-option strong { font-size: .78rem; }
  .site-intro-actions .entry-option small { font-size: .62rem; }
  .site-intro-scene { width: 100%; max-width: 600px; }
  .site-intro-board-shell { width: min(100%,68vw,38svh,420px); }
  .site-intro-live-copy { grid-template-columns: 1fr; justify-items: center; gap: 5px; margin-top: 8px; }
  .site-intro-live-copy .site-intro-narration { max-width: 52ch; text-align: center; }
}
@media (max-width: 600px) {
  .site-intro-screen#siteIntroAnimation { padding: 7px 12px 10px; }
  .site-intro-topline { min-height: 40px; }
  .site-intro-brand-lockup img { width: 34px; height: 34px; }
  .site-intro-content { gap: 9px; padding-block: 5px 8px; }
  .site-intro-kicker { font-size: .58rem; letter-spacing: .1em; }
  .site-intro-copy h1 { max-width: 16ch; margin-block: 4px 3px; font-size: clamp(1.8rem,7.2vw,2.35rem); }
  .site-intro-purpose { max-width: 40ch; margin-top: 5px; font-size: .78rem; line-height: 1.38; }
  .site-intro-actions { gap: 7px; margin-top: 11px; }
  .site-intro-actions .entry-options { gap: 7px; }
  .site-intro-actions .entry-option { min-height: 60px; grid-template-columns: 24px minmax(0,1fr); gap: 6px; padding: 7px 8px; }
  .site-intro-actions .entry-option-icon { width: 24px; height: 24px; font-size: .9rem; }
  .site-intro-actions .entry-option-arrow { display: none !important; }
  .site-intro-actions .entry-option strong { font-size: .75rem; }
  .site-intro-actions .entry-option small { font-size: .59rem; }
  .site-intro-board-shell { width: min(100%,68vw,34svh,320px); padding: 5px; }
  .site-intro-pieces { inset: 5px; }
  .site-intro-live-copy .site-intro-move { min-height: 31px; padding: 4px 8px; font-size: .74rem; }
  .site-intro-live-copy .site-intro-narration { max-width: 38ch; font-size: .7rem; line-height: 1.35; }
  .site-intro-scene-footer { padding-top: 6px; font-size: .66rem; }
}
@media (max-width: 360px) {
  .site-intro-screen#siteIntroAnimation { padding-inline: 10px; }
  .site-intro-copy h1 { font-size: clamp(1.7rem,7.5vw,2rem); }
  .site-intro-purpose { font-size: .73rem; }
  .site-intro-actions .entry-option {
    min-height: 58px;
    grid-template-columns: minmax(0,1fr);
    justify-items: center;
    gap: 1px;
    padding: 6px 4px;
    text-align: center;
  }
  .site-intro-actions .entry-option-icon { display: none !important; }
  .site-intro-actions .entry-option span:nth-child(2) { text-align: center; }
  .site-intro-actions .entry-option strong { font-size: .72rem; }
  .site-intro-actions .entry-option small { font-size: .56rem; }
}
@media (orientation: landscape) and (max-width: 860px) and (max-height: 560px) {
  .site-intro-screen#siteIntroAnimation { grid-template-rows: auto minmax(0,1fr); padding: 5px 16px 8px; }
  .site-intro-content {
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    grid-template-rows: none;
    align-content: center;
    justify-items: stretch;
    gap: 12px;
    padding: 3px 6px;
    text-align: left;
  }
  .site-intro-copy h1 { max-width: 14ch; margin: 3px 0; font-size: clamp(1.5rem,4.6vh,2.1rem); }
  .site-intro-purpose { max-width: 42ch; margin-top: 4px; font-size: .68rem; }
  .site-intro-actions { gap: 5px; margin-top: 8px; }
  .site-intro-action-copy h2 { font-size: .76rem; }
  .site-intro-action-copy p { font-size: .62rem; }
  .site-intro-actions .entry-options { gap: 6px; }
  .site-intro-actions .entry-option { min-height: 48px; grid-template-columns: 22px minmax(0,1fr); gap: 5px; padding: 5px; }
  .site-intro-actions .entry-option-icon { width: 21px; height: 21px; font-size: .8rem; }
  .site-intro-actions .entry-option-arrow { display: none !important; }
  .site-intro-actions .entry-option strong { font-size: .68rem; }
  .site-intro-actions .entry-option small { font-size: .54rem; }
  .site-intro-scene { width: 100%; }
  .site-intro-board-shell { width: min(100%,38vw,42svh,230px); }
  .site-intro-live-copy { grid-template-columns: max-content minmax(0,1fr); justify-items: stretch; gap: 7px; margin-top: 4px; }
  .site-intro-live-copy .site-intro-move { min-height: 26px; font-size: .65rem; }
  .site-intro-live-copy .site-intro-narration { font-size: .58rem; text-align: left; }
  .site-intro-scene-footer { padding-top: 3px; font-size: .56rem; }
}
