:root {
  color-scheme: dark;
  --bg: #080a10;
  --panel: rgba(17, 20, 31, 0.9);
  --panel-solid: #11141f;
  --panel-soft: #171b28;
  --line: rgba(255, 255, 255, 0.11);
  --line-bright: rgba(255, 255, 255, 0.22);
  --text: #f8f9fb;
  --muted: #9ba3b7;
  --red: #ff4a5f;
  --red-soft: #ff7787;
  --cyan: #4de8df;
  --cyan-soft: #9cfbf5;
  --gold: #ffd166;
  --green: #77efaa;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% -10%, #24283a 0, #0d1018 34%, var(--bg) 68%);
  background-size: 36px 36px, 36px 36px, auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
.file-button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible,
.file-button:focus-within {
  outline: 3px solid rgba(77, 232, 223, 0.72);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.12;
  pointer-events: none;
}

.ambient-one {
  top: 10%;
  left: -180px;
  background: var(--red);
}

.ambient-two {
  right: -200px;
  bottom: 6%;
  background: var(--cyan);
}

.site-header,
.site-footer {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  transform: rotate(45deg);
}

.brand-mark i {
  position: absolute;
  width: 17px;
  height: 4px;
  border-radius: 999px;
  background: var(--red);
}

.brand-mark i:last-child {
  background: var(--cyan);
  transform: rotate(90deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot,
.privacy-badge,
.audio-toggle,
.mini-badge,
.streak-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.audio-toggle {
  appearance: none;
  cursor: pointer;
  color: var(--cyan);
  border-color: rgba(100, 232, 213, 0.34);
  background: rgba(100, 232, 213, 0.08);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.audio-toggle:hover {
  border-color: rgba(100, 232, 213, 0.72);
  background: rgba(100, 232, 213, 0.16);
  transform: translateY(-1px);
}

.audio-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.audio-toggle[aria-pressed="false"] {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.status-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

#app {
  width: min(1440px, calc(100% - 48px));
  min-height: calc(100vh - 146px);
  margin-inline: auto;
  padding: 42px 0 56px;
}

#app:focus {
  outline: none;
}

.site-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #70788c;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.screen {
  animation: screen-in 320ms ease both;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: -170px;
  left: -220px;
  width: min(1050px, 92vw);
  height: 760px;
  content: "";
  background:
    radial-gradient(circle at 30% 38%, rgba(255, 94, 134, 0.12), transparent 35%),
    radial-gradient(circle at 68% 25%, rgba(103, 232, 222, 0.09), transparent 30%),
    radial-gradient(circle at 45% 72%, rgba(192, 108, 255, 0.065), transparent 34%);
  filter: blur(10px);
  pointer-events: none;
}

.hero > div {
  position: relative;
  width: min(780px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero-eyebrow {
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 126, 158, 0.24);
  border-radius: 999px;
  color: #ffd8e2;
  background: linear-gradient(90deg, rgba(255, 91, 126, 0.1), rgba(100, 232, 213, 0.07));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  letter-spacing: 0.11em;
}

.hero-eyebrow::before {
  display: none;
}

.hero-eyebrow i {
  color: #ff6b8b;
  font-style: normal;
  text-shadow: 0 0 12px rgba(255, 107, 139, 0.55);
}

.hero-eyebrow i:last-child {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(77, 232, 223, 0.48);
}

.hero h1 {
  max-width: 740px;
  margin: 18px 0 22px;
  font-size: clamp(3.4rem, 8vw, 7.6rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.hero h1 > .hero-tagline {
  display: block;
  margin-top: 14px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.48);
  font-size: 0.43em;
  letter-spacing: 0.12em;
}

.hero-heart {
  display: inline-block;
  width: 0.46em;
  margin-left: 0.11em;
  vertical-align: 0.04em;
  filter: drop-shadow(0 0.08em 0.12em rgba(255, 79, 114, 0.3));
  transform: rotate(-6deg);
  transform-origin: 50% 68%;
  animation: hero-heart-breathe 3.2s ease-in-out infinite;
}

.hero-heart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@keyframes hero-heart-breathe {
  0%, 72%, 100% { transform: rotate(-6deg) scale(1); }
  78% { transform: rotate(-6deg) scale(1.08); }
  84% { transform: rotate(-6deg) scale(1); }
  90% { transform: rotate(-6deg) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-heart {
    animation: none;
  }
}

/* Account protection and monthly VALUE MARKET patron */
.button.hero-account-button {
  border-color: rgba(255, 209, 102, 0.42);
  color: #fff0bd;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.14), rgba(77, 232, 223, 0.08)),
    rgba(12, 15, 24, 0.84);
}

.button.hero-account-button:hover:not(:disabled) {
  border-color: rgba(255, 209, 102, 0.72);
  box-shadow: 0 12px 34px rgba(255, 190, 71, 0.13);
}

.account-screen {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.account-loading {
  display: grid;
  min-height: 58vh;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.account-loading h1 {
  margin: 14px 0 8px;
}

.account-loading p {
  color: var(--muted);
}

.account-hero,
.account-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.account-hero {
  margin-bottom: 22px;
}

.account-hero h1 {
  max-width: 760px;
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.98;
}

.account-hero > div:first-child > p,
.account-section-head p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.75;
}

.account-wallet {
  display: grid;
  flex: 0 0 min(290px, 100%);
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 209, 102, 0.15), transparent 50%),
    rgba(14, 17, 27, 0.94);
  box-shadow: var(--shadow);
}

.account-wallet > span,
.account-status-copy > span,
.account-transfer-grid article > span,
.transfer-code-result > span,
.patron-progress-card span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.account-wallet > strong {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1;
}

.account-wallet > strong small {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.account-wallet > em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.anju-pay-policy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 0 0, rgba(255, 209, 102, 0.13), transparent 42%),
    linear-gradient(135deg, rgba(77, 232, 223, 0.055), rgba(14, 17, 27, 0.96));
  box-shadow: var(--shadow);
}

.anju-pay-policy-mark {
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 209, 102, 0.65);
  border-radius: 18px;
  color: #17110a;
  background: linear-gradient(135deg, #fff1b9, #ffbf4b);
  box-shadow: 0 10px 28px rgba(255, 190, 71, 0.15);
  font-size: 1.8rem;
  font-weight: 950;
  place-items: center;
}

.anju-pay-policy h2 {
  margin: 5px 0 7px;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
}

.anju-pay-policy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.anju-pay-policy strong {
  display: block;
  margin-top: 10px;
  color: #ffe8a1;
  font-size: 0.88rem;
  line-height: 1.65;
}

.anju-pay-quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.anju-pay-quick-actions button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 11px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.055), transparent 55%),
    rgba(14, 17, 27, 0.9);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.anju-pay-quick-actions button:hover,
.anju-pay-quick-actions button:focus-visible {
  border-color: rgba(255, 209, 102, 0.48);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.11), rgba(77, 232, 223, 0.04)),
    rgba(14, 17, 27, 0.96);
  transform: translateY(-2px);
}

.anju-pay-quick-actions button > span {
  display: grid;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.075);
  font-weight: 950;
  place-items: center;
}

.anju-pay-quick-actions small {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.anju-pay-quick-actions strong {
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.account-notice,
.account-error {
  margin: 16px 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-weight: 750;
  line-height: 1.55;
}

.account-notice {
  border: 1px solid rgba(119, 239, 170, 0.34);
  color: #c8ffdd;
  background: rgba(36, 133, 81, 0.13);
}

.account-error {
  border: 1px solid rgba(255, 74, 95, 0.38);
  color: #ffd4d9;
  background: rgba(255, 74, 95, 0.11);
}

.account-protection-card,
.anju-pay-history-section,
.account-patron-section,
.account-transfer-section {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(14, 17, 27, 0.91);
  box-shadow: var(--shadow);
}

.account-protection-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
}

.account-protection-card.is-protected {
  border-color: rgba(119, 239, 170, 0.38);
  background:
    radial-gradient(circle at 0 0, rgba(119, 239, 170, 0.13), transparent 38%),
    rgba(14, 17, 27, 0.94);
}

.account-protection-card.is-guest {
  border-color: rgba(255, 209, 102, 0.28);
}

.account-status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: 950;
  place-items: center;
}

.is-protected .account-status-icon {
  color: var(--green);
}

.is-transferred .account-status-icon {
  color: var(--cyan);
}

.account-status-copy h2,
.account-section-head h2 {
  margin: 5px 0 8px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.account-status-copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.account-status-copy > .account-device-local-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(230, 235, 246, 0.72);
  font-size: 0.82rem;
  line-height: 1.65;
}

.account-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.account-protected-note,
.patron-protection-lock,
.transfer-protected-note {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(77, 232, 223, 0.2);
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: rgba(77, 232, 223, 0.055);
}

.account-protected-note span {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.account-protected-note p,
.patron-protection-lock p,
.transfer-protected-note {
  margin: 4px 0 0;
  line-height: 1.6;
}

.account-collision {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px solid rgba(255, 209, 102, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 209, 102, 0.08);
}

.account-collision p {
  color: var(--muted);
}

.account-collision > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-patron-section,
.anju-pay-history-section,
.account-transfer-section {
  padding: 26px;
}

.anju-pay-history-section {
  border-color: rgba(77, 232, 223, 0.22);
}

.anju-pay-history-head {
  align-items: center;
}

.anju-pay-history-head .button {
  flex: 0 0 auto;
}

.anju-pay-history-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.anju-pay-history-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: var(--radius-md);
  background: rgba(7, 9, 15, 0.55);
}

.anju-pay-history-entry.is-opening {
  border-color: rgba(255, 209, 102, 0.22);
  background: rgba(255, 209, 102, 0.04);
}

.anju-pay-history-entry.is-market {
  border-color: rgba(77, 232, 223, 0.17);
}

.anju-pay-history-entry.is-flea {
  border-color: rgba(196, 151, 255, 0.2);
}

.anju-pay-history-entry.is-tip {
  border-color: rgba(255, 111, 145, 0.17);
}

.anju-pay-history-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 950;
  place-items: center;
}

.is-earn .anju-pay-history-icon,
.anju-pay-history-entry.is-positive .anju-pay-history-amount > strong {
  color: var(--green);
}

.is-spend .anju-pay-history-icon,
.anju-pay-history-entry.is-negative .anju-pay-history-amount > strong {
  color: #ff9caf;
}

.is-market .anju-pay-history-icon {
  color: var(--cyan);
}

.is-flea .anju-pay-history-icon {
  color: #c497ff;
}

.is-tip .anju-pay-history-icon {
  color: #ff9caf;
}

.is-opening .anju-pay-history-icon,
.anju-pay-history-entry.is-neutral .anju-pay-history-amount > strong {
  color: var(--gold);
}

.anju-pay-history-copy {
  min-width: 0;
}

.anju-pay-history-copy > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}

.anju-pay-history-copy time {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.anju-pay-history-copy > div > span {
  padding: 2px 6px;
  border: 1px solid rgba(77, 232, 223, 0.16);
  border-radius: 999px;
  color: #a8f7f1;
  background: rgba(77, 232, 223, 0.045);
  font-size: 0.62rem;
  font-weight: 900;
}

.anju-pay-history-copy > strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.94rem;
}

.anju-pay-history-copy p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.anju-pay-history-amount {
  display: grid;
  justify-items: end;
  min-width: 126px;
  text-align: right;
}

.anju-pay-history-amount > strong {
  font-size: 1rem;
  white-space: nowrap;
}

.anju-pay-history-amount > small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.67rem;
  white-space: nowrap;
}

.anju-pay-history-state {
  display: grid;
  gap: 7px;
  min-height: 130px;
  margin-top: 18px;
  padding: 24px;
  border: 1px dashed var(--line-bright);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: rgba(7, 9, 15, 0.42);
  place-content: center;
  justify-items: center;
  text-align: center;
}

.anju-pay-history-state strong {
  color: var(--text);
}

.anju-pay-history-state p {
  max-width: 620px;
  margin: 0;
  line-height: 1.65;
}

.anju-pay-history-state.is-error,
.anju-pay-history-inline-error {
  border-color: rgba(255, 74, 95, 0.3);
  color: #ffd4d9;
  background: rgba(255, 74, 95, 0.07);
}

.anju-pay-history-inline-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 74, 95, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.account-live-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.anju-pay-history-more {
  width: 100%;
  margin-top: 12px;
}

.anju-pay-history-boundary {
  margin: 15px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.anju-pay-history-boundary strong {
  color: #ffe8a1;
}

#accountPatronSection:focus {
  outline: 2px solid rgba(255, 209, 102, 0.55);
  outline-offset: 4px;
}

.patron-current-badge {
  display: grid;
  min-width: 180px;
  padding: 15px 18px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-md);
  background: rgba(8, 10, 16, 0.6);
  text-align: center;
}

.patron-current-badge > span {
  color: var(--gold);
  font-size: 1.7rem;
}

.patron-current-badge > small {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.patron-current-badge > strong {
  margin-top: 3px;
  color: #fff0bd;
  font-size: 0.86rem;
}

.patron-current-badge.tier-patron {
  border-color: rgba(77, 232, 223, 0.45);
  box-shadow: inset 0 0 22px rgba(77, 232, 223, 0.08);
}

.patron-current-badge.tier-grand_patron {
  border-color: rgba(255, 209, 102, 0.62);
  box-shadow: inset 0 0 28px rgba(255, 209, 102, 0.11), 0 0 24px rgba(255, 190, 71, 0.08);
}

.patron-progress-card {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 9, 15, 0.58);
}

.patron-progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.patron-progress {
  height: 9px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.patron-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 15px rgba(77, 232, 223, 0.34);
}

.patron-progress-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.patron-protection-lock {
  border-color: rgba(255, 209, 102, 0.28);
  background: rgba(255, 209, 102, 0.065);
}

.patron-protection-lock strong {
  color: #ffe9a5;
}

.patron-oshijo-qualification {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 126, 158, 0.3);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 126, 158, 0.11), transparent 42%),
    rgba(10, 8, 15, 0.66);
}

.patron-oshijo-qualification.is-qualified {
  border-color: rgba(119, 239, 170, 0.4);
  box-shadow: inset 0 0 24px rgba(119, 239, 170, 0.05);
}

.patron-oshijo-qualification.is-legacy {
  border-color: rgba(255, 209, 102, 0.25);
  background: rgba(255, 209, 102, 0.055);
}

.patron-oshijo-qualification h3 {
  margin: 4px 0 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.patron-oshijo-qualification > p,
.patron-oshijo-qualification > small {
  display: block;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.patron-oshijo-qualification.is-legacy strong {
  color: #ffe9a5;
}

.patron-oshijo-qualification dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}

.patron-oshijo-qualification dl > div {
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(5, 8, 14, 0.5);
}

.patron-oshijo-qualification dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.patron-oshijo-qualification dd {
  margin: 4px 0 0;
  color: #fff0bd;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.patron-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 18px;
}

.patron-tier-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.patron-tier-card.is-owned {
  border-color: rgba(119, 239, 170, 0.31);
  background: rgba(119, 239, 170, 0.055);
}

.patron-tier-icon {
  color: var(--gold);
  font-size: 1.4rem;
}

.patron-tier-card small {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.patron-tier-card h3 {
  margin: 3px 0;
  font-size: 0.94rem;
}

.patron-tier-card strong {
  color: #ffe9a5;
  font-size: 0.86rem;
}

.patron-tier-card .button {
  grid-column: 1 / -1;
  width: 100%;
}

.patron-circulation-card,
.patron-policy-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 209, 102, 0.27);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 209, 102, 0.1), transparent 38%),
    rgba(7, 9, 15, 0.64);
}

.patron-circulation-head,
.patron-policy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.patron-circulation-head h3,
.patron-policy-head h3,
.patron-impact-panel h3 {
  margin: 4px 0 0;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
}

.patron-circulation-head > p,
.patron-policy-card > p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.patron-circulation-head > p strong {
  color: #ffe9a5;
}

.patron-fund-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
}

.patron-fund-metrics > div {
  min-width: 0;
  padding: 13px 14px;
  background: rgba(8, 11, 19, 0.86);
}

.patron-fund-metrics dt,
.patron-impact-panel dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.patron-fund-metrics dd,
.patron-impact-panel dd {
  margin: 4px 0 0;
  color: #fff0bd;
  font-size: 0.95rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.patron-impact-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1fr);
  align-items: center;
  gap: 16px 22px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(77, 232, 223, 0.25);
  border-radius: var(--radius-sm);
  background: rgba(77, 232, 223, 0.055);
}

.patron-impact-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.patron-impact-panel dl > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(5, 8, 14, 0.48);
}

.patron-impact-panel > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.65;
}

.patron-policy-card {
  border-color: rgba(77, 232, 223, 0.25);
  background:
    radial-gradient(circle at 0 0, rgba(77, 232, 223, 0.09), transparent 38%),
    rgba(7, 9, 15, 0.64);
}

.patron-policy-head > p {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 150px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 209, 102, 0.27);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.06);
  text-align: right;
}

.patron-policy-head > p span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 850;
}

.patron-policy-head > p strong {
  color: #ffe9a5;
  font-size: 0.84rem;
}

.patron-policy-card > p {
  max-width: none;
  margin-top: 13px;
}

.patron-policy-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.patron-policy-option {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.patron-policy-option:hover:not(:disabled),
.patron-policy-option:focus-visible {
  border-color: rgba(77, 232, 223, 0.55);
  outline: 2px solid rgba(77, 232, 223, 0.15);
  outline-offset: 2px;
  background: rgba(77, 232, 223, 0.07);
  transform: translateY(-1px);
}

.patron-policy-option.is-active-policy {
  border-color: rgba(255, 209, 102, 0.48);
  background: rgba(255, 209, 102, 0.065);
}

.patron-policy-option.is-selected {
  box-shadow: inset 0 0 0 2px rgba(77, 232, 223, 0.48);
}

.patron-policy-option:disabled {
  cursor: default;
  opacity: 0.7;
}

.patron-policy-option > span {
  color: #f8fbff;
  font-size: 0.88rem;
  font-weight: 900;
}

.patron-policy-option > small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.patron-policy-option > strong {
  align-self: end;
  color: var(--cyan);
  font-size: 0.69rem;
  line-height: 1.45;
}

.patron-policy-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: #b8fffa;
  font-size: 0.76rem;
  line-height: 1.55;
}

.account-transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.account-transfer-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 9, 15, 0.56);
}

.account-transfer-grid h3 {
  margin: 6px 0;
}

.account-transfer-grid article > p {
  min-height: 52px;
  color: var(--muted);
  line-height: 1.6;
}

.transfer-code-result {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed rgba(255, 209, 102, 0.48);
  border-radius: var(--radius-sm);
  background: rgba(255, 209, 102, 0.055);
}

.transfer-code-result > strong {
  overflow-wrap: anywhere;
  color: #fff2bd;
  font: 900 clamp(1rem, 3vw, 1.45rem) ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.08em;
}

.transfer-code-result > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.transfer-code-result time {
  margin-right: auto;
  color: var(--muted);
}

#redeemTransferForm {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

#redeemTransferForm label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

#transferCodeInput {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  color: var(--text);
  background: rgba(5, 7, 12, 0.75);
  font: 850 1rem ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.account-fine-print {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.65;
}

@media (max-width: 820px) {
  .account-hero,
  .account-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .account-wallet,
  .patron-current-badge {
    width: 100%;
  }

  .patron-tier-grid {
    grid-template-columns: 1fr;
  }

  .patron-circulation-head,
  .patron-policy-head {
    align-items: stretch;
    flex-direction: column;
  }

  .patron-policy-head > p {
    width: 100%;
    text-align: left;
  }

  .patron-policy-options {
    grid-template-columns: 1fr;
  }

  .patron-policy-option {
    min-height: 0;
  }

  .anju-pay-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .anju-pay-policy {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .anju-pay-policy-mark {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 1.5rem;
  }

  .account-protection-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .account-status-icon {
    width: 48px;
    height: 48px;
  }

  .account-patron-section,
  .anju-pay-history-section,
  .account-transfer-section {
    padding: 18px;
  }

  .anju-pay-history-entry {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    padding: 13px;
  }

  .anju-pay-history-amount {
    grid-column: 2;
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .anju-pay-history-head .button {
    width: 100%;
  }

  .account-transfer-grid {
    grid-template-columns: 1fr;
  }

  .account-auth-actions,
  .account-collision > div {
    display: grid;
  }

  .account-auth-actions .button,
  .account-collision .button {
    width: 100%;
  }

  .patron-progress-card > div:first-child {
    flex-direction: column;
  }

  .patron-fund-metrics,
  .patron-oshijo-qualification dl,
  .patron-impact-panel,
  .patron-impact-panel dl {
    grid-template-columns: 1fr;
  }

  .patron-circulation-card,
  .patron-policy-card {
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .anju-pay-quick-actions {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  max-width: 650px;
  margin: 0;
  color: #d2d6e1;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.95;
}

.hero-welcome {
  display: flex;
  width: fit-content;
  max-width: 680px;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 0 0 12px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 126, 158, 0.2);
  border-radius: 14px;
  color: #e7dce4;
  background: rgba(255, 89, 126, 0.055);
  font-size: 0.84rem;
}

.hero-welcome > span {
  color: #ff7997;
  font-size: 1rem;
  line-height: 1;
}

.hero-welcome strong {
  color: #fff1f5;
}

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.hero-assurances li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #bfc6d6;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
  font-weight: 800;
}

.hero-assurances li::before {
  color: #ff7795;
  content: "♡";
  font-size: 0.85rem;
}

.hero-actions,
.button-row,
.setup-actions,
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 11px;
  margin-top: 28px;
}

.hero-mode-button {
  position: relative;
  min-height: 76px;
  grid-column: span 4;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
  padding-inline: 12px;
  border-radius: 20px;
}

.hero-ai-text-training-button {
  grid-column: 1 / -1;
  min-height: 96px;
  color: #07111b;
  border-color: rgba(126, 255, 221, 0.78);
  background:
    radial-gradient(circle at 14% 15%, rgba(255, 255, 255, 0.48), transparent 30%),
    linear-gradient(135deg, #87f7dc 0%, #74c9ff 48%, #d6a5ff 100%);
  box-shadow: 0 16px 40px rgba(77, 213, 202, 0.2);
}

.hero-ai-text-training-button:hover {
  border-color: #fff;
  box-shadow: 0 18px 46px rgba(77, 213, 202, 0.3);
}

.hero-danwaku-note-button {
  grid-column: 1 / -1;
  min-height: 88px;
  color: #fff8ff;
  border-color: rgba(237, 190, 255, 0.72);
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 31%),
    linear-gradient(135deg, #39275d 0%, #734978 48%, #9f5f8a 100%);
  box-shadow: 0 15px 38px rgba(93, 48, 117, 0.26);
}

.hero-danwaku-note-button:hover {
  border-color: #fff;
  box-shadow: 0 18px 44px rgba(122, 70, 137, 0.36);
}

.hero-danwaku-note-button span i {
  margin-right: 0.25em;
  font-style: normal;
}

.hero-mode-button::after {
  position: absolute;
  top: -48px;
  right: -34px;
  width: 95px;
  height: 95px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-mode-button small {
  position: relative;
  z-index: 1;
  opacity: 0.76;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-mode-button span {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  white-space: nowrap;
}

.training-lights-card {
  position: relative;
  max-width: 780px;
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 104, 0.4);
  border-radius: 24px;
  background:
    radial-gradient(circle at 9% 48%, rgba(255, 180, 84, 0.18), transparent 28%),
    radial-gradient(circle at 87% 18%, rgba(255, 115, 99, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(63, 40, 42, 0.86), rgba(23, 28, 43, 0.95));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 16px 38px rgba(0, 0, 0, 0.17);
}

.training-lights-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, rgba(255, 213, 150, 0.05), transparent 38% 68%, rgba(255, 127, 112, 0.04));
  content: "";
  pointer-events: none;
}

.training-lights-visual,
.training-lights-copy,
.training-lights-start {
  position: relative;
  z-index: 1;
}

.training-lights-visual {
  min-width: 108px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.training-lights-visual > small {
  color: #ffc881;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  white-space: nowrap;
}

.training-lights-dots {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.training-lights-dots i {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 240, 207, 0.68);
  border-radius: 50%;
  background: #ffb45f;
  box-shadow: 0 0 8px rgba(255, 166, 74, 0.78), 0 0 22px rgba(255, 130, 78, 0.42);
  animation: training-light-breathe 3.4s ease-in-out infinite;
  animation-delay: calc(var(--training-light-index, 0) * -0.38s);
}

.training-lights-dots b {
  color: #ffd49a;
  font-size: 0.62rem;
  font-weight: 900;
}

.training-lights-card.is-checking .training-lights-dots i {
  opacity: 0.38;
  animation-name: training-light-checking;
}

.training-lights-card.is-recent .training-lights-dots i {
  opacity: 0.48;
  background: #d69a62;
  box-shadow: 0 0 11px rgba(255, 171, 88, 0.34);
  animation: none;
}

.training-lights-card.is-quiet .training-lights-dots i {
  opacity: 0.24;
  background: transparent;
  box-shadow: inset 0 0 7px rgba(255, 189, 112, 0.3);
  animation: none;
}

.training-lights-copy {
  min-width: 0;
}

.training-lights-copy > span {
  display: block;
  margin-bottom: 3px;
  color: #ffc477;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.training-lights-copy > strong {
  display: block;
  color: #fff4e3;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  font-size: clamp(0.92rem, 1.7vw, 1.12rem);
  line-height: 1.45;
}

.training-lights-copy > p {
  margin: 4px 0 0;
  color: #ffd7b0;
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.55;
}

.training-lights-copy > small {
  display: block;
  margin-top: 6px;
  color: #9ea3b0;
  font-size: 0.6rem;
  line-height: 1.45;
}

.button.training-lights-start {
  min-height: 48px;
  padding-inline: 16px;
  border-color: rgba(255, 211, 145, 0.72);
  color: #2a1720;
  background: linear-gradient(135deg, #ffd591, #ffad77);
  box-shadow: 0 10px 25px rgba(255, 132, 82, 0.17);
  white-space: nowrap;
}

.button.training-lights-start:hover {
  border-color: #fff2d9;
  background: linear-gradient(135deg, #ffe1ad, #ffba89);
}

@keyframes training-light-breathe {
  0%, 100% { opacity: 0.62; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}

@keyframes training-light-checking {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.68; }
}

.hero-utility-button {
  grid-column: span 4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.button.hero-audio-tool-button {
  min-height: 62px;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(132, 113, 255, 0.48);
  border-radius: 20px;
  color: #f7f2ff;
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 103, 146, 0.16), transparent 26%),
    radial-gradient(circle at 88% 35%, rgba(92, 232, 220, 0.14), transparent 28%),
    linear-gradient(120deg, rgba(100, 75, 191, 0.3), rgba(23, 33, 55, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.14);
}

.button.hero-audio-tool-button:hover {
  border-color: rgba(139, 232, 223, 0.72);
  transform: translateY(-2px);
}

.hero-audio-tool-button small {
  color: #b9c6dd;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.hero-audio-tool-button span {
  font-size: 0.96rem;
  font-weight: 950;
}

.audio-studio-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(135, 118, 255, 0.42);
  border-radius: 28px;
  color: var(--text);
  background: #0b0e18;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.72);
}

.audio-studio-dialog::backdrop {
  background: rgba(2, 4, 10, 0.82);
  backdrop-filter: blur(8px);
}

.audio-studio-card {
  position: relative;
  padding: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 93, 134, 0.13), transparent 32%),
    radial-gradient(circle at 100% 0, rgba(79, 230, 218, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(22, 20, 39, 0.98), rgba(8, 13, 23, 0.98));
}

.audio-studio-close {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 16px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #dce1ec;
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.3rem;
  cursor: pointer;
}

.audio-studio-heading {
  padding-right: 38px;
}

.audio-studio-heading h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  line-height: 1.2;
}

.audio-studio-heading p,
.audio-studio-privacy,
.audio-studio-result > p {
  margin: 0;
  color: #aeb8ca;
  font-size: 0.78rem;
  line-height: 1.75;
}

.audio-studio-format {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.audio-studio-format span {
  padding: 5px 9px;
  border: 1px solid rgba(100, 232, 220, 0.22);
  border-radius: 999px;
  color: #a9e9e3;
  background: rgba(74, 223, 212, 0.055);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.audio-studio-recorder {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  background: rgba(3, 7, 14, 0.52);
}

.audio-studio-clock {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.audio-studio-clock strong {
  min-width: 100px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.audio-studio-clock span {
  color: #7f899c;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.audio-studio-progress {
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.audio-studio-progress i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5f86, #9c77ff 55%, #59e8d9);
  box-shadow: 0 0 18px rgba(110, 228, 218, 0.46);
  transition: width 50ms linear;
}

.audio-studio-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: #aeb7c8;
  font-size: 0.76rem;
}

.audio-studio-status[data-tone="recording"] {
  color: #ff8ca6;
}

.audio-studio-status[data-tone="working"] {
  color: #b9a9ff;
}

.audio-studio-status[data-tone="success"] {
  color: #7de8d8;
}

.audio-studio-status[data-tone="error"] {
  color: #ff8a91;
}

.audio-studio-actions,
.audio-studio-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.audio-studio-actions .button,
.audio-studio-result-actions .button {
  min-height: 43px;
}

.audio-studio-file {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.audio-studio-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.audio-studio-file:has(input:disabled) {
  opacity: 0.45;
  pointer-events: none;
}

.audio-studio-result {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(88, 231, 217, 0.26);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(53, 34, 94, 0.32), rgba(22, 65, 69, 0.22));
}

.audio-studio-result-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.audio-studio-result-head span {
  color: #73e6d9;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.audio-studio-result-head strong {
  color: #f4f7fb;
  font-size: 0.85rem;
}

.audio-studio-result audio {
  width: 100%;
  margin-top: 13px;
}

.audio-studio-result-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.audio-studio-result-meta div {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.audio-studio-result-meta dt {
  color: #7f899c;
  font-size: 0.58rem;
  font-weight: 900;
}

.audio-studio-result-meta dd {
  margin: 3px 0 0;
  color: #f1f4f8;
  font-size: 0.75rem;
  font-weight: 900;
}

.audio-studio-result > p {
  margin-top: 12px;
}

.audio-studio-privacy {
  margin-top: 15px;
  padding-left: 22px;
  position: relative;
}

.audio-studio-privacy::before {
  position: absolute;
  left: 2px;
  color: #72dfd5;
  content: "●";
}

.landing-community {
  max-width: 780px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 119, 149, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 4% 10%, rgba(255, 105, 137, 0.15), transparent 28%),
    linear-gradient(135deg, rgba(25, 20, 34, 0.94), rgba(12, 20, 29, 0.94));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.05);
}

.landing-flea {
  position: relative;
  max-width: 860px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  margin-top: 18px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(196, 151, 255, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 5% 20%, rgba(196, 151, 255, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(28, 20, 42, 0.95), rgba(12, 20, 29, 0.95));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18), inset 0 1px rgba(255, 255, 255, 0.05);
}

.landing-flea::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(196, 151, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.landing-flea-mark {
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  border: 1px solid rgba(196, 151, 255, 0.24);
  border-radius: 18px;
  color: #d9bcff;
  background: rgba(196, 151, 255, 0.07);
}

.landing-flea-mark span {
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.landing-flea-mark strong {
  font-size: 2.3rem;
  line-height: 1;
}

.landing-flea-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.landing-flea-copy h2 {
  margin: 4px 0 1px;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
}

.landing-flea-copy > p {
  max-width: 650px;
  margin: 7px 0;
  color: #aeb6c8;
  font-size: 0.76rem;
  line-height: 1.7;
}

.landing-flea-copy .landing-flea-lead {
  margin-top: 0;
  color: #e7d8fb;
  font-size: 0.94rem;
  font-weight: 900;
}

.landing-flea-copy > small {
  display: block;
  color: #8e96aa;
  font-size: 0.65rem;
  line-height: 1.65;
}

.landing-flea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.landing-flea-actions .button {
  min-height: 44px;
}

.community-message-head {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.025);
}

.community-message-head > div {
  display: flex;
  align-items: baseline;
  gap: 11px;
}

.community-message-head span {
  color: #ff89a3;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.community-message-head strong {
  color: #f7e8ee;
  font-size: 0.86rem;
}

.community-message-head small {
  color: #858da0;
  font-size: 0.62rem;
}

.community-message-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  animation: community-message-in 280ms ease both;
}

.community-quote,
.community-message-spark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 126, 158, 0.28);
  border-radius: 50%;
  color: #ff7896;
  background: rgba(255, 103, 137, 0.1);
  font-size: 1.25rem;
  box-shadow: 0 0 24px rgba(255, 91, 126, 0.12);
}

.community-message-body {
  min-width: 0;
}

.community-message-body p {
  margin: 0 0 8px;
  overflow-wrap: anywhere;
  color: #f8f5fa;
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 800;
  line-height: 1.55;
}

.community-author {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #aeb6c8;
  font-size: 0.7rem;
}

.community-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border: 1px solid var(--title-border, rgba(255, 209, 102, 0.2));
  border-radius: 999px;
  color: var(--title-text, #e9cb76);
  background: var(--title-surface, rgba(255, 209, 102, 0.06));
  font-size: 0.62rem;
  font-weight: 900;
}

.community-title > span,
.player-title-badge > span {
  color: var(--title-icon, currentColor);
  line-height: 1;
}

.community-message-controls {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 6px;
}

.community-message-controls button,
.community-retry,
.community-shop-link,
.community-reset {
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #8992a7;
  background: transparent;
  font: inherit;
  font-size: 0.62rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.community-message-controls button:hover,
.community-retry:hover,
.community-shop-link:hover,
.community-reset:hover {
  color: #ffd2dc;
}

.community-position {
  color: #ff8da6;
  font-size: 0.64rem;
  font-weight: 900;
}

.community-message-state {
  min-height: 96px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  color: #9da5b7;
  font-size: 0.76rem;
}

.community-message-state p {
  flex: 1;
  margin: 0;
  line-height: 1.65;
}

@keyframes community-message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.mode-lobby-stats {
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.lobby-mode-card {
  min-width: 0;
  min-height: 126px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.022));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.lobby-mode-card.strategy {
  border-color: rgba(89, 181, 255, 0.42);
  background: linear-gradient(145deg, rgba(31, 126, 213, 0.12), rgba(255, 255, 255, 0.025));
}

.lobby-mode-card.free-table-status {
  grid-column: 1 / -1;
  min-height: 116px;
  border-color: rgba(226, 190, 132, 0.34);
  background:
    radial-gradient(circle at 9% 18%, rgba(231, 188, 120, 0.11), transparent 34%),
    radial-gradient(circle at 91% 82%, rgba(112, 159, 129, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(126, 82, 59, 0.09), rgba(255, 255, 255, 0.022));
}

.lobby-mode-card.market {
  grid-column: 1 / -1;
  min-height: 116px;
  border-color: rgba(255, 105, 151, 0.34);
  background:
    radial-gradient(circle at 92% 10%, rgba(102, 233, 223, 0.1), transparent 38%),
    linear-gradient(145deg, rgba(255, 79, 114, 0.1), rgba(255, 211, 109, 0.035) 56%, rgba(255, 255, 255, 0.022));
}

.lobby-mode-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.lobby-mode-head span {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.lobby-mode-card.strategy .lobby-mode-head span {
  color: #75c9ff;
}

.lobby-mode-card.free-table-status .lobby-mode-head span {
  color: #e9c38f;
}

.lobby-mode-card.market .lobby-mode-head span {
  color: #ff8da6;
}

.lobby-mode-head small {
  color: #727b90;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.lobby-mode-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 11px;
}

.lobby-mode-counts.market-counts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lobby-mode-counts > div + div {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.lobby-mode-counts small {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.lobby-mode-counts strong {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 5px;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1;
}

.lobby-mode-counts em {
  color: var(--muted);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 900;
}

.lobby-stats-refresh {
  max-width: 980px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
}

.lobby-stats-refresh .button {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.76rem;
}

.lobby-stats-refresh .button:disabled {
  cursor: default;
  opacity: 0.58;
}

.lobby-stats-refresh span {
  color: #8d96aa;
  font-size: 0.68rem;
  line-height: 1.55;
}

.lobby-privacy {
  max-width: 650px;
  margin: 9px 0 0;
  color: #737c91;
  font-size: 0.68rem;
  line-height: 1.6;
}

.ranking-screen {
  width: min(1060px, 100%);
  margin-inline: auto;
}

.ranking-jump-nav {
  position: sticky;
  z-index: 12;
  top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid rgba(100, 232, 213, 0.2);
  border-radius: 15px;
  background: rgba(7, 10, 17, 0.93);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.ranking-jump-nav > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: max-content;
}

.ranking-jump-nav > span strong {
  color: var(--cyan);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.ranking-jump-nav > span small {
  color: var(--muted);
  font-size: 0.58rem;
}

.ranking-jump-nav > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: min(740px, 100%);
}

.ranking-jump-nav button {
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.ranking-jump-nav button:hover,
.ranking-jump-nav button:focus-visible {
  border-color: rgba(100, 232, 213, 0.4);
  background: rgba(100, 232, 213, 0.1);
  color: var(--cyan);
}

.ranking-dashboard,
.ranking-overall-section,
.rate-floor-section,
.ranking-circuit-section,
.crown-spotlight {
  margin-bottom: 18px;
}

.ranking-overall-section,
.rate-floor-section,
.ranking-circuit-section {
  scroll-margin-top: 78px;
}

.ranking-board-head,
.ranking-circuit-head,
.ranking-dashboard-head,
.crown-proof-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.ranking-board-head,
.ranking-circuit-head {
  margin-bottom: 12px;
}

.ranking-board-head h2,
.ranking-circuit-head h2,
.ranking-dashboard-head h2,
.crown-proof-head h2,
.crown-customization h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.18rem;
}

.ranking-board-head p,
.ranking-circuit-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
  text-align: right;
}

.ranking-dashboard {
  padding: 18px;
  border: 1px solid rgba(113, 172, 255, 0.27);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(94, 142, 255, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(17, 25, 43, 0.96), rgba(9, 12, 21, 0.96));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.ranking-dashboard.is-loading,
.ranking-dashboard.is-error {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.ranking-dashboard.is-loading p,
.ranking-dashboard.is-error p {
  margin: 0;
}

.ranking-dashboard-rank {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
}

.ranking-dashboard-rank strong {
  color: #dcebff;
  font-size: 2rem;
  line-height: 1;
}

.ranking-dashboard-rank span {
  color: #88baff;
  font-size: 0.66rem;
  font-weight: 900;
}

.ranking-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(105px, 0.22fr)) minmax(220px, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-top: 14px;
}

.ranking-dashboard-summary > span,
.ranking-dashboard-summary > p {
  display: flex;
  min-height: 62px;
  justify-content: center;
  flex-direction: column;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.ranking-dashboard-summary small {
  color: var(--muted);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ranking-dashboard-summary span strong {
  color: var(--text);
  font-size: 1.32rem;
}

.ranking-dashboard-summary p {
  color: #b8c8df;
  font-size: 0.73rem;
  line-height: 1.55;
}

.ranking-dashboard-summary p strong {
  color: var(--cyan);
}

.ranking-dashboard-context-notice {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(100, 232, 213, 0.2);
  border-radius: 10px;
  background: rgba(100, 232, 213, 0.065);
  color: #b9ddd8;
  font-size: 0.67rem;
  line-height: 1.55;
}

.ranking-neighbor-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
  list-style: none;
}

.ranking-neighbor-list li {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(5, 8, 15, 0.5);
}

.ranking-neighbor-list li > strong {
  color: #8ca5c7;
  font-size: 0.66rem;
}

.ranking-neighbor-list li > span {
  min-width: 0;
  overflow: hidden;
  color: #cbd4e2;
  font-size: 0.67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-neighbor-list li > span small {
  display: block;
  color: var(--cyan);
  font-size: 0.52rem;
}

.ranking-neighbor-list li > b {
  color: #dfe8f7;
  font-size: 0.7rem;
  text-align: right;
}

.ranking-neighbor-list li > b small {
  display: block;
  color: var(--muted);
  font-size: 0.48rem;
}

.ranking-neighbor-list li.is-self {
  border-color: rgba(100, 232, 213, 0.4);
  background: rgba(100, 232, 213, 0.09);
  box-shadow: inset 0 0 16px rgba(100, 232, 213, 0.05);
}

.ranking-neighbor-list li.is-empty {
  display: block;
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
}

.crown-proof-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 201, 107, 0.25);
  border-radius: 15px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 201, 107, 0.13), transparent 34%),
    rgba(9, 10, 17, 0.7);
}

.crown-proof-panel.is-active {
  border-color: rgba(100, 232, 213, 0.38);
  box-shadow: inset 0 0 28px rgba(100, 232, 213, 0.04);
}

.crown-proof-panel.is-complete {
  border-color: rgba(255, 201, 107, 0.5);
  box-shadow: inset 0 0 32px rgba(255, 201, 107, 0.07), 0 0 22px rgba(255, 201, 107, 0.06);
}

.crown-proof-head > strong {
  color: var(--gold);
  font-size: 2rem;
  line-height: 1;
}

.crown-proof-head > strong small {
  margin-left: 3px;
  color: #9e9278;
  font-size: 0.65rem;
}

.crown-proof-meter {
  height: 8px;
  overflow: hidden;
  margin: 13px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.crown-proof-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 14px rgba(100, 232, 213, 0.36);
  transition: width 220ms ease;
}

.crown-proof-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.crown-proof-stats span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.crown-proof-stats small,
.crown-proof-stats strong {
  display: block;
}

.crown-proof-stats small {
  color: var(--muted);
  font-size: 0.55rem;
}

.crown-proof-stats strong {
  margin-top: 2px;
  color: var(--text);
  font-size: 0.88rem;
}

.crown-proof-panel > p {
  margin: 10px 0 12px;
  color: #aab5c6;
  font-size: 0.7rem;
  line-height: 1.65;
}

.crown-run-mode-actions,
.crown-proof-signatures {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.crown-proof-signatures {
  margin: 0 0 11px;
}

.crown-proof-signatures span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 201, 107, 0.28);
  border-radius: 999px;
  color: #ffe0a3;
  background: rgba(255, 201, 107, 0.07);
  font-size: 0.61rem;
  font-weight: 900;
}

.crown-run-complete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 201, 107, 0.27);
  border-radius: 10px;
  background: rgba(255, 201, 107, 0.07);
}

.crown-run-complete strong {
  color: var(--gold);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
}

.crown-run-complete span {
  color: #c7b78e;
  font-size: 0.64rem;
}

.crown-customization {
  --crown-color: #ff8aaa;
  --crown-glow: rgba(255, 105, 148, 0.13);
  display: grid;
  grid-template-columns: minmax(200px, 0.65fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--crown-color);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--crown-glow), rgba(10, 12, 20, 0.64));
}

.crown-customization p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
}

.crown-customization-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr)) auto;
  align-items: end;
  gap: 8px;
}

.crown-customization-controls label {
  display: grid;
  gap: 5px;
  color: #aab5c5;
  font-size: 0.58rem;
  font-weight: 900;
}

.crown-customization-controls select {
  min-width: 0;
  height: 40px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  color: var(--text);
  background: #111724;
  font: inherit;
  font-size: 0.68rem;
}

.crown-theme-rose {
  --crown-color: #ff8aaa;
  --crown-glow: rgba(255, 105, 148, 0.13);
}

.crown-theme-aqua {
  --crown-color: #64e8d5;
  --crown-glow: rgba(100, 232, 213, 0.13);
}

.crown-theme-violet {
  --crown-color: #bd91ff;
  --crown-glow: rgba(164, 111, 255, 0.15);
}

.crown-theme-gold {
  --crown-color: #ffd06b;
  --crown-glow: rgba(255, 201, 107, 0.16);
}

.ranking-signature {
  --crown-color: #ff8aaa;
  --crown-glow: rgba(255, 105, 148, 0.13);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--crown-color);
  border-radius: 8px;
  color: var(--crown-color);
  background: var(--crown-glow);
  font-size: 0.61rem;
  font-weight: 950;
  line-height: 1.15;
}

.ranking-signature i {
  font-style: normal;
}

.ranking-signature span,
.ranking-signature small {
  display: block;
}

.ranking-signature small {
  color: #8e99aa;
  font-size: 0.45rem;
  letter-spacing: 0.08em;
}

.ranking-signature.is-large {
  padding: 7px 10px;
  font-size: 0.7rem;
}

.crown-spotlight {
  --crown-color: #ff8aaa;
  --crown-glow: rgba(255, 105, 148, 0.13);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 17px 18px;
  overflow: hidden;
  border: 1px solid var(--crown-color);
  border-radius: 17px;
  background:
    radial-gradient(circle at 82% 0%, var(--crown-glow), transparent 35%),
    linear-gradient(135deg, rgba(21, 17, 30, 0.96), rgba(9, 12, 20, 0.96));
  box-shadow: inset 4px 0 0 var(--crown-color), 0 16px 36px rgba(0, 0, 0, 0.16);
}

.crown-spotlight h2 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 1.08rem;
}

.crown-spotlight p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.crown-spotlight .crown-proof-signatures {
  margin: 8px 0 0;
}

.crown-spotlight-score {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
}

.crown-spotlight-score > strong {
  color: var(--crown-color);
  font-size: 1.55rem;
  line-height: 1;
}

.crown-spotlight-score > small {
  margin-bottom: 5px;
  color: #909aad;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.ranking-x-link.is-featured {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  color: white;
  background: rgba(0, 0, 0, 0.48);
  font-size: 0.7rem;
  text-decoration: none;
}

.ranking-x-link.is-featured:hover,
.ranking-x-link.is-featured:focus-visible {
  border-color: var(--crown-color);
  color: var(--crown-color);
  text-decoration: none;
}

.overall-ranking-entry {
  --crown-color: #ff8aaa;
  --crown-glow: rgba(255, 105, 148, 0.13);
}

.overall-ranking-entry.is-self .ranking-row {
  background: linear-gradient(90deg, rgba(100, 232, 213, 0.15), rgba(100, 232, 213, 0.02));
  box-shadow: inset 4px 0 0 var(--cyan);
}

.overall-ranking-entry .ranking-signature,
.crown-ranking-entry .ranking-signature {
  margin-top: 2px;
}

.crown-ranking-entry {
  --crown-color: #ff8aaa;
  --crown-glow: rgba(255, 105, 148, 0.13);
}

.crown-ranking-entry .ranking-row {
  box-shadow: inset 3px 0 0 var(--crown-color);
}

.ranking-entry.is-provisional .ranking-row {
  opacity: 0.72;
  background: rgba(255, 255, 255, 0.012);
}

.ranking-entry.is-provisional .ranking-position {
  color: #8892a4;
  font-size: 0.68rem;
}

.ranking-notice,
.ranking-casual-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.ranking-notice {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(100, 232, 213, 0.2);
  border-radius: 12px;
  background: rgba(100, 232, 213, 0.055);
}

.rating-class-guide {
  margin: 0 0 14px;
  border: 1px solid rgba(123, 155, 216, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(19, 29, 51, 0.72), rgba(9, 12, 21, 0.84));
}

.rating-class-guide summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 15px;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.rating-class-guide summary::-webkit-details-marker {
  display: none;
}

.rating-class-guide summary::after {
  content: "+";
  color: #9ca9bf;
  font-size: 1rem;
  font-weight: 900;
}

.rating-class-guide[open] summary::after {
  content: "−";
}

.rating-class-guide summary > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-class-guide summary small {
  color: #8390a8;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.rating-class-guide summary strong {
  font-size: 0.84rem;
}

.rating-class-guide summary em {
  margin-left: auto;
  color: var(--cyan);
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.rating-class-guide > p {
  margin: 0 15px 13px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.rating-class-guide ol {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0 15px 15px;
  list-style: none;
}

.rating-class-guide li {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  padding: 9px 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.rating-class-guide li small {
  color: #8994a8;
  font-size: 0.56rem;
  white-space: nowrap;
}

.ranking-period-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(7, 10, 17, 0.72);
}

.ranking-period-tabs button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.ranking-period-tabs button:hover,
.ranking-period-tabs button:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.ranking-period-tabs button.is-active {
  border-color: rgba(100, 232, 213, 0.34);
  background: linear-gradient(135deg, rgba(33, 128, 217, 0.24), rgba(100, 232, 213, 0.1));
  color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(100, 232, 213, 0.035);
}

.ranking-week-history-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 2px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.ranking-week-history-picker label {
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
}

.ranking-week-history-picker select {
  min-width: min(260px, 100%);
  min-height: 38px;
  padding: 0 32px 0 11px;
  border: 1px solid rgba(100, 232, 213, 0.28);
  border-radius: 8px;
  background: rgba(7, 10, 17, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.ranking-week-history-picker select:focus-visible {
  outline: 2px solid rgba(100, 232, 213, 0.62);
  outline-offset: 2px;
}

.ranking-week-history-picker select:disabled {
  cursor: default;
  opacity: 0.68;
}

.ranking-week-history-picker small {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.5;
}

.ranking-period-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 2px 12px;
}

.ranking-period-summary strong {
  color: var(--text);
  font-size: 0.82rem;
}

.ranking-period-summary span {
  color: var(--muted);
  font-size: 0.68rem;
}

.ranking-trust-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 191, 102, 0.24);
  border-radius: 12px;
  background: rgba(255, 191, 102, 0.055);
}

.ranking-trust-notice strong {
  flex: 0 0 auto;
  color: #ffca7a;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.ranking-trust-notice span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.ranking-trust-notice.is-verified {
  border-color: rgba(100, 232, 213, 0.3);
  background: linear-gradient(135deg, rgba(36, 139, 165, 0.12), rgba(100, 232, 213, 0.055));
}

.ranking-trust-notice.is-verified strong {
  color: var(--cyan);
}

.crown-monthly-opening {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  margin: 0 0 12px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 209, 102, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(54, 39, 18, 0.52), rgba(12, 19, 28, 0.96));
}

.crown-monthly-opening > div:first-child > span,
.crown-monthly-opening-progress > span {
  display: block;
  color: #d9ba72;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.crown-monthly-opening > div:first-child > strong {
  display: block;
  margin-top: 4px;
  color: #ffe4a6;
  font-size: 1rem;
}

.crown-monthly-opening > div:first-child > p,
.crown-monthly-opening-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
}

.crown-monthly-opening-progress {
  min-width: 112px;
  text-align: right;
}

.crown-monthly-opening-progress strong {
  display: block;
  margin-top: 2px;
  color: var(--gold);
  font-size: 1.65rem;
  line-height: 1;
}

.crown-monthly-opening-progress strong.is-checking {
  margin-top: 6px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.crown-monthly-opening-progress strong.is-error {
  margin-top: 6px;
  color: #ffb39f;
  font-size: 0.72rem;
  line-height: 1.4;
}

.crown-monthly-opening-progress .button {
  min-height: 30px;
  margin-top: 8px;
  padding: 5px 10px;
}

.crown-monthly-opening-progress small {
  font-size: 0.72rem;
}

.crown-monthly-opening-note {
  grid-column: 1 / -1;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 209, 102, 0.13);
}

.ranking-hall-of-fame {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(255, 201, 107, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(79, 48, 13, 0.28), rgba(17, 12, 29, 0.84));
}

.ranking-hall-of-fame h2 {
  margin: 3px 0 0;
  color: #ffe1a1;
  font-size: 0.96rem;
}

.ranking-hall-of-fame ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-hall-of-fame li {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 201, 107, 0.14);
  border-radius: 10px;
  background: rgba(255, 201, 107, 0.035);
}

.ranking-hall-of-fame li span {
  color: #a89470;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ranking-hall-of-fame li strong {
  overflow: hidden;
  color: var(--gold);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-hall-of-fame li small {
  color: var(--muted);
  font-size: 0.6rem;
  line-height: 1.5;
}

.ranking-awards-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(255, 201, 107, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(63, 42, 18, 0.24), rgba(12, 15, 25, 0.8));
}

.ranking-awards-panel h2 {
  margin: 3px 0 0;
  font-size: 0.96rem;
}

.ranking-awards-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-award-record,
.ranking-award-empty {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.ranking-award-record.is-active {
  border-color: rgba(255, 201, 107, 0.3);
  box-shadow: inset 0 0 18px rgba(255, 201, 107, 0.055);
}

.ranking-award-record span {
  color: #a89470;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ranking-award-record strong {
  overflow: hidden;
  color: var(--gold);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-award-record small,
.ranking-award-empty {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.5;
}

.ranking-award-empty {
  grid-column: 1 / -1;
}

.ranking-award-preview {
  width: fit-content;
  padding: 2px 7px;
  border: 1px solid rgba(255, 201, 107, 0.28);
  border-radius: 999px;
  background: rgba(255, 201, 107, 0.075);
  color: var(--gold);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.ranking-award-preview.is-progress {
  border-color: rgba(123, 155, 216, 0.22);
  background: rgba(123, 155, 216, 0.06);
  color: #9ca9bf;
}

.ranking-award-earned {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid rgba(255, 201, 107, 0.45);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 201, 107, 0.17), rgba(224, 127, 255, 0.08));
  color: #ffe1a1;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  box-shadow: 0 0 16px rgba(255, 201, 107, 0.08);
}

.ranking-entry.is-server-verified .ranking-position::after {
  content: "✓";
  display: block;
  color: rgba(100, 232, 213, 0.72);
  font-size: 0.55rem;
  line-height: 1;
}

.ranking-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 13, 22, 0.78);
}

.ranking-entry {
  border-bottom: 1px solid var(--line);
}

.ranking-entry:last-child {
  border-bottom: 0;
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px minmax(150px, 1fr) 110px minmax(190px, 0.7fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px 18px;
}

.ranking-entry:nth-child(-n + 3) .ranking-row {
  background: linear-gradient(90deg, rgba(255, 201, 107, 0.08), transparent 55%);
}

.ranking-position {
  color: var(--cyan);
  font-size: 1.35rem;
  text-align: center;
}

.ranking-player,
.ranking-rating,
.ranking-record {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ranking-player b {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-x-link {
  width: fit-content;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.ranking-x-link:hover,
.ranking-x-link:focus-visible {
  color: var(--cyan);
  text-decoration: underline;
}

.ranking-player small,
.ranking-rating small,
.ranking-record small {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.ranking-rating {
  align-items: flex-end;
}

.ranking-rating strong {
  color: var(--gold);
  font-size: 1.55rem;
}

.ranking-record {
  align-items: flex-end;
  color: #c8ceda;
  font-size: 0.8rem;
}

.ranking-overall-rate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.rating-class-badge {
  --class-color: #c3ccda;
  --class-border: rgba(170, 183, 204, 0.36);
  --class-shadow: rgba(124, 141, 169, 0.12);
  position: relative;
  display: inline-flex;
  min-width: 76px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  overflow: hidden;
  padding: 3px 8px;
  border: 1px solid var(--class-border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(132, 145, 165, 0.12), rgba(20, 24, 34, 0.82));
  box-shadow: inset 0 0 10px var(--class-shadow), 0 0 9px var(--class-shadow);
  color: var(--class-color);
  font-size: 0.6rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.rating-class-emblem {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  line-height: 1;
  text-shadow: 0 0 6px currentColor;
}

.rating-class-name {
  position: relative;
  z-index: 1;
}

.rating-class-rank {
  position: relative;
  z-index: 1;
  padding-left: 5px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.48rem;
  letter-spacing: 0.05em;
}

.rating-class-badge.class-great {
  --class-color: #75ead9;
  --class-border: rgba(100, 232, 213, 0.43);
  --class-shadow: rgba(100, 232, 213, 0.16);
  background: linear-gradient(135deg, rgba(37, 152, 151, 0.2), rgba(10, 27, 32, 0.88));
}

.rating-class-badge.class-expert {
  --class-color: #83c5ff;
  --class-border: rgba(91, 169, 255, 0.52);
  --class-shadow: rgba(67, 139, 255, 0.2);
  border-style: double;
  border-width: 3px;
  background: linear-gradient(135deg, rgba(48, 105, 205, 0.3), rgba(12, 23, 48, 0.9));
}

.rating-class-badge.class-veteran {
  --class-color: #c29aff;
  --class-border: rgba(164, 111, 255, 0.58);
  --class-shadow: rgba(139, 84, 238, 0.27);
  background: linear-gradient(135deg, rgba(107, 64, 180, 0.38), rgba(24, 15, 48, 0.92));
}

.rating-class-badge.class-ultra {
  --class-color: #ff9bdf;
  --class-border: rgba(255, 102, 210, 0.66);
  --class-shadow: rgba(238, 69, 200, 0.36);
  background: linear-gradient(135deg, rgba(188, 48, 161, 0.42), rgba(63, 25, 100, 0.86));
  box-shadow: inset 0 0 11px rgba(255, 121, 218, 0.2), 0 0 12px var(--class-shadow);
}

.rating-class-badge.class-master {
  --class-color: #ffe495;
  --class-border: rgba(255, 211, 97, 0.76);
  --class-shadow: rgba(255, 191, 55, 0.42);
  border-style: double;
  border-width: 3px;
  background: linear-gradient(120deg, rgba(124, 73, 8, 0.9), rgba(255, 210, 92, 0.28) 48%, rgba(65, 35, 5, 0.94));
  box-shadow: inset 0 0 11px rgba(255, 231, 154, 0.22), 0 0 13px var(--class-shadow);
  text-shadow: 0 0 7px rgba(255, 221, 127, 0.58);
}

.rating-class-badge.class-legend {
  --class-color: #fff8d6;
  --class-border: rgba(255, 232, 139, 0.9);
  --class-shadow: rgba(255, 210, 76, 0.55);
  min-width: 84px;
  border-width: 2px;
  background: linear-gradient(110deg, rgba(177, 65, 149, 0.9), rgba(42, 143, 204, 0.84), rgba(67, 196, 155, 0.86), rgba(220, 159, 43, 0.9), rgba(177, 65, 149, 0.9));
  background-size: 260% 100%;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.22), 0 0 16px var(--class-shadow);
  text-shadow: 0 1px 2px rgba(41, 20, 9, 0.9), 0 0 7px rgba(255, 245, 193, 0.8);
  animation: rating-class-spectrum 5.5s linear infinite, rating-class-legend-pulse 2.8s ease-in-out infinite;
}

.rating-class-badge.class-legend::after {
  position: absolute;
  top: -70%;
  bottom: -70%;
  left: -34%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  content: "";
  transform: rotate(18deg);
  animation: rating-class-shine 3.4s ease-in-out infinite;
}

.rating-class-badge.class-beyond {
  --class-color: #ffffff;
  --class-border: rgba(255, 255, 255, 0.94);
  --class-shadow: rgba(103, 232, 255, 0.7);
  min-width: 118px;
  min-height: 27px;
  border-width: 2px;
  background: linear-gradient(115deg, rgba(10, 13, 25, 0.98), rgba(43, 112, 166, 0.92), rgba(151, 70, 186, 0.92), rgba(220, 162, 70, 0.9), rgba(10, 13, 25, 0.98));
  background-size: 320% 100%;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.24), 0 0 8px rgba(255, 255, 255, 0.48), 0 0 23px var(--class-shadow);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 255, 255, 0.9);
  animation: rating-class-spectrum 3.6s linear infinite, rating-class-beyond-pulse 2.2s ease-in-out infinite;
}

.rating-class-badge.class-beyond::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 35%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 70%, rgba(137, 242, 255, 0.95) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 18%, rgba(255, 218, 138, 0.95) 0 1px, transparent 2px);
  content: "";
  animation: rating-class-beyond-stars 2.4s ease-in-out infinite alternate;
}

.rating-class-badge.class-beyond::after {
  position: absolute;
  top: -75%;
  bottom: -75%;
  left: -38%;
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  content: "";
  transform: rotate(18deg);
  animation: rating-class-shine 2.6s ease-in-out infinite;
}

.ranking-entry.ranking-class-beyond .ranking-row {
  background: linear-gradient(90deg, rgba(91, 221, 255, 0.11), rgba(168, 83, 219, 0.08) 52%, rgba(255, 205, 104, 0.08));
  box-shadow: inset 3px 0 0 rgba(172, 241, 255, 0.72);
}

@keyframes rating-class-spectrum {
  to { background-position: 260% 0; }
}

@keyframes rating-class-legend-pulse {
  50% { box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.28), 0 0 20px rgba(255, 210, 76, 0.7); }
}

@keyframes rating-class-beyond-pulse {
  50% { box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.32), 0 0 11px rgba(255, 255, 255, 0.7), 0 0 30px rgba(153, 102, 255, 0.82); }
}

@keyframes rating-class-beyond-stars {
  from { opacity: 0.42; }
  to { opacity: 1; }
}

@keyframes rating-class-shine {
  0%, 58% { left: -34%; }
  82%, 100% { left: 116%; }
}

.ranking-mode-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.ranking-mode-points em {
  padding: 2px 5px;
  border: 1px solid rgba(100, 232, 213, 0.17);
  border-radius: 999px;
  background: rgba(100, 232, 213, 0.05);
  color: #aeb8c9;
  font-size: 0.58rem;
  font-style: normal;
  line-height: 1.25;
  white-space: nowrap;
}

.ranking-comment-toggle {
  min-width: 78px;
  padding: 8px 10px;
  border: 1px solid rgba(100, 232, 213, 0.28);
  border-radius: 9px;
  background: rgba(100, 232, 213, 0.07);
  color: var(--cyan);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  cursor: pointer;
}

.ranking-comment-toggle:hover,
.ranking-comment-toggle:focus-visible {
  border-color: rgba(100, 232, 213, 0.58);
  background: rgba(100, 232, 213, 0.13);
}

.ranking-comment-toggle:disabled {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  cursor: not-allowed;
}

.ranking-comments-panel {
  padding: 16px 18px 18px 86px;
  border-top: 1px solid rgba(100, 232, 213, 0.16);
  background: rgba(6, 17, 24, 0.62);
}

.ranking-comments-panel > p,
.ranking-comment-guide,
.ranking-comment-auth p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.ranking-comments-panel.is-disabled {
  padding-left: 18px;
}

.ranking-comments-head,
.ranking-comment-meta,
.ranking-comment-form > div,
.ranking-comment-auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ranking-comments-head {
  margin-bottom: 10px;
}

.ranking-comments-head strong {
  color: var(--text);
  font-size: 0.8rem;
}

.ranking-comments-head small,
.ranking-comment-meta time,
.ranking-comment-form small {
  color: var(--muted);
  font-size: 0.65rem;
}

.ranking-comment-list {
  display: grid;
  gap: 8px;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}

.ranking-comment-item,
.ranking-comment-empty {
  position: relative;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.ranking-comment-meta {
  justify-content: flex-start;
}

.ranking-comment-meta strong {
  color: var(--cyan);
  font-size: 0.7rem;
}

.ranking-comment-item p {
  margin: 7px 48px 0 0;
  color: #d9dee8;
  font-size: 0.78rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ranking-comment-empty {
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.ranking-comment-delete {
  position: absolute;
  right: 12px;
  bottom: 11px;
  padding: 2px 5px;
  border: 0;
  background: transparent;
  color: #f28aa0;
  font: inherit;
  font-size: 0.65rem;
  cursor: pointer;
}

.ranking-comment-delete:hover,
.ranking-comment-delete:focus-visible {
  text-decoration: underline;
}

.ranking-comment-auth {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.ranking-comment-form {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ranking-comment-form label {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 800;
}

.ranking-comment-form textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  outline: none;
  background: rgba(5, 8, 15, 0.8);
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
}

.ranking-comment-form textarea:focus {
  border-color: rgba(100, 232, 213, 0.6);
  box-shadow: 0 0 0 3px rgba(100, 232, 213, 0.08);
}

.ranking-empty {
  padding: 58px 22px;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
}

.ranking-casual-note {
  margin: 12px 2px 0;
}

.economy-screen {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.economy-balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: fit-content;
  margin: 0 0 22px auto;
  padding: 13px 18px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.07);
  color: var(--gold);
}

.economy-balance span {
  color: #c7b477;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.economy-balance strong {
  font-size: 2rem;
  line-height: 1;
}

.economy-balance small {
  font-size: 0.75rem;
  font-weight: 900;
}

.point-balance-inline {
  color: var(--gold);
  font-weight: 900;
}

.period-reward-panel {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 209, 102, 0.11), transparent 31%),
    linear-gradient(145deg, rgba(28, 29, 43, 0.98), rgba(11, 14, 23, 0.98));
  box-shadow: inset 0 0 40px rgba(255, 209, 102, 0.025);
}

.period-reward-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 17px;
}

.period-reward-head h2 {
  margin: 5px 0 6px;
  font-size: 1.35rem;
}

.period-reward-head p,
.period-reward-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.7;
}

.period-reward-claim {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 3px 14px;
  min-width: 245px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 7, 14, 0.52);
}

.period-reward-claim.has-reward {
  border-color: rgba(255, 209, 102, 0.48);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.08);
}

.period-reward-claim span {
  color: #a5adbd;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.period-reward-claim strong {
  color: var(--gold);
  font-size: 1.15rem;
  text-align: right;
}

.period-reward-claim .button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 40px;
  margin-top: 7px;
}

.period-reward-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.period-reward-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}

.period-reward-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.period-reward-card span {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.period-reward-card strong {
  color: var(--gold);
  font-size: 0.76rem;
  text-align: right;
}

.period-reward-card p {
  margin: 13px 0 5px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 850;
}

.period-reward-card small {
  display: block;
  overflow: hidden;
  color: #7f899e;
  font-size: 0.64rem;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.period-reward-weekly span {
  color: #77efaa;
}

.period-reward-monthly span {
  color: #cf93ff;
}

.period-reward-note {
  margin-top: 13px;
  text-align: center;
}

.daily-play-reward-panel {
  margin-bottom: 24px;
  padding: 22px;
  border: 1px solid rgba(77, 232, 223, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 0%, rgba(77, 232, 223, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(18, 31, 42, 0.98), rgba(10, 13, 22, 0.98));
  box-shadow: inset 0 0 40px rgba(77, 232, 223, 0.025);
}

.daily-play-reward-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.daily-play-reward-head h2 {
  margin: 5px 0 6px;
  font-size: 1.35rem;
}

.daily-play-reward-head h2 strong {
  color: var(--cyan);
  font-size: 1.55rem;
}

.daily-play-reward-head p,
.daily-play-reward-copy,
.daily-play-reward-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.7;
}

.daily-play-reward-claim {
  display: flex;
  min-width: 225px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(4, 7, 14, 0.52);
}

.daily-play-reward-claim.has-reward {
  border-color: rgba(255, 209, 102, 0.48);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.08);
}

.daily-play-reward-claim span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.daily-play-reward-claim .button {
  min-height: 44px;
  white-space: nowrap;
}

.daily-play-reward-progress {
  height: 10px;
  margin: 20px 0 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.daily-play-reward-progress i {
  display: block;
  width: var(--daily-play-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 240ms ease;
}

.daily-play-reward-copy {
  color: #b8c3d7;
}

.daily-play-reward-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.daily-play-reward-details summary {
  width: fit-content;
  padding: 13px 2px 7px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.daily-play-reward-details ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.daily-play-reward-details li {
  display: grid;
  grid-template-columns: minmax(55px, auto) 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.daily-play-reward-details li.is-complete {
  border-color: rgba(77, 232, 223, 0.24);
}

.daily-play-reward-details li.is-claimed {
  border-color: rgba(119, 239, 170, 0.2);
  opacity: 0.72;
}

.daily-play-reward-details li span,
.daily-play-reward-details li strong,
.daily-play-reward-details li small {
  font-size: 0.7rem;
  font-weight: 900;
}

.daily-play-reward-details li strong {
  color: var(--gold);
}

.daily-play-reward-details li small {
  color: var(--muted);
  text-align: right;
}

.daily-play-reward-note {
  margin-top: 12px;
  color: #737c91;
  text-align: center;
}

.mission-grid,
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mission-card,
.shop-card,
.economy-unavailable,
.gameover-missions {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(25, 29, 43, 0.96), rgba(11, 13, 21, 0.96));
}

.mission-card,
.shop-card {
  min-width: 0;
  padding: 19px;
}

.mission-card.is-complete {
  border-color: rgba(77, 232, 223, 0.38);
  box-shadow: inset 0 0 30px rgba(77, 232, 223, 0.05);
}

.mission-card.is-claimed {
  border-color: rgba(119, 239, 170, 0.24);
  opacity: 0.74;
}

.mission-card-head,
.mission-card-foot,
.shop-card-top,
.gameover-missions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-card-head span,
.shop-card-top span {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.mission-card-head strong,
.shop-card-top strong {
  color: var(--gold);
  font-size: 0.78rem;
}

.mission-card h2,
.shop-card h2 {
  margin: 15px 0 7px;
  color: var(--text);
  font-size: 1.05rem;
}

.mission-card p,
.shop-card p,
.economy-unavailable p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.mission-progress {
  height: 7px;
  margin: 19px 0 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.mission-progress i {
  display: block;
  width: var(--mission-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  transition: width 240ms ease;
}

.mission-card-foot > span {
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 900;
}

.shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.shop-card {
  display: flex;
  flex-direction: column;
}

.shop-card.is-owned {
  border-color: rgba(119, 239, 170, 0.3);
}

.shop-card.is-equipped {
  border-color: rgba(77, 232, 223, 0.58);
  box-shadow: inset 0 0 34px rgba(77, 232, 223, 0.06), 0 0 18px rgba(77, 232, 223, 0.08);
}

.shop-reaction-preview,
.shop-title-preview {
  align-self: flex-start;
  margin: 8px 0 14px;
}

.shop-stamp-preview {
  display: grid;
  align-self: center;
  justify-items: center;
  gap: 2px;
  width: 150px;
  margin: 3px 0 13px;
  padding: 4px 8px 7px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(255, 123, 165, 0.11), transparent 68%);
}

.shop-stamp-preview img {
  display: block;
  width: 122px;
  height: 122px;
  object-fit: contain;
}

.shop-stamp-preview span {
  color: #ffd9e5;
  font-size: 0.68rem;
  font-weight: 950;
}

.shop-stamp-category .shop-card {
  background: linear-gradient(160deg, rgba(255, 109, 151, 0.035), rgba(78, 229, 220, 0.025));
}

.shop-message-preview {
  align-self: stretch;
  display: grid;
  gap: 5px;
  margin: 8px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 119, 149, 0.24);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 103, 137, 0.1), rgba(100, 232, 213, 0.055));
}

.shop-message-preview span {
  color: #ff8da6;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.shop-message-preview strong {
  color: #f8e9ef;
  font-size: 0.82rem;
}

.shop-card p {
  flex: 1;
  margin-bottom: 18px;
}

.shop-loadout-summary {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin: -8px 0 24px;
}

.shop-loadout-summary span {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 0.72rem;
}

.shop-loadout-summary strong {
  margin-left: 5px;
  color: var(--text);
}

.shop-category + .shop-category {
  margin-top: 32px;
}

.shop-oshi-market-collection {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid rgba(255, 151, 190, 0.38);
  border-radius: 26px;
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 154, 197, 0.2), transparent 31%),
    radial-gradient(circle at 96% 2%, rgba(193, 159, 255, 0.2), transparent 28%),
    linear-gradient(145deg, rgba(45, 22, 43, 0.96), rgba(21, 18, 39, 0.97) 48%, rgba(14, 18, 33, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 60px rgba(45, 17, 51, 0.18);
  overflow: hidden;
}

.shop-oshi-market-collection::before,
.shop-oshi-market-collection::after {
  position: absolute;
  z-index: 0;
  color: rgba(255, 200, 222, 0.09);
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.shop-oshi-market-collection > * {
  position: relative;
  z-index: 1;
}

.shop-oshi-market-collection::before {
  content: "♡";
  top: 12px;
  right: 3%;
  font-size: clamp(5rem, 13vw, 10rem);
  transform: rotate(12deg);
}

.shop-oshi-market-collection::after {
  content: "✦  ·  ♡";
  bottom: 18px;
  left: 2%;
  font-size: clamp(1.4rem, 4vw, 2.8rem);
  letter-spacing: 0.18em;
  transform: rotate(-8deg);
}

.shop-oshi-market-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: end;
  gap: 20px 28px;
  margin-bottom: 16px;
}

.shop-oshi-market-hero > div:first-child > span,
.shop-oshi-market-group-head span {
  color: #ffacd0;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.15em;
}

.shop-oshi-market-hero h2 {
  margin: 5px 0 7px;
  color: #fff5fb;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.24;
}

.shop-oshi-market-hero p {
  max-width: 680px;
  margin: 0;
  color: #d9c8d8;
  font-size: 0.78rem;
  line-height: 1.8;
}

.shop-oshi-market-uses {
  display: grid;
  gap: 8px;
}

.shop-oshi-market-uses span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 202, 224, 0.2);
  border-radius: 13px;
  color: #f3e8f1;
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.7rem;
  font-weight: 850;
  line-height: 1.45;
}

.shop-oshi-market-uses b {
  display: grid;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff79ad, #a47bea);
  font-size: 0.72rem;
}

.shop-oshi-market-shared {
  margin: 0 0 22px;
  padding: 11px 14px;
  border: 1px solid rgba(191, 166, 255, 0.21);
  border-radius: 13px;
  color: #c9bed1;
  background: rgba(21, 16, 34, 0.58);
  font-size: 0.7rem;
  line-height: 1.65;
}

.shop-oshi-market-shared strong {
  color: #ffe0ed;
}

.shop-oshi-market-groups {
  display: grid;
  gap: 24px;
}

.shop-oshi-market-group {
  min-width: 0;
}

.shop-oshi-market-group + .shop-oshi-market-group {
  padding-top: 23px;
  border-top: 1px solid rgba(255, 214, 231, 0.11);
}

.shop-oshi-market-group-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 12px;
}

.shop-oshi-market-group-head h3 {
  margin: 4px 0 0;
  color: #fff3f9;
  font-size: 1rem;
}

.shop-oshi-market-group-head p {
  max-width: 540px;
  margin: 0;
  color: #bdb2c4;
  font-size: 0.68rem;
  line-height: 1.65;
  text-align: right;
}

.shop-oshi-market-collection .shop-card {
  border-color: rgba(255, 174, 207, 0.2);
  background:
    linear-gradient(155deg, rgba(255, 134, 183, 0.08), rgba(157, 112, 232, 0.035) 48%, rgba(13, 16, 28, 0.95)),
    rgba(20, 18, 31, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.shop-oshi-market-collection .shop-card:hover {
  border-color: rgba(255, 174, 207, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 28px rgba(28, 10, 35, 0.2);
  transform: translateY(-2px);
}

.shop-oshi-market-collection .shop-card.is-owned {
  border-color: rgba(128, 237, 193, 0.42);
}

.shop-oshi-market-collection .shop-card.is-equipped {
  border-color: rgba(120, 224, 255, 0.62);
}

.shop-oshi-market-collection .shop-card-top span {
  color: #ffacd0;
}

@media (max-width: 760px) {
  .shop-oshi-market-collection {
    padding: 20px 14px;
    border-radius: 21px;
  }

  .shop-oshi-market-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .shop-oshi-market-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .shop-oshi-market-group-head p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-oshi-market-collection .shop-card {
    transition: none;
  }

  .shop-oshi-market-collection .shop-card:hover {
    transform: none;
  }
}

.shop-title-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.shop-title-filter {
  min-height: 37px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  cursor: pointer;
  color: #aab2c5;
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.shop-title-filter:hover,
.shop-title-filter:focus-visible {
  border-color: rgba(77, 232, 223, 0.45);
  color: var(--text);
}

.shop-title-filter.active {
  border-color: rgba(77, 232, 223, 0.62);
  color: #eaffff;
  background: rgba(77, 232, 223, 0.1);
}

.shop-title-groups {
  display: grid;
  gap: 11px;
}

.shop-title-group {
  border: 1px solid var(--title-border, rgba(255, 255, 255, 0.11));
  border-radius: 17px;
  background: linear-gradient(145deg, var(--title-group-surface, rgba(255, 255, 255, 0.035)), rgba(8, 11, 18, 0.88));
  overflow: clip;
}

.shop-title-group[hidden] {
  display: none;
}

.shop-title-group > summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.shop-title-group > summary::-webkit-details-marker {
  display: none;
}

.shop-title-group > summary:focus-visible {
  outline: 2px solid var(--title-text, var(--cyan));
  outline-offset: -3px;
}

.shop-title-group-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--title-border, rgba(255, 255, 255, 0.16));
  border-radius: 13px;
  color: var(--title-icon, var(--cyan));
  background: var(--title-surface, rgba(255, 255, 255, 0.04));
  font-size: 1.05rem;
  font-weight: 950;
}

.shop-title-group > summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.shop-title-group > summary small {
  color: var(--title-text, var(--cyan));
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.shop-title-group > summary strong {
  color: var(--text);
  font-size: 0.92rem;
}

.shop-title-group > summary em {
  color: var(--muted);
  font-size: 0.67rem;
  font-style: normal;
  line-height: 1.5;
}

.shop-title-group > summary > b {
  color: var(--title-icon, var(--cyan));
  font-size: 1.25rem;
  transition: transform 160ms ease;
}

.shop-title-group[open] > summary > b {
  transform: rotate(45deg);
}

.shop-title-group > .shop-grid {
  padding: 0 14px 14px;
}

.top-message-composer {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 119, 149, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 103, 137, 0.11), transparent 32%),
    rgba(15, 17, 27, 0.9);
  scroll-margin-top: 24px;
}

.top-message-composer form {
  display: grid;
  grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
  gap: 8px 14px;
}

.top-message-composer label {
  color: #b9c1d1;
  font-size: 0.72rem;
  font-weight: 900;
}

.top-message-composer label:first-of-type,
.top-message-composer input {
  grid-column: 1;
}

.top-message-composer label:nth-of-type(2),
.top-message-composer textarea {
  grid-column: 2;
}

.top-message-composer label:first-of-type,
.top-message-composer label:nth-of-type(2) {
  grid-row: 1;
}

.top-message-composer input,
.top-message-composer textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: rgba(6, 8, 14, 0.76);
  font: inherit;
}

.top-message-composer input {
  grid-row: 2;
}

.top-message-composer textarea {
  grid-row: 2;
  min-height: 78px;
  resize: vertical;
}

.top-message-composer input:focus,
.top-message-composer textarea:focus {
  border-color: rgba(255, 119, 149, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 103, 137, 0.08);
}

.top-message-composer-foot,
.top-message-composer-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.top-message-composer-foot {
  color: #7f889b;
  font-size: 0.67rem;
  line-height: 1.6;
}

.top-message-composer-foot span {
  flex: none;
  color: #aab2c4;
  font-weight: 900;
}

.top-message-composer-actions {
  justify-content: flex-end;
  margin-top: 6px;
}

.shop-category-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.shop-category-head span {
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.shop-category-head h2 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.shop-category-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: right;
}

.economy-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.economy-note {
  margin: 14px 0 0;
  color: #737c91;
  font-size: 0.7rem;
  line-height: 1.7;
  text-align: center;
}

.economy-unavailable {
  padding: 42px 24px;
  text-align: center;
}

.economy-unavailable strong {
  display: block;
  margin-bottom: 8px;
}

.economy-unavailable p {
  min-height: 0;
}

.gameover-missions {
  margin-top: 24px;
  padding: 20px;
}

.gameover-missions-head {
  margin-bottom: 14px;
}

.gameover-missions-head h2 {
  margin: 5px 0 0;
  font-size: 1.1rem;
}

.gameover-missions-head > strong {
  color: var(--gold);
}

.mission-grid.compact .mission-card {
  padding: 14px;
}

.mission-grid.compact .mission-card h2 {
  margin-top: 10px;
  font-size: 0.9rem;
}

.mission-grid.compact .mission-card-foot {
  align-items: stretch;
  flex-direction: column;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  color: #0a0c12;
  background: var(--text);
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button[aria-disabled="true"],
.creator-card-share-actions .button.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
  pointer-events: none;
  transform: none !important;
}

.button-primary {
  background: linear-gradient(135deg, var(--red-soft), var(--red));
  box-shadow: 0 12px 36px rgba(255, 74, 95, 0.22);
  color: white;
}

.button-cyan {
  color: white;
  background: linear-gradient(135deg, var(--cyan-soft), var(--cyan));
}

.button-strategy {
  border-color: rgba(89, 181, 255, 0.7);
  color: white;
  background: linear-gradient(135deg, #1764c0, #25a9f4);
  box-shadow: 0 12px 34px rgba(25, 117, 210, 0.3);
}

.button-x-share {
  border-color: rgba(255, 255, 255, 0.3);
  color: #f8fafc;
  background: linear-gradient(135deg, #222832, #050608);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  text-decoration: none;
}

.button-x-share:hover,
.button-x-share:focus-visible {
  border-color: rgba(255, 255, 255, 0.68);
  background: linear-gradient(135deg, #313946, #0b0d11);
}

.x-share-mark {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  color: white;
  font-size: 0.7rem;
  font-weight: 1000;
  line-height: 1;
}

.button-ghost {
  border-color: var(--line-bright);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.button-danger {
  border-color: rgba(255, 74, 95, 0.4);
  color: #ff9eaa;
  background: rgba(255, 74, 95, 0.1);
}

.button-small {
  min-height: 40px;
  padding: 8px 13px;
  font-size: 0.8rem;
}

.button-wide {
  width: 100%;
}

.hero-card,
.panel,
.setup-panel,
.handoff-card,
.result-card,
.gameover-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(25, 29, 43, 0.96), rgba(11, 13, 21, 0.96));
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.hero-card::before,
.setup-panel::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--red), transparent 42%, var(--cyan));
}

.mock-arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.mock-player {
  min-height: 265px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 74, 95, 0.22), transparent 38%),
    #0d1019;
}

.mock-player:last-child {
  background:
    radial-gradient(circle at 50% 30%, rgba(77, 232, 223, 0.2), transparent 38%),
    #0d1019;
}

.mock-player span,
.mock-player small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mock-picture {
  position: relative;
  height: 145px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, #283143, #131722);
}

.mock-picture::before,
.mock-picture::after {
  position: absolute;
  content: "";
  border-radius: 52% 48% 45% 55%;
  background: linear-gradient(135deg, #76d98e, #26725e);
  transform: rotate(-28deg);
}

.mock-picture::before {
  width: 86px;
  height: 42px;
  top: 42px;
  left: 22px;
}

.mock-picture::after {
  width: 70px;
  height: 34px;
  right: 21px;
  bottom: 28px;
  transform: rotate(25deg);
}

.mock-player:last-child .mock-picture::before,
.mock-player:last-child .mock-picture::after {
  background: linear-gradient(135deg, #65dcd6, #2b6e8a);
}

.mock-versus {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 950;
}

.mock-score {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.mock-score strong {
  color: var(--gold);
  font-size: 2rem;
}

.rule-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.rule-strip div {
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
  font-size: 0.7rem;
}

.rule-strip strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.05rem;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h1,
.section-head h2,
.handoff-card h1,
.result-card h1,
.gameover-card h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.section-head p {
  max-width: 600px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.screen-actions {
  display: flex;
  gap: 10px;
}

.setup-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
}

.setup-guide,
.setup-panel {
  padding: 26px;
}

.setup-guide {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(14, 17, 26, 0.78);
}

.setup-guide h2 {
  margin: 0 0 18px;
  font-size: 1.1rem;
}

.guide-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 11px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.guide-list b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 8px;
  color: var(--cyan);
}

.privacy-note {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid rgba(119, 239, 170, 0.19);
  border-radius: 12px;
  color: #a9d8bb;
  background: rgba(119, 239, 170, 0.055);
  font-size: 0.78rem;
  line-height: 1.65;
}

.privacy-note.sample-handicap-note {
  margin-top: 16px;
  border-color: rgba(255, 157, 117, 0.28);
  color: #ffc2aa;
  background: rgba(255, 138, 91, 0.075);
}

.field-label {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.roleplay-voice-settings {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(161, 119, 255, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(128, 83, 222, 0.1), rgba(77, 232, 223, 0.035)),
    rgba(12, 15, 23, 0.72);
}

.roleplay-voice-settings .finish-line-heading span {
  color: #c7a9ff;
}

.roleplay-voice-summary {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid rgba(199, 169, 255, 0.18);
  border-radius: 11px;
  background: rgba(199, 169, 255, 0.05);
}

.roleplay-voice-summary strong {
  color: #e1d2ff;
  font-size: 0.78rem;
}

.roleplay-voice-summary small {
  color: #a9a0bd;
  font-size: 0.68rem;
  line-height: 1.55;
}

.pursuit-line-settings {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(244, 201, 107, 0.2);
  border-radius: 14px;
  background: rgba(244, 201, 107, 0.045);
}

.online-pursuit-line-settings {
  margin-top: 18px;
}

.finish-line-settings {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 108, 137, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 74, 95, 0.07), rgba(244, 201, 107, 0.035)),
    rgba(12, 15, 23, 0.72);
}

.finish-line-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.finish-line-heading span {
  color: #ff8da6;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.finish-line-heading strong {
  color: var(--text);
  font-size: 0.84rem;
}

.finish-character-count b {
  color: #ff8da6;
}

.finish-reply-divider {
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.34), transparent);
}

.finish-reply-input {
  min-height: 74px;
  resize: vertical;
  line-height: 1.55;
}

.field-help {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.55;
}

.finish-visibility-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  cursor: pointer;
  color: #b9c1d0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.5;
}

.finish-visibility-toggle input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #ff6d8c;
}

.image-preference-settings {
  min-width: 0;
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(77, 232, 223, 0.22);
  border-radius: 14px;
  background: rgba(77, 232, 223, 0.045);
}

.image-preference-settings legend {
  padding: 0 7px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.image-preference-settings legend span {
  margin-left: 7px;
  color: var(--cyan);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.image-preference-settings > p,
.image-preference-settings > small {
  margin: 0;
  color: #9099ad;
  font-size: 0.72rem;
  line-height: 1.6;
}

.image-preference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.image-preference-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.image-preference-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.image-preference-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 18, 0.72);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.image-preference-card strong {
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.45;
}

.image-preference-card small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
}

.image-preference-option:hover .image-preference-card {
  border-color: rgba(77, 232, 223, 0.36);
  transform: translateY(-1px);
}

.image-preference-option input:checked + .image-preference-card {
  border-color: rgba(77, 232, 223, 0.72);
  background: rgba(77, 232, 223, 0.11);
  box-shadow: 0 0 0 1px rgba(77, 232, 223, 0.12), 0 12px 28px rgba(0, 0, 0, 0.18);
}

.image-preference-option input:checked + .image-preference-card::after {
  margin-top: auto;
  color: var(--cyan);
  content: "✓ この条件を優先";
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.image-preference-option input:focus-visible + .image-preference-card {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.pursuit-custom-field {
  display: grid;
  gap: 6px;
}

.pursuit-custom-field[hidden] {
  display: none;
}

.pursuit-character-count {
  color: var(--muted);
  text-align: right;
  font-size: 0.68rem;
  font-weight: 800;
}

.pursuit-character-count b {
  color: var(--gold);
}

.pursuit-line-note {
  margin: 0;
  color: #9099ad;
  font-size: 0.72rem;
  line-height: 1.6;
}

.text-input,
.chat-input,
.score-comment {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: #0c0f17;
}

.text-input:focus,
.chat-input:focus,
.score-comment:focus {
  border-color: rgba(77, 232, 223, 0.55);
}

.deck-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0 14px;
}

.deck-counter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.deck-counter > span {
  padding: 7px 10px;
  border: 1px solid rgba(77, 232, 223, 0.2);
  border-radius: 999px;
  background: rgba(77, 232, 223, 0.05);
}

.deck-counter .reserve-count {
  border-color: rgba(199, 169, 255, 0.24);
  background: rgba(199, 169, 255, 0.06);
}

.deck-counter strong {
  color: var(--text);
  font-size: 1.7rem;
}

.deck-handicap-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid rgba(77, 232, 223, 0.18);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(77, 232, 223, 0.045);
  font-size: 0.76rem;
  font-weight: 800;
}

.deck-handicap-summary strong {
  color: var(--text);
  font-size: 0.92rem;
}

.deck-handicap-summary small {
  margin-left: auto;
  color: #ff9d75;
  font-weight: 950;
}

.deck-handicap-summary.has-handicap {
  border-color: rgba(255, 138, 91, 0.3);
  background: rgba(255, 138, 91, 0.065);
}

.signature-card-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 12px;
  color: #9aa3b7;
  background: rgba(255, 209, 102, 0.035);
}

.signature-card-guide > span {
  color: #7d8495;
  font-size: 1.35rem;
}

.signature-card-guide p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.signature-card-guide strong {
  color: #d1d5df;
  font-size: 0.75rem;
}

.signature-card-guide small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.signature-card-guide.is-selected {
  border-color: rgba(255, 209, 102, 0.48);
  background: linear-gradient(120deg, rgba(255, 209, 102, 0.1), rgba(255, 94, 130, 0.055));
}

.signature-card-guide.is-selected > span,
.signature-card-guide.is-selected strong {
  color: var(--gold);
}

.upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button.is-disabled {
  cursor: not-allowed;
  filter: grayscale(0.45);
  opacity: 0.48;
}

.file-button input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.deck-group {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.deck-group + .deck-group {
  margin-top: 22px;
}

.deck-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.deck-group-heading > div {
  display: grid;
  gap: 2px;
}

.deck-group-heading span {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.deck-group-heading h2,
.deck-group-heading p {
  margin: 0;
}

.deck-group-heading h2 {
  font-size: 1rem;
}

.deck-group-heading p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.65;
  text-align: right;
}

.reserve-deck-group {
  padding: 14px;
  border: 1px solid rgba(199, 169, 255, 0.18);
  border-radius: 15px;
  background: rgba(199, 169, 255, 0.035);
}

.reserve-deck-group .deck-group-heading span {
  color: #c7a9ff;
}

.deck-grid,
.select-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.deck-slot,
.select-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #0c0f17;
}

.deck-slot {
  aspect-ratio: 4 / 5;
}

.deck-slot.reserve-slot {
  border-color: rgba(199, 169, 255, 0.25);
}

.deck-slot.empty.reserve-slot {
  color: #6f6289;
  background: rgba(199, 169, 255, 0.025);
}

.deck-slot.signature-card,
.select-card.signature-card {
  border-color: rgba(255, 209, 102, 0.78);
  box-shadow:
    inset 0 0 0 1px rgba(255, 209, 102, 0.18),
    0 0 24px rgba(255, 183, 72, 0.12);
}

.signature-card-toggle {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: pointer;
  color: #d7dbe5;
  background: rgba(6, 8, 14, 0.82);
  backdrop-filter: blur(8px);
  font: inherit;
  font-size: 0.56rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.signature-card-toggle span {
  color: #8e95a5;
  font-size: 0.82rem;
}

.signature-card-toggle:hover,
.signature-card-toggle:focus-visible {
  border-color: rgba(255, 209, 102, 0.7);
  color: #fff0bd;
}

.signature-card-toggle.is-selected {
  border-color: rgba(255, 209, 102, 0.72);
  color: #fff0bd;
  background: rgba(112, 66, 12, 0.88);
  box-shadow: 0 0 18px rgba(255, 192, 70, 0.26);
}

.signature-card-toggle.is-selected span {
  color: var(--gold);
}

.deck-slot.sample-card .signature-card-toggle {
  top: 42px;
}

.deck-slot.sample-card,
.select-card.sample-card {
  border-color: rgba(255, 138, 91, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 91, 0.12);
}

.sample-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 6px 8px;
  border: 1px solid rgba(255, 194, 170, 0.34);
  border-radius: 8px;
  color: #ffe0d4;
  background: rgba(113, 43, 22, 0.82);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.deck-slot.empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border-style: dashed;
  color: #555e72;
  font-weight: 900;
}

.deck-slot.empty span {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.deck-slot.empty b {
  font-size: 1.6rem;
}

.deck-slot img,
.select-card img,
.arena-image img,
.score-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.deck-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(9px);
  font-size: 0.66rem;
  font-weight: 900;
}

.select-signature-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 209, 102, 0.55);
  border-radius: 999px;
  color: #fff0bd;
  background: rgba(91, 54, 10, 0.84);
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.05em;
}

.remove-card {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  cursor: pointer;
  color: white;
  background: rgba(255, 74, 95, 0.76);
  font-weight: 900;
}

.setup-actions {
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.crown-matchmaking-actions {
  align-items: stretch;
}

.crown-matchmaking-actions .button,
.crown-matchmaking-status {
  flex: 1 1 260px;
  min-height: 48px;
}

.button-crown-proof {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 201, 107, 0.62);
  color: #fff4d5;
  background:
    linear-gradient(118deg, rgba(70, 35, 82, 0.96), rgba(25, 92, 100, 0.94)),
    var(--panel);
  box-shadow: 0 8px 26px rgba(34, 14, 49, 0.22), inset 0 0 20px rgba(255, 201, 107, 0.07);
}

.button-crown-proof::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.13) 48%, transparent 72%);
  content: "";
  pointer-events: none;
  transform: translateX(-115%);
  transition: transform 260ms ease;
}

.button-crown-proof:hover::after,
.button-crown-proof:focus-visible::after {
  transform: translateX(115%);
}

.button-crown-proof.is-active {
  border-color: rgba(100, 232, 213, 0.68);
  background:
    linear-gradient(118deg, rgba(42, 55, 94, 0.98), rgba(19, 112, 105, 0.96)),
    var(--panel);
  box-shadow: 0 9px 28px rgba(18, 88, 85, 0.24), inset 0 0 22px rgba(100, 232, 213, 0.09);
}

.button-crown-proof.is-secondary {
  border-color: rgba(255, 201, 107, 0.34);
  color: #efdba9;
  background: rgba(255, 201, 107, 0.055);
  box-shadow: none;
}

.crown-matchmaking-status {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  padding: 8px 15px;
  border: 1px solid rgba(255, 201, 107, 0.28);
  border-radius: 12px;
  color: #ffe0a3;
  background: rgba(255, 201, 107, 0.055);
}

.crown-matchmaking-status b,
.crown-matchmaking-status small {
  display: block;
}

.crown-matchmaking-status b {
  font-size: 0.78rem;
}

.crown-matchmaking-status small {
  margin-top: 3px;
  color: #aa9f88;
  font-size: 0.64rem;
  line-height: 1.45;
}

.crown-matchmaking-status.is-muted {
  border-color: rgba(255, 255, 255, 0.09);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

.crown-matchmaking-hint {
  flex: 1 0 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.55;
  text-align: right;
}

.handoff-wrap {
  min-height: 660px;
  display: grid;
  place-items: center;
}

.handoff-card {
  width: min(650px, 100%);
  padding: clamp(30px, 7vw, 72px);
  text-align: center;
}

.handoff-icon {
  width: 82px;
  height: 82px;
  display: grid;
  margin: 0 auto 25px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 25px;
  color: var(--cyan);
  background: rgba(77, 232, 223, 0.06);
  font-size: 2.1rem;
}

.handoff-card p {
  max-width: 480px;
  margin: 20px auto 28px;
  color: var(--muted);
  line-height: 1.8;
}

.handoff-card .button {
  width: min(340px, 100%);
}

.round-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.hud-player {
  min-width: 0;
}

.hud-player-main {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.hud-player:last-child .hud-player-main {
  flex-direction: row-reverse;
}

.hud-player-details {
  min-width: 0;
  flex: 1;
}

.hud-player:last-child {
  text-align: right;
}

.hud-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.hud-player:last-child .hud-name-row {
  justify-content: flex-end;
}

.hud-name {
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-hud-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid rgba(255, 138, 91, 0.34);
  border-radius: 999px;
  color: #ffb293;
  background: rgba(255, 138, 91, 0.08);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.hp-bar {
  position: relative;
  height: 11px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #07090e;
}

.hp-fill {
  width: var(--hp);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff354f, #ff7886);
  box-shadow: 0 0 18px rgba(255, 74, 95, 0.35);
  transition: width 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hud-player:last-child .hp-fill {
  margin-left: auto;
  background: linear-gradient(90deg, #4de8df, #91fff8);
  box-shadow: 0 0 18px rgba(77, 232, 223, 0.32);
}

.hp-value {
  display: inline-block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.round-badge {
  min-width: 110px;
  padding: 12px 16px;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.round-badge small,
.round-badge strong {
  display: block;
}

.round-badge small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.round-badge strong {
  margin-top: 3px;
  font-size: 1.3rem;
}

.selection-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selection-timer {
  --selection-progress: 100%;
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: end;
  min-width: 132px;
  min-height: 64px;
  overflow: hidden;
  padding: 10px 15px 13px;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: rgba(10, 13, 21, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.selection-timer small {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.selection-timer strong {
  color: var(--cyan);
  font-size: 1.75rem;
  line-height: 1;
}

.selection-timer span {
  margin: 0 0 2px 5px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.selection-timer i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--selection-progress);
  height: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(77, 232, 223, 0.55);
  transition: width 100ms linear;
}

.selection-timer.pending {
  border-style: dashed;
}

.selection-timer.warning {
  border-color: rgba(255, 53, 79, 0.72);
  animation: selection-timer-alert 700ms ease-in-out infinite alternate;
}

.selection-timer.warning strong {
  color: var(--red-soft);
}

.selection-timer.warning i {
  background: var(--red);
  box-shadow: 0 0 15px rgba(255, 53, 79, 0.62);
}

@keyframes selection-timer-alert {
  from { box-shadow: 0 0 0 rgba(255, 53, 79, 0); }
  to { box-shadow: 0 0 24px rgba(255, 53, 79, 0.24); }
}

.select-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.select-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.select-card {
  aspect-ratio: 4 / 5;
  padding: 0;
  cursor: pointer;
  color: var(--text);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.select-card:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--line-bright);
}

.select-card.selected {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(77, 232, 223, 0.16), 0 18px 42px rgba(0, 0, 0, 0.35);
}

.select-card.used {
  cursor: not-allowed;
  filter: grayscale(0.9);
  opacity: 0.28;
}

.select-card.locked {
  cursor: not-allowed;
  opacity: 0.48;
}

.select-card.swap-candidate:not(:disabled) {
  border-color: rgba(199, 169, 255, 0.46);
}

.select-card span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 8px;
  border-radius: 9px;
  background: rgba(5, 7, 12, 0.78);
  font-size: 0.68rem;
  font-weight: 900;
}

.selection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
}

.selection-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.battle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
}

.arena-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(12, 15, 23, 0.88);
  box-shadow: var(--shadow);
}

.arena-grid {
  display: grid;
  grid-template-columns: 1fr 54px 1fr;
  align-items: stretch;
  gap: 10px;
}

.arena-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #080a10;
}

.arena-card.player-one {
  box-shadow: inset 0 3px var(--red);
}

.arena-card.player-two {
  box-shadow: inset 0 3px var(--cyan);
}

.arena-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #05070c;
}

.arena-image img {
  object-fit: contain;
}

.arena-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
}

.arena-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arena-meta span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.arena-vs {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 950;
}

.arena-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.chat-panel {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(12, 15, 23, 0.9);
  box-shadow: var(--shadow);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px;
  border-bottom: 1px solid var(--line);
}

.chat-head strong {
  font-size: 0.86rem;
}

.chat-head span {
  color: var(--muted);
  font-size: 0.65rem;
}

.chat-authors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.author-button,
.reaction-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.72rem;
  font-weight: 800;
}

.author-button.active {
  border-color: rgba(77, 232, 223, 0.42);
  color: var(--text);
  background: rgba(77, 232, 223, 0.08);
}

.chat-messages {
  min-height: 180px;
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.chat-empty {
  display: grid;
  height: 100%;
  place-items: center;
  color: #626b7e;
  text-align: center;
  font-size: 0.76rem;
  line-height: 1.7;
}

.chat-message {
  max-width: 90%;
  margin-bottom: 11px;
}

.chat-message.player-two {
  margin-left: auto;
  text-align: right;
}

.chat-message small {
  display: block;
  margin-bottom: 4px;
  color: #737c90;
  font-size: 0.62rem;
}

.chat-message p {
  display: inline-block;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(255, 74, 95, 0.18);
  border-radius: 4px 12px 12px;
  background: rgba(255, 74, 95, 0.08);
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat-message.player-two p {
  border-color: rgba(77, 232, 223, 0.18);
  border-radius: 12px 4px 12px 12px;
  background: rgba(77, 232, 223, 0.07);
}

.quick-reactions {
  display: flex;
  gap: 6px;
  padding: 0 12px 8px;
  overflow-x: auto;
}

.chat-tool-picker {
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding-top: 7px;
}

.chat-tool-tabs {
  display: flex;
  gap: 5px;
  padding: 0 12px 8px;
}

.chat-tool-tab {
  min-height: 27px;
  padding: 4px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #7f899e;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.66rem;
  font-weight: 900;
  cursor: pointer;
}

.chat-tool-tab.is-active {
  border-color: rgba(255, 125, 166, 0.46);
  color: #ffdbe6;
  background: rgba(255, 95, 145, 0.11);
  box-shadow: inset 0 0 12px rgba(255, 95, 145, 0.05);
}

.chat-tool-panel[hidden] {
  display: none;
}

.quick-stamps {
  display: grid;
  grid-auto-columns: 76px;
  grid-auto-flow: column;
  gap: 7px;
  padding: 0 12px 7px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

.stamp-button {
  display: grid;
  min-height: 88px;
  place-items: center;
  gap: 1px;
  padding: 4px 4px 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  color: #bfc6d5;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.stamp-button:hover:not(:disabled) {
  border-color: rgba(77, 232, 223, 0.42);
  background: rgba(77, 232, 223, 0.065);
  transform: translateY(-2px);
}

.stamp-button:disabled {
  cursor: wait;
  opacity: 0.45;
}

.stamp-button img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  pointer-events: none;
}

.stamp-button span {
  width: 100%;
  overflow: hidden;
  font-size: 0.57rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stamp-cooldown-note {
  display: block;
  padding: 0 13px 9px;
  color: #697287;
  font-size: 0.56rem;
}

.chat-stamp-bubble {
  position: relative;
  display: inline-grid;
  max-width: 154px;
  justify-items: center;
  padding: 5px 7px 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: rgba(7, 10, 19, 0.58);
}

.chat-stamp-bubble img {
  display: block;
  width: min(132px, 30vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.chat-stamp-bubble > span {
  max-width: 130px;
  overflow: hidden;
  color: #dfe4ef;
  font-size: 0.61rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reaction-button {
  min-width: max-content;
  min-height: 33px;
  padding-inline: 10px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 11px;
  border-top: 1px solid var(--line);
}

.chat-input {
  min-height: 42px;
  padding-block: 9px;
  font-size: 0.78rem;
}

.chat-form .button {
  min-height: 42px;
  padding: 8px 13px;
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  gap: 24px;
  align-items: stretch;
}

.score-image,
.score-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.score-image {
  min-height: 500px;
  background: #05070b;
}

.score-image img {
  object-fit: contain;
}

.score-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 5vw, 54px);
}

.score-panel h2 {
  margin: 12px 0 10px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: -0.055em;
}

.score-panel > p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.75;
}

.score-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.score-button {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  background: #0b0e16;
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  font-weight: 950;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.score-button:hover {
  transform: translateY(-2px);
  border-color: var(--line-bright);
}

.score-button.selected {
  border-color: var(--gold);
  color: #151008;
  background: var(--gold);
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.22);
}

.score-button.critical-zone::after {
  display: block;
  content: "CRIT";
  color: var(--gold);
  font-size: 0.45rem;
  letter-spacing: 0.1em;
}

.score-button.selected.critical-zone::after {
  color: #6e5106;
}

.score-lock {
  margin-top: 20px;
}

.result-wrap,
.gameover-wrap {
  min-height: 650px;
  display: grid;
  place-items: center;
}

.result-card,
.gameover-card {
  width: min(960px, 100%);
  padding: clamp(25px, 5vw, 58px);
}

.result-card {
  text-align: center;
}

.result-scores {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin: 35px 0;
}

.online-pursuit-lines {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.online-pursuit-call {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 201, 107, 0.4);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(244, 201, 107, 0.1), rgba(170, 131, 255, 0.07));
  text-align: left;
}

.online-pursuit-call span {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.online-pursuit-call strong {
  align-self: center;
  color: var(--text);
  font-size: 0.8rem;
}

.online-pursuit-call blockquote {
  margin: 0;
  color: #f6dda1;
  font-weight: 850;
  line-height: 1.55;
}

.result-player {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.result-player.winner {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 42px rgba(255, 209, 102, 0.08);
}

.result-player strong,
.result-player span,
.result-player small {
  display: block;
}

.result-player strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-player span {
  margin: 8px 0;
  color: var(--gold);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 1;
}

.result-player small {
  min-height: 20px;
  color: var(--muted);
  font-weight: 800;
}

.result-vs {
  color: #626b7e;
  font-size: 0.75rem;
  font-weight: 950;
}

.damage-callout {
  max-width: 600px;
  margin: 0 auto 28px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 74, 95, 0.23);
  border-radius: 13px;
  color: #ffc2c9;
  background: rgba(255, 74, 95, 0.07);
  line-height: 1.7;
}

.finish-result-badge {
  width: min(600px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -12px auto 24px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 108, 137, 0.32);
  border-radius: 12px;
  color: #ffc5d1;
  background: rgba(255, 74, 95, 0.055);
  text-align: left;
}

.finish-result-badge span {
  color: #ff8da6;
  font-family: var(--display);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.finish-result-badge strong {
  font-size: 0.74rem;
}

.finish-result-badge.is-signature {
  border-color: rgba(255, 209, 102, 0.48);
  color: #fff0bd;
  background: linear-gradient(115deg, rgba(255, 209, 102, 0.1), rgba(255, 74, 95, 0.07));
}

.finish-result-badge.is-signature span {
  color: var(--gold);
}

.finish-result-reply {
  width: min(600px, 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: -12px auto 24px;
  padding: 13px 15px;
  border: 1px solid rgba(139, 178, 192, 0.3);
  border-radius: 12px;
  background: rgba(99, 132, 145, 0.07);
  text-align: left;
}

.finish-result-reply span {
  align-self: center;
  color: #a9c9d3;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.finish-result-reply strong {
  align-self: center;
  color: #d7e7ec;
  font-size: 0.74rem;
}

.finish-result-reply blockquote {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  color: #edf6f8;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.finish-result-reply-note,
.finish-result-reply-disclosure {
  grid-column: 1 / -1;
  margin: 5px 0 0;
  color: #c9dadd;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.55;
}

.finish-result-reply-note.is-error {
  color: #ffc2c9;
}

.finish-result-reply-disclosure {
  color: #9fb1b7;
  font-size: 0.69rem;
}

.finish-reply-slot:empty {
  display: none;
}

.finish-reply-slot:not(.is-terminal):not(:empty) {
  display: contents;
}

.finish-reply-slot.is-terminal {
  width: min(600px, 100%);
  margin: 24px auto 0;
}

.finish-reply-slot.is-terminal .finish-result-reply {
  width: 100%;
  margin: 0;
}

.finish-result-reply.is-signature {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.065);
}

.finish-result-reply.is-signature span,
.finish-result-reply.is-signature strong {
  color: #ffe9aa;
}

.result-chat {
  margin: 26px auto;
  text-align: left;
}

.result-chat .chat-panel {
  min-height: 340px;
  box-shadow: none;
}

.gameover-card {
  text-align: center;
}

.winner-emblem {
  width: 110px;
  height: 110px;
  display: grid;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle, rgba(255, 209, 102, 0.17), rgba(255, 209, 102, 0.02));
  box-shadow: 0 0 60px rgba(255, 209, 102, 0.14);
  font-size: 2.7rem;
}

.gameover-card h1 {
  color: var(--gold);
}

.gameover-card > p {
  margin: 15px auto 28px;
  color: var(--muted);
}

.final-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.final-player {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.final-player.winner {
  border-color: rgba(255, 209, 102, 0.34);
}

.final-player h2 {
  margin: 0 0 15px;
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-box {
  padding: 11px 7px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
}

.stat-box strong,
.stat-box span {
  display: block;
}

.stat-box strong {
  font-size: 1.2rem;
}

.stat-box span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
}

.gameover-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.streak-badge {
  border-color: rgba(255, 209, 102, 0.28);
  color: var(--gold);
  background: rgba(255, 209, 102, 0.07);
}

.toast {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  max-width: min(410px, calc(100% - 44px));
  padding: 13px 17px;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  color: var(--text);
  background: rgba(16, 19, 29, 0.96);
  box-shadow: var(--shadow);
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fx-layer {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}

.critical-flash {
  position: absolute;
  inset: 0;
  background: rgba(255, 209, 102, 0.22);
  animation: flash-out 700ms ease-out both;
}

.critical-text {
  position: relative;
  padding: 18px 30px;
  color: #fff4c9;
  filter: drop-shadow(0 0 30px rgba(255, 209, 102, 0.75));
  font-size: clamp(3.2rem, 12vw, 9rem);
  font-style: italic;
  font-weight: 950;
  letter-spacing: -0.06em;
  text-align: center;
  text-shadow: 5px 5px 0 rgba(255, 74, 95, 0.72);
  animation: critical-hit 1100ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.finish-cutin-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding:
    max(14px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(14px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  border: 0;
  color: var(--text);
  background: rgba(4, 6, 11, 0.72);
  overflow: hidden;
  backdrop-filter: blur(9px);
}

.finish-cutin-dialog[open] {
  display: grid;
  place-items: center;
}

.finish-cutin-dialog::backdrop {
  background: rgba(2, 3, 7, 0.76);
}

#finishCutInContent {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.finish-cutin {
  position: relative;
  isolation: isolate;
  width: min(1120px, 100%);
  height: min(76vh, 720px);
  height: min(76dvh, 720px);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 109, 139, 0.62);
  border-radius: clamp(18px, 3vw, 30px);
  cursor: default;
  background: #090b12;
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.72),
    0 0 80px rgba(255, 66, 104, 0.14);
  animation: finish-cutin-in 360ms cubic-bezier(0.16, 0.8, 0.22, 1) both;
}

.finish-cutin.is-signature {
  border-color: rgba(255, 209, 102, 0.86);
  box-shadow:
    0 32px 110px rgba(0, 0, 0, 0.74),
    0 0 100px rgba(255, 191, 62, 0.22);
}

.finish-cutin::after {
  position: absolute;
  z-index: 2;
  inset: -30% -12%;
  pointer-events: none;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 7%,
    rgba(255, 92, 128, 0.11) 7.4% 7.8%,
    transparent 8.2% 14%
  );
  content: "";
  mix-blend-mode: screen;
  transform: translateX(-5%);
  animation: finish-speed-lines 900ms ease-out both;
}

.finish-cutin.is-signature::after {
  background: repeating-linear-gradient(
    112deg,
    transparent 0 6%,
    rgba(255, 216, 119, 0.18) 6.3% 6.8%,
    transparent 7.2% 12%
  );
}

.finish-cutin-backdrop {
  position: absolute;
  z-index: -3;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  opacity: 0.52;
  filter: blur(26px) saturate(1.2);
  transform: scale(1.08);
}

.finish-cutin-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 28% 48%, transparent 0 18%, rgba(5, 7, 12, 0.18) 42%, rgba(5, 7, 12, 0.84) 100%),
    linear-gradient(104deg, rgba(5, 7, 12, 0.18), rgba(5, 7, 12, 0.92));
}

.finish-cutin.is-signature .finish-cutin-shade {
  background:
    radial-gradient(circle at 28% 48%, rgba(255, 201, 76, 0.07), transparent 32%, rgba(5, 7, 12, 0.9) 100%),
    linear-gradient(104deg, rgba(5, 7, 12, 0.16), rgba(51, 26, 6, 0.88));
}

.finish-cutin-stage {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(20px, 4vw, 54px);
  padding: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(82px, 9vw, 104px);
}

.finish-cutin-image-frame {
  position: relative;
  min-width: 0;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: clamp(14px, 2vw, 22px);
  background: rgba(4, 6, 11, 0.7);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46);
  transform: rotate(-1.5deg);
  animation: finish-image-in 540ms cubic-bezier(0.16, 0.8, 0.22, 1) both;
}

.finish-cutin.is-signature .finish-cutin-image-frame {
  border-color: rgba(255, 218, 127, 0.7);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(255, 195, 68, 0.18);
}

.finish-cutin-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.finish-cutin-image-fallback {
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 950;
  letter-spacing: -0.06em;
}

.finish-cutin-copy {
  min-width: 0;
  max-height: 100%;
  display: grid;
  align-content: center;
  gap: 12px;
  overflow-y: auto;
  padding: 4px;
  text-align: left;
}

.finish-cutin-label {
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(255, 113, 143, 0.56);
  border-radius: 999px;
  color: #ff9bb0;
  background: rgba(87, 12, 31, 0.54);
  font-family: var(--display);
  font-size: clamp(0.68rem, 1.3vw, 0.86rem);
  font-weight: 950;
  letter-spacing: 0.15em;
}

.finish-cutin.is-signature .finish-cutin-label {
  border-color: rgba(255, 218, 127, 0.72);
  color: #fff0bd;
  background: rgba(103, 60, 8, 0.62);
  box-shadow: 0 0 24px rgba(255, 200, 72, 0.2);
  animation: signature-label-pulse 900ms ease-in-out both;
}

.finish-cutin-winner {
  overflow: hidden;
  color: white;
  font-family: var(--display);
  font-size: clamp(1.55rem, 4vw, 3.5rem);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1.05;
  text-overflow: ellipsis;
  text-shadow: 0 5px 24px rgba(0, 0, 0, 0.72);
}

.finish-cutin-line {
  margin: 10px 0 0;
  padding: 15px 0 15px 18px;
  border-left: 4px solid #ff6d8c;
  color: #fff1f4;
  font-size: clamp(1.05rem, 2.45vw, 2rem);
  font-weight: 900;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.82);
}

.finish-cutin.is-signature .finish-cutin-line {
  border-left-color: var(--gold);
  color: #fff4cf;
}

.finish-reply-panel {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(169, 201, 211, 0.28);
  border-radius: 13px;
  background: rgba(9, 21, 27, 0.58);
  box-shadow: inset 0 0 24px rgba(130, 179, 194, 0.04);
}

.finish-reply-heading {
  color: #a9c9d3;
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.finish-reply-name {
  color: #eaf5f7;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.finish-cutin-line-disclosure {
  color: #b7c5c9;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.45;
}

.finish-reply-line,
.finish-reply-waiting {
  margin: 0;
  color: #e5f0f3;
  font-size: clamp(0.83rem, 1.4vw, 1rem);
  font-weight: 850;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.finish-reply-waiting {
  color: #b9c7cb;
  font-weight: 750;
}

.finish-reply-action {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid rgba(169, 212, 225, 0.58);
  border-radius: 11px;
  cursor: pointer;
  color: #eefcff;
  background: linear-gradient(135deg, rgba(89, 148, 166, 0.5), rgba(37, 79, 94, 0.76));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 950;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.finish-reply-action:hover,
.finish-reply-action:focus-visible {
  border-color: #e4faff;
  outline: 2px solid rgba(204, 242, 250, 0.68);
  outline-offset: 3px;
  background: linear-gradient(135deg, rgba(107, 176, 197, 0.68), rgba(45, 94, 111, 0.9));
  transform: translateY(-1px);
}

.finish-reply-panel.is-acknowledged {
  padding-right: 76px;
  border-color: rgba(169, 212, 225, 0.58);
  background: rgba(20, 48, 57, 0.74);
  animation: finish-reply-in 320ms ease-out both;
}

.finish-reply-panel.is-delivery-failed {
  border-color: rgba(255, 128, 145, 0.56);
  background: rgba(74, 24, 34, 0.76);
}

.finish-reply-disclosure {
  padding-right: 54px;
  color: #b8c7cb;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1.45;
}

.finish-cutin.is-signature .finish-reply-panel.is-acknowledged {
  border-color: rgba(255, 218, 127, 0.68);
  background: rgba(73, 50, 12, 0.66);
  box-shadow: inset 0 0 28px rgba(255, 209, 102, 0.08), 0 0 26px rgba(255, 193, 55, 0.08);
}

.finish-cutin.is-signature .finish-reply-panel.is-delivery-failed {
  border-color: rgba(255, 128, 145, 0.62);
  background: rgba(74, 24, 34, 0.8);
  box-shadow: inset 0 0 28px rgba(255, 90, 114, 0.08);
}

.finish-cutin.is-signature .finish-reply-panel.is-acknowledged .finish-reply-heading,
.finish-cutin.is-signature .finish-reply-panel.is-acknowledged .finish-reply-name,
.finish-cutin.is-signature .finish-reply-panel.is-acknowledged .finish-reply-line {
  color: #fff0bd;
}

.finish-reply-seal {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2px solid #b9d8e0;
  border-radius: 50%;
  color: #dff6fb;
  font-family: serif;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  transform: translateY(-50%) rotate(-8deg);
  animation: finish-reply-seal 380ms cubic-bezier(0.16, 0.8, 0.22, 1) both;
}

.finish-cutin.is-signature .finish-reply-seal {
  border-color: var(--gold);
  color: #fff0bd;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.24);
}

.finish-cutin-skip {
  position: absolute;
  z-index: 5;
  right: clamp(20px, 4vw, 48px);
  bottom: clamp(18px, 3vw, 34px);
  min-width: 150px;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(10px);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 900;
}

.finish-cutin-skip:hover,
.finish-cutin-skip:focus-visible {
  border-color: white;
  outline: 2px solid rgba(255, 255, 255, 0.74);
  outline-offset: 3px;
  background: rgba(25, 29, 40, 0.94);
}

.loading-overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(5, 7, 12, 0.86);
  backdrop-filter: blur(10px);
}

.loading-card {
  width: min(360px, calc(100% - 40px));
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-solid);
  text-align: center;
}

.loader {
  width: 42px;
  height: 42px;
  margin: 0 auto 17px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 750ms linear infinite;
}

.confirm-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  color: var(--text);
  background: var(--panel-solid);
  box-shadow: var(--shadow);
}

.confirm-dialog::backdrop {
  background: rgba(3, 4, 8, 0.78);
  backdrop-filter: blur(8px);
}

.confirm-dialog form {
  padding: 30px;
}

.confirm-dialog h2 {
  margin: 10px 0 12px;
}

.confirm-dialog p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.75;
}

.dialog-actions {
  justify-content: flex-end;
}

.noscript {
  margin: 30px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
}

/* Online mode ------------------------------------------------------------ */

.mode-note {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted, #9ba5b7);
  font-size: 0.82rem;
  line-height: 1.7;
}

.profile-avatar-setting {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 15px;
  border: 1px solid rgba(255, 126, 158, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 91, 126, 0.055), rgba(100, 232, 213, 0.035));
}

.profile-avatar-preview .battle-avatar {
  width: 66px;
  height: 66px;
}

.profile-avatar-copy {
  min-width: 0;
}

.profile-avatar-copy strong {
  color: #fff0f4;
  font-size: 0.84rem;
}

.profile-avatar-copy p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-avatar-setting > small {
  grid-column: 2 / -1;
  color: #c99ba8;
  font-size: 0.64rem;
  line-height: 1.55;
}

.battle-avatar {
  width: 48px;
  height: 48px;
  display: inline-grid;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #ff6582, #9b6deb 58%, #55d9d4);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.26), 0 0 18px rgba(255, 101, 130, 0.1);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.battle-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.battle-avatar.is-hidden {
  color: #7c8497;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.13);
  background: #151925;
  box-shadow: none;
  font-size: 0.8rem;
}

.avatar-visibility-toggle {
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 126, 158, 0.24);
  border-radius: 999px;
  cursor: pointer;
  color: #f0c3ce;
  background: rgba(255, 91, 126, 0.055);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 850;
}

.avatar-visibility-toggle:hover {
  border-color: rgba(255, 126, 158, 0.5);
  background: rgba(255, 91, 126, 0.11);
}

.avatar-visibility-toggle[aria-pressed="true"] {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.strategy-identity-card .battle-avatar.identity-avatar {
  width: 96px;
  height: 96px;
  margin-top: 18px;
  font-size: 1.8rem;
}

.strategy-identity-card.player-2 .battle-avatar.identity-avatar {
  margin-left: auto;
}

.strategy-avatar-toggle {
  display: block;
  width: fit-content;
  margin: -14px auto 0;
}

.online-profile-strip,
.online-room-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 22px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(7, 10, 18, 0.72);
  color: #aeb8c9;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.player-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 4px 9px;
  border: 1px solid var(--title-border, rgba(255, 209, 102, 0.36));
  border-radius: 999px;
  background: var(--title-surface, linear-gradient(110deg, rgba(255, 209, 102, 0.11), rgba(157, 92, 255, 0.1)));
  color: var(--title-text, var(--gold));
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.title-category-preference {
  --title-border: rgba(255, 126, 166, 0.44);
  --title-text: #ffabc5;
  --title-icon: #ff7fa8;
  --title-surface: linear-gradient(110deg, rgba(255, 108, 154, 0.13), rgba(255, 177, 199, 0.06));
  --title-group-surface: rgba(255, 91, 144, 0.07);
}

.title-category-expression {
  --title-border: rgba(91, 222, 232, 0.42);
  --title-text: #8beaf0;
  --title-icon: #57dce6;
  --title-surface: linear-gradient(110deg, rgba(68, 210, 224, 0.13), rgba(100, 232, 213, 0.06));
  --title-group-surface: rgba(54, 203, 218, 0.065);
}

.title-category-solo {
  --title-border: rgba(255, 205, 93, 0.43);
  --title-text: #f4d477;
  --title-icon: #ffcb4e;
  --title-surface: linear-gradient(110deg, rgba(255, 201, 78, 0.13), rgba(255, 154, 64, 0.055));
  --title-group-surface: rgba(255, 191, 65, 0.06);
}

.title-category-strategy {
  --title-border: rgba(75, 171, 255, 0.46);
  --title-text: #8dccff;
  --title-icon: #55b3ff;
  --title-surface: linear-gradient(110deg, rgba(50, 150, 244, 0.14), rgba(104, 99, 240, 0.065));
  --title-group-surface: rgba(55, 137, 234, 0.07);
}

.title-category-multiplayer {
  --title-border: rgba(182, 116, 255, 0.46);
  --title-text: #c9a0ff;
  --title-icon: #b26cff;
  --title-surface: linear-gradient(110deg, rgba(155, 79, 238, 0.14), rgba(213, 112, 255, 0.06));
  --title-group-surface: rgba(145, 72, 223, 0.07);
}

.title-category-community {
  --title-border: rgba(100, 232, 178, 0.42);
  --title-text: #91edc0;
  --title-icon: #63e5ad;
  --title-surface: linear-gradient(110deg, rgba(72, 210, 151, 0.13), rgba(96, 226, 201, 0.055));
  --title-group-surface: rgba(64, 194, 142, 0.065);
}

.title-category-oshi-market {
  --title-border: rgba(255, 137, 189, 0.5);
  --title-text: #ffc0da;
  --title-icon: #ff82b7;
  --title-surface: linear-gradient(110deg, rgba(255, 113, 173, 0.17), rgba(174, 122, 241, 0.09));
  --title-group-surface: rgba(230, 92, 159, 0.08);
}

.chat-message small .player-title-badge {
  min-height: 20px;
  margin-left: 6px;
  padding: 2px 7px;
  font-size: 0.58rem;
}

.overall-ranking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 22px;
  margin: 0 0 18px;
  padding: 15px 17px;
  border: 1px solid rgba(100, 232, 213, 0.3);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(33, 128, 217, 0.12), rgba(100, 232, 213, 0.045));
}

.overall-ranking-panel.is-disabled {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.025);
}

.overall-ranking-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.overall-ranking-copy .eyebrow {
  flex: 0 0 auto;
  max-width: 118px;
  color: #7fd8ff;
  line-height: 1.45;
}

.overall-ranking-copy > div {
  display: grid;
  gap: 3px;
}

.overall-ranking-copy strong {
  color: var(--text);
  font-size: 0.86rem;
}

.overall-ranking-copy p,
.overall-ranking-settings p {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
}

.overall-ranking-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.overall-ranking-status {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.is-disabled .overall-ranking-status {
  color: var(--muted);
}

.overall-ranking-panel > small {
  grid-column: 1 / -1;
  color: #798398;
  font-size: 0.64rem;
  line-height: 1.5;
}

.overall-ranking-public-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.overall-ranking-settings {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(100, 232, 213, 0.15);
}

.overall-ranking-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  cursor: pointer;
}

.overall-ranking-settings summary::-webkit-details-marker {
  display: none;
}

.overall-ranking-settings summary > span {
  display: grid;
  gap: 3px;
}

.overall-ranking-settings summary strong {
  color: var(--text);
  font-size: 0.8rem;
}

.overall-ranking-settings summary small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.overall-ranking-settings summary > b {
  flex: 0 0 auto;
  color: #8edcff;
  font-size: 0.7rem;
}

.overall-ranking-settings summary > b::after {
  content: " ＋";
}

.overall-ranking-settings[open] summary > b::after {
  content: " −";
}

.overall-ranking-settings .overall-ranking-public-controls {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(5, 8, 15, 0.48);
}

.overall-ranking-settings > p {
  margin-top: 9px;
  color: #e0b57a;
}

.rate-floor-participation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 18px;
  padding: 13px;
  border: 1px solid rgba(140, 132, 255, 0.25);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(101, 88, 200, 0.12), rgba(33, 128, 217, 0.045));
}

.rate-floor-participation.is-disabled {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.018);
}

.rate-floor-participation-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rate-floor-participation-copy .eyebrow {
  flex: 0 0 auto;
  color: #aaa5ff;
}

.rate-floor-participation-copy > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.rate-floor-participation-copy strong {
  color: var(--text);
  font-size: 0.82rem;
}

.rate-floor-participation-copy p,
.rate-floor-participation > small {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.55;
}

.rate-floor-participation-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.rate-floor-participation-control > span {
  color: #bdb8ff;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

.rate-floor-participation.is-disabled .rate-floor-participation-control > span {
  color: var(--muted);
}

.rate-floor-participation > small {
  grid-column: 1 / -1;
  color: #818a9d;
}

.ranking-x-handle {
  display: flex;
  align-items: center;
  min-width: min(260px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(5, 8, 15, 0.72);
}

.ranking-x-handle span {
  padding-left: 11px;
  color: var(--muted);
  font-weight: 800;
}

.ranking-x-handle input {
  width: 100%;
  min-width: 0;
  padding: 9px 11px 9px 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.ranking-x-handle:focus-within {
  border-color: rgba(100, 232, 213, 0.55);
}

.ranking-x-public {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #cbd5e1;
  font-size: 0.75rem;
}

.ranking-x-public input {
  width: 17px;
  height: 17px;
  accent-color: var(--cyan);
}

.online-room-strip {
  justify-content: center;
  margin: -8px 0 22px;
  padding: 8px 14px;
}

.connection-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #9ba5b7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.connection-pill.connected {
  border-color: rgba(100, 232, 213, 0.34);
  background: rgba(100, 232, 213, 0.08);
  color: #64e8d5;
}

.connection-pill.warning {
  border-color: rgba(255, 138, 91, 0.38);
  background: rgba(255, 138, 91, 0.08);
  color: #ff9d75;
}

.online-status-card {
  width: min(680px, 100%);
}

.online-status-details {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 50px;
  margin: 18px 0;
}

.matching-pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
}

.matching-pulse i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64e8d5;
  box-shadow: 0 0 16px rgba(100, 232, 213, 0.75);
  animation: matchingBounce 1.1s ease-in-out infinite;
}

.matching-pulse i:nth-child(2) { animation-delay: 0.14s; }
.matching-pulse i:nth-child(3) { animation-delay: 0.28s; }

.matching-scope-hint {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.6;
  text-align: center;
}

.rate-floor-list {
  overflow: hidden;
  border: 1px solid rgba(140, 132, 255, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 15, 29, 0.92), rgba(8, 11, 20, 0.9));
}

.rate-floor-entry {
  display: grid;
  grid-template-columns: 82px minmax(150px, 1fr) 110px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rate-floor-entry:last-child {
  border-bottom: 0;
}

.rate-floor-position {
  color: #aaa5ff;
  font-size: 1.2rem;
  text-align: center;
  white-space: nowrap;
}

.rate-floor-player,
.rate-floor-rating {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rate-floor-player b {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rate-floor-player small,
.rate-floor-rating small {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.rate-floor-rating {
  align-items: flex-end;
}

.rate-floor-rating strong {
  color: #d5d1ff;
  font-size: 1.45rem;
}

.rate-floor-note {
  margin: 9px 2px 0;
  color: #858da0;
  font-size: 0.68rem;
  line-height: 1.65;
}

.battle-presence-check {
  box-sizing: border-box;
  width: 100%;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(100, 232, 213, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(100, 232, 213, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 20, 0.72);
  text-align: left;
}

.battle-presence-check[data-battle-presence-panel="strategy"] {
  border-color: rgba(170, 131, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(170, 131, 255, 0.09), rgba(100, 232, 213, 0.025)),
    rgba(8, 12, 20, 0.72);
}

.strategy-form .battle-presence-check {
  margin-top: 0;
}

.battle-presence-check + .setup-actions {
  margin-top: 12px;
}

.online-status-details .battle-presence-check {
  max-width: 540px;
  flex: 1 0 100%;
  margin: 4px auto 0;
}

.battle-presence-check-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.battle-presence-check-head > div {
  min-width: 0;
}

.battle-presence-check-head small,
.battle-presence-check-head strong {
  display: block;
}

.battle-presence-check-head small {
  color: #72d9d1;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

[data-battle-presence-panel="strategy"] .battle-presence-check-head small {
  color: #cbb3ff;
}

.battle-presence-check-head strong {
  margin-top: 3px;
  color: var(--text);
  font-size: 0.92rem;
}

.battle-presence-check .battle-presence-check-head .button {
  width: auto;
  min-width: 170px;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 15px;
  font-size: 0.74rem;
}

.battle-presence-check .button:disabled {
  cursor: default;
  opacity: 0.58;
}

.battle-presence-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.battle-presence-counts > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.battle-presence-counts small,
.battle-presence-counts strong {
  display: block;
}

.battle-presence-counts small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
}

.battle-presence-counts strong {
  margin-top: 4px;
  color: #eefcfb;
  font-size: 1.55rem;
  line-height: 1;
}

.battle-presence-counts em {
  margin-left: 3px;
  color: var(--muted);
  font-size: 0.62rem;
  font-style: normal;
}

.battle-presence-status,
.battle-presence-note {
  display: block;
  line-height: 1.55;
}

.battle-presence-status {
  min-height: 1.55em;
  margin-top: 11px;
  color: #aeb9c8;
  font-size: 0.69rem;
}

.battle-presence-note {
  margin-top: 4px;
  color: #7f899a;
  font-size: 0.62rem;
}

@keyframes matchingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-8px); opacity: 1; }
}

.hud-player.local-player {
  border-color: rgba(100, 232, 213, 0.24);
}

.online-chat-standalone {
  width: min(720px, 100%);
  margin: 24px auto 0;
}

.online-chat-standalone .chat-panel {
  min-height: 0;
}

@media (max-width: 760px) {
  .image-preference-grid {
    grid-template-columns: 1fr;
  }

  .image-preference-card {
    min-height: 0;
  }

  .online-profile-strip,
  .online-room-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .online-room-strip {
    align-items: center;
  }

  .profile-avatar-setting {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .profile-avatar-actions,
  .profile-avatar-setting > small {
    grid-column: 1 / -1;
  }

  .profile-avatar-actions {
    justify-content: stretch;
  }

  .profile-avatar-actions .button {
    flex: 1;
  }

  .strategy-identity-card.player-2 .battle-avatar.identity-avatar {
    margin-left: 0;
  }

  .hero-actions .button {
    width: 100%;
  }

  .overall-ranking-public-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-x-handle,
  .overall-ranking-public-controls .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .matching-pulse i { animation: none; }
  .training-lights-dots i { animation: none; }
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes critical-hit {
  0% {
    opacity: 0;
    transform: scale(2.2) rotate(-6deg);
  }
  22% {
    opacity: 1;
    transform: scale(0.88) rotate(-3deg);
  }
  40% {
    transform: scale(1) rotate(-3deg);
  }
  78% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(-3deg);
  }
}

@keyframes flash-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes finish-cutin-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes finish-image-in {
  from {
    opacity: 0;
    transform: translateX(-8%) scale(1.08) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(-1.5deg);
  }
}

@keyframes finish-speed-lines {
  from {
    opacity: 0;
    transform: translateX(-18%);
  }
  35% {
    opacity: 1;
  }
  to {
    opacity: 0.65;
    transform: translateX(0);
  }
}

@keyframes signature-label-pulse {
  0% {
    filter: brightness(2);
    transform: scale(1.18);
  }
  42% {
    filter: brightness(1);
    transform: scale(0.97);
  }
  100% {
    filter: brightness(1.08);
    transform: scale(1);
  }
}

@keyframes finish-reply-in {
  from {
    opacity: 0.4;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes finish-reply-seal {
  from {
    opacity: 0;
    transform: translateY(-50%) rotate(-22deg) scale(1.8);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) rotate(-8deg) scale(1);
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 42px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-card {
    max-width: 760px;
  }

  .setup-layout,
  .battle-layout {
    grid-template-columns: 1fr;
  }

  .setup-guide {
    display: none;
  }

  .chat-panel {
    min-height: 410px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rating-class-guide ol {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header,
  .site-footer,
  #app {
    width: min(100% - 28px, 1440px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .brand small,
  .privacy-badge {
    display: none;
  }

  #app {
    min-height: calc(100vh - 122px);
    padding-top: 26px;
  }

  .site-footer {
    min-height: 50px;
    justify-content: center;
    text-align: center;
  }

  .site-footer span:last-child {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 18px 38px;
    gap: 42px;
  }

  .hero::before {
    top: -120px;
    left: -180px;
    width: 720px;
    height: 620px;
  }

  .hero-eyebrow {
    max-width: 100%;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }

  .hero-welcome {
    align-items: flex-start;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .hero-assurances {
    gap: 6px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .training-lights-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    padding: 17px 15px;
  }

  .training-lights-visual {
    min-width: 82px;
  }

  .training-lights-start {
    width: 100%;
    grid-column: 1 / -1;
  }

  .hero-mode-button,
  .hero-utility-button,
  .hero-audio-tool-button {
    grid-column: 1;
  }

  .hero-mode-button {
    min-height: 66px;
  }

  .landing-flea {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }

  .landing-flea-mark {
    min-height: 72px;
  }

  .landing-flea-actions .button {
    width: 100%;
  }

  .audio-studio-card {
    padding: 23px 16px 18px;
  }

  .audio-studio-heading {
    padding-right: 34px;
  }

  .audio-studio-recorder {
    padding: 16px 13px;
  }

  .audio-studio-actions .button,
  .audio-studio-result-actions .button {
    width: 100%;
  }

  .audio-studio-result {
    padding: 16px 13px;
  }

  .audio-studio-result-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .audio-studio-result-meta {
    grid-template-columns: 1fr;
  }

  .community-message-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .community-message-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .community-message-controls {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .community-message-state {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mode-lobby-stats {
    grid-template-columns: 1fr;
  }

  .lobby-mode-card {
    min-height: 0;
  }

  .ranking-jump-nav {
    top: 4px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 9px;
  }

  .ranking-jump-nav > span {
    display: none;
  }

  .ranking-jump-nav > div {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ranking-jump-nav button {
    min-height: 40px;
    padding-inline: 5px;
    font-size: 0.64rem;
  }

  .ranking-overall-section,
  .rate-floor-section,
  .ranking-circuit-section {
    scroll-margin-top: 126px;
  }

  .ranking-board-head,
  .ranking-circuit-head,
  .ranking-dashboard-head,
  .crown-proof-head {
    align-items: flex-start;
  }

  .ranking-board-head,
  .ranking-circuit-head {
    flex-direction: column;
    gap: 6px;
  }

  .ranking-board-head p,
  .ranking-circuit-head p {
    text-align: left;
  }

  .ranking-dashboard {
    padding: 14px 12px;
  }

  .ranking-dashboard-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-dashboard-summary > p {
    grid-column: 1 / -1;
    min-height: 48px;
  }

  .ranking-neighbor-list {
    grid-template-columns: 1fr;
  }

  .crown-proof-panel {
    padding: 13px 11px;
  }

  .crown-proof-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crown-run-mode-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crown-run-complete {
    align-items: flex-start;
    flex-direction: column;
  }

  .crown-customization {
    grid-template-columns: 1fr;
    padding: 13px 11px;
  }

  .crown-customization-controls {
    grid-template-columns: 1fr;
  }

  .crown-spotlight {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px 13px;
  }

  .crown-spotlight .ranking-x-link.is-featured {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .ranking-row {
    grid-template-columns: 38px minmax(0, 1fr) 76px;
    gap: 9px;
    padding: 11px 12px;
  }

  .rate-floor-entry {
    grid-template-columns: 72px minmax(0, 1fr) 76px;
    gap: 9px;
    min-height: 68px;
    padding: 11px 12px;
  }

  .rate-floor-position {
    font-size: 0.72rem;
  }

  .rate-floor-rating strong {
    font-size: 1.2rem;
  }

  .ranking-period-tabs {
    gap: 4px;
  }

  .ranking-period-tabs button {
    min-height: 39px;
    padding-inline: 4px;
    font-size: 0.7rem;
  }

  .ranking-week-history-picker {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
  }

  .ranking-week-history-picker select {
    width: 100%;
    min-width: 0;
  }

  .ranking-period-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ranking-trust-notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ranking-awards-panel {
    grid-template-columns: 1fr;
  }

  .ranking-hall-of-fame {
    grid-template-columns: 1fr;
  }

  .ranking-hall-of-fame ol {
    grid-template-columns: 1fr;
  }

  .ranking-awards-panel ul {
    grid-template-columns: 1fr;
  }

  .overall-ranking-panel {
    grid-template-columns: 1fr;
  }

  .rate-floor-participation {
    grid-template-columns: 1fr;
  }

  .rate-floor-participation-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .rate-floor-participation-control {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .rate-floor-participation-control .button {
    flex: 1 1 190px;
  }

  .overall-ranking-copy {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .overall-ranking-copy .eyebrow {
    max-width: none;
  }

  .overall-ranking-control,
  .overall-ranking-public-controls {
    justify-content: space-between;
  }

  .overall-ranking-settings summary {
    align-items: flex-start;
  }

  .overall-ranking-public-controls .ranking-x-handle {
    width: 100%;
  }

  .ranking-record {
    grid-column: 2 / 3;
    align-items: flex-start;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .ranking-mode-points {
    justify-content: flex-start;
  }

  .ranking-overall-rate {
    justify-content: flex-start;
  }

  .rating-class-guide summary {
    gap: 9px;
    padding-inline: 12px;
  }

  .rating-class-guide summary em {
    font-size: 0.6rem;
  }

  .rating-class-guide > p {
    margin-inline: 12px;
  }

  .rating-class-guide ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 12px;
  }

  .ranking-comment-toggle {
    grid-column: 3;
    min-width: 0;
    padding-inline: 7px;
  }

  .ranking-comments-panel {
    padding: 14px 12px 16px;
  }

  .ranking-comment-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-comment-form .button {
    width: 100%;
  }

  .ranking-rating strong {
    font-size: 1.3rem;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 17vw, 5.4rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  .mission-grid,
  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-title-filters {
    flex-wrap: nowrap;
    margin-inline: -2px;
    padding: 2px 2px 7px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .shop-title-filter {
    flex: 0 0 auto;
  }

  .shop-title-group > summary {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .shop-title-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .shop-title-group > .shop-grid {
    padding: 0 10px 10px;
  }

  .shop-category-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .shop-category-head p {
    text-align: left;
  }

  .shop-loadout-summary {
    justify-content: stretch;
  }

  .shop-loadout-summary span {
    flex: 1 1 100%;
  }

  .top-message-composer {
    padding: 18px 15px;
  }

  .top-message-composer form {
    grid-template-columns: 1fr;
  }

  .top-message-composer label:first-of-type,
  .top-message-composer input,
  .top-message-composer label:nth-of-type(2),
  .top-message-composer textarea {
    grid-column: 1;
    grid-row: auto;
  }

  .top-message-composer-foot,
  .top-message-composer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .top-message-composer-actions .button {
    width: 100%;
  }

  .economy-balance {
    width: 100%;
    justify-content: flex-end;
    margin-top: 18px;
  }

  .period-reward-panel {
    padding: 17px 14px;
  }

  .daily-play-reward-panel {
    padding: 17px 14px;
  }

  .daily-play-reward-head {
    align-items: stretch;
    flex-direction: column;
  }

  .daily-play-reward-claim {
    min-width: 0;
    justify-content: space-between;
  }

  .daily-play-reward-details ol {
    grid-template-columns: 1fr;
  }

  .period-reward-head {
    align-items: stretch;
    flex-direction: column;
  }

  .period-reward-claim {
    min-width: 0;
  }

  .period-reward-grid {
    grid-template-columns: 1fr;
  }

  .economy-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .economy-actions .button {
    width: 100%;
  }

  .mission-card-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-card,
  .setup-panel,
  .select-panel,
  .result-card,
  .gameover-card {
    padding: 18px;
    border-radius: 20px;
  }

  .mock-arena {
    grid-template-columns: 1fr 30px 1fr;
    gap: 6px;
  }

  .mock-player {
    min-height: 215px;
    padding: 10px;
  }

  .mock-picture {
    height: 125px;
  }

  .section-head {
    display: block;
  }

  .selection-heading-actions {
    justify-content: space-between;
    margin-top: 16px;
  }

  .selection-heading-actions .button {
    flex: 1;
  }

  .screen-actions {
    margin-top: 18px;
  }

  .deck-toolbar,
  .selection-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .deck-handicap-summary small {
    width: 100%;
    margin-left: 0;
  }

  .upload-actions .button,
  .upload-actions .file-button,
  .setup-actions .button,
  .selection-footer .button {
    width: 100%;
  }

  .crown-monthly-opening {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .crown-monthly-opening-progress {
    text-align: left;
  }

  .crown-monthly-opening-note {
    grid-column: 1;
  }

  .crown-matchmaking-status {
    width: 100%;
    flex-basis: 100%;
  }

  .battle-presence-check {
    padding: 14px;
  }

  .battle-presence-check-head {
    align-items: stretch;
    flex-direction: column;
  }

  .battle-presence-check .battle-presence-check-head .button {
    width: 100%;
    min-width: 0;
  }

  .battle-presence-counts {
    gap: 8px;
  }

  .battle-presence-counts > div {
    padding: 10px;
  }

  .crown-matchmaking-hint {
    text-align: left;
  }

  .deck-grid,
  .select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .deck-group-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .deck-group-heading p {
    text-align: left;
  }

  .round-topbar {
    grid-template-columns: 1fr 70px 1fr;
    gap: 9px;
  }

  .hud-player-main {
    gap: 6px;
  }

  .hud-player .battle-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.72rem;
  }

  .round-badge {
    min-width: 70px;
    padding-inline: 6px;
  }

  .hud-name-row {
    display: block;
    margin-bottom: 6px;
  }

  .hud-player:last-child .hud-name-row {
    text-align: right;
  }

  .streak-badge {
    display: none;
  }

  .arena-grid {
    grid-template-columns: 1fr;
  }

  .arena-vs {
    min-height: 26px;
  }

  .score-layout {
    grid-template-columns: 1fr;
  }

  .score-image {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .score-panel {
    padding: 22px 18px;
  }

  .score-buttons {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }

  .score-button {
    border-radius: 10px;
  }

  .result-scores {
    grid-template-columns: 1fr 34px 1fr;
    gap: 6px;
  }

  .result-player {
    padding: 15px 8px;
  }

  .online-pursuit-call {
    grid-template-columns: 1fr;
  }

  .final-stats {
    grid-template-columns: 1fr;
  }

  .gameover-actions {
    flex-direction: column;
  }

  .gameover-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.achievement-screen {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.achievement-policy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.achievement-policy span {
  border: 1px solid rgba(102, 233, 223, 0.28);
  border-radius: 999px;
  background: rgba(102, 233, 223, 0.07);
  color: #b9f9f4;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 7px 11px;
}

.achievement-reward-code {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 0 20px;
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid rgba(195, 207, 230, 0.34);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% -20%, rgba(75, 234, 255, 0.16), transparent 40%),
    radial-gradient(circle at 4% 120%, rgba(255, 66, 176, 0.16), transparent 42%),
    linear-gradient(128deg, rgba(18, 20, 31, 0.98), rgba(31, 27, 44, 0.98));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035);
  padding: 20px 22px;
}

.achievement-reward-code::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  pointer-events: none;
}

.achievement-reward-code.is-unlocked {
  border-color: rgba(255, 233, 166, 0.82);
  background:
    radial-gradient(circle at 86% -30%, rgba(255, 226, 117, 0.32), transparent 45%),
    radial-gradient(circle at 3% 118%, rgba(63, 239, 255, 0.3), transparent 42%),
    radial-gradient(circle at 56% 130%, rgba(255, 57, 170, 0.22), transparent 43%),
    linear-gradient(126deg, #11131d 0%, #312345 47%, #321d2c 72%, #191319 100%);
  box-shadow:
    0 20px 54px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(255, 203, 92, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.achievement-reward-code.is-unlocked::after {
  position: absolute;
  z-index: -1;
  content: "";
  top: -105%;
  left: -24%;
  width: 22%;
  height: 310%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: achievement-dollmaster-sheen 4.6s ease-in-out infinite;
  pointer-events: none;
}

.achievement-reward-code-emblem {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(203, 216, 240, 0.35);
  border-radius: 26px;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.18), transparent 22%),
    rgba(255, 255, 255, 0.055);
  color: #aab2c4;
  font-size: 2rem;
  font-weight: 1000;
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.is-unlocked .achievement-reward-code-emblem {
  border-color: rgba(255, 244, 195, 0.92);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.66), transparent 16%),
    conic-gradient(from 205deg, #58eff3, #8172ff, #ff4eaf, #ffd666, #58eff3);
  color: #fff9dd;
  box-shadow:
    0 0 25px rgba(255, 206, 91, 0.3),
    inset 0 0 22px rgba(30, 15, 44, 0.45);
  text-shadow: 0 3px 9px rgba(22, 11, 36, 0.75);
}

.achievement-reward-code-copy {
  min-width: 0;
}

.achievement-reward-code-kicker {
  display: block;
  color: #7beaf2;
  font-size: 0.65rem;
  font-weight: 1000;
  letter-spacing: 0.2em;
}

.achievement-reward-code-copy h2 {
  margin: 4px 0 7px;
  color: #f7f8fc;
  font-size: clamp(1.2rem, 3vw, 1.72rem);
}

.achievement-reward-code.is-unlocked h2 {
  width: fit-content;
  background: linear-gradient(90deg, #fff7c9, #76f5f5 34%, #ff8bc7 68%, #ffe08c);
  background-clip: text;
  color: transparent;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  letter-spacing: 0.055em;
  filter: drop-shadow(0 2px 9px rgba(255, 194, 92, 0.18));
}

.achievement-reward-code-copy > p {
  margin: 0;
  color: #b8c0d1;
  font-size: 0.82rem;
  line-height: 1.55;
}

.achievement-reward-code-copy > b {
  display: block;
  width: fit-content;
  margin-top: 10px;
  border: 1px solid rgba(255, 231, 151, 0.52);
  border-radius: 999px;
  background: rgba(255, 220, 119, 0.1);
  color: #ffe6a1;
  padding: 5px 10px;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.achievement-reward-code-copy > b span {
  color: #6ff3f0;
}

.achievement-reward-code-form {
  grid-column: 2;
  margin-top: 14px;
}

.achievement-reward-code-form > label {
  display: block;
  margin-bottom: 6px;
  color: #d4d9e5;
  font-size: 0.72rem;
  font-weight: 900;
}

.achievement-reward-code-form > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(190px, auto);
  gap: 9px;
  max-width: 520px;
}

.achievement-reward-code-form input {
  min-width: 0;
  height: 46px;
  border: 1px solid rgba(126, 237, 242, 0.38);
  border-radius: 12px;
  outline: none;
  background: rgba(4, 8, 17, 0.58);
  color: #fff4c7;
  padding: 0 14px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.achievement-reward-code-form input:focus-visible {
  border-color: #7cf1ef;
  box-shadow: 0 0 0 3px rgba(91, 235, 235, 0.14);
}

.achievement-reward-code-form .button {
  min-height: 46px;
}

.achievement-reward-code-form > p {
  margin: 7px 0 0;
  color: #8994a9;
  font-size: 0.7rem;
  line-height: 1.45;
}

.achievement-reward-code-form > p.achievement-reward-code-error {
  color: #ff9fb6;
  font-weight: 800;
}

.achievement-loading {
  position: sticky;
  top: 74px;
  z-index: 8;
  width: fit-content;
  margin: 0 auto 14px;
  border: 1px solid rgba(255, 215, 126, 0.42);
  border-radius: 999px;
  background: rgba(20, 17, 23, 0.94);
  color: #ffe2a6;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.34);
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
}

.achievement-summary {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 12px;
}

.achievement-summary > div {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 94, 125, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.035);
  padding: 17px 18px;
}

.achievement-summary > div > span {
  display: block;
  margin-bottom: 8px;
  color: #9da8bf;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.achievement-summary strong {
  color: #fff;
  font-family: "Arial Narrow", "Yu Gothic", sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.achievement-summary strong small {
  color: #79849c;
  font-size: 0.4em;
}

.achievement-summary em {
  color: #7f899f;
  font-size: 0.82rem;
  font-style: normal;
}

.achievement-showcase-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  border-left: 3px solid #ff5d7e;
  background: rgba(255, 93, 126, 0.07);
  padding: 11px 13px;
}

.achievement-showcase-guide p {
  margin: 0;
  color: #b9c1d1;
  font-size: 0.82rem;
}

.achievement-category {
  margin-top: 24px;
}

.achievement-category-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.achievement-category-head span {
  color: #67e9df;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.achievement-category-head h2 {
  margin: 3px 0 0;
  color: #f4f6fb;
  font-size: 1.18rem;
}

.achievement-category-head p {
  max-width: 520px;
  margin: 0;
  color: #8e98ad;
  font-size: 0.76rem;
  text-align: right;
}

.achievement-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.achievement-family-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.028);
  padding: 13px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.achievement-family-card.is-unlocked {
  border-color: rgba(255, 214, 125, 0.2);
  background:
    linear-gradient(115deg, rgba(255, 215, 126, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.achievement-family-card.is-secret {
  border-color: rgba(155, 133, 219, 0.2);
  background:
    radial-gradient(circle at 92% 4%, rgba(119, 91, 190, 0.1), transparent 38%),
    linear-gradient(128deg, rgba(22, 20, 34, 0.92), rgba(12, 15, 23, 0.96));
}

.achievement-family-card.is-secret.is-unlocked {
  border-color: rgba(187, 157, 255, 0.62);
  background:
    radial-gradient(circle at 91% -12%, rgba(132, 237, 227, 0.2), transparent 40%),
    radial-gradient(circle at -7% 115%, rgba(194, 124, 255, 0.24), transparent 43%),
    linear-gradient(128deg, rgba(48, 30, 70, 0.97), rgba(19, 19, 34, 0.98) 56%, rgba(35, 31, 52, 0.98));
  box-shadow:
    0 12px 32px rgba(3, 5, 15, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.achievement-family-card.achievement-level-7,
.achievement-family-card.achievement-level-8,
.achievement-family-card.achievement-level-9 {
  border-color: rgba(255, 218, 135, 0.42);
  background:
    radial-gradient(circle at 92% 6%, rgba(112, 229, 220, 0.16), transparent 34%),
    linear-gradient(120deg, rgba(255, 214, 125, 0.13), transparent 55%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 22px rgba(255, 215, 126, 0.055);
}

.achievement-family-card.is-final {
  isolation: isolate;
  border-color: rgba(255, 226, 145, 0.82);
  background:
    radial-gradient(circle at 88% -18%, rgba(255, 235, 158, 0.35), transparent 39%),
    radial-gradient(circle at 4% 112%, rgba(106, 238, 226, 0.23), transparent 42%),
    linear-gradient(128deg, rgba(94, 57, 125, 0.72), rgba(29, 27, 48, 0.97) 46%, rgba(69, 43, 28, 0.94));
  box-shadow:
    0 12px 34px rgba(3, 7, 17, 0.34),
    0 0 24px rgba(255, 211, 105, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.achievement-family-card.is-final::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 4px;
  border: 1px solid rgba(255, 237, 182, 0.34);
  border-radius: 12px;
  pointer-events: none;
}

.achievement-family-card.is-final::after {
  position: absolute;
  z-index: 0;
  content: "";
  top: -90%;
  left: -38%;
  width: 34%;
  height: 280%;
  transform: rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255, 248, 214, 0.2), transparent);
  pointer-events: none;
  animation: achievement-final-sheen 5.8s ease-in-out infinite;
}

.achievement-family-card.is-final > * {
  position: relative;
  z-index: 1;
}

.achievement-family-card.is-dollmaster {
  isolation: isolate;
  border-color: rgba(184, 198, 226, 0.35);
  background:
    radial-gradient(circle at 92% -12%, rgba(80, 234, 248, 0.12), transparent 38%),
    radial-gradient(circle at -8% 114%, rgba(255, 61, 169, 0.1), transparent 42%),
    linear-gradient(126deg, rgba(18, 20, 30, 0.98), rgba(39, 30, 49, 0.96));
}

.achievement-family-card.is-dollmaster.is-unlocked {
  border-color: rgba(255, 235, 171, 0.9);
  background:
    radial-gradient(circle at 88% -22%, rgba(255, 223, 112, 0.34), transparent 40%),
    radial-gradient(circle at 0 118%, rgba(76, 239, 248, 0.3), transparent 42%),
    radial-gradient(circle at 58% 140%, rgba(255, 65, 174, 0.22), transparent 45%),
    linear-gradient(128deg, #11131d, #332348 48%, #351d2d 76%, #181218);
  box-shadow:
    0 15px 42px rgba(1, 3, 12, 0.4),
    0 0 28px rgba(255, 205, 88, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.achievement-family-card.is-dollmaster::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 4px;
  border: 1px solid rgba(235, 241, 255, 0.14);
  border-radius: 12px;
  pointer-events: none;
}

.achievement-family-card.is-dollmaster.is-unlocked::after {
  position: absolute;
  z-index: 0;
  content: "";
  top: -110%;
  left: -32%;
  width: 28%;
  height: 330%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: achievement-dollmaster-sheen 5.2s ease-in-out infinite;
  pointer-events: none;
}

.achievement-family-card.is-dollmaster > * {
  position: relative;
  z-index: 1;
}

.achievement-family-card.is-showcased {
  border-color: rgba(102, 233, 223, 0.55);
  box-shadow: inset 0 0 0 1px rgba(102, 233, 223, 0.12);
}

.achievement-family-card.is-final.is-showcased {
  border-color: rgba(255, 232, 155, 0.94);
  box-shadow:
    0 12px 34px rgba(3, 7, 17, 0.34),
    0 0 26px rgba(255, 211, 105, 0.22),
    inset 0 0 0 2px rgba(102, 233, 223, 0.22);
}

.achievement-family-card.is-locked {
  filter: saturate(0.55);
}

.achievement-family-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 215, 126, 0.28);
  border-radius: 16px;
  background: radial-gradient(circle at 35% 25%, rgba(255, 224, 157, 0.2), rgba(255, 255, 255, 0.03));
  color: #ffe0a2;
  font-size: 1.55rem;
  font-style: normal;
  font-weight: 900;
}

.is-locked .achievement-family-icon {
  border-color: rgba(255, 255, 255, 0.1);
  color: #616a7c;
}

.achievement-family-card.achievement-level-7 .achievement-family-icon,
.achievement-family-card.achievement-level-8 .achievement-family-icon,
.achievement-family-card.achievement-level-9 .achievement-family-icon {
  border-color: rgba(255, 222, 148, 0.58);
  box-shadow: inset 0 0 18px rgba(255, 214, 125, 0.12);
}

.achievement-family-card.is-final .achievement-family-icon {
  border-color: rgba(255, 239, 181, 0.9);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.42), transparent 20%),
    conic-gradient(from 210deg, rgba(105, 235, 224, 0.42), rgba(255, 213, 115, 0.48), rgba(181, 126, 255, 0.42), rgba(105, 235, 224, 0.42));
  color: #fff5cc;
  box-shadow:
    0 0 18px rgba(255, 217, 124, 0.34),
    inset 0 0 18px rgba(255, 255, 255, 0.13);
  text-shadow: 0 2px 7px rgba(15, 8, 24, 0.72);
}

.achievement-family-card.is-dollmaster.is-unlocked .achievement-family-icon {
  border-color: rgba(255, 245, 203, 0.94);
  background:
    radial-gradient(circle at 33% 25%, rgba(255, 255, 255, 0.68), transparent 17%),
    conic-gradient(from 205deg, #5cecf1, #7a78ff, #ff4eac, #ffd665, #5cecf1);
  color: #fff9dd;
  box-shadow:
    0 0 22px rgba(255, 212, 104, 0.35),
    inset 0 0 20px rgba(30, 13, 42, 0.42);
  text-shadow: 0 3px 8px rgba(22, 10, 34, 0.74);
}

.achievement-family-card.is-secret.is-unlocked .achievement-family-icon {
  border-color: rgba(211, 183, 255, 0.82);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.44), transparent 19%),
    conic-gradient(from 220deg, rgba(104, 234, 225, 0.62), rgba(140, 97, 214, 0.78), rgba(239, 183, 119, 0.64), rgba(104, 234, 225, 0.62));
  color: #fff3d5;
  box-shadow: 0 0 18px rgba(169, 126, 237, 0.28);
  text-shadow: 0 2px 7px rgba(18, 9, 28, 0.72);
}

.achievement-family-copy {
  min-width: 0;
}

.achievement-family-copy > span {
  color: #8f99ad;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.achievement-family-copy h3 {
  margin: 3px 0 5px;
  color: #fff;
  font-size: 0.98rem;
}

.achievement-family-copy p {
  margin: 0 0 6px;
  color: #aeb6c6;
  font-size: 0.73rem;
  line-height: 1.45;
}

.achievement-family-copy small {
  color: #737e94;
  font-size: 0.66rem;
}

.achievement-family-card.is-final .achievement-family-copy > span,
.achievement-family-card.is-final .achievement-family-copy small {
  color: #f8df9b;
}

.achievement-final-mark {
  display: block;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(255, 232, 159, 0.48);
  border-radius: 999px;
  background: rgba(255, 225, 137, 0.1);
  color: #ffe9a9;
  padding: 4px 8px;
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  line-height: 1;
  text-shadow: 0 1px 7px rgba(255, 207, 88, 0.26);
}

.achievement-final-mark span {
  color: #79eee4;
}

.achievement-dollmaster-mark {
  display: block;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(255, 232, 157, 0.58);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(78, 239, 239, 0.1), rgba(255, 72, 171, 0.12), rgba(255, 215, 98, 0.11));
  color: #fff0b0;
  padding: 4px 9px;
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(255, 206, 84, 0.28);
}

.achievement-dollmaster-mark span {
  color: #71f3ef;
}

.achievement-secret-mark {
  display: block;
  width: fit-content;
  margin-top: 8px;
  border: 1px solid rgba(205, 175, 255, 0.52);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(151, 103, 222, 0.15), rgba(87, 221, 213, 0.1));
  color: #e7d4ff;
  padding: 4px 9px;
  font-size: 0.58rem;
  font-weight: 1000;
  letter-spacing: 0.13em;
  line-height: 1;
}

.achievement-secret-mark span {
  color: #7cf1e8;
}

.achievement-showcase-toggle {
  align-self: stretch;
  min-width: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #aeb6c6;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.achievement-showcase-toggle:hover,
.achievement-showcase-toggle:focus-visible {
  border-color: rgba(102, 233, 223, 0.55);
  color: #d1fffb;
}

.achievement-showcase-toggle.is-selected {
  border-color: rgba(102, 233, 223, 0.52);
  background: rgba(102, 233, 223, 0.12);
  color: #aafff8;
}

.achievement-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.achievement-badge {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255, 215, 126, 0.24);
  border-radius: 999px;
  background: rgba(255, 215, 126, 0.07);
  color: #ffe4ad;
  padding: 5px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.achievement-badge.achievement-scope-market {
  border-color: rgba(102, 233, 223, 0.3);
  background: rgba(102, 233, 223, 0.08);
  color: #adfff8;
}

.achievement-badge.achievement-scope-flea {
  border-color: rgba(255, 145, 185, 0.38);
  background:
    linear-gradient(120deg, rgba(255, 125, 174, 0.11), rgba(106, 235, 224, 0.08));
  color: #ffd2e2;
}

.achievement-badge.achievement-level-7,
.achievement-badge.achievement-level-8,
.achievement-badge.achievement-level-9 {
  border-color: rgba(255, 222, 145, 0.5);
  box-shadow: inset 0 0 12px rgba(255, 220, 138, 0.08);
}

.achievement-badge.is-final {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 232, 155, 0.86);
  background:
    linear-gradient(110deg, rgba(108, 226, 218, 0.2), rgba(116, 70, 146, 0.42) 42%, rgba(255, 199, 84, 0.22));
  color: #fff0b8;
  box-shadow:
    0 0 14px rgba(255, 210, 103, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.11);
}

.achievement-badge.is-final::before {
  content: "✦";
  color: #7bf3e8;
  font-size: 0.58rem;
}

.achievement-badge.is-final small {
  font-weight: 1000;
  letter-spacing: 0.04em;
  opacity: 1;
}

.achievement-badge.is-dollmaster {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 235, 169, 0.88);
  background:
    radial-gradient(circle at 12% 10%, rgba(91, 238, 241, 0.28), transparent 40%),
    linear-gradient(110deg, rgba(65, 42, 92, 0.95), rgba(141, 49, 105, 0.76) 56%, rgba(111, 77, 31, 0.82));
  color: #fff0bd;
  box-shadow:
    0 0 16px rgba(255, 208, 91, 0.24),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.achievement-badge.is-dollmaster::before {
  content: "✦";
  color: #74f4f0;
  font-size: 0.58rem;
}

.achievement-badge.is-dollmaster small {
  font-weight: 1000;
  letter-spacing: 0.06em;
  opacity: 1;
}

.achievement-badge.is-secret {
  border-color: rgba(206, 175, 255, 0.66);
  background:
    radial-gradient(circle at 10% 12%, rgba(104, 235, 226, 0.2), transparent 45%),
    linear-gradient(110deg, rgba(67, 43, 91, 0.94), rgba(36, 30, 58, 0.94));
  color: #ead9ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.achievement-badge.is-secret::before {
  content: "✦";
  color: #76eee5;
  font-size: 0.58rem;
}

.achievement-badge.is-secret small {
  color: #bffaf4;
  font-weight: 1000;
  letter-spacing: 0.06em;
  opacity: 1;
}

.achievement-badge i {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.7rem;
  font-style: normal;
}

.achievement-badge > span {
  max-width: 122px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.achievement-badge small {
  color: currentColor;
  font-size: 0.58rem;
  opacity: 0.7;
}

.ranking-player .achievement-badges {
  margin-top: 5px;
}

.ranking-player .achievement-badge {
  padding: 3px 6px;
}

.ranking-player .achievement-badge > span {
  max-width: 76px;
}

.market-ranking-entry-main > .achievement-badges {
  margin-top: 7px;
}

.achievement-unlock-layer {
  position: fixed;
  z-index: 10020;
  left: 50%;
  bottom: 24px;
  width: min(520px, calc(100vw - 24px));
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 24px);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.achievement-unlock-layer.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.achievement-unlock-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 217, 130, 0.55);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0, rgba(102, 233, 223, 0.2), transparent 42%),
    linear-gradient(135deg, rgba(37, 30, 35, 0.98), rgba(13, 16, 24, 0.98));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.5);
  padding: 15px 17px;
}

.achievement-unlock-card.achievement-level-7,
.achievement-unlock-card.achievement-level-8,
.achievement-unlock-card.achievement-level-9 {
  border-color: rgba(255, 226, 150, 0.76);
  box-shadow:
    0 22px 65px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 215, 126, 0.15);
}

.achievement-unlock-card.is-final {
  isolation: isolate;
  border: 2px solid rgba(255, 236, 167, 0.94);
  background:
    radial-gradient(circle at 88% -12%, rgba(255, 231, 145, 0.42), transparent 40%),
    radial-gradient(circle at 4% 116%, rgba(95, 239, 227, 0.28), transparent 42%),
    linear-gradient(128deg, rgba(99, 56, 131, 0.98), rgba(23, 22, 39, 0.99) 49%, rgba(78, 48, 28, 0.99));
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.58),
    0 0 38px rgba(255, 207, 89, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.17);
  padding: 18px 20px;
}

.achievement-unlock-card.is-final::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 5px;
  border: 1px solid rgba(255, 240, 190, 0.35);
  border-radius: 14px;
}

.achievement-unlock-card.is-final::after {
  position: absolute;
  z-index: 0;
  content: "";
  top: -120%;
  left: -28%;
  width: 26%;
  height: 340%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 250, 223, 0.26), transparent);
  animation: achievement-final-sheen 4.8s ease-in-out infinite;
}

.achievement-unlock-card.is-final > * {
  position: relative;
  z-index: 1;
}

.achievement-unlock-card.is-secret {
  isolation: isolate;
  border: 2px solid rgba(207, 177, 255, 0.86);
  background:
    radial-gradient(circle at 91% -18%, rgba(99, 235, 225, 0.28), transparent 43%),
    radial-gradient(circle at -5% 120%, rgba(186, 110, 255, 0.32), transparent 46%),
    linear-gradient(128deg, rgba(62, 34, 86, 0.99), rgba(18, 19, 34, 0.99) 57%, rgba(42, 33, 57, 0.99));
  box-shadow:
    0 26px 78px rgba(0, 0, 0, 0.58),
    0 0 34px rgba(160, 112, 229, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
}

.achievement-unlock-card.is-secret::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 5px;
  border: 1px solid rgba(225, 207, 255, 0.25);
  border-radius: 14px;
  pointer-events: none;
}

.achievement-unlock-card.is-secret > * {
  position: relative;
  z-index: 1;
}

.achievement-unlock-card.is-dollmaster {
  isolation: isolate;
  border: 2px solid rgba(255, 239, 179, 0.96);
  background:
    radial-gradient(circle at 90% -20%, rgba(255, 224, 112, 0.44), transparent 42%),
    radial-gradient(circle at 0 122%, rgba(70, 240, 248, 0.35), transparent 43%),
    radial-gradient(circle at 58% 140%, rgba(255, 64, 172, 0.3), transparent 47%),
    linear-gradient(126deg, #10121c 0%, #35234a 45%, #3a1d31 73%, #181218 100%);
  box-shadow:
    0 30px 88px rgba(0, 0, 0, 0.66),
    0 0 46px rgba(255, 203, 82, 0.36),
    0 0 72px rgba(91, 232, 241, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  padding: 20px 22px;
}

.achievement-unlock-card.is-dollmaster::before {
  position: absolute;
  z-index: 0;
  content: "";
  inset: 5px;
  border: 1px solid rgba(255, 247, 213, 0.44);
  border-radius: 14px;
  background-image:
    radial-gradient(circle at 7% 24%, rgba(255, 255, 255, 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 88% 65%, rgba(118, 246, 242, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 13%, rgba(255, 157, 205, 0.75) 0 1px, transparent 2px);
  pointer-events: none;
}

.achievement-unlock-card.is-dollmaster::after {
  position: absolute;
  z-index: 0;
  content: "";
  top: -125%;
  left: -26%;
  width: 25%;
  height: 360%;
  transform: rotate(25deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  animation: achievement-dollmaster-sheen 4s ease-in-out infinite;
}

.achievement-unlock-card.is-dollmaster > * {
  position: relative;
  z-index: 1;
}

.achievement-unlock-card.is-dollmaster .achievement-unlock-kicker {
  color: #fff0b0;
  text-shadow:
    0 0 12px rgba(255, 207, 81, 0.38),
    0 0 20px rgba(88, 236, 240, 0.22);
}

.achievement-unlock-card.is-dollmaster > div > i {
  border-color: rgba(255, 247, 205, 0.95);
  background:
    radial-gradient(circle at 33% 25%, rgba(255, 255, 255, 0.68), transparent 17%),
    conic-gradient(from 205deg, #5cecf1, #7a78ff, #ff4eac, #ffd665, #5cecf1);
  color: #fff9dd;
  box-shadow:
    0 0 24px rgba(255, 210, 98, 0.36),
    inset 0 0 20px rgba(28, 12, 40, 0.43);
  text-shadow: 0 3px 8px rgba(22, 10, 34, 0.72);
}

.achievement-unlock-card.is-dollmaster strong {
  width: fit-content;
  background: linear-gradient(90deg, #fff6c8, #78f6f3 38%, #ff8dc8 72%, #ffe08c);
  background-clip: text;
  color: transparent;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  letter-spacing: 0.045em;
}

.achievement-unlock-kicker {
  display: block;
  margin-bottom: 10px;
  color: #67e9df;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.achievement-unlock-card.is-final .achievement-unlock-kicker {
  color: #ffe5a0;
  text-shadow: 0 0 12px rgba(255, 208, 91, 0.3);
}

.achievement-unlock-card.is-secret .achievement-unlock-kicker {
  color: #c9fff9;
  text-shadow: 0 0 12px rgba(102, 233, 223, 0.3);
}

.achievement-unlock-card.is-secret > div > i {
  border-color: rgba(218, 193, 255, 0.88);
  background: linear-gradient(145deg, rgba(126, 87, 190, 0.78), rgba(78, 217, 207, 0.34));
  color: #fff2d2;
  box-shadow: 0 0 20px rgba(167, 120, 235, 0.28);
}

.achievement-unlock-card > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.achievement-unlock-card > div > i {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 215, 126, 0.45);
  border-radius: 16px;
  background: rgba(255, 215, 126, 0.11);
  color: #ffe0a2;
  font-size: 1.5rem;
  font-style: normal;
}

.achievement-unlock-card strong,
.achievement-unlock-card small {
  display: block;
}

.achievement-unlock-card strong {
  color: #fff;
  font-size: 1.05rem;
}

.achievement-unlock-card small {
  margin-top: 4px;
  color: #b1b9c9;
  font-size: 0.74rem;
  line-height: 1.45;
}

.achievement-unlock-card p {
  margin: 9px 0 0 66px;
  color: #ffe0a2;
  font-size: 0.72rem;
  font-weight: 800;
}

.achievement-unlock-final {
  display: block;
  width: fit-content;
  margin: 11px 0 0 66px;
  border: 1px solid rgba(255, 232, 158, 0.52);
  border-radius: 999px;
  background: rgba(255, 221, 124, 0.1);
  color: #ffe8a6;
  padding: 5px 10px;
  font-size: 0.65rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
}

.achievement-unlock-final span {
  color: #78f1e6;
}

.achievement-unlock-secret {
  display: block;
  width: fit-content;
  margin: 11px 0 0 66px;
  border: 1px solid rgba(211, 185, 255, 0.56);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(150, 101, 222, 0.17), rgba(78, 222, 212, 0.11));
  color: #ead8ff;
  padding: 5px 10px;
  font-size: 0.65rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
}

.achievement-unlock-secret span {
  color: #7af1e7;
}

.achievement-unlock-dollmaster {
  display: block;
  width: fit-content;
  margin: 12px 0 0 66px;
  border: 1px solid rgba(255, 235, 163, 0.62);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(73, 235, 239, 0.12), rgba(255, 69, 170, 0.14), rgba(255, 218, 104, 0.12));
  color: #fff0b2;
  padding: 6px 11px;
  font-size: 0.64rem;
  font-weight: 1000;
  letter-spacing: 0.1em;
}

.achievement-unlock-dollmaster span {
  color: #70f4f0;
}

@keyframes achievement-final-sheen {
  0%,
  24% {
    left: -38%;
    opacity: 0;
  }

  38% {
    opacity: 1;
  }

  58%,
  100% {
    left: 118%;
    opacity: 0;
  }
}

@keyframes achievement-dollmaster-sheen {
  0%,
  18% {
    left: -32%;
    opacity: 0;
  }

  34% {
    opacity: 1;
  }

  56%,
  100% {
    left: 118%;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .achievement-family-card.is-final::after,
  .achievement-unlock-card.is-final::after,
  .achievement-reward-code.is-unlocked::after,
  .achievement-family-card.is-dollmaster::after,
  .achievement-unlock-card.is-dollmaster::after {
    animation: none;
  }
}

@media (max-width: 760px) {
  .achievement-summary,
  .achievement-family-grid {
    grid-template-columns: 1fr;
  }

  .achievement-reward-code {
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    border-radius: 18px;
    padding: 16px;
  }

  .achievement-reward-code-emblem {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 1.45rem;
  }

  .achievement-reward-code-form {
    grid-column: 1 / -1;
  }

  .achievement-reward-code-form > div {
    grid-template-columns: 1fr;
  }

  .achievement-reward-code-form input,
  .achievement-reward-code-form .button {
    min-height: 48px;
  }

  .achievement-category-head {
    display: block;
  }

  .achievement-category-head p {
    margin-top: 6px;
    text-align: left;
  }

  .achievement-family-card {
    grid-template-columns: 50px minmax(0, 1fr);
    min-height: 106px;
  }

  .achievement-family-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
  }

  .achievement-showcase-toggle {
    grid-column: 1 / -1;
    min-height: 36px;
  }

  .achievement-showcase-guide {
    align-items: stretch;
    flex-direction: column;
  }

  .ranking-player .achievement-badge > span,
  .ranking-player .achievement-badge small {
    display: none;
  }

  .achievement-unlock-layer {
    bottom: 12px;
  }

  .achievement-unlock-final,
  .achievement-unlock-secret,
  .achievement-unlock-dollmaster,
  .achievement-unlock-card p {
    margin-left: 0;
  }

  .achievement-unlock-card.is-dollmaster {
    padding: 18px 17px;
  }
}

@media (max-width: 760px) {
  .finish-line-heading,
  .finish-result-badge {
    align-items: flex-start;
    flex-direction: column;
  }

  .signature-card-guide {
    align-items: flex-start;
  }

  .finish-cutin {
    height: 100%;
    min-height: 0;
    border-radius: 18px;
  }

  .finish-cutin-stage {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.35fr) auto;
    gap: 16px;
    padding: 20px;
    padding-bottom: 78px;
  }

  .finish-cutin-image-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    transform: none;
  }

  .finish-cutin-copy {
    gap: 7px;
  }

  .finish-cutin-winner {
    font-size: clamp(1.35rem, 7vw, 2.2rem);
  }

  .finish-cutin-line {
    margin-top: 4px;
    padding-block: 9px;
    font-size: clamp(1rem, 4.8vw, 1.45rem);
  }

  .finish-cutin-skip {
    right: 18px;
    bottom: 16px;
    min-width: 142px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .finish-cutin {
    height: 100%;
    min-height: 0;
  }

  .finish-cutin-stage {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    grid-template-rows: 1fr;
    gap: 18px;
    padding: 18px 22px 66px;
  }

  .finish-cutin-copy {
    gap: 6px;
  }

  .finish-cutin-line {
    margin-top: 3px;
    padding-block: 8px;
    font-size: clamp(0.9rem, 3vw, 1.3rem);
  }

  .finish-cutin-skip {
    right: 18px;
    bottom: 10px;
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .finish-cutin,
  .finish-cutin::after,
  .finish-cutin-image-frame,
  .finish-cutin.is-signature .finish-cutin-label,
  .finish-reply-panel.is-acknowledged,
  .finish-reply-seal {
    animation: none;
  }

  .finish-cutin-image-frame {
    transform: none;
  }
}
/* Point-shop chat cosmetics */
.shop-special-category {
  padding: 22px;
  border: 1px solid rgba(244, 201, 107, 0.22);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(50, 34, 69, 0.28), rgba(13, 16, 27, 0.82));
}

.shop-chat-cosmetic-preview {
  display: grid;
  gap: 6px;
  min-height: 84px;
  margin: 12px 0 17px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(5, 8, 15, 0.72);
}

.shop-chat-cosmetic-preview > span {
  color: #858da0;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.shop-card .shop-chat-cosmetic-preview > p {
  min-height: 0;
  flex: none;
  justify-self: start;
  margin: 0;
  padding: 9px 12px;
  font-size: 0.75rem;
  line-height: 1.45;
}

.chat-cosmetic-bubble {
  --chat-surface: rgba(30, 34, 48, 0.98);
  --chat-text: #f7f8ff;
  --chat-border: rgba(255, 255, 255, 0.2);
  --chat-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
  --chat-border-width: 1px;
  --chat-border-style: solid;
  --chat-radius: 13px;
}

.chat-message p.chat-cosmetic-bubble,
.chat-message .chat-stamp-bubble.chat-cosmetic-bubble,
.shop-chat-cosmetic-preview p.chat-cosmetic-bubble {
  position: relative;
  isolation: isolate;
  color: var(--chat-text);
  border: var(--chat-border-width) var(--chat-border-style) var(--chat-border);
  border-radius: var(--chat-radius);
  background: var(--chat-surface);
  box-shadow: var(--chat-shadow);
}

.chat-message .chat-stamp-bubble.chat-cosmetic-bubble > span {
  color: var(--chat-text);
}

.chat-message p.chat-cosmetic-bubble::after,
.chat-message .chat-stamp-bubble.chat-cosmetic-bubble::after,
.shop-chat-cosmetic-preview p.chat-cosmetic-bubble::after {
  position: absolute;
  z-index: 2;
  right: -7px;
  top: -11px;
  display: grid;
  min-width: 20px;
  min-height: 20px;
  place-items: center;
  color: var(--chat-charm-color, #fff);
  font-size: 0.82rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.chat-bg-sakura-milk { --chat-surface: linear-gradient(135deg, rgba(255, 190, 210, 0.94), rgba(255, 232, 238, 0.96)); --chat-text: #5c2638; }
.chat-bg-peach-fizz { --chat-surface: linear-gradient(135deg, rgba(255, 171, 149, 0.95), rgba(255, 219, 179, 0.96)); --chat-text: #542a24; }
.chat-bg-lavender-mist { --chat-surface: linear-gradient(135deg, rgba(137, 112, 190, 0.95), rgba(199, 179, 229, 0.94)); --chat-text: #fff; }
.chat-bg-aqua-glass { --chat-surface: linear-gradient(135deg, rgba(45, 139, 161, 0.95), rgba(100, 211, 212, 0.88)); --chat-text: #f4ffff; }
.chat-bg-mint-soda { --chat-surface: linear-gradient(135deg, rgba(70, 155, 129, 0.95), rgba(159, 225, 191, 0.9)); --chat-text: #f5fffb; }
.chat-bg-honey-cream { --chat-surface: linear-gradient(135deg, rgba(219, 163, 67, 0.95), rgba(255, 229, 158, 0.96)); --chat-text: #4a3212; }
.chat-bg-sunset { --chat-surface: linear-gradient(135deg, rgba(189, 62, 91, 0.96), rgba(102, 62, 154, 0.94)); --chat-text: #fff6fb; }
.chat-bg-berry { --chat-surface: linear-gradient(135deg, rgba(119, 30, 87, 0.96), rgba(205, 70, 133, 0.94)); --chat-text: #fff5fb; }
.chat-bg-ocean { --chat-surface: linear-gradient(135deg, rgba(8, 53, 98, 0.98), rgba(13, 117, 153, 0.94)); --chat-text: #effcff; }
.chat-bg-forest { --chat-surface: linear-gradient(135deg, rgba(22, 67, 50, 0.98), rgba(47, 119, 73, 0.94)); --chat-text: #f1fff5; }
.chat-bg-midnight { --chat-surface: linear-gradient(135deg, rgba(12, 18, 42, 0.99), rgba(35, 43, 86, 0.96)); --chat-text: #f4f5ff; }
.chat-bg-coffee { --chat-surface: linear-gradient(135deg, rgba(65, 39, 31, 0.98), rgba(126, 78, 56, 0.95)); --chat-text: #fff7ef; }
.chat-bg-monochrome { --chat-surface: linear-gradient(135deg, rgba(28, 29, 34, 0.99), rgba(91, 94, 103, 0.95)); --chat-text: #fff; }
.chat-bg-galaxy { --chat-surface: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px), radial-gradient(circle at 78% 65%, rgba(122, 239, 255, 0.62) 0 1px, transparent 2px), linear-gradient(135deg, #24114f, #163f73 58%, #632975); --chat-text: #fff; }
.chat-bg-hologram { --chat-surface: linear-gradient(120deg, rgba(88, 216, 232, 0.92), rgba(194, 125, 234, 0.9) 35%, rgba(246, 159, 189, 0.9) 68%, rgba(111, 226, 190, 0.92)); --chat-text: #241b3b; }
.chat-bg-manga-paper { --chat-surface: radial-gradient(circle, rgba(45, 45, 45, 0.24) 0 1px, transparent 1.2px) 0 0 / 5px 5px, linear-gradient(#f5f3e8, #dedbd0); --chat-text: #202025; }

.chat-frame-heart-ribbon { --chat-border: #ff7fa6; --chat-border-width: 2px; --chat-shadow: 0 0 0 2px rgba(255, 159, 188, 0.16), 0 8px 22px rgba(255, 75, 133, 0.2); --chat-radius: 16px 16px 16px 7px; --chat-charm-color: #ff8eb2; }
.chat-frame-heart-ribbon::after { content: "♥"; }
.chat-frame-lace { --chat-border: rgba(255, 255, 255, 0.86); --chat-border-width: 3px; --chat-border-style: double; --chat-shadow: 0 0 0 2px rgba(218, 198, 255, 0.18), 0 8px 18px rgba(0, 0, 0, 0.25); --chat-radius: 18px; --chat-charm-color: #f4e8ff; }
.chat-frame-lace::after { content: "❀"; }
.chat-frame-cat-paw { --chat-border: #f2a9ba; --chat-border-width: 2px; --chat-shadow: 0 6px 20px rgba(225, 120, 151, 0.23); --chat-radius: 17px 17px 8px 17px; --chat-charm-color: #f7bac8; }
.chat-frame-cat-paw::after { content: "●"; box-shadow: -5px -4px 0 -2px currentColor, 0 -7px 0 -2px currentColor, 5px -4px 0 -2px currentColor; border-radius: 50%; }
.chat-frame-flower { --chat-border: #f49bc1; --chat-border-width: 2px; --chat-shadow: 0 0 16px rgba(245, 126, 182, 0.2); --chat-radius: 18px 8px 18px 8px; --chat-charm-color: #ffd061; }
.chat-frame-flower::after { content: "✿"; }
.chat-frame-candy { --chat-border: #55d9e5; --chat-border-width: 3px; --chat-border-style: dotted; --chat-shadow: 0 0 0 2px rgba(255, 119, 177, 0.17), 0 8px 18px rgba(0, 0, 0, 0.2); --chat-radius: 20px; --chat-charm-color: #ff78b5; }
.chat-frame-candy::after { content: "●"; }
.chat-frame-jewel { --chat-border: #9eefff; --chat-border-width: 2px; --chat-shadow: inset 0 0 14px rgba(139, 227, 255, 0.16), 0 0 18px rgba(101, 214, 255, 0.27); --chat-radius: 5px 16px 5px 16px; --chat-charm-color: #baf5ff; }
.chat-frame-jewel::after { content: "◆"; }
.chat-frame-antique { --chat-border: #bb8a52; --chat-border-width: 3px; --chat-border-style: double; --chat-shadow: inset 0 0 0 1px rgba(255, 218, 158, 0.18), 0 7px 20px rgba(33, 19, 8, 0.36); --chat-radius: 4px; --chat-charm-color: #d5aa72; }
.chat-frame-antique::after { content: "❧"; }
.chat-frame-stained-glass { --chat-border: #e5d2ff; --chat-border-width: 3px; --chat-shadow: -3px 0 0 rgba(255, 94, 138, 0.48), 3px 0 0 rgba(74, 222, 228, 0.45), 0 8px 20px rgba(0, 0, 0, 0.3); --chat-radius: 9px; --chat-charm-color: #f9d56c; }
.chat-frame-stained-glass::after { content: "◇"; }
.chat-frame-moon { --chat-border: #929cff; --chat-border-width: 2px; --chat-shadow: 0 0 20px rgba(132, 143, 255, 0.34); --chat-radius: 17px; --chat-charm-color: #ffe49b; }
.chat-frame-moon::after { content: "☾"; }
.chat-frame-film { --chat-border: #e6e6e8; --chat-border-width: 3px; --chat-border-style: dashed; --chat-shadow: 0 7px 18px rgba(0, 0, 0, 0.35); --chat-radius: 3px; --chat-charm-color: #f0f0f0; }
.chat-frame-film::after { content: "▦"; }
.chat-frame-polaroid { --chat-border: #f4f1e7; --chat-border-width: 5px; --chat-shadow: 0 8px 16px rgba(0, 0, 0, 0.35); --chat-radius: 2px; --chat-charm-color: #f4f1e7; }
.chat-frame-polaroid::after { content: "◫"; }
.chat-frame-manga { --chat-border: #f8f8f8; --chat-border-width: 3px; --chat-shadow: 4px 4px 0 rgba(0, 0, 0, 0.82); --chat-radius: 50% 44% 48% 42% / 48% 45% 52% 44%; --chat-charm-color: #fff; }
.chat-frame-manga::after { content: "!!"; font-size: 0.62rem; font-weight: 1000; }
.chat-frame-pixel { --chat-border: #7ef0d5; --chat-border-width: 3px; --chat-shadow: 4px 4px 0 rgba(29, 85, 80, 0.8); --chat-radius: 0; --chat-charm-color: #f3d56c; }
.chat-frame-pixel::after { content: "■"; font-size: 0.62rem; }
.chat-frame-neon { --chat-border: #49f0e1; --chat-border-width: 2px; --chat-shadow: 0 0 7px #32dacc, 0 0 20px rgba(50, 218, 204, 0.52); --chat-radius: 12px 2px 12px 2px; --chat-charm-color: #ff4e99; }
.chat-frame-neon::after { content: "+"; font-weight: 1000; }
.chat-frame-cyber { --chat-border: #48d9ff; --chat-border-width: 2px; --chat-shadow: inset 5px 0 0 rgba(72, 217, 255, 0.34), 0 0 16px rgba(72, 217, 255, 0.25); --chat-radius: 2px 14px 2px 14px; --chat-charm-color: #6dffbd; }
.chat-frame-cyber::after { content: "⌁"; }
.chat-frame-ice { --chat-border: #b7edff; --chat-border-width: 2px; --chat-shadow: inset 0 0 12px rgba(186, 239, 255, 0.2), 0 0 18px rgba(104, 214, 255, 0.33); --chat-radius: 3px 17px 3px 17px; --chat-charm-color: #d7f7ff; }
.chat-frame-ice::after { content: "❄"; }
.chat-frame-flame { --chat-border: #ff7048; --chat-border-width: 2px; --chat-shadow: 0 0 8px rgba(255, 82, 35, 0.72), 0 0 22px rgba(255, 137, 47, 0.32); --chat-radius: 14px 14px 4px 14px; --chat-charm-color: #ffb43e; }
.chat-frame-flame::after { content: "▲"; }
.chat-frame-lightning { --chat-border: #ffe34e; --chat-border-width: 2px; --chat-shadow: 4px -3px 0 rgba(87, 204, 255, 0.25), -3px 3px 0 rgba(255, 227, 78, 0.2), 0 8px 18px rgba(0, 0, 0, 0.28); --chat-radius: 2px 13px 2px 13px; --chat-charm-color: #ffe34e; }
.chat-frame-lightning::after { content: "ϟ"; font-weight: 1000; }
.chat-frame-cardboard { --chat-border: #ba8b55; --chat-border-width: 3px; --chat-border-style: dashed; --chat-shadow: 3px 4px 0 rgba(61, 36, 18, 0.48); --chat-radius: 3px; --chat-charm-color: #d5aa75; }
.chat-frame-cardboard::after { content: "×"; font-family: monospace; font-weight: 1000; }
.chat-frame-ramen { --chat-border: #e34c48; --chat-border-width: 3px; --chat-border-style: double; --chat-shadow: 0 0 0 2px rgba(255, 241, 198, 0.16), 0 8px 18px rgba(0, 0, 0, 0.3); --chat-radius: 4px 4px 16px 16px; --chat-charm-color: #f6e3a0; }
.chat-frame-ramen::after { content: "♨"; }

.chat-frame-aurora { --chat-border: #87ffe4; --chat-border-width: 2px; --chat-shadow: 0 0 10px rgba(71, 242, 220, 0.55), 0 0 24px rgba(189, 100, 255, 0.42); --chat-radius: 18px 7px 18px 7px; --chat-charm-color: #bfffee; animation: chat-aurora-pulse 3.8s ease-in-out infinite; }
.chat-frame-aurora::after { content: "∿"; }
.chat-frame-stardust { --chat-border: #d9c5ff; --chat-border-width: 2px; --chat-shadow: 0 0 8px rgba(210, 188, 255, 0.55), 0 0 25px rgba(103, 173, 255, 0.3); --chat-radius: 16px; --chat-charm-color: #fff2a8; animation: chat-stardust-pulse 2.8s ease-in-out infinite; }
.chat-frame-stardust::after { content: "✦"; animation: chat-stardust-spin 4s linear infinite; }
.chat-frame-royal-gold { --chat-border: #f5ca61; --chat-border-width: 3px; --chat-border-style: double; --chat-shadow: inset 0 0 14px rgba(255, 211, 99, 0.16), 0 0 11px rgba(245, 202, 97, 0.48), 0 0 27px rgba(245, 172, 59, 0.23); --chat-radius: 8px 18px 8px 18px; --chat-charm-color: #ffe49b; animation: chat-gold-pulse 3.2s ease-in-out infinite; }
.chat-frame-royal-gold::after { content: "♛"; }
.chat-frame-beyond { --chat-border: #fff; --chat-border-width: 2px; --chat-shadow: -3px 0 12px rgba(67, 238, 255, 0.55), 3px 0 12px rgba(255, 79, 184, 0.5), 0 0 29px rgba(245, 205, 93, 0.3); --chat-radius: 18px 5px 18px 5px; --chat-charm-color: #fff; animation: chat-beyond-pulse 2.4s ease-in-out infinite; }
.chat-frame-beyond::after { content: "✺"; animation: chat-stardust-spin 3.2s linear infinite; }

@keyframes chat-aurora-pulse {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(48deg); }
}

@keyframes chat-stardust-pulse {
  0%, 100% { box-shadow: 0 0 7px rgba(210, 188, 255, 0.45), 0 0 20px rgba(103, 173, 255, 0.25); }
  50% { box-shadow: 0 0 13px rgba(255, 241, 168, 0.65), 0 0 30px rgba(165, 107, 255, 0.38); }
}

@keyframes chat-stardust-spin { to { transform: rotate(360deg); } }

@keyframes chat-gold-pulse {
  0%, 100% { filter: brightness(0.96); }
  50% { filter: brightness(1.18); }
}

@keyframes chat-beyond-pulse {
  0%, 100% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(65deg) brightness(1.15); }
}

@media (max-width: 560px) {
  .shop-special-category { padding: 16px; }
  .shop-chat-cosmetic-preview { min-height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-frame-aurora,
  .chat-frame-stardust,
  .chat-frame-royal-gold,
  .chat-frame-beyond,
  .chat-frame-stardust::after,
  .chat-frame-beyond::after {
    animation: none;
  }
}

.post-match-tip {
  display: grid;
  gap: 14px;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(73, 230, 219, 0.28);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(73, 230, 219, 0.085), transparent 48%),
    rgba(8, 14, 28, 0.9);
  text-align: left;
}

.post-match-tip [hidden] {
  display: none !important;
}

.post-match-tip.is-sent {
  border-color: rgba(255, 209, 102, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.1), transparent 48%),
    rgba(8, 14, 28, 0.9);
}

.post-match-tip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.post-match-tip-head > div {
  display: grid;
  gap: 3px;
}

.post-match-tip-head span {
  color: #7ff9f1;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .14em;
}

.post-match-tip-head h2,
.post-match-tip > p {
  margin: 0;
}

.post-match-tip-head h2 {
  color: #fff;
  font-size: 1.15rem;
}

.post-match-tip > p {
  color: rgba(228, 237, 255, 0.72);
  font-size: .82rem;
  line-height: 1.6;
}

.post-match-tip-balance {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  color: #ffe7a2 !important;
  background: rgba(255, 209, 102, 0.07);
  font-size: .72rem !important;
  letter-spacing: 0 !important;
}

.post-match-tip-controls {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(260px, 1.25fr);
  gap: 12px;
}

.post-match-tip-recipient,
.post-match-tip-fixed-recipient,
.post-match-tip fieldset {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(228, 237, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.post-match-tip-recipient,
.post-match-tip-fixed-recipient {
  display: grid;
  align-content: center;
  gap: 7px;
}

.post-match-tip-recipient > span,
.post-match-tip-fixed-recipient > span,
.post-match-tip legend {
  color: rgba(228, 237, 255, 0.62);
  font-size: .7rem;
  font-weight: 850;
}

.post-match-tip-fixed-recipient strong {
  color: #fff;
}

.post-match-tip-recipient select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(73, 230, 219, 0.3);
  border-radius: 9px;
  color: #fff;
  background: #111b31;
  font: inherit;
}

.post-match-tip fieldset > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.post-match-tip fieldset label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.post-match-tip fieldset input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.post-match-tip fieldset label > span {
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 48px;
  padding: 7px;
  border: 1px solid rgba(228, 237, 255, 0.14);
  border-radius: 9px;
  color: rgba(228, 237, 255, 0.75);
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}

.post-match-tip fieldset input:checked + span {
  border-color: rgba(73, 230, 219, 0.65);
  color: #fff;
  background: rgba(73, 230, 219, 0.12);
  box-shadow: 0 0 0 2px rgba(73, 230, 219, 0.08);
}

.post-match-tip fieldset input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.post-match-tip fieldset small {
  color: inherit;
  font-size: .62rem;
}

.post-match-tip-send,
.post-match-tip-retry {
  justify-self: start;
  min-height: 44px;
}

.post-match-tip-status {
  min-height: 1.4em;
  color: rgba(228, 237, 255, 0.64) !important;
  font-size: .72rem !important;
}

.post-match-tip-status[role="alert"] {
  color: #ff9ab0 !important;
}

.post-match-tip.is-sent .post-match-tip-status {
  color: #ffe7a2 !important;
}

@media (max-width: 700px) {
  .post-match-tip-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .post-match-tip {
    padding: 14px;
  }

  .post-match-tip-head {
    align-items: stretch;
    flex-direction: column;
  }

  .post-match-tip-balance {
    width: max-content;
  }

  .post-match-tip fieldset > div {
    grid-template-columns: 1fr;
  }

  .post-match-tip-send,
  .post-match-tip-retry {
    width: 100%;
  }
}

.engawa-invite {
  display: grid;
  gap: 13px;
  margin: 24px 0;
  padding: clamp(18px, 3vw, 25px);
  border: 1px solid rgba(218, 177, 125, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(100deg, rgba(181, 124, 71, 0.12), transparent 48%),
    rgba(18, 17, 15, 0.78);
  box-shadow: inset 0 1px rgba(255, 239, 211, 0.04);
  text-align: left;
}

.engawa-invite-head,
.engawa-header,
.engawa-card-owner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.engawa-invite-head > div,
.engawa-header > div {
  display: grid;
  gap: 4px;
}

.engawa-invite-head span,
.engawa-header span,
.engawa-section-copy > span {
  color: #c9aa7e;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.engawa-invite-head h2,
.engawa-header h1,
.engawa-section-copy h2 {
  margin: 0;
  color: #f2d6ad;
  font-family: var(--display);
}

.engawa-invite-head i {
  width: 43px;
  height: 43px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(218, 177, 125, 0.28);
  border-radius: 50%;
  color: #d6b98e;
  background: rgba(218, 177, 125, 0.08);
  font-style: normal;
}

.engawa-invite > p,
.engawa-header p,
.engawa-section-copy p {
  margin: 0;
  color: rgba(239, 228, 210, 0.69);
  line-height: 1.7;
}

.engawa-promises,
.engawa-invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.engawa-promises span {
  padding: 6px 10px;
  border: 1px solid rgba(163, 189, 143, 0.27);
  border-radius: 999px;
  color: #c8d6bb;
  background: rgba(104, 137, 82, 0.08);
  font-size: 0.68rem;
  font-weight: 850;
}

.engawa-invite-status {
  min-height: 1.5em;
  color: #d8c4a5 !important;
  font-size: 0.76rem;
}

.engawa-screen {
  min-height: 680px;
  display: grid;
  place-items: center;
}

.engawa-shell {
  width: min(1040px, 100%);
  padding: clamp(20px, 4.5vw, 48px);
  border: 1px solid rgba(213, 173, 120, 0.34);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(132, 87, 48, 0.1), transparent 170px),
    linear-gradient(135deg, rgba(29, 28, 24, 0.98), rgba(12, 14, 14, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 243, 218, 0.05);
}

.engawa-header {
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(213, 173, 120, 0.15);
}

.engawa-header h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  letter-spacing: 0.02em;
}

.engawa-privacy-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 20px 0 28px;
  padding: 13px 15px;
  border-left: 3px solid rgba(145, 177, 120, 0.5);
  color: rgba(225, 232, 215, 0.72);
  background: rgba(94, 123, 72, 0.07);
  font-size: 0.74rem;
  line-height: 1.6;
}

.engawa-privacy-note strong {
  color: #cad9bd;
}

.engawa-selection {
  display: grid;
  gap: 17px;
}

.engawa-section-copy {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.engawa-pick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.engawa-pick {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(219, 193, 156, 0.2);
  border-radius: 14px;
  cursor: pointer;
  background: #111310;
  font: inherit;
}

.engawa-pick img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.engawa-pick span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  padding: 6px;
  border-radius: 8px;
  color: rgba(255, 245, 226, 0.8);
  background: rgba(16, 15, 12, 0.76);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.engawa-pick:hover,
.engawa-pick:focus-visible,
.engawa-pick.selected {
  border-color: rgba(232, 196, 143, 0.76);
}

.engawa-pick.selected {
  box-shadow: 0 0 0 3px rgba(209, 163, 101, 0.14);
}

.engawa-mood-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.engawa-mood {
  min-width: 0;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(219, 193, 156, 0.18);
  border-radius: 13px;
  cursor: pointer;
  color: rgba(242, 231, 213, 0.8);
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  text-align: left;
}

.engawa-mood strong {
  font-size: 0.78rem;
}

.engawa-mood small {
  color: rgba(214, 202, 183, 0.53);
  font-size: 0.64rem;
  line-height: 1.45;
}

.engawa-mood:hover,
.engawa-mood:focus-visible,
.engawa-mood.selected {
  border-color: rgba(166, 190, 143, 0.52);
  color: #eef2e8;
  background: rgba(111, 139, 87, 0.1);
}

.engawa-share-button {
  justify-self: center;
  min-width: min(330px, 100%);
  margin-top: 3px;
  border-color: rgba(210, 170, 116, 0.48);
  color: #20170f;
  background: #d4ae7b;
  box-shadow: none;
}

.engawa-arrival-note {
  margin: 0;
  color: #c9d8bc;
  font-size: 0.73rem;
  text-align: center;
}

.engawa-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.engawa-share-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(219, 193, 156, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.engawa-card-owner {
  align-items: baseline;
}

.engawa-card-owner span {
  color: rgba(218, 202, 180, 0.55);
  font-size: 0.66rem;
  font-weight: 850;
}

.engawa-card-owner strong {
  max-width: 65%;
  overflow: hidden;
  color: #f2dfc3;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.engawa-card-image,
.engawa-card-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 13px;
  background: #0c0f0d;
}

.engawa-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.engawa-card-placeholder {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed rgba(219, 193, 156, 0.2);
  color: rgba(218, 202, 180, 0.52);
  font-size: 0.74rem;
}

.engawa-card-placeholder i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(230, 199, 154, 0.64);
  background: rgba(213, 173, 120, 0.08);
  font-style: normal;
}

.engawa-mood-label {
  min-height: 1.5em;
  margin: 0;
  color: #d9bd93;
  font-size: 0.77rem;
  font-weight: 850;
}

.engawa-transfer-status,
.engawa-response-wait {
  min-height: 1.5em;
  margin: 0;
  color: rgba(220, 210, 193, 0.55);
  font-size: 0.68rem;
}

.engawa-transfer-status.is-error {
  color: #e7a69b;
}

.engawa-share-card blockquote {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid rgba(154, 184, 130, 0.56);
  color: #e9e7da;
  background: rgba(104, 137, 82, 0.08);
  font-size: 0.82rem;
  font-weight: 850;
}

.engawa-share-card blockquote span,
.engawa-response-panel > span {
  color: rgba(204, 216, 194, 0.57);
  font-size: 0.61rem;
  font-weight: 850;
}

.engawa-response-panel {
  display: grid;
  gap: 8px;
}

.engawa-response-panel > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.engawa-response-panel button {
  min-height: 43px;
  padding: 8px 9px;
  border: 1px solid rgba(158, 185, 137, 0.25);
  border-radius: 10px;
  cursor: pointer;
  color: #dce6d5;
  background: rgba(104, 137, 82, 0.07);
  font: inherit;
  font-size: 0.67rem;
  font-weight: 800;
}

.engawa-response-panel button:hover,
.engawa-response-panel button:focus-visible {
  border-color: rgba(172, 202, 147, 0.62);
  background: rgba(104, 137, 82, 0.14);
}

@media (max-width: 700px) {
  .engawa-pick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .engawa-mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engawa-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .engawa-shell {
    padding: 17px;
    border-radius: 19px;
  }

  .engawa-header,
  .engawa-invite-head {
    align-items: stretch;
    flex-direction: column;
  }

  .engawa-header .button,
  .engawa-invite-actions .button,
  .engawa-share-button {
    width: 100%;
  }

  .engawa-privacy-note {
    grid-template-columns: 1fr;
  }

  .engawa-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engawa-response-panel > div {
    grid-template-columns: 1fr;
  }
}

.solo-familiar-setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
  margin: 16px 0 20px;
  padding: 18px 20px;
  border: 1px solid rgba(218, 188, 143, 0.19);
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(132, 96, 62, 0.1), rgba(83, 105, 73, 0.07)),
    rgba(255, 255, 255, 0.018);
}

.solo-familiar-setup h2,
.solo-familiar-setup p {
  margin: 0;
}

.solo-familiar-setup h2 {
  margin-top: 3px;
  color: #f0dfc6;
  font-size: 1.1rem;
}

.solo-familiar-setup p {
  margin-top: 7px;
  color: rgba(224, 213, 196, 0.66);
  font-size: 0.77rem;
  line-height: 1.65;
}

.solo-reunion-toggle {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid rgba(148, 176, 128, 0.19);
  border-radius: 13px;
  cursor: pointer;
  background: rgba(103, 131, 84, 0.07);
}

.solo-reunion-toggle input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #9db586;
}

.solo-reunion-toggle span {
  display: grid;
  gap: 4px;
}

.solo-reunion-toggle strong {
  color: #e3eadc;
  font-size: 0.8rem;
}

.solo-reunion-toggle small {
  color: rgba(211, 221, 203, 0.58);
  font-size: 0.68rem;
  line-height: 1.55;
}

.solo-familiar-book-screen {
  width: min(980px, 100%);
  margin-inline: auto;
}

.solo-familiar-book-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(219, 193, 156, 0.18);
  border-radius: 14px;
  background: rgba(127, 91, 56, 0.07);
}

.solo-familiar-book-note strong {
  color: #ead8bc;
  font-size: 0.78rem;
}

.solo-familiar-book-note span {
  color: rgba(224, 213, 196, 0.61);
  font-size: 0.7rem;
  line-height: 1.55;
}

.solo-familiar-book-loading {
  margin: 12px 0;
  color: #c8d6bc;
  font-size: 0.72rem;
  text-align: center;
}

.solo-familiar-list {
  display: grid;
  gap: 10px;
}

.solo-familiar-entry,
.solo-familiar-blocked-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(219, 193, 156, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}

.solo-familiar-entry > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.solo-familiar-entry span {
  color: rgba(218, 202, 180, 0.52);
  font-size: 0.63rem;
  font-weight: 800;
}

.solo-familiar-entry strong,
.solo-familiar-blocked-entry strong {
  overflow: hidden;
  color: #eee2d0;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.solo-familiar-entry-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.solo-familiar-block-button {
  color: rgba(231, 181, 169, 0.78);
}

.solo-familiar-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 28px;
  border: 1px dashed rgba(219, 193, 156, 0.19);
  border-radius: 16px;
  color: rgba(224, 213, 196, 0.58);
  text-align: center;
}

.solo-familiar-empty strong {
  color: #e8dbc8;
}

.solo-familiar-empty p {
  max-width: 520px;
  margin: 8px 0 0;
  font-size: 0.76rem;
  line-height: 1.7;
}

.solo-familiar-blocked {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: rgba(224, 213, 196, 0.61);
  background: rgba(255, 255, 255, 0.015);
}

.solo-familiar-blocked summary {
  cursor: pointer;
  color: #d7c9b5;
  font-size: 0.75rem;
  font-weight: 850;
}

.solo-familiar-blocked > p,
.solo-familiar-blocked-empty {
  margin: 10px 0;
  font-size: 0.68rem;
  line-height: 1.6;
}

.solo-familiar-blocked > div {
  display: grid;
  gap: 8px;
}

.solo-familiar-load-more {
  display: block;
  margin: 12px auto 0;
}

.solo-familiar-book-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.solo-familiar-decision {
  display: grid;
  gap: 14px;
  padding: 19px;
  border: 1px solid rgba(219, 193, 156, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(136, 96, 58, 0.12), rgba(91, 119, 76, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.solo-familiar-decision > div:first-child > span {
  color: rgba(222, 190, 144, 0.56);
  font-size: 0.61rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.solo-familiar-decision h2,
.solo-familiar-decision p {
  margin: 0;
}

.solo-familiar-decision h2 {
  margin-top: 4px;
  color: #f1dfc5;
  font-size: 1.05rem;
}

.solo-familiar-decision > div:first-child p,
.solo-familiar-decision > small {
  margin-top: 6px;
  color: rgba(222, 211, 193, 0.57);
  font-size: 0.68rem;
  line-height: 1.6;
}

.solo-familiar-decision-status {
  min-height: 1.6em;
  color: #dce6d5;
  font-size: 0.77rem;
}

.solo-familiar-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.solo-reunion-result-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 4px auto 16px;
  padding: 8px 13px;
  border: 1px solid rgba(154, 184, 130, 0.23);
  border-radius: 999px;
  color: rgba(220, 232, 210, 0.72);
  background: rgba(104, 137, 82, 0.08);
  font-size: 0.68rem;
}

.solo-reunion-result-note strong {
  color: #e3ecd9;
}

@media (max-width: 700px) {
  .solo-familiar-setup {
    grid-template-columns: 1fr;
  }

  .solo-familiar-setup > .button {
    width: 100%;
  }

  .solo-familiar-entry,
  .solo-familiar-blocked-entry,
  .solo-familiar-book-note {
    align-items: stretch;
    flex-direction: column;
  }

  .solo-familiar-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solo-familiar-entry-actions .button,
  .solo-familiar-blocked-entry .button,
  .solo-familiar-decision-actions .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .solo-familiar-entry-actions {
    grid-template-columns: 1fr;
  }

  .solo-familiar-decision-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Favorite creator cards */
.landing-community {
  max-width: 860px;
}

.community-message-title {
  min-width: 0;
}

.community-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.community-head-actions button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 137, 163, 0.34);
  border-radius: 999px;
  cursor: pointer;
  color: #ffd4de;
  background: rgba(255, 105, 137, 0.09);
  font: inherit;
  font-size: 0.64rem;
  font-weight: 900;
}

.community-head-actions button:hover,
.community-head-actions button:focus-visible {
  border-color: rgba(255, 162, 183, 0.68);
  background: rgba(255, 105, 137, 0.17);
}

.community-head-actions .community-autoplay-toggle {
  border-color: rgba(112, 225, 216, 0.28);
  color: #bce9e5;
  background: rgba(89, 213, 204, 0.07);
}

.community-head-actions .community-autoplay-toggle[aria-pressed="true"] {
  border-color: rgba(255, 205, 117, 0.4);
  color: #ffe0a2;
  background: rgba(255, 195, 91, 0.09);
}

.community-card-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 16px;
}

.community-card-stage > .creator-card {
  width: 100%;
}

.community-card-stage .community-message-controls {
  grid-column: 1 / -1;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 0 3px;
}

.community-card-stage .community-message-controls > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.community-card-navigation {
  display: inline-flex;
  gap: 5px;
}

.community-card-navigation button {
  width: 29px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #dce2ed;
  background: rgba(255, 255, 255, 0.045);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}

.community-card-navigation button:hover,
.community-card-navigation button:focus-visible {
  border-color: rgba(255, 136, 162, 0.45);
  color: #fff;
  background: rgba(255, 112, 145, 0.1);
}

.creator-card {
  --creator-card-accent: #ff7898;
  --creator-card-accent-soft: rgba(255, 120, 152, 0.16);
  --creator-card-sub-accent: #70e5dc;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 278px;
  display: grid;
  align-content: space-between;
  gap: 15px;
  overflow: hidden;
  padding: 23px;
  border: 2px solid color-mix(in srgb, var(--creator-card-accent) 54%, transparent);
  border-radius: 25px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 5%, var(--creator-card-accent-soft), transparent 36%),
    radial-gradient(circle at 4% 110%, color-mix(in srgb, var(--creator-card-sub-accent) 16%, transparent), transparent 38%),
    linear-gradient(145deg, rgba(28, 19, 31, 0.98), rgba(9, 14, 23, 0.98));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.06);
}

.creator-card::before,
.creator-card::after {
  position: absolute;
  z-index: -1;
  border: 1px solid color-mix(in srgb, var(--creator-card-accent) 28%, transparent);
  border-radius: 50%;
  content: "";
}

.creator-card::before {
  width: calc(150px + (var(--creator-card-stage, 1) * 14px));
  height: calc(150px + (var(--creator-card-stage, 1) * 14px));
  top: -82px;
  right: -45px;
}

.creator-card::after {
  width: 82px;
  height: 82px;
  bottom: -52px;
  left: 18%;
}

.creator-card-stage-1 { --creator-card-stage: 1; }
.creator-card-stage-2 { --creator-card-stage: 2; }
.creator-card-stage-3 { --creator-card-stage: 3; }
.creator-card-stage-4 { --creator-card-stage: 4; }
.creator-card-stage-5 { --creator-card-stage: 5; }

.creator-card-stage-3,
.creator-card-stage-4,
.creator-card-stage-5 {
  box-shadow:
    0 19px 48px rgba(0, 0, 0, 0.28),
    0 0 calc(var(--creator-card-stage) * 5px) var(--creator-card-accent-soft),
    inset 0 1px rgba(255, 255, 255, 0.08);
}

.creator-card-theme-basic-aqua {
  --creator-card-accent: #55dfd6;
  --creator-card-accent-soft: rgba(85, 223, 214, 0.17);
  --creator-card-sub-accent: #ff91ab;
}

.creator-card-theme-basic-violet {
  --creator-card-accent: #aa91ff;
  --creator-card-accent-soft: rgba(170, 145, 255, 0.17);
  --creator-card-sub-accent: #66e6dc;
}

.creator-card-theme-basic-sunset {
  --creator-card-accent: #ff956e;
  --creator-card-accent-soft: rgba(255, 149, 110, 0.18);
  --creator-card-sub-accent: #ff73a0;
}

.creator-card-theme-premium-hologram {
  --creator-card-accent: #76f4e7;
  --creator-card-accent-soft: rgba(118, 244, 231, 0.18);
  --creator-card-sub-accent: #ff76ad;
  border-color: rgba(164, 244, 233, 0.72);
  background:
    radial-gradient(circle at 92% 5%, rgba(255, 118, 173, 0.2), transparent 37%),
    radial-gradient(circle at 6% 105%, rgba(118, 244, 231, 0.18), transparent 40%),
    linear-gradient(135deg, rgba(18, 26, 49, 0.98), rgba(31, 16, 38, 0.97) 55%, rgba(9, 25, 31, 0.98));
}

.creator-card-theme-premium-stardust {
  --creator-card-accent: #a49bff;
  --creator-card-accent-soft: rgba(164, 155, 255, 0.2);
  --creator-card-sub-accent: #f3d888;
  border-color: rgba(181, 171, 255, 0.7);
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.25) 0 1px, transparent 2px),
    radial-gradient(circle at 67% 73%, rgba(255, 224, 139, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.22) 0 1.5px, transparent 2.5px),
    linear-gradient(145deg, rgba(13, 15, 44, 0.99), rgba(30, 19, 57, 0.98) 56%, rgba(9, 20, 37, 0.98));
  background-size: 83px 79px, 111px 107px, 137px 131px, auto;
}

.creator-card-theme-premium-royal {
  --creator-card-accent: #edc76d;
  --creator-card-accent-soft: rgba(237, 199, 109, 0.2);
  --creator-card-sub-accent: #b58cff;
  border-color: rgba(237, 199, 109, 0.78);
  background:
    radial-gradient(circle at 90% 5%, rgba(237, 199, 109, 0.19), transparent 36%),
    linear-gradient(145deg, rgba(33, 22, 9, 0.99), rgba(24, 18, 35, 0.98) 58%, rgba(9, 12, 21, 0.98));
}

.creator-card-sheen {
  position: absolute;
  z-index: -1;
  inset: -55% auto -55% -38%;
  width: 30%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transform: rotate(16deg);
  pointer-events: none;
}

.creator-card-theme-premium-hologram .creator-card-sheen,
.creator-card-theme-premium-stardust .creator-card-sheen,
.creator-card-theme-premium-royal .creator-card-sheen {
  opacity: 0.48;
  animation: creator-card-foil 7s ease-in-out infinite;
}

.creator-card-header,
.creator-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.creator-card-header > span {
  color: var(--creator-card-accent);
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.creator-card-header > b {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--creator-card-accent);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.creator-card-header small {
  color: rgba(232, 236, 246, 0.68);
  font-size: 0.57rem;
  letter-spacing: 0;
}

.creator-card-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-card-identity > strong {
  color: #fff;
  font-size: clamp(1.18rem, 3vw, 1.65rem);
  letter-spacing: 0.025em;
}

.creator-card-type {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--creator-card-sub-accent) 38%, transparent);
  border-radius: 999px;
  color: #e8fffc;
  background: color-mix(in srgb, var(--creator-card-sub-accent) 10%, transparent);
  font-size: 0.64rem;
  font-weight: 900;
}

.creator-card-type i {
  color: var(--creator-card-sub-accent);
  font-style: normal;
}

.creator-card blockquote {
  max-width: 92%;
  margin: 0;
  overflow-wrap: anywhere;
  color: #fff9fc;
  font-size: clamp(1rem, 2.5vw, 1.28rem);
  font-weight: 850;
  line-height: 1.55;
}

.creator-card blockquote::before {
  margin-right: 6px;
  color: var(--creator-card-accent);
  content: "“";
  font-size: 1.35em;
}

.creator-card-achievements {
  min-height: 27px;
}

.creator-card .achievement-badges {
  justify-content: flex-start;
}

.creator-card .achievement-badge {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 15, 0.38);
}

.creator-card-achievement-empty,
.creator-card-x-empty {
  color: rgba(214, 220, 232, 0.54);
  font-size: 0.62rem;
}

.creator-card footer {
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.creator-card-x-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f1f5ff;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
}

.creator-card-x-link b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #091019;
  background: #f4f7fb;
  font-size: 0.65rem;
}

.creator-card-x-link:not(.is-preview):hover,
.creator-card-x-link:not(.is-preview):focus-visible {
  color: var(--creator-card-accent);
}

.creator-card-brand {
  color: rgba(220, 225, 236, 0.5);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.creator-card.is-compact {
  min-height: 244px;
  gap: 11px;
  padding: 18px 20px;
  border-radius: 20px;
}

.creator-card.is-compact .creator-card-identity > strong {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
}

.creator-card.is-compact blockquote {
  font-size: clamp(0.93rem, 2vw, 1.13rem);
}

@keyframes creator-card-foil {
  0%, 18% { left: -42%; }
  58%, 100% { left: 118%; }
}

.creator-card-screen {
  max-width: 1240px;
}

.creator-card-growth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 18px 21px;
  border: 1px solid rgba(255, 125, 155, 0.23);
  border-radius: 19px;
  background:
    radial-gradient(circle at 4% 0%, rgba(255, 105, 137, 0.11), transparent 38%),
    rgba(13, 16, 26, 0.88);
}

.creator-card-growth-panel > div:first-child > span {
  color: #ff86a1;
  font-size: 0.59rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.creator-card-growth-panel strong {
  display: block;
  margin-top: 5px;
  color: #faedf2;
  font-size: 1rem;
}

.creator-card-growth-panel p,
.creator-card-growth-meter small {
  margin: 5px 0 0;
  color: #929bae;
  font-size: 0.66rem;
  line-height: 1.55;
}

.creator-card-growth-meter > span {
  height: 9px;
  display: block;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.creator-card-growth-meter i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7393, #6de5db);
  box-shadow: 0 0 18px rgba(107, 229, 219, 0.28);
}

.creator-card-editor-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 22px;
}

.creator-card-editor-preview,
.creator-card-editor-form {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(12, 15, 25, 0.9);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.creator-card-editor-preview {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.creator-card-editor-preview > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.creator-card-editor-preview > div:first-child span {
  color: #74e6dc;
  font-size: 0.61rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.creator-card-editor-preview > div:first-child small,
.creator-card-editor-preview > small {
  color: #838c9f;
  font-size: 0.62rem;
  line-height: 1.55;
}

.creator-card-share-actions,
.creator-card-editor-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.creator-card-preview-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 205, 117, 0.2);
  border-radius: 11px;
  color: #dec697;
  background: rgba(255, 195, 91, 0.06);
  font-size: 0.65rem;
  line-height: 1.55;
}

.creator-card-editor-form {
  display: grid;
  gap: 18px;
}

.creator-card-editor-form section,
.creator-card-editor-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.creator-card-editor-form legend,
.creator-card-editor-form label,
.creator-card-field-head {
  color: #c8cfdd;
  font-size: 0.72rem;
  font-weight: 900;
}

.creator-card-editor-form legend {
  margin-bottom: 9px;
}

.creator-card-editor-form legend small {
  color: #818a9e;
  font-weight: 700;
}

.creator-card-field-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.creator-card-field-head small,
.creator-card-field-head span,
.creator-card-editor-form section > small,
.creator-card-editor-form fieldset > small {
  color: #7f899c;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.55;
}

.creator-card-field-head span b {
  color: #d4dae5;
}

.creator-card-editor-form > section > input,
.creator-card-editor-form textarea,
.creator-card-x-input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  outline: none;
  color: #f6f3f7;
  background: rgba(4, 7, 13, 0.62);
  font: inherit;
}

.creator-card-editor-form > section > input,
.creator-card-editor-form textarea {
  padding: 11px 13px;
}

.creator-card-editor-form textarea {
  min-height: 78px;
  resize: vertical;
}

.creator-card-editor-form > section > input:focus,
.creator-card-editor-form textarea:focus,
.creator-card-x-input:focus-within {
  border-color: rgba(255, 121, 151, 0.58);
  box-shadow: 0 0 0 3px rgba(255, 106, 139, 0.08);
}

.creator-card-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.creator-card-choice {
  cursor: pointer;
}

.creator-card-choice input,
.creator-card-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.creator-card-choice > span {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  color: #9aa3b5;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.creator-card-choice i {
  color: #69ded5;
  font-style: normal;
}

.creator-card-choice b {
  font-size: 0.66rem;
}

.creator-card-choice input:checked + span {
  border-color: rgba(255, 123, 153, 0.52);
  color: #fff0f4;
  background: rgba(255, 105, 137, 0.1);
}

.creator-card-choice input:focus-visible + span,
.creator-card-theme-option input:focus-visible + span {
  outline: 3px solid rgba(113, 231, 221, 0.5);
  outline-offset: 3px;
}

.creator-card-templates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 5px;
}

.creator-card-templates button {
  padding: 6px 9px;
  border: 1px solid rgba(103, 226, 216, 0.18);
  border-radius: 999px;
  cursor: pointer;
  color: #addbd7;
  background: rgba(103, 226, 216, 0.05);
  font: inherit;
  font-size: 0.61rem;
}

.creator-card-templates button:hover,
.creator-card-templates button:focus-visible {
  border-color: rgba(103, 226, 216, 0.46);
  color: #eafffd;
}

.creator-card-x-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.creator-card-x-input > span {
  flex: none;
  padding-left: 12px;
  color: #9da5b6;
}

.creator-card-x-input input {
  min-width: 0;
  flex: 1;
  padding: 11px 12px 11px 5px;
  border: 0;
  outline: none;
  color: #f6f3f7;
  background: transparent;
  font: inherit;
}

.creator-card-public-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0 3px;
  cursor: pointer;
}

.creator-card-public-check input {
  accent-color: #ff7394;
}

.creator-card-public-check span {
  color: #e4dce1;
  font-size: 0.68rem;
}

.creator-card-theme-group {
  display: grid;
  gap: 9px;
}

.creator-card-theme-group + .creator-card-theme-group {
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.creator-card-theme-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.creator-card-theme-group-head strong {
  color: #e6eaf2;
  font-size: 0.7rem;
}

.creator-card-theme-group-head small {
  color: #7f899c;
  font-size: 0.59rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.creator-card-theme-group:last-child .creator-card-theme-group-head strong {
  color: #f4d791;
}

.creator-card-theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.creator-card-theme-grid.is-premium {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.creator-card-theme-option {
  min-width: 0;
  cursor: pointer;
}

.creator-card-theme-option > span {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

.creator-card-theme-option.is-premium > span {
  border-color: rgba(239, 201, 113, 0.22);
  background:
    radial-gradient(circle at 50% -20%, rgba(245, 212, 137, 0.13), transparent 58%),
    rgba(255, 255, 255, 0.028);
}

.creator-card-theme-option.is-premium:hover > span {
  border-color: rgba(239, 201, 113, 0.46);
  background:
    radial-gradient(circle at 50% -20%, rgba(245, 212, 137, 0.2), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.creator-card-theme-option > span > i {
  width: 26px;
  height: 15px;
  justify-self: center;
  border: 2px solid var(--creator-card-accent, #ff7898);
  border-radius: 5px;
  background: var(--creator-card-accent-soft, rgba(255, 120, 152, 0.16));
}

.creator-card-theme-option b {
  overflow: hidden;
  color: #dfe4ed;
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-card-theme-option small {
  color: #747e92;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.creator-card-theme-option.is-premium small {
  color: #d7b866;
}

.creator-card-theme-option input:checked + span {
  border-color: color-mix(in srgb, var(--creator-card-accent, #ff7898) 62%, transparent);
  background: var(--creator-card-accent-soft, rgba(255, 120, 152, 0.12));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--creator-card-accent, #ff7898) 12%, transparent);
}

.creator-card-theme-option.is-premium input:checked + span {
  border-color: color-mix(in srgb, var(--creator-card-accent, #edc76d) 76%, transparent);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--creator-card-accent, #edc76d) 16%, transparent),
    inset 0 1px rgba(255, 255, 255, 0.08);
}

.creator-card-premium-panel {
  display: grid;
  gap: 14px;
  padding: 17px;
  border: 1px solid rgba(239, 201, 113, 0.3);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 113, 153, 0.11), transparent 38%),
    linear-gradient(135deg, rgba(239, 201, 113, 0.085), rgba(21, 17, 26, 0.5) 52%, rgba(103, 228, 218, 0.045));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.creator-card-premium-panel-head {
  display: grid;
  gap: 4px;
}

.creator-card-premium-panel-head > span {
  color: #d7b866;
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.creator-card-premium-panel-head strong {
  color: #fff0c8;
  font-size: 0.84rem;
  line-height: 1.4;
}

.creator-card-premium-panel-head p {
  margin: 0;
  color: #bba878;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.55;
}

.creator-card-premium-panel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
  align-items: stretch;
  gap: 15px;
}

.creator-card-premium-panel-body ul {
  display: grid;
  align-content: start;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.creator-card-premium-panel-body li {
  position: relative;
  padding-left: 16px;
  color: #aeb5c3;
  font-size: 0.63rem;
  line-height: 1.55;
}

.creator-card-premium-panel-body li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #e4c56f;
  content: "✓";
  font-weight: 900;
}

.creator-card-premium-purchase,
.creator-card-premium-owned {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(3, 6, 12, 0.35);
}

.creator-card-premium-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.creator-card-premium-balance span {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 9px;
  color: #8f98aa;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.55rem;
}

.creator-card-premium-balance strong {
  overflow-wrap: anywhere;
  color: #f5e5b5;
  font-size: 0.67rem;
}

.creator-card-premium-purchase .button {
  width: 100%;
  min-height: 44px;
  padding-inline: 13px;
  font-size: 0.66rem;
}

.creator-card-premium-owned strong {
  color: #9af0e8;
  font-size: 0.74rem;
}

.creator-card-premium-owned span {
  color: #9ba6b8;
  font-size: 0.61rem;
  line-height: 1.5;
}

.creator-card-premium-panel > small {
  color: #8d96a8;
  font-size: 0.59rem;
  line-height: 1.55;
}

.creator-card-premium-panel.is-owned {
  border-color: rgba(103, 228, 218, 0.27);
  background:
    radial-gradient(circle at 100% 0, rgba(103, 228, 218, 0.105), transparent 38%),
    linear-gradient(135deg, rgba(103, 228, 218, 0.07), rgba(13, 21, 27, 0.5));
}

.creator-card-premium-panel.is-owned .creator-card-premium-panel-head > span,
.creator-card-premium-panel.is-owned .creator-card-premium-panel-head strong {
  color: #c8f5f1;
}

.creator-card-premium-panel.is-owned .creator-card-premium-panel-head p {
  color: #8fd7d1;
}

.creator-card-achievement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.creator-card-achievement-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  cursor: pointer;
  color: #aeb6c7;
  background: rgba(255, 255, 255, 0.025);
  font: inherit;
  font-size: 0.62rem;
}

.creator-card-achievement-option i {
  color: #f1cb71;
  font-style: normal;
}

.creator-card-achievement-option small {
  color: #737c90;
  font-size: 0.51rem;
}

.creator-card-achievement-option[aria-pressed="true"] {
  border-color: rgba(241, 203, 113, 0.42);
  color: #fff1ca;
  background: rgba(241, 203, 113, 0.08);
}

.creator-card-public-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(104, 227, 218, 0.16);
  border-radius: 12px;
  color: #8c96a9;
  background: rgba(104, 227, 218, 0.035);
  font-size: 0.63rem;
  line-height: 1.55;
}

.creator-card-public-note strong {
  color: #bfece8;
}

.shop-free-card-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(103, 228, 218, 0.2);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(103, 228, 218, 0.07), rgba(255, 111, 146, 0.055));
}

.shop-free-card-callout > div {
  display: grid;
  gap: 4px;
}

.shop-free-card-callout strong {
  color: #eaf7f5;
  font-size: 0.82rem;
}

.shop-free-card-callout span {
  color: #909aac;
  font-size: 0.66rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .creator-card-editor-layout {
    grid-template-columns: 1fr;
  }

  .creator-card-editor-preview {
    position: static;
  }
}

@media (max-width: 700px) {
  .community-message-head,
  .community-head-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .community-head-actions {
    width: 100%;
  }

  .community-card-stage {
    padding: 11px;
  }

  .creator-card {
    min-height: 260px;
    padding: 18px;
    border-radius: 20px;
  }

  .creator-card-header,
  .creator-card footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .creator-card blockquote {
    max-width: 100%;
  }

  .creator-card-growth-panel {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .creator-card-editor-preview,
  .creator-card-editor-form {
    padding: 15px;
    border-radius: 18px;
  }

  .creator-card-choice-grid,
  .creator-card-theme-grid,
  .creator-card-theme-grid.is-premium {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-free-card-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-card-premium-panel-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .community-card-stage .community-message-controls {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .community-card-stage .community-message-controls > span {
    flex-wrap: wrap;
  }

  .creator-card-editor-layout {
    gap: 14px;
  }

  .creator-card-share-actions,
  .creator-card-editor-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .creator-card-share-actions .button,
  .creator-card-editor-actions .button {
    width: 100%;
  }

  .creator-card-premium-panel {
    padding: 14px;
  }

  .creator-card-premium-balance {
    grid-template-columns: 1fr;
  }

  .creator-card-public-note {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .creator-card-sheen {
    animation: none !important;
  }
}

/* Per-match achievement showcase: one trusted snapshot is reused through the match. */
.match-achievement-showcase {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.match-achievement-showcase-label,
.match-achievement-showcase > small {
  display: block;
  color: #9ca7ba;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

.match-achievement-showcase .achievement-badges {
  min-width: 0;
}

.match-danwaku-badge {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid rgba(237, 190, 255, 0.42);
  border-radius: 999px;
  color: #fff4ff;
  background: linear-gradient(135deg, rgba(103, 69, 135, 0.88), rgba(139, 75, 119, 0.88));
  box-shadow: 0 6px 17px rgba(60, 29, 83, 0.22);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
}

.match-achievement-showcase.is-match-found .match-danwaku-badge,
.online-status-details > .match-achievement-showcase .match-danwaku-badge,
.match-achievement-showcase.is-result .match-danwaku-badge {
  justify-self: center;
}

.match-achievement-showcase.is-match-found,
.online-status-details > .match-achievement-showcase {
  box-sizing: border-box;
  width: 100%;
  flex: 1 0 100%;
  padding: 13px 15px;
  border: 1px solid rgba(255, 215, 126, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(255, 215, 126, 0.07), rgba(100, 232, 213, 0.045)),
    rgba(6, 9, 16, 0.72);
  text-align: left;
}

.match-achievement-showcase.is-match-found .achievement-badges,
.online-status-details > .match-achievement-showcase .achievement-badges {
  justify-content: center;
}

.match-achievement-showcase.is-hud {
  max-width: 100%;
  margin: 0 0 7px;
  gap: 0;
  overflow: hidden;
}

.match-achievement-showcase.is-hud .match-achievement-showcase-label,
.match-achievement-showcase.is-hud > small {
  display: none;
}

.match-achievement-showcase.is-hud .achievement-badges {
  flex-wrap: nowrap;
  gap: 3px;
  overflow: hidden;
}

.match-achievement-showcase.is-hud .match-danwaku-badge {
  margin-top: 3px;
  padding: 3px 7px;
  font-size: 0.58rem;
}

.hud-player:last-child .match-achievement-showcase.is-hud .match-danwaku-badge {
  justify-self: end;
}

.match-achievement-showcase.is-hud .achievement-badge {
  flex: 0 1 auto;
  padding: 3px 5px;
  font-size: 0.57rem;
}

.match-achievement-showcase.is-hud .achievement-badge > span {
  max-width: 72px;
}

.match-achievement-showcase.is-hud .achievement-badge small {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hud-player:last-child .match-achievement-showcase.is-hud .achievement-badges {
  justify-content: flex-end;
}

.match-achievement-showcase.is-result {
  width: 100%;
  margin: 0 0 16px;
  justify-items: center;
  text-align: center;
}

.match-achievement-showcase.is-result .achievement-badges {
  justify-content: center;
}

@media (max-width: 760px) {
  .match-achievement-showcase.is-match-found,
  .online-status-details > .match-achievement-showcase {
    padding: 12px;
  }

  .match-achievement-showcase.is-match-found .achievement-badges,
  .online-status-details > .match-achievement-showcase .achievement-badges,
  .match-achievement-showcase.is-result .achievement-badges {
    justify-content: flex-start;
  }

  .match-achievement-showcase.is-result {
    justify-items: stretch;
    text-align: left;
  }

  .match-achievement-showcase.is-match-found .match-danwaku-badge,
  .online-status-details > .match-achievement-showcase .match-danwaku-badge,
  .match-achievement-showcase.is-result .match-danwaku-badge {
    justify-self: start;
  }

  .match-achievement-showcase.is-hud .achievement-badge {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    justify-content: center;
    padding: 1px;
  }

  .match-achievement-showcase.is-hud .achievement-badge::before {
    display: none;
  }

  .match-achievement-showcase.is-hud .achievement-badge > span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .match-achievement-showcase.is-hud .achievement-badge i {
    width: 17px;
    height: 17px;
    font-size: 0.64rem;
  }
}

@media (max-width: 360px) {
  .match-achievement-showcase.is-hud .achievement-badges {
    gap: 2px;
  }

  .match-achievement-showcase.is-hud .achievement-badge {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
  }

  .match-achievement-showcase.is-hud .achievement-badge i {
    width: 13px;
    height: 13px;
    font-size: 0.54rem;
  }
}

@media (max-width: 340px) {
  .match-achievement-showcase.is-hud .achievement-badges {
    gap: 1px;
  }

  .match-achievement-showcase.is-hud .achievement-badge {
    width: 15px;
    height: 15px;
    flex-basis: 15px;
  }

  .match-achievement-showcase.is-hud .achievement-badge i {
    width: 11px;
    height: 11px;
    font-size: 0.48rem;
  }
}
