
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
:root {
  --paper: #f4ecdc;
  --paper-dark: #e8dcc4;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #7a7a7a;
  --red: #b8102e;
  --red-dark: #8a0a22;
  --rule: #1a1a1a;
  --serif: Georgia, "Times New Roman", "Source Serif Pro", serif;
  --display: "Playfair Display", Georgia, serif;
}
html[data-script="cjk-sc"] {
  --serif: "Noto Serif SC", Georgia, "Times New Roman", serif;
  --display: "Noto Serif SC", "Playfair Display", Georgia, serif;
}
html[data-script="cjk-tc"] {
  --serif: "Noto Serif TC", Georgia, "Times New Roman", serif;
  --display: "Noto Serif TC", "Playfair Display", Georgia, serif;
}
html[data-script="ja"] {
  --serif: "Noto Serif JP", Georgia, "Times New Roman", serif;
  --display: "Noto Serif JP", "Playfair Display", Georgia, serif;
}
html[data-script="ko"] {
  --serif: "Noto Serif KR", Georgia, "Times New Roman", serif;
  --display: "Noto Serif KR", "Playfair Display", Georgia, serif;
}
html[data-script="th"] {
  --serif: "Noto Serif Thai", Georgia, "Times New Roman", serif;
  --display: "Noto Serif Thai", "Playfair Display", Georgia, serif;
}
html[data-script="ar"] {
  --serif: "Noto Naskh Arabic", Georgia, "Times New Roman", serif;
  --display: "Noto Naskh Arabic", "Playfair Display", Georgia, serif;
}
html[data-script="vi"] {
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --display: "Playfair Display", "Noto Serif", Georgia, serif;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(ellipse at top, rgba(0,0,0,0.04), transparent 70%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.012) 0 1px, transparent 1px 3px);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
html[data-script="cjk-sc"] .hero-headline,
html[data-script="cjk-tc"] .hero-headline,
html[data-script="ja"] .hero-headline,
html[data-script="ko"] .hero-headline,
html[data-script="th"] .hero-headline,
html[data-script="ar"] .hero-headline,
html[data-script="vi"] .hero-headline {
  letter-spacing: 0;
  line-height: 1.28;
  font-size: clamp(1.8rem, 5.2vw, 3.4rem);
}
html[data-script="cjk-sc"] .masthead h1,
html[data-script="cjk-tc"] .masthead h1,
html[data-script="ja"] .masthead h1,
html[data-script="ko"] .masthead h1,
html[data-script="th"] .masthead h1,
html[data-script="ar"] .masthead h1 { font-style: normal; letter-spacing: 0; }
html[data-script="ar"] .hero-deck,
html[data-script="ar"] .final-desc,
html[data-script="ar"] .player .quote,
html[data-script="ar"] .byline,
html[data-script="ar"] .lead,
html[data-script="th"] .hero-deck,
html[data-script="th"] .byline { font-style: normal; }
html[data-script="ar"] [data-i18n],
html[data-script="th"] [data-i18n] { letter-spacing: 0; }
html[data-script="ar"] .btn-primary,
html[data-script="ar"] .btn-ghost,
html[data-script="ar"] .safari-btn,
html[data-script="ar"] .dialog-foot button,
html[data-script="ar"] .safari-copy,
html[data-script="th"] .btn-primary,
html[data-script="th"] .btn-ghost,
html[data-script="th"] .safari-btn,
html[data-script="th"] .dialog-foot button,
html[data-script="th"] .safari-copy,
html[data-script="cjk-sc"] .btn-primary,
html[data-script="cjk-sc"] .btn-ghost,
html[data-script="cjk-tc"] .btn-primary,
html[data-script="cjk-tc"] .btn-ghost,
html[data-script="ja"] .btn-primary,
html[data-script="ja"] .btn-ghost,
html[data-script="ko"] .btn-primary,
html[data-script="ko"] .btn-ghost {
  letter-spacing: 0.02em;
  text-transform: none;
}
html[data-script="ar"] .lead::first-letter,
html[data-script="ar"] .safari-desc::first-letter,
html[data-script="th"] .lead::first-letter,
html[data-script="th"] .safari-desc::first-letter {
  float: none; font-size: inherit; font-weight: inherit;
  line-height: inherit; padding: 0; color: inherit;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .lead::first-letter,
html[dir="rtl"] .safari-desc::first-letter { float: right; padding: 6px 0 0 10px; }
html[dir="rtl"] .safari-bullets li { padding: 10px 22px 10px 0; }
html[dir="rtl"] .safari-bullets li::before { left: auto; right: 0; }
html[dir="rtl"] .dialog-disclaimer,
html[dir="rtl"] .safari-warn { border-left: none; border-right: 3px solid var(--red); }
html[dir="rtl"] .dialog-foot { text-align: left; }
html[dir="rtl"] .tl-time {
  border-right: none; border-left: 2px solid var(--red);
  padding-right: 0; padding-left: 12px; text-align: left;
}
html[dir="rtl"] .stat { border-right: none; border-left: 1px solid #aaa; }
html[dir="rtl"] .stat:last-child { border-left: none; }
html[dir="rtl"] .player::before { left: auto; right: 12px; }
html[dir="rtl"] .chart-box { direction: ltr; }
@media (max-width: 600px) {
  html[dir="rtl"] .tl-time { border-left: none; text-align: right; padding-left: 0; }
}
@media (min-width: 600px) {
  html[dir="rtl"] .footer { text-align: right; }
}

/* ===== Masthead ===== */
.masthead {
  border-bottom: 3px double var(--rule);
  padding: 14px 24px 8px;
  text-align: center;
  position: relative;
}
.masthead-top {
  display:flex; justify-content:space-between; align-items:center;
  font-size: 11px; letter-spacing: 0.08em; color: var(--muted);
  text-transform: uppercase;
  border-bottom: 1px solid #aaa;
  padding-bottom: 4px;
  margin-bottom: 12px;
}
.masthead-top .left, .masthead-top .right { display:flex; gap:14px; align-items:center; }
@media (max-width: 540px) {
  .masthead-top { flex-wrap: wrap; gap: 8px; }
  .masthead-top .right { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
}
.masthead h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  font-family: var(--display);
  font-style: italic;
}
.masthead .latin-tag {
  font-size: 10px; letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== Language switcher ===== */
.lang-switcher { position: relative; display: inline-block; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-family: "Noto Serif SC", "Noto Serif TC", "Noto Serif JP", "Noto Serif KR", "Noto Serif Thai", "Noto Naskh Arabic", "Noto Serif", Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1.2;
  transition: background .12s, color .12s;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.lang-chevron { font-size: 9px; line-height: 1; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--red);
  display: none;
  flex-direction: column;
  min-width: 210px;
  max-height: min(78vh, 560px);
  overflow-y: auto;
  z-index: 50;
}
.lang-menu.open { display: flex; }
.lang-option {
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: "Noto Serif SC", "Noto Serif TC", "Noto Serif JP", "Noto Serif KR", "Noto Serif Thai", "Noto Naskh Arabic", "Noto Serif", Georgia, serif;
  font-size: 13px;
  padding: 8px 14px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
}
.lang-name { flex: 1; text-align: left; }
.lang-code { width: 2.4em; flex: none; font-size: 10px; letter-spacing: 0.06em; color: var(--muted); }
.lang-option.active .lang-code { color: inherit; opacity: 0.85; }
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--paper-dark); }
.lang-option.active { background: var(--red); color: var(--paper); font-weight: 700; }
.lang-option .flag { font-size: 14px; line-height: 1; }

/* ===== Hero article ===== */
.hero-article {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.hero-tag {
  display:inline-block;
  background: var(--red); color: var(--paper);
  font-weight: 900; font-size: 11px; letter-spacing: 0.25em;
  padding: 4px 12px;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  margin-bottom: 14px;
}
.hero-headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 14px;
  font-family: var(--display);
  overflow-wrap: break-word;
}
.hero-headline .em { color: var(--red); font-style: italic; }
.hero-deck {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--ink-soft);
  max-width: 700px;
  margin: 0 auto 20px;
  font-weight: 500;
}
.byline {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  border-top: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
  padding: 6px 0;
  max-width: 600px;
  margin: 0 auto 22px;
}
.byline strong { color: var(--ink); text-transform: uppercase; letter-spacing: 0.1em; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
@media (min-width: 760px) { .hero-grid { grid-template-columns: 2fr 1fr; } }

.lead {
  font-size: 1.05rem;
  line-height: 1.75;
}
.lead::first-letter {
  font-size: 3.4rem;
  font-weight: 900;
  float: left;
  line-height: 0.85;
  padding: 6px 10px 0 0;
  color: var(--red);
  font-family: var(--display);
}
.lead strong { color: var(--ink); }
.lead em { font-style: italic; }
.lead .red { color: var(--red); font-weight: bold; }

.btc-card {
  border: 2px solid var(--ink);
  padding: 16px;
  text-align: center;
  background: var(--paper-dark);
  position: relative;
}
.btc-stamp {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: var(--paper);
  padding: 2px 12px; font-size: 10px; letter-spacing: 0.25em; font-weight: 900;
  white-space: nowrap;
}
.btc-card .lbl {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid #aaa; padding-bottom: 6px; margin-bottom: 10px;
}
.btc-card .num {
  font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 900; line-height: 1;
  color: var(--ink); font-family: "Playfair Display", Georgia, serif;
}
.btc-card .unit { font-size: 1.2rem; color: var(--ink-soft); }
.btc-card .sep { height: 1px; background: var(--ink); margin: 14px 0; opacity: 0.4; }
.btc-card .mkt-lbl { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.btc-card .mkt-val { font-size: 1.8rem; font-weight: 900; color: var(--red); font-family: "Playfair Display", Georgia, serif; }

.cta-row {
  display:flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin: 32px 0;
}
.btn-primary {
  background: var(--red); color: var(--paper);
  font-weight: 900; font-size: 14px; letter-spacing: 0.12em;
  padding: 14px 28px; border: 2px solid var(--red);
  text-transform: uppercase;
  transition: all .15s;
  font-family: inherit;
}
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-primary, .btn-ghost, .safari-btn, .dialog-foot button { white-space: normal; line-height: 1.35; }
.btn-ghost {
  background: transparent; color: var(--ink);
  font-weight: 700; font-size: 14px; letter-spacing: 0.12em;
  padding: 14px 24px; border: 2px solid var(--ink);
  text-transform: uppercase;
  transition: all .15s;
  font-family: inherit;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ===== Stats sidebar ===== */
.stats-section {
  max-width: 1100px; margin: 28px auto;
  padding: 0 24px;
  border-top: 3px double var(--rule);
  border-bottom: 3px double var(--rule);
}
.stats-head {
  text-align: center;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); padding: 8px 0;
  border-bottom: 1px solid #aaa;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  text-align: center; padding: 18px 8px;
  border-right: 1px solid #aaa;
}
.stat:last-child { border-right: none; }
.stat .lbl { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.stat .val { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900; font-family: "Playfair Display", Georgia, serif; }
.stat.r .val { color: var(--red); }

/* ===== Chart ===== */
.chart-section {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px;
}
.chart-head { text-align: center; margin-bottom: 22px; }
.chart-kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); font-weight: 900; }
.chart-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 900;
  font-family: var(--display); margin: 8px 0;
}
.chart-title .em { color: var(--red); font-style: italic; }
.chart-deck { font-style: italic; color: var(--ink-soft); max-width: 700px; margin: 0 auto; font-size: 14px; }

.chart-box {
  border: 2px solid var(--ink);
  padding: 16px;
  background: rgba(255,255,255,0.4);
}
.chart-info {
  display:flex; justify-content: space-between; align-items: center;
  font-size: 12px; border-bottom: 1px solid #aaa; padding-bottom: 8px; margin-bottom: 12px;
}
.chart-info .pair { font-weight: bold; }
.chart-info .chg { color: var(--red); font-weight: 900; border: 1px solid var(--red); padding: 2px 8px; }
.chart-canvas {
  position: relative; height: 200px;
  background-image: linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 100% 25%;
}
@media (min-width: 600px) { .chart-canvas { height: 280px; } }
#chart-svg { width:100%; height:100%; display:block; }
.chart-x {
  display: flex; justify-content: space-between;
  margin-top: 8px; font-size: 11px; color: var(--muted); letter-spacing: 0.05em;
}

/* ===== Timeline ===== */
.timeline-section {
  background: var(--paper-dark);
  border-top: 3px double var(--rule);
  border-bottom: 3px double var(--rule);
  padding: 40px 24px;
}
.timeline { max-width: 760px; margin: 0 auto; }
.timeline-head { text-align: center; margin-bottom: 30px; }
.tl-event {
  display: grid; grid-template-columns: 120px 1fr; gap: 18px;
  padding: 16px 0; border-bottom: 1px solid rgba(0,0,0,0.2);
}
.tl-event:last-child { border-bottom: none; }
.tl-time {
  font-size: 13px; font-weight: 900; color: var(--red);
  font-variant-numeric: tabular-nums; letter-spacing: 0.05em;
  border-right: 2px solid var(--red); padding-right: 12px; text-align: right;
}
.tl-body .tl-title {
  font-size: 17px; font-weight: 900; margin-bottom: 4px;
  font-family: var(--display);
}
.tl-body .tl-desc { font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
@media (max-width: 600px) {
  .tl-event { grid-template-columns: 1fr; gap: 4px; }
  .tl-time { border-right: none; border-bottom: 1px solid var(--red); padding-right: 0; padding-bottom: 4px; text-align: left; }
}

/* ===== Players ===== */
.players-section {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px;
}
.players-head { text-align: center; margin-bottom: 30px; }
.players-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 600px) { .players-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .players-grid { grid-template-columns: repeat(3, 1fr); } }
.player {
  border: 1px solid var(--ink); padding: 18px;
  position: relative;
}
.player::before {
  content: """;
  position: absolute; top: -22px; left: 12px;
  font-size: 80px; color: var(--red); opacity: 0.4;
  font-family: "Playfair Display", Georgia, serif; line-height: 1;
}
.player .id {
  font-size: 18px; font-weight: 900; margin-bottom: 4px;
  font-family: var(--display);
}
.player .role {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid #aaa; padding-bottom: 8px; margin-bottom: 10px;
}
.player .quote { font-size: 14px; line-height: 1.65; font-style: italic; color: var(--ink-soft); }

/* ===== Final CTA ===== */
.final-section {
  background: var(--ink); color: var(--paper);
  padding: 70px 24px; text-align: center;
  position: relative; overflow: hidden;
}
.final-section::before {
  content:""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(184,16,46,0.25), transparent 60%);
}
.final-content { position: relative; max-width: 600px; margin: 0 auto; }
.final-kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.final-title {
  font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 900; line-height: 1.1;
  font-family: var(--display);
}
.final-title .em { color: var(--red); font-style: italic; }
.final-desc { color: rgba(244,236,220,0.75); font-size: 15px; line-height: 1.7; margin: 18px 0 28px; font-style: italic; }
.final-foot { font-size: 11px; color: rgba(244,236,220,0.5); margin-top: 14px; letter-spacing: 0.1em; }

/* ===== Contact ===== */
.contact-section {
  background: #15161a;
  color: var(--paper);
  border-top: 3px double var(--rule);
  padding: 58px 24px 64px;
}
.contact-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: start;
}
.contact-intro { padding-top: 4px; }
.contact-kicker {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.24em;
  margin-bottom: 14px;
}
.contact-title {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  margin-bottom: 10px;
}
.contact-subtitle {
  color: var(--paper);
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.contact-copy {
  max-width: 34ch;
  color: rgba(244,236,220,0.66);
  font-size: 14px;
  line-height: 1.75;
}
.contact-form {
  background: #23252a;
  border: 1px solid rgba(244,236,220,0.18);
  padding: clamp(20px, 4vw, 32px);
}
.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.contact-field {
  display: block;
  color: rgba(244,236,220,0.86);
  font-size: 14px;
}
.contact-field em {
  color: #ef3944;
  font-style: normal;
  margin-left: 3px;
}
.contact-field input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid rgba(244,236,220,0.12);
  border-radius: 2px;
  background: #303238;
  color: var(--paper);
  font: 15px/1.4 var(--serif);
  outline: none;
  transition: border-color .15s, background .15s;
}
.contact-field input::placeholder { color: rgba(244,236,220,0.42); }
.contact-field input:focus {
  border-color: var(--red);
  background: #35373e;
}
.contact-field input:invalid:not(:placeholder-shown) { border-color: #ef3944; }
.contact-note {
  color: #65c67e;
  font-size: 13px;
  line-height: 1.6;
  margin: 22px 0 18px;
}
.contact-submit {
  display: block;
  min-width: 144px;
  margin: 0 auto;
  padding: 12px 24px;
  border: 2px solid var(--red);
  background: var(--red);
  color: var(--paper);
  font: 900 14px/1.35 var(--serif);
  letter-spacing: 0.08em;
  transition: background .15s, border-color .15s, transform .15s;
}
.contact-submit:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.contact-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #65c67e;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity .15s;
}
.contact-status.visible { opacity: 1; }
@media (max-width: 700px) {
  .contact-section { padding: 46px 18px 52px; }
  .contact-shell { grid-template-columns: 1fr; gap: 26px; }
  .contact-copy { max-width: 46ch; }
}
@media (max-width: 480px) {
  .contact-fields { grid-template-columns: 1fr; gap: 16px; }
  .contact-form { padding: 20px 16px; }
}

/* ===== Footer ===== */
.footer {
  background: var(--paper-dark);
  border-top: 3px double var(--rule);
  padding: 16px 24px;
  font-size: 11px; color: var(--muted);
  display: flex; flex-direction: column; gap: 6px; text-align: center;
  letter-spacing: 0.05em;
}
@media (min-width: 600px) { .footer { flex-direction: row; justify-content: space-between; text-align: left; } }

/* ===== Dialog (scandal) ===== */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.7);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.dialog-overlay.open { display: flex; }
.dialog-box {
  background: var(--paper);
  border: 3px double var(--ink);
  max-width: 580px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: 8px 8px 0 var(--red);
}
.dialog-head {
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; display: flex; align-items: center; justify-content: space-between;
}
.dialog-head .title {
  font-family: var(--display);
  font-size: 14px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
}
.dialog-head .stamp {
  background: var(--red); color: var(--paper);
  padding: 2px 8px; font-size: 9px; letter-spacing: 0.25em; font-weight: 900;
  transform: rotate(-2deg); border: 1px solid var(--paper);
}
.dialog-close {
  background: transparent; border: 1px solid var(--paper); color: var(--paper);
  padding: 0 8px; font-size: 14px; line-height: 1.4;
}
.dialog-close:hover { background: var(--paper); color: var(--ink); }
.dialog-body { padding: 22px; }
.db-badge {
  display:inline-block; font-size: 10px; color: var(--red); font-weight: 900;
  letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 14px;
  border-top: 1px solid var(--red); border-bottom: 1px solid var(--red);
  padding: 4px 0; width: 100%; text-align: center;
}
.secret {
  padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.2);
}
.secret:last-of-type { border-bottom: none; }
.secret h4 {
  font-size: 17px; font-weight: 900; margin-bottom: 6px;
  font-family: var(--display);
}
.secret h4::before { content: "§ "; color: var(--red); }
.secret p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); }
.dialog-disclaimer {
  margin-top: 14px; padding: 10px;
  background: rgba(184,16,46,0.08); border-left: 3px solid var(--red);
  font-size: 11px; line-height: 1.6; color: var(--ink-soft); font-style: italic;
}
.dialog-foot {
  padding: 14px 22px;
  border-top: 1px solid rgba(0,0,0,0.2);
  text-align: right;
}
.dialog-foot button {
  background: var(--red); color: var(--paper);
  border: 2px solid var(--red);
  padding: 10px 20px; font-weight: 900; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: inherit;
}
.dialog-foot button:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* ===== Safari gate dialog ===== */
.safari-box { position: relative; }
.safari-stamp-wrap {
  text-align: center;
  margin-top: -6px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.safari-stamp {
  display: inline-block;
  background: var(--red); color: var(--paper);
  padding: 4px 16px; font-size: 11px; letter-spacing: 0.3em; font-weight: 900;
  border: 1px solid var(--paper);
  transform: rotate(-2deg);
  font-family: inherit;
}
.safari-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 900;
  font-family: var(--display);
  text-align: center; margin-bottom: 16px; line-height: 1.15;
}
.safari-em { color: var(--red); font-style: italic; }
.safari-desc {
  font-size: 14px; line-height: 1.75; color: var(--ink-soft);
  margin-bottom: 20px; text-align: justify;
}
.safari-desc::first-letter {
  font-size: 2.6rem; font-weight: 900; float: left;
  line-height: 0.85; padding: 4px 10px 0 0;
  color: var(--red);
  font-family: var(--display);
}
.safari-bullets { list-style: none; padding: 0; margin: 0 0 18px; }
.safari-bullets li {
  position: relative; padding: 10px 0 10px 22px;
  font-size: 13px; line-height: 1.65; color: var(--ink);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}
.safari-bullets li:last-child { border-bottom: none; }
.safari-bullets li::before {
  content: "●"; position: absolute; left: 0; top: 10px;
  color: var(--red); font-size: 12px;
}
.safari-warn {
  background: rgba(184,16,46,0.08); border-left: 3px solid var(--red);
  padding: 12px; font-size: 12px; line-height: 1.65;
  color: var(--ink-soft); font-style: italic; margin-bottom: 20px;
}
.safari-btn {
  display: block; width: 100%;
  background: var(--red); color: var(--paper);
  border: 2px solid var(--red);
  padding: 14px 20px; font-weight: 900; font-size: 14px; letter-spacing: 0.12em;
  text-transform: uppercase; font-family: inherit;
  box-shadow: 8px 8px 0 var(--red);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  margin-bottom: 16px;
}
.safari-btn:hover { transform: translate(2px, 2px); box-shadow: 6px 6px 0 var(--red); }
.safari-url-row {
  display: flex; gap: 8px; align-items: stretch;
  border-top: 1px solid rgba(0,0,0,0.2);
  padding-top: 14px;
}
.safari-url {
  flex: 1; min-width: 0;
  border: 1px solid var(--ink); background: var(--paper-dark);
  padding: 8px 10px; font-size: 11px; font-family: Georgia, serif; color: var(--ink-soft);
  letter-spacing: 0.02em;
  border-radius: 0;
}
.safari-copy {
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  padding: 8px 14px; font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  font-family: inherit; font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s;
}
.safari-copy:hover { background: var(--red); border-color: var(--red); }
.safari-copy.copied { background: var(--red); border-color: var(--red); }


/* ===== Timed editorial bulletin ===== */
.countdown-overlay {
  z-index: 115;
  opacity: 0;
  visibility: hidden;
  transition: opacity .32s ease, visibility 0s linear .32s;
}
.countdown-overlay.open {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.countdown-overlay.closing {
  display: flex;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition-delay: 0s;
}
.countdown-box {
  transform: scale(.96);
  opacity: 0;
  transition: transform .32s ease, opacity .32s ease;
}
.countdown-overlay.open:not(.closing) .countdown-box {
  transform: scale(1);
  opacity: 1;
}
.countdown-overlay.closing .countdown-box {
  transform: scale(.88) translateY(8px);
  opacity: 0;
}
.countdown-box {
  max-width: 480px;
  box-shadow: 8px 8px 0 var(--red);
}
.countdown-head .title { letter-spacing: 0.16em; }
.countdown-body {
  padding: 24px 24px 20px;
  text-align: center;
}
.countdown-title {
  font-family: var(--display);
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  line-height: 1.12;
  font-weight: 900;
  margin: 2px 0 12px;
}
.countdown-title .em { color: var(--red); font-style: italic; }
.countdown-desc {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
  max-width: 40ch;
  margin: 0 auto;
}
.countdown-panel {
  background: var(--paper-dark);
  border: 1px solid var(--ink);
  padding: 14px 16px 13px;
  margin: 20px 0 16px;
  text-align: left;
}
.countdown-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.countdown-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.countdown-value {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--red);
}
.countdown-number {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3.3rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
  min-width: 1.15em;
  text-align: right;
}
.countdown-unit {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.countdown-track {
  height: 5px;
  background: rgba(26,26,26,0.18);
  border: 1px solid var(--ink);
  margin-top: 12px;
  overflow: hidden;
}
.countdown-progress {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--red);
  transform-origin: left center;
  transition: width 1s linear;
}
.countdown-progress.finish { transition-duration: .34s; }
.countdown-action {
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 11px 18px;
  font: 900 12px/1.35 var(--serif);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
}
.countdown-action:hover { background: var(--red); border-color: var(--red); }
.countdown-foot {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  margin-top: 14px;
}
html[data-script="cjk-sc"] .countdown-title,
html[data-script="cjk-tc"] .countdown-title,
html[data-script="ja"] .countdown-title,
html[data-script="ko"] .countdown-title {
  letter-spacing: 0;
  font-size: clamp(1.6rem, 7vw, 2.15rem);
}

@media (max-width: 520px) {
  .countdown-overlay { padding: 14px; }
  .countdown-body { padding: 22px 18px 18px; }
  .countdown-title { font-size: clamp(1.65rem, 8vw, 2.25rem); }
  .countdown-meta { align-items: center; }
  .countdown-number { font-size: 2.85rem; }
}

