:root {
  --bg: #eef3fb;
  --card: #ffffff;
  --line: #d7e1ef;
  --text: #11203a;
  --muted: #61708b;
  --brand: #ff5f3a;
  --brand-deep: #254170;
  --accent: #11a98f;
  --ok: #10b77e;
  --danger: #d94848;
  --vp-color: #1d6d3f;
  --vp-bg: #e8f8ef;
  --vp-line: #9dd9b3;
  --sp-color: #6a3cc3;
  --sp-bg: #efe8ff;
  --sp-line: #cbb9f6;
  --top-h: 116px;
  --bottom-h: 62px;
  --group-dock-h: 34px;
  --gesture-gap: 12px;
  --dock-offset: 10px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 15% 8%, #dff4ff 0%, transparent 26%),
    radial-gradient(circle at 86% 95%, #ffe3da 0%, transparent 30%),
    var(--bg);
}

.boot-splash {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #0f1320;
  opacity: 1;
  transition: opacity 220ms ease;
}

.boot-splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-splash img {
  width: 75%;
  max-height: 44%;
  height: auto;
  object-fit: contain;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
  font-size: 0.82rem;
}

.ui-inline-icon {
  width: auto;
  height: 1.7em;
  object-fit: contain;
  vertical-align: -0.34em;
  margin: 0 4px;
  display: inline-block;
}

.page-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone-frame {
  position: relative;
  width: min(430px, 100%);
  height: min(860px, calc(100dvh - 36px));
  border-radius: 34px;
  border: 8px solid #1a1f2d;
  background: #0f1320;
  box-shadow: 0 26px 55px rgba(9, 17, 32, 0.36);
  padding: 8px;
}

.auth-wrap,
.game-shell {
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  background: var(--bg);
}

.auth-wrap {
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 12px 28px rgba(19, 35, 67, 0.1);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.auth-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.auth-brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.auth-card h1 {
  font-size: 1.32rem;
  letter-spacing: 0.2px;
}

.auth-card p {
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tab,
.menu-tab,
.btn,
.mission-card,
.video-card,
.booster-card {
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-tab {
  background: #edf2fb;
  color: #3a4f77;
  padding: 9px;
}

.auth-tab.active {
  background: var(--brand-deep);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 9px;
}

.auth-form label {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
}

input {
  width: 100%;
  border: 1px solid #ccd9ec;
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
}

.captcha {
  border: 1px dashed #bfd0e8;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 7px;
  background: #f5f9ff;
}

.btn {
  background: linear-gradient(95deg, var(--brand), #ff9150);
  color: #fff;
  padding: 9px 12px;
}

.auth-forgot-btn {
  width: 100%;
  font-size: 0.74rem;
  padding: 7px 10px;
  border-radius: 10px;
}

.btn-inline {
  width: 100%;
  padding: 8px 10px;
  font-size: 0.78rem;
}

.btn-dark {
  background: linear-gradient(95deg, #3a5079, #243654);
}

.btn-danger {
  background: linear-gradient(95deg, #d94b4b, #ab2f2f);
  color: #fff;
}

.btn-warn {
  background: linear-gradient(95deg, #c9962e, #9f6a12);
  color: #fff;
}

.btn-confirm {
  background: linear-gradient(95deg, var(--brand), #ff9150);
  color: #fff;
}

.btn-buy-cr {
  background: linear-gradient(95deg, #b8860b, #e3b341);
  color: #171209;
}

.btn-buy-rc {
  background: linear-gradient(95deg, #6a1b2a, #8f2f45);
  color: #fff1f4;
}

.btn-claim {
  background: linear-gradient(95deg, var(--brand), #ff9150);
}

.btn-finish {
  background: linear-gradient(95deg, #ff9b3d, #ff6f3d);
  color: #fff;
}

.btn-accel {
  background: linear-gradient(95deg, #3a5079, #243654);
  color: #fff;
}

.btn-abort {
  background: linear-gradient(95deg, #3a5079, #243654);
  color: #fff;
}

.game-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
}

.game-shell.profile-open .content-scroll {
  display: none;
}

.top-fixed {
  position: relative;
  grid-row: 1;
  inset: auto;
  min-height: calc(var(--top-h) + var(--safe-top));
  z-index: 20;
  background: rgba(238, 243, 251, 0.98);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #d6e0ef;
  padding: calc(5px + var(--safe-top)) 10px 4px;
  display: grid;
  gap: 3px;
}

.mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cl-logo {
  width: auto;
  height: 28px;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cl-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-btn {
  border: none;
  cursor: pointer;
}

.name-link {
  cursor: pointer;
}

.mini-head h2 {
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 900;
}

.mini-head p {
  color: var(--muted);
  font-size: 0.72rem;
}

#playerEmail {
  display: none;
}

.head-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.settings-wrap {
  position: relative;
  z-index: 20;
}

.icon-btn {
  border: 1px solid #cfdbec;
  background: #fff;
  color: #30466d;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.icon-img-btn {
  padding: 0;
}

.icon-img-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.settings-menu {
  position: absolute;
  right: 0;
  top: 46px;
  width: 220px;
  z-index: 40;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 30, 55, 0.2);
  padding: 6px;
  display: grid;
  gap: 4px;
}

.settings-menu button,
.settings-menu .settings-link {
  border: none;
  border-radius: 8px;
  background: #f3f7ff;
  color: #1f3356;
  text-align: left;
  padding: 8px 9px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.settings-menu button:hover,
.settings-menu .settings-link:hover {
  background: #e8effd;
}

.settings-divider {
  height: 1px;
  margin: 4px 8px 2px;
  background: var(--line);
}

.currency-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 6px;
}

.currency-row-reworked {
  grid-template-columns: 27fr 73fr;
  align-items: stretch;
}

.currency-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  display: grid;
  gap: 2px;
}

.currency-card span,
.currency-card small {
  color: var(--muted);
  font-size: 0.66rem;
}

.currency-card strong {
  font-size: 0.8rem;
}

.currency-row .currency-card:nth-child(1),
.currency-row .currency-card:nth-child(2) {
  text-align: center;
}

.level-line {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.level-line strong {
  font-size: 1.08rem;
}

.level-line span {
  font-size: 0.84rem;
}

.currency-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.topbar-right-grid {
  display: grid;
  grid-template-columns: 40fr 33fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.top-mini-card {
  padding: 4px 6px;
  min-height: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
}

.top-mini-card span {
  text-align: left;
}

.top-mini-card strong {
  text-align: right;
}

.top-mini-card span {
  font-size: 0.62rem;
}

.top-mini-card strong {
  font-size: 0.74rem;
}

.top-rank-card {
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-color: #e28b35;
  background: var(--card);
}

.top-rank-card span,
.top-rank-card strong {
  color: #f0a24a !important;
}

.currency-coin-card {
  padding: 5px 7px;
  align-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.currency-money-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.currency-money-row + .currency-money-row {
  border-top: 1px solid var(--line);
  padding-top: 4px;
  margin-top: 2px;
}

.currency-money-row span {
  text-align: left;
  font-size: 0.68rem;
  color: #f4f7ff;
}

.currency-money-row strong {
  text-align: right;
  font-size: 0.82rem;
  color: #f4f7ff;
}

.coin-cr {
  background: #6b5521;
  border-color: #a58d4b;
}

.coin-rc {
  background: #5a2230;
  border-color: #9d6271;
}

.currency-coin-card.is-pop {
  transform: scale(1.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.34);
  filter: brightness(1.08);
}

.currency-card.is-pop {
  transform: scale(1.045);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.28);
}

.level-card {
  position: relative;
  overflow: hidden;
  --level-pct: 0%;
}

.level-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #d9e0eb var(--level-pct), #ffffff var(--level-pct));
  z-index: 0;
}

.level-card > * {
  position: relative;
  z-index: 1;
}

.timer-mini {
  margin-top: 1px;
}

.timer-quick {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 7px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.timer-progress-wrap {
  position: relative;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
}

.timer-progress-bg {
  position: absolute;
  inset: 0;
  background: #e9f0fb;
}

.timer-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #0f8977);
  transition: width 0.25s ease;
}

.timer-inline-text {
  position: absolute;
  inset: 0;
  padding: 0 8px;
  display: grid;
  align-items: center;
  text-align: left;
  font-size: 0.66rem;
  font-weight: 700;
  color: #10314f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timer-mini-time {
  min-width: 48px;
  text-align: right;
  font-size: 0.74rem;
  font-weight: 800;
  color: #203f61;
}

.content-scroll {
  grid-row: 2;
  height: auto;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.profile-fullscreen {
  grid-row: 2;
  position: relative;
  inset: auto;
  z-index: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--bg);
  border: 0;
  border-radius: 0;
  padding: 10px;
  display: grid;
  align-content: start;
  gap: 10px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  isolation: isolate;
}

.profile-fullscreen .profile-full-head {
  display: none !important;
}

.profile-content-panel {
  padding-top: 8px;
}

.profile-switch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 2px;
}

.profile-switch-btn.active {
  background: var(--brand-deep);
  color: #fff;
}

.profile-video-date {
  text-align: right;
}

.profile-achievement-list {
  display: grid;
  gap: 8px;
}

.profile-achievement-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 0;
  cursor: pointer;
}

.profile-achievement-stage {
  border-right: 1px solid var(--line);
  background: #101723;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 8px 6px;
}

.profile-achievement-stage strong {
  font-size: 0.84rem;
  line-height: 1.2;
}

.profile-achievement-stage small {
  color: #8f4f4f;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
}

.profile-achievement-main {
  display: grid;
  gap: 4px;
  padding: 8px 10px;
}

.profile-achievement-top {
  display: block;
}

.profile-achievement-top strong {
  font-size: 0.92rem;
  text-align: left;
  font-weight: 700;
}

.profile-achievement-row small {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: left;
}

.profile-achievement-history {
  display: grid;
  gap: 0;
}

.profile-achievement-history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 5px 0;
  line-height: 1.2;
}

.profile-achievement-history-row:last-child {
  border-bottom: 0;
}

.profile-achievement-history-row span {
  font-weight: 700;
  font-size: 0.82rem;
}

.profile-achievement-history-row small {
  color: var(--muted);
  font-size: 0.72rem;
}

.content-fullscreen {
  position: absolute;
  inset: calc(var(--top-h) + var(--safe-top) + 8px) 10px calc(var(--bottom-h) + var(--safe-bottom) + 92px) 10px;
  z-index: 7;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 10px 10px;
  display: grid;
  align-content: start;
  gap: 10px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

.content-fullscreen .profile-full-head {
  margin: 0 -10px;
  padding: 10px 10px 10px;
}

.profile-full-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  padding: 10px 0 10px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
}

.profile-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-head-money {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #1b212d;
  color: #f4f8ff;
  min-height: 36px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  font-weight: 800;
  white-space: nowrap;
}

#closeProfileFsBtn {
  position: static;
  margin-left: auto;
  z-index: 20;
}

.profile-full-head h3 {
  margin: 0;
}

.view-panel {
  display: grid;
  gap: 10px;
}

.shop-grid {
  display: grid;
  gap: 10px;
}

.shop-back-overlay {
  position: absolute;
  top: calc(var(--top-h) + 18px);
  right: 18px;
  z-index: 12;
  padding: 7px 10px;
  font-size: 0.74rem;
}

.shop-card {
  border: 1px solid #d2dfef;
  border-radius: 14px;
  background: #f7fbff;
  padding: 13px 12px;
  display: grid;
  gap: 8px;
  min-height: 132px;
  box-shadow: 0 6px 16px rgba(20, 48, 86, 0.06);
}

.shop-card h5 {
  margin: 0;
  font-size: 0.95rem;
}

.shop-clickable {
  cursor: pointer;
}

.shop-clickable:active {
  transform: translateY(1px);
}

.shop-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.shop-meta {
  margin: 0;
  color: #566b89;
  font-size: 0.8rem;
  line-height: 1.35;
}

.shop-highlight {
  margin: 0;
  color: #1a3156;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.shop-status-badge {
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 4px 8px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.shop-status-badge.is-available {
  background: #e4f6eb;
  color: #17663f;
  border-color: #b7e4c7;
}

.shop-status-badge.is-owned {
  background: #e6efff;
  color: #1d4f9b;
  border-color: #bad0f5;
}

.shop-status-badge.is-locked {
  background: #f4f4f6;
  color: #4f5866;
  border-color: #d0d4db;
}

.shop-status-badge.is-feature {
  background: #fff5dc;
  color: #7c5c12;
  border-color: #f0dcaa;
}

.shop-status-badge.is-danger {
  background: #ffe5e5;
  color: #7e1e1e;
  border-color: #efb9b9;
}

.shop-type-feature {
  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 100%);
}

.shop-type-livestream {
  background: #ffe4e4;
}

.shop-type-consumable {
  background: linear-gradient(180deg, #f1fbff 0%, #f8fcff 100%);
}

.shop-type-category {
  background: linear-gradient(180deg, #f5f8ff 0%, #fbfdff 100%);
}

.shop-type-vp {
  background: linear-gradient(180deg, #e8f8ef 0%, #f4fcf7 100%);
}

.shop-type-sp {
  background: linear-gradient(180deg, #f0e9ff 0%, #f8f4ff 100%);
}

.shop-card-dim {
  opacity: 0.62;
  filter: saturate(0.72);
}

.shop-card .btn {
  margin-top: 2px;
}

.shop-category-compact {
  min-height: 0;
  text-align: left;
  padding-top: 12px;
  padding-bottom: 12px;
}

.shop-category-compact h5 {
  font-size: 1rem;
  text-align: left;
}

.shop-category-compact .shop-meta {
  font-size: 0.76rem;
  line-height: 1.35;
}

.btn-vp {
  background: #1f7d52;
  color: #fff;
  border-color: transparent;
}

.btn-vp:hover {
  background: #256f4f;
}

.btn-sp {
  background: #6f42c1;
  color: #fff;
  border-color: transparent;
}

.btn-sp:hover {
  background: #5f37a8;
}

.group-wrap {
  display: grid;
  gap: 8px;
}

.group-card {
  border: 1px solid #d5e2f4;
  border-radius: 11px;
  background: #f7fbff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.group-card h5 {
  margin: 0;
  font-size: 0.9rem;
}

.group-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.group-stats-grid article {
  border: 1px solid #d8e4f4;
  border-radius: 9px;
  padding: 7px 6px;
  background: #fff;
  display: grid;
  gap: 2px;
}

.group-stats-grid span {
  font-size: 0.66rem;
  color: #5c6f8d;
}

.group-stats-grid strong {
  font-size: 0.78rem;
}

.group-form-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.group-list,
.group-upgrade-list {
  display: grid;
  gap: 6px;
}

.group-row {
  border: 1px solid #dbe6f6;
  border-radius: 9px;
  background: #fff;
  padding: 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.group-row small {
  display: block;
  color: #5f7392;
  font-size: 0.68rem;
  margin-top: 2px;
}

.group-row-rich {
  align-items: flex-start;
}

.group-join-row {
  cursor: pointer;
  align-items: stretch;
}

.group-join-row .group-join-btn {
  align-self: stretch;
  min-height: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}

.group-row-actions {
  display: grid;
  gap: 6px;
}

.group-invite-card {
  margin-top: 4px;
}

.group-info-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.group-info-actions.single {
  grid-template-columns: minmax(0, 1fr);
}

.group-info-actions .btn {
  width: 100%;
}

.group-info-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.group-info-actions .btn {
  min-height: 30px;
  padding: 6px 6px;
  font-size: 0.66rem;
  border-radius: 9px;
}

.group-info-actions-toolbar {
  display: grid;
  grid-template-columns: 1.9fr repeat(3, 1fr);
  gap: 8px;
}

.group-action-invite {
  min-height: 40px !important;
  font-size: 0.72rem !important;
  font-weight: 800;
}

.group-action-icon {
  min-height: 40px !important;
  padding: 0 !important;
  display: grid;
  place-items: center;
}

.group-action-icon img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  display: block;
}

.group-setting-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
}

.group-setting-row-with-input {
  grid-template-columns: 40px minmax(0, 1fr) 132px;
}

.group-setting-label {
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 600;
}

.group-setting-input {
  width: 100%;
  min-width: 132px;
  padding: 7px 10px;
  text-align: right;
  font-weight: 700;
}

@media (max-width: 430px) {
  .group-setting-row-with-input {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .group-setting-row-with-input .group-setting-input {
    grid-column: 2;
    min-width: 0;
  }
}

.group-setting-check {
  appearance: none;
  width: 36px;
  height: 20px;
  margin: 0;
  display: inline-block;
  vertical-align: middle;
  border-radius: 999px;
  border: 1px solid #3c4455;
  background: #0e1118;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.group-setting-check:checked {
  background: #e77d24;
  border-color: #e77d24;
  box-shadow: 0 0 0 2px rgba(231, 125, 36, 0.22), 0 0 10px rgba(231, 125, 36, 0.28);
}

.group-setting-check::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #f2f4f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: transform 0.16s ease;
}

.group-setting-check:checked::after {
  transform: translateX(16px);
}

.group-members-list,
.group-chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}

.group-chat-list {
  padding-bottom: 6px;
}

.group-members-list li,
.group-chat-list li {
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
  padding: 6px 7px;
  font-size: 0.76rem;
}

.group-chat-list li {
  display: grid;
  gap: 2px;
}

.profile-hero {
  background: linear-gradient(125deg, #eaf2ff, #fff0e8);
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  border-bottom: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #ff7048, #ff4f7b);
}

.level-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  background: linear-gradient(135deg, #3f6ec4, #2f4f8c);
  border: 1px solid #4d6fa8;
}

.level-avatar small {
  font-size: 0.62rem;
  opacity: 0.9;
}

.level-avatar strong {
  font-size: 1rem;
  line-height: 1;
}

.profile-hero h3 {
  font-size: 0.98rem;
}

.profile-hero p {
  color: var(--muted);
  font-size: 0.78rem;
}

.profile-group-btn {
  margin-top: 5px;
  border: 1px solid #d6e2f3;
  border-radius: 999px;
  background: #f4f8ff;
  color: #415d86;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: left;
  justify-self: start;
  cursor: default;
}

.profile-group-btn.is-link {
  cursor: pointer;
  color: #1c4f98;
  border-color: #b8cef1;
  background: #eaf2ff;
}

.profile-stats {
  display: grid;
  gap: 8px;
}

.profile-stats-row {
  display: grid;
  gap: 8px;
}

.profile-stats-row-top {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-stats-row-types {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-stats-row-types .profile-stat-card {
  display: grid !important;
  align-content: center;
  justify-items: center;
  gap: 2px;
  justify-content: center;
}

.profile-stats-row-types .profile-stat-card span,
.profile-stats-row-types .profile-stat-card strong {
  text-align: center !important;
  justify-self: center;
}

.profile-stat-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  padding: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  text-align: center;
  min-height: 58px;
}

.profile-stat-card span {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.profile-stat-card strong {
  font-size: 0.95rem;
  text-align: center;
}

.profile-stat-rank {
  border-color: #e28b35;
  background: var(--card);
  color: #f0a24a;
  cursor: pointer;
  font: inherit;
}

.profile-stat-rank span,
.profile-stat-rank strong {
  color: #f0a24a;
}

.profile-stat-card.stat-short {
  background: linear-gradient(160deg, #1f3a62, #182a42);
  border-color: #2f4f82;
}

.profile-stat-card.stat-video {
  background: linear-gradient(160deg, #5a4a1d, #3d3316);
  border-color: #776125;
}

.profile-stat-card.stat-podcast {
  background: linear-gradient(160deg, #214b2f, #173522);
  border-color: #2f6842;
}

.profile-stat-card.stat-livestream {
  background: linear-gradient(160deg, #5e232c, #431920);
  border-color: #7f323a;
}

.profile-stat-card.stat-short span,
.profile-stat-card.stat-short strong,
.profile-stat-card.stat-video span,
.profile-stat-card.stat-video strong,
.profile-stat-card.stat-podcast span,
.profile-stat-card.stat-podcast strong,
.profile-stat-card.stat-livestream span,
.profile-stat-card.stat-livestream strong {
  color: #eef3ff;
}

.profile-type-stat {
  cursor: pointer;
}

.profile-rank-btn {
  border: 1px solid #d4deef;
  border-radius: 10px;
  background: #f3f7ff;
  color: #27466f;
  padding: 9px;
  display: grid;
  gap: 2px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  min-height: 56px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.panel h4 {
  font-size: 0.96rem;
}

.btn-small {
  padding: 6px 10px;
  font-size: 0.72rem;
}

.btn-xs {
  padding: 5px 8px;
  font-size: 0.68rem;
}

.subhead {
  margin-top: 4px;
  font-size: 0.86rem;
  color: #334f78;
}

.home-panel {
  gap: 10px;
}

.home-panel .panel-head h4 {
  width: 100%;
  text-align: center;
}

.trend-breaking-panel {
  padding: 0;
  overflow: hidden;
}

.trend-ticker {
  background: linear-gradient(90deg, #9f2f1b, #c74d1c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  height: 34px;
  display: block;
}

.trend-ticker-inner {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.trend-ticker-text {
  display: inline-block;
  color: #fff4eb;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: left;
}

.trend-ticker-inner.is-marquee-once .trend-ticker-text {
  animation-name: trendTickerOnce;
  animation-duration: var(--ticker-duration, 6000ms);
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  animation-delay: 1500ms;
}

.trend-ticker-empty {
  color: #fff4eb;
  font-size: 0.84rem;
  font-weight: 700;
}

@keyframes trendTickerOnce {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(var(--ticker-shift, 0px) * -1));
  }
}

.home-duo-container {
  padding: 0;
}

.home-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-feature-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 12px 10px 10px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  width: 100%;
}

.home-feature-card h4 {
  margin: 0;
  font-size: 0.9rem;
}

.home-feature-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.home-feature-label {
  margin: 2px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.home-feature-label-inline {
  margin: 0;
}

.home-feature-label-success {
  color: #39b35f;
  font-size: 0.86rem;
  font-weight: 800;
}

.home-feature-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}

.home-feature-subtext {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.home-feature-text .streak-days {
  color: #e77d24;
  font-weight: 800;
}

.home-streak-current {
  color: #e77d24;
  font-weight: 800;
}

#openInboxBtn.home-feature-card,
#replyCommentsBtn.home-feature-card {
  border: 1px solid var(--line);
  background: var(--card);
}

#openInboxBtn.home-feature-card:disabled,
#replyCommentsBtn.home-feature-card:disabled {
  opacity: 1;
}

.trend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.trend-card {
  border: 1px solid #d7e3f4;
  border-radius: 11px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 2px;
  align-content: center;
  text-align: center;
}

.trend-card strong {
  font-size: 0.9rem;
}

.trend-card small {
  color: #345277;
  font-size: 0.72rem;
}

.trend-stable {
  background: linear-gradient(145deg, #ebf7ff, #f7fcff);
}

.trend-balanced {
  background: linear-gradient(145deg, #eef3ff, #f8f9ff);
}

.trend-risky {
  background: linear-gradient(145deg, #fff0ed, #fff8f7);
}

.streak-card {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: center;
}

.streak-card h4 {
  margin: 0;
  font-size: 0.92rem;
  text-align: left;
}

.streak-card .muted {
  margin: 0;
  text-align: center;
}

.streak-card .btn {
  justify-self: center;
  margin-top: 8px;
}

.streak-card-clickable {
  cursor: pointer;
}

.streak-tier-list {
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.streak-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.streak-tier-row:last-child {
  border-bottom: 0;
}

.streak-tier-row span {
  color: var(--muted);
}

.streak-tier-row strong {
  font-size: 0.85rem;
}

.streak-tier-current span,
.streak-tier-current strong {
  color: #e77d24;
}

.streak-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
  margin: 2px 0 0;
}

.streak-highlight {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
}

.streak-highlight .streak-days {
  color: #e77d24;
}

.comments-card {
  display: grid;
  gap: 8px;
}

.comments-card-achievements {
  padding: 3px 0;
}

.comments-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comments-row-achievements {
  min-height: 30px;
  padding: 4px 0;
}

.comments-row-clickable {
  cursor: pointer;
}

.comments-status-right {
  text-align: right;
  white-space: nowrap;
}

.comments-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.comments-status-text {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.2;
}

.comments-reply-btn {
  width: 136px;
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}

#achievementsStatusText {
  font-size: 0.98rem;
  font-weight: 800;
}

.home-page-title {
  margin: 0 2px 8px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #cfd6e4;
}

.leaderboard-dock {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--bottom-h) + var(--safe-bottom) + var(--gesture-gap) + 8px);
  z-index: 12;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  background: #f9fbff;
}

.group-dock {
  position: static;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(16, 21, 31, 0.98) !important;
}

.group-sub-btn {
  border-radius: 0;
  border: none !important;
  border-right: 1px solid #1f2a3a;
  background: rgba(16, 21, 31, 0.98) !important;
  color: #9ea7b7 !important;
  padding: 7px 8px;
  font-size: 0.74rem;
  opacity: 1;
  box-shadow: none !important;
}

.group-sub-btn.active {
  background: #444b57 !important;
  color: #f2f5fb !important;
}

.group-sub-btn:last-child {
  border-right: none;
}

.group-chat-dock {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(var(--safe-bottom) + var(--gesture-gap) + var(--bottom-h) + var(--group-dock-h) + 8px);
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.group-chat-dock input {
  padding: 9px 10px;
}

.group-chat-dock .btn {
  min-width: 82px;
}

.content-scroll.has-floating-dock {
  padding-bottom: 74px;
}

.content-scroll.has-group-chat-dock {
  padding-bottom: 116px;
}

.lb-mode-toggle {
  display: flex;
  gap: 6px;
}

.lb-mode-btn {
  padding: 5px 8px;
  font-size: 0.68rem;
  opacity: 0.75;
}

.lb-mode-btn.active {
  opacity: 1;
}

.lb-sort-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334b72;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
  padding: 0;
  border-radius: 7px;
  text-decoration: none;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.lb-sort-trigger.active {
  color: #f4f7ff;
  background: transparent;
  text-decoration: none;
}

.lb-sort-trigger:hover,
.lb-sort-trigger:focus,
.lb-sort-trigger:focus-visible,
.lb-sort-trigger:active {
  text-decoration: none;
  background: transparent;
}

.lb-head-static {
  cursor: default;
  text-decoration: none !important;
}

.lb-table-wrap {
  border: 1px solid #d9e4f4;
  border-radius: 10px;
  overflow: hidden;
  background: #f9fbff;
  margin-bottom: 0;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.lb-table th,
.lb-table td {
  font-size: 0.78rem;
  padding: 8px 7px;
  border-bottom: 1px solid #dce6f4;
  text-align: left;
}

.lb-table th:nth-child(1),
.lb-table td:nth-child(1) {
  width: 15%;
}

.lb-table th:nth-child(2),
.lb-table td:nth-child(2) {
  width: 45%;
}

.lb-table th:nth-child(3),
.lb-table td:nth-child(3) {
  width: 25%;
}

.lb-table th:nth-child(4),
.lb-table td:nth-child(4) {
  width: 15%;
}

.lb-table th:nth-child(3),
.lb-table th:nth-child(4),
.lb-table td:nth-child(3),
.lb-table td:nth-child(4) {
  text-align: right;
}

.lb-table td:nth-child(2),
.lb-table th:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.lb-table th {
  background: #edf3ff;
  color: #334b72;
}

.lb-table tr:last-child td {
  border-bottom: none;
}

#viewLeaderboard .panel {
  padding: 10px 0 0;
}

#viewLeaderboard .panel-head {
  padding: 0 10px;
}

#viewLeaderboard .lb-table-wrap {
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.lb-row-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.lb-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.lb-search input {
  padding: 9px 10px;
}

.lb-search .btn {
  padding: 8px 10px;
  font-size: 0.74rem;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.inline-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.prep-head {
  align-items: flex-start;
}

.studio-head {
  align-items: flex-start;
}

.studio-head-left {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.studio-art-head {
  margin-top: -1px;
}

.prep-head-left {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.prep-head-right {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.studio-head-right {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
}

.studio-phenomenon-hint {
  display: block;
  width: 100%;
  margin-top: 1px;
  margin-bottom: 8px;
  border: 1px solid #8b2d2d;
  border-radius: 10px;
  background: #421616;
  color: #ffd5d5;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
}

.prep-head-right .badge-strong {
  font-size: 0.76rem;
  padding: 5px 9px;
  background: #e8f8ef;
  border-color: #9dd9b3;
  color: #1d6d3f;
  font-weight: 800;
}

.prep-refresh-btn {
  width: auto;
  justify-self: start;
  padding: 8px 12px;
  font-size: 0.76rem;
  margin-bottom: 16px;
}

#refreshStudioBtn {
  margin-bottom: 0;
}

#openPrepBoostsBtn {
  background: linear-gradient(95deg, #1f985f, #16794a);
  font-size: 0.68rem;
  padding: 5px 8px;
}

#openStudioBoostsBtn {
  background: linear-gradient(95deg, #7a49d6, #5f30ba);
  color: #f8f3ff;
  font-size: 0.68rem;
  padding: 5px 8px;
}

.badge {
  border: 1px solid #c8d7ee;
  border-radius: 999px;
  background: #f2f7ff;
  color: #304970;
  font-size: 0.7rem;
  padding: 4px 8px;
}

.badge-strong {
  background: #e6f4ff;
  border-color: #b6d8ff;
  color: #1e4f82;
  font-weight: 800;
}

.badge-sp {
  background: var(--sp-bg);
  border-color: var(--sp-line);
  color: var(--sp-color);
  font-size: 0.76rem;
  padding: 5px 9px;
  font-weight: 800;
}

.mission-status {
  border: 1px solid #b9d5fb;
  background: linear-gradient(120deg, #f8fcff, #eef6ff);
  text-align: center;
  padding: 14px;
}

#videoStatusCard {
  padding: 22px 16px 18px;
  display: grid;
  gap: 24px;
}

#sprintStatusCard {
  padding: 22px 16px 18px;
  display: grid;
  gap: 24px;
}

.sprint-status-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.sprint-status-icon {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #1a2331;
  flex: 0 0 auto;
}

.sprint-status-head h4 {
  text-align: center;
}

.sprint-status-table {
  width: min(96%, 420px);
  margin: 2px auto 2px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  align-items: start;
  text-align: left;
  font-size: 0.88rem;
}

.sprint-status-label {
  font-weight: 800;
  color: #dce6f7;
  text-align: right;
  justify-self: end;
  padding-right: 2px;
}

.sprint-status-value {
  color: #f1f5ff;
  justify-self: start;
}

.sprint-status-table > .sprint-status-label:nth-child(5),
.sprint-status-table > .sprint-status-value:nth-child(6) {
  margin-top: 8px;
}

.sprint-status-rewards {
  display: grid;
  gap: 4px;
}

.story-text {
  color: #364c73;
  font-size: 1rem;
  line-height: 1.45;
  max-width: 95%;
  margin: 0 auto;
}

.story-text.italic {
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 4px;
  max-width: 96%;
}

.video-status-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  text-align: left;
  font-size: 0.84rem;
  max-width: 96%;
  margin: 4px auto 2px;
}

#sprintMetaSp,
#videoMetaCost {
  color: var(--sp-color);
  font-weight: 800;
}

.progress-inline-time {
  position: relative;
  max-width: 98%;
  height: 34px;
  margin: 18px auto 20px;
}

.accel-inline-row {
  display: flex;
  justify-content: flex-end;
  width: 90%;
  margin: -10px auto 2px;
}

.accel-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  padding: 6px 10px;
  min-width: 140px;
}

.accel-btn-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}

#videoStatusTimeInline,
#sprintStatusTimeInline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  -webkit-text-stroke: 0.35px #10243b;
  text-shadow:
    0 1px 0 #10243b,
    0 -1px 0 #10243b,
    1px 0 0 #10243b,
    -1px 0 0 #10243b;
}

.sprint-focus-bar {
  max-width: 90%;
  margin: 0 auto;
}

.bar {
  width: 100%;
  height: 30px;
  border-radius: 999px;
  overflow: hidden;
  background: #e7eef9;
}

.bar > div {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0f8a78);
  transition: width 0.25s ease;
}

.mission-status-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 8px;
}

.mission-actions {
  display: flex;
  gap: 7px;
}

.mission-actions-vertical {
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.mission-actions-vertical .btn {
  width: min(280px, 100%);
}

.btn-cancel-small {
  width: min(190px, 100%) !important;
  padding: 7px 10px;
  font-size: 0.82rem;
}

.mission-grid,
.video-grid,
.booster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.mission-grid {
  grid-template-columns: 1fr;
}

.video-grid {
  grid-template-columns: 1fr;
}

.studio-form {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.studio-form .subhead:first-of-type {
  margin-top: 6px;
}

.studio-form .subhead:not(:first-of-type) {
  margin-top: 12px;
}

.studio-form label {
  display: grid;
  gap: 4px;
  font-size: 0.8rem;
}

.studio-form select {
  width: 100%;
  border: 1px solid #ccd9ec;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}

#studioLengthHint {
  display: none;
}

.studio-livestream-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #151d2b;
}

.studio-livestream-panel label {
  color: #f2f6ff;
  font-weight: 800;
  text-align: center;
}

.studio-livestream-panel input[type="range"] {
  width: 100%;
  accent-color: #df4a4a;
}

.studio-livestream-value {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: baseline;
  color: #f2f6ff;
}

.studio-livestream-value strong {
  font-size: 1.1rem;
}

.studio-livestream-value span {
  color: var(--sp-color);
  font-weight: 900;
}

.studio-livestream-rewards {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.studio-livestream-rewards h4 {
  margin: 0;
  text-align: center;
}

.studio-livestream-rewards div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
}

.studio-type-live-note {
  display: grid;
  place-items: center;
  color: #f1d3d3;
  font-weight: 800;
}

.mission-card,
.video-card,
.booster-card {
  background: #f7fbff;
  border: 1px solid #d6e3f4;
  color: var(--text);
  text-align: left;
  padding: 10px;
  display: grid;
  gap: 7px;
  min-height: 124px;
}

.boost-row {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 10px;
  align-items: stretch;
  text-align: left;
  min-height: 126px;
}

.boost-letter {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #232d3f;
  color: #f1f5ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.02;
}

.boost-letter small {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.65px;
  opacity: 1;
  text-transform: uppercase;
}

.boost-letter-vp {
  background: var(--vp-color);
  border-color: var(--vp-color);
  color: #f3fff8;
}

.boost-letter-sp {
  background: var(--sp-color);
  border-color: var(--sp-color);
  color: #f8f1ff;
}

.boost-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.boost-title {
  font-size: 0.84rem;
  font-weight: 800;
}

.boost-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.boost-body .boost-picker {
  margin-top: auto;
}

.boost-active-meta {
  color: var(--ok);
  font-weight: 700;
}

.boost-locked-meta {
  color: #aab1bf;
  font-style: italic;
}

.modal-tone-vp {
  color: var(--vp-color) !important;
}

.modal-tone-sp {
  color: var(--sp-color) !important;
}

.mission-card {
  text-align: left;
  gap: 8px;
}

.mission-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mission-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #1a2331;
  object-fit: cover;
  flex: 0 0 auto;
}

.mission-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.mission-title {
  font-size: 0.94rem;
  line-height: 1.2;
  text-align: left;
}

.mission-story {
  font-size: 0.76rem;
  line-height: 1.42;
  margin: 0;
  max-width: 100%;
}

.mission-divider {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2px 0 0;
}

.mission-meta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.78rem;
  color: #dfe6f5;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
  align-items: center;
}

.mission-duration-boost {
  color: #1d8a51;
  font-weight: 700;
}

.mission-vp-green {
  color: #1d8a51;
  font-weight: 700;
}

.mission-reward {
  font-size: 0.86rem;
  color: #1f4272;
  width: 100%;
  text-align: center;
}

.cooperation-wrap {
  display: grid;
  gap: 10px;
}

.cooperation-slot-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.coop-slot-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.coop-slot-btn.active {
  background: #3d4657;
}

.cooperation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #111924;
  color: var(--text);
  padding: 9px;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  text-align: left;
  align-items: start;
}

.cooperation-card-media {
  width: 66px;
  height: 66px;
  border-radius: 10px;
  overflow: hidden;
  background: #0b111a;
  border: 1px solid #273449;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cooperation-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cooperation-card-body {
  display: grid;
  gap: 6px;
}

.cooperation-title {
  margin: 0;
  font-size: 0.92rem;
}

.cooperation-requirement {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.cooperation-line {
  font-size: 0.78rem;
  color: #d9e2f2;
}

.cooperation-sign-btn {
  width: fit-content;
}

.cooperation-detail-card {
  text-align: left;
  gap: 10px;
}

.cooperation-detail-card .mission-title,
.cooperation-detail-card .mission-story {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.cooperation-detail-process {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.cooperation-detail-meta {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
}

.video-card.active {
  border-color: #6d95c7;
  box-shadow: inset 0 0 0 1px #6d95c7;
}

.btn-claim:disabled {
  background: #9ba8bc;
  cursor: not-allowed;
}

.btn-finish:disabled,
.btn-accel:disabled,
.btn-abort:disabled {
  background: #8693a8;
  color: #d9e1ee;
  cursor: not-allowed;
}

.btn:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  filter: grayscale(0.18);
}

.mission-card:hover,
.video-card:hover,
.booster-card:hover {
  border-color: #9fbde4;
}

.mission-card.empty-state {
  cursor: default;
  pointer-events: none;
}

.mission-card.empty-state:hover {
  border-color: var(--line);
}

.mission-card.empty-state strong {
  font-size: 1.02rem;
}

.mission-card.empty-state .muted {
  font-size: 0.9rem;
  line-height: 1.45;
}

.mission-card.empty-state.rich-state strong {
  font-size: 1.02rem;
  letter-spacing: 0;
  font-weight: 600;
}

.mission-card.empty-state.rich-state .muted {
  font-size: 0.96rem;
  line-height: 1.5;
}

.mission-card.empty-state .state-title {
  margin: 0 0 14px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.mission-card.empty-state .state-copy {
  margin: 0 0 14px;
}

.mission-card.empty-state .muted,
.mission-card.empty-state .muted em {
  font-weight: 400;
}

.mission-card.empty-state .state-nextline {
  display: block;
  margin-top: 0;
}

.prep-daydone {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 8px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.prep-daydone-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.prep-daydone-title {
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.3;
}

.prep-daydone-copy {
  margin: 0;
  max-width: 92%;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
}

.prep-daydone-next {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.prep-daydone-countdown {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.prep-daydone-time {
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.2;
}

.coop-locked {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 8px 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 20px;
}

.coop-locked-icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
  display: block;
}

.coop-locked-copy {
  margin: 0;
  max-width: 94%;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--muted);
}

.coop-locked-title {
  font-size: 1.24rem;
  font-weight: 900;
  line-height: 1.3;
}

.coop-locked-next {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.coop-locked-points {
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.2;
}

.coop-locked-unlock {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.group-wrap.with-dock {
  margin-bottom: 8px;
}

.group-wrap.with-dock.chat-active {
  margin-bottom: 8px;
  padding-bottom: 72px;
}

.group-wrap {
  --group-theme-bg: transparent;
  --group-theme-btn: #1e2b40;
  --group-theme-btn-border: #3a4a63;
  --group-theme-btn-active: #46536c;
  background: var(--group-theme-bg);
  border-radius: 12px;
}

.group-members-section {
  border: none;
  background: transparent;
  padding: 0;
}

.group-chat-section {
  border: none;
  background: transparent;
  padding: 0;
}

.group-info-layout {
  display: grid;
  gap: 8px;
}

.group-info-head {
  text-align: center;
}

.group-head-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.group-title {
  font-size: 1.34rem;
  margin: 2px 0 4px;
  text-align: center;
  font-weight: 900;
}

.group-founded {
  font-size: 0.76rem;
  margin: 2px 0 6px;
  text-align: center;
  white-space: normal;
}

.group-search-status {
  margin: 0 0 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.group-info-keystats {
  display: grid;
  gap: 8px;
}

.group-info-row {
  display: grid;
  gap: 8px;
}

.group-info-row.row-top {
  grid-template-columns: 1fr 1fr;
}

.group-info-row.row-bottom {
  grid-template-columns: 1fr 1fr;
}

.group-info-kpi {
  border: 1px solid #2e3b52;
  border-radius: 10px;
  background: #1a2331;
  padding: 10px 9px;
  display: grid;
  gap: 4px;
}

.group-info-kpi span {
  font-size: 0.72rem;
  color: #c8d2e4;
}

.group-info-kpi strong {
  font-size: 0.96rem;
  color: #f3f7ff;
}

.group-preview-members-btn {
  width: 100%;
  text-align: center;
  border: 1px solid #2e3b52;
  cursor: pointer;
}

.group-preview-back {
  z-index: 14;
}

.group-preview-topstats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.group-preview-stat {
  text-align: center;
  justify-items: center;
  align-content: center;
  width: 100%;
}

.group-preview-stat span,
.group-preview-stat strong {
  text-align: center;
}

.group-preview-bottomstats {
  grid-template-columns: 1fr 1fr;
}

.group-info-kpi-small strong {
  font-size: 0.96rem;
}

.group-kasse {
  position: relative;
}

.group-kasse-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.group-kasse-value .btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 8px;
  font-size: 0.9rem;
}

.group-wrap.group-theme-classic .group-card,
.group-wrap.group-theme-classic .group-members-list li,
.group-wrap.group-theme-classic .group-chat-list li {
  background: #1a2331;
  border-color: #2e3b52;
}

.group-wrap.group-theme-classic {
  --group-theme-bg: linear-gradient(180deg, #121824, #101621);
  --group-theme-btn: #1f2d43;
  --group-theme-btn-border: #3a4a63;
  --group-theme-btn-active: #4a556c;
}

.group-wrap.group-theme-neon .group-card,
.group-wrap.group-theme-neon .group-members-list li,
.group-wrap.group-theme-neon .group-chat-list li {
  background: #161a2d;
  border-color: #36d8ff;
}

.group-wrap.group-theme-neon {
  --group-theme-bg: linear-gradient(180deg, #0f1422, #0e1629);
  --group-theme-btn: #173149;
  --group-theme-btn-border: #36d8ff;
  --group-theme-btn-active: #265679;
}

.group-wrap.group-theme-sunset .group-card,
.group-wrap.group-theme-sunset .group-members-list li,
.group-wrap.group-theme-sunset .group-chat-list li {
  background: #2a1f24;
  border-color: #ff8f66;
}

.group-wrap.group-theme-sunset {
  --group-theme-bg: linear-gradient(180deg, #21161a, #2b1a1f);
  --group-theme-btn: #46262d;
  --group-theme-btn-border: #ff8f66;
  --group-theme-btn-active: #6a333d;
}

.group-wrap.group-theme-forest .group-card,
.group-wrap.group-theme-forest .group-members-list li,
.group-wrap.group-theme-forest .group-chat-list li {
  background: #1b2b24;
  border-color: #3ea375;
}

.group-wrap.group-theme-forest {
  --group-theme-bg: linear-gradient(180deg, #132019, #1a2b21);
  --group-theme-btn: #234536;
  --group-theme-btn-border: #3ea375;
  --group-theme-btn-active: #2f664d;
}

.group-wrap.group-theme-ocean .group-card,
.group-wrap.group-theme-ocean .group-members-list li,
.group-wrap.group-theme-ocean .group-chat-list li {
  background: #172734;
  border-color: #4ea6d8;
}

.group-wrap.group-theme-ocean {
  --group-theme-bg: linear-gradient(180deg, #111f2b, #162837);
  --group-theme-btn: #21445f;
  --group-theme-btn-border: #4ea6d8;
  --group-theme-btn-active: #2f5f83;
}

.group-wrap.group-theme-violet .group-card,
.group-wrap.group-theme-violet .group-members-list li,
.group-wrap.group-theme-violet .group-chat-list li {
  background: #231d33;
  border-color: #9b79de;
}

.group-wrap.group-theme-violet {
  --group-theme-bg: linear-gradient(180deg, #1b1728, #241c36);
  --group-theme-btn: #3c2f5f;
  --group-theme-btn-border: #9b79de;
  --group-theme-btn-active: #564485;
}

.group-wrap.group-theme-crimson .group-card,
.group-wrap.group-theme-crimson .group-members-list li,
.group-wrap.group-theme-crimson .group-chat-list li {
  background: #311b24;
  border-color: #cf6d8f;
}

.group-wrap.group-theme-crimson {
  --group-theme-bg: linear-gradient(180deg, #27141b, #321923);
  --group-theme-btn: #5a2637;
  --group-theme-btn-border: #cf6d8f;
  --group-theme-btn-active: #7c344b;
}

.group-wrap.group-theme-slate .group-card,
.group-wrap.group-theme-slate .group-members-list li,
.group-wrap.group-theme-slate .group-chat-list li {
  background: #1f2630;
  border-color: #8b9bb0;
}

.group-wrap.group-theme-slate {
  --group-theme-bg: linear-gradient(180deg, #161b23, #1f2630);
  --group-theme-btn: #384758;
  --group-theme-btn-border: #8b9bb0;
  --group-theme-btn-active: #4b5f75;
}

.group-wrap.group-theme-mint .group-card,
.group-wrap.group-theme-mint .group-members-list li,
.group-wrap.group-theme-mint .group-chat-list li {
  background: #1c2d2a;
  border-color: #66c0a6;
}

.group-wrap.group-theme-mint {
  --group-theme-bg: linear-gradient(180deg, #13221f, #1b2d2a);
  --group-theme-btn: #2b5a52;
  --group-theme-btn-border: #66c0a6;
  --group-theme-btn-active: #3a756a;
}

.group-wrap.group-theme-amber .group-card,
.group-wrap.group-theme-amber .group-members-list li,
.group-wrap.group-theme-amber .group-chat-list li {
  background: #2e281e;
  border-color: #d7a862;
}

.group-wrap.group-theme-amber {
  --group-theme-bg: linear-gradient(180deg, #201a13, #2d241a);
  --group-theme-btn: #5a4529;
  --group-theme-btn-border: #d7a862;
  --group-theme-btn-active: #7a5d33;
}

.group-wrap[class*="group-theme-"] .group-info-actions .btn,
.group-wrap[class*="group-theme-"] .group-sub-btn,
.group-wrap[class*="group-theme-"] .group-chat-dock .btn {
  background: var(--group-theme-btn) !important;
  border-color: var(--group-theme-btn-border) !important;
  color: #f2f6ff !important;
}

.group-wrap[class*="group-theme-"] .group-sub-btn.active {
  background: var(--group-theme-btn-active) !important;
}

.group-wrap[class*="group-theme-"] .group-chat-dock {
  border-color: var(--group-theme-btn-border) !important;
}

.group-customize-form {
  gap: 10px;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.group-customize-scroll {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding-right: 2px;
}

.group-customize-footer {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  background: linear-gradient(180deg, rgba(12, 18, 27, 0), rgba(12, 18, 27, 0.9));
}

.group-font-palette {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.group-font-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #182131;
  color: #eaf0fd;
  text-align: center;
  padding: 8px;
  display: grid;
  gap: 2px;
  min-height: 42px;
  place-items: center;
}

.group-font-option-preview {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-font-option.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.group-color-palette,
.group-theme-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.group-size-palette,
.group-style-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.group-style-palette {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-size-option,
.group-style-option {
  border: 1px solid #2f3b52;
  border-radius: 10px;
  background: #151d2b;
  color: #eaf0fd;
  min-height: 40px;
  padding: 6px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 800;
}

.group-style-option:nth-child(2) {
  font-style: italic;
}

.group-style-option:nth-child(3) {
  text-decoration: underline;
}

.group-size-option.active,
.group-style-option.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.group-color-option,
.group-theme-option {
  border: 1px solid #2f3b52;
  border-radius: 10px;
  background: #151d2b;
  padding: 6px;
  display: grid;
  place-items: center;
}

.group-color-option-swatch,
.group-theme-option-swatch {
  width: 100%;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.group-color-option.active,
.group-theme-option.active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

@media (max-width: 420px) {
  .group-info-kpi {
    padding: 9px 8px;
  }

  .group-info-kpi span {
    font-size: 0.7rem;
  }

  .group-info-kpi strong {
    font-size: 0.9rem;
  }

  .group-info-kpi-small strong {
    font-size: 0.84rem;
  }
}

.group-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.group-upgrade-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 196px;
}

.group-upgrade-card h4 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.25;
  text-align: center;
  min-height: 2.4em;
}

.group-upgrade-level {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: left;
  line-height: 1.35;
}

.group-upgrade-card .muted {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.5;
  text-align: left;
  padding-bottom: 4px;
}

.group-upgrade-card .btn {
  margin-top: auto;
  width: 100%;
  height: 32px;
}

.group-members-section .group-members-list li {
  border: none;
  background: transparent;
  padding: 0;
}

.group-members-head {
  margin: 0 0 8px;
  font-size: 0.82rem;
  color: #d4dbee;
  font-weight: 700;
}

.group-member-btn {
  width: 100%;
  border: 1px solid #2e3b52;
  border-radius: 8px;
  background: #1a2331;
  color: #eef3ff;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  padding: 10px 10px;
  min-height: 56px;
  cursor: pointer;
}

.group-member-role {
  font-size: 0.74rem;
  color: #c8d2e4;
  font-weight: 800;
}

.group-member-name {
  font-size: 0.86rem;
  color: #f3f7ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.group-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2ad06f;
  box-shadow: 0 0 0 1px rgba(42, 208, 111, 0.28);
  display: inline-block;
}

.group-info-kpi .group-online-count {
  color: #2ad06f;
  font-weight: 700;
}

.group-member-stats {
  font-size: 0.74rem;
  color: #d2dced;
  text-align: right;
  display: grid;
  gap: 2px;
}

.group-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.group-chat-head em {
  font-size: 0.68rem;
  color: var(--muted);
  font-style: italic;
}

.group-chat-user {
  border: none;
  background: transparent;
  color: #f3f7ff;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.modal-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.accelerator-amount-row {
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.accelerator-amount-label {
  display: block;
  width: 100%;
  text-align: center;
}

.accelerator-step-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
}

.accelerator-amount-text {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1;
}

.member-action-btn {
  width: 100%;
  min-height: 36px;
}

.rank-current-option:disabled {
  background: #ff8a1d;
  color: #1f1205;
  opacity: 0.65;
  border-color: transparent;
}

.weekly-leaders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.weekly-podium-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121823;
  padding: 10px 8px;
  display: grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  font: inherit;
  min-height: 88px;
}

.weekly-podium-item:hover {
  border-color: #495973;
}

.weekly-podium-rank {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.weekly-podium-name {
  font-size: 0.84rem;
  line-height: 1.1;
}

.weekly-podium-followers {
  color: var(--muted);
  font-size: 0.7rem;
}

.mission-card:disabled,
.video-card:disabled,
.booster-card:disabled {
  opacity: 0.66;
  cursor: not-allowed;
}

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

.list li {
  border: 1px solid #dbe4f2;
  background: #f8fafe;
  border-radius: 9px;
  padding: 8px;
  font-size: 0.8rem;
}

.profile-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-video-tile {
  border: 1px solid #d5e2f4;
  border-radius: 10px;
  background: linear-gradient(160deg, #edf3ff, #fff4ed);
  min-height: 142px;
  display: grid;
  align-content: end;
  text-align: left;
  gap: 2px;
  padding: 9px;
  color: #1a3255;
  position: relative;
  padding-top: 24px;
}

.profile-video-tile.type-short {
  background: linear-gradient(160deg, #e8f1ff, #f5f9ff);
}

.profile-video-tile.type-video {
  background: linear-gradient(160deg, #fff7df, #fffef2);
}

.profile-video-tile.type-podcast {
  background: linear-gradient(160deg, #e7f7e8, #f2fff3);
}

.profile-video-tile.type-livestream {
  background: linear-gradient(160deg, #ffe8e8, #fff3f3);
}

.profile-video-tile strong {
  font-size: 0.8rem;
}

.profile-video-tile small {
  font-size: 0.7rem;
  color: #526789;
}

.profile-video-date {
  position: static;
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 0.62rem;
  color: #b7c4db;
  text-align: left;
  justify-self: start;
}

.profile-video-tile .video-art {
  top: 7px;
  right: 8px;
}

.profile-video-locked {
  cursor: default;
}

.video-art {
  position: absolute;
  top: 7px;
  right: 8px;
  font-size: 0.64rem;
  color: #3f5f8a;
  background: #e8f0ff;
  border: 1px solid #c8d8f3;
  border-radius: 999px;
  padding: 2px 7px;
}

.video-art.type-short {
  background: #dbeafe;
  border-color: #afccff;
  color: #1b5fb3;
}

.video-art.type-video {
  background: #fff3c4;
  border-color: #f1dd7e;
  color: #8f6b00;
}

.video-art.type-podcast {
  background: #dff4e2;
  border-color: #b9e7c2;
  color: #1d7f3c;
}

.video-art.type-livestream {
  background: #ffdede;
  border-color: #f1b5b5;
  color: #b33838;
}

.chip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.chip-group-title {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #3c5880;
  font-size: 0.72rem;
  font-weight: 800;
}

.chip-btn {
  border: 1px solid #d2deef;
  border-radius: 10px;
  background: #f6f9ff;
  color: #26456e;
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 1px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.chip-btn small {
  color: #5f7698;
  font-size: 0.68rem;
  font-weight: 700;
}

.chip-btn.active {
  border-color: #5f85b4;
  background: #eaf2ff;
}

.variant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.variant-btn {
  border: 1px solid #d3deee;
  border-radius: 10px;
  background: #f8fbff;
  color: #27466f;
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 2px;
  font: inherit;
  cursor: pointer;
}

.variant-btn strong {
  font-size: 0.82rem;
}

.variant-btn span {
  font-size: 0.72rem;
}

.variant-btn.active {
  border-color: #648dbf;
  background: #eaf2ff;
}

.modal-root {
  position: absolute;
  inset: calc(var(--top-h) + var(--safe-top) + 8px) 0 calc(var(--bottom-h) + var(--safe-bottom) + 12px) 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 10px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 35, 0.48);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(380px, 100%);
  max-height: 100%;
  border-radius: 16px;
  border: 1px solid #d4e0ef;
  background: #fff;
  box-shadow: 0 20px 42px rgba(13, 24, 43, 0.34);
  padding: 14px 14px 16px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.modal-card.modal-card-large {
  width: min(400px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

.modal-head h4 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.modal-head .icon-btn {
  margin-left: 0;
  width: 30px;
  height: 30px;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.modal-head .modal-extra-action {
  margin-left: 0;
  flex: 0 0 auto;
}

.modal-body {
  display: grid;
  gap: 11px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 2px;
}

.modal-body p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-root.modal-achievement {
  inset: calc(var(--top-h) + var(--safe-top) + 8px) 0 calc(var(--bottom-h) + var(--safe-bottom) + 12px) 0;
  padding: 10px;
  place-items: center;
}

.modal-root.modal-achievement .modal-card {
  width: min(380px, 100%);
  max-height: 100%;
  height: auto;
  border-radius: 14px;
  padding: 12px;
  grid-template-rows: auto minmax(0, 1fr);
}

.modal-root.modal-achievement .modal-body {
  overflow-y: auto;
  min-height: 0;
}

.modal-body .modal-form > .modal-inline-actions:last-child,
.modal-body .modal-inline-actions:last-child {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: 8px;
  padding-top: 8px;
  background: linear-gradient(180deg, transparent, var(--card) 28%);
}

.modal-form {
  display: grid;
  gap: 11px;
}

.modal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  padding: 10px;
  resize: vertical;
}

.inbox-list {
  display: grid;
  gap: 8px;
}

.inbox-msg-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #121823;
  color: var(--text);
  padding: 10px 11px;
  text-align: left;
  display: grid;
  gap: 5px;
}

.inbox-msg-row.inbox-msg-unread {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(255, 107, 74, 0.25) inset;
}

.inbox-msg-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.inbox-msg-head em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
}

.inbox-msg-subject {
  font-size: 0.86rem;
}

.inbox-category-badge {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #663f26;
  color: #ffd7bf;
  font-size: 0.68rem;
}

.inbox-sender-system {
  color: #ff9b3d;
}

.status-new-strong {
  font-weight: 800;
}

.status-count-orange {
  color: #ff9b3d;
  font-weight: 900;
}

.inbox-message-body {
  white-space: pre-wrap;
  padding: 2px 0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.inbox-message-body a {
  color: #ffb35a;
  text-decoration: underline;
}

.inbox-message-body a:hover {
  color: #ffd08f;
}

.inbox-message-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

.inbox-blocked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #121823;
  padding: 8px 10px;
}

.inbox-blocked-row small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.levelup-modal {
  text-align: center;
  gap: 10px;
}

.levelup-title {
  margin: 0;
  font-size: 1.08rem;
}

.levelup-super {
  margin: 0;
  font-size: 1.24rem;
}

.levelup-modal .mission-result-gain {
  margin-top: 10px !important;
  font-size: 0.96rem !important;
  font-weight: 500 !important;
}

.levelup-modal .mission-result-value {
  font-size: 1.42rem !important;
  font-weight: 900 !important;
}

.levelup-modal .reward-cr {
  color: #f2c76a !important;
}

.levelup-modal .reward-rc {
  color: #d38fa1 !important;
}

.levelup-phenomenon {
  color: #f0f4ff !important;
}

.modal-form label {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  line-height: 1.35;
}

.modal-form .btn {
  margin-top: 4px;
}

.sp-tone {
  color: var(--sp-color);
}

.xp-tone {
  color: #5ea2ff;
}

.mission-result-flow {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.mission-result-icon {
  width: 66px;
  height: 66px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #1a2331;
}

.mission-result-title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 800;
}

.mission-result-gain {
  margin: 2px 0 0;
  font-size: 1.02rem;
  font-weight: 900;
}

.mission-result-value {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 900;
}

.mission-result-ok {
  width: min(280px, 100%);
  justify-self: center;
}

.stage-hidden {
  display: none !important;
}

.video-result-flow {
  gap: 14px;
}

.video-result-intro {
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.9;
}

.video-result-big {
  text-align: center;
  display: grid;
  gap: 6px;
}

.video-result-big-label {
  font-size: 0.86rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.video-result-big-value {
  font-size: 1.62rem;
  line-height: 1.1;
  color: #ffb66a;
}

.video-result-reach {
  text-align: center;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffd2aa;
}

.video-result-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.video-result-row span {
  color: var(--muted);
}

.video-result-row strong {
  font-size: 1rem;
}

.achievement-list {
  gap: 26px;
}

.achievement-card {
  border: 1px solid #2a3446;
  border-radius: 10px;
  background: #0c121c;
  overflow: hidden;
  padding: 0;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0;
  align-items: stretch;
}

.achievement-side {
  border-right: 1px solid #2a3446;
  background: #101723;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.achievement-side strong {
  font-size: 0.88rem;
  line-height: 1.2;
}

.achievement-side small {
  font-size: 0.8rem;
  color: #8f4f4f;
  font-weight: 700;
  line-height: 1.2;
}

.achievement-head {
  display: block;
  text-align: center;
}

.achievement-head strong {
  display: block;
  font-size: 0.9rem;
}

.achievement-progress {
  height: 64px;
  background: #0c121c;
  border: none;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.achievement-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3ea15a, #2f8a49);
}

.achievement-progress-text {
  position: absolute;
  inset: 0;
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  color: #f6fff8;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.achievement-progress-text strong {
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
}

.achievement-progress-text small {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  width: 100%;
}

.achievement-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.achievement-progress-meta span:first-child {
  text-align: left;
}

.achievement-progress-meta span:last-child {
  text-align: right;
}

.achievement-actions {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  margin-bottom: 12px;
}

.achievement-claim-all-btn {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.achievement-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.achievement-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.7rem;
  background: #1c2739;
  color: #d8e2f2;
}

.achievement-pill.claimable {
  background: #2c3f1f;
  border-color: #5f8b3f;
  cursor: pointer;
}

.achievement-pill.claimed {
  background: #2b3a54;
  border-color: #4d6791;
}

.bottom-nav {
  position: relative;
  grid-row: 3;
  inset: auto;
  min-height: calc(var(--bottom-h) + var(--safe-bottom) + var(--gesture-gap));
  z-index: 6;
  border-top: 1px solid #d6e0ef;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(7px);
  display: grid;
  grid-template-rows: auto auto;
  gap: 0;
  padding: 0 0 calc(var(--safe-bottom) + var(--gesture-gap));
}

.main-menu-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  padding: 5px 7px 4px;
  min-height: var(--bottom-h);
}

.game-shell::after {
  content: none;
}

.studio-type-grid {
  display: grid;
  gap: 8px;
}

.studio-type-card {
  border: 1px solid #d3dfef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(90px, 120px) 1fr;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.studio-type-card.active {
  border-color: #5b84b7;
  box-shadow: inset 0 0 0 1px #5b84b7;
}

.studio-type-row {
  display: none;
}

.studio-type-left h4 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
}

.studio-type-card.type-short .studio-type-left h4 {
  color: #74b5ff;
}

.studio-type-card.type-video .studio-type-left h4 {
  color: #ffd470;
}

.studio-type-card.type-podcast .studio-type-left h4 {
  color: #86de9f;
}

.studio-type-card.type-livestream .studio-type-left h4 {
  color: #ff8f8f;
}

.studio-type-right {
  display: grid;
  gap: 4px;
  font-size: 0.74rem;
  color: #c9dcff;
  justify-items: end;
}

.studio-metric-row {
  display: grid;
  grid-template-columns: 40px 66px 56px;
  gap: 4px;
  justify-content: end;
  align-items: center;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #c9dcff;
}

.studio-metric-row span {
  color: #c9dcff;
  font-weight: 800;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.studio-metric-row .k {
  color: #c9dcff;
  font-weight: 800;
}

.studio-metric-row .d {
  color: #c9dcff;
}

.studio-metric-row .d.boosted-time {
  color: #e1ecff;
  font-weight: 900;
}

.studio-metric-row.insufficient {
  color: #98a4ba;
  font-style: normal;
  font-weight: 400;
}

.studio-metric-row.insufficient .k {
  color: #98a4ba;
  font-style: normal;
  font-weight: 400;
}

.studio-metric-row.insufficient span {
  color: #98a4ba;
  font-weight: 400;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.studio-metric-row.insufficient .d.boosted-time {
  color: #98a4ba;
  font-weight: 400;
}

.length-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.studio-subhead-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.studio-subhead-row .subhead {
  margin: 0;
}

.studio-trend-hint {
  margin: 0;
  text-align: right;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.length-toggle .btn.active {
  background: linear-gradient(95deg, #355687, #28426a);
}

.length-toggle .btn.inactive {
  background: #9ca6b5;
}

#studioStartBtn {
  display: grid;
  gap: 2px;
  text-align: center;
  margin-top: 10px;
}

#studioStartBtn small {
  font-size: 0.67rem;
  opacity: 0.96;
  font-weight: 700;
}

.studio-type-card.type-short {
  background: #eaf2ff;
}

.studio-type-card.type-video {
  background: #fff5cf;
}

.studio-type-card.type-podcast {
  background: #e3f6e5;
}

.studio-type-card.type-livestream {
  background: #ffe4e4;
}

.menu-tab {
  border-radius: 11px;
  background: #edf2fb;
  color: #3d5179;
  padding: 6px 3px;
  display: grid;
  gap: 2px;
  justify-items: center;
  align-content: center;
  line-height: 1;
  position: relative;
  overflow: hidden;
  --tab-progress: 0%;
}

.menu-tab::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: var(--tab-progress);
  height: 3px;
  background: #1ec7a4;
  z-index: 0;
  transition: width 0.25s ease;
}

.menu-tab > * {
  position: relative;
  z-index: 1;
}

.menu-tab.task-ready-blink {
  animation: none;
}

.menu-tab.task-ready-blink::before {
  animation: tab-progress-blink 2.4s ease-in-out infinite;
}

@keyframes tab-progress-blink {
  50% {
    opacity: 0.2;
  }
}

.menu-tab span {
  font-size: 1rem;
}

.menu-tab .menu-icon {
  display: block;
  width: auto;
  height: 1.35rem;
  object-fit: contain;
  pointer-events: none;
}

.menu-tab small {
  font-size: 0.62rem;
  font-weight: 700;
}

.menu-tab.active {
  background: var(--brand-deep);
  color: #fff;
}

/* Dark theme overrides (layout unchanged) */
:root {
  --bg: #0f131b;
  --card: #161d28;
  --line: #293244;
  --text: #e8edf7;
  --muted: #9aa6ba;
  --brand: #ff6b4a;
  --brand-deep: #233a63;
  --accent: #1ec7a4;
  --ok: #1abf88;
  --danger: #e05a5a;
  --sp-color: #b48dff;
  --sp-bg: #241a3f;
  --sp-line: #4b3a7b;
}

body {
  background:
    radial-gradient(circle at 15% 8%, #1b2638 0%, transparent 30%),
    radial-gradient(circle at 86% 95%, #2a1f24 0%, transparent 34%),
    var(--bg);
}

.auth-wrap,
.game-shell,
.profile-fullscreen {
  background: var(--bg);
}

.top-fixed {
  background: rgba(15, 19, 27, 0.96);
  border-bottom-color: var(--line);
}

.auth-card,
.panel,
.currency-card,
.group-stats-grid article,
.group-row,
.group-members-list li,
.group-chat-list li,
.list li,
.lb-table-wrap,
.leaderboard-dock,
.group-dock,
.modal-card,
.shop-card,
.group-card,
.mission-card,
.video-card,
.booster-card {
  background: var(--card);
  border-color: var(--line);
  color: var(--text);
}

.profile-hero,
.trend-card,
.profile-video-tile,
.studio-type-card,
.chip-btn,
.variant-btn,
.menu-tab,
.profile-rank-btn,
.profile-group-btn,
.timer-quick,
.icon-btn,
.settings-menu,
.settings-menu button,
.lb-table th,
.bar {
  background: #1a2331;
  border-color: var(--line);
  color: var(--text);
}

.timer-progress-bg {
  background: #2a3549;
}

.timer-inline-text,
.timer-mini-time,
.shop-meta,
.group-row small,
.profile-video-tile small,
.chip-btn small,
.mission-meta-row,
.trend-card small,
.lb-sort-trigger,
.subhead,
.chip-group-title {
  color: var(--muted);
}

input,
select,
.studio-form select {
  background: #111825;
  border-color: var(--line);
  color: var(--text);
}

input::placeholder {
  color: #7f8ca2;
}

.captcha {
  background: #121b2a;
  border-color: #3a4660;
}

.auth-tab {
  background: #1b2534;
  color: #b8c4d9;
}

.group-chat-dock {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

.shop-type-vp {
  background: #173028;
}

.shop-type-sp {
  background: #2a1f42;
}

.auth-tab.active,
.menu-tab.active {
  background: var(--brand-deep);
  color: #fff;
}

.settings-menu {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.settings-menu button,
.settings-menu .settings-link {
  background: #182131;
  color: #d2dced;
}

.settings-menu button:hover,
.settings-menu .settings-link:hover {
  background: #202c40;
}

.settings-version {
  display: block;
  margin: 2px 8px 4px;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}

.settings-version-link {
  width: 100%;
  text-align: left;
  margin: 0;
}

.levelup-modal .reward-cr {
  color: #f2c76a;
}

.levelup-modal .reward-rc {
  color: #d38fa1;
}

.level-card {
  background: #1f3356;
  border-color: #4d6fa8;
}

.level-card::before {
  background: linear-gradient(90deg, #3f6ec4 var(--level-pct), #1f3356 var(--level-pct));
}

.level-card .level-line span,
.level-card .level-line strong {
  color: #ffffff;
}

.lb-table td,
.lb-table th {
  border-bottom-color: var(--line);
}

.lb-table th {
  color: #c6d2e8;
}

.btn-dark {
  background: linear-gradient(95deg, #445c84, #2f4263);
}

.length-toggle .btn.inactive {
  background: #3f4d62;
}

.btn-claim:disabled {
  background: #5f6b7f;
}

.bottom-nav {
  background: rgba(16, 21, 31, 0.98);
  border-top-color: var(--line);
}

.game-shell::after {
  background: #10151f;
}

.studio-type-card.type-short {
  background: #1c2b42;
}

.studio-type-card.type-video {
  background: #3b341f;
}

.studio-type-card.type-podcast {
  background: #1f3528;
}

.studio-type-card.type-livestream {
  background: #3f2125;
}

.video-art {
  background: #23324b;
  border-color: #3b4b66;
  color: #c8d5ea;
}

.video-art.type-short {
  background: #1f3a62;
  border-color: #2f4f82;
  color: #9fc7ff;
}

.video-art.type-video {
  background: #5a4a1d;
  border-color: #776125;
  color: #ffe28b;
}

.video-art.type-podcast {
  background: #214b2f;
  border-color: #2f6842;
  color: #aee6be;
}

.video-art.type-livestream {
  background: #5f252b;
  border-color: #7f323a;
  color: #ffb0b0;
}

.mission-status {
  border-color: #32538d;
  background: linear-gradient(120deg, #162233, #1a2a40);
}

/* Dark mode readability typography overrides */
body {
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
th,
strong,
.btn,
.menu-tab small,
.menu-tab span {
  color: var(--text);
}

p,
span,
small,
td,
label,
li,
input,
select,
button {
  color: var(--text);
}

.muted,
.shop-meta,
.group-row small,
.profile-video-tile small,
.chip-btn small,
.mission-meta-row,
.trend-card small,
.lb-sort-trigger,
.subhead,
.chip-group-title,
.profile-hero p,
.currency-card span,
.currency-card small {
  color: #b4bfd2;
}

.mini-head h2 {
  color: #f2f6ff;
  font-size: 1.14rem;
}

.mini-head p {
  color: #b7c3d8;
  font-size: 0.78rem;
}

.panel h4 {
  font-size: 1rem;
  color: #eaf0fd;
}

.subhead {
  font-size: 0.9rem;
  font-weight: 800;
}

.currency-card strong {
  font-size: 0.84rem;
}

.currency-card span,
.currency-card small {
  font-size: 0.7rem;
}

.timer-inline-text {
  color: #f4f7ff;
  font-size: 0.7rem;
  font-weight: 800;
}

.timer-mini-time {
  color: #f0f5ff;
  font-size: 0.78rem;
}

.lb-table th,
.lb-table td {
  font-size: 0.82rem;
}

.lb-table th {
  color: #d8e3f8;
}

.lb-sort-trigger {
  font-size: 0.8rem;
  font-weight: 800;
}

.profile-hero h3 {
  font-size: 1.02rem;
  color: #f1f5ff;
}

.profile-stats span {
  color: #b7c3d8;
  font-size: 0.74rem;
}

.profile-stats strong {
  font-size: 0.98rem;
  color: #f2f6ff;
}

.profile-video-tile strong {
  font-size: 0.82rem;
  color: #edf3ff;
}

.video-art {
  font-size: 0.66rem;
  font-weight: 800;
}

.mission-title {
  font-size: 0.98rem;
  color: #edf3ff;
}

.mission-story,
.story-text {
  color: #d2dced;
  line-height: 1.5;
}

.story-text.italic {
  color: #bec9dc;
}

.mission-reward {
  color: #dce6f8;
  font-size: 0.88rem;
}

.studio-type-left h4 {
  font-size: 1.08rem;
  font-weight: 900;
}

.studio-type-right {
  font-size: 0.76rem;
}

.studio-metric-row {
  font-size: 0.78rem;
}

.studio-metric-row span {
  -webkit-text-stroke: 0.3px #0c1119;
  text-shadow:
    0 1px 0 #0c1119,
    0 -1px 0 #0c1119,
    1px 0 0 #0c1119,
    -1px 0 0 #0c1119;
}

.modal-head h4,
.modal-head h3 {
  color: #eff4ff;
}

.modal-body p,
.modal-form label,
.modal-form p {
  color: #d7e1f3;
  line-height: 1.55;
}

.mission-result-flow .mission-result-title {
  font-size: 1.36rem !important;
  font-weight: 900 !important;
}

.mission-result-flow .mission-result-gain {
  margin-top: 10px !important;
  font-size: 0.96rem !important;
  font-weight: 500 !important;
}

.mission-result-flow .mission-result-value {
  font-size: 1.42rem !important;
  font-weight: 900 !important;
}

.mission-result-flow .xp-tone {
  color: #5ea2ff !important;
}

.mission-result-flow .sp-tone {
  color: var(--sp-color) !important;
}

.btn {
  font-weight: 800;
  letter-spacing: 0.1px;
}

.btn-dark,
.btn-claim {
  color: #fff;
}

input,
select,
.studio-form select {
  font-size: 0.9rem;
}

/* Compact top bar + black-orange accents + minimal bottom nav tabs */
:root {
  --top-h: 106px;
}

.top-fixed {
  padding: 6px 10px 4px;
  gap: 3px;
}

.mini-head h2 {
  font-size: 1.02rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  font-size: 1.05rem;
}

.currency-row {
  gap: 5px;
  margin-bottom: 0;
}

.currency-card {
  padding: 5px 7px;
  gap: 1px;
}

.currency-card span,
.currency-card small {
  font-size: 0.62rem;
}

.currency-card strong {
  font-size: 0.76rem;
}

.currency-row .currency-card:nth-child(1),
.currency-row .currency-card:nth-child(2) {
  text-align: center;
}

.currency-row .currency-card strong {
  font-size: 0.86rem;
}

.currency-row .currency-card span {
  font-size: 0.62rem;
}

/* Keep topbar currency cards colored even after compact overrides */
.currency-card.currency-coin-card.coin-cr {
  background: #6b5521 !important;
  border-color: #a58d4b !important;
}

.currency-card.currency-coin-card.coin-rc {
  background: #5a2230 !important;
  border-color: #9d6271 !important;
}

.currency-card.currency-coin-card .currency-money-row span,
.currency-card.currency-coin-card .currency-money-row strong {
  color: #f4f7ff !important;
}

.currency-row-reworked .level-line span {
  font-size: 0.9rem !important;
  font-weight: 800;
}

.currency-row-reworked .level-line strong {
  font-size: 0.9rem !important;
}

.currency-row-reworked .currency-money-row span {
  text-align: left;
}

.currency-row-reworked .currency-money-row strong {
  text-align: right;
  justify-self: end;
}

.currency-row-reworked .currency-coin-card .currency-money-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.currency-row-reworked .currency-coin-card .currency-money-row strong {
  margin-left: auto;
  text-align: right;
}

.currency-row-reworked .currency-coin-card.top-mini-card {
  display: block;
}

.currency-row-reworked .top-rank-card {
  border-color: #e28b35 !important;
}

.timer-mini {
  margin-top: 2px;
}

/* Profile video tiles: stronger dark readability */
.profile-video-tile {
  border-color: #36435b;
  background: #1a2231;
  color: #eef3ff;
}

.profile-video-tile.type-short {
  background: linear-gradient(160deg, #1a2d46, #1b2638);
}

.profile-video-tile.type-video {
  background: linear-gradient(160deg, #42381f, #2e2819);
}

.profile-video-tile.type-podcast {
  background: linear-gradient(160deg, #1f3a2a, #1a2f22);
}

.profile-video-tile.type-livestream {
  background: linear-gradient(160deg, #472127, #34191f);
}

.profile-video-tile strong {
  color: #f3f7ff;
  font-size: 0.84rem;
}

.profile-video-tile small {
  color: #d1daea;
  font-size: 0.74rem;
}

.profile-hero .profile-meta {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: start;
}

.profile-hero .profile-meta-left {
  display: grid;
  align-content: start;
  gap: 4px;
}

.profile-hero .profile-meta-right {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 1px;
  text-align: right;
  min-height: 100%;
}

.profile-hero .level-avatar {
  flex: 0 0 56px;
}

#profileFsHandle {
  grid-area: auto;
  align-self: center;
  margin: 0;
}

#profileFsSince {
  grid-area: auto;
  justify-self: end;
  text-align: right;
  margin: 0;
  font-size: 0.7rem;
  display: grid;
  gap: 2px;
}

#profileFsSince span {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.1;
}

#profileFsSince strong {
  color: #f2f6ff;
  font-size: 0.74rem;
  line-height: 1.15;
  font-weight: 800;
}

#profileFsRankBtn {
  grid-area: auto;
}

#profileFsGroupBtn {
  grid-area: auto;
  margin-top: 2px;
}

#profileFsOnline {
  grid-area: auto;
  justify-self: end;
  align-self: end;
  text-align: right;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
}

#profileFsOnline.is-online {
  color: #2ad06f;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#profileFsOnline.is-offline {
  color: #8f9bb0;
}

#profileFsOnline.is-online::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ad06f;
  box-shadow: 0 0 0 1px rgba(10, 24, 16, 0.8);
}

#profileFsGroupBtn {
  margin-top: 1px;
}

.profile-stats span,
.profile-rank-btn span {
  font-size: 0.66rem;
}

.profile-stat-rank span {
  font-size: 0.7rem;
}

.profile-stats strong,
.profile-rank-btn strong {
  font-size: 0.84rem;
}

.profile-stat-rank strong {
  font-size: 0.95rem;
}

.profile-skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background: #121823;
  min-height: 72px;
  align-items: stretch;
}

.profile-skills-inline {
  margin-top: -10px;
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
}

.profile-skills-inline.profile-skills-grid {
  border-top: 1px solid var(--line);
}

.profile-skill-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  text-align: center;
  gap: 2px;
  min-height: 88px;
  height: 100%;
  border: 0;
  border-right: 1px solid var(--line);
  background: #121823;
  border-radius: 0;
  padding: 6px 2px 6px;
  position: relative;
  overflow: hidden;
  --skill-pct: 0%;
}

.profile-skill-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #1c2738 var(--skill-pct), #121823 var(--skill-pct));
  z-index: 0;
}

.profile-skill-card:last-child {
  border-right: 0;
}

.profile-skills-inline .profile-skill-card:first-child {
  border-bottom-left-radius: 12px;
}

.profile-skills-inline .profile-skill-card:last-child {
  border-bottom-right-radius: 12px;
}

.profile-skill-label {
  color: #b9c3d8;
  font-size: 0.64rem;
  text-align: center;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.profile-skill-bar-wrap {
  display: none;
}

.profile-skill-bar-fill {
  display: none;
}

.profile-skill-card strong {
  display: block;
  color: #f2f6ff;
  font-size: 0.96rem;
  margin-top: 0;
  line-height: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.profile-skill-actions {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 3px;
}

.profile-skill-actions span {
  font-size: 0.62rem;
  color: #cfd9ec;
  white-space: nowrap;
}

.profile-skill-value-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.profile-skill-cost {
  position: relative;
  z-index: 1;
  font-size: 0.62rem;
  color: #ff9a2f;
  font-weight: 700;
  margin-top: 1px;
}

.profile-skill-inline-upgrade {
  min-width: 20px;
  min-height: 20px;
  padding: 0;
  line-height: 1;
  font-size: 0.95rem;
}

.profile-skill-inline-upgrade:disabled {
  background: #2f3642;
  border-color: #4a5568;
  color: #98a4b9;
  cursor: not-allowed;
  box-shadow: none;
}

.profile-skill-upgrade-list {
  display: grid;
  gap: 8px;
}

.profile-skill-upgrade-row {
  display: grid;
  grid-template-columns: 1fr 72px 40px;
  align-items: center;
  gap: 8px;
}

.profile-skill-upgrade-attr {
  color: #dbe4f4;
  font-size: 1rem;
  font-weight: 400;
}

.profile-skill-upgrade-points {
  color: #f1f6ff;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: right;
}

.profile-skill-up-modal-btn {
  width: 42px;
  min-width: 42px;
  height: 34px;
  padding: 0;
  justify-self: end;
  font-size: 1.05rem;
  line-height: 1;
}

.profile-skill-upgrade-meta {
  margin: 0;
  text-align: center;
}

.profile-skills-debug {
  grid-column: 1 / -1;
  text-align: center;
  color: #ff9b3d;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
  padding-top: 6px;
}

.profile-skills-plus-btn {
  min-width: 34px;
  height: 34px;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 10px;
}

.video-art {
  border-color: rgba(255, 255, 255, 0.22);
}

/* RiseNet Studio: remove contour around art/option texts */
.studio-metric-row span,
.studio-metric-row.insufficient span {
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.btn-dark,
.length-toggle .btn.active,
.lb-mode-btn.active {
  background: linear-gradient(95deg, #445c84, #2f4263);
  color: #fff;
}

.menu-tab {
  background: transparent;
  color: #9ea7b7;
  border: 1px solid transparent;
}

.menu-tab::before {
  background: #1ec7a4;
}

.menu-tab.active {
  background: #444b57;
  color: #f2f5fb;
}

.menu-tab.locked {
  background: #2e3440;
  color: #7f8898;
  opacity: 0.58;
  pointer-events: none;
}

/* Profile + Leaderboard switchers: flatter shape and gray states */
.profile-switch-btn,
.lb-mode-btn {
  border-radius: 7px;
  background: #5a606c !important;
  color: #eef2f9;
  border: 1px solid #6a7180;
  opacity: 1;
}

.profile-switch-btn.active,
.lb-mode-btn.active {
  background: #373d47 !important;
  color: #ffffff;
  border-color: #4a505b;
}

.menu-tab.locked::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 4px;
  width: 11px;
  height: 11px;
  background: url('/images/icons/schloss.png') center / contain no-repeat;
  z-index: 2;
}

.bottom-nav {
  border-top-color: transparent;
}

@media (max-width: 760px) and (orientation: portrait) {
  html,
  body {
    height: 100dvh;
    height: 100svh;
  }

  .page-wrap {
    padding: 0;
    min-height: 100dvh;
    min-height: 100svh;
  }

  .phone-frame {
    width: 100%;
    max-width: none;
    height: 100dvh;
    height: 100svh;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    background: var(--bg);
  }

  .auth-wrap,
  .game-shell {
    border-radius: 0;
  }

  .bottom-nav {
    inset: auto;
  }

  .game-shell::after {
    display: none;
  }
}

@media (max-height: 760px) {
  :root {
    --top-h: 102px;
    --bottom-h: 60px;
  }

  .currency-card strong {
    font-size: 0.76rem;
  }

  .profile-videos-grid {
    grid-template-columns: 1fr 1fr;
  }

  .booster-grid {
    grid-template-columns: 1fr;
  }
}

/* Group theme: stronger full-surface coloring + dock/button sync */
.group-wrap.group-theme-classic,
.group-dock.group-theme-classic,
.group-chat-dock.group-theme-classic { --group-theme-surface: #1a2331; --group-theme-surface-soft: #151d2b; --group-theme-bg-solid: #121824; }
.group-wrap.group-theme-neon,
.group-dock.group-theme-neon,
.group-chat-dock.group-theme-neon { --group-theme-surface: #161a2d; --group-theme-surface-soft: #12182a; --group-theme-bg-solid: #0f1422; }
.group-wrap.group-theme-sunset,
.group-dock.group-theme-sunset,
.group-chat-dock.group-theme-sunset { --group-theme-surface: #2a1f24; --group-theme-surface-soft: #241a20; --group-theme-bg-solid: #21161a; }
.group-wrap.group-theme-forest,
.group-dock.group-theme-forest,
.group-chat-dock.group-theme-forest { --group-theme-surface: #1b2b24; --group-theme-surface-soft: #15221d; --group-theme-bg-solid: #132019; }
.group-wrap.group-theme-ocean,
.group-dock.group-theme-ocean,
.group-chat-dock.group-theme-ocean { --group-theme-surface: #172734; --group-theme-surface-soft: #13202c; --group-theme-bg-solid: #111f2b; }
.group-wrap.group-theme-violet,
.group-dock.group-theme-violet,
.group-chat-dock.group-theme-violet { --group-theme-surface: #231d33; --group-theme-surface-soft: #1d172b; --group-theme-bg-solid: #1b1728; }
.group-wrap.group-theme-crimson,
.group-dock.group-theme-crimson,
.group-chat-dock.group-theme-crimson { --group-theme-surface: #311b24; --group-theme-surface-soft: #291620; --group-theme-bg-solid: #27141b; }
.group-wrap.group-theme-slate,
.group-dock.group-theme-slate,
.group-chat-dock.group-theme-slate { --group-theme-surface: #1f2630; --group-theme-surface-soft: #1a2029; --group-theme-bg-solid: #161b23; }
.group-wrap.group-theme-mint,
.group-dock.group-theme-mint,
.group-chat-dock.group-theme-mint { --group-theme-surface: #1c2d2a; --group-theme-surface-soft: #172522; --group-theme-bg-solid: #13221f; }
.group-wrap.group-theme-amber,
.group-dock.group-theme-amber,
.group-chat-dock.group-theme-amber { --group-theme-surface: #2e281e; --group-theme-surface-soft: #262117; --group-theme-bg-solid: #201a13; }

.group-wrap[class*="group-theme-"] {
  background: transparent !important;
}

.group-wrap[class*="group-theme-"] .group-card,
.group-wrap[class*="group-theme-"] .group-row,
.group-wrap[class*="group-theme-"] .group-stats-grid article,
.group-wrap[class*="group-theme-"] .group-info-kpi,
.group-wrap[class*="group-theme-"] .group-members-list li,
.group-wrap[class*="group-theme-"] .group-chat-list li {
  background: var(--group-theme-surface) !important;
  border-color: var(--group-theme-btn-border) !important;
}

.group-wrap[class*="group-theme-"] .group-row small,
.group-wrap[class*="group-theme-"] .group-info-kpi span,
.group-wrap[class*="group-theme-"] .group-search-status,
.group-wrap[class*="group-theme-"] .group-founded {
  color: #d5dded !important;
}

.group-wrap[class*="group-theme-"] .group-member-btn {
  background: var(--group-theme-surface) !important;
  border-color: var(--group-theme-btn-border) !important;
  color: #f3f7ff !important;
}

.group-wrap[class*="group-theme-"] .group-member-role,
.group-wrap[class*="group-theme-"] .group-member-stats {
  color: #d5dded !important;
}

.group-wrap[class*="group-theme-"] .group-info-actions .btn,
.group-wrap[class*="group-theme-"] .group-upgrade-open,
.group-wrap[class*="group-theme-"] .group-join-btn {
  background: var(--group-theme-btn) !important;
  border-color: var(--group-theme-btn-border) !important;
  color: #f5f8ff !important;
}


.group-customize-preview {
  border: 1px solid var(--preview-border, var(--line));
  background: var(--preview-bg, #182131);
  border-radius: 12px;
  padding: 12px 10px;
  display: grid;
  gap: 8px;
  margin-bottom: 2px;
}

.group-customize-preview-name {
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
}

.group-customize-preview-sub {
  font-size: 0.72rem;
  color: #d5deef;
  text-align: center;
}

.group-customize-preview-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.group-customize-preview-btn {
  border: 1px solid var(--preview-border, #3d4a62);
  background: var(--preview-btn, #21324a);
  color: #f2f6ff;
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.group-customize-preview-btn.active {
  background: var(--preview-btn-active, #3b4f71);
}

.group-font-option {
  min-height: 46px;
}

.group-color-option,
.group-theme-option {
  gap: 5px;
}

.group-palette-label {
  font-size: 0.62rem;
  color: #d3dcef;
  line-height: 1;
}

#profileFsRankBtn.profile-stat-rank,
#profileFsRankBtn.profile-stat-rank span,
#profileFsRankBtn.profile-stat-rank strong {
  color: #f0a24a !important;
}

#profileFsRankBtn.profile-stat-rank {
  background: var(--card) !important;
  border-color: #e28b35 !important;
}

#topRankCard.top-rank-card,
#topRankCard.top-rank-card span,
#topRankCard.top-rank-card strong {
  color: #f0a24a !important;
}

#topRankCard.top-rank-card {
  border-color: #e28b35 !important;
}

.bottom-nav {
  min-height: calc(var(--bottom-h) + var(--safe-bottom) + var(--gesture-gap)) !important;
  padding-bottom: calc(var(--safe-bottom) + var(--gesture-gap)) !important;
}

.leaderboard-dock {
  bottom: calc(var(--bottom-h) + var(--safe-bottom) + var(--gesture-gap) + 8px) !important;
}

.group-chat-dock {
  bottom: calc(var(--bottom-h) + var(--group-dock-h) + var(--safe-bottom) + var(--gesture-gap) + 8px) !important;
}

.content-scroll.has-group-chat-dock {
  margin-bottom: 72px;
  padding-bottom: 14px !important;
}

.content-scroll.has-group-chat-dock .group-chat-list {
  padding-bottom: 0 !important;
}

.modal-root {
  position: absolute !important;
  inset: 8px !important;
  z-index: 1000 !important;
  border-radius: 26px;
  overflow: hidden;
  padding: calc(var(--top-h) + var(--safe-top) + 14px) 12px calc(var(--bottom-h) + var(--safe-bottom) + 14px) !important;
}

.modal-root.modal-achievement {
  inset: 8px !important;
  padding: calc(var(--top-h) + var(--safe-top) + 14px) 12px calc(var(--bottom-h) + var(--safe-bottom) + 14px) !important;
}

.modal-backdrop {
  inset: 0 !important;
  background: rgba(1, 5, 12, 0.72) !important;
}

@media (max-width: 760px) and (orientation: portrait) {
  .modal-root,
  .modal-root.modal-achievement {
    inset: 0 !important;
    border-radius: 0;
  }
}

/* Creator Studio direct controls */
.studio-type-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.studio-type-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 8px 4px;
  border-radius: 10px;
  text-align: center;
  font-weight: 900;
  font-size: 0.78rem;
  line-height: 1.05;
}

.studio-type-card span {
  color: inherit;
  font-weight: 900;
}

.studio-type-card.type-short {
  color: #9fc7ff;
  background: #1c2b42;
  border-color: #2d4b75;
}

.studio-type-card.type-video {
  color: #ffe28b;
  background: #3b341f;
  border-color: #6b5621;
}

.studio-type-card.type-podcast {
  color: #aee6be;
  background: #1f3528;
  border-color: #2d6d42;
}

.studio-type-card.type-livestream {
  color: #ffb0b0;
  background: #3f2125;
  border-color: #7c343c;
}

.studio-type-card.active {
  border-color: #f2a640;
  box-shadow: inset 0 0 0 1px #f2a640, 0 0 0 1px rgba(242, 166, 64, 0.15);
}

.studio-slider-block,
.studio-quality-block {
  display: grid;
  gap: 8px;
}

.studio-slider-block input[type="range"],
.studio-quality-block input[type="range"] {
  width: 100%;
  accent-color: var(--sp-color);
}

.studio-slider-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  color: #f2f6ff;
  font-variant-numeric: tabular-nums;
}

.studio-slider-value strong {
  color: var(--sp-color);
  font-size: 1.08rem;
  font-weight: 900;
}

.studio-slider-value span {
  color: #b7c3d8;
  font-size: 0.76rem;
  font-weight: 800;
}

.studio-quality-block .subhead {
  margin-top: 12px;
}

/* Taller Studio sliders and boosted duration display */
.studio-slider-block input[type="range"],
.studio-quality-block input[type="range"],
.studio-livestream-panel input[type="range"] {
  --range-fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  height: 42px;
  background: transparent;
  cursor: pointer;
}

.studio-slider-block input[type="range"]::-webkit-slider-runnable-track,
.studio-quality-block input[type="range"]::-webkit-slider-runnable-track,
.studio-livestream-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sp-color) 0%, var(--sp-color) var(--range-fill), #263144 var(--range-fill), #263144 100%);
  border: 1px solid #3d4a61;
}

.studio-slider-block input[type="range"]::-webkit-slider-thumb,
.studio-quality-block input[type="range"]::-webkit-slider-thumb,
.studio-livestream-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--sp-color);
  border: 3px solid #f2f6ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.studio-slider-block input[type="range"]::-moz-range-track,
.studio-quality-block input[type="range"]::-moz-range-track,
.studio-livestream-panel input[type="range"]::-moz-range-track {
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sp-color) 0%, var(--sp-color) var(--range-fill), #263144 var(--range-fill), #263144 100%);
  border: 1px solid #3d4a61;
}

.studio-slider-block input[type="range"]::-moz-range-thumb,
.studio-quality-block input[type="range"]::-moz-range-thumb,
.studio-livestream-panel input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sp-color);
  border: 3px solid #f2f6ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.studio-slider-value strong.boost-original-time {
  color: #f2f6ff;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(242, 246, 255, 0.86);
}

.studio-slider-value #studioDurationBoosted {
  color: var(--sp-color);
  font-weight: 900;
}

.studio-slider-value #studioDurationBoosted strong {
  color: var(--sp-color);
  font-size: 1.08rem;
}

.studio-slider-value #studioDurationBoosted small {
  color: var(--sp-color);
  font-size: 0.78rem;
  font-weight: 900;
}

/* Studio slider value cards */
.studio-slider-value,
.studio-livestream-value {
  margin-top: 2px;
  padding: 9px 12px;
  border: 1px solid #3d4a61;
  border-radius: 12px;
  background: #151d2b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.studio-livestream-value strong {
  color: var(--sp-color);
}

.studio-slider-value strong,
.studio-livestream-value strong {
  font-size: 1.12rem;
}

/* Integrated Studio slider frames */
.studio-slider-block,
.studio-quality-block,
.studio-livestream-panel {
  border: 1px solid #3d4a61;
  border-radius: 14px;
  background: #151d2b;
  padding: 12px 12px 10px;
  gap: 6px;
}

.studio-slider-value,
.studio-livestream-value {
  margin-top: 0;
  padding: 2px 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.studio-slider-block input[type="range"],
.studio-quality-block input[type="range"],
.studio-livestream-panel input[type="range"] {
  --range-color: var(--sp-color);
}

.studio-slider-block input[type="range"]::-webkit-slider-runnable-track,
.studio-quality-block input[type="range"]::-webkit-slider-runnable-track,
.studio-livestream-panel input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, var(--range-color) 0%, var(--range-color) var(--range-fill), #263144 var(--range-fill), #263144 100%);
}

.studio-slider-block input[type="range"]::-webkit-slider-thumb,
.studio-quality-block input[type="range"]::-webkit-slider-thumb,
.studio-livestream-panel input[type="range"]::-webkit-slider-thumb {
  background: var(--range-color);
}

.studio-slider-block input[type="range"]::-moz-range-track,
.studio-quality-block input[type="range"]::-moz-range-track,
.studio-livestream-panel input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, var(--range-color) 0%, var(--range-color) var(--range-fill), #263144 var(--range-fill), #263144 100%);
}

.studio-slider-block input[type="range"]::-moz-range-thumb,
.studio-quality-block input[type="range"]::-moz-range-thumb,
.studio-livestream-panel input[type="range"]::-moz-range-thumb {
  background: var(--range-color);
}

/* Slider value inside the framed slider track, not in a separate card */
.studio-slider-block,
.studio-quality-block {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  gap: 0;
}

.studio-livestream-panel {
  border: 0;
  background: transparent;
  padding: 0;
}

.studio-slider-block input[type="range"],
.studio-quality-block input[type="range"],
.studio-livestream-panel input[type="range"] {
  height: 72px;
  padding: 0;
}

.studio-slider-block input[type="range"]::-webkit-slider-runnable-track,
.studio-quality-block input[type="range"]::-webkit-slider-runnable-track,
.studio-livestream-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 64px;
  border-radius: 16px;
}

.studio-slider-block input[type="range"]::-webkit-slider-thumb,
.studio-quality-block input[type="range"]::-webkit-slider-thumb,
.studio-livestream-panel input[type="range"]::-webkit-slider-thumb {
  width: 30px;
  height: 30px;
  margin-top: 5px;
}

.studio-slider-block input[type="range"]::-moz-range-track,
.studio-quality-block input[type="range"]::-moz-range-track,
.studio-livestream-panel input[type="range"]::-moz-range-track {
  height: 64px;
  border-radius: 16px;
}

.studio-slider-block input[type="range"]::-moz-range-thumb,
.studio-quality-block input[type="range"]::-moz-range-thumb,
.studio-livestream-panel input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
}

.studio-slider-value,
.studio-livestream-value {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.studio-livestream-panel {
  position: relative;
  display: grid;
  gap: 8px;
}

.studio-livestream-rewards {
  margin-top: 2px;
}

/* Revert oversized framed slider: keep clean native custom slider without module frame */
.studio-slider-block,
.studio-quality-block,
.studio-livestream-panel {
  position: static;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
}

.studio-slider-block,
.studio-quality-block {
  display: grid;
  gap: 6px;
}

.studio-livestream-panel {
  display: grid;
  gap: 10px;
}

.studio-slider-block input[type="range"],
.studio-quality-block input[type="range"],
.studio-livestream-panel input[type="range"] {
  height: 42px;
}

.studio-slider-block input[type="range"]::-webkit-slider-runnable-track,
.studio-quality-block input[type="range"]::-webkit-slider-runnable-track,
.studio-livestream-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 20px;
  border-radius: 999px;
}

.studio-slider-block input[type="range"]::-webkit-slider-thumb,
.studio-quality-block input[type="range"]::-webkit-slider-thumb,
.studio-livestream-panel input[type="range"]::-webkit-slider-thumb {
  width: 28px;
  height: 28px;
  margin-top: -5px;
}

.studio-slider-block input[type="range"]::-moz-range-track,
.studio-quality-block input[type="range"]::-moz-range-track,
.studio-livestream-panel input[type="range"]::-moz-range-track {
  height: 20px;
  border-radius: 999px;
}

.studio-slider-block input[type="range"]::-moz-range-thumb,
.studio-quality-block input[type="range"]::-moz-range-thumb,
.studio-livestream-panel input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
}

.studio-slider-value,
.studio-livestream-value {
  position: static;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

/* Remove all outer slider frames/outlines; keep only the actual slider track */
.studio-form .studio-slider-block,
.studio-form .studio-quality-block,
.studio-form .studio-livestream-panel {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.studio-form input[type="range"],
.studio-form input[type="range"]:focus,
.studio-form input[type="range"]:active,
.studio-form input[type="range"]:focus-visible {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.studio-form input[type="range"]::-webkit-slider-runnable-track {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.studio-form input[type="range"]::-moz-range-track {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Clean slider group card: one wrapper around slider + value, no inner slider frame */
.studio-form .studio-slider-block,
.studio-form .studio-quality-block,
.studio-form .studio-livestream-panel {
  border: 1px solid #344257 !important;
  border-radius: 14px !important;
  background: #151d2b !important;
  padding: 10px 12px 9px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02) !important;
}

.studio-form .studio-slider-block,
.studio-form .studio-quality-block {
  display: grid;
  gap: 4px;
}

.studio-form .studio-livestream-panel {
  display: grid;
  gap: 8px;
}

.studio-form input[type="range"]::-webkit-slider-runnable-track,
.studio-form input[type="range"]::-moz-range-track {
  border: 0 !important;
  box-shadow: none !important;
}

/* Creator Studio spacing + darker slider tones */
.studio-form .studio-art-head {
  margin-top: 2px !important;
  margin-bottom: 5px !important;
}

.studio-form .studio-type-grid {
  margin-top: 0 !important;
  margin-bottom: 4px !important;
}

.studio-form .studio-quality-head {
  margin-top: 12px !important;
  margin-bottom: 6px !important;
}

.studio-form .studio-slider-block,
.studio-form .studio-quality-block,
.studio-form .studio-livestream-panel {
  padding: 10px 12px 13px !important;
}

.studio-slider-value,
.studio-livestream-value {
  padding-bottom: 2px !important;
}

.studio-slider-value strong,
.studio-livestream-value strong,
.studio-slider-value #studioDurationBoosted strong,
.studio-slider-value #studioDurationBoosted small {
  filter: brightness(0.9) saturate(0.95);
}

/* Compact Studio header after removing refresh button */
.studio-head {
  align-items: center !important;
  margin-bottom: 0 !important;
  padding-bottom: 2px !important;
}

.studio-head-left {
  gap: 0 !important;
}

.studio-head-left h4 {
  margin: 0 !important;
}

.studio-form {
  margin-top: 0 !important;
  gap: 7px !important;
}

.studio-form .studio-art-head,
.studio-form .subhead:first-of-type {
  margin-top: -4px !important;
  margin-bottom: 3px !important;
}

.studio-slider-value,
.studio-livestream-value {
  transform: translateY(-3px);
}

.studio-form .studio-slider-block,
.studio-form .studio-quality-block,
.studio-form .studio-livestream-panel {
  padding-bottom: 10px !important;
}

/* Livestream art button uses the same visual weight as the other studio formats */
.studio-type-card.type-livestream {
  color: #ffb0b0 !important;
  background: #3f2125 !important;
  border-color: #7c343c !important;
}

.studio-type-card.type-livestream span {
  color: #ffb0b0 !important;
}
