/* =========================================================
   Hackathon Project Maker — "蒔絵 (maki-e)" theme
   Lacquer black, gold-leaf hairlines, Mincho headings.
   ========================================================= */
:root {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;

  --bg: #13111a;
  --surface: #1b1824;
  --surface-2: #231f2d;
  --field: #16131e;
  --ink: #efe8da;
  --muted: #a79f92;
  --faint: #6f685e;
  --line: rgba(201, 164, 92, 0.22);
  --line-soft: rgba(239, 232, 218, 0.08);

  --gold: #c9a45c;
  --gold-hi: #ecd8a4;
  --gold-lo: #94702f;
  --foil: linear-gradient(135deg, #f0dfb0 0%, #d4b06a 38%, #b88d45 62%, #e3c888 100%);
  --accent: var(--gold);
  --accent-ink: #1c150a;
  --accent-soft: rgba(201, 164, 92, 0.1);

  --warn: #e48c6d;
  --ok: #8fc7a0;

  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 16px/1.8 var(--sans);
  letter-spacing: 0.02em;
  background:
    radial-gradient(1200px 500px at 50% -180px, rgba(201, 164, 92, 0.14), transparent 70%),
    radial-gradient(800px 400px at 100% 110%, rgba(120, 90, 160, 0.10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.35; margin: 0; letter-spacing: 0.04em; }
h1 { font-size: clamp(28px, 4.4vw, 40px); font-weight: 700; }
h2 { font-size: 24px; margin-bottom: 8px; }
h3 { font-size: 19px; margin-bottom: 8px; }
p { margin: 0 0 12px; }
a { color: var(--gold-hi); text-decoration-color: rgba(236, 216, 164, 0.4); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold-hi); }
img { max-width: 100%; }
code { font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--line-soft); padding: 1px 6px; border-radius: 6px; }
::selection { background: rgba(201, 164, 92, 0.35); color: #fff; }

/* ---------- layout ---------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 44px 22px 96px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; margin-bottom: 34px; }
.mark { font-family: var(--serif); font-size: 13px; letter-spacing: 0.18em; color: var(--gold); }
header { padding-bottom: 22px; margin-bottom: 30px; position: relative; }
header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold-hi) 50%, var(--gold) 80%, transparent);
  opacity: 0.7; transform-origin: left; animation: rule 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rule { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 0.7; } }
header h1 {
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}
header p { color: var(--muted); margin: 12px 0 0; max-width: 52ch; font-size: 14.5px; line-height: 1.9; }

.stages { display: flex; gap: 4px; list-style: none; margin: 22px 0 0 -12px; padding: 0; counter-reset: s; flex-wrap: wrap; }
.stages li {
  counter-increment: s; font-size: 13px; color: var(--faint); padding: 6px 12px; display: flex; gap: 8px; align-items: baseline;
  border-bottom: 1px solid transparent;
}
.stages li::before { content: counter(s, cjk-ideographic); font-family: var(--serif); font-size: 15px; color: var(--faint); }
.stages li.on { color: var(--ink); border-bottom-color: var(--gold); }
.stages li.on::before { color: var(--gold-hi); }
.stages li.done { color: var(--muted); }
.stages li.done::before { content: "✓"; color: var(--gold); font-family: var(--sans); font-size: 13px; }

.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 120px), var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 38px clamp(18px, 4vw, 44px) 42px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.panel::before {
  content: ""; position: absolute; inset: 8px; border-radius: 16px; pointer-events: none;
  border: 1px solid var(--line-soft);
}
.banner { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); font-size: 14px; margin-bottom: 18px; }
.banner[hidden] { display: none; }

/* ---------- user bar ---------- */
.userbar { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.userbar img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); }

/* ---------- welcome ---------- */
.welcome { text-align: center; padding: 36px 10px 20px; }
.welcome h2 { font-size: clamp(24px, 3.6vw, 30px); }
.welcome p { color: var(--muted); max-width: 42ch; margin: 14px auto 28px; }

/* ---------- controls ---------- */
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  font: 500 15px/1.4 var(--sans); letter-spacing: 0.06em;
  border-radius: 999px; padding: 12px 26px; cursor: pointer; text-decoration: none; display: inline-block;
  border: 1px solid transparent; color: var(--accent-ink);
  background: var(--foil); background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 10px 24px -12px rgba(201, 164, 92, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: background-position 0.5s ease, box-shadow 0.3s ease, transform 0.15s ease;
}
.btn:hover { background-position: 100% 50%; box-shadow: 0 14px 30px -12px rgba(201, 164, 92, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn.ghost {
  background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none;
}
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-hi); background: var(--accent-soft); }
.btn.sm { padding: 6px 14px; font-size: 13px; white-space: nowrap; }
.btn:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

textarea, input[type=text], select {
  width: 100%; font: 15px/1.75 var(--sans); letter-spacing: 0.01em; color: var(--ink);
  background: var(--field); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 100px; resize: vertical; }
textarea:hover, input[type=text]:hover, select:hover { border-color: var(--line); }
textarea:focus-visible, input:focus-visible, select:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}
::placeholder { color: var(--faint); }
input[type=checkbox] { accent-color: var(--gold); }

.hint { font-size: 13.5px; color: var(--muted); }
.status { font-size: 14px; color: var(--muted); min-height: 1.5em; margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status.err { color: var(--warn); }
.setting { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.setting input { max-width: 340px; padding: 7px 12px; font-size: 13.5px; border-radius: 999px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.msg { max-width: min(600px, 90%); padding: 14px 18px; border-radius: 18px; white-space: pre-wrap; line-height: 1.85; }
.msg.q { background: var(--surface-2); border: 1px solid var(--line-soft); align-self: flex-start; border-top-left-radius: 4px; font-family: var(--serif); font-size: 16.5px; }
.msg.q small { display: block; color: var(--muted); font: 13px/1.7 var(--sans); margin-top: 6px; }
.msg.a { background: var(--accent-soft); border: 1px solid var(--line); align-self: flex-end; border-top-right-radius: 4px; }
.typing { display: inline-flex; gap: 5px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* ---------- proposals ---------- */
.ideas { display: grid; gap: 18px; margin-top: 22px; }
.idea { border: 1px solid var(--line-soft); border-radius: 18px; padding: 24px 26px; background: var(--surface-2); transition: border-color 0.25s ease; }
.idea:hover { border-color: var(--line); }
.idea.rec { border-color: var(--gold); background: linear-gradient(160deg, rgba(201, 164, 92, 0.09), transparent 55%), var(--surface-2); }
.idea .top { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.idea h3 { font-size: 22px; margin: 0; }
.idea .tl { color: var(--muted); margin: 4px 0 14px; font-size: 14.5px; }
.idea .ja { border-left: 2px solid var(--gold); padding: 2px 0 2px 16px; margin: 12px 0 16px; font-size: 15px; color: var(--ink); }
.idea dl { margin: 0; font-size: 13.5px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.idea dt { color: var(--faint); }
.idea dd { margin: 0; color: var(--muted); }
.badge { font-size: 12px; letter-spacing: 0.1em; padding: 3px 12px; border-radius: 999px; background: var(--foil); color: var(--accent-ink); }

/* ---------- result hero ---------- */
.hero { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; padding-bottom: 8px; }
.hero img { width: 150px; height: 150px; border-radius: 26px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -24px rgba(0, 0, 0, 0.8); }
.hero h2 { font-size: clamp(28px, 4vw, 36px) !important; }
.hero .tl { color: var(--gold-hi); font-family: var(--serif); font-size: 17px; margin: 6px 0 0; }
@media (max-width: 580px) { .hero { grid-template-columns: 1fr; } .hero img { width: 112px; height: 112px; } }

.remain { margin-top: 26px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); font-size: 14.5px; background: var(--accent-soft); }
.remain strong { color: var(--gold-hi); font-weight: 700; }

.progress { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 14.5px; }
.progress li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.progress li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--faint); flex: none; }
.progress li.run { color: var(--ink); }
.progress li.run::before { border-color: var(--gold); border-right-color: transparent; animation: spin 0.9s linear infinite; }
.progress li.ok { color: var(--ink); }
.progress li.ok::before { background: var(--gold); border-color: var(--gold); }
.progress li.err { color: var(--warn); }
.progress li.err::before { border-color: var(--warn); }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 3px; border-radius: 2px; background: var(--line-soft); overflow: hidden; flex-basis: 100%; max-width: 360px; margin-left: 26px; }
.bar i { display: block; height: 100%; background: var(--foil); width: 0; transition: width 0.25s ease; }

/* ---------- finish (video + GitHub) ---------- */
.finish {
  margin-top: 26px; padding: 28px 30px; border-radius: 20px; position: relative;
  border: 1px solid var(--gold);
  background: radial-gradient(600px 200px at 0% 0%, rgba(201, 164, 92, 0.12), transparent 70%), var(--surface-2);
}
.finish h3 { font-size: 21px; }
.finish .opts { display: flex; flex-wrap: wrap; gap: 16px 22px; align-items: center; margin: 18px 0; font-size: 14px; color: var(--muted); }
.finish .opts label { display: flex; gap: 8px; align-items: center; }
.finish select { width: auto; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.finish video { width: 100%; border-radius: 14px; margin-top: 18px; background: #000; box-shadow: 0 0 0 1px var(--line); }
.done-box { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--field); border: 1px solid var(--line-soft); font-size: 14.5px; }

.yt { margin-top: 20px; padding: 22px 24px; border-radius: 16px; background: var(--field); border: 1px solid var(--line-soft); }
.yt h4 { font-size: 17px; margin-bottom: 8px; }
.yt ol { margin: 8px 0 18px; padding-left: 1.4em; font-size: 14px; color: var(--muted); }
.yt li { margin-bottom: 6px; }
.yt li strong { color: var(--ink); font-weight: 500; }
.ytmeta { margin-top: 14px; font-size: 14px; }
.ytmeta summary { cursor: pointer; color: var(--muted); }
.ytmeta summary:hover { color: var(--gold-hi); }
.ytmeta .javal { background: var(--surface); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; margin: 16px 0 14px; border-bottom: 1px solid var(--line-soft); }
.tabs button {
  font: 500 14px var(--sans); letter-spacing: 0.05em; background: none; border: none; color: var(--muted);
  padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--gold-hi); border-bottom-color: var(--gold); }

/* ---------- Colosseum form replica ---------- */
.form { margin-top: 16px; border: 1px solid var(--line-soft); border-radius: 18px; padding: 10px clamp(16px, 3vw, 30px) 16px; background: var(--field); }
.fsec { font-size: 21px; margin: 26px 0 4px; }
.fintro { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.fsub { font-size: 16px; margin: 30px 0 4px; padding-top: 18px; border-top: 1px solid var(--line-soft); color: var(--gold-hi); }
.ffield { margin: 22px 0; }
.flab { display: flex; gap: 12px; align-items: baseline; justify-content: space-between; font-weight: 500; font-size: 15px; }
.star { color: var(--gold); margin-left: 3px; }
.pub { font-size: 11.5px; font-weight: 400; letter-spacing: 0.08em; color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px; white-space: nowrap; }
.fdesc { font-size: 13px; color: var(--muted); margin: 3px 0 8px; }
.en { display: block; font-size: 12.5px; color: var(--faint); font-weight: 400; margin: 2px 0 4px; font-family: var(--sans); letter-spacing: 0.02em; }
.fsec .en, .fsub .en { margin-top: 3px; }
.ffield input[type=text], .ffield textarea, .ffield select { margin-top: 6px; background: var(--surface); }
.ffield textarea { min-height: 136px; }
.ffield textarea.short { min-height: 88px; }
.ffield select { width: auto; min-width: 120px; }
.ffield .need { border: 1px dashed var(--warn); background: rgba(228, 140, 109, 0.05); }
.ffield .need::placeholder { color: var(--warn); opacity: 0.9; }
.fmeta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.count { font-variant-numeric: tabular-nums; }
.count.over { color: var(--warn); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13.5px; color: var(--muted); transition: all 0.2s ease; }
.chip:hover { border-color: var(--line); }
.chip input { margin: 0; }
.chip:has(input:checked), .chip.other.on { border-color: var(--gold); background: var(--accent-soft); color: var(--ink); }
.chip.other { cursor: default; }
.flogo { width: 92px; height: 92px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }
.javal { margin-top: 8px; padding: 12px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); white-space: pre-wrap; font-size: 15px; line-height: 1.85; }
.javal.empty { background: none; border-style: dashed; color: var(--faint); }

/* ---------- materials ---------- */
section.part { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line-soft); }
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 16px 0; }
.logo { border: 1px solid var(--line-soft); border-radius: 16px; padding: 10px; cursor: pointer; background: var(--surface-2); font: inherit; color: inherit; text-align: left; transition: border-color 0.2s ease, transform 0.2s ease; }
.logo:hover { border-color: var(--line); transform: translateY(-2px); }
.logo img { width: 100%; aspect-ratio: 1; border-radius: 10px; display: block; }
.logo span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.6; }
.logo.sel { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 16px 30px -18px rgba(201, 164, 92, 0.6); }

.pages { display: grid; gap: 16px; margin: 16px 0; }
.page {
  aspect-ratio: 16/9; border-radius: 12px; background: #fff; color: #172031; padding: 4% 5%; overflow: hidden; position: relative;
  font-size: clamp(8px, 1.3vw, 12.5px); font-family: "Instrument Sans", "Zen Kaku Gothic New", sans-serif; line-height: 1.45; letter-spacing: 0;
  box-shadow: 0 0 0 1px rgba(201, 164, 92, 0.35), 0 26px 50px -26px rgba(0, 0, 0, 0.9);
}
.page::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.1%; background: #2446d8; }
.page h4 { font-family: "Bricolage Grotesque", sans-serif; font-size: 2em; margin: 0 0 0.35em; line-height: 1.1; letter-spacing: 0; }
.page .ptl { color: #5b6778; margin: 0 0 0.9em; font-size: 1.15em; }
.page .lead { color: #3c4656; margin: 0 0 0.7em; max-width: 62%; }
.page ul { margin: 0; padding-left: 1.2em; max-width: 62%; }
.page li { margin-bottom: 0.3em; }
.page .side { position: absolute; right: 5%; top: 12%; width: 25%; }
.page .side img { width: 100%; border-radius: 8px; }
.page .box { border: 1px solid #cbd3dc; border-radius: 8px; padding: 0.7em 0.9em; font-size: 0.9em; }
.page .foot { position: absolute; left: 5%; right: 5%; bottom: 4%; display: flex; justify-content: space-between; color: #5b6778; font-size: 0.8em; border-top: 1px solid #e1e6ec; padding-top: 0.5em; }

.seg { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 18px; padding: 16px 0; border-top: 1px solid var(--line-soft); }
.seg:first-of-type { border-top: none; }
.seg .t { font-variant-numeric: tabular-nums; color: var(--gold); font-size: 13px; font-family: var(--serif); }
.seg .ja { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
@media (max-width: 580px) { .seg { grid-template-columns: 1fr; } }

pre.readme {
  background: var(--field); border: 1px solid var(--line-soft); border-radius: 14px; padding: 18px 20px; max-height: 340px; overflow: auto;
  font: 12.5px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; color: var(--muted); letter-spacing: 0;
}

.toast {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px);
  background: var(--ink); color: var(--bg); padding: 11px 20px; border-radius: 999px; font-size: 14px; letter-spacing: 0.04em;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; max-width: 90vw; z-index: 10;
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.8);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .wrap { padding-top: 28px; }
  .panel { border-radius: 18px; }
  .panel::before { inset: 6px; border-radius: 13px; }
  .finish { padding: 22px 18px; }
  .btn { padding: 11px 20px; }
  .tabs button { padding: 10px 10px; font-size: 13px; }
  .mark { display: none; }
  .topbar { justify-content: flex-end; margin-bottom: 22px; }
  .userbar { font-size: 12px; }
  .form { padding: 6px 14px 12px; }
  .panel { padding: 30px 16px 34px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- prototype preview ---------- */
.poc-preview { margin-top: 18px; }
.poc-preview summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.poc-preview summary:hover { color: var(--gold-hi); }
.poc-host { position: relative; width: 100%; overflow: hidden; border-radius: 12px; margin-top: 12px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgba(0, 0, 0, 0.8); }
.poc-frame { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.finish.demo { border-color: var(--line); }

/* ---------- author's app promo ---------- */
.promo {
  position: relative; width: calc(100% - 44px); max-width: 836px; margin: -48px auto 72px; padding: 22px 24px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.7);
  display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: start;
}
.promo[hidden] { display: none; }
.promo > * { grid-column: 1; }
.promo .promo-shot { grid-column: 2; grid-row: 1 / span 7; margin-top: 28px; width: 150px; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line-soft); }
.promo-close { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-soft); background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; z-index: 1; }
.promo-close:hover { color: var(--ink); border-color: var(--line); }
.promo-label { font-family: var(--serif); font-size: 12px; letter-spacing: 0.16em; color: var(--gold); margin: 0 0 10px; }
.promo-app { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); }
.promo-icon { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 1px var(--line-soft), 0 10px 20px -10px rgba(0, 0, 0, 0.8); flex: none; }
.promo-app strong { display: block; font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0.04em; }
.promo-app small { display: block; font-size: 12px; color: var(--muted); line-height: 1.6; }
.promo-lead { font-size: 14px; color: var(--ink); margin: 14px 0 10px; line-height: 1.8; }
.promo-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; }
.promo-tags li { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--gold-hi); }
.promo-rating { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.promo-rating span { color: var(--gold); letter-spacing: 0.1em; }
.promo-btn { justify-self: start; padding: 10px 22px; font-size: 14px; }
.promo-note { font-size: 11.5px; color: var(--faint); margin: 8px 0 0; }

/* Wide screens: sit in the empty space to the right of the main column. */
@media (min-width: 1440px) and (min-height: 760px) {
  .promo {
    position: fixed; top: 110px; margin: 0; width: 250px; max-width: none; padding: 20px 20px 22px;
    right: max(20px, calc((100vw - 880px) / 4 - 125px));
    display: block;
  }
  .promo .promo-shot { display: block; width: 100%; margin: 4px 0 14px; border-radius: 18px; }
  .promo-lead { margin-bottom: 8px; }
  .promo-rating { margin-bottom: 4px; }
  .promo-btn { display: block; width: 100%; text-align: center; }
  .promo-note { text-align: center; }
}
@media (min-width: 1440px) and (min-height: 760px) and (max-height: 959px) {
  .promo .promo-shot { max-height: 300px; width: auto; margin-inline: auto; }
}
@media (max-width: 560px) {
  .promo { grid-template-columns: 1fr; margin-top: -60px; width: calc(100% - 32px); padding: 20px 18px 22px; }
  .promo .promo-shot { display: none; }
}

/* ---------- "page unresponsive" reassurance ---------- */
.wait-note { margin-top: 16px; padding: 12px 16px 12px 44px; border-radius: 12px; border: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); position: relative; line-height: 1.8; }
.wait-note::before { content: "i"; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font: 600 12px/18px var(--serif); text-align: center; }
.wait-note strong { display: block; color: var(--ink); font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.wait-note b { color: var(--ink); font-weight: 500; }
.wait-note.on { border-color: var(--gold); background: var(--accent-soft); }
.wait-note.on strong { color: var(--gold-hi); }
