@charset "UTF-8";

/* Theme and editorial page framing. */
:root {
  --paper: #f6f4ed;
  --ink: #203d34;
  --green: #183f35;
  --muted: #666e63;
  --line: #d7d9cc;
  --accent: #b34a35;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 5px; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -90px; left: 20px; z-index: 50; padding: 12px 20px; background: var(--paper); }
.skip-link:focus { top: 10px; }
.masthead, main, footer { max-width: 1240px; margin: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 0 23px; border-bottom: 1px solid var(--line); }
.wordmark { font: bold 30px var(--serif); text-decoration: none; letter-spacing: -1.2px; display: flex; align-items: center; gap: 10px; }
.brand-suit { font-size: 33px; }
.brand-dot { color: var(--accent); margin-left: -9px; }
.masthead-note, .eyebrow, .stage-kicker, .table-label, .table-top { font-size: 11px; font-weight: 600; letter-spacing: 1.8px; }
.masthead-note { color: var(--muted); font-size: 10px; }
.source-link { font-size: 13px; text-decoration: none; }
.source-link span { margin-left: 12px; font-size: 20px; }
.intro { display: flex; justify-content: space-between; gap: 48px; align-items: center; padding: 56px 0 52px; }
.eyebrow { margin: 0 0 18px; }
.tiny-star { color: var(--accent); font-size: 18px; margin-right: 8px; }
h1 { font: normal clamp(48px, 5.4vw, 74px)/1.05 var(--serif); letter-spacing: -3px; margin: 0; }
h1 em { color: var(--accent); font-weight: normal; }
.intro-aside { max-width: 290px; margin: 20px 50px 0 0; }
.intro-aside > p:first-child { font: 25px/1.4 var(--serif); margin: 0 0 14px; }
.intro-detail { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.text-link { font-size: 12px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.text-link span { margin-left: 22px; }

/* A performance guide, without a visible round counter. */
.game-shell { display: grid; grid-template-columns: 310px 1fr; border: 1px solid #c8cebf; border-radius: 5px; overflow: hidden; box-shadow: 0 14px 40px #203d3409; }
.guide-panel { background: var(--green); color: var(--paper); padding: 30px; display: flex; flex-direction: column; }
.table-label { font-size: 9px; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; background: #c4d7b8; border-radius: 50%; }
.edition { margin-left: auto; font-size: 10px; letter-spacing: 1px; opacity: .65; }
.table-flourish { margin: 33px 0 27px; color: #d9d8b7; letter-spacing: 10px; font-size: 17px; }
.table-flourish span { color: #8ba48a; }
.stage-kicker { font-size: 9px; color: #c1cfb6; margin: 0 0 14px; letter-spacing: 1.4px; }
.guide-panel h2 { font: normal 43px/1.08 var(--serif); letter-spacing: -1.4px; margin: 0 0 20px; }
.guide-panel h2:focus { outline: 0; }
.stage-copy { font-size: 14px; line-height: 1.8; color: #d8dfd2; margin: 0 0 24px; }
.stage-actions { display: flex; flex-direction: column; gap: 9px; }
.primary-button { min-height: 47px; border: 1px solid #e3e8d8; border-radius: 3px; padding: 12px 15px; background: #e8eddb; color: var(--green); font-size: 13px; font-weight: 650; transition: background .15s, transform .15s; }
.primary-button:hover { background: white; transform: translateY(-1px); }
.secondary-button { border: 1px solid #688070; border-radius: 3px; min-height: 44px; background: transparent; color: #e9edde; font-size: 12px; padding: 10px; }
.secondary-button:hover { background: #ffffff10; }
.reassurance { color: #c1cdbb; font-size: 11px; line-height: 1.7; margin: 14px 0 30px; }
.guide-bottom { margin-top: auto; padding-top: 28px; border-top: 1px solid #526957; display: flex; gap: 15px; align-items: center; }
.mini-suits { font-size: 15px; white-space: nowrap; color: #dae0cb; }
.mini-suits span { color: #dda88d; }
.guide-bottom p { font-size: 9px; line-height: 1.7; color: #c1cdbb; margin: 0; }

/* Two fans across the table, with a third centered below. */
.table-panel { padding: 23px 28px 20px; min-width: 0; position: relative; background-color: #e9ecdf; background-image: radial-gradient(#77816518 .7px, transparent .7px); background-size: 5px 5px; }
.table-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #52624e; margin-bottom: 18px; font-size: 9px; letter-spacing: 1px; }
.table-top p { margin: 0; }
.reset-button { min-height: 32px; padding: 4px 0 4px 10px; font-size: 11px; border: 0; background: transparent; white-space: nowrap; color: var(--ink); letter-spacing: 0; }
.reset-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.reset-button span { font-size: 17px; margin-left: 8px; }
.hands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; min-height: 510px; align-content: center; }
.card-hand { min-width: 0; text-align: center; }
.card-hand:last-child { grid-column: 1 / -1; width: calc(50% - 10px); justify-self: center; }
.card-hand h3 { font-size: 10px; line-height: 1; margin: 0 0 1px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #596b52; }
.card-fan { --card-width: 86px; --card-height: 125px; --fan-step: 25px; list-style: none; position: relative; padding: 0; margin: 0; height: 180px; }
.fan-card { position: absolute; top: calc(22px + var(--arc)); left: calc(50% - var(--card-width) / 2 + var(--position) * var(--fan-step)); width: var(--card-width); height: var(--card-height); transform-origin: 50% 110%; transform: rotate(calc(var(--position) * 5deg)); transition: transform .18s; }
.fan-card:hover { z-index: 20 !important; transform: translateY(-14px) rotate(0); }
.playing-card { width: 100%; height: 100%; position: relative; background: #fffcf5; border: 1px solid #bdc6b2; border-radius: 6px; color: #264335; box-shadow: 0 3px 8px #25422b15; display: flex; align-items: center; justify-content: center; }
.playing-card.red { color: #b04432; }
.card-corner { position: absolute; top: 7px; left: 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: 17px/1 var(--serif); }
.card-corner small { font-size: 15px; }
.bottom-corner { top: auto; left: auto; right: 7px; bottom: 7px; transform: rotate(180deg); }
.card-symbol { font: 39px/1 var(--serif); }
.hand-choice { margin-top: 0; min-height: 44px; width: 165px; max-width: 100%; border: 1px solid #87967f; border-radius: 3px; background: #f6f4ed90; color: var(--ink); font-size: 12px; font-weight: 600; transition: background .15s, color .15s; }
.hand-choice:hover:enabled { background: var(--green); color: white; }
.hand-choice:disabled { visibility: hidden; }
.table-footnote { text-align: center; font-size: 10px; color: #5b6c54; margin: 15px 0 0; line-height: 1.7; }
.table-footnote span { margin-right: 7px; color: #7e8f68; }
.is-dealing .fan-card { animation: fan-arrive 360ms both; animation-delay: var(--delay); pointer-events: none; }
.is-gathering { animation: gather-hands 420ms both; pointer-events: none; }

/* Deal an actual packet one card at a time, then reveal its eleventh card. */
.dealing-scene { min-height: 540px; position: relative; display: grid; grid-template-columns: 1fr 1fr; align-content: center; align-items: center; justify-items: center; padding: 50px; gap: 35px; }
.pack, .dealt-pile { width: 120px; height: 175px; position: relative; }
.pack { transform: rotate(-7deg); }
.pack:before, .pack:after { content: ''; position: absolute; inset: 0; border: 1px solid #aab79d; border-radius: 7px; background: #fffcf5; }
.pack:before { transform: translate(-3px, 4px); }
.pack:after { transform: translate(-6px, 8px); }
.card-back { position: absolute; inset: 0; z-index: 1; border-radius: 7px; border: 5px solid #fffcf5; outline: 1px solid #aab79d; background: repeating-linear-gradient(45deg, #284d40 0 2px, #365c4b 2px 4px); color: #e4dfbd; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; }
.card-back:before { content: ''; position: absolute; inset: 5px; border: 1px solid #c8c7a780; border-radius: 2px; }
.card-back b { font: normal 47px/1 var(--serif); }
.card-back span { font-size: 13px; }
.dealt-card { position: absolute; inset: 0; animation: card-to-table 320ms both; transform: rotate(var(--tilt)); }
.dealt-card .card-symbol { font-size: 55px; }
.dealing-caption { grid-column: 1 / -1; font: italic 22px var(--serif); color: #69775d; margin-top: 25px; }
.reveal-panel { min-height: 540px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 35px 10px; }
.large-card { width: 172px; height: 248px; border-radius: 9px; box-shadow: 0 16px 35px #25422b25; transform: rotate(-5deg); animation: reveal-card 550ms ease-out; }
.large-card .card-symbol { font-size: 90px; }
.large-card .card-corner { top: 15px; left: 15px; font-size: 28px; gap: 5px; }
.large-card .card-corner small { font-size: 24px; }
.large-card .bottom-corner { top: auto; left: auto; bottom: 15px; right: 15px; }
.reveal-panel h3 { font: normal 28px var(--serif); margin: 35px 0 10px; }
.reveal-panel h3:focus { outline: 0; }

/* The method only becomes available after the first completed reveal. */
.behind { display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; padding: 65px 0; }
.behind .eyebrow { font-size: 9px; color: var(--muted); margin-bottom: 15px; }
.behind h2 { font: normal 34px/1.15 var(--serif); letter-spacing: -.8px; margin: 0 0 15px; }
.behind-intro > p:last-child { font-size: 13px; color: var(--muted); max-width: 310px; }
.behind-content { padding-top: 5px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 21px 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 15px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { font-size: 20px; font-weight: normal; color: var(--accent); }
details[open] summary span { transform: rotate(45deg); }
.detail-copy { padding: 0 0 25px; font-size: 13px; color: var(--muted); }
.detail-copy p { margin-top: 0; }
footer { display: flex; justify-content: space-between; gap: 20px; font: 19px var(--serif); padding: 22px 0 28px; border-top: 1px solid var(--line); }
.footer-caption { font: 10px var(--sans); color: var(--muted); margin-left: 15px; }
footer > span:last-child { font: 10px var(--sans); color: var(--muted); }
footer > span:last-child > span { font-size: 16px; color: var(--accent); margin-left: 12px; }
.noscript { padding: 20px; border: 2px solid var(--accent); }

@keyframes fan-arrive {
  from { opacity: 0; transform: translate(30px, 100px) rotate(30deg) scale(.8); }
  to { opacity: 1; transform: rotate(calc(var(--position) * 5deg)); }
}
@keyframes gather-hands { to { opacity: 0; transform: translateY(35px) scale(.8); } }
@keyframes card-to-table {
  from { opacity: 0; transform: translate(-140px, -35px) rotate(-16deg); }
  to { opacity: 1; transform: rotate(var(--tilt)); }
}
@keyframes reveal-card {
  from { opacity: .3; transform: translateY(20px) rotate(6deg) scale(.85); }
  to { opacity: 1; transform: rotate(-5deg) scale(1); }
}

@media (min-width: 1500px) {
  .masthead, main, footer { max-width: 1320px; }
  .game-shell { grid-template-columns: 340px 1fr; }
}
@media (max-width: 1320px) {
  .masthead, main, footer { margin-left: 40px; margin-right: 40px; }
}
@media (max-width: 1120px) {
  .game-shell { grid-template-columns: 275px 1fr; }
  .guide-panel { padding: 25px; }
  .table-panel { padding: 22px 18px; }
  .card-fan { --card-width: 78px; --card-height: 116px; --fan-step: 20px; height: 175px; }
  .intro-aside { margin-right: 0; }
}
@media (max-width: 960px) {
  .masthead, main, footer { margin-left: 24px; margin-right: 24px; }
  .masthead-note { display: none; }
  .game-shell { grid-template-columns: 1fr; }
  .guide-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; padding: 26px; }
  .table-label { grid-column: 1 / -1; }
  .table-flourish { grid-column: 1 / -1; margin: 14px 0; font-size: 14px; }
  .stage-kicker { grid-column: 1; }
  .guide-panel h2 { grid-column: 1; font-size: 35px; margin-bottom: 15px; }
  .stage-copy { grid-column: 2; grid-row: 3 / 5; margin-bottom: 12px; }
  .stage-actions { grid-column: 2; grid-row: 5; }
  .reassurance { grid-column: 1; margin: 0; }
  .guide-bottom { display: none; }
  .card-fan { --card-width: 86px; --card-height: 125px; --fan-step: 25px; height: 180px; }
  .table-panel { padding: 22px 28px; }
  .behind { gap: 40px; }
  .footer-caption { display: none; }
}
@media (max-width: 660px) {
  .masthead, main, footer { margin-left: 17px; margin-right: 17px; }
  .masthead { padding: 18px 0; }
  .wordmark { font-size: 26px; }
  .brand-suit { font-size: 29px; }
  .source-link { font-size: 11px; }
  .source-link span { margin-left: 5px; }
  .intro { display: block; padding: 30px 0; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 15px; }
  h1 { font-size: 50px; letter-spacing: -2px; }
  .intro-aside { max-width: none; margin-top: 20px; }
  .intro-aside > p:first-child { font: 13px var(--sans); margin-bottom: 10px; }
  .intro-aside > p:first-child br { display: none; }
  .intro-detail, .intro-aside .text-link { display: none; }
  .guide-panel { padding: 22px; gap: 0 16px; }
  .guide-panel h2 { font-size: 31px; }
  .stage-copy { font-size: 12px; line-height: 1.7; }
  .stage-actions { grid-column: 1 / -1; margin-top: 14px; }
  .primary-button, .secondary-button { font-size: 12px; }
  .reassurance { grid-column: 1 / -1; grid-row: 6; margin-top: 12px; font-size: 10px; }
  .table-panel { padding: 17px 14px 20px; }
  .table-top { font-size: 8px; letter-spacing: .7px; margin-bottom: 24px; }
  .reset-button { font-size: 10px; }
  .hands { grid-template-columns: 1fr; gap: 26px; min-height: 0; }
  .card-hand:last-child { grid-column: auto; width: 100%; }
  .card-fan { height: 180px; --fan-step: 25px; }
  .hand-choice { width: 180px; }
  .table-footnote { margin-top: 25px; font-size: 9px; }
  .dealing-scene { min-height: 410px; padding: 15px 5px; gap: 22px; }
  .pack, .dealt-pile { width: 100px; height: 148px; }
  .reveal-panel { min-height: 410px; }
  .large-card { width: 155px; height: 225px; }
  .reveal-panel h3 { font-size: 25px; }
  .behind { grid-template-columns: 1fr; gap: 18px; padding: 35px 0; }
  .behind h2 { font-size: 29px; }
  .behind h2 br { display: none; }
  .behind-intro > p:last-child { max-width: none; }
  summary { font-size: 13px; padding: 18px 0; }
  footer { font-size: 17px; align-items: flex-start; }
  footer > span:last-child { max-width: 140px; text-align: right; line-height: 1.8; }
}
@media (max-width: 360px) {
  h1 { font-size: 44px; }
  .card-fan { --card-width: 78px; --card-height: 116px; --fan-step: 21px; height: 170px; }
  .card-corner { font-size: 16px; left: 6px; }
  .bottom-corner { left: auto; right: 6px; }
  .table-top { letter-spacing: .3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .playing-card, .game-shell, .hand-choice, .primary-button, .secondary-button { border: 1px solid CanvasText; }
  .card-back { border-color: CanvasText; }
}
