@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/cormorant-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #100e0d;
  --panel: #191511;
  --gold: #d6ae6c;
  --ivory: #f6eee1;
  --muted: #c3b7a7;
  --line: #3c2f23;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--ivory); font: 400 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
::selection { color: var(--ink); background: var(--gold); }
.shell { width: min(1200px, 100% - clamp(36px, 10vw, 144px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 5; padding: .65rem 1rem; color: var(--ink); background: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.header { position: relative; z-index: 1; background: #110f0e; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; justify-self: start; white-space: nowrap; }
.wordmark span { font: 700 1.41rem/1 var(--display); text-transform: uppercase; letter-spacing: .085em; }
.wordmark b { color: var(--gold); font-weight: inherit; }
.header nav { display: flex; gap: clamp(16px, 2.5vw, 36px); }
.header nav a { position: relative; color: var(--muted); font-size: .84rem; padding-block: 10px; white-space: nowrap; }
.header nav a:hover, .header nav [aria-current] { color: var(--ivory); }
.header nav [aria-current]::after { content: ""; position: absolute; inset: auto 0 2px; height: 1px; background: var(--gold); }
.header nav .mobile-training-link { display: none; }
.header-action { justify-self: end; padding: 8px 15px; border: 1px solid #765a38; color: var(--gold); font-size: .81rem; font-weight: 700; white-space: nowrap; }
.header-action span { margin-left: 7px; }
.header-action:hover { border-color: var(--gold); background: #2b2118; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #100d0b; border-bottom: 1px solid #513b27; }
.hero-photo, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-photo { left: auto; width: min(82%, 1360px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 63% 14%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #100d0bf7 0%, #100d0be8 18%, #100d0ba0 39%, transparent 66%),
    linear-gradient(0deg, #100d0bcc, transparent 23%);
}
.hero-inner { min-height: clamp(560px, 45vw, 705px); display: flex; align-items: center; }
.hero-copy { width: min(570px, 58%); padding-block: 70px 82px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.diamond { width: 6px; height: 6px; flex: 0 0 6px; transform: rotate(45deg); background: var(--gold); }
.hero h1 { margin: 19px 0 23px; font: 700 clamp(6.1rem, 10vw, 10.3rem)/.78 var(--display); letter-spacing: -.055em; }
.hero h1 em { display: block; }
h1 em, h2 em { color: var(--gold); font-weight: 600; }
.hero-description { max-width: 365px; color: #e4d9c9; font-size: clamp(.98rem, 1.3vw, 1.12rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 24px; margin-top: 28px; }
.button, .text-action { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 12px; font-size: .88rem; font-weight: 700; }
.button { padding: 10px 17px; background: #dfba7e; border: 1px solid #edca93; color: #17110b; }
.button:hover { background: #f2ce93; }
.text-action { color: var(--ivory); }
.text-action span { color: var(--gold); }
.text-action:hover { color: var(--gold); }

.promotion { padding: clamp(35px, 6.5vw, 92px) 0; background: #14100e; }
.promotion-banner { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 320px; overflow: hidden; border: 1px solid #8a663b; background: #17110c; }
.promotion-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #17110c 9%, #17110c 32%, #17110cb0 52%, transparent 80%); }
.promotion-banner > img { position: absolute; inset: 0 0 0 auto; z-index: -2; width: 75%; height: 100%; object-fit: cover; object-position: center 57%; }
.promotion-copy { padding: clamp(27px, 6vw, 82px); }
.promotion-copy h2 { margin: 10px 0 23px; color: var(--ivory); font-size: clamp(4rem, 8.2vw, 8rem); }

.training { padding: clamp(58px, 7.4vw, 105px) 0; border-block: 1px solid var(--line); background: #191410; }
.training-inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(30px, 6vw, 88px); align-items: center; max-width: 1120px; }
.training-copy h2 { margin: 13px 0 20px; }
.training-copy > p:not(.eyebrow) { color: var(--muted); max-width: 430px; }
.training-copy .text-action { margin-top: 11px; color: var(--gold); }
.training-copy .text-action:hover { color: var(--ivory); }
.training-chart { min-width: 0; padding: clamp(16px, 3vw, 35px); border: 1px solid #765936; background: #14110e; }
.training-chart h3 { margin: 8px 0 7px; font: 700 clamp(2.1rem, 3.7vw, 3.45rem)/.92 var(--display); letter-spacing: -.035em; }
.chart-intro, .practice-metric, .chart-note { color: var(--muted); font-size: .84rem; }
.range-plot { margin: 21px 0 17px; }
.training-chart figcaption { color: var(--ivory); font-size: .85rem; font-weight: 700; }
.range-graphic { margin: 31px 3px 0; }
.range-track { position: relative; height: 7px; background: #44372b; border-radius: 9px; }
.range-band { position: absolute; inset: 0 12.5% 0 25%; border-radius: inherit; background: var(--gold); }
.range-band > span { position: absolute; bottom: 12px; left: 0; transform: translateX(-50%); color: var(--gold); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.range-band > span:last-child { left: 100%; }
.range-axis { display: flex; justify-content: space-between; margin-top: 4px; color: var(--muted); font-size: .71rem; }
.training-controls:not([hidden]) { display: grid; grid-template-columns: minmax(96px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 12px 0; border-block: 1px solid var(--line); }
.training-controls label { display: block; margin-bottom: 4px; color: var(--ivory); font-size: .79rem; font-weight: 700; }
.training-controls select, .gain-control { width: 100%; min-height: 44px; }
.training-controls select { padding: 5px 7px; border: 1px solid #654c31; background: #201811; color: var(--ivory); font: 600 .85rem var(--body); }
.gain-control { display: flex; align-items: center; gap: 8px; }
.gain-control input { min-width: 0; width: 100%; margin: 0; accent-color: var(--gold); cursor: pointer; }
.gain-control span { flex: 0 0 3.15em; color: var(--gold); font-size: .79rem; font-weight: 700; text-align: right; }
.score-plot { margin-top: 14px; }
.practice-metric { margin: 3px 0 9px; }
.score-row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) 5.5em; align-items: center; gap: 8px; margin-top: 5px; color: var(--muted); font-size: .79rem; }
.score-row strong, .score-row output { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.score-row-after { color: var(--gold); }
.score-track { height: 9px; border-radius: 4px; background: #30261e; overflow: hidden; }
.score-track > span { display: block; width: var(--score); height: 100%; border-radius: inherit; background: #998368; }
.score-row-after .score-track > span { background: var(--gold); }
.chart-note { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); font-size: .76rem; }

.games { position: relative; padding: clamp(64px, 7.1vw, 104px) 0 clamp(74px, 8.5vw, 122px); background: radial-gradient(ellipse at 50% 0%, #211911 0%, #110e0d 51%); }
.section-heading { text-align: center; margin-bottom: 35px; }
.section-heading .eyebrow { justify-content: center; }
h2 { font: 700 clamp(3.05rem, 5.3vw, 5.15rem)/.9 var(--display); letter-spacing: -.045em; }
.section-heading h2 { margin: 10px 0 13px; }
.section-heading > p:last-child, .game-copy p, .about-copy > p:not(.eyebrow) { color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 27px); }
.game { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.game:hover, .game:focus-within { border-color: #86643d; }
.game-photo { aspect-ratio: 1.5; overflow: hidden; background: #251810; border-bottom: 1px solid var(--line); }
.game-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game:hover .game-photo img { transform: scale(1.035); }
.game-copy { flex: 1; display: grid; grid-template-rows: auto auto 1fr auto; padding: 22px clamp(17px, 2vw, 29px) 25px; }
.game-symbol { color: var(--gold); display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #6a5033; font: 600 1rem/1 Georgia, serif; }
.game-symbol-number { font-family: var(--display); font-weight: 700; }
.game h3 { margin: 9px 0 6px; font: 700 clamp(2.15rem, 3.35vw, 3.25rem)/.94 var(--display); letter-spacing: -.035em; }
.game-copy p { margin-bottom: 18px; font-size: .9rem; }
.guide-link { justify-self: start; color: var(--gold); display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-size: .81rem; font-weight: 700; border-bottom: 1px solid #795a37; }
.guide-link:hover { color: var(--ivory); border-color: var(--gold); }
.guide-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 27px; margin-top: 21px; }

.hand { padding: clamp(62px, 7.3vw, 106px) 0; background: #1a1511 radial-gradient(ellipse at 15% 30%, #302218, transparent 66%); border-block: 1px solid var(--line); }
.hand-inner, .notebook-inner { display: grid; align-items: center; gap: clamp(34px, 6vw, 90px); }
.hand-inner { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); }
.hand-photo, .notebook-photo { border: 1px solid #765936; background: #241b13; }
.hand-photo { padding: 9px; }
.hand-photo img, .notebook-photo img { width: 100%; height: auto; object-fit: cover; }
.hand-photo img { aspect-ratio: 1.19; object-position: 44% center; }
.hand-copy h2, .notebook-copy h2 { margin: 13px 0 20px; }
.hand-copy > p:not(.eyebrow) { color: var(--muted); max-width: 420px; }
.hand-board { margin-top: 24px; padding: clamp(14px, 2vw, 22px); border: 1px solid #58422b; background: #110e0c; }
.hand-controls:not([hidden]) { display: flex; gap: 7px; margin-bottom: 15px; }
.hand-controls button { min-height: 44px; padding: 7px 13px; border: 1px solid #594532; color: var(--muted); background: transparent; font: 700 .8rem/1.25 var(--body); cursor: pointer; }
.hand-controls button:hover { color: var(--ivory); border-color: var(--gold); }
.hand-controls button[aria-pressed="true"] { color: #19130d; background: var(--gold); border-color: var(--gold); }
.hand-cards { display: flex; flex-wrap: wrap; gap: 13px 21px; }
.card-label { display: block; margin-bottom: 6px; color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .065em; text-transform: uppercase; }
.playing-cards { display: flex; gap: clamp(4px, .6vw, 8px); margin: 0; padding: 0; list-style: none; }
.playing-card { width: clamp(31px, 3vw, 43px); height: clamp(41px, 4.1vw, 58px); display: grid; place-items: center; border: 1px solid #dac3a4; border-radius: 3px; background: #eee0cc; color: #251c17; font: 700 clamp(.77rem, 1.2vw, 1.05rem)/1 var(--body); }
.playing-card.red { color: #862523; }
.playing-card:has(.card-back:not([hidden])) { border-color: #735636; background: #281c12; color: #b68e57; }
.card-back { font-size: .83rem; }
.hand-note { margin-top: 14px; min-height: 2.8em; color: #dfc69f; font-size: .85rem; line-height: 1.5; }

.notebook { padding: clamp(62px, 7.5vw, 108px) 0; background: #12100e; }
.notebook-inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.notebook-photo img { aspect-ratio: 1.43; object-position: 55% center; }
.notebook-list { margin: 26px 0 0; }
.notebook-list > div { padding: 12px 0 13px; border-top: 1px solid var(--line); }
.notebook-list > div:last-child { border-bottom: 1px solid var(--line); }
.notebook-list dt { color: var(--ivory); font-weight: 700; }
.notebook-list dd { margin: 2px 0 0; color: var(--muted); font-size: .91rem; }

.about { padding: clamp(64px, 8vw, 114px) 0; border-block: 1px solid var(--line); background: #18130f radial-gradient(ellipse at 18% 0%, #2b2016, transparent 62%); }
.about-inner { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1fr); align-items: center; gap: clamp(43px, 9vw, 135px); max-width: 1040px; }
.portrait { position: relative; padding: 10px; border: 1px solid #80613c; }
.portrait img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: center 28%; }
.about h2 { margin: 15px 0 22px; }
.about-copy > p:not(.eyebrow) { max-width: 430px; margin-bottom: 14px; }
.about-action { margin-top: 4px; color: var(--gold); }
.about-action:hover { color: var(--ivory); }

footer { background: #0e0c0b; }
.footer-inner { min-height: 113px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-block: 22px; }
.footer-inner p, .footer-link { color: var(--muted); font-size: .79rem; }
.footer-link:hover, .footer-link span { color: var(--gold); }

.guide-header { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-header .text-action { white-space: nowrap; }
.guide-page { padding-block: clamp(32px, 5vw, 72px); }
.guide-splash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 5vw, 65px); padding-bottom: clamp(28px, 5vw, 55px); border-bottom: 1px solid var(--line); }
.guide-splash h1 { margin: 11px 0 15px; font: 700 clamp(4rem, 8.4vw, 8.5rem)/.86 var(--display); letter-spacing: -.055em; }
.guide-splash p:last-child { max-width: 42ch; color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.14rem); }
.guide-splash img { width: 100%; height: auto; aspect-ratio: 1.75; object-fit: cover; border: 1px solid var(--line); }
.guide-layout { display: grid; grid-template-columns: minmax(155px, .32fr) minmax(0, 1fr); gap: clamp(25px, 5vw, 65px); padding-top: clamp(24px, 4vw, 48px); }
.guide-index { position: sticky; top: 25px; align-self: start; display: flex; flex-direction: column; padding: 3px 0 3px 15px; border-left: 1px solid var(--line); }
.guide-index a { display: flex; align-items: center; min-height: 44px; color: var(--gold); font-size: .84rem; font-weight: 700; }
.guide-index a:hover, .guide-content a:hover { color: var(--ivory); }
.guide-content { width: min(100%, 740px); }
.guide-content section { padding: 0 0 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.guide-content section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.guide-content h2 { margin: 0 0 15px; font-size: clamp(2.5rem, 4.3vw, 4rem); }
.guide-content p { margin: 0 0 12px; color: var(--muted); }
.guide-content a { color: var(--gold); text-decoration: underline; text-underline-offset: .18em; }
.guide-content .guide-formula { background: var(--panel); border-left: 2px solid var(--gold); padding: 11px 14px; margin: 16px 0; color: var(--ivory); font-weight: 600; }
.guide-content table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: clamp(.73rem, 1.6vw, .92rem); }
.guide-content caption { text-align: left; margin-bottom: 6px; color: var(--muted); }
.guide-content th, .guide-content td { padding: 8px clamp(6px, 1.5vw, 14px); text-align: left; border: 1px solid var(--line); vertical-align: top; }
.guide-content thead { background: var(--panel); color: var(--gold); }
.guide-content tbody td { color: var(--muted); }
.guide-content details { padding: 0 14px; background: var(--panel); border: 1px solid var(--line); }
.guide-content summary { padding: 10px 0; color: var(--gold); font-weight: 700; cursor: pointer; }
.guide-footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

@media (max-width: 640px) {
  .guide-splash, .guide-layout { grid-template-columns: 1fr; }
  .guide-index { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
}

@media (max-width: 880px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .header-action { display: none; }
  .header nav .mobile-training-link { display: block; }
}

@media (max-width: 780px) {
  .hero-photo img { object-position: 64% center; }
  .hero h1 { font-size: clamp(5.35rem, 13vw, 7.5rem); }
  .hero-copy { width: min(450px, 65%); }
  .about-inner { gap: 36px; }
}

@media (max-width: 700px) {
  .header-inner { grid-template-columns: 1fr; gap: 0; }
  .header-inner .wordmark { padding-top: 13px; }
  .header nav { justify-content: space-between; gap: 10px; }
  .header nav a { padding-block: 10px 12px; }
  .header nav [href="#inicio"] { display: none; }
  .hand-inner, .notebook-inner, .training-inner { grid-template-columns: 1fr; gap: 24px; }
  .hand-photo img { aspect-ratio: 1.5; }
}

@media (max-width: 600px) {
  .header nav a { font-size: .76rem; }
  .wordmark { gap: 6px; }
  .wordmark span { font-size: clamp(.98rem, 3.6vw, 1.2rem); letter-spacing: .045em; }
  .wordmark img { width: 22px; height: 26px; }
  .hero-inner { min-height: 620px; align-items: end; }
  .hero-copy { width: 100%; padding: 238px 0 35px; }
  .hero-photo { left: 0; width: 100%; height: 71%; }
  .hero-photo img { object-position: 74% 35%; }
  .hero::after { background: linear-gradient(0deg, #100d0b 29%, #100d0b 31%, #100d0b26 62%, transparent 84%); }
  .hero h1 { margin: 13px 0 15px; font-size: clamp(3.85rem, 14.3vw, 6.8rem); line-height: .84; }
  .hero h1 em { display: inline; }
  .hero-actions { margin-top: 18px; gap: 6px 17px; }
  .button, .text-action { font-size: .82rem; }
  .button { padding-inline: 12px; }
  .section-heading { margin-bottom: 24px; }
  .promotion-banner { align-items: end; min-height: 330px; }
  .promotion-banner > img { width: 100%; height: 72%; object-position: center 49%; }
  .promotion-banner::after { background: linear-gradient(0deg, #17110c 12%, #17110c 29%, #17110c6e 55%, transparent 82%); }
  .promotion-copy h2 { margin-bottom: 15px; }
  .game-grid, .about-inner { grid-template-columns: 1fr; }
  .game-grid { gap: 18px; }
  .game-photo { aspect-ratio: 1.5; }
  .game-copy { padding: 18px 20px; }
  .game-copy p { margin-bottom: 8px; }
  .about-inner { gap: 27px; }
  .portrait { max-width: 390px; }
  .about h2 { margin: 12px 0 17px; }
  .footer-inner p { order: 1; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .game-photo img { transition: none; }
}
