/* Public announcement page. No script; dark, calm, readable on a phone first. */
:root {
  --bg: #0f0d0c; --panel: #181513; --panel2: #201c19; --line: #3a322c; --ink: #ece4d8; --muted: #a79d90;
  --ember: #e08a35; --ember-soft: #3a2616; --gold: #d8b866;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "MS PMincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --hero-bg: radial-gradient(ellipse at 50% 120%, rgba(224, 138, 53, .28), transparent 62%), radial-gradient(ellipse at 20% -20%, rgba(216, 184, 102, .12), transparent 55%), #0b0908;
  --hero-ink: var(--ink); --toc-bg: rgba(15, 13, 12, .92); --shadow: 0 10px 30px rgba(0, 0, 0, .35); --pre-bg: #0b0908; --on-accent: #1a0f05; --head-line: var(--ember);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body.site { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
.preview-bar { position: sticky; top: 0; z-index: 30; background: var(--ember); color: var(--on-accent); text-align: center; font-weight: 700; font-size: .85rem; padding: 6px 12px; }

.hero { position: relative; overflow: hidden; padding: 72px 20px 56px; text-align: center; border-bottom: 1px solid var(--line);
  background: var(--hero-bg); color: var(--hero-ink); }
.hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(520px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--ember), transparent); }
.hero-in { max-width: 860px; margin: 0 auto; }
.eyebrow { margin: 0 0 14px; font-size: .72rem; letter-spacing: .5em; color: var(--ember); }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.25; letter-spacing: .06em; text-shadow: var(--hero-glow, 0 2px 24px rgba(224, 138, 53, .35)); }
.lead { margin: 18px 0 0; color: var(--muted); font-size: clamp(.95rem, 2.6vw, 1.1rem); }

.toc { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; padding: 10px 16px; background: var(--toc-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); justify-content: safe center; }
.preview-bar + .hero + .toc { top: 31px; }
.toc a { flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .86rem; background: var(--panel); }
.toc a:hover, .toc a:focus-visible { border-color: var(--ember); color: var(--ember); outline: none; }

.page { max-width: 860px; margin: 0 auto; padding: 28px 16px 72px; }
.prose > * { max-width: 100%; }
.prose h1 { font-family: var(--serif); font-size: 1.8rem; margin: 1.6em 0 .6em; }
.block { margin: 22px 0; padding: 22px clamp(16px, 4vw, 30px); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.block > h2, .prose > h2 { margin: 0 0 14px; padding-left: 14px; border-left: 4px solid var(--head-line); font-family: var(--serif); font-size: 1.35rem; line-height: 1.4; }
.prose h3 { margin: 1.6em 0 .5em; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.prose h4, .prose h5, .prose h6 { margin: 1.4em 0 .4em; }
.prose p { margin: .8em 0; overflow-wrap: anywhere; }
.prose a { color: var(--ember); text-underline-offset: 3px; }
.prose a:hover { color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.4em; margin: .8em 0; }
.prose li { margin: .25em 0; }
.prose li::marker { color: var(--ember); }
code, .prose code { overflow-wrap: anywhere; }
.prose blockquote { margin: 1em 0; padding: .4em 1em; border-left: 3px solid var(--gold); background: var(--panel2); color: var(--muted); border-radius: 0 8px 8px 0; }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); margin: 1.8em 0; }
.prose code { padding: .1em .4em; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; font-size: .9em; }
.prose pre { overflow-x: auto; padding: 14px; background: var(--pre-bg); border: 1px solid var(--line); border-radius: 10px; }
.prose pre code { padding: 0; border: 0; background: none; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.table-wrap, .prose table { max-width: 100%; }
.table-wrap { overflow-x: auto; margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose th, .prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--gold); font-weight: 600; white-space: nowrap; background: var(--panel2); }
.prose figure { margin: 1em 0; }
.prose figcaption { color: var(--muted); font-size: .85rem; text-align: center; }
.prose details { margin: .8em 0; padding: .6em 1em; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.files li { padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; }
.files .meta { display: block; margin-top: 2px; color: var(--muted); font-size: .82rem; }
.files p { margin: .4em 0 0; }

.foot { padding: 28px 16px 40px; text-align: center; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.foot p { margin: 0; }

body.neutral { min-height: 100vh; display: grid; place-items: center; }
.neutral-box { padding: 32px 24px; text-align: center; }
.neutral-box h1 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.neutral-box p { margin: 0; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .toc, .preview-bar { display: none; } body.site { background: #fff; color: #000; } .block { box-shadow: none; border-color: #999; background: #fff; } }

/* ---- designs (body[data-theme]) ---------------------------------------------------------------------------------- */
/* blog: close to the original blog article - plain white page on a light grey ground, small title bar, blue links */
body.site[data-theme="blog"] {
  --bg: #eef0f3; --panel: #ffffff; --panel2: #f6f7f9; --line: #dcdfe4; --ink: #333333; --muted: #6b7280;
  --ember: #2a6ebb; --ember-soft: #e4eefa; --gold: #8a5a00; --head-line: #2a6ebb;
  --hero-bg: #ffffff; --hero-ink: #222; --hero-glow: none; --toc-bg: rgba(255, 255, 255, .96); --shadow: 0 1px 3px rgba(0, 0, 0, .08); --pre-bg: #f3f4f6; --on-accent: #fff;
  --serif: var(--sans); color-scheme: light; font-size: 15.5px; line-height: 1.9;
}
body.site[data-theme="blog"] .hero { padding: 26px 16px 20px; text-align: left; background: #fff; border-bottom: 1px solid var(--line); }
body.site[data-theme="blog"] .hero::after { display: none; }
body.site[data-theme="blog"] .eyebrow { margin: 0 0 4px; letter-spacing: .08em; font-size: .72rem; color: var(--muted); }
body.site[data-theme="blog"] .hero h1 { font-size: clamp(1.3rem, 4.4vw, 1.75rem); letter-spacing: 0; }
body.site[data-theme="blog"] .lead { margin-top: 6px; font-size: .92rem; }
body.site[data-theme="blog"] .toc { justify-content: flex-start; border-bottom: 1px solid var(--line); }
body.site[data-theme="blog"] .toc a { border-radius: 4px; background: #fff; font-size: .82rem; }
body.site[data-theme="blog"] .page { max-width: 780px; padding-top: 18px; }
body.site[data-theme="blog"] .block { border-radius: 4px; margin: 16px 0; }
body.site[data-theme="blog"] .block > h2, body.site[data-theme="blog"] .prose > h2 { font-size: 1.15rem; border-left-width: 5px; background: var(--panel2); padding: 6px 10px 6px 12px; margin-left: -4px; }
body.site[data-theme="blog"] .prose h3 { color: var(--ink); border-bottom: 1px dotted var(--line); padding-bottom: 3px; }
body.site[data-theme="blog"] .prose strong { background: linear-gradient(transparent 62%, #fff1a8 62%); }
body.site[data-theme="blog"] .prose th { color: var(--ink); }

/* paper: warm off-white with a serif face and a vermilion accent */
body.site[data-theme="paper"] {
  --bg: #f4efe4; --panel: #fbf8f0; --panel2: #f1ebdc; --line: #d8cfb8; --ink: #2b2620; --muted: #766c5c;
  --ember: #b3402a; --ember-soft: #f3dcd5; --gold: #7a5a1a; --head-line: #b3402a;
  --hero-bg: linear-gradient(#f9f5ea, #f1ebdc); --hero-ink: #2b2620; --hero-glow: none; --toc-bg: rgba(244, 239, 228, .95); --shadow: 0 2px 8px rgba(80, 60, 20, .1); --pre-bg: #efe8d6; --on-accent: #fff;
  color-scheme: light; font-family: var(--serif);
}
body.site[data-theme="paper"] .hero h1 { letter-spacing: .12em; }
body.site[data-theme="paper"] .block { border-radius: 6px; }

/* ink: monochrome dark with a cool accent */
body.site[data-theme="ink"] {
  --bg: #111418; --panel: #1a1f26; --panel2: #222933; --line: #313a47; --ink: #e6e9ee; --muted: #9aa5b4;
  --ember: #6cb4ee; --ember-soft: #1c2b3b; --gold: #b7c8dc; --head-line: #6cb4ee;
  --hero-bg: linear-gradient(#1b2330, #111418); --toc-bg: rgba(17, 20, 24, .93); --pre-bg: #0d1013; --on-accent: #0a1622; --hero-glow: none;
}

/* ember: the dark bonfire design (the first one) */
body.site[data-theme="ember"] { color-scheme: dark; }

/* more designs */
body.site[data-theme="sakura"] { --bg: #fbf1f3; --panel: #fffafb; --panel2: #fbe8ec; --line: #efcdd5; --ink: #3a2a2e; --muted: #85666d; --ember: #c2456b; --gold: #8a4a5a; --head-line: #e0839f;
  --hero-bg: linear-gradient(#fff3f6, #fbe3e9); --hero-ink: #3a2a2e; --hero-glow: none; --toc-bg: rgba(251, 241, 243, .96); --shadow: 0 2px 8px rgba(190, 80, 110, .12); --pre-bg: #fbe8ec; --on-accent: #fff; color-scheme: light; }
body.site[data-theme="forest"] { --bg: #eef3ec; --panel: #fbfdfa; --panel2: #e5eee2; --line: #c6d6c1; --ink: #25301f; --muted: #5f6f58; --ember: #2f7a46; --gold: #6a5a1a; --head-line: #2f7a46;
  --hero-bg: linear-gradient(#e2eede, #d4e4cf); --hero-ink: #1f2d1a; --hero-glow: none; --toc-bg: rgba(238, 243, 236, .96); --shadow: 0 2px 8px rgba(40, 80, 50, .12); --pre-bg: #e5eee2; --on-accent: #fff; color-scheme: light; }
body.site[data-theme="night"] { --bg: #0c1226; --panel: #141c36; --panel2: #1b2546; --line: #2b3862; --ink: #e8ecfa; --muted: #98a4cc; --ember: #8fa8ff; --gold: #ffd479; --head-line: #8fa8ff;
  --hero-bg: radial-gradient(ellipse at 50% 130%, rgba(143, 168, 255, .3), transparent 60%), #0a0f20; --toc-bg: rgba(12, 18, 38, .94); --pre-bg: #09102a; --on-accent: #0a0f20; --hero-glow: 0 2px 22px rgba(143, 168, 255, .4); }
body.site[data-theme="mono"] { --bg: #ffffff; --panel: #ffffff; --panel2: #f2f2f2; --line: #222222; --ink: #000000; --muted: #333333; --ember: #0033cc; --gold: #000000; --head-line: #000000;
  --hero-bg: #ffffff; --hero-ink: #000; --hero-glow: none; --toc-bg: #ffffff; --shadow: none; --pre-bg: #f2f2f2; --on-accent: #fff; color-scheme: light; font-size: 17px; }
body.site[data-theme="mono"] .block { border-width: 2px; border-radius: 4px; }

/* ---- layouts (body[data-layout]) --------------------------------------------------------------------------------- */
.toc-h { display: none; flex: none; align-self: center; color: var(--muted); font-size: .8rem; margin-right: 4px; }
.shell { display: block; }
/* article: no table of contents, one flat column read from top to bottom */
body.site[data-layout="article"] .toc { display: none; }
body.site[data-layout="article"] .page { max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-top: 0; border-bottom: 0; padding: 20px clamp(14px, 4vw, 36px) 60px; }
body.site[data-layout="article"] .block { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 2.2em 0; }
body.site[data-layout="article"] .prose > h2, body.site[data-layout="article"] .block > h2 { border-left: 0; background: none; padding: 0; margin: 0 0 .6em; font-size: 1.2rem; }
body.site[data-layout="article"] .block > h2::before { content: "【"; }
body.site[data-layout="article"] .block > h2::after { content: "】"; }
body.site[data-layout="article"] .prose strong { background: none; }
/* inline / accordion: contents listed at the top of the text, not fixed */
body.site[data-layout="inline"] .toc, body.site[data-layout="accordion"] .toc { position: static; display: flex; flex-wrap: wrap; justify-content: flex-start; max-width: 860px; margin: 18px auto 0; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; backdrop-filter: none; width: calc(100% - 32px); }
body.site[data-layout="inline"] .toc-h, body.site[data-layout="accordion"] .toc-h, body.site[data-layout="sidebar"] .toc-h { display: block; }
/* topnav: the buttons stay at the top while scrolling (the first version) */
/* sidebar: contents fixed on the left on a wide screen */
body.site[data-layout="sidebar"] .shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); max-width: 1120px; margin: 0 auto; gap: 8px; }
body.site[data-layout="sidebar"] .toc { position: sticky; top: 0; align-self: start; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; height: 100vh; overflow-y: auto; padding: 18px 12px; border-bottom: 0; border-right: 1px solid var(--line); backdrop-filter: none; }
body.site[data-layout="sidebar"] .toc a { border-radius: 6px; }
@media (max-width: 859px) {
  body.site[data-layout="sidebar"] .shell { display: block; }
  body.site[data-layout="sidebar"] .toc { position: static; flex-direction: row; flex-wrap: wrap; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
/* accordion: every section folds */
.block > summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
.block > summary::-webkit-details-marker { display: none; }
.block > summary::before { content: "▸"; display: inline-block; margin-right: .5em; color: var(--ember); transition: transform .15s; }
details.block[open] > summary::before { transform: rotate(90deg); }
details.block[open] > summary { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* event main image at the head of the page */
.hero.has-img { padding-top: 22px; }
.hero-img { display: block; width: min(1100px, 100%); height: auto; margin: 0 auto 22px; border-radius: 10px; box-shadow: var(--shadow); }
.hero-placeholder { display: grid; place-content: center; gap: 8px; aspect-ratio: 16 / 9; padding: 16px; text-align: center; color: #eef1f6;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(160deg, #5b6472, #2c323c); border: 2px dashed rgba(255, 255, 255, .45); }
.hero-placeholder span { font-size: .78rem; letter-spacing: .5em; opacity: .85; }
.hero-placeholder b { font-family: var(--serif); font-size: clamp(1.4rem, 5vw, 2.6rem); letter-spacing: .12em; }
.hero-placeholder small { opacity: .8; font-size: .8rem; }

/* ---- widths (body[data-width]); "classic" keeps the original proportions ----------------------------------------- */
body.site[data-width="standard"] { --w: 1000px; }
body.site[data-width="wide"] { --w: 1240px; }
body.site[data-width="full"] { --w: 100%; }
body.site:not([data-width="classic"]) .hero { padding-left: 16px; padding-right: 16px; }
body.site:not([data-width="classic"]) .hero-in { max-width: var(--w); margin: 0 auto; }
body.site:not([data-width="classic"]) .hero-img { width: 100%; max-width: var(--w); }
body.site:not([data-width="classic"]) .page { max-width: var(--w); }
body.site[data-width="full"] .page { padding-left: clamp(14px, 3vw, 40px); padding-right: clamp(14px, 3vw, 40px); }
body.site:not([data-width="classic"])[data-layout="sidebar"] .shell { max-width: var(--w); }
body.site:not([data-width="classic"])[data-layout="inline"] .toc, body.site:not([data-width="classic"])[data-layout="accordion"] .toc { max-width: var(--w); }
body.site:not([data-width="classic"])[data-layout="article"] .hero-in { padding-left: clamp(14px, 4vw, 36px); padding-right: clamp(14px, 4vw, 36px); }
.neutral-ask { margin-top: 1.2rem; display: grid; gap: .6rem; text-align: left; }
.neutral-ask input { padding: .7rem; font-size: 1rem; width: 100%; box-sizing: border-box; }
.neutral-ask button { padding: .7rem; font-size: 1rem; }

/* links to the other public pages: a bar that stays at the top while scrolling, the page being read is filled in */
.crumbs { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 8px 14px; background: var(--toc-bg); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.3; white-space: nowrap; border: 1px solid transparent; }
.crumbs a:hover, .crumbs a:focus-visible { background: var(--panel2); border-color: var(--line); outline: none; }
.crumbs a[aria-current] { background: var(--ember); color: var(--on-accent); font-weight: 700; }
.preview-bar + .crumbs { top: 31px; }
body.has-crumbs { scroll-padding-top: 56px; }
body.has-crumbs .toc { top: 50px; }
body.has-crumbs .preview-bar + .hero + .toc { top: 81px; }
@media (min-width: 720px) { .crumbs { justify-content: center; } }

/* blocks of live data that a page's text puts in ({{ranking}} {{teams}} {{live}} {{pages}} {{event}}) */
.emb { margin: 14px 0; }
.emb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.emb-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.emb-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.emb-small { margin: .3em 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }
.emb-note { color: var(--muted); font-size: .9rem; }
/* the guide to the other pages: one row per page, the whole row is the link */
.emb-pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.emb-page { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 44px 16px 18px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.emb-page:hover, .emb-page:focus-visible { border-color: var(--ember); transform: translateY(-1px); outline: none; }
.emb-page-t { font-weight: 700; font-size: 1.05rem; color: var(--ember); }
.emb-page-d { font-size: .86rem; color: var(--muted); line-height: 1.6; }
.emb-page-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--muted); }
.emb-page:hover .emb-page-go { color: var(--ember); }
/* the list of the teams and their runners */
.emb-teams .emb-no { width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; }
.emb-teams .emb-team { font-weight: 700; }
.emb-teams thead th { color: var(--muted); font-size: .8rem; font-weight: 400; }
@media (max-width: 640px) {
  .emb-teams thead { display: none; }
  .emb-teams, .emb-teams tbody, .emb-teams tr, .emb-teams td { display: block; width: 100%; }
  .emb-teams tr { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .emb-teams td { border: 0; padding: 2px 6px; text-align: left; }
  .emb-teams td.emb-no { display: inline-block; width: auto; padding-right: 4px; }
  .emb-teams td.emb-team { display: inline-block; width: auto; }
  .emb-teams td[data-label]::before { content: attr(data-label) "　"; color: var(--muted); font-size: .8rem; }
}
.emb-link { display: block; font-weight: 700; text-decoration: none; color: var(--ember); }
.emb-link:hover { border-color: var(--ember); }
.emb-btn { display: inline-block; padding: 6px 14px; border-radius: 8px; background: var(--ember); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.prose .emb-btn { color: var(--on-accent); }
.emb-table { width: 100%; border-collapse: collapse; }
.emb-table th, .emb-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.emb-table .emb-n { text-align: right; font-variant-numeric: tabular-nums; }
.emb-table .emb-rank { width: 4em; font-weight: 700; color: var(--gold); }
.emb-pic { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.emb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.emb-strip figure { flex: none; margin: 0; width: 96px; }
.emb-strip img { width: 96px; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.emb-strip figcaption { font-size: .72rem; color: var(--muted); text-align: center; }
.foot-ver { margin: 4px 0 0; font-size: .72rem; opacity: .55; }
.emb-ranking .emb-table { max-width: 640px; }
.emb-ranking .emb-no { width: 3.2em; text-align: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.emb-card h3 .emb-no { display: inline-block; margin-right: .4em; padding: 0 .45em; border-radius: 6px; background: var(--ember-soft); color: var(--gold); font-size: .85em; font-variant-numeric: tabular-nums; }
/* the state of the teams: one table, a bar for the progress */
.emb-status td.emb-prog { min-width: 9em; }
.emb-bar { display: block; height: 6px; margin: 3px 0 2px; border-radius: 3px; background: var(--line); overflow: hidden; }
.emb-bar i { display: block; height: 100%; background: var(--ember); }
.emb-bar-n { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.emb-status th small { display: block; font-weight: 400; font-size: .7rem; }
.emb-status td small { color: var(--muted); }
.emb-heading { margin: 1.6em 0 .6em; font-size: 1rem; }
.emb-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.emb-shot { margin: 0; }
.emb-shot-t { font-weight: 700; margin-bottom: 4px; }
.emb-shot-t .emb-no { display: inline-block; margin-right: .4em; padding: 0 .45em; border-radius: 6px; background: var(--ember-soft); color: var(--gold); font-size: .85em; font-variant-numeric: tabular-nums; }
.emb-past { margin-top: 4px; font-size: .85rem; }
@media (max-width: 760px) {
  .emb-status thead { display: none; }
  .emb-status, .emb-status tbody, .emb-status tr, .emb-status td { display: block; width: 100%; }
  .emb-status tr { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .emb-status td { border: 0; padding: 2px 6px; text-align: left; }
  .emb-status td.emb-no, .emb-status td.emb-team { display: inline-block; width: auto; }
  .emb-status td[data-label]::before { content: attr(data-label) "　"; color: var(--muted); font-size: .8rem; }
}

/* the live page: one card per team (picture and how old it is, points and place, section and progress, earlier pictures) */
.emb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.emb-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.emb-card-h { display: flex; align-items: baseline; gap: 8px; }
.emb-card-h .emb-no { flex: none; padding: 0 .45em; border-radius: 6px; background: var(--ember-soft); color: var(--gold); font-size: .85em; font-variant-numeric: tabular-nums; }
.emb-card-name { flex: 1; min-width: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.emb-card-score { flex: none; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.emb-card-score b { font-size: 1.1rem; }
.emb-card-score small { display: block; color: var(--muted); font-size: .78rem; }
.emb-view { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; overflow: hidden; }
.emb-view > a { display: block; height: 100%; }
.emb-view .emb-pic { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.emb-view.emb-none { display: grid; place-items: center; background: var(--line); color: var(--muted); font-size: .9rem; }
.emb-age { position: absolute; left: 6px; bottom: 6px; padding: 2px 9px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.emb-age[data-level="fresh"] { background: #1b7f3b; }
.emb-age[data-level="warm"] { background: #a86a00; }
.emb-age[data-level="stale"] { background: #a12626; }
.emb-src { position: absolute; right: 6px; top: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; }
.emb-sub { position: absolute; right: 6px; bottom: 6px; width: 34%; aspect-ratio: 16 / 9; border: 2px solid #fff; border-radius: 6px; background: #000; overflow: hidden; }
.emb-sub .emb-sub-pic { display: block; width: 100%; height: 100%; object-fit: cover; }
.emb-sub .emb-age { left: 2px; bottom: 2px; padding: 0 6px; font-size: .66rem; }
.emb-sub .emb-src { right: 2px; top: 2px; padding: 0 5px; font-size: .62rem; }
.emb-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 0; }
.emb-facts > div { min-width: 0; }
.emb-facts > div:nth-child(-n+2) { grid-column: 1 / -1; }  /* the section and the progress take the full width; the rest sit two to a row */
.emb-facts dt { color: var(--muted); font-size: .76rem; }
.emb-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.emb-past .emb-small { margin: 0; }

.emb-view > a { cursor: zoom-in; }
.emb-team-link { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.emb-team-link:hover { text-decoration: underline; }
.emb-more { align-self: flex-start; font-size: .9rem; }
.emb-back { margin: 0 0 12px; }
.emb-card-wide { max-width: 640px; }

/* enlarging a picture (zoom.js): the whole screen, the picture as large as it fits (a small picture is scaled up too) */
.zoom-back { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: rgba(0, 0, 0, .88); color: #fff; }
.zoom-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; padding: 12px 56px; }
.zoom-img { width: 100%; height: 100%; object-fit: contain; border-radius: 6px; background: #000; }
.zoom-bar { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 8px 16px calc(12px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.zoom-cap { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.zoom-btn { position: absolute; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.zoom-btn:hover { background: rgba(255, 255, 255, .32); }
.zoom-close { top: 10px; right: 10px; }
.zoom-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.zoom-next { right: 8px; top: 50%; transform: translateY(-50%); }
.zoom-btn[hidden] { display: none; }
/* the progress bar of a team (a <progress>: the content policy does not allow style attributes) and the mark of a link to a stream */
progress.emb-bar { display: block; width: 100%; height: 6px; margin: 3px 0 2px; border: 0; border-radius: 3px; background: var(--line); appearance: none; -webkit-appearance: none; overflow: hidden; }
progress.emb-bar::-webkit-progress-bar { background: var(--line); }
progress.emb-bar::-webkit-progress-value { background: var(--ember); }
progress.emb-bar::-moz-progress-bar { background: var(--ember); }
.emb-ext { display: inline-block; margin-left: .2em; font-size: .8em; text-decoration: none; }
.emb-hint { margin: 0 0 10px; }

/* the title band of the pages that have the page bar (参加者一覧・大会当日の実況・大会レポート ...): kept low, so the content starts early */
body.site.has-crumbs[data-theme] .hero { padding: 12px 16px 10px; }
body.site.has-crumbs[data-theme] .hero.has-img { padding-top: 14px; }
body.site.has-crumbs .hero-img { margin-bottom: 12px; }
body.site.has-crumbs .eyebrow { margin: 0 0 1px; font-size: .64rem; letter-spacing: .28em; }
body.site.has-crumbs .hero h1 { font-size: clamp(1.2rem, 4vw, 1.6rem); line-height: 1.3; letter-spacing: .03em; }
body.site.has-crumbs .lead { margin: 1px 0 0; font-size: .85rem; line-height: 1.5; }
body.site.has-crumbs .page { padding-top: 12px; }
/* the target of the page links (#pagetitle): the page already keeps 64px free at the top for the page bar (html scroll-padding-top), so the
   title band comes to rest just under it, past the large main image */
#pagetitle { scroll-margin-top: 0; }
.emb-table .emb-n { white-space: nowrap; }
