/* SumoNumo home. The world: a sumo ring (dohyō) of packed clay inside a
   straw-bale ring, the banzuke ranking sheet, puzzle-book paper, and the
   app's own teal and tile cream. Red is the hanko seal: used for stamps only. */
:root {
  --paper: #F6EFE0;
  --paper-2: #FFFAF0;
  --ink: #1E1A15;
  --muted: #5E554A;
  --line: #E2D5BC;
  --teal: #0F766E;
  --teal-ink: #0A5A54;
  --teal-deep: #0B4F4A;
  --on-teal: #FFF8EA;
  --tile: #F2E6C8;
  --tile-edge: #CDB98E;
  --clay: #E3CFA4;
  --clay-2: #D6BD88;
  --straw: #B8954F;
  --seal: #B8342A;
  --gold: #D9A441;
  --good: #1E7F4F;
  --bad: #B8342A;
  --shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 10px 30px -12px rgba(60, 40, 10, .35);
  --display: "Dela Gothic One", "Lexend", system-ui, sans-serif;
  --body: "Lexend", system-ui, -apple-system, "Segoe UI", "Noto Sans", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15181D; --paper-2: #1D2128; --ink: #F3EEE3; --muted: #B9B1A4; --line: #2E343D;
    --teal: #4FD1C1; --teal-ink: #7FE3D6; --teal-deep: #0C2F2C; --on-teal: #F3EEE3;
    --tile: #3A3225; --tile-edge: #6A5A3C; --clay: #4A3E2B; --clay-2: #3C3223; --straw: #8A7140;
    --seal: #E0675C; --good: #5BCB8E; --bad: #F08A80;
    --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15181D; --paper-2: #1D2128; --ink: #F3EEE3; --muted: #B9B1A4; --line: #2E343D;
  --teal: #4FD1C1; --teal-ink: #7FE3D6; --teal-deep: #0C2F2C; --on-teal: #F3EEE3;
  --tile: #3A3225; --tile-edge: #6A5A3C; --clay: #4A3E2B; --clay-2: #3C3223; --straw: #8A7140;
  --seal: #E0675C; --good: #5BCB8E; --bad: #F08A80;
  --shadow: 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.6 var(--body);
  /* puzzle-book paper: a faint dotted grid */
  background-image: radial-gradient(color-mix(in srgb, var(--line) 70%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-ink); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 9; background: var(--paper-2); padding: 8px 12px; border-radius: 10px; }
[hidden] { display: none !important; }
/* Line breaks that respect words: Korean breaks at spaces, Japanese at phrases. */
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3, :lang(ko) .lead, :lang(ko) p, :lang(ko) li { word-break: keep-all; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .say, :lang(ja) .won-star { word-break: auto-phrase; line-break: strict; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .005em; text-wrap: balance; margin: 0 0 14px; }
h1 { font-size: clamp(38px, 5.6vw, 62px); }
h2 { font-size: clamp(30px, 4.6vw, 48px); }
h3 { font-size: 20px; margin: 10px 0 4px; }
p { margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 60ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--seal);
}
:lang(ja) .kicker, :lang(zh) .kicker, :lang(ko) .kicker, :lang(hi) .kicker { letter-spacing: .04em; }
.seal {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: var(--seal); color: #FFF4EC; font: 18px/1 var(--display); letter-spacing: 0; transform: rotate(-6deg);
}

/* Dela Gothic's own CJK letters are too dense at heading sizes, and it has
   no Devanagari: these scripts take the system's bold faces instead. */
/* Each CJK language takes its own system faces first: a Japanese-first stack
   draws Chinese and Korean text with Japanese glyph shapes. Lexend stays first
   in the body for Latin letters and digits. */
:lang(ja) { --display: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif;
            --body: "Lexend", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif; }
:lang(zh) { --display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
            --body: "Lexend", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
:lang(ko) { --display: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif;
            --body: "Lexend", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; }
:lang(hi) { --display: "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", system-ui, sans-serif; }
:lang(ja) :is(h1, h2, .board-label, .rank-name, .won-title, .rank-step, .moves li, .duel figcaption, .rules dt),
:lang(zh) :is(h1, h2, .board-label, .rank-name, .won-title, .rank-step, .moves li, .duel figcaption, .rules dt),
:lang(ko) :is(h1, h2, .board-label, .rank-name, .won-title, .rank-step, .moves li, .duel figcaption, .rules dt),
:lang(hi) :is(h1, h2, .board-label, .rank-name, .won-title, .rank-step, .duel figcaption, .rules dt) { font-weight: 800; }
.brand { font-family: "Dela Gothic One", "Lexend", system-ui, sans-serif !important; font-weight: 400 !important; }

/* Bar */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px max(16px, calc((100% - 1160px) / 2));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font: 22px/1 var(--display); color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.links { display: flex; gap: 18px; margin-left: auto; }
.links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.links a:hover { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 4px; }
.lang select {
  font: 500 15px var(--body); color: var(--ink); background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; max-width: 46vw;
}
.get {
  display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700;
  padding: 14px 22px; border-radius: 16px; box-shadow: 0 4px 0 var(--teal-deep);
  transition: transform .12s ease, box-shadow .12s ease;
}
.get:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--teal-deep); }
.get:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--teal-deep); }
.get.small { padding: 9px 14px; border-radius: 12px; font-size: 15px; box-shadow: 0 3px 0 var(--teal-deep); }
.get.big { font-size: 21px; padding: 18px 28px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .get { color: #08201E; } }
:root[data-theme="dark"] .get { color: #08201E; }
@media (max-width: 760px) { .links { display: none; } .lang { margin-left: auto; } }
@media (max-width: 420px) { .get.small { display: none; } }

main > section { padding-block: clamp(48px, 8vw, 96px); padding-inline: max(16px, calc((100% - 1160px) / 2)); }

/* 1. Hero: the board on the ring */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 5vw, 64px) !important; }
.hero h1 { margin-top: 4px; }
.stars { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.stars-label { font-size: 15px; color: var(--muted); font-weight: 500; }
.week { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.week li { display: grid; justify-items: center; gap: 2px; font-size: 12px; color: var(--muted); min-width: 26px; }
.week b {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: block;
  background: var(--paper-2);
}
.week li.star b { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 4px var(--paper-2); }
.week li.today span { color: var(--ink); font-weight: 700; }

.arena { position: relative; display: grid; justify-items: center; gap: 14px; }
.dohyo {
  position: relative; width: min(100%, 540px); aspect-ratio: 1; border-radius: 28px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--clay) 70%, #fff) 0 34%, var(--clay) 66%, var(--clay-2) 100%);
  box-shadow: 0 30px 50px -30px rgba(70, 45, 10, .55), inset 0 -12px 30px rgba(90, 60, 20, .18);
}
/* A real dohyō is a square clay mound with the tawara, a ring of straw
   bales, set into it. */
.dohyo::before {
  content: ""; position: absolute; inset: 2.5%; border-radius: 50%;
  background: repeating-conic-gradient(var(--straw) 0 4.6deg, color-mix(in srgb, var(--straw) 70%, #fff) 4.6deg 5deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 15px), #000 calc(100% - 14px), #000 calc(100% - 1px), transparent 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - 15px), #000 calc(100% - 14px), #000 calc(100% - 1px), transparent 100%);
  opacity: .9;
}
.board-wrap { position: relative; z-index: 1; width: 90%; display: grid; justify-items: center; }
.bench { display: grid; justify-items: center; gap: 8px; width: min(100%, 540px); }
.board-label { position: absolute; z-index: 2; top: -15px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap;
  font: 15px/1 var(--display); color: #FFF4EC; background: var(--seal); padding: 7px 14px; border-radius: 999px; letter-spacing: .04em; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.board {
  width: 100%; display: grid; gap: 3px; /* columns and rows: set from the board's size */
}
.cell { display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; border-radius: 8px; user-select: none; }
.cell.num { aspect-ratio: 1; font-size: clamp(14px, 2.4vw, 21px); background: var(--paper-2); color: var(--ink); box-shadow: 0 2px 0 var(--tile-edge); }
.cell.op { font-size: clamp(11px, 1.8vw, 16px); color: color-mix(in srgb, var(--ink) 70%, transparent); }
.cell.blank {
  background: color-mix(in srgb, var(--paper-2) 60%, transparent); box-shadow: none;
  border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); cursor: pointer;
}
.cell.blank.sel { border: 3px solid var(--teal); background: var(--paper-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.cell.placed { background: var(--tile); border: 0; box-shadow: 0 3px 0 var(--tile-edge); cursor: pointer; color: var(--teal-ink); animation: drop .22s ease-out; }
.cell.ok { background: color-mix(in srgb, var(--good) 16%, var(--paper-2)); color: var(--good); }
.cell.shake { animation: shake .42s ease; border-color: var(--bad) !important; }
@keyframes drop { from { transform: translateY(-10px) scale(.92); } to { transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.bank { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; min-height: 52px; }
.tile {
  width: clamp(44px, 8vw, 56px); aspect-ratio: 1; border-radius: 12px; border: 0; cursor: pointer;
  font: 800 clamp(19px, 3.4vw, 25px)/1 var(--body); font-variant-numeric: tabular-nums;
  background: var(--tile); color: var(--ink); box-shadow: 0 4px 0 var(--tile-edge), 0 8px 14px -8px rgba(60,40,10,.5);
  transition: transform .1s ease;
}
.tile:hover { transform: translateY(-2px); }
.tile:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--tile-edge); }
.tile:focus-visible, .cell:focus-visible, .rank-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.say { position: relative; flex: 1; margin: 0 0 18px; padding: 10px 14px; min-height: 2.9em; display: flex; align-items: center;
       font-size: 15px; line-height: 1.35; font-weight: 500; color: var(--muted);
       background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; }
.say::before { content: ""; position: absolute; left: -7px; bottom: 14px; width: 12px; height: 12px; background: var(--paper-2);
               border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.say.bad { color: var(--bad); }
.say:empty { visibility: hidden; }
.board-tools { display: flex; gap: 8px; }
.tool {
  font: 600 14px var(--body); color: var(--ink); background: color-mix(in srgb, var(--paper-2) 75%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 999px; padding: 6px 14px; cursor: pointer;
}
/* The sumo stands under the ring and says what happened, in a bubble. */
.speak { display: flex; align-items: flex-end; gap: 10px; width: 100%; max-width: 540px; }
.mascot { flex: none; width: clamp(64px, 9vw, 92px); height: auto; filter: drop-shadow(0 8px 10px rgba(60, 40, 10, .22)); pointer-events: none; }
.mascot.bounce { animation: bounce .7s ease; }
@keyframes bounce { 30% { transform: translateY(-16px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }

.won {
  position: absolute; inset: 12%; z-index: 3; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; text-align: center; gap: 6px; padding: 8%;
  background: color-mix(in srgb, var(--paper-2) 94%, transparent); box-shadow: var(--shadow);
  animation: pop .35s ease-out;
}
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.stamp {
  width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--seal); display: grid; place-items: center;
  color: var(--seal); transform: rotate(-10deg); animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1);
}
.stamp span { font-size: 44px; line-height: 1; }
@keyframes stamp { from { transform: scale(2.2) rotate(-25deg); opacity: 0; } to { transform: rotate(-10deg); opacity: 1; } }
.won-title { font: 30px/1 var(--display); margin: 4px 0 0; }
.won-star { font-size: 15px; color: var(--muted); max-width: 26ch; margin: 0; }
.won-later { font-size: 13px; color: var(--muted); margin: 0; }
.won .get { padding: 11px 16px; font-size: 16px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .arena { order: -1; }
}
@media (max-width: 460px) {
  .dohyo { width: 100%; border-radius: 20px; }
  .board-wrap { width: 93%; }
  .board { gap: 2px; }
  .cell.num { border-radius: 6px; font-size: 15px; }
  .cell.blank { border-width: 2px; }
  .say { font-size: 14px; }
  .bank { gap: 6px; }
  .tile { width: 40px; border-radius: 10px; font-size: 19px; }
  .won { inset: 4%; padding: 6%; }
  .won-star { font-size: 13px; }
}

/* 2. Fact */
.fact-band { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding-block: 0 !important; }
.fact {
  margin: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); position: relative;
}
.fact blockquote { margin: 0 0 14px; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.fact figcaption { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 15px; color: var(--muted); }
#fact-cat:not(:empty) { background: var(--tile); color: var(--ink); font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.fact-art { width: clamp(90px, 13vw, 150px); }
@media (max-width: 620px) { .fact-band { grid-template-columns: 1fr; } .fact-art { display: none; } }

/* 3. Story */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 5vw, 64px); align-items: center; }
.story-art { display: grid; place-items: center; }
.story-art img { width: min(100%, 440px); }
.story p { font-size: 19px; max-width: 58ch; }
@media (max-width: 760px) { .story { grid-template-columns: 1fr; } .story-art img { width: 70%; } }

/* 4. Banzuke */
.banzuke { background: var(--teal-deep); color: var(--on-teal); position: relative; overflow: hidden; }
.banzuke .kicker { color: #F2C14E; }
.banzuke .lead { color: color-mix(in srgb, var(--on-teal) 80%, transparent); }
.banzuke-head { max-width: 780px; }
.ladder {
  list-style: none; margin: 34px 0 10px; padding: 0 0 12px;
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; align-items: end;
}
/* a staircase: each rank stands a step higher than the one before */
.rank { --step: 0; padding-bottom: calc(var(--step) * 14px); }
.r1 { --step: 0; } .r2 { --step: 1; } .r3 { --step: 2; } .r4 { --step: 3; } .r5 { --step: 4; }
.r6 { --step: 5; } .r7 { --step: 6; } .r8 { --step: 7; } .r9 { --step: 8; } .r10 { --step: 9; }
.rank-card {
  width: 100%; display: grid; justify-items: center; gap: 2px; text-align: center; cursor: pointer;
  font: inherit; color: var(--ink); background: var(--paper-2); border: 0; border-radius: 16px;
  padding: 10px 6px 12px; box-shadow: 0 6px 0 rgba(0,0,0,.22); position: relative;
}
.rank-card:hover { transform: translateY(-3px); }
.rank-step {
  position: absolute; top: 6px; left: 8px; font: 13px/1 var(--display); color: var(--muted);
}
.rank-pic { width: 100%; aspect-ratio: 478 / 640; display: grid; place-items: end center; overflow: hidden; border-radius: 10px; background: color-mix(in srgb, var(--tile) 45%, var(--paper-2)); }
.rank-pic img, .rank-pic video { width: 100%; height: 100%; object-fit: contain; }
.rank-name { font: clamp(11.5px, 1.1vw, 14px)/1.15 var(--display); margin-top: 6px; word-break: keep-all; overflow-wrap: normal; }
.rank-desc { font-size: 12.5px; line-height: 1.25; color: var(--muted); }
.rank-pts { font-size: 11.5px; font-weight: 700; color: var(--teal-ink); margin-top: 2px; }
.r10 .rank-card { background: linear-gradient(180deg, #FFF6DC, #FBE7B0); box-shadow: 0 6px 0 #9C7424, 0 0 0 3px #F2C14E; color: #1E1A15; }
.r10 .rank-desc { color: #6B5420; } .r10 .rank-pts { color: #6B4E10; }
.banzuke-foot { font-size: 15px; color: color-mix(in srgb, var(--on-teal) 75%, transparent); margin-top: 18px; }
@media (max-width: 980px) {
  .ladder { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-inline: 2px; margin-inline: -2px; }
  .rank { flex: 0 0 132px; scroll-snap-align: start; padding-bottom: calc(var(--step) * 8px); }
}

/* 5. How */
.moves { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: m; }
.moves li { background: var(--paper-2); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px 20px; counter-increment: m; position: relative; }
.moves li::before { content: counter(m); position: absolute; top: 14px; right: 18px; font: 34px/1 var(--display); color: color-mix(in srgb, var(--ink) 14%, transparent); }
.moves img { height: 128px; width: auto; display: block; }
.moves p { color: var(--muted); font-size: 16.5px; margin: 0; }
.moves b { color: var(--bad); white-space: nowrap; }
@media (max-width: 980px) { .moves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .moves { grid-template-columns: minmax(0, 1fr); } .moves li { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 14px; align-items: start; } .moves img { height: 96px; grid-row: span 2; } .moves h3 { margin-top: 2px; } }

/* 6. Eyes */
.eyes, .people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 64px); align-items: center; }
.eyes { background: color-mix(in srgb, var(--tile) 55%, var(--paper)); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; font-size: 17.5px; }
.ticks li::before { content: "○"; position: absolute; left: 0; top: -1px; font-weight: 800; color: var(--teal-ink); font-size: 20px; }
.dial { background: var(--paper-2); border-radius: 28px; padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.sample { display: flex; align-items: center; justify-content: center; gap: .3em; min-height: 160px; --z: 1.25; font-size: calc(30px * var(--z)); transition: font-size .2s ease; flex-wrap: wrap; }
.sample .t { display: grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 .2em; border-radius: .3em; background: var(--tile); box-shadow: 0 .1em 0 var(--tile-edge); font-weight: 800; font-variant-numeric: tabular-nums; }
.sample .o { font-weight: 700; color: var(--muted); }
.range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-weight: 600; font-size: 16px; }
.range input { width: 100%; accent-color: var(--teal); height: 32px; }
.range output { font-variant-numeric: tabular-nums; min-width: 4.2em; text-align: right; }
@media (max-width: 860px) { .eyes, .people { grid-template-columns: 1fr; } }

/* 7. People: a duel scorecard */
.duel { margin: 0; background: var(--paper-2); border-radius: 28px; padding: 22px clamp(16px, 3vw, 28px); box-shadow: var(--shadow); }
.duel figcaption { font: 22px/1 var(--display); margin-bottom: 10px; }
.duel table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.duel th, .duel td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); }
.duel th:first-child { text-align: left; font-weight: 500; color: var(--muted); }
.duel thead th { font-weight: 800; color: var(--ink); }
.duel td.w { color: var(--good); font-weight: 700; }
.duel td.w::after { content: " ✓"; }
.duel tfoot th, .duel tfoot td { border: 0; font-weight: 800; font-size: 20px; color: var(--ink); padding-top: 14px; }
.duel td.win { color: var(--seal); }
.duel td.win::before { content: "○ "; }
.duel-note { margin: 12px 0 0; font-size: 15px; color: var(--muted); font-style: italic; }

/* 8. Fair */
.fair { max-width: none; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 26px 0 0; }
.rules div { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; background: var(--paper-2); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; }
.rules dt { font: 22px/1.2 var(--display); color: var(--seal); text-align: center; }
.rules dd { margin: 0; font-size: 17px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* 9. Final */
.final { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 4vw, 48px); align-items: center; background: var(--teal-deep); color: var(--on-teal); }
.final img { width: clamp(120px, 18vw, 220px); }
.final p { font-size: 19px; max-width: 52ch; color: color-mix(in srgb, var(--on-teal) 85%, transparent); }
.final .get { background: #F2C14E; color: #1E1A15; box-shadow: 0 5px 0 #9C7424; }
@media (max-width: 560px) { .final { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

.foot { padding: 28px max(16px, calc((100% - 1160px) / 2)) 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); }
.foot p { margin: 0; }
.mail { user-select: all; }
