/* KING: /king/ (歴代KING) and the homepage "最新のKING" block. Site tokens from styles.css.
   The person is the subject: photo and name first, the KING wording second. */

/* Shared pieces */
.king-photo-crown { width: 34%; max-width: 5rem; height: auto; color: var(--orange); }
.is-blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  background: radial-gradient(120% 90% at 50% 0%, #34489a 0%, var(--blue) 55%, #1b2652 100%); color: #fff; }
.king-photo-initial { font-family: 'Archivo Black', 'Noto Sans JP', sans-serif; font-size: clamp(3.5rem, 12vw, 6rem); line-height: 1; color: rgba(255, 255, 255, .9); }
.king-latest-photo, .king-card-photo, .home-king-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.king-latest-photo img, .king-card-photo img, .home-king-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* A designed champion card is shown whole, in its own 4:5 shape. */
.king-latest-photo.is-card, .king-card-photo.is-card, .home-king-photo.is-card { aspect-ratio: 4 / 5; background: #f7f1df; }
.is-card img { object-fit: contain; }
/* Foil: tilt toward the pointer, a moving shine, and a one-off sweep when the card comes into view. */
.is-foil { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2, .8, .2, 1), box-shadow .6s; }
.is-foil.is-tilting { transition: transform .1s linear, box-shadow .3s; box-shadow: 0 22px 40px -18px rgba(23, 24, 22, .45); }
.is-card { position: relative; }
.king-foil, .king-glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; }
.king-foil { mix-blend-mode: color-dodge; background: linear-gradient(115deg, transparent 25%, rgba(255, 214, 120, .65) 42%, rgba(255, 255, 255, .8) 50%, rgba(255, 140, 170, .45) 58%, transparent 75%) var(--mx, 50%) var(--my, 50%) / 260% 260% no-repeat; }
.king-glare { mix-blend-mode: soft-light; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .9), transparent 45%); }
.is-tilting .king-foil { opacity: .55; }
.is-tilting .king-glare { opacity: .8; }
.is-shining .king-foil { animation: king-sweep 1.5s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes king-sweep {
  0% { opacity: 0; background-position: 100% 100%; }
  25% { opacity: .75; }
  100% { opacity: 0; background-position: 0% 0%; }
}
@media (prefers-reduced-motion: reduce) { .is-foil { transform: none; } }
.king-badge { align-self: flex-start; margin: 0; padding: .3rem .7rem; border-radius: 99px; background: var(--orange); color: #111; font-size: .72rem; font-weight: 800; }
.king-facts { display: grid; gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.king-facts div { display: flex; gap: 1rem; align-items: baseline; padding: .6rem .8rem; background: var(--paper); }
.king-facts dt { flex: none; width: 4.4rem; font: 800 .62rem/1 'Noto Sans JP', sans-serif; letter-spacing: .14em; color: var(--blue); }
.king-facts dd { margin: 0; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.king-comment { margin: 0; padding-left: 1rem; border-left: 3px solid var(--orange); }
.king-comment p { margin: 0; font-weight: 700; line-height: 1.8; }
.king-comment p::before { content: '“'; } .king-comment p::after { content: '”'; }
.king-copy, .king-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem 1rem; border: 1px solid currentColor; border-radius: 99px; background: none; color: inherit; font: 700 .8rem/1.2 'Noto Sans JP', sans-serif; text-decoration: none; cursor: pointer; }
.king-copy:hover, .king-action:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.king-page a:focus-visible, .king-page button:focus-visible, .king-page summary:focus-visible, .home-king a:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* /king/ page shell */
.king-page main { max-width: 1120px; }
.king-page .news-page-header .news-button { flex: none; white-space: nowrap; }
.king-page .news-page-header .brand--logo { min-width: 0; }
.king-page .news-page-header .brand--logo img { max-width: 100%; width: auto; }
.king-intro { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.king-kicker { margin: 0; font: 800 .72rem/1 'Noto Sans JP', sans-serif; letter-spacing: .18em; color: var(--orange); }
.king-title { word-break: keep-all; margin: .8rem 0 0; font-size: clamp(1.9rem, 5.5vw, 3.4rem); font-weight: 900; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.king-lead { margin: .8rem 0 0; font-size: clamp(.9rem, 2vw, 1rem); font-weight: 700; line-height: 1.8; color: var(--blue); }
.king-state { padding: 2rem 0; line-height: 1.8; color: var(--blue); }
.king-preview-note { display: inline-block; margin: 0 0 1rem; padding: .4rem .75rem; border: 1px dashed var(--orange); border-radius: 4px; font-size: .75rem; font-weight: 700; color: var(--orange); }

/* Latest KING: the one dark card on the page */
.king-latest { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--ink); color: #fff; border-radius: 6px; overflow: hidden; scroll-margin-top: 1rem; }
.king-latest-body { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.4rem, 4vw, 3rem); min-width: 0; }
.king-latest-label { display: flex; align-items: center; gap: .5rem; margin: 0; font: 800 .72rem/1 'Noto Sans JP', sans-serif; letter-spacing: .16em; color: var(--orange); }
.king-latest-crown { width: 1.4rem; height: auto; }
.king-latest-title { margin: .4rem 0 0; font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 800; color: rgba(255, 255, 255, .78); }
.king-latest-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .4rem; margin: 0; font-size: clamp(2.6rem, 8vw, 4.8rem); font-weight: 900; line-height: 1.08; overflow-wrap: anywhere; }
.king-latest-name small { font-size: .38em; font-weight: 700; opacity: .75; }
.king-latest-won { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: 0; padding-top: .9rem; border-top: 1px solid rgba(255, 255, 255, .2); font-weight: 700; color: rgba(255, 255, 255, .8); }
.king-latest-won time { color: #fff; font-weight: 800; }
.king-latest .king-facts { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .15); }
.king-latest .king-facts div { background: rgba(255, 255, 255, .05); }
.king-latest .king-facts dt { color: var(--orange); }
.king-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.king-latest .king-copy:hover, .king-latest .king-action:hover { background: #fff; border-color: #fff; color: var(--ink); }

/* History */
.king-section { margin-top: clamp(3rem, 7vw, 5rem); }
.king-section-title { margin: 0 0 1.2rem; padding-top: .8rem; border-top: 1px solid var(--ink); font-size: 1.1rem; font-weight: 900; letter-spacing: .04em; }
.king-year { margin: 1.6rem 0 .9rem; font-family: 'Archivo Black', sans-serif; font-size: 1.4rem; letter-spacing: -.01em; color: var(--blue); }
.king-section-title + .king-year { margin-top: .4rem; }
.king-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.king-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; scroll-margin-top: 1rem; }
.king-card.is-target, .king-latest.is-target { box-shadow: 0 0 0 3px var(--orange); }
.king-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1rem; min-width: 0; }
.king-card-title { margin: 0; font-size: .8rem; font-weight: 800; color: var(--blue); }
.king-card-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .3rem; margin: 0; font-size: clamp(1.35rem, 4.5vw, 1.9rem); font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.king-card-name small { font-size: .55em; font-weight: 700; opacity: .7; }
.king-card-won { display: flex; flex-direction: column; gap: .1rem; margin: 0; font-size: .75rem; font-weight: 700; color: var(--blue); }
.king-card-won time { font-size: .9rem; color: var(--ink); }
.king-record { width: 100%; }
.king-record summary { display: flex; align-items: center; min-height: 44px; font-size: .8rem; font-weight: 800; color: var(--blue); cursor: pointer; }
.king-record[open] summary { margin-bottom: .6rem; }
.king-record > * + * { margin-top: .6rem; }
.king-record-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; font-weight: 700; color: var(--ink); }
.king-card .king-copy { margin-top: auto; padding: .45rem .9rem; font-size: .75rem; }

.king-next-lead { margin: .8rem 0 0; max-width: 40rem; font-weight: 800; line-height: 1.8; }
.king-steps li { align-items: flex-start; }
.king-step-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.king-step-text strong { font-size: 1rem; }
.king-step-text span { font-size: .82rem; font-weight: 700; }
.king-bonus { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin: .8rem 0 0; padding: .8rem 1rem; background: var(--ink); color: #fff; border-radius: 4px; font-weight: 700; line-height: 1.6; }
.king-bonus b { padding: .2rem .6rem; border-radius: 99px; background: #ffd36b; color: var(--ink); font-size: .75rem; }
.king-entrants { margin-top: 1.2rem; padding: 1rem; background: #fff3ea; border-radius: 4px; }
.king-entrants-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; }
.king-entrants-head h3 { margin: 0; font-size: 1rem; font-weight: 900; }
.king-entrants-link { display: inline-flex; align-items: center; min-height: 44px; font-size: .8rem; font-weight: 800; color: var(--ink); }
.king-entrants-lists { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: .4rem; }
.king-entrants-col h4 { margin: 0 0 .4rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.king-entrants-col ol { margin: 0; padding: 0; list-style: none; counter-reset: entrant; border-top: 1px solid rgba(23, 24, 22, .15); }
.king-entrants-col li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .45rem .2rem; border-bottom: 1px solid rgba(23, 24, 22, .15); counter-increment: entrant; }
.king-entrants-col li::before { content: counter(entrant); font-family: 'Archivo Black', sans-serif; font-size: .9rem; color: var(--blue); }
.king-entrant-name { display: flex; align-items: center; gap: .4rem; min-width: 0; font-weight: 800; overflow-wrap: anywhere; }
.king-entrant-both { display: grid; place-items: center; flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--orange); color: var(--ink); font-size: .65rem; font-weight: 900; }
.king-entrant-pt { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.king-entrants-note { margin: .6rem 0 0; font-size: .78rem; font-weight: 700; }
@media (min-width: 720px) { .king-entrants-lists { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.king-next-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; margin: 1.2rem 0 0; background: rgba(23, 24, 22, .25); border: 1px solid rgba(23, 24, 22, .25); border-radius: 4px; overflow: hidden; }
.king-next-facts div { display: flex; gap: 1rem; align-items: baseline; padding: .7rem 1rem; background: #f7a07c; }
.king-next-facts div.is-date { background: #fff3ea; }
.king-next-facts dt { flex: none; width: 6.5rem; font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.king-next-facts dd { margin: 0; font-weight: 900; }
.king-next-note { margin: .8rem 0 0; font-size: .8rem; font-weight: 700; }
@media (min-width: 720px) { .king-next-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Jump to the bottom */
.king-jump { position: fixed; right: calc(1rem + env(safe-area-inset-right, 0px)); bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 20; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--orange); color: var(--ink); font: 900 1.4rem/1 'Noto Sans JP', sans-serif; box-shadow: 0 0 0 2px #fff, 0 10px 24px -10px rgba(23, 24, 22, .6); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.king-jump:hover { background: var(--ink); color: #fff; transform: translateY(2px); }
.king-jump:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Most crowns, after every KING has had their place */
.king-ranking-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: crowns; }
.king-ranking-row { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; align-items: center; gap: .8rem; padding: .9rem .2rem; border-bottom: 1px solid var(--line); counter-increment: crowns; }
.king-ranking-row::before { content: counter(crowns); font-family: 'Archivo Black', sans-serif; font-size: 1.2rem; color: var(--blue); }
.king-ranking-name { display: flex; align-items: baseline; gap: .25rem; min-width: 0; font-size: 1.15rem; font-weight: 900; overflow-wrap: anywhere; }
.king-ranking-name small { font-size: .7em; font-weight: 700; opacity: .7; }
.king-ranking-crowns { display: flex; gap: .2rem; color: var(--orange); }
.king-ranking-crowns svg { width: 1.2rem; height: auto; }
.king-ranking-total { font-family: 'Archivo Black', sans-serif; min-width: 2.2rem; text-align: right; }

/* How to become the next KING */
.king-next { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(1.6rem, 5vw, 3rem); background: var(--orange); color: var(--ink); border-radius: 6px; }
.king-next-title { word-break: keep-all; margin: 0; font-size: clamp(1.9rem, 6vw, 3.2rem); font-weight: 900; line-height: 1.2; }
.king-steps { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.king-steps li { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; background: rgba(255, 255, 255, .35); border-radius: 4px; font-weight: 800; }
.king-step-num { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--ink); color: #fff; font-family: 'Archivo Black', sans-serif; font-size: .8rem; }
.king-next-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.king-next-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.3rem; border: 1.5px solid var(--ink); border-radius: 99px; color: var(--ink); font-size: .88rem; font-weight: 800; text-decoration: none; }
.king-next-button.is-primary { background: var(--ink); color: #fff; }
.king-next-button:hover { background: #fff; border-color: #fff; color: var(--ink); }

@media (min-width: 720px) {
  .king-latest { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .king-latest-photo { aspect-ratio: auto; min-height: 100%; }
  .king-latest-body { justify-content: center; }
  .king-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .king-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .king-steps li { position: relative; }
  .king-steps li + li::before { content: '→'; position: absolute; left: -.45rem; transform: translateX(-50%); font-weight: 900; }
}
@media (min-width: 1000px) { .king-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* /king/ light palette (same family as the homepage block): cream page, warm-white content,
   orange only for the main actions and small marks, gold only for crowns. */
.king-page {
  --k-bg: #f4f1e8; --k-panel: #fffdf7; --k-ink: #24231f; --k-muted: #706b61; --k-orange: #f46b35;
  --k-orange-text: #b9471d; --k-apricot: #fbeade; --k-gold: #ad8950; --k-line: #d8d3c9; --k-sand: #eee9df;
  background: var(--k-bg); color: var(--k-ink);
}
.king-page .king-kicker { color: var(--k-orange-text); }
.king-page .king-title { color: var(--k-ink); }
.king-page .king-lead, .king-page .king-state { color: var(--k-muted); }
.king-page .news-button { border-color: var(--k-line); color: var(--k-ink); background: transparent; }
.king-page .news-page-end { color: var(--k-muted); border-top-color: var(--k-line); }
.king-page .news-button:hover { border-color: var(--k-ink); background: transparent; color: var(--k-ink); }
.king-page a:focus-visible, .king-page button:focus-visible, .king-page summary:focus-visible { outline-color: var(--k-ink); }

/* Latest KING: warm white, big charcoal name, gold crown */
.king-page .king-latest { background: var(--k-panel); color: var(--k-ink); border: 1px solid var(--k-line); }
.king-page .king-latest-label { color: var(--k-orange-text); }
.king-page .king-latest-crown { color: var(--k-gold); }
.king-page .king-latest-title { color: var(--k-muted); font-weight: 500; }
.king-page .king-latest-name small { color: var(--k-muted); opacity: 1; font-weight: 500; }
.king-page .king-latest-won { color: var(--k-muted); border-top-color: var(--k-line); font-weight: 500; }
.king-page .king-latest-won time { color: var(--k-ink); }
.king-page .king-latest .king-facts { background: var(--k-line); border-color: var(--k-line); }
.king-page .king-latest .king-facts div { background: var(--k-panel); }
.king-page .king-facts dt, .king-page .king-latest .king-facts dt { color: var(--k-muted); }
.king-page .king-badge { background: var(--k-apricot); color: var(--k-orange-text); }
.king-page .king-comment { border-left-color: var(--k-gold); }
.king-page .king-copy, .king-page .king-action { border: 1px solid var(--k-line); background: transparent; color: var(--k-ink); }
.king-page .king-copy:hover, .king-page .king-action:hover,
.king-page .king-latest .king-copy:hover, .king-page .king-latest .king-action:hover { border-color: var(--k-ink); background: transparent; color: var(--k-ink); }

/* History and most crowns */
.king-page .king-section-title { border-top-color: var(--k-line); }
.king-page .king-year { color: var(--k-muted); }
.king-page .king-card { background: var(--k-panel); border-color: var(--k-line); }
.king-page .king-card-title, .king-page .king-card-won, .king-page .king-record summary { color: var(--k-muted); }
.king-page .king-card-won time, .king-page .king-record-link { color: var(--k-ink); }
.king-page .king-card.is-target, .king-page .king-latest.is-target { box-shadow: 0 0 0 3px var(--k-orange); }
.king-page .king-ranking-list { background: var(--k-panel); border: 1px solid var(--k-line); border-radius: 6px; padding: 0 1rem; }
.king-page .king-ranking-row { border-bottom-color: var(--k-line); }
.king-page .king-ranking-row:last-child { border-bottom: 0; }
.king-page .king-ranking-row::before { color: var(--k-muted); }
.king-page .king-ranking-crowns { color: var(--k-gold); }

/* How to become the next KING: sand panel, warm-white cards, orange only on the main button */
.king-page .king-next { background: var(--k-sand); color: var(--k-ink); }
.king-page .king-next-lead { font-weight: 500; color: var(--k-ink); }
.king-page .king-steps li { background: var(--k-panel); border: 1px solid var(--k-line); }
.king-page .king-steps li + li::before { color: var(--k-muted); }
.king-page .king-step-num { background: var(--k-apricot); color: var(--k-orange-text); }
.king-page .king-step-text strong { color: var(--k-ink); }
.king-page .king-step-text span { color: var(--k-muted); font-weight: 500; }
.king-page .king-bonus { background: var(--k-apricot); color: var(--k-ink); font-weight: 500; }
.king-page .king-bonus b { padding: 0; background: none; color: var(--k-orange-text); font-size: .8rem; font-weight: 800; }
.king-page .king-bonus strong { font-weight: 900; }
.king-page .king-entrants { background: var(--k-panel); border: 1px solid var(--k-line); }
.king-page .king-entrants-col h4 { color: var(--k-ink); }
.king-page .king-entrants-col ol, .king-page .king-entrants-col li { border-color: var(--k-line); }
.king-page .king-entrants-col li::before { color: var(--k-muted); }
.king-page .king-entrant-pt { text-align: right; }
.king-page .king-entrant-both { background: var(--k-apricot); color: var(--k-orange-text); }
.king-page .king-entrants-note { color: var(--k-muted); font-weight: 500; }
.king-page .king-next-facts { background: var(--k-line); border-color: var(--k-line); }
.king-page .king-next-facts div, .king-page .king-next-facts div.is-date { background: var(--k-panel); }
.king-page .king-next-facts dt { color: var(--k-muted); font-weight: 500; }
.king-page .king-next-note { color: var(--k-muted); font-weight: 500; }
.king-page .king-next-button { border: 1px solid var(--k-line); background: transparent; color: var(--k-ink); }
.king-page .king-next-button.is-primary { border-color: var(--k-orange); background: var(--k-orange); color: var(--k-ink); }
.king-page .king-next-button:hover { border-color: var(--k-ink); background: transparent; color: var(--k-ink); }
.king-page .king-next-button.is-primary:hover { border-color: #e85a22; background: #e85a22; }

/* The ↓ button: small and quiet so it does not sit on top of the lists */
.king-page .king-jump { width: 40px; height: 40px; background: rgba(255, 253, 247, .92); color: var(--k-muted); font-size: 1.05rem;
  box-shadow: 0 0 0 1px var(--k-line), 0 6px 14px -10px rgba(36, 35, 31, .5); }
.king-page .king-jump:hover { background: var(--k-panel); color: var(--k-ink); }

/* Homepage block (#king): warm magazine layout. Champion photo and name first, then the next final, then the rules. */
.home-king {
  --hk-bg: #f4f1e8; --hk-panel: #fffdf7; --hk-ink: #24231f; --hk-muted: #706b61; --hk-orange: #f46b35;
  --hk-orange-text: #b9471d; --hk-apricot: #fbeade; --hk-gold: #ad8950; --hk-line: #d8d3c9;
  background: var(--hk-bg); color: var(--hk-ink); padding: clamp(3rem, 8vw, 6rem) var(--pad);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}
.home-king-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 2.75rem); }
.home-king-kicker { display: flex; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 500; line-height: 1.4; letter-spacing: .12em; }
.home-king-kicker i { position: relative; flex: 1; height: 1px; background: var(--hk-line); }
.home-king-kicker i::after { content: ''; position: absolute; right: 0; top: 50%; width: 9px; height: 9px; background: var(--hk-orange); transform: translate(0, -50%) rotate(45deg); }
.home-king-head { display: grid; gap: .6rem; }
.home-king h2 { margin: 0; font-size: clamp(1.7rem, 7.5vw, 3.25rem); font-weight: 900; line-height: 1.35; letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }
.home-king-sub { margin: 0; font-size: .94rem; line-height: 1.7; color: var(--hk-muted); }
.home-king-empty { margin: 0; line-height: 1.9; color: var(--hk-muted); }
.home-king-empty a { color: inherit; font-weight: 700; }

.home-king-card { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--hk-panel); border-radius: 4px; overflow: hidden; }
.home-king-photo { position: relative; aspect-ratio: 4 / 3; }
.home-king-photo img { object-position: center 35%; }
.home-king-badge { position: absolute; right: 12px; top: 12px; padding: .25rem .55rem; background: var(--hk-panel); font-size: .62rem; font-weight: 500; letter-spacing: .12em; line-height: 1.4; }
.home-king-body { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1.25rem; min-width: 0; }
.home-king-title { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .81rem; font-weight: 500; line-height: 1.5; letter-spacing: .04em; color: var(--hk-muted); }
.home-king-crown { width: .95rem; height: auto; color: var(--hk-gold); }
.home-king-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4rem; width: 100%; margin: 0; padding-bottom: .9rem; border-bottom: 1px solid var(--hk-line);
  font-size: clamp(2.6rem, 15vw, 5rem); font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
.home-king-name small { font-size: 1.125rem; font-weight: 500; color: var(--hk-muted); }
.home-king-won { display: grid; gap: 0; margin: 0; font-size: .875rem; font-weight: 500; line-height: 1.7; font-variant-numeric: tabular-nums; }
.home-king-day { color: var(--hk-muted); }
.home-king-event em { font-style: normal; font-weight: 800; color: var(--hk-orange-text); }
.home-king-more { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; width: auto; min-height: 48px; margin-top: .5rem; padding: 0 1.75rem;
  border-radius: 99px; background: var(--hk-orange); color: var(--hk-ink); font-size: .95rem; font-weight: 700; line-height: 1.4; text-decoration: none; transition: background-color .18s ease; }
.home-king-more span, .home-king-entrants span { display: inline-block; transition: transform .18s ease; }
.home-king-more:hover { background: #e85a22; }
.home-king-more:hover span, .home-king-entrants:hover span { transform: translateX(3px); }
.home-king a:focus-visible { outline: 3px solid var(--hk-ink); outline-offset: 3px; }

.home-king-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-top: .5rem; }
.home-king-next { display: grid; gap: .35rem; min-width: 0; }
.home-king-next[hidden] { display: none; }
.home-king-label { margin: 0; font-size: .75rem; font-weight: 500; letter-spacing: .12em; color: var(--hk-muted); }
.home-king-when { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .9rem; margin: 0; font-variant-numeric: tabular-nums; }
.home-king-date { font-family: 'Archivo Black', 'Noto Sans JP', sans-serif; font-size: clamp(2.25rem, 10vw, 2.5rem); line-height: 1.1; }
.home-king-week { margin-left: -.5rem; font-size: 1.05rem; font-weight: 800; }
.home-king-time { font-size: 1.5rem; font-weight: 800; }
.home-king-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin-top: .3rem; }
.home-king-left { display: inline-flex; align-items: baseline; gap: .15rem; margin: 0; padding: .2rem .7rem; border-radius: 6px; background: var(--hk-apricot);
  color: var(--hk-orange-text); font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.home-king-left b { margin: 0 .1rem; font-size: 1.6rem; font-weight: 900; line-height: 1.15; }
.home-king-left b.is-today { margin: 0; font-size: 1rem; line-height: 1.6; }
.home-king-entrants { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--hk-ink); font-size: .88rem; font-weight: 700; text-decoration: none; }
.home-king-entrants span { color: var(--hk-orange); }

.home-king-facts { display: grid; gap: .9rem; }
.home-king-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--hk-line); border-bottom: 1px solid var(--hk-line); text-align: center; }
.home-king-stats div { display: flex; flex-direction: column; gap: .2rem; padding: .9rem .25rem; }
.home-king-stats div + div { border-left: 1px solid var(--hk-line); }
.home-king-stats dt { font-size: .75rem; line-height: 1.6; color: var(--hk-muted); }
.home-king-stats dd { margin: 0; font-size: clamp(1.5rem, 6.5vw, 1.75rem); font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.home-king-stats b { color: var(--hk-orange); font-weight: 900; }
.home-king-stats small { font-size: .55em; margin-left: .1em; }
.home-king-note { margin: 0; text-align: center; font-size: .75rem; line-height: 1.6; color: var(--hk-muted); }

@media (min-width: 900px) {
  .home-king-card { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .home-king-photo { aspect-ratio: auto; min-height: 100%; }
  .home-king-body { justify-content: center; padding: 2.5rem; }
  .home-king-name { font-size: clamp(4rem, 6vw, 5rem); }
  .home-king-bottom { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .home-king-more, .home-king-more span, .home-king-entrants span { transition: none; }
}

/* Opening card on /king/: a K♦ card back with a gold line drawing round it, flipped once the first KING is ready.
   Only shown while <html> has .is-king-loading (set by an inline script, so never without JavaScript). */
.king-loader { display: none; }
.is-king-loading .king-loader { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; background: var(--paper); transition: opacity .45s ease; }
.king-loader.is-leaving { opacity: 0; }
.king-loader-card { position: relative; width: 120px; height: 168px; perspective: 900px; opacity: 0; animation: king-loader-in .5s .15s ease-out forwards; }
.king-loader-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: king-loader-draw 1.8s .3s ease-out forwards, king-loader-glow 2.6s 2.1s ease-in-out infinite alternate; }
.king-loader-flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.3, .7, .2, 1); }
.king-loader.is-flipped .king-loader-flip { transform: rotateY(180deg); }
.king-loader-back, .king-loader-face { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 10px 18px rgba(92, 20, 30, .18)); }
.king-loader-face { transform: rotateY(180deg); }
.king-loader-text { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 0; font-size: .85rem; font-weight: 500; letter-spacing: .14em; color: #5c4b42; opacity: 0; animation: king-loader-in .5s .35s ease-out forwards; }
.king-loader-text small { font-size: .58rem; font-weight: 500; letter-spacing: .32em; color: #a08a6a; }
@keyframes king-loader-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes king-loader-draw { to { stroke-dashoffset: 0; } }
@keyframes king-loader-glow { from { opacity: 1; } to { opacity: .45; } }
.king-latest.is-arriving { animation: king-arrive .7s ease-out both; }
@keyframes king-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .king-loader-card, .king-loader-text { animation: none; opacity: 1; }
  .king-loader-line { animation: none; stroke-dashoffset: 0; }
  .king-latest.is-arriving { animation: none; }
}
