
:root {
  --ink: #1e2d3c;
  --paper: #ffffff;
  --red: #ff1937;
  --green: #059b69;
  --sub: #cde1eb;
  --yellow: #fff000;
  --green-to: #5adcc8;
  --red-from: #e62d28;
  --red-to: #fa5f64;
  --deep-from: #780a19;
  --deep-to: #ff1937;
  --sub-light: #e7f1f6;
  --sub-deep: #b4cfdd;
  --ink-70: rgba(30, 45, 60, .70);
  --ink-45: rgba(30, 45, 60, .45);
  --ink-10: rgba(30, 45, 60, .10);
  --text: var(--ink);
  --muted: var(--ink-45);
  --line: var(--ink-10);
  --shadow: 0 2px 10px var(--ink-10);
  --grad-green: linear-gradient(90deg, var(--green), var(--green-to));
  --grad-deep: linear-gradient(90deg, var(--deep-from), var(--deep-to));
  --r-card: 12px;
  --r-pill: 999px;
  --tabnav-h: 3.2rem;
  --font-head: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; }

body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  background:
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)),
    url("img/panel-tile.jpg") center top / 240px 240px repeat,
    #f1f6f9;
  min-height: 100dvh;
}
img { max-width: 100%; }
html { background: #f1f6f9; }

.copyright { margin: 0; padding: 16px 0 10px; text-align: center; font-size: 12px; color: var(--ink-45); }
body.has-tabs .copyright { padding-bottom: 0; }
.copyright[hidden] { display: none; }
.legal-links { max-width: 30rem; margin: 0 auto; padding: 0 14px; }
.legal-links:empty { display: none; }
.rules-links { margin: 8px 0 0; padding: 0; list-style: none; text-align: center; }
.rules-links li { margin: 6px 0; font-size: 14px; font-weight: 700; }
.rules-links a { color: var(--ink); text-decoration: underline; }
.rules-links span { color: var(--ink-45); }
.ver { margin: 0; padding: 0 0 6px; text-align: center; font-size: 9px; line-height: 1; color: rgba(30, 45, 60, .22); user-select: none; }
.logout-line { margin: 28px 0 0; text-align: center; }
.logout-line .btn-link { font-size: 12px; color: var(--ink-45); }
body.has-tabs .ver { padding-bottom: calc(var(--tabnav-h) + env(safe-area-inset-bottom) + 6px); }


.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .5rem;
  height: 56px;
  padding: 0 12px 0 88px;
  background: var(--grad-deep);
  color: #fff;
}
.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 6px;
  background: linear-gradient(var(--red) 0 2px, #fff 2px 4px, var(--green) 4px);
}
.brand { position: absolute; left: 10px; top: 4px; margin: 0; width: 66px; height: 66px; z-index: 2; }
.brand-home { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.brand-home:active { transform: scale(.96); }
.brand .logo {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); object-fit: cover;
}
.brand-sub, .brand-main {
  position: absolute; left: 76px; color: #fff; white-space: nowrap; line-height: 1.2;
  font-family: var(--font-head); font-weight: 900; pointer-events: none;
}
.brand-sub { top: 10px; font-size: 10px; }
.brand-main { top: 23px; font-size: 14px; }

.coin {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 12px 4px 6px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.coin[hidden] { display: none; }
.coin-mark {
  width: 22px; height: 22px; color: transparent; overflow: hidden;
  background: url("img/coin-8.png") center / contain no-repeat;
}
.coin-value { font-weight: 800; }
.coin-unit { font-size: 12px; font-weight: 700; color: var(--ink-70); }
.coin.is-done .coin-value { font-size: 14px; color: var(--green); }


.wrap { max-width: 30rem; margin: 0 auto; padding: 16px 14px 24px; }
body.has-tabs .wrap { padding-bottom: calc(var(--tabnav-h) + env(safe-area-inset-bottom) + 16px); }

.screen-title {
  display: inline-block;
  width: fit-content;
  max-width: calc(100% - 4px);
  margin: 10px 0 14px -14px;
  padding: 13px 26px 13px 20px;
  background: var(--grad-green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  position: relative;
  z-index: 1;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.screen-title + .panel-card { margin-top: -32px; padding-top: 32px; }
body[data-screen="closing"] .screen-title { white-space: pre-line; }
.screen-title[data-len="m"] { font-size: 21px; }
.screen-title[data-len="l"] { font-size: 20px; }
.screen-title[data-len="xl"] { font-size: 18px; }

.screen-message { margin: 0 0 12px; font-size: 16px; font-weight: 700; text-wrap: balance;
  white-space: pre-line; 
}
.lead { margin: 8px 0 14px; font-size: 16px; }
.notice { margin: 0 0 10px; font-size: 14px; color: var(--ink-70); line-height: 1.5; white-space: pre-line; }

.screen-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 8px;
  padding-left: 10px;
  border-left: 5px solid var(--red);
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}
.screen-heading::before { content: ""; width: 24px; height: 24px; flex: none; background: center / contain no-repeat; }
body[data-screen="announce"][data-tab=""] .screen-heading::before,
body[data-screen="opening"][data-tab=""] .screen-heading::before { background-image: url("img/acc-mic.png"); }
body[data-screen="paddock"][data-tab=""] .screen-heading::before,
body[data-screen="neta_furi"][data-tab=""] .screen-heading::before,
body[data-screen="neta"][data-tab=""] .screen-heading::before,
body[data-screen="chart"][data-tab=""] .screen-heading::before { background-image: url("img/inv-11.png"); }

.panel-card {
  margin: 12px 0;
  padding: 12px 14px;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.6;
}
.panel-card > h2 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 900;
  color: var(--green);
}
.panel-card > h2::before { content: ""; width: 20px; height: 20px; flex: none; background: center / contain no-repeat; }
.panel-card > h2::after { content: ""; flex: 1; height: 2px; margin-left: 4px; background: linear-gradient(90deg, var(--green), transparent); }
body[data-screen="announce"][data-tab=""] .panel-card > h2::before { background-image: url("img/ico-megaphone.png"); }
body[data-screen="closing"][data-tab=""] .panel-card > h2::before { background-image: url("img/ico-calendar.png"); }

.bullets { margin: 0; padding-left: 1.2em; }
.bullets li { margin: 4px 0; white-space: pre-line;  }
.bullets li::marker { color: var(--green); }

body[data-screen="announce"][data-tab=""] .bullets { padding-left: 6px; list-style: none; margin-top: 4px; }
body[data-screen="announce"][data-tab=""] .bullets li {
  position: relative; display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 7px 0 7px 38px;
  background: linear-gradient(var(--green), var(--green)) 6px 0 / 4px 100% no-repeat;
  font-size: 14px; font-weight: 700; line-height: 1.45; text-wrap: balance;
}
body[data-screen="announce"][data-tab=""] .bullets li:first-child { background-position: 6px 100%; background-size: 4px 50%; }
body[data-screen="announce"][data-tab=""] .bullets li:last-child { background-position: 6px 0; background-size: 4px 50%; }
body[data-screen="announce"][data-tab=""] .bullets li:only-child { background-image: none; }
body[data-screen="announce"][data-tab=""] .bullets li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: #fff; border: 4px solid var(--green); box-sizing: border-box;
}
body[data-screen="announce"][data-tab=""] .bullets li::after {
  content: ""; order: -1; width: 46px; height: 46px; flex: none; background: center / contain no-repeat;
}
body[data-screen="announce"][data-tab=""] .bullets li:nth-child(1)::after { background-image: url("img/step-sprout.png"); }
body[data-screen="announce"][data-tab=""] .bullets li:nth-child(2)::after { background-image: url("img/step-spare.png"); }
body[data-screen="announce"][data-tab=""] .bullets li:nth-child(3)::after { background-image: url("img/step-crowd.png"); }
body[data-screen="announce"][data-tab=""] .bullets li:nth-child(4)::after { background-image: url("img/step-audience.png"); }
body[data-screen="announce"][data-tab=""] .bullets li:nth-child(n+5)::after { background-image: url("img/step-tenfold.png"); }

body[data-screen="closing"][data-tab=""] .bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; list-style: none; margin-top: 4px; }
body[data-screen="closing"][data-tab=""] .bullets li {
  margin: 0; padding: 10px 8px; border-radius: 10px; background: var(--sub-light);
  text-align: center; font-size: 13px; font-weight: 700; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere;
}
body[data-screen="closing"][data-tab=""] .bullets li::before { content: ""; display: block; width: 52px; height: 52px; margin: 0 auto 4px; background: center / contain no-repeat; }
body[data-screen="closing"][data-tab=""] .bullets li:nth-child(1)::before { background-image: url("img/step-spare.png"); }
body[data-screen="closing"][data-tab=""] .bullets li:nth-child(2)::before { background-image: url("img/ico-calendar.png"); }
body[data-screen="closing"][data-tab=""] .bullets li:nth-child(n+3)::before { background-image: url("img/ico-coin.png"); }
body[data-screen="closing"][data-tab=""] .screen-message::after {
  content: ""; display: block; width: 150px; height: 150px; margin: 10px auto 0;
  background: url("img/cspot-thanks-A.png") center / contain no-repeat;
}

.link { color: var(--green); font-size: 14px; }

.login-card {
  margin: 14px 0;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.login-card .btn-wide { margin: 0 0 10px; }
.login-card .btn-wide:last-child { margin-bottom: 0; }
.login-card .banner { margin: 0; }
.banner-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.banner-btn:active { transform: scale(.98); }


.btn {
  padding: 6px 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  box-shadow: 0 3px 0 #0c141c;
  cursor: pointer;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #0c141c; }
.btn[disabled] { background: var(--sub); color: var(--ink-45); box-shadow: none; cursor: not-allowed; }
.btn-sub { background: #fff; color: var(--ink); border: 2px solid var(--sub); box-shadow: none; font-weight: 800; }
.btn-sub:active { box-shadow: none; }
.btn-wide { display: block; width: 100%; margin: 12px 0; padding: 9px 12px; font-size: 16px; text-align: center; text-decoration: none; }
.btn-login { display: flex; align-items: center; justify-content: center; gap: 6px; line-height: 1; }
.login-logo { display: block; height: 26px; width: auto; }
.btn-outline { background: #fff; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }


.cast-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.cast-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cast-card::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg, var(--red) 50%, var(--green) 50%); }
.cast-card.is-closed, .cast-card.is-ended { opacity: 1; }
.cast-card.is-active { box-shadow: 0 0 0 3px var(--yellow), var(--shadow); }

.cast-photo {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  background: var(--sub-light);
  cursor: pointer;
}
.cast-photo:active { opacity: .85; }
.cast-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: var(--muted);
  font-size: 1.4rem;
}
.cast-no {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 16px 0 7px;
  background: var(--grad-green);
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}
.cast-no small { font-size: 9px; font-weight: 800; color: #c9efe2; }
body[data-screen="announce"] .cast-no { display: none; }
.cast-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  background: var(--sub-light);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.cast-state.is-perf { background: var(--yellow); color: var(--ink); }
.cast-state.is-perf::before {
  content: "";
  width: 12px; height: 12px; flex: none;
  background: url("img/arrow-up.png") center / contain no-repeat;
}
.cast-state.is-closed { background: var(--ink); color: #fff; }
.cast-state.is-ended { background: #7c8c9a; color: #fff; }
.cast-name {
  display: block;
  min-height: 2.5em;
  padding: 6px 4px 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: normal;
  overflow: hidden;
}
.cast-name .seg { white-space: nowrap; }
.cast-name[data-len="m"] { font-size: 11px; }
.cast-name[data-len="l"] { font-size: 10px; letter-spacing: -.03em; }
.cast-name[data-len="xl"] { font-size: 9px; letter-spacing: -.04em; }
.cast-held { padding: 0 0 2px; text-align: center; font-size: 12px; color: var(--muted); }
.cast-held.has { color: var(--green); font-weight: 800; }
.btn-invest { margin: 6px 8px 9px; padding: 5px 6px; font-size: 14px; white-space: nowrap; }
.btn-invest:disabled { background: #b4bec8; color: #fff; box-shadow: 0 3px 0 #8f9aa5; cursor: default; }
.btn-invest:disabled:active { transform: none; box-shadow: 0 3px 0 #8f9aa5; }

.neta-now {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 150px;
  margin: 4px 0 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--grad-deep) center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow);
}
body[data-screen="neta_furi"][data-tab=""] .neta-now { background-image: url("img/hero-before-C.jpg"); }
body[data-screen="neta"][data-tab=""] .neta-now { background-image: url("img/hero-live-C.jpg"); }
body[data-screen="chart"][data-tab=""] .neta-now { background-image: url("img/hero-done-C.jpg"); background-color: var(--ink); }
.neta-thumb {
  width: 42%;
  aspect-ratio: 1;
  height: auto;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  border: 3px solid #fff;
  object-fit: cover;
  background: var(--sub-light);
}
.neta-body { min-width: 0; }
.neta-label {
  display: inline-block;
  margin: 0 0 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 900;
}
.neta-name { margin: 0; font-family: var(--font-head); font-size: 26px; font-weight: 900; line-height: 1.2; word-break: keep-all; overflow-wrap: normal; }
.neta-name .seg { white-space: nowrap; }
.neta-name[data-len="m"] { font-size: 22px; }
.neta-name[data-len="l"] { font-size: 18px; }
.neta-name[data-len="xl"] { font-size: 15px; }
.neta-label ~ .neta-status { display: none; }
.neta-status { display: inline-block; margin: 6px 0 0; padding: 2px 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .18); font-size: 12px; font-weight: 700; }
.neta-held { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--yellow); }

.pd-head { display: flex; align-items: center; gap: 8px; }
.pd-head b { flex: 1; font-family: var(--font-head); font-size: 18px; font-weight: 900; line-height: 1.35; }
.pd-head b .seg { white-space: nowrap; }
.pd-head::after { content: ""; width: 72px; height: 72px; flex: none; margin: -6px 8px -6px -6px; background: url("img/pd-predict.png") center / contain no-repeat; }
.pd-x10 { display: flex; align-items: center; gap: 8px; margin: 8px 0; padding: 6px 10px; border-radius: 10px; background: var(--sub-light); font-size: 14px; font-weight: 700; line-height: 1.45; }
.pd-x10::before { content: ""; width: 48px; height: 48px; flex: none; background: url("img/pd-tenfold.png") center / contain no-repeat; }
.pd-x10 .pd-n { flex: none; font-family: var(--font-head); font-size: 28px; font-weight: 900; line-height: 1; color: var(--red); }
.pd-ab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
.pd-ab > div { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border: 2px solid var(--sub); border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.pd-ab > div::before { content: ""; width: 36px; height: 36px; flex: none; background: center / contain no-repeat; }
.pd-ab .pd-a::before { background-image: url("img/pd-focus.png"); }
.pd-ab .pd-b::before { background-image: url("img/pd-spread.png"); }
.pd-ab b { font-family: var(--font-head); font-size: 15px; font-weight: 900; }
.pd-ab .pd-a b { color: var(--red); }
.pd-ab .pd-b b { color: var(--green); }
.pd-ab span { word-break: normal; overflow-wrap: break-word; line-break: strict; }
.pd-last { margin: 0; font-size: 14px; font-weight: 700; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.pd-plain { margin: 0; }


.podium {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: end;
  gap: 6px;
  margin: 0 0 10px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  background: #3a0a10 url("img/bd-podium.jpg") center / cover;
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.podium-bg { position: absolute; inset: 0; z-index: 0; display: block; }
.podium-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (prefers-reduced-motion: reduce) { .podium-bg { display: none; } }
.podium > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.podium .p2, .podium .p3 { padding-bottom: 10px; }
.podium-thumb { width: 58px; height: 58px; border-radius: 8px; border: 2px solid #fff; object-fit: cover; display: grid; place-items: center; background: var(--sub-light); color: var(--muted); }
.podium .p1 .podium-thumb { width: 80px; height: 80px; border-color: var(--yellow); }
.podium .p1::before { content: ""; width: 30px; height: 30px; margin-bottom: -6px; background: url("img/crown.png") center / contain no-repeat; }
.podium-rank { margin-top: 4px; font-family: var(--font-head); font-size: 14px; font-weight: 900; line-height: 1; }
.podium .p1 .podium-rank { font-size: 18px; color: var(--yellow); }
.podium-name { font-size: 12px; font-weight: 700; line-height: 1.2; text-wrap: balance; word-break: keep-all; }
.podium-name .seg { white-space: nowrap; }
.podium-name[data-len="l"] { font-size: 11px; }
.podium-name[data-len="xl"] { font-size: 10px; }
.podium-price { font-family: var(--font-head); font-size: 14px; font-weight: 900; }
.podium-held { font-size: 11px; color: var(--yellow); font-weight: 700; }

.ranking { margin: 0; padding: 0; list-style: none; }
.ranking-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.ranking-rank { flex: none; width: 52px; font-family: var(--font-head); font-size: 18px; font-weight: 900; line-height: 1; color: var(--ink-70); }
.ranking-rank small { font-size: 12px; }
.ranking-thumb { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 8px; object-fit: cover; background: var(--sub-light); }
.ranking-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ranking-name { font-weight: 800; font-size: 15px; line-height: 1.25; text-wrap: balance; word-break: keep-all; }
.ranking-name .seg { white-space: nowrap; }
.ranking-name[data-len="l"] { font-size: 14px; }
.ranking-name[data-len="xl"] { font-size: 13px; }
.ranking-held { font-size: 12px; color: var(--green); font-weight: 700; }
.ranking-price { flex: none; font-family: var(--font-head); font-size: 18px; font-weight: 900; }

.payout { text-align: center; }
.payout-value { margin: 4px 0 0; font-family: var(--font-head); font-size: 28px; font-weight: 900; color: var(--red); }

.receipt { position: relative; margin: 30px 0 14px; padding: 12px 14px 14px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: radial-gradient(circle at 6px 0, transparent 5px, #fff 5.5px) 0 0 / 12px 6px repeat-x; }
.receipt::before { content: ""; display: block; width: 72px; height: 72px; margin: -46px auto 0; background: url("img/cspot-payout-A.png") center / contain no-repeat; }
.receipt-h { margin: 0 0 2px; padding: 6px 0 8px; border-bottom: 2px dashed var(--sub); font-family: var(--font-head); font-size: 13px; font-weight: 900; color: var(--ink-70); }
.settled-list { margin: 0; padding: 0; list-style: none; }
.settled-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.settled-row:first-child { border-top: 0; }
.settled-name { font-weight: 700; word-break: keep-all; }
.settled-name .seg { white-space: nowrap; }
.settled-name[data-len="l"], .settled-name[data-len="xl"] { font-size: 13px; }
.settled-meta { color: var(--muted); font-size: 12px; margin-left: 4px; flex: 1; }
.settled-pay { font-family: var(--font-head); font-size: 16px; font-weight: 900; flex: none; }
.settled-note { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }
.settled-note strong { font-family: var(--font-head); font-size: 16px; font-weight: 900; }
.settled-total {
  margin: 10px -14px -14px;
  padding: 30px 16px 18px;
  border-radius: 0 0 12px 12px;
  background: url("img/bd-teller.jpg") center bottom / cover;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.settled-total-l { display: block; font-size: 15px; font-weight: 700; }
.settled-total-v { display: block; margin: 4px 0; font-family: var(--font-head); font-size: 52px; font-weight: 900; line-height: 1.1; }
.settled-gain { display: inline-block; margin-top: 4px; padding: 4px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .16); font-size: 15px; font-weight: 700; }
.settled-gain.is-down { background: rgba(0, 0, 0, .25); }
.settled-empty { margin: 8px 0; font-size: 14px; color: var(--ink-70); }

.closed-card { text-align: center; margin-top: 14px; }
.closed-card::before { content: ""; display: block; width: 150px; height: 150px; margin: 6px auto 4px; background: url("img/cspot-tally-B.png") center / contain no-repeat; }
.closed-card .screen-message { margin: 0; }


.camp-head { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; }
.camp-head .screen-message { flex: 1; margin: 6px 0 0; }
.camp-head::after { content: ""; width: 116px; height: 116px; flex: none; margin: -22px -6px -10px 0; background: url("img/prize-7.png") center / contain no-repeat; }
.campaign-coins {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 12px 0; padding: 12px; border: 2px solid var(--green); border-radius: var(--r-card);
  background: var(--paper); font-weight: 800; font-size: 16px; text-align: center;
}
.campaign-coins::before { content: ""; width: 24px; height: 24px; flex: none; background: url("img/coin-8.png") center / contain no-repeat; }

.prize-list { margin: 8px 0; padding: 0; list-style: none; }
.prize {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: center;
  margin: 0 0 12px;
  padding: 18px 16px 14px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prize::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--red) 50%, var(--green) 50%); }
.prize-rank { font-family: var(--font-head); font-size: 24px; font-weight: 900; line-height: 1.1; color: var(--red); }
.prize-name { font-weight: 800; font-size: 17px; line-height: 1.4; }
.prize-count { font-weight: 700; font-size: 15px; line-height: 1.4; color: var(--ink-70); }
.prize:nth-child(2) .prize-rank { color: var(--green); }
.prize:nth-child(3) .prize-rank { color: var(--ink); }
.prize-need { font-size: 14px; color: var(--muted); }
.prize-state {
  justify-self: start;
  margin-top: 4px; padding: 2px 10px;
  border: 1.5px solid var(--sub-deep); border-radius: var(--r-pill);
  background: #fff; color: var(--ink-45); font-size: 12px; font-weight: 700;
}
.prize.is-entered .prize-state { border-color: var(--green); background: var(--green); color: #fff; font-weight: 900; }
.prize.is-entered .prize-state::before { content: "✓ "; }

.entry-summary { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.entry-h { margin: 0 0 6px; font-family: var(--font-head); font-size: 14px; font-weight: 900; }
.entry-list { margin: 0; padding: 0; list-style: none; }
.entry-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--sub); font-size: 13px; }
.entry-name { flex: 1; min-width: 0; font-weight: 700; color: var(--ink-45); }
.entry-state { flex: none; font-size: 12px; color: var(--muted); }
.entry-row.is-entered .entry-name { color: var(--ink); }
.entry-row.is-entered .entry-state { padding: 2px 10px; border-radius: var(--r-pill); background: var(--green); color: #fff; font-weight: 900; }
.entry-row.is-entered .entry-state::before { content: "✓ "; }


.rules-sec {
  display: flex; align-items: center; gap: 6px;
  margin: 18px 0 8px;
  font-family: var(--font-head); font-size: 15px; font-weight: 900; color: var(--green);
}
.rules-sec::before { content: ""; width: 20px; height: 20px; flex: none; background: center / contain no-repeat; }
.rules-sec::after { content: ""; flex: 1; height: 2px; margin-left: 4px; background: linear-gradient(90deg, var(--green), transparent); }
.rules-sec[data-section="1"]::before { background-image: url("img/acc-check.png"); }
.rules-sec[data-section="2"]::before { background-image: url("img/inv-11.png"); }
.rules-sec[data-section="3"]::before { background-image: url("img/mv-7.png"); }
.rules-sec[data-section="4"]::before { background-image: url("img/crown.png"); }
.rules-sec:first-of-type { margin-top: 10px; }

.rules-steps, .rules-steps.panel-card { margin: 8px 0; padding: 0; list-style: none; counter-reset: step; background: none; box-shadow: none; }
.rules-steps li {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: center;
  margin: 0 0 8px; padding: 10px 12px;
  border-radius: 12px; background: var(--paper); box-shadow: var(--shadow);
  font-size: 15px; line-height: 1.55;
}
.rules-steps li::before { content: ""; grid-row: 1; width: 52px; height: 52px; background: center / contain no-repeat; counter-increment: step; }
.rules-steps li > * { grid-column: 2; min-width: 0; }
.rules-steps li::before { background-image: url("img/step-spare.png"); }
.rules-steps li[data-step="1"]::before { background-image: url("img/step-login.png"); }
.rules-steps li[data-step="2"]::before { background-image: url("img/step-sprout.png"); }
.rules-steps li[data-step="3"]::before { background-image: url("img/step-wallet.png"); }
.rules-steps li[data-step="4"]::before { background-image: url("img/step-pricetag.png"); }
.rules-steps li[data-step="5"]::before { background-image: url("img/step-baskets.png"); }
.rules-steps li[data-step="6"]::before { background-image: url("img/step-crowd.png"); }
.rules-steps li[data-step="7"]::before { background-image: url("img/step-audience.png"); }
.rules-steps li[data-step="8"]::before { background-image: url("img/step-tenfold.png"); }
.rules-caution { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--sub-light); font-size: 13px; color: var(--ink-70); line-height: 1.55; }
.rules-caution p { margin: 2px 0; }
.rules-chip { display: inline-block; white-space: nowrap; margin: 0 4px; padding: 0 10px; border-radius: var(--r-pill); background: var(--sub-light); font-family: var(--font-head); font-size: 17px; font-weight: 900; line-height: 1.5; }
.rules-x10 { white-space: nowrap; font-family: var(--font-head); font-size: 1.25em; font-weight: 900; color: var(--red); }
.rules-steps b { font-weight: 900; }
.rules-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-70); line-height: 1.5; }
.rules-sub .rules-chip { font-size: 14px; padding: 0 8px; }
.rules-steps li.is-hi { border: 2px solid var(--red); }

.rules-prizes { margin: 8px 0; padding: 4px 14px; list-style: none; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.rules-prize { display: grid; grid-template-columns: 3.2rem 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rules-prize:last-child { border-bottom: 0; }
.rp-rank { grid-area: 1 / 1 / 3 / 2; align-self: center; font-family: var(--font-head); font-size: 18px; font-weight: 900; color: var(--red); }
.rules-prize:nth-child(2) .rp-rank { color: var(--green); }
.rules-prize:nth-child(3) .rp-rank { color: var(--ink); }
.rp-need { grid-area: 1 / 2; font-size: 13px; color: var(--muted); }
.rp-item { grid-area: 2 / 2; font-weight: 800; font-size: 15px; line-height: 1.4; }

.rules-lead { margin: 10px 0; padding: 12px 14px; border: 2px solid var(--red); text-align: center; font-weight: 900; font-size: 15px; line-height: 1.6; }


.cast-detail-photo { overflow: hidden; margin: 0 auto 12px; width: 64%; aspect-ratio: 1; border-radius: 12px; background: var(--sub-light); }
.cast-detail-thumb { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; color: var(--muted); font-size: 3rem; }
#cast-detail h2 { text-align: center; font-size: 22px; }
#cast-detail h2::after { content: ""; display: block; width: 84px; height: 6px; margin: 8px auto 0; border-radius: 3px; background: linear-gradient(var(--red) 0 50%, var(--green) 50%); }
#cast-detail .notice { text-align: center; }
.cast-detail-profile {
  margin: 8px 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--sub-light);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.cast-detail-profile[hidden] { display: none; }
#cast-detail .btn[hidden] { display: none; }


.x-post-banner {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.x-post-banner::before { content: ""; width: 40px; height: 40px; flex: none; background: url("img/xp-3.png") center / contain no-repeat; }
.x-post-banner:active { transform: scale(.99); }
.x-post-banner.is-image { display: block; padding: 0; background: none; box-shadow: none; width: 100%; }
.x-post-banner.is-image::before { display: none; }
.x-post-banner.is-image .banner { margin: 14px 0 0; }

#x-post-modal { position: fixed; padding: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.xp-card { position: relative; border-radius: 16px; background: var(--paper); box-shadow: 0 12px 34px rgba(30, 45, 60, .4); overflow: hidden; }
.xp-plane { position: absolute; right: -22px; top: -26px; width: 84px; z-index: 3; transform: rotate(-6deg); pointer-events: none; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .35)); }
.xp-hero { display: flex; align-items: center; gap: 10px; padding: 9px 13px; background: linear-gradient(90deg, var(--ink), #2b4359); color: #fff; }
.xp-hero-face { display: block; width: 42px; height: 42px; flex: none; border-radius: 11px; overflow: hidden; background: var(--sub-light); }
.xp-face-img { display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover; color: var(--muted); font-size: 18px; }
.xp-hero-name { flex: 1; min-width: 0; font-family: var(--font-head); font-size: 17px; font-weight: 900; line-height: 1.2; word-break: keep-all; overflow-wrap: normal; }
.xp-hero-name .seg { white-space: nowrap; }
.xp-hero-name[data-len="l"] { font-size: 15px; }
.xp-hero-name[data-len="xl"] { font-size: 13.5px; }
.xp-body { padding: 12px 15px 14px; }
#x-post-title { display: flex; align-items: center; gap: 8px; font-size: clamp(12px, 3.85vw, 15.5px); }
#x-post-title:focus, #x-post-title:focus-visible { outline: none; }
#x-post-title::before { content: ""; width: 30px; height: 30px; flex: none; background: url("img/coin-8.png") center / contain no-repeat; }
#x-post-modal .notice { font-size: 12px; margin-bottom: 8px; }
#x-post-select-label { margin: 8px 0 5px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.xp-sel { display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border: 2px solid #e0b93a; border-radius: 12px; background: #fffdf5; }
.xp-sel-face { display: block; width: 34px; height: 34px; flex: none; border-radius: 9px; overflow: hidden; background: var(--sub-light); }
.xp-sel .select { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 15px; font-weight: 800; }
.x-post-preview { margin: 9px 0 11px; padding: 10px 11px; border-radius: 12px; background: #f4f8fb; font-size: 10.5px; font-weight: 700; line-height: 1.55; white-space: pre-wrap; }
.x-tag { font-style: normal; font-weight: 800; color: #1d9bf0; }
#x-post-modal .btn { font-size: 15px; padding: 8px 12px; margin-bottom: 8px; }
#x-post-submit::before {
  content: ""; display: inline-block; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z'/></svg>") center / contain no-repeat;
}

.select {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid var(--sub);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}


.tabnav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  height: calc(var(--tabnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--paper);
  box-shadow: 0 -2px 10px var(--ink-10);
}
.tabnav::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--red) 50%, var(--green) 50%); }
.tabnav[hidden] { display: none; }
.tab {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-45);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.tab::before { content: ""; width: 22px; height: 22px; background: center / contain no-repeat; }
.tab::before { background-image: url("img/tab-home.png"); }
.tab[data-tab="rules"]::before { background-image: url("img/tab-rules.png"); transform: translateY(2px); }
.tab[data-tab="campaign"]::before { background-image: url("img/tab-gift.png"); }
.tab[data-tab="result"]::before { background-image: url("img/crown.png"); }
.tab[data-tab="settled"]::before { background-image: url("img/coin-8.png"); }
.tab.is-active { color: var(--green); }
.tab.is-active::before { background-image: url("img/tab-home-on.png"); }
.tab.is-active[data-tab="rules"]::before { background-image: url("img/tab-rules-on.png"); }
.tab.is-active[data-tab="campaign"]::before { background-image: url("img/tab-gift-on.png"); }
.tab.is-active[data-tab="result"]::before { background-image: url("img/crown.png"); }
.tab.is-active[data-tab="settled"]::before { background-image: url("img/coin-8.png"); }
.tab.is-active::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); }


dialog {
  width: min(340px, 92vw);
  padding: 20px 18px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(30, 45, 60, .35);
}
dialog::backdrop { background: rgba(30, 45, 60, .6); }
dialog h2 { margin: 0 0 8px; font-family: var(--font-head); font-size: 20px; font-weight: 900; line-height: 1.25; }
dialog .btn { display: block; width: 100%; margin: 0 0 12px; padding: 8px 12px; font-size: 16px; }
dialog .btn-sub { padding: 6px 12px; }
dialog .notice { margin: 0 0 10px; }
.invest-missed { margin: 0 0 12px; padding: 10px 12px; border: 2px solid var(--red); border-radius: 10px; background: var(--red-light, #ffe8eb); color: var(--red); font-size: 14px; font-weight: 800; line-height: 1.5; }
.invest-missed[hidden] { display: none; }
#invest-modal.is-missed .invest-steps, #invest-modal.is-missed #invest-cost, #invest-modal.is-missed #invest-caution { opacity: .4; }

.invest-steps {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  margin: 6px 0 8px;
}
.invest-steps .btn { width: 48px; height: 48px; margin: 0; padding: 0; border-radius: 50%; font-size: 26px; line-height: 1; }
.invest-steps #invest-minus { background: #fff; border: 2px solid var(--sub); color: var(--ink-45); box-shadow: none; }
.invest-steps #invest-plus { background: var(--green); box-shadow: none; }
.invest-steps .btn[disabled] { background: var(--sub-light); color: var(--ink-45); }
.invest-units { min-width: 80px; text-align: center; font-family: var(--font-head); font-size: 40px; font-weight: 900; line-height: 1; }
.invest-caution { margin: 8px 0 12px; padding: 8px 12px; border: 2px solid var(--red); border-radius: 10px; color: var(--red); font-size: 13px; font-weight: 700; line-height: 1.5; text-align: center; }
.invest-caution[hidden] { display: none; }
#invest-cost { text-align: center; }
#invest-title::after { content: ""; float: right; width: 40px; height: 40px; margin: -8px 0 0 8px; background: url("img/inv-11.png") center / contain no-repeat; }

#portfolio { padding: 0; overflow: hidden; }
.ac-band { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: var(--grad-green); color: #fff; }
.ac-band::before { content: ""; width: 30px; height: 30px; flex: none; background: url("img/coin-8.png") center / contain no-repeat; }
.ac-body { padding: 14px 16px 16px; }
#portfolio-title { margin: 0; flex: 1; font-size: 17.5px; }
.portfolio-list { margin: 0 0 12px; padding: 0; list-style: none; }
.portfolio-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 700; }
.portfolio-list li:first-child { border-top: 0; }
.portfolio-thumb { width: 38px; height: 38px; flex: none; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: var(--sub-light); }
.portfolio-name { flex: 1; min-width: 0; word-break: keep-all; }
.portfolio-name .seg { white-space: nowrap; }
.portfolio-name[data-len="l"], .portfolio-name[data-len="xl"] { font-size: 14px; }
.portfolio-units { font-size: 15px; font-weight: 700; }
.portfolio-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 12px 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--sub-light);
  font-size: 13px; font-weight: 800;
}
.portfolio-total strong { font-family: var(--font-head); font-size: 24px; font-weight: 900; line-height: 1; }
.portfolio-acts { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.portfolio-acts .btn-sub { width: 100%; }
.btn-link, dialog .btn.btn-link { width: auto; margin: 0; border: 0; background: none; color: var(--ink-45); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; padding: 4px; box-shadow: none; cursor: pointer; }

#invest-done { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.rc-paper { position: relative; padding: 18px 18px 16px; background: var(--paper); box-shadow: 0 12px 34px rgba(30, 45, 60, .4); }
.rc-paper::before, .rc-paper::after {
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background: linear-gradient(45deg, transparent 50%, #fff 50%) 0 0 / 18px 9px repeat-x,
              linear-gradient(-45deg, transparent 50%, #fff 50%) 0 0 / 18px 9px repeat-x;
}
.rc-paper::before { top: -9px; }
.rc-paper::after { bottom: -9px; transform: rotate(180deg); }
#invest-done h2 { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 2px dashed var(--sub); }
#invest-done-body {
  display: flex; align-items: center; gap: 9px;
  margin: 0; padding: 7px 0; border-bottom: 2px dashed var(--sub);
  font-family: var(--font-head); font-size: 18px; font-weight: 900; line-height: 1.3;
}
.rc-face { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 9px; object-fit: cover; background: var(--sub-light); color: var(--muted); font-size: 15px; }
.rc-body-text { white-space: nowrap; }
.rc-body-text[data-len="m"] { font-size: 16px; }
.rc-body-text[data-len="l"] { font-size: 14px; }
.rc-body-text[data-len="xl"] { font-size: 12.5px; }
.rc-body-text[data-len="xxl"] { font-size: 11px; }
.rc-note { position: relative; margin: 10px 0 12px; padding-right: 90px; min-height: 98px; }
.rc-note .notice { margin: 0; font-size: 12.5px; }
.rc-stamp { position: absolute; right: -4px; top: 14px; width: 84px; z-index: 4; opacity: 0; }
.rc-impact { position: absolute; right: -12px; top: 6px; width: 100px; z-index: 3; opacity: 0; pointer-events: none; }
.rc-popper { position: absolute; left: -12px; top: -50px; width: 64px; z-index: 8; opacity: 0; pointer-events: none; transform-origin: 30% 90%; }
.rc-confetti { position: absolute; left: -6px; top: -72px; width: 92px; z-index: 7; opacity: 0; pointer-events: none; }
#invest-done .btn { border-radius: 6px; }
#invest-done.is-play .rc-stamp { animation: rc-stamp .6s cubic-bezier(.3, 1.4, .4, 1) .5s forwards; }
#invest-done.is-play .rc-paper { animation: rc-shake .34s .86s; }
#invest-done.is-play .rc-impact { animation: rc-pop .5s .86s ease-out; }
#invest-done.is-play .rc-popper { animation: rc-popper .5s 1.2s cubic-bezier(.2, 1.5, .4, 1) forwards; }
#invest-done.is-play .rc-confetti { animation: rc-conf .6s 1.28s ease-out forwards; }
@keyframes rc-stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(3.6); } 40% { opacity: .9; } 70% { opacity: 1; transform: rotate(-8deg) scale(.94); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }
@keyframes rc-shake { 0%, 100% { transform: translateY(0); } 25% { transform: translateY(4px); } 55% { transform: translateY(-2px); } 80% { transform: translateY(1px); } }
@keyframes rc-pop { 0% { opacity: 0; transform: scale(.4); } 35% { opacity: .95; transform: scale(1.15); } 100% { opacity: 0; transform: scale(1.55); } }
@keyframes rc-popper { 0% { opacity: 0; transform: rotate(26deg) scale(.3); } 60% { opacity: 1; transform: rotate(-6deg) scale(1.1); } 100% { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes rc-conf { 0% { opacity: 0; transform: scale(.5); } 100% { opacity: .95; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  #invest-done.is-play .rc-stamp, #invest-done.is-play .rc-popper, #invest-done.is-play .rc-confetti { animation: none; opacity: 1; }
  #invest-done.is-play .rc-paper, #invest-done.is-play .rc-impact { animation: none; }
}


#cover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 32px;
  background:
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)),
    url("img/panel-tile.jpg") center top / 240px 240px repeat,
    #f1f6f9;
  color: var(--ink);
  text-align: center;
}
#cover::before, .partial-cover::before { content: ""; display: block; width: 150px; height: 150px; margin: 0 auto 12px; border-radius: 50%; background: #fff url("img/logo.png") center / cover no-repeat; box-shadow: var(--shadow); }
#cover h2 { margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 900; }
#cover p { margin: 0; font-size: 16px; color: var(--ink-70); white-space: pre-line; }
#cover[hidden] { display: none; }
body.is-covered .topbar,
body.is-covered .wrap,
body.is-covered .tabnav { display: none; }

.partial-cover {
  min-height: calc(100dvh - 200px);
  display: grid;
  place-content: center;
  gap: 4px;
  margin: 0;
  padding: 16px;
  text-align: center;
}
.partial-cover h2 { margin: 0 0 6px; font-family: var(--font-head); font-size: 20px; font-weight: 900; }
.partial-cover p { margin: 0; color: var(--ink-70); white-space: pre-line; }

.result-mine { margin-top: 22px; }
.result-mine .screen-heading { margin-bottom: 8px; }
.result-mine .screen-heading::before { background-image: url("img/coin-8.png"); }
.result-rank-heading { margin-top: 24px; }
.result-rank-heading::before { background-image: url("img/pd-focus.png"); }


.spinner {
  width: 36px;
  height: 36px;
  margin: 22px auto;
  border: 4px solid var(--sub);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
body[data-screen="waiting"][data-tab=""] .spinner::before,
body[data-screen="waiting"][data-tab=""] .banner + .screen-title::after { content: none; }
.waiting-spot { display: block; width: 150px; height: 150px; margin: 10px auto 0; background: url("img/spot-curtain.png") center / contain no-repeat; }

#debug { font-size: .75rem; color: var(--muted); }
#debug pre { overflow-x: auto; padding: .5rem; border-radius: .3rem; background: var(--paper); }

.banner { display: block; margin: 14px 0; border-radius: 8px; overflow: hidden; }
.banner-img { display: block; width: 100%; height: auto; }

@media (min-width: 900px) {
  body { font-size: 16px; }
  .topbar { height: 64px; padding: 0 32px 0 120px; }
  .brand { left: 28px; top: 4px; width: 78px; height: 78px; }
  .brand-sub { left: 92px; top: 12px; font-size: 11px; }
  .brand-main { left: 92px; top: 26px; font-size: 17px; }
  .coin { font-size: 18px; padding: 6px 16px 6px 8px; }
  .coin-mark { width: 26px; height: 26px; }
  .tabnav {
    position: fixed; top: 0; bottom: auto; left: 280px; right: auto;
    height: 64px; padding: 0; gap: 6px; align-items: center;
    background: none; box-shadow: none; z-index: 21;
  }
  .tabnav::before { display: none; }
  .tab { flex: none; padding: 8px 16px; border-radius: var(--r-pill); color: rgba(255, 255, 255, .85); font-family: var(--font-head); font-size: 15px; font-weight: 900; }
  .tab::before { display: none; }
  .tab.is-active { background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 -3px 0 var(--yellow); }
  .tab.is-active::after { display: none; }
  body.has-tabs .wrap { padding-bottom: 40px; }
  .wrap { max-width: 760px; padding: 28px 24px 40px; }
  .screen-title { font-size: 28px; padding: 15px 32px 15px 24px; margin: 12px 0 18px -24px; }
  body[data-screen="closing"] .screen-title { white-space: normal; }
  .screen-title[data-len="m"], .screen-title[data-len="l"], .screen-title[data-len="xl"] { font-size: 28px; }
  .screen-message, .lead { font-size: 18px; }
  .screen-heading { font-size: 22px; }
  .screen-heading::before { width: 28px; height: 28px; }
  .panel-card { padding: 18px 22px; font-size: 16px; }
  .notice { font-size: 15px; }
  .cast-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .cast-name { font-size: 14px; }
  .cast-name[data-len="m"] { font-size: 13px; }
  .cast-name[data-len="l"] { font-size: 12px; }
  .cast-name[data-len="xl"] { font-size: 11px; }
  .cast-held { font-size: 13px; }
  .cast-state { height: 24px; font-size: 12px; }
  .neta-now { padding: 22px; gap: 24px; border-radius: 18px; min-height: 200px; }
  .neta-thumb { width: 30%; }
  .neta-name { font-size: 40px; }
  .neta-name[data-len="m"] { font-size: 34px; }
  .neta-name[data-len="l"] { font-size: 28px; }
  .neta-name[data-len="xl"] { font-size: 22px; }
  .neta-label { font-size: 14px; padding: 6px 14px; }
  .pd-head b { font-size: 22px; }
  .pd-head::after { width: 96px; height: 96px; margin: -8px 6px -10px -4px; }
  .pd-x10 { font-size: 15px; padding: 10px 14px; }
  .pd-x10 .pd-n { font-size: 34px; }
  .pd-ab { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pd-ab > div { font-size: 14px; padding: 8px 12px 8px 8px; }
  .pd-ab > div::before { width: 44px; height: 44px; }
  .pd-last { font-size: 15px; }
  body[data-screen="announce"][data-tab=""] .bullets li { font-size: 15px; }
  body[data-screen="announce"][data-tab=""] .bullets li::after { width: 56px; height: 56px; }
  body[data-screen="closing"][data-tab=""] .bullets { gap: 12px; }
  body[data-screen="closing"][data-tab=""] .bullets li { font-size: 15px; }
  body[data-screen="closing"][data-tab=""] .bullets li::before { width: 64px; height: 64px; }
  body[data-screen="closing"][data-tab=""] .screen-message::after { width: 200px; height: 200px; }
  .rules-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rules-steps li { margin: 0; font-size: 16px; padding: 14px 18px; }
  .rules-steps li:only-child { grid-column: 1 / -1; }
  .rules-steps li::before { width: 64px; height: 64px; }
  .podium { padding: 24px 20px 20px; }
  .podium-thumb { width: 84px; height: 84px; }
  .podium .p1 .podium-thumb { width: 116px; height: 116px; }
  .podium .p1::before { width: 40px; height: 40px; }
  .podium-name { font-size: 15px; }
  .podium-rank { font-size: 16px; }
  .podium .p1 .podium-rank { font-size: 22px; }
  .podium-price { font-size: 17px; }
  .ranking-row { padding: 12px 18px; }
  .ranking-name { font-size: 17px; }
  .ranking-price { font-size: 20px; }
  .receipt { padding: 18px 22px 20px; }
  .settled-row { font-size: 16px; }
  .settled-total { margin: 14px -22px -20px; padding: 40px 20px 26px; }
  .settled-total-v { font-size: 64px; }
  .camp-head::after { width: 150px; height: 150px; margin: -34px -6px -14px 0; }
  .campaign-coins { font-size: 18px; }
  .prize { padding: 22px 22px 18px; gap: 6px; }
  .prize-rank { font-size: 28px; }
  .prize-name { font-size: 20px; }
  .prize-count { font-size: 17px; }
  .prize-need { font-size: 15px; }
  .closed-card::before, .waiting-spot { width: 200px; height: 200px; }
  dialog { width: min(440px, 92vw); padding: 26px 26px 20px; }
  .cast-detail-photo { width: 56%; }
}
@media (min-width: 1280px) {
  .wrap { max-width: 860px; }
  .cast-grid { grid-template-columns: repeat(5, 1fr); }
}


.btn:not(.btn-login):not(.btn-link) { position: relative; overflow: hidden; }
.btn > .lp-rp {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; background: rgba(255, 255, 255, .5); pointer-events: none;
  animation: lp-ripple .5s ease-out forwards;
}
@keyframes lp-ripple { from { opacity: .7; transform: scale(.3); } to { opacity: 0; transform: scale(11); } }

.cast-card { transition: transform .12s ease-out; }
.cast-card:has(.cast-photo:active) { transform: scale(.965); }
.cast-photo:active { opacity: .85; }
.cast-photo, .cast-photo img, .neta-thumb {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.cast-photo img { pointer-events: none; }

.cast-card.is-active { animation: lp-beat 1.6s ease-in-out infinite; }
@keyframes lp-beat {
  0%, 100% { box-shadow: 0 0 0 3px var(--yellow), var(--shadow); }
  50% { box-shadow: 0 0 0 6px var(--yellow), 0 0 18px 5px rgba(255, 240, 0, .9), var(--shadow); }
}
.cast-card.is-active .cast-state.is-perf { animation: lp-band 1.6s ease-in-out infinite; }
@keyframes lp-band { 0%, 100% { background: var(--yellow); } 50% { background: #fff8a0; } }

.neta-thumb-wrap { position: relative; width: 42%; flex: none; }
.neta-thumb-wrap .neta-thumb { width: 100%; }
.neta-order {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: grid; grid-auto-flow: column; align-items: center; gap: 4px;
  height: 30px; padding: 0 22px 0 10px;
  background: var(--grad-green); clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
  color: #fff; font-family: var(--font-head); font-size: 19px; font-weight: 900; line-height: 1;
}
.neta-order small { font-size: 11px; font-weight: 800; color: #c9efe2; }
body[data-enter="neta_furi"] .neta-order { animation: lp-tagin .5s cubic-bezier(.3, 1.2, .4, 1) both; }
@keyframes lp-tagin {
  from { opacity: 0; transform: translateX(-22px); clip-path: inset(0 100% 0 0); }
  to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

.cast-state { overflow: hidden; }
.cast-state.is-turn > span { display: block; animation: lp-turn .44s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes lp-turn { from { opacity: 0; transform: translateY(115%); } to { opacity: 1; transform: none; } }

body[data-screen="neta"] .neta-label { display: inline-flex; align-items: center; gap: 5px; }
body[data-screen="neta"] .neta-label::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: url("img/arrow-up.png") center / contain no-repeat;
  animation: lp-arup 1.5s ease-out infinite;
}
@keyframes lp-arup {
  0% { opacity: 0; transform: translateY(5px); }
  30% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

.podium .p1::after {
  content: ""; position: absolute; left: calc(50% + 11px); top: 7px; width: 11px; height: 11px; margin-left: -5px;
  background: #fff; pointer-events: none;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: lp-glint 3.4s ease-out infinite;
}
@keyframes lp-glint {
  0%, 74% { opacity: 0; transform: scale(.2) rotate(0); }
  82% { opacity: 1; transform: scale(2) rotate(60deg); }
  92%, 100% { opacity: 0; transform: scale(.2) rotate(90deg); }
}

#lp-curtain {
  position: fixed; inset: 0;
  z-index: 19; pointer-events: none; overflow: hidden;
}
#lp-curtain i {
  position: absolute; top: 0; bottom: 0; width: calc(50% + 1px);
  background: url("img/curtain.jpg") 0 0 / 200% 100% no-repeat;
}
#lp-curtain .l { left: 0; }
#lp-curtain .r { right: 0; background-position: 100% 0; }
#lp-curtain.is-open .l { animation: lp-curl 1.2s .3s cubic-bezier(.6, 0, .2, 1) forwards; }
#lp-curtain.is-open .r { animation: lp-curr 1.2s .3s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes lp-curl { to { transform: translateX(-100%); } }
@keyframes lp-curr { to { transform: translateX(100%); } }

#lp-curtain.is-hold { z-index: 18; }
body[data-screen="closed"][data-tab=""] #screen { position: relative; z-index: 19; }
body:not([data-tab=""]) #lp-curtain.is-hold { display: none; }
body:not([data-screen="closed"]) #lp-curtain.is-hold { display: none; }
#lp-curtain.is-hold.is-closing .l { animation: lp-holdl .65s cubic-bezier(.5, 0, .2, 1) both; }
#lp-curtain.is-hold.is-closing .r { animation: lp-holdr .65s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes lp-holdl { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes lp-holdr { from { transform: translateX(100%); } to { transform: none; } }

#lp-curtain > i { overflow: hidden; }
#lp-curtain .lp-face {
  position: absolute; top: 0; bottom: 0; width: 100vw; box-sizing: border-box;
  padding: 62px 18px calc(var(--tabnav-h) + 10px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
#lp-curtain .l .lp-face { left: 0; }
#lp-curtain .r .lp-face { right: 0; }
.lp-emblem { width: 150px; height: 150px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #e5b84a, 0 10px 30px rgba(0, 0, 0, .5); }
.lp-led { position: relative; align-self: stretch; margin: 26px -18px 0; padding: 16px 12px; background: #0d151d; border-top: 3px solid var(--red); border-bottom: 3px solid var(--green); overflow: hidden; }
.lp-led::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255, 240, 0, .10) 1px, transparent 1.4px) 0 0 / 6px 6px; }
.lp-led-t { position: relative; margin: 0; font-family: var(--font-head); font-size: 22px; font-weight: 900; color: var(--yellow); text-shadow: 0 0 10px rgba(255, 240, 0, .6); white-space: nowrap; }
.lp-sweep { position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent); animation: lp-sweep 3s ease-in-out infinite; }
@keyframes lp-sweep { 0% { left: -30%; } 60%, 100% { left: 110%; } }
.lp-face-m { margin: 16px 0 0; color: #fff4dc; font-size: 15px; font-weight: 700; line-height: 1.6; white-space: pre-line; text-shadow: 0 2px 6px rgba(0, 0, 0, .65); }
.lp-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 0; }
.lp-dots > span { display: block; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: lp-dot 1.2s infinite; }
.lp-dots > :nth-child(2) { animation-delay: .16s; }
.lp-dots > :nth-child(3) { animation-delay: .32s; }
@keyframes lp-dot { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-7px); opacity: 1; } }
@media (min-width: 900px) {
  #lp-curtain .lp-face { padding: 64px 24px 24px; }
  .lp-emblem { width: 180px; height: 180px; }
  .lp-led { margin-left: -24px; margin-right: -24px; padding: 20px 12px; }
  .lp-led-t { font-size: 30px; }
  .lp-face-m { font-size: 17px; }
}
body[data-screen="closed"][data-tab=""]:has(#lp-curtain.is-hold .lp-face) #screen { visibility: hidden; }

body[data-screen="neta_furi"][data-tab=""] .neta-now { background-image: url("img/hero-before-L1.jpg"); }
body[data-screen="neta"][data-tab=""] .neta-now { background-image: url("img/hero-live-L1.jpg"); }
body[data-screen="chart"][data-tab=""] .neta-now { background-image: url("img/hero-done-L1.jpg"); }

.neta-now { position: relative; overflow: hidden; }
.neta-now > .neta-thumb-wrap, .neta-now > .neta-body { position: relative; z-index: 1; }
.neta-now > .lp-prev { position: absolute; inset: 0; z-index: 0; background: center / cover no-repeat; animation: lp-prevout .45s .25s ease both; }
@keyframes lp-prevout { to { opacity: 0; } }
.neta-now > .lp-beam { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.neta-now > .lp-beam::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -45%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-12deg); animation: lp-beam .8s ease-in-out both;
}
@keyframes lp-beam { from { left: -45%; } to { left: 115%; } }
.neta-label { overflow: hidden; }
.neta-now.is-swap .neta-label > span { display: block; animation: lp-turn .44s cubic-bezier(.4, 0, .2, 1) both; }

.btn.lp-hero-invest { display: inline-block; margin: 8px 0 0; padding: 7px 14px; background: var(--yellow); color: var(--ink); box-shadow: 0 3px 0 #b8ad00; font-size: 14px; white-space: nowrap; }
.btn.lp-hero-invest:active { transform: translateY(2px); box-shadow: 0 1px 0 #b8ad00; }
.btn.lp-hero-invest:disabled { background: #b4bec8; color: #fff; box-shadow: 0 3px 0 #8f9aa5; }
.btn.lp-hero-invest:disabled:active { transform: none; }
.lp-next {
  position: absolute; right: 0; bottom: 0; z-index: 1; max-width: 62%;
  padding: 4px 10px 4px 13px; border-radius: 12px 0 0 0;
  background: rgba(0, 0, 0, .55); color: #fff; font-size: 11.5px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lp-next small { margin-right: 5px; font-size: 10px; font-weight: 900; color: var(--yellow); }
.neta-label { background: rgba(0, 0, 0, .4); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.btn.lp-hero-invest { padding-right: 28px; }
.btn.lp-hero-invest::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: rotate(45deg);
}
.neta-now.has-next { padding-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  .btn > .lp-rp, .cast-card.is-active, .cast-card.is-active .cast-state.is-perf,
  .cast-state.is-turn > span, body[data-enter="neta_furi"] .neta-order,
  body[data-screen="neta"] .neta-label::before,
  .neta-now > .lp-prev, .neta-now > .lp-beam::before, .neta-now.is-swap .neta-label > span,
  .podium .p1::after, #lp-curtain i, .lp-sweep, .lp-dots > span { animation: none; }
  .podium .p1::after { opacity: 0; }
  #lp-curtain:not(.is-hold) { display: none; }
  .cast-card { transition: none; }
}


@keyframes lp-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lp-pop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }

.bullets.lp-in > li { animation: lp-up .5s cubic-bezier(.3, 1.2, .4, 1) backwards; animation-delay: var(--lp-skip, 0s); }
.bullets.lp-in > li:nth-child(2) { animation-delay: calc(var(--lp-skip, 0s) + .12s); }
.bullets.lp-in > li:nth-child(3) { animation-delay: calc(var(--lp-skip, 0s) + .24s); }
.bullets.lp-in > li:nth-child(4) { animation-delay: calc(var(--lp-skip, 0s) + .36s); }
.bullets.lp-in > li:nth-child(5) { animation-delay: calc(var(--lp-skip, 0s) + .48s); }
.bullets.lp-in > li:nth-child(6) { animation-delay: calc(var(--lp-skip, 0s) + .6s); }
.bullets.lp-in > li:nth-child(n+7) { animation-delay: calc(var(--lp-skip, 0s) + .72s); }

.rules-steps.lp-in > li { animation: lp-up .5s cubic-bezier(.3, 1.2, .4, 1) backwards; animation-delay: var(--lp-skip, 0s); }
.rules-steps.lp-in > li::before { animation: lp-pop .45s cubic-bezier(.3, 1.6, .4, 1) backwards; animation-delay: calc(var(--lp-skip, 0s) + .18s); }
.rules-steps.lp-in > li:nth-child(2) { animation-delay: calc(var(--lp-skip, 0s) + .09s); } .rules-steps.lp-in > li:nth-child(2)::before { animation-delay: calc(var(--lp-skip, 0s) + .27s); }
.rules-steps.lp-in > li:nth-child(3) { animation-delay: calc(var(--lp-skip, 0s) + .18s); } .rules-steps.lp-in > li:nth-child(3)::before { animation-delay: calc(var(--lp-skip, 0s) + .36s); }
.rules-steps.lp-in > li:nth-child(4) { animation-delay: calc(var(--lp-skip, 0s) + .27s); } .rules-steps.lp-in > li:nth-child(4)::before { animation-delay: calc(var(--lp-skip, 0s) + .45s); }
.rules-steps.lp-in > li:nth-child(5) { animation-delay: calc(var(--lp-skip, 0s) + .36s); } .rules-steps.lp-in > li:nth-child(5)::before { animation-delay: calc(var(--lp-skip, 0s) + .54s); }
.rules-steps.lp-in > li:nth-child(6) { animation-delay: calc(var(--lp-skip, 0s) + .45s); } .rules-steps.lp-in > li:nth-child(6)::before { animation-delay: calc(var(--lp-skip, 0s) + .63s); }
.rules-steps.lp-in > li:nth-child(7) { animation-delay: calc(var(--lp-skip, 0s) + .54s); } .rules-steps.lp-in > li:nth-child(7)::before { animation-delay: calc(var(--lp-skip, 0s) + .72s); }
.rules-steps.lp-in > li:nth-child(n+8) { animation-delay: calc(var(--lp-skip, 0s) + .63s); } .rules-steps.lp-in > li:nth-child(n+8)::before { animation-delay: calc(var(--lp-skip, 0s) + .81s); }

#cover:not([hidden]) { animation: lp-fade .45s ease both; }
#cover::before, .partial-cover::before { animation: lp-breathe 2.4s ease-in-out infinite; }
@keyframes lp-breathe {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow), 0 0 0 0 rgba(255, 25, 55, .35); }
  50% { transform: scale(1.05); box-shadow: var(--shadow), 0 0 0 16px rgba(255, 25, 55, 0); }
}

#coin.lp-gain { animation: lp-ring 1s ease-out; }
#coin.lp-gain .coin-mark { animation: lp-flip .9s ease-in-out; }
@keyframes lp-ring { 0% { box-shadow: var(--shadow), 0 0 0 0 rgba(5, 155, 105, .6); } 100% { box-shadow: var(--shadow), 0 0 0 14px rgba(5, 155, 105, 0); } }
@keyframes lp-flip { from { transform: rotateY(0); } to { transform: rotateY(720deg); } }
.lp-plus { position: fixed; z-index: 30; font-family: var(--font-head); font-size: 15px; font-weight: 900; color: var(--green); text-shadow: 0 1px 0 #fff; pointer-events: none; animation: lp-float 1.2s ease-out forwards; }
@keyframes lp-float { 0% { opacity: 0; transform: translateY(6px); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }

#x-post-modal[open] .xp-card { animation: lp-sheet .38s cubic-bezier(.2, 1, .3, 1) backwards; }
@keyframes lp-sheet { from { opacity: 0; transform: translateY(40px); } }
#x-post-modal[open] .xp-plane { animation: lp-fly 1s .15s cubic-bezier(.2, .9, .3, 1) both, lp-bob 2.6s 1.15s ease-in-out infinite; }
@keyframes lp-fly { from { opacity: 0; transform: translate(-260px, 220px) rotate(-40deg) scale(.5); } to { opacity: 1; transform: rotate(-6deg); } }
@keyframes lp-bob { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-1deg) translateY(-7px); } }

#invest-done::before {
  content: ""; position: fixed; left: 50%; top: 50%; z-index: -1; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax;
  pointer-events: none; opacity: 0; will-change: transform, opacity;
  background: repeating-conic-gradient(from 0deg, rgba(255, 240, 0, .32) 0 8deg, rgba(255, 240, 0, 0) 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 0, #000 12%, transparent 42%);
  mask: radial-gradient(circle, #000 0, #000 12%, transparent 42%);
}
#invest-done.is-play::before { animation: lp-rays-in .45s 1.35s cubic-bezier(.2, .9, .3, 1) both, lp-spin 18s linear infinite; }
@keyframes lp-rays-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes lp-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

#invest-done.is-play .rc-paper, #invest-done.is-play .rc-stamp, #invest-done.is-play .rc-impact,
#invest-done.is-play .rc-popper, #invest-done.is-play .rc-confetti { will-change: transform, opacity; }
@keyframes rc-stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(2.4); } 40% { opacity: .9; } 70% { opacity: 1; transform: rotate(-8deg) scale(.94); } 100% { opacity: 1; transform: rotate(-8deg) scale(1); } }

body:has(dialog[open]) .cast-card.is-active, body:has(dialog[open]) .cast-card.is-active .cast-state.is-perf,
body:has(dialog[open]) .lp-tk-track, body:has(dialog[open]) .neta-label::before, body:has(dialog[open]) .podium .p1::after,
body:has(dialog[open]) .partial-cover::before { animation-play-state: paused; }

#cast-detail[open] { animation: lp-cflip .75s cubic-bezier(.25, 1.2, .4, 1) backwards; }
@keyframes lp-cflip { 0% { opacity: 0; transform: perspective(1000px) rotateY(-120deg) scale(.7); } 45% { opacity: 1; } }
.cast-detail-photo { position: relative; }
#cast-detail[open] .cast-detail-photo::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-15deg); animation: lp-shine-once 1s .75s ease-in-out both;
}
@keyframes lp-shine-once { from { left: -50%; } to { left: 130%; } }

.portfolio-list li, .portfolio-list li:first-child {
  margin: 0 0 8px; padding: 9px 12px; border-top: 0; border-radius: 6px;
  background: repeating-linear-gradient(135deg, #fffdf3 0 7px, #fbf4d8 7px 14px);
  box-shadow: inset 0 0 0 2px #d4b04f, inset 0 0 0 5px #fffdf3, inset 0 0 0 6px #d4b04f, 0 3px 8px rgba(30, 45, 60, .15);
}
#portfolio[open] .portfolio-list li { animation: lp-deal .55s .25s cubic-bezier(.3, 1.25, .4, 1) backwards; }
#portfolio[open] .portfolio-list li:nth-child(2) { animation-delay: .43s; }
#portfolio[open] .portfolio-list li:nth-child(3) { animation-delay: .61s; }
#portfolio[open] .portfolio-list li:nth-child(4) { animation-delay: .79s; }
#portfolio[open] .portfolio-list li:nth-child(5) { animation-delay: .97s; }
#portfolio[open] .portfolio-list li:nth-child(n+6) { animation-delay: 1.15s; }
@keyframes lp-deal { from { opacity: 0; transform: translate(140px, -70px) rotate(22deg); } }

.tab.is-active::after { opacity: 0; }
.lp-tabline { position: absolute; bottom: env(safe-area-inset-bottom); z-index: 1; height: 3px; border-radius: 3px 3px 0 0; background: var(--green); pointer-events: none; transition: left .4s cubic-bezier(.3, 1.3, .4, 1), width .4s; }
.lp-tabline[hidden] { display: none; }
@media (min-width: 900px) { .lp-tabline { display: none; } }

.podium.lp-in, .ranking.lp-in { perspective: 800px; }
.podium.lp-in > div { animation: lp-turnin .7s cubic-bezier(.3, 1.2, .4, 1) backwards; }
.podium.lp-in > .p3 { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + .1s); }
.podium.lp-in > .p2 { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + .55s); }
.podium.lp-in > .p1 { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 1s); }
@keyframes lp-turnin { from { opacity: 0; transform: rotateY(100deg); } 50% { opacity: 1; } }
.ranking.lp-in > .ranking-row { transform-origin: 50% 0; animation: lp-rowflip .6s cubic-bezier(.3, 1.2, .4, 1) backwards; }
.ranking.lp-in > .ranking-row:nth-child(1) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 1.7s); }
.ranking.lp-in > .ranking-row:nth-child(2) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 1.88s); }
.ranking.lp-in > .ranking-row:nth-child(3) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 2.06s); }
.ranking.lp-in > .ranking-row:nth-child(4) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 2.24s); }
.ranking.lp-in > .ranking-row:nth-child(5) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 2.42s); }
.ranking.lp-in > .ranking-row:nth-child(6) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 2.6s); }
.ranking.lp-in > .ranking-row:nth-child(7) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 2.78s); }
.ranking.lp-in > .ranking-row:nth-child(8) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 2.96s); }
.ranking.lp-in > .ranking-row:nth-child(n+9) { animation-delay: calc(var(--lp-skip, 0s) + var(--lp-late, 0s) + 3.14s); }
@keyframes lp-rowflip { from { opacity: 0; transform: rotateX(-95deg); } 60% { opacity: 1; } }


#lp-ticker { position: sticky; top: 62px; z-index: 18; height: 32px; margin-top: 6px; overflow: hidden; background: #0d1620; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4); }
#lp-ticker[hidden], body:not([data-tab=""]) #lp-ticker, body.is-covered #lp-ticker { display: none; }
#lp-ticker::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, transparent 0 1px, rgba(0, 0, 0, .35) 1.4px) 0 0 / 3px 3px; }
.lp-tk-track { display: flex; align-items: center; width: max-content; height: 100%; animation: lp-tick var(--lp-tk-dur, 26s) linear infinite; }
.lp-tk-track > span { display: flex; align-items: center; gap: 6px; padding: 0 18px; font-family: var(--font-head); font-size: 13px; font-weight: 900; color: #7dffb8; white-space: nowrap; text-shadow: 0 0 6px rgba(125, 255, 184, .7); }
.lp-tk-track > span.is-perf { color: #fff000; text-shadow: 0 0 6px rgba(255, 240, 0, .85); }
.lp-tk-track > span.is-done { color: #8a99a6; text-shadow: none; }
.lp-tk-face { width: 22px; height: 22px; flex: none; border-radius: 50%; object-fit: cover; border: 1.5px solid currentColor; background: var(--sub-light); font-size: 0; }
.lp-tk-arrow { width: 12px; height: 12px; visibility: hidden; }
.lp-tk-track > span.is-perf .lp-tk-arrow { visibility: visible; }
@keyframes lp-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (min-width: 900px) { #lp-ticker { top: 70px; } }

@media (prefers-reduced-motion: reduce) {
  .bullets.lp-in > li, .rules-steps.lp-in > li, .rules-steps.lp-in > li::before,
  #cover:not([hidden]), #cover::before, .partial-cover::before, #coin.lp-gain, #coin.lp-gain .coin-mark,
  #x-post-modal[open] .xp-card, #x-post-modal[open] .xp-plane,
  #invest-done.is-play .rc-paper, #invest-done.is-play::before,
  #cast-detail[open], #portfolio[open] .portfolio-list li,
  .podium.lp-in > div, .ranking.lp-in > .ranking-row, .lp-tk-track { animation: none; }
  #invest-done::before, #cast-detail[open] .cast-detail-photo::after, .lp-plus { display: none; }
  .lp-tabline { transition: none; }
}
