@charset "UTF-8";

:root {
  color-scheme: light;
  --navy: #142b3a;
  --blue: #246b8e;
  --gold: #e5a93d;
  --warm: #f6f3ec;
  --surface: #fff;
  --ink: #18313f;
  --muted: #60727c;
  --line: #dce2e3;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--warm);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.content-shell { width: min(940px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 14px; background: var(--surface); }
.skip-link:focus { top: 12px; }

/* Shared layout and components. */
.site-header { background: var(--navy); color: white; }
.header-inner { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; }
.site-header .brand img { width: 220px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 34px; font-size: 16px; font-weight: 600; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; padding: 8px 4px; color: #dce7ed; }
.site-nav a:hover, .site-nav a:focus-visible { color: white; border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { color: white; border-bottom-color: var(--gold); }
main { padding-bottom: 64px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(36px, 4.7vw, 58px); font-weight: 700; line-height: 1.12; letter-spacing: -2.2px; }
h2 { margin-bottom: 18px; font-size: 32px; font-weight: 650; line-height: 1.2; letter-spacing: -1px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: 1.7px; }
section { scroll-margin-top: 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.surface-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.notice { border-left: 3px solid var(--gold); background: #edf4f7; }
.button-primary { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 44px; margin-top: 8px; padding: 12px 22px; border-radius: 7px; background: var(--blue); color: white; font-size: 14px; font-weight: 600; }
.button-primary:hover { background: var(--navy); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
.footer-brand img { width: 185px; height: 40px; }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.opponents-site-page, .learning-site-page { --muted: #435863; }
.opponents-site-page .site-nav, .learning-site-page .site-nav { gap: 24px; }
.opponents-site-page .site-nav a, .learning-site-page .site-nav a { min-height: 48px; padding: 10px 8px; }
.opponents-site-page .site-footer p, .learning-site-page .site-footer p { font-size: 15px; }

/* Home and embedded game. */
.game-section { padding-top: 40px; text-align: center; }
.intro { margin-bottom: 28px; }
.intro-eyebrow { display: flex; align-items: center; justify-content: center; gap: 10px; }
.intro-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--gold); }
.intro h1 span { color: var(--blue); }
.intro-description { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.game-panel { width: min(100%, 940px, max(620px, calc((100svh - 330px) * 16 / 9))); margin-inline: auto; padding: 0 12px 12px; box-shadow: 0 4px 18px #142b3a06; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding-inline: 6px; }
.game-heading .eyebrow { margin: 0; text-align: left; color: var(--ink); letter-spacing: 1.2px; }
.fullscreen-button { min-height: 44px; padding: 8px 0 8px 10px; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 600; cursor: pointer; }
.fullscreen-button span { margin-left: 6px; font-size: 16px; }
.fullscreen-button:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.fullscreen-button:disabled { color: var(--muted); cursor: not-allowed; }
.game-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #062c50; }
.game-frame:fullscreen { width: 100vw; height: 100vh; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0; }
.game-benefits { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.game-benefits span { color: var(--blue); }
.game-support { margin-top: 3px; font-size: 12px; line-height: 1.6; }
.game-open { color: var(--blue); display: inline-block; padding: 6px; }
.game-open:hover { text-decoration: underline; text-underline-offset: 3px; }
:where(.game-hint) { margin: 8px auto; max-width: 560px; color: var(--muted); }
.game-hint:empty { display: none; }
.featured-bots { margin-top: 28px; text-align: center; }
.featured-bots > .section-intro { margin-inline: auto; margin-bottom: 24px; }
.featured-bots-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 20px; padding: 0; list-style: none; }
.featured-bots-grid > li { min-width: 0; }
.featured-bot-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: start; gap: 20px; height: 100%; padding: 24px 20px 16px; text-align: left; box-shadow: 0 4px 18px #142b3a06; }
.featured-bot-card:hover, .featured-bot-card:focus-visible { border-color: var(--blue); }
.featured-bot-card img { display: block; width: 128px; height: 128px; border-radius: 50%; background: #dff5fb; object-fit: cover; object-position: center top; }
.featured-bot-copy { display: flex; flex-direction: column; align-items: flex-start; height: 100%; min-width: 0; }
.featured-bot-card h3 { margin-bottom: 6px; font-size: 19px; font-weight: 650; letter-spacing: -.2px; }
.featured-bot-style { margin-bottom: 8px; color: var(--blue); font-size: 14px; line-height: 1.5; font-style: italic; }
.featured-bot-level { margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.featured-bot-traits { width: 100%; margin: 0 0 12px; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--ink); font-size: 13px; line-height: 1.6; }
.featured-bot-traits li + li { margin-top: 4px; }
.featured-bot-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; color: var(--blue); font-size: 13px; font-weight: 600; }
.featured-bot-card:hover .featured-bot-link { text-decoration: underline; text-underline-offset: 3px; }
.how-to-play { margin-top: 56px; padding: 36px; }
.section-intro, .about p:not(.eyebrow), .how-to-note { font-size: 15px; line-height: 1.85; color: var(--muted); }
.section-intro { max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 28px 0; padding: 0; list-style: none; counter-reset: steps; }
.steps li { border-top: 1px solid var(--line); padding-top: 20px; counter-increment: steps; }
.steps li::before { content: "0" counter(steps); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--blue); background: #edf4f7; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 16px 0 10px; font-size: 17px; line-height: 1.4; font-weight: 650; letter-spacing: -.3px; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.how-to-note { margin-bottom: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.about { max-width: 680px; padding-top: 64px; text-align: center; }
.about p a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.about-creator { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-creator img { display: block; width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; }
.about-creator h3 { margin-bottom: 12px; font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.contact { max-width: 680px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact h2 { margin-bottom: 8px; color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
.contact p { margin-bottom: 4px; }
.contact a { display: inline-block; padding-block: 10px; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Contact and feedback. */
.feedback-page { max-width: 720px; padding-top: 56px; line-height: 1.7; }
.feedback-page a:not(.button-primary) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.feedback-page h1 { margin-bottom: 20px; font-size: clamp(34px, 4vw, 48px); }
.feedback-form { margin-top: 28px; padding: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { display: block; width: 100%; min-height: 44px; padding: 10px; border: 1px solid #a7b4bc; border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; }
.form-group textarea { resize: vertical; }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.form-help, .form-privacy { color: var(--muted); font-size: 13px; }
.form-help { margin: 6px 0 0; }
.feedback-submit { min-height: 44px; padding: 12px 24px; border: 0; border-radius: 7px; background: var(--blue); color: white; font: inherit; font-weight: 600; cursor: pointer; }
.feedback-submit:hover { background: var(--navy); }
.feedback-submit:disabled { opacity: .65; cursor: wait; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
/* Opponent directory and profiles. */
.opponents-site-page { --gold-text: #805915; font-size: 17px; }
.opponents-site-page .brand { min-height: 44px; }
.opponents-site-page .site-nav a:focus-visible,
.opponents-site-page .site-header .brand:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.opponents-site-page .skip-link:focus-visible,
.opponents-site-page .site-footer .brand:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.opponents-site-page .eyebrow { font-size: 15px; letter-spacing: 1.2px; }
.opponents-page { padding-top: 28px; padding-bottom: 28px; }
.opponents-intro { display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); gap: 16px; align-items: center; margin: 0 0 18px; }
.opponents-intro-copy { min-width: 0; }
.opponents-intro .eyebrow { font-size: 12px; }
.opponents-cast { display: block; min-width: 0; width: 100%; max-width: 460px; height: auto; object-fit: contain; justify-self: end; }
.opponents-intro h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 42px); letter-spacing: -1px; }
.opponents-intro-copy > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.opponents-info { margin: 0 0 24px; padding: 12px 16px; border-radius: 6px; }
.opponents-info p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.6; }
.opponents-info p + p { margin-top: 6px; }
.opponents-info strong { color: var(--ink); font-weight: 650; }
.opponents-info a, .bidding-system a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.opponent-group + .opponent-group { margin-top: 46px; }
.opponent-group-heading { margin-bottom: 18px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.opponent-group-heading h2 { margin: 0; color: var(--ink); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: .8px; }
.opponent-group-heading p { margin: 5px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.opponents-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.opponents-grid > li { min-width: 0; margin: 0; padding: 0; list-style: none; }
.opponent-card { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fffefa; transition: border-color 140ms ease, background-color 140ms ease; }
.opponent-card:hover { background: var(--surface); }
.opponent-card:hover, .opponent-card:focus-visible { border-color: var(--blue); }
.opponent-card:hover .profile-link { color: var(--navy); }
.opponent-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.opponent-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; background: #dff5fb; object-fit: cover; object-position: center top; }
.opponent-card-body { display: flex; flex-direction: column; align-items: flex-start; min-height: 168px; padding: 15px 16px 16px; }
.opponent-card strong { color: var(--ink); font-size: 19px; font-weight: 650; line-height: 1.3; letter-spacing: -.2px; }
.opponent-level { margin-top: 6px; color: var(--gold-text); font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: .25px; }
.opponent-style { margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.profile-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; padding-top: 8px; color: var(--blue); font-size: 16px; font-weight: 700; line-height: 1.4; text-decoration: underline; text-underline-offset: 3px; }
.opponent-profile-page { width: min(1080px, calc(100% - 64px)); max-width: none; padding-top: 44px; padding-bottom: 40px; }
.profile-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; padding: 9px 4px; color: var(--blue); font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.profile-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.profile-back:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.opponent-profile { display: grid; grid-template-columns: minmax(230px, 290px) minmax(0, 1fr); gap: 42px; align-items: start; padding: 38px; border-radius: 12px; background: var(--surface); }
.opponent-profile > img { display: block; width: 100%; height: auto; border-radius: 10px; background: #dff5fb; }
.opponent-profile-copy { min-width: 0; }
.opponent-profile-copy .eyebrow { margin-bottom: 12px; }
.opponent-profile-copy h1 { margin-bottom: 8px; }
.profile-level { margin-bottom: 28px; color: var(--gold-text); font-size: 16px; font-weight: 700; }
.opponent-profile-copy h2 { margin-bottom: 8px; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.profile-style { margin-bottom: 20px; color: var(--blue); font-size: 23px; font-weight: 700; line-height: 1.4; }
.profile-description { max-width: 68ch; margin: 0; color: var(--ink); font-size: 18px; line-height: 1.65; }
.profile-description p { margin: 0 0 20px; }
.profile-description p:last-child { margin-bottom: 0; }
.profile-description a { color: var(--blue); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.profile-description a:hover { color: var(--navy); }
.profile-description a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.profile-video { margin-top: 28px; }
.profile-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; }
.playing-profile { margin: 40px 8px 0; padding-top: 28px; border-top: 1px solid var(--line); }
.playing-profile > h2 { margin: 0 0 23px; color: var(--blue); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: 1.2px; }
.playing-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.playing-profile-column { display: flex; flex-direction: column; gap: 30px; }
.playing-profile-group h3 { margin: 0 0 12px; color: var(--ink); font-size: 16px; font-weight: 700; line-height: 1.4; letter-spacing: .8px; }
.playing-profile-group dl { margin: 0; }
.playing-profile-group dl > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 39px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.playing-profile-group dl > div:last-child { border-bottom: 0; }
.playing-profile-group dt { color: var(--ink); font-size: 21px; line-height: 1.4; }
.playing-profile-group dd { margin: 0; }
.playing-profile-summary { max-width: 560px; }
.playing-profile-summary dl > div { min-height: 44px; padding-block: 8px; border-bottom: 0; }
.playing-profile-summary dt { font-size: 20px; }
.playing-profile-toggle { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; padding: 8px 0; border: 0; background: none; color: var(--blue); font-size: 18px; line-height: 1.5; text-align: left; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.playing-profile-toggle:hover { color: var(--navy); }
.playing-profile-details { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s .3s; }
.playing-profile-details.is-expanded { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.playing-profile-details-inner { min-height: 0; overflow: hidden; }
.playing-profile-details .playing-profile-grid { padding-top: 24px; padding-bottom: 6px; }
.profile-param-toggle { display: inline-flex; align-items: center; gap: 7px; min-width: 0; min-height: 44px; margin: -6px 0; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; line-height: inherit; text-align: left; cursor: pointer; }
.profile-param-toggle > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.profile-param-toggle:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.profile-param-icon { display: inline-grid; flex: 0 0 18px; width: 18px; height: 18px; place-items: center; border: 1.5px solid currentColor; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.profile-param-toggle[aria-expanded="true"] .profile-param-icon { border-color: #28738D; background: #28738D; color: #fff; }
.playing-profile-group .profile-param-explanation { grid-column: 1 / -1; min-width: 0; margin: 8px 0 12px; padding: 14px 16px; border-left: 3px solid #28738D; background: #EAF0F2; color: #203A46; font-size: 18px; line-height: 1.5; overflow-wrap: break-word; }
.rating-dots { display: inline-flex; gap: 0; color: var(--ink); font-size: 14px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; }
.rating-dots span { display: inline-flex; }
.rating-dots i { display: inline-block; width: 22px; font-style: normal; text-align: center; }
.rating-dots span:first-child { color: var(--gold-text); }
.rating-dots span:last-child { color: #64747d; }
.profile-note { display: flex; gap: 8px; margin-top: 28px; padding: 16px 18px; color: var(--ink); font-size: 16px; line-height: 1.6; }
.profile-note strong { flex-shrink: 0; color: var(--ink); }
.bidding-system { margin: 32px 8px 0; padding-top: 28px; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.6; }
.bidding-system h2 { color: var(--blue); font-size: 17px; line-height: 1.4; letter-spacing: 1.2px; }
.bidding-system p { max-width: 68ch; margin-bottom: 16px; }
.bidding-system a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Editorial learning pages share the site's palette and readable profile scale. */
.learning-site-page { font-size: 18px; line-height: 1.6; }
.learning-site-page .site-header a:focus-visible { outline-color: white; }
.learning-site-page .eyebrow { font-size: 14px; letter-spacing: 1.2px; }
.learning-page { width: min(800px, calc(100% - 64px)); margin-inline: auto; padding-top: 28px; }
.learning-page a:not(.button-primary) { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.learning-page a:not(.button-primary):hover { color: var(--navy); }
.learning-page a:focus-visible, .learning-site-page .skip-link:focus-visible, .learning-site-page .site-footer a:focus-visible,
.bidding-system a:focus-visible, .opponents-info a:focus-visible { outline-color: var(--navy); }
.breadcrumbs { display: block; margin-bottom: 32px; font-size: 16px; font-weight: 400; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: 12px; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted); }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; }
.breadcrumbs [aria-current] { color: var(--ink); }
.learning-intro { margin-bottom: 32px; }
.learning-intro h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.15; letter-spacing: -1.5px; }
.learning-subtitle { margin-bottom: 20px; color: var(--muted); font-size: 21px; line-height: 1.6; }
.learning-resource { padding: 26px 30px; }
.learning-toc { display: block; margin-bottom: 44px; padding: 20px 30px; font-size: 18px; font-weight: 400; }
.learning-toc h2 { margin-bottom: 12px; font-size: 23px; letter-spacing: -.3px; }
.learning-toc a { display: inline-block; min-height: 44px; padding: 7px 0; }
.learning-article > section { margin-top: 44px; }
.learning-article h2 { font-size: clamp(27px, 3.5vw, 32px); line-height: 1.25; letter-spacing: -.6px; }
.learning-article h3 { margin: 28px 0 12px; font-size: 22px; line-height: 1.35; }
.learning-article p, .learning-article ul, .learning-article ol { margin-bottom: 20px; }
.learning-article li + li { margin-top: 12px; }
.learning-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 4px 40px; margin: 0; padding-left: 24px; }
.learning-toc li + li { margin-top: 0; }
.learning-note { margin-block: 24px; padding: 20px 24px; }
.learning-note p:last-child { margin-bottom: 0; }
.worked-hand h3 { margin-top: 0; }
.bridge-hand span { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.table-scroll:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.learning-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 18px; line-height: 1.6; }
.learning-table caption { padding: 16px; color: var(--ink); font-weight: 650; text-align: left; }
.table-scroll-hint { display: none; max-width: 24ch; margin-top: 6px; color: var(--muted); font-weight: 400; }
.learning-table th, .learning-table td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.learning-table thead th { background: #edf4f7; }
.learning-table tbody th { min-width: 90px; font-weight: 650; }
.learning-table tbody tr:nth-child(even) { background: #faf9f5; }
.auction { font-weight: 650; font-variant-numeric: tabular-nums; }
.learning-cta { padding: 28px; border-top: 3px solid var(--gold); border-radius: 10px; }
.learning-site-page .button-primary { font-size: 18px; line-height: 1.5; }
.learning-references { padding-top: 28px; border-top: 1px solid var(--line); }
.learning-resource h2 { margin-bottom: 14px; font-size: 28px; }
.learning-resource p { margin-bottom: 16px; }
.learning-resource > a { display: inline-block; min-height: 44px; padding-block: 7px; font-weight: 650; }
.learning-resource + section { margin-top: 44px; }

/* Responsive overrides, from wider to narrower screens. */
@media (max-width: 900px) {
  .featured-bot-card { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding-inline: 16px; }
  .featured-bot-card img { width: 96px; height: 96px; }
  .opponents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opponent-profile { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); gap: 30px; padding: 30px; }
}
@media (max-width: 760px) {
  .opponent-profile { grid-template-columns: 1fr; }
  .opponent-profile > img { max-width: 260px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 24px); }
  .content-shell { width: calc(100% - 32px); }
  .header-inner { min-height: 100px; gap: 12px; }
  .site-header .brand img { width: 184px; }
  .site-nav { gap: 14px; }
  .site-nav a { padding-inline: 1px; }
  .opponents-site-page .site-nav, .learning-site-page .site-nav { gap: 10px; }
  .opponents-site-page .site-nav a, .learning-site-page .site-nav a { padding-inline: 7px; }
  .game-section { padding-top: 32px; }
  h1 { font-size: clamp(32px, 7.6vw, 48px); letter-spacing: -1.4px; text-wrap: balance; }
  .intro { margin-bottom: 24px; }
  .intro-description { max-width: 370px; padding-inline: 8px; font-size: 15px; line-height: 1.6; }
  .game-panel { width: 100%; padding: 0 7px 7px; border-radius: 10px; }
  .game-heading { padding-inline: 4px; gap: 8px; min-height: 48px; }
  .game-frame { aspect-ratio: 9 / 14; min-height: 440px; max-height: 760px; border-radius: 5px; }
  .game-benefits { gap: 7px; font-size: 11px; }
  h2 { font-size: 28px; }
  .featured-bots { margin-top: 24px; }
  .featured-bots-grid { grid-template-columns: 1fr; gap: 16px; }
  .featured-bot-card { grid-template-columns: 128px minmax(0, 1fr); padding: 20px 20px 12px; }
  .featured-bot-card img { width: 128px; height: 128px; }
  .how-to-play { margin-top: 36px; padding: 24px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps h3 { margin-top: 12px; }
  .about { padding-top: 44px; }
  .site-footer { flex-wrap: wrap; padding: 24px 4px; gap: 12px; }
  .site-footer p { width: 100%; }
  .feedback-page { padding-top: 36px; }
  .feedback-form { padding: 20px; }
  .opponents-page { padding-top: 20px; }
  .opponents-intro { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 14px; text-align: center; }
  .opponents-intro-copy > p:last-child { font-size: 16px; }
  .opponents-cast { max-width: 400px; justify-self: center; }
  .opponents-info { margin-bottom: 20px; padding: 10px 12px; }
  .opponent-group + .opponent-group { margin-top: 38px; }
  .opponents-grid { gap: 16px 14px; }
  .opponent-card-body { padding: 14px; }
  .opponent-profile-page { width: calc(100% - 32px); padding-top: 30px; }
  .opponent-profile { padding: 24px; }
  .playing-profile { margin-inline: 0; }
  .playing-profile-grid { display: flex; flex-direction: column; gap: 28px; }
  .playing-profile-column { display: contents; }
  .profile-bidding { order: 1; }
  .profile-card-play { order: 2; }
  .profile-reading { order: 3; }
  .profile-behavior { order: 4; }
  .profile-note { display: block; }
  .profile-note strong { display: block; margin-bottom: 3px; }
  .learning-page { width: calc(100% - 32px); padding-top: 20px; }
  .learning-resource { padding: 22px; }
  .learning-toc { padding: 18px 22px; }
  .learning-toc ol { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .learning-subtitle { font-size: 20px; }
  .table-scroll-hint { display: block; }
  .learning-note, .learning-cta { padding: 20px; }
  .bidding-system { margin-inline: 0; }
}
@media (max-width: 520px) {
  .header-inner { justify-content: center; flex-wrap: wrap; }
  .header-inner .site-nav { width: 100%; justify-content: center; }
  .opponent-profile > img { max-width: 240px; margin-inline: auto; }
}
@media (max-width: 380px) {
  .featured-bot-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding-inline: 14px; }
  .featured-bot-card img { width: 96px; height: 96px; }
  .opponents-grid { grid-template-columns: 1fr; }
  .opponent-card { max-width: 300px; margin-inline: auto; }
  .opponents-site-page .site-nav { gap: 4px; }
  .opponents-site-page .site-nav a { padding-inline: 6px; }
}
@media (max-width: 360px) {
  .header-inner { gap: 8px; }
  .site-header .brand img { width: 168px; }
  .footer-brand img { width: 160px; height: 32px; }
  .site-nav { gap: 10px; }
}
@media (max-width: 300px) {
  .opponent-card { max-width: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opponent-card { transition: none; }
  .playing-profile-details { transition: none; }
}
