:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111113;
  --ink-2: #242329;
  --muted: #75717c;
  --soft: #f5f5f7;
  --line: #e8e6eb;
  --accent: #ff4d42;
  --shadow: 0 26px 80px rgba(18, 16, 24, 0.13);
  --shadow-soft: 0 12px 36px rgba(18, 16, 24, 0.08);
  font-family:
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* Choice weights stay compact in the question list and open in a focused modal. */
.admin-choice-editor .admin-choice-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.admin-choice-row-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.admin-choice-row-actions button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-height: 46px;
  border-radius: 11px;
  white-space: nowrap;
}

.admin-choice-row-actions .admin-danger-button {
  min-width: 64px;
  border: 1px solid #ff4d42;
  padding: 0 16px;
  background: #ff4d42;
}

.admin-weight-button,
.choice-weight-add,
.choice-weight-cancel,
.choice-weight-apply {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0 16px;
  background: #fff;
  color: #111113;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.admin-weight-button {
  height: 46px;
  min-height: 46px;
  align-self: end;
  border-color: #d9d2ff;
  background: #f5f2ff;
  color: #5f43c7;
}

.admin-weight-button:hover,
.choice-weight-add:hover,
.choice-weight-cancel:hover {
  border-color: #b9a9ff;
  background: #eeeaff;
}

.choice-weight-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 17, 19, 0.54);
  backdrop-filter: blur(8px);
}

.choice-weight-modal {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.choice-weight-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ececf1;
}

.choice-weight-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #6b55cc;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.choice-weight-modal h3 {
  margin: 0;
  color: #111113;
  font-size: 20px;
  line-height: 1.2;
}

.choice-weight-modal-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.choice-weight-close {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #55525d;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.choice-weight-close:hover {
  background: #f4f4f7;
  color: #111113;
}

.choice-weight-limit {
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.choice-weight-rows {
  display: grid;
  gap: 10px;
}

.choice-weight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #e8e7ed;
  border-radius: 15px;
  background: #fafafd;
}

.choice-weight-row .admin-danger-button {
  min-height: 46px;
  border-radius: 11px;
  border: 1px solid #ff4d42;
  background: #ff4d42;
  color: #ffffff;
}

.choice-weight-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ececf1;
}

.choice-weight-modal-actions > div {
  display: flex;
  gap: 8px;
}

.choice-weight-apply {
  border-color: #17171a;
  background: #17171a;
  color: #fff;
}

.choice-weight-apply:hover {
  background: #343438;
}

.choice-weight-add:disabled,
.choice-weight-row .admin-danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

@media (max-width: 600px) {
  .admin-choice-editor .admin-choice-row {
    grid-template-columns: 1fr;
  }

  .admin-choice-row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .choice-weight-modal-backdrop {
    align-items: end;
    padding: 0;
  }

  .choice-weight-modal {
    max-height: min(760px, 92vh);
    padding: 20px 16px 18px;
    border-radius: 22px 22px 0 0;
  }

  .choice-weight-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .choice-weight-row .admin-danger-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .choice-weight-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .choice-weight-modal-actions > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(255, 77, 66, 0.08),
      transparent 26rem
    ),
    linear-gradient(#fff, #fff);
}

.app-shell[data-theme="dark"] {
  --bg: #070a0f;
  --ink: #f7f8fb;
  --ink-2: #dfe5ee;
  --muted: #8e95a3;
  --soft: #111722;
  --line: #273040;
  --accent: #2f67ff;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.24);
  background: #070a0f;
}

.app-shell[data-theme="light"] {
  color-scheme: light;
}

.app-shell[data-theme="dark"] .site-header,
.app-shell[data-theme="dark"] .category-rail {
  background: rgba(7, 10, 15, 0.92);
  border-color: #182131;
}

.app-shell[data-theme="dark"] .brand-name,
.app-shell[data-theme="dark"] nav button,
.app-shell[data-theme="dark"] .section-head h2,
.app-shell[data-theme="dark"] .test-card strong,
.app-shell[data-theme="dark"] .detail-copy h1,
.app-shell[data-theme="dark"] .result-panel h1,
.app-shell[data-theme="dark"] .play-panel h1 {
  color: #f7f8fb;
}

.app-shell[data-theme="dark"] .top-search,
.app-shell[data-theme="dark"] .category-rail button,
.app-shell[data-theme="dark"] .side-list button,
.app-shell[data-theme="dark"] .detail-copy,
.app-shell[data-theme="dark"] .result-panel,
.app-shell[data-theme="dark"] .profile-panel,
.app-shell[data-theme="dark"] .play-panel,
.app-shell[data-theme="dark"] .test-card,
.app-shell[data-theme="dark"] .search-studio,
.app-shell[data-theme="dark"] .empty-state,
.app-shell[data-theme="dark"] .comment-panel {
  background: #0e141f;
  border-color: #263247;
}

.app-shell[data-theme="dark"] .choice-list button,
.app-shell[data-theme="dark"] .fact-row strong,
.app-shell[data-theme="dark"] .trait-grid div,
.app-shell[data-theme="dark"] .profile-stats div {
  background: #111722;
  border-color: #273040;
  color: #f7f8fb;
}

.app-shell[data-theme="dark"] .choice-key {
  background: #2f67ff;
  color: #fff;
}

.app-shell[data-theme="dark"] .play-question-card p {
  color: #f7f8fb;
}

.app-shell[data-theme="dark"] .comment-item,
.app-shell[data-theme="dark"] .comment-compose textarea,
.app-shell[data-theme="dark"] .comment-head span {
  background: #111722;
  border-color: #273040;
}

.app-shell[data-theme="dark"] nav button,
.app-shell[data-theme="dark"] .category-rail button,
.app-shell[data-theme="dark"] .top-search input {
  color: #eef2f8;
}

.app-shell[data-theme="dark"] .side-list strong,
.app-shell[data-theme="dark"] .side-list em,
.app-shell[data-theme="dark"] .section-head p,
.app-shell[data-theme="dark"] .comment-item p {
  color: #c9d2e2;
}

.app-shell[data-theme="dark"] .comment-head h2,
.app-shell[data-theme="dark"] .comment-compose h2,
.app-shell[data-theme="dark"] .comment-item strong,
.app-shell[data-theme="dark"] .comment-compose textarea {
  color: #f7f8fb;
}

.app-shell[data-theme="dark"] .top-search svg {
  fill: #eef2f8;
}

.app-shell[data-theme="dark"] nav button.active,
.app-shell[data-theme="dark"] .category-rail button.active {
  border-color: #fff;
  background: #fff;
  color: #101318;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(232, 230, 235, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100%, 1240px);
  height: 76px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-account-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: auto;
}

.brand {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-name {
  color: var(--ink);
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav button {
  position: relative;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: #4a4650;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
}

nav button.active {
  color: #fff;
  background: var(--ink);
}

.top-search {
  margin-left: auto;
  min-width: 280px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--soft);
}

.top-search svg {
  width: 19px;
  height: 19px;
  fill: #38353f;
}

.top-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.login-chip {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(255, 77, 66, 0.24);
}

.admin-tool-chip {
  min-height: 44px;
  border: 1px solid rgba(17, 17, 19, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  background: #111113;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 14px 28px rgba(17, 17, 19, 0.14);
}

.app-shell[data-theme="dark"] .admin-tool-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: #fff;
  color: #070a0f;
}

.mobile-actions,
.mobile-bottom-nav,
.cat-label-mobile,
.hero-page-count,
.hero-poster {
  display: none;
}

.mobile-actions button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
}

.mobile-actions .mobile-admin-tool {
  width: auto;
  min-width: 56px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 950;
}

.mobile-actions svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.category-rail {
  position: sticky;
  top: 76px;
  z-index: 19;
  width: 100%;
  min-height: 66px;
  margin: 0;
  padding: 10px max(24px, calc((100vw - 1240px) / 2 + 24px));
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-x;
  user-select: none;
  cursor: grab;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(232, 230, 235, 0.72);
  backdrop-filter: blur(18px);
}
.category-rail::-webkit-scrollbar {
  display: none;
}
.category-rail.is-dragging {
  cursor: grabbing;
}

.category-rail button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 17px;
  background: #fff;
  color: #38353f;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(18, 16, 24, 0.04);
}

.category-rail button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

main {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 30px 24px 96px;
}

.page-stack {
  display: grid;
  gap: 34px;
}

.hero-board {
  display: grid;
  grid-template-columns: minmax(0, 1.56fr) minmax(330px, 0.64fr);
  gap: 18px;
}

.hero-card {
  min-height: 478px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 6, 9, 0.88),
      rgba(7, 6, 9, 0.46) 54%,
      rgba(7, 6, 9, 0.08)
    ),
    linear-gradient(0deg, rgba(7, 6, 9, 0.48), transparent 46%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(610px, 78%);
  min-height: 478px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.hero-meta span {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 900;
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.72;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.hero-actions button,
.detail-copy button,
.result-panel button,
.profile-panel > button,
.empty-state button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 950;
}
.hero-actions button + button {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

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

.result-actions button {
  flex: 1 1 180px;
}

.result-actions .kakao-share-button {
  background: #fee500;
  color: #181600;
  box-shadow: 0 12px 26px rgba(254, 229, 0, 0.28);
}
.hero-actions svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.side-list {
  display: grid;
  gap: 12px;
}

.side-list button {
  min-height: 145px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 12px;
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: center;
  gap: 15px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-soft);
}
.side-list img {
  width: 108px;
  height: 108px;
  border-radius: 18px;
  object-fit: cover;
}
.side-list span {
  min-width: 0;
  display: grid;
  gap: 6px;
}
.side-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.side-list strong {
  font-size: 18px;
  line-height: 1.28;
}
.side-list em {
  color: #aaa5af;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 10px;
}
.section-head h2 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1.16;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.test-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  padding: 0;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 16px 38px rgba(18, 16, 24, 0.11);
  transform: translateZ(0);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    filter 0.28s ease;
  will-change: transform;
}

.test-card:hover,
.test-card:focus-visible {
  transform: translateY(-8px) scale(1.018);
  box-shadow: 0 34px 70px rgba(18, 16, 24, 0.22);
}

.test-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.36s ease;
  will-change: transform;
}

.test-card::before {
  content: "";
  position: absolute;
  inset: -36%;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 255, 255, 0.32) 48%,
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-72%) rotate(8deg);
  transition:
    transform 0.5s ease,
    opacity 0.22s ease;
  mix-blend-mode: screen;
}

.test-card::after {
  display: none;
}

.test-card:hover img,
.test-card:focus-visible img {
  transform: scale(1.075);
  filter: saturate(1.12) contrast(1.05);
}

.test-card:hover::before,
.test-card:focus-visible::before {
  opacity: 0.78;
  transform: translateX(72%) rotate(8deg);
}

.view-count {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.54);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
  transition:
    transform 0.26s ease,
    background 0.26s ease;
}
.view-count svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.test-card:hover .view-count,
.test-card:focus-visible .view-count {
  transform: translateY(-3px);
  background: rgba(0, 0, 0, 0.68);
}

.card-copy {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 15px;
  left: 15px;
  display: grid;
  gap: 7px;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.test-card:hover .card-copy,
.test-card:focus-visible .card-copy {
  transform: translateY(-7px);
}
.card-copy strong {
  font-size: 16px;
  line-height: 1.28;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.78);
}
.card-copy em {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-copy small {
  color: #cac6d0;
  font-size: 12px;
  font-weight: 900;
}

.horror-hero-card {
  border: 1px solid #202b3b;
  background:
    radial-gradient(
      circle at 74% 18%,
      rgba(103, 41, 53, 0.28),
      transparent 22rem
    ),
    #070a0f;
}

.horror-hero-card .hero-backdrop {
  filter: brightness(0.72) saturate(0.9) contrast(1.04);
}

.horror-hero-card::after {
  background:
    linear-gradient(
      90deg,
      rgba(3, 5, 9, 0.68),
      rgba(3, 5, 9, 0.34) 55%,
      rgba(3, 5, 9, 0.08)
    ),
    linear-gradient(0deg, rgba(3, 5, 9, 0.34), transparent 48%);
}

.horror-side-list button {
  border-color: transparent;
  background: #0e141f;
}

.horror-side-list img {
  filter: brightness(0.96) saturate(0.9);
}

.horror-side-list small {
  color: #8ea7cf;
}

.horror-side-list strong {
  color: #f7f8fb;
}

.horror-card span,
.story-stage span {
  color: #9fb5d8;
  font-size: 13px;
  font-weight: 950;
}

.horror-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.horror-card {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  padding: 0;
  aspect-ratio: 3 / 4;
  background: #0b111b;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  will-change: transform;
}

.horror-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92) saturate(0.9);
  transition:
    transform 0.36s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.36s ease;
  will-change: transform;
}

.horror-card::before {
  content: "";
  position: absolute;
  inset: -36%;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 34%,
    rgba(255, 255, 255, 0.24) 48%,
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transform: translateX(-72%) rotate(8deg);
  transition:
    transform 0.5s ease,
    opacity 0.22s ease;
  mix-blend-mode: screen;
}

.horror-card::after {
  display: none;
}

.horror-card span,
.horror-card strong,
.horror-card em {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
}

.horror-card span {
  bottom: 56px;
}

.horror-card strong {
  bottom: 18px;
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.24;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.86);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.horror-card em {
  bottom: 18px;
  display: -webkit-box;
  overflow: hidden;
  color: #c4cfdf;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.78);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.horror-card:hover,
.horror-card:focus-visible {
  transform: translateY(-8px) scale(1.018);
  border-color: #6f85ab;
  box-shadow: 0 34px 78px rgba(0, 0, 0, 0.45);
}

.horror-card:hover img,
.horror-card:focus-visible img {
  transform: scale(1.075);
  filter: brightness(1) saturate(0.98);
}

.horror-card:hover::before,
.horror-card:focus-visible::before {
  opacity: 0.74;
  transform: translateX(72%) rotate(8deg);
}

.story-reader {
  display: grid;
  gap: 20px;
}

.story-back {
  justify-self: start;
  min-height: 42px;
  border: 1px solid #263247;
  border-radius: 999px;
  padding: 0 15px;
  background: #0f1622;
  color: #dbe6f7;
  cursor: pointer;
  font-weight: 900;
}

.story-stage {
  overflow: hidden;
  border: 1px solid #253146;
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  background: #090d14;
  box-shadow: var(--shadow);
}

.story-stage img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: brightness(1.28) saturate(1.04) contrast(0.94);
}

.story-stage article {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.story-stage h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.08;
}

.story-stage p {
  margin: 0;
  color: #c8d3e4;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 650;
}

.caption-track {
  display: grid;
  gap: 12px;
}

.caption-track p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #253146;
  border-radius: 16px;
  background: #0f1622;
  color: #dce7f8;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 760;
}

.story-detail-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 14px;
}

.story-detail-meta strong {
  min-height: 48px;
  border: 1px solid #263247;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #111722;
  color: #eef4ff;
  font-size: 13px;
}

.story-listen-note {
  padding: 14px 16px;
  border: 1px solid #253146;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: #aab6ca !important;
  font-size: 14px !important;
}

.story-start-button {
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #e9eef8;
  color: #07101d;
  cursor: pointer;
  font-weight: 950;
}

.story-start-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.story-player-viewport {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #020306;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}

.story-player {
  position: relative;
  width: min(100vw, calc(100svh * 9 / 16));
  height: min(100svh, calc(100vw * 16 / 9));
  --visual-duration: 8000ms;
  max-width: 100vw;
  max-height: 100svh;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #020306;
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 24px 90px rgba(0, 0, 0, 0.55);
}

.story-player-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: brightness(0.88) saturate(0.94);
  transform-origin: center;
  animation-duration: var(--visual-duration);
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

.story-player-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0.24) 58%,
      rgba(0, 0, 0, 0.58)
    ),
    linear-gradient(
      180deg,
      rgba(2, 3, 6, 0.22),
      rgba(2, 3, 6, 0.03) 34%,
      rgba(2, 3, 6, 0.62)
    );
  pointer-events: none;
}

.story-player-top {
  position: relative;
  z-index: 3;
  min-height: 58px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0));
}

.story-player-top span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 20px;
  font-weight: 950;
}

.story-player-top div {
  display: flex;
  gap: 6px;
}

.story-player-top button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(8, 12, 19, 0.42);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.story-progress {
  position: relative;
  z-index: 3;
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.story-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a01522, #fff);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
}

.story-text-panel {
  position: absolute;
  right: 18px;
  bottom: 20px;
  left: 18px;
  z-index: 3;
  min-height: 168px;
  padding: 24px 22px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  display: grid;
  align-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(9, 12, 18, 0.64),
    rgba(4, 5, 8, 0.82)
  );
  box-shadow: 0 -18px 70px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
}

.story-text-panel p {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(17px, 4.5vw, 24px);
  line-height: 1.65;
  font-weight: 800;
  white-space: pre-line;
  word-break: keep-all;
}

.story-text-panel small {
  justify-self: end;
  margin-top: 18px;
  color: #8f9caf;
  font-size: 12px;
  font-weight: 900;
}

.story-text-panel.text-whisper p {
  color: rgba(235, 241, 250, 0.72);
  font-size: clamp(17px, 4.5vw, 24px);
  font-weight: 650;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.story-text-panel.text-red p {
  color: #ff5464;
  text-shadow: 0 0 20px rgba(210, 18, 42, 0.35);
}

.story-text-panel.text-shake p {
  animation: textShake 0.13s steps(2, end) infinite;
}

.story-text-panel.text-broken p {
  color: #dfe5ee;
  letter-spacing: 0.04em;
  text-shadow:
    2px 0 #b41128,
    -2px 0 #2f67ff;
}

.story-text-panel.text-silent {
  display: none;
}

.visual-fade .story-player-bg {
  animation-name: imageFadeIn;
}

.visual-slow_zoom_in .story-player-bg {
  animation-name: slowZoomIn;
}

.visual-slow_zoom_out .story-player-bg {
  animation-name: slowZoomOut;
}

.visual-pan_left .story-player-bg {
  object-fit: cover;
  animation-name: panLeft;
}

.visual-pan_right .story-player-bg {
  object-fit: cover;
  animation-name: panRight;
}

.visual-micro_shake .story-player-bg {
  animation: microShake 0.16s steps(2, end) infinite;
}

.visual-flicker .story-player-bg {
  animation: flicker 0.82s steps(2, end) infinite;
}

.visual-glitch .story-player-bg {
  animation: glitchImage 0.38s steps(2, end) infinite;
}

.visual-blackout::after,
.transition-blackout::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: blackoutPulse var(--visual-duration) ease both;
}

.visual-red_flash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(190, 0, 24, 0.32);
  animation: redFlash 0.7s ease both;
}

.visual-noise_overlay::before,
.visual-shadow_reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.visual-noise_overlay::before {
  opacity: 0.2;
  background-image:
    linear-gradient(
      transparent 0 50%,
      rgba(255, 255, 255, 0.52) 50% 51%,
      transparent 51%
    ),
    radial-gradient(circle, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size:
    100% 4px,
    6px 6px;
  animation: noiseCrawl 0.42s steps(2, end) infinite;
}

.visual-shadow_reveal::before {
  background: radial-gradient(
    circle at 48% 26%,
    transparent 0 18%,
    rgba(0, 0, 0, 0.78) 62%
  );
  animation: shadowReveal var(--visual-duration) ease both;
}

.story-ending {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.story-ending img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.story-ending article {
  padding: 38px;
  border: 1px solid #253146;
  border-radius: 28px;
  background: #0e141f;
  color: #f7f9ff;
}

.story-ending span {
  color: #ff5464;
  font-weight: 950;
}

.story-ending h1 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4vw, 58px);
}

.story-ending p {
  color: #c9d2e2;
  line-height: 1.8;
  font-weight: 700;
}

.story-ending-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.story-ending-actions button,
.recommend-story-grid button,
.admin-preview button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.recommend-story-strip {
  display: grid;
  gap: 16px;
}

.section-head.compact {
  margin-top: 0;
}

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

.recommend-story-grid button {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  background: #0b111b;
  box-shadow: var(--shadow-soft);
}

.recommend-story-grid img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.74) saturate(0.9);
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.recommend-story-grid button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.62));
}

.recommend-story-grid span,
.recommend-story-grid strong,
.recommend-story-grid em {
  position: relative;
  z-index: 1;
}

.recommend-story-grid span {
  color: #9fb5d8;
  font-size: 12px;
}

.recommend-story-grid strong {
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
}

.recommend-story-grid em {
  margin-top: 8px;
  color: #c4cfdf;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.recommend-story-grid button:hover img {
  transform: scale(1.05);
  filter: brightness(0.84) saturate(0.96);
}

.admin-preview {
  display: grid;
  gap: 22px;
}

.admin-console {
  width: min(100%, 1380px);
}

.admin-members-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(18, 16, 24, 0.06);
}

.admin-members-panel .admin-panel-title {
  align-items: center;
}

.admin-members-panel .admin-panel-title p {
  margin: 6px 0 0;
  color: #737884;
  font-size: 13px;
  font-weight: 700;
}

.admin-members-panel .admin-panel-title > strong {
  color: #2463de;
  font-size: 14px;
}

.admin-members-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-members-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(100px, .7fr) minmax(170px, 1fr) 130px;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  color: #343943;
  font-size: 13px;
  font-weight: 750;
}

.admin-members-row:first-child {
  border-top: 0;
}

.admin-members-head {
  min-height: 42px;
  background: #f7f8fb;
  color: #737884;
  font-size: 11px;
  font-weight: 950;
}

.admin-members-row > div {
  display: grid;
  gap: 4px;
}

.admin-members-row small,
.admin-members-row time {
  color: #858b96;
  font-size: 11px;
  font-weight: 700;
}

.admin-members-row select {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  background: #fff;
  color: #20242c;
  font-weight: 850;
  outline: 0;
}

.admin-members-row select:focus {
  border-color: #2463de;
  box-shadow: 0 0 0 3px rgba(36, 99, 222, 0.12);
}

.admin-members-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  border: 1px dashed #cfd5df;
  border-radius: 14px;
  color: #737884;
  font-weight: 800;
}

.admin-console-head {
  align-items: center;
}

.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-draft-restore {
  display: flex;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-draft-restore select {
  max-width: 184px;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: #3a4453;
  font-size: 12px;
  font-weight: 850;
  outline: 0;
}

.admin-draft-restore button {
  min-width: 50px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: #f6f8fb;
  color: #1f4f93;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.admin-draft-restore button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.admin-tabs {
  position: sticky;
  top: 76px;
  z-index: 5;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(18, 16, 24, 0.06);
  backdrop-filter: blur(18px);
}

.admin-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: transparent;
  color: #5f5b66;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.admin-tabs button.active {
  background: #111113;
  color: #fff;
}

.admin-notice {
  margin: 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: #eef7ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 850;
}

.admin-save-bar {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #f8fbff;
  color: #172033;
}

.admin-save-bar span {
  min-width: 0;
  color: #4b5563;
  font-size: 13px;
  font-weight: 800;
}

.admin-save-bar strong {
  color: #111113;
  font-weight: 950;
}

.admin-save-bar button {
  flex: 0 0 auto;
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.admin-scoring-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-scoring-mode legend {
  margin-right: 4px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 950;
}

.admin-scoring-mode label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #273043;
  cursor: pointer;
}

.admin-scoring-mode label:has(input:checked) {
  border-color: #2563eb;
  background: #eef5ff;
  color: #174ea6;
}

.admin-scoring-mode input {
  accent-color: #2563eb;
}

.admin-scoring-mode span {
  display: grid;
  gap: 1px;
}

.admin-scoring-mode strong {
  font-size: 12px;
  font-weight: 950;
}

.admin-scoring-mode small {
  color: #7b8493;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.admin-score-range {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe5ff;
  border-radius: 16px;
  background: #f7faff;
}

.admin-score-range h3 {
  margin: 0;
  color: #173f89;
  font-size: 15px;
}

.admin-score-range p {
  margin: 5px 0 0;
  color: #65728a;
  font-size: 12px;
  font-weight: 700;
}

.admin-choice-row-actions .admin-field {
  min-width: 108px;
}

.admin-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-check-list span {
  min-height: 42px;
  border-radius: 12px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: var(--soft);
  color: #27242d;
  font-size: 13px;
  font-weight: 900;
}

.admin-checkbox {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #27242d;
  cursor: pointer;
}

.admin-checkbox:has(input:checked) {
  border-color: #2563eb;
  background: #eef5ff;
}

.admin-checkbox input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #2563eb;
}

.admin-checkbox span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-checkbox strong {
  font-size: 13px;
  font-weight: 950;
}

.admin-checkbox em {
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.45;
}

.admin-workbench {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-list-panel,
.admin-editor {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-list-panel {
  max-height: calc(100vh - 190px);
  position: sticky;
  top: 140px;
  overflow: auto;
  container-type: inline-size;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  margin-bottom: 14px;
  min-width: 0;
}

.admin-panel-title h2,
.admin-editor h2 {
  margin: 0;
  color: #111113;
  font-size: 22px;
}

.admin-panel-title > * {
  min-width: 0;
  white-space: nowrap;
}

.admin-panel-title h2 {
  flex: 1 1 auto;
  font-size: clamp(11px, 6.25cqi, 22px);
  line-height: 1.2;
}

.admin-list-panel .admin-panel-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-list-panel .admin-panel-title h2 {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(12px, 4.6cqi, 18px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-panel-title button,
.admin-editor-actions button,
.admin-json-save,
.admin-file-button,
.admin-preview button {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111113;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
}

.admin-panel-title button {
  flex: 0 0 auto;
  padding-inline: clamp(8px, 3cqi, 14px);
  font-size: clamp(10px, 3.7cqi, 13px);
  white-space: nowrap;
}

.admin-row-list {
  display: grid;
  gap: 9px;
}

.admin-row-list > button,
.admin-row-list .admin-row-item,
.admin-row-list > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8f8fa;
}

.admin-row-list > button,
.admin-row-item > button {
  width: 100%;
  min-height: 58px;
  border: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: center;
  background: transparent;
  color: #111113;
  cursor: pointer;
  text-align: left;
}

.admin-row-list > button:not(:has(img)) {
  grid-template-columns: 1fr;
}

.admin-row-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  overflow: hidden;
}

.admin-row-list .active,
.admin-row-item.active {
  border-color: #111113;
  background: #fff;
  box-shadow: 0 12px 26px rgba(18, 16, 24, 0.08);
}

.admin-row-list img,
.admin-row-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}

.admin-row-list strong,
.admin-row-list span,
.admin-row-list em {
  display: block;
}

.admin-row-list strong {
  overflow: hidden;
  color: #15131a;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-row-list span,
.admin-row-list em {
  margin-top: 4px;
  overflow: hidden;
  color: #76717d;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-danger-button {
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0 12px;
  background: #ff4d42;
  color: #ffffff;
  cursor: pointer;
  font-weight: 950;
}

.admin-editor {
  display: grid;
  gap: 14px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-commit-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-commit-field > button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 0 14px;
  background: #111113;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.admin-commit-field > button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-field {
  display: grid;
  gap: 7px;
}

.admin-field span {
  color: #5f5b66;
  font-size: 12px;
  font-weight: 950;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 13px;
  outline: 0;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.admin-field textarea {
  min-height: 112px;
  padding-block: 12px;
  resize: vertical;
  line-height: 1.55;
}

.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  border-color: #111113;
  box-shadow: 0 0 0 3px rgba(17, 17, 19, 0.08);
}

.admin-color-control {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}

.admin-field input.admin-color-picker {
  min-height: 46px;
  padding: 5px;
  cursor: pointer;
}

.admin-color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.admin-color-picker::-webkit-color-swatch {
  border: 0;
  border-radius: 8px;
}

.admin-color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-color-swatches button {
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 7px;
  background: var(--swatch-color);
  box-shadow: 0 0 0 1px #d8d9df;
  cursor: pointer;
}

.admin-color-swatches button:hover,
.admin-color-swatches button.active {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px #111113;
}

.admin-choice-editor {
  display: grid;
  gap: 10px;
}

.admin-choice-editor > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 10px;
  background: #fafafa;
}

.admin-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.admin-editor-actions button:first-child:nth-last-child(n + 2) {
  background: #f1f1f4;
  color: #111113;
}

.admin-upload-box {
  display: grid;
  gap: 12px;
}

.admin-file-button {
  position: relative;
  overflow: hidden;
}

.admin-file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.story-image-control {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  background: #fafafa;
}

.story-image-control-head {
  display: grid;
  gap: 5px;
}

.story-image-control-head span {
  color: #5f5b66;
  font-size: 12px;
  font-weight: 950;
}

.story-image-control-head strong {
  overflow: hidden;
  color: #111113;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.story-image-control > img {
  width: min(180px, 100%);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.story-image-control .admin-danger-button {
  border-color: rgba(239, 68, 68, 0.22);
  background: #fff5f5;
  color: #dc2626;
}

.story-image-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 9px;
}

.story-image-picker button {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px;
  display: grid;
  gap: 6px;
  background: #fff;
  color: #111113;
  cursor: pointer;
  text-align: left;
}

.story-image-picker button.active {
  border-color: #2f67ff;
  box-shadow: 0 0 0 3px rgba(47, 103, 255, 0.14);
}

.story-image-picker img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.story-image-picker span,
.story-image-picker p {
  overflow: hidden;
  margin: 0;
  color: #5f5b66;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.story-audio-control audio {
  width: 100%;
}

.story-audio-picker {
  display: grid;
  gap: 8px;
}

.story-audio-picker button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  display: grid;
  gap: 4px;
  background: #fff;
  color: #111113;
  cursor: pointer;
  text-align: left;
}

.story-audio-picker button.active {
  border-color: #2f67ff;
  box-shadow: 0 0 0 3px rgba(47, 103, 255, 0.14);
}

.story-audio-picker strong,
.story-audio-picker span,
.story-audio-picker p {
  overflow: hidden;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.story-audio-picker strong {
  font-size: 12px;
  font-weight: 950;
}

.story-audio-picker span,
.story-audio-picker p {
  color: #5f5b66;
  font-size: 11px;
  font-weight: 850;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.admin-media-grid div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 7px;
  background: #fafafa;
}

.admin-media-grid img,
.admin-audio-chip {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
  background: #111113;
}

.admin-audio-chip {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
}

.admin-media-grid strong {
  overflow: hidden;
  color: #111113;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-media-grid em {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-media-grid button {
  min-height: 32px;
  border: 0;
  border-radius: 10px;
  background: #fff1f0;
  color: #d92d20;
  cursor: pointer;
  font-weight: 950;
}

.admin-stat-table {
  display: grid;
  gap: 10px;
}

.admin-stat-table div {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
}

.admin-stat-table span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-stat-table strong {
  color: #111113;
  font-size: 22px;
}

.beat-list {
  max-height: 620px;
  overflow: auto;
}

.beat-list span {
  overflow: visible;
  white-space: pre-line;
  text-overflow: clip;
}

.admin-beat-splitter {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dce8ff;
  border-radius: 16px;
  display: grid;
  gap: 9px;
  background: #f4f8ff;
}

.admin-beat-splitter strong {
  color: #111113;
  font-size: 14px;
  font-weight: 950;
}

.admin-beat-splitter p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.admin-beat-splitter textarea {
  width: 100%;
  min-height: 138px;
  border: 1px solid #cfe0ff;
  border-radius: 12px;
  padding: 12px;
  outline: 0;
  resize: vertical;
  background: #fff;
  color: #111113;
  font: inherit;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 750;
}

.admin-beat-splitter textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.admin-beat-splitter div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-beat-splitter button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.admin-beat-splitter button:first-child {
  background: #111113;
}

.admin-beat-splitter button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.admin-preview-head {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-preview-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.admin-preview-head h1 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 4vw, 52px);
}

.admin-preview-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 750;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat-grid article,
.admin-board article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.admin-stat-grid span,
.admin-beat-list em {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.admin-stat-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
}

.admin-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 16px;
}

.admin-board h2 {
  margin: 0 0 8px;
}

.admin-board p {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 720;
}

.admin-beat-list,
.schema-list {
  display: grid;
  gap: 10px;
}

.admin-beat-list div,
.schema-list details {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.admin-beat-list strong,
.admin-beat-list span,
.admin-beat-list em {
  display: block;
}

.admin-beat-list span {
  margin: 6px 0;
  line-height: 1.55;
  font-weight: 780;
}

.schema-list summary {
  cursor: pointer;
  font-weight: 950;
}

.schema-list p {
  margin: 10px 0 0;
  word-break: break-word;
  font-size: 13px;
}

@keyframes imageFadeIn {
  from {
    opacity: 0.18;
    filter: brightness(0.32) saturate(0.7);
    transform: none;
  }

  to {
    opacity: 1;
    filter: brightness(0.72) saturate(0.88);
    transform: none;
  }
}

@keyframes slowZoomIn {
  from {
    transform: none;
    filter: brightness(0.72) saturate(0.88);
  }
  to {
    transform: none;
    filter: brightness(0.86) saturate(0.94);
  }
}

@keyframes slowZoomOut {
  from {
    transform: none;
    filter: brightness(0.86) saturate(0.94);
  }
  to {
    transform: none;
    filter: brightness(0.72) saturate(0.88);
  }
}

@keyframes panLeft {
  from {
    object-position: 100% center;
    transform: none;
    filter: brightness(0.78) saturate(0.88);
  }
  to {
    object-position: 0% center;
    transform: none;
    filter: brightness(0.9) saturate(0.96);
  }
}

@keyframes panRight {
  from {
    object-position: 0% center;
    transform: none;
    filter: brightness(0.78) saturate(0.88);
  }
  to {
    object-position: 100% center;
    transform: none;
    filter: brightness(0.9) saturate(0.96);
  }
}

@keyframes microShake {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: none;
    filter: brightness(0.82) saturate(0.82);
  }
}

@keyframes flicker {
  0%,
  100% {
    filter: brightness(0.72) saturate(0.88);
  }
  48% {
    filter: brightness(0.34) saturate(0.58);
  }
  52% {
    filter: brightness(1.1) saturate(1);
  }
}

@keyframes glitchImage {
  0%,
  100% {
    transform: none;
    filter: hue-rotate(0deg) brightness(0.72);
  }
  33% {
    transform: none;
    filter: hue-rotate(18deg) brightness(0.9);
  }
  66% {
    transform: none;
    filter: hue-rotate(-14deg) brightness(0.52);
  }
}

@keyframes blackoutPulse {
  0% {
    background: #000;
    opacity: 1;
  }
  100% {
    background: #000;
    opacity: 0;
  }
}

@keyframes redFlash {
  0% {
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes shadowReveal {
  from {
    opacity: 0.92;
  }
  to {
    opacity: 0.22;
  }
}

@keyframes noiseCrawl {
  0% {
    transform: translate(0, 0);
    opacity: 0.16;
  }

  50% {
    transform: translate(-1px, 2px);
    opacity: 0.26;
  }

  100% {
    transform: translate(1px, -1px);
    opacity: 0.2;
  }
}

@keyframes textShake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
}

.comment-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  gap: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

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

.comment-head h2,
.comment-compose h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.comment-head span {
  min-width: 34px;
  min-height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment-item {
  padding: 16px;
  border-radius: 16px;
  background: var(--soft);
}

.comment-item strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.comment-item p {
  margin: 7px 0 8px;
  color: var(--ink-2);
  line-height: 1.62;
  font-weight: 700;
}

.comment-item time,
.comment-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.comment-empty {
  margin: 0;
}

.comment-compose form {
  display: grid;
  gap: 10px;
}

.comment-compose textarea {
  min-height: 106px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px;
  outline: 0;
  background: var(--soft);
  color: var(--ink);
  font-weight: 750;
  line-height: 1.6;
}

.comment-compose textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.comment-compose button {
  justify-self: end;
  min-width: 100px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.comment-compose button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.search-studio {
  padding: 28px;
  border-radius: 28px;
  background: #111113;
  box-shadow: var(--shadow);
}
.search-studio label {
  height: 68px;
  padding: 0 18px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.search-studio svg {
  width: 22px;
  height: 22px;
  fill: var(--ink);
}
.search-studio input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}
.search-studio button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.empty-state {
  min-height: 340px;
  padding: 40px;
  border: 1px dashed #d8d4df;
  border-radius: 28px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: #fff;
}
.empty-state strong {
  font-size: 24px;
}
.empty-state p {
  color: var(--muted);
  font-weight: 700;
}

.detail-layout,
.result-layout {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.mobile-detail-topbar,
.detail-playbar {
  display: none;
}

.detail-visual {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  background: #080b10;
}

.detail-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(4, 7, 12, 0.18);
  pointer-events: none;
}

.detail-backdrop {
  position: absolute;
  inset: -24px;
  z-index: 0;
  display: block;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: cover;
  filter: blur(22px) brightness(0.58) saturate(0.92);
  transform: scale(1.08);
  pointer-events: none;
}

.detail-tags,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.detail-stats {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.detail-character-preview {
  display: none;
}

.detail-art {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 28px;
  object-fit: contain;
  box-shadow: var(--shadow);
}
.detail-copy,
.result-panel,
.profile-panel,
.play-panel {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.result-panel.result-panel-text-hidden {
  padding-top: 14px;
}
.detail-copy span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
}

.result-panel > span {
  color: var(--accent);
  font-size: 20px;
  font-weight: 950;
}

.detail-copy h1,
.play-panel h1 {
  margin: 14px 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
}

.result-panel h1 {
  margin: 14px 0;
  font-size: 18px;
  line-height: 1.08;
}

.play-panel h1 {
  margin: 16px 0 22px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
}
.detail-copy p,
.result-panel p {
  color: #5d5964;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 650;
}
.fact-row,
.trait-grid,
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.fact-row strong,
.trait-grid div,
.profile-stats div {
  padding: 16px;
  border-radius: 18px;
  background: var(--soft);
}

.detail-start-button {
  width: 100%;
  margin-top: 18px;
  min-height: 56px;
  font-size: 16px;
  box-shadow: 0 18px 34px rgba(255, 70, 64, 0.22);
}

.detail-start-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}
.trait-grid strong,
.trait-grid em,
.profile-stats strong,
.profile-stats span {
  display: block;
}
.trait-grid em,
.profile-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.play-panel {
  max-width: 560px;
  margin: 0 auto;
  color: #111113;
}
.progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}
.progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--ink));
}
.play-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.play-question-card {
  padding: 26px 20px 30px;
  text-align: center;
}

.play-question-card p {
  margin: 0 0 12px;
  color: #111113;
  font-size: 16px;
  font-weight: 950;
}

.play-question-card h1 {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  letter-spacing: 0;
}
.choice-list {
  display: grid;
  gap: 12px;
}
.choice-list button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  background: #fff;
  color: #111113;
  cursor: pointer;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(18, 16, 24, 0.07);
}

.choice-list.choice-width-custom,
.choice-list.choice-min-width-custom,
.choice-list.choice-max-width-custom {
  justify-items: center;
}

.choice-list.choice-width-custom button,
.choice-list.choice-min-width-custom button,
.choice-list.choice-max-width-custom button {
  justify-self: center;
}

.choice-list.choice-width-custom button {
  width: min(100%, var(--choice-width));
}

.choice-list.choice-min-width-custom button {
  min-width: min(100%, var(--choice-min-width));
}

.choice-list.choice-max-width-custom button {
  max-width: min(100%, var(--choice-max-width));
}

.choice-list.choice-height-custom button {
  min-height: var(--choice-height);
  height: var(--choice-height);
}

.choice-list.choice-gap-custom {
  gap: var(--choice-gap);
}

.choice-list.choice-offset-custom {
  transform: translateY(var(--choice-offset-y));
}
.choice-list button:hover {
  transform: translateY(-1px);
  background: #fbfbfd;
}

.choice-list button:active {
  transform: translateY(1px);
}

.choice-key {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.choice-text {
  min-width: 0;
  width: 100%;
  text-align: center;
}

.profile-dashboard {
  position: relative;
  display: grid;
  gap: 20px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid #e3e8ef;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(28, 36, 53, 0.07);
}

.profile-cover {
  position: relative;
  height: 218px;
  overflow: hidden;
  border-radius: 20px;
  background: #1e5c84;
}

.profile-cover::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.74;
  background:
    linear-gradient(90deg, rgba(10, 42, 72, 0.42) 1px, transparent 1px),
    linear-gradient(rgba(10, 42, 72, 0.42) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 58%, #000);
}

.profile-cover-grid {
  position: absolute;
  right: -4%;
  bottom: -64%;
  left: 38%;
  height: 145%;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 1px, transparent 1px);
  background-size: 36px 36px;
  transform: perspective(420px) rotateX(58deg) scale(1.35) translateY(26%);
  transform-origin: bottom;
}

.profile-cover-orb {
  display: none;
}

.profile-cover-orb-one {
  top: 22px;
  right: 16%;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.18);
}

.profile-cover-orb-two {
  right: 5%;
  bottom: -46px;
  width: 172px;
  height: 172px;
  background: rgba(13, 54, 106, 0.28);
}

.profile-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-top: -171px;
  padding: 0 20px;
}

.profile-avatar {
  position: relative;
  width: 126px;
  height: 126px;
  padding: 5px;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(10, 32, 58, 0.18);
}

.profile-avatar > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 33px;
  background: #2e6f9f;
  color: #fff;
  font-size: 54px;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
}

.profile-avatar i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #57d99b;
}

.profile-identity {
  min-width: 0;
  padding-bottom: 2px;
}

.profile-eyebrow,
.profile-side-kicker {
  display: block;
  color: #4a7ed2;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.profile-identity .profile-eyebrow {
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 8px rgba(14, 38, 70, 0.3);
}

.profile-identity h1 {
  margin: 6px 0 6px;
  color: #fff;
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  text-shadow: 0 2px 16px rgba(14, 38, 70, 0.4);
}

.profile-identity p {
  overflow: hidden;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(14, 38, 70, 0.34);
}

.profile-provider {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-top: 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #36516f;
  font-size: 11px;
  font-weight: 850;
}

.profile-library-button {
  min-height: 46px;
  padding: 0 17px 0 18px;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1a3152;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-library-button svg,
.profile-history-list svg,
.profile-quick-actions svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.profile-library-button:hover {
  border-color: #79a1dd;
  box-shadow: 0 8px 20px rgba(42, 87, 145, 0.14);
  transform: translateY(-2px);
}

.profile-summary .profile-library-button {
  transform: translateY(-22px);
}

.profile-summary .profile-library-button:hover {
  transform: translateY(-24px);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: -18px;
  transform: translateY(-18px);
}

.profile-metrics article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  background: #f8fafc;
  overflow: hidden;
}

.metric-icon {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 900;
}

.metric-icon-coral {
  background: #fff0ed;
  color: #f26654;
}
.metric-icon-violet {
  background: #f2efff;
  color: #7b61c7;
}
.metric-icon-blue {
  background: #eaf5ff;
  color: #3284c8;
}

.profile-metrics strong,
.profile-metrics article > span:last-child {
  display: block;
}

.profile-metrics strong {
  color: #151922;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
}

.profile-metrics article > span:last-child {
  margin-top: 8px;
  color: #727b8d;
  font-size: 12px;
  font-weight: 750;
}

.profile-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 14px;
}

.profile-history-card,
.profile-side-card {
  min-height: 264px;
  padding: 22px;
  border: 1px solid #e7eaf0;
  border-radius: 21px;
}

.profile-history-card {
  background: #fff;
}

.profile-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.profile-card-heading > div > span {
  display: block;
  color: #9aa4b5;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.profile-card-heading h2,
.profile-side-card h2 {
  margin: 5px 0 0;
  color: #171b24;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0;
}

.profile-card-heading > button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #4776bf;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.profile-history-list {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.profile-history-list > button {
  width: 100%;
  min-height: 58px;
  padding: 7px 4px;
  border: 0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    padding 0.2s ease;
}

.profile-history-deleted,
.deleted-history-item {
  width: 100%;
  min-height: 58px;
  padding: 7px 4px;
  border: 1px dashed #d8dee8;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  background: #fafbfd;
  color: inherit;
  text-align: left;
}

.profile-history-deleted .history-placeholder,
.deleted-history-mark {
  background: #eef1f5;
  color: #8b95a5;
}

.deleted-history-item {
  min-height: 145px;
  padding: 12px;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 15px;
}

.deleted-history-mark {
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 28px;
  font-weight: 950;
}

.deleted-history-item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.deleted-history-item small,
.deleted-history-item strong,
.deleted-history-item em {
  display: block;
}

.deleted-history-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.deleted-history-item strong {
  color: #4e5969;
  font-size: 18px;
  line-height: 1.28;
}

.deleted-history-item em {
  color: #8a93a1;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.profile-history-list > button:hover {
  padding-right: 10px;
  padding-left: 10px;
  background: #f5f8fc;
}

.profile-history-list img,
.history-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.history-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #d6e7ff, #86a9dd);
  color: #fff;
  font-weight: 950;
}

.profile-history-list button > span:not(.history-placeholder) {
  min-width: 0;
}
.profile-history-list small,
.profile-history-list strong,
.profile-history-list em {
  display: block;
}
.profile-history-list small {
  color: #9aa2af;
  font-size: 10px;
  font-weight: 750;
}
.profile-history-list strong {
  overflow: hidden;
  margin-top: 2px;
  color: #252b35;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-history-list em {
  overflow: hidden;
  margin-top: 2px;
  color: #788193;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-history-list > button > svg {
  color: #9ca8ba;
}

.profile-empty-history {
  min-height: 163px;
  margin-top: 16px;
  padding: 17px;
  border-radius: 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 12px;
  background: #f7f9fd;
}

.profile-empty-history > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e7f2ff;
  color: #4584d5;
}

.profile-empty-history strong {
  display: block;
  color: #27303d;
  font-size: 13px;
}
.profile-empty-history p {
  margin: 5px 0 0;
  color: #778194;
  font-size: 12px;
  line-height: 1.55;
}
.profile-empty-history button {
  grid-column: 2;
  justify-self: start;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2f70c6;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.profile-side-card {
  overflow: hidden;
  position: relative;
  background: #eef6fb;
}

.profile-side-card::after {
  position: absolute;
  right: -36px;
  bottom: -58px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(69, 124, 190, 0.14);
  border-radius: 14px;
  content: "";
}

.profile-side-card > * {
  position: relative;
  z-index: 1;
}
.profile-side-card h2 {
  max-width: 290px;
  line-height: 1.28;
}
.profile-side-card > p {
  max-width: 300px;
  margin: 10px 0 18px;
  color: #617085;
  font-size: 12px;
  line-height: 1.6;
}

.profile-quick-actions {
  display: grid;
  gap: 7px;
}
.profile-quick-actions button {
  width: 100%;
  min-height: 55px;
  padding: 7px 10px;
  border: 1px solid rgba(197, 214, 234, 0.8);
  border-radius: 13px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.7);
  color: #26354a;
  cursor: pointer;
  text-align: left;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-quick-actions button:hover {
  background: #fff;
  box-shadow: 0 8px 18px rgba(56, 91, 139, 0.11);
  transform: translateX(3px);
}

.quick-action-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.quick-action-blue {
  background: #4d88e7;
}
.quick-action-dark {
  background: #3b577d;
}
.profile-quick-actions strong,
.profile-quick-actions small {
  display: block;
}
.profile-quick-actions strong {
  color: #26354a;
  font-size: 12px;
  font-weight: 900;
}
.profile-quick-actions small {
  margin-top: 3px;
  color: #718097;
  font-size: 10px;
  font-weight: 650;
}
.profile-quick-actions svg {
  color: #7d8fa8;
}

.profile-account-footer {
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.profile-account-footer > div {
  display: grid;
  gap: 3px;
}
.profile-account-footer span {
  color: #9099a8;
  font-size: 11px;
  font-weight: 700;
}
.profile-account-footer strong {
  color: #4b5667;
  font-size: 12px;
  font-weight: 850;
}
.profile-account-footer button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #e5e8ee;
  border-radius: 10px;
  background: #fff;
  color: #858d9a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}
.profile-account-footer button:hover {
  border-color: #ffc7c2;
  background: #fff6f5;
  color: #e55f54;
}

.app-shell[data-theme="dark"] .profile-dashboard {
  border-color: #243147;
  background: #0e141f;
}

.app-shell[data-theme="dark"] .profile-cover {
  background:
    radial-gradient(
      circle at 76% 15%,
      rgba(89, 167, 235, 0.72),
      transparent 19%
    ),
    radial-gradient(
      circle at 24% 103%,
      rgba(211, 97, 128, 0.58),
      transparent 31%
    ),
    linear-gradient(124deg, #101a2c 0%, #19416e 43%, #276376 100%);
}

.app-shell[data-theme="dark"] .profile-avatar {
  background: #0e141f;
}
.app-shell[data-theme="dark"] .profile-avatar i {
  border-color: #0e141f;
}
.app-shell[data-theme="dark"] .profile-identity h1,
.app-shell[data-theme="dark"] .profile-metrics strong,
.app-shell[data-theme="dark"] .profile-card-heading h2,
.app-shell[data-theme="dark"] .profile-side-card h2,
.app-shell[data-theme="dark"] .profile-history-list strong,
.app-shell[data-theme="dark"] .profile-empty-history strong,
.app-shell[data-theme="dark"] .profile-quick-actions strong {
  color: #f5f8fc;
}
.app-shell[data-theme="dark"] .profile-identity p,
.app-shell[data-theme="dark"] .profile-metrics article > span:last-child,
.app-shell[data-theme="dark"] .profile-history-list em,
.app-shell[data-theme="dark"] .profile-empty-history p,
.app-shell[data-theme="dark"] .profile-side-card > p,
.app-shell[data-theme="dark"] .profile-quick-actions small,
.app-shell[data-theme="dark"] .profile-account-footer span,
.app-shell[data-theme="dark"] .profile-account-footer strong {
  color: #aeb8c8;
}
.app-shell[data-theme="dark"] .profile-metrics article,
.app-shell[data-theme="dark"] .profile-empty-history {
  border-color: #243147;
  background: #131c2a;
}
.app-shell[data-theme="dark"] .profile-history-card {
  border-color: #243147;
  background: #0e141f;
}
.app-shell[data-theme="dark"] .profile-side-card {
  border-color: #243147;
  background: linear-gradient(148deg, #17243a, #111a28 58%, #16282d);
}
.app-shell[data-theme="dark"] .profile-library-button,
.app-shell[data-theme="dark"] .profile-account-footer button {
  border-color: #2b3950;
  background: #151e2c;
  color: #dce7f8;
}
.app-shell[data-theme="dark"] .profile-history-list > button:hover {
  background: #151f2e;
}
.app-shell[data-theme="dark"] .profile-quick-actions button {
  border-color: #2c3c54;
  background: rgba(20, 31, 47, 0.88);
}
.app-shell[data-theme="dark"] .profile-account-footer {
  border-color: #243147;
}

@media (max-width: 720px) {
  .profile-dashboard {
    width: calc(100% + 2px);
    gap: 18px;
    margin: 0 -1px;
    padding: 10px 10px 18px;
    border-width: 1px 0;
    border-radius: 0;
    box-shadow: none;
  }

  .profile-cover {
    height: 184px;
    border-radius: 18px;
  }

  .profile-summary {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0;
    margin-top: -172px;
    padding: 0 9px;
  }

  .profile-avatar {
    width: 92px;
    height: 92px;
    padding: 4px;
    border-radius: 29px;
    margin-left: 4px;
  }

  .profile-avatar > span {
    border-radius: 24px;
    font-size: 38px;
  }
  .profile-avatar i {
    right: 2px;
    bottom: 2px;
    width: 19px;
    height: 19px;
    border-width: 3px;
  }
  .profile-identity {
    padding: 11px 4px 14px;
  }
  .profile-identity .profile-eyebrow {
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 1px 8px rgba(14, 38, 70, 0.3);
  }
  .profile-identity h1 {
    margin: 4px 0 4px;
    color: #fff;
    font-size: 23px;
    text-shadow: 0 2px 16px rgba(14, 38, 70, 0.42);
  }
  .profile-identity p {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.88);
    font-size: 12px;
    text-shadow: 0 1px 8px rgba(14, 38, 70, 0.34);
  }
  .profile-provider {
    min-height: 23px;
    margin-top: 7px;
    font-size: 10px;
  }

  .profile-library-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 43px;
    justify-content: center;
    transform: none;
  }

  .profile-summary .profile-library-button:hover {
    transform: translateY(-2px);
  }

  .profile-metrics {
    gap: 8px;
    margin-bottom: -18px;
    transform: translateY(-18px);
  }
  .profile-metrics article {
    min-height: 104px;
    padding: 13px 11px;
    border-radius: 15px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 9px;
    border-radius: 8px;
    font-size: 14px;
  }
  .profile-metrics strong {
    font-size: 21px;
  }
  .profile-metrics article > span:last-child {
    overflow: hidden;
    margin-top: 6px;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .profile-content-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .profile-history-card,
  .profile-side-card {
    min-height: 0;
    padding: 18px;
    border-radius: 18px;
  }
  .profile-card-heading h2,
  .profile-side-card h2 {
    font-size: 18px;
  }
  .profile-empty-history {
    min-height: 136px;
    padding: 14px;
  }
  .profile-side-card > p {
    margin: 8px 0 14px;
  }
  .profile-account-footer {
    padding: 4px 8px 0;
  }

  .app-shell[data-theme="dark"] .profile-identity .profile-eyebrow {
    color: rgba(255, 255, 255, 0.86);
  }
  .app-shell[data-theme="dark"] .profile-identity h1 {
    color: #f5f8fc;
  }
  .app-shell[data-theme="dark"] .profile-identity p {
    color: rgba(255, 255, 255, 0.88);
  }
}

.login-screen {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 32px 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 77, 66, 0.22),
      transparent 22rem
    ),
    #181818;
}
.login-screen section {
  width: min(440px, 100%);
  display: grid;
  gap: 20px;
}
.login-brand {
  justify-self: center;
}
.login-brand .brand-name {
  color: #fff;
}
.social-login,
.login-screen form {
  display: grid;
  gap: 12px;
}
.social-login a,
.social-login button,
.login-screen form > button {
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 950;
  text-decoration: none;
}
.social-login a:nth-child(1),
.social-login button:nth-child(1) {
  background: #fee500;
  color: #191919;
}
.social-login a:nth-child(2),
.social-login button:nth-child(2) {
  background: #fff;
  color: #202020;
}
.social-login a:nth-child(3),
.social-login button:nth-child(3) {
  background: #06c755;
  color: #fff;
}
.social-login img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.divider {
  position: relative;
  display: flex;
  justify-content: center;
  color: #c9c5cf;
  font-weight: 800;
}
.divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}
.divider span {
  position: relative;
  padding: 0 12px;
  background: #181818;
}
.login-screen label {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  background: #2d2d2d;
}
.login-screen label span {
  grid-column: 1 / -1;
  color: #ccc;
  font-size: 12px;
  font-weight: 800;
}
.login-screen input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-weight: 850;
}
.login-screen label button {
  border: 0;
  background: transparent;
  color: #ccc;
  cursor: pointer;
  font-weight: 900;
}
.login-screen form > button {
  background: #06c755;
  color: #181818;
}
.login-error {
  margin: 0;
  color: #ff9b94;
  font-size: 13px;
  font-weight: 900;
}

.nickname-setup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 13, 20, 0.62);
  backdrop-filter: blur(10px);
}

.nickname-setup-modal {
  width: min(440px, 100%);
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: #15171d;
  color: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.nickname-setup-modal > span {
  color: #70d8df;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.nickname-setup-modal h1 {
  margin: 10px 0;
  font-size: 28px;
  line-height: 1.25;
}

.nickname-setup-modal > p {
  margin: 0;
  color: #b8bfca;
  font-size: 14px;
  line-height: 1.65;
}

.nickname-setup-modal form {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.nickname-setup-modal label {
  display: grid;
  gap: 8px;
}

.nickname-setup-modal label span {
  color: #dce2ec;
  font-size: 13px;
  font-weight: 850;
}

.nickname-setup-modal input {
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  outline: 0;
  background: #242832;
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.nickname-setup-modal input:focus {
  border-color: #70d8df;
  box-shadow: 0 0 0 3px rgba(112, 216, 223, 0.18);
}

.nickname-setup-modal button {
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: #ff4d42;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 950;
}

.nickname-setup-modal button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.nickname-setup-error {
  color: #ff9d95;
  font-size: 13px;
}

@media all {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: 14px;
  }
  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
  .top-search {
    min-width: min(100%, 360px);
  }
  .hero-board {
    grid-template-columns: 1fr;
  }
  .side-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .side-list button {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .side-list img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media all {
  .detail-layout,
  .result-layout {
    grid-template-columns: 1fr;
  }
}

@media all {
  :root {
    --bg: #070a0f;
    --ink: #f7f8fb;
    --muted: #8e95a3;
    --soft: #111722;
    --line: #273040;
    --accent: #2f67ff;
  }

  body {
    background: #070a0f;
    color: #fff;
  }

  .app-shell {
    min-height: 100vh;
    padding-bottom: 70px;
    background: #070a0f;
  }

  .site-header {
    background: #070a0f;
    border-bottom: 0;
    backdrop-filter: none;
  }

  .header-inner {
    height: 54px;
    padding: 0 16px;
    gap: 12px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 23px;
    height: 31px;
  }

  .brand-name {
    color: #fff;
    font-size: 26px;
    font-weight: 950;
    letter-spacing: -0.02em;
  }

  .header-inner nav,
  .top-search,
  .header-account-actions,
  .login-chip,
  .admin-tool-chip {
    display: none;
  }

  .mobile-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .category-rail {
    top: 54px;
    background: #070a0f;
    border-bottom: 0;
    backdrop-filter: none;
    width: 100%;
    min-height: 62px;
    padding: 10px 16px 12px;
    align-items: center;
    gap: 8px;
  }

  .category-rail button {
    min-height: 38px;
    padding: 0 15px;
    border-color: #344054;
    background: transparent;
    color: #eef2f8;
    box-shadow: none;
    font-size: 14px;
    font-weight: 850;
  }

  .category-rail button.active {
    border-color: #fff;
    background: #fff;
    color: #101318;
  }

  .app-shell[data-theme="light"] {
    --bg: #ffffff;
    --ink: #111113;
    --ink-2: #242329;
    --muted: #75717c;
    --soft: #f5f5f7;
    --line: #e8e6eb;
    --accent: #ff4d42;
    background: #fff;
    color: #111113;
  }

  .app-shell[data-theme="light"] .site-header,
  .app-shell[data-theme="light"] .category-rail {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(232, 230, 235, 0.72);
  }

  .app-shell[data-theme="light"] .brand-name,
  .app-shell[data-theme="light"] .mobile-actions button,
  .app-shell[data-theme="light"] .category-rail button,
  .app-shell[data-theme="light"] .section-head h2,
  .app-shell[data-theme="light"] .comment-head h2,
  .app-shell[data-theme="light"] .comment-compose h2 {
    color: #111113;
  }

  .app-shell[data-theme="light"] .mobile-actions .mobile-admin-tool {
    border-color: rgba(17, 17, 19, 0.18);
    background: rgba(17, 17, 19, 0.06);
  }

  .app-shell[data-theme="light"] .section-head p,
  .app-shell[data-theme="light"] .comment-empty,
  .app-shell[data-theme="light"] .comment-item time {
    color: #75717c;
  }

  .app-shell[data-theme="light"] .mobile-bottom-nav {
    border-top-color: #e8e6eb;
    background: #fff;
  }

  .app-shell[data-theme="light"] .mobile-bottom-nav button {
    color: #8d8794;
  }

  .app-shell[data-theme="light"] .mobile-bottom-nav button.active {
    color: #111113;
  }

  .app-shell[data-theme="light"] .category-rail button {
    border-color: #e8e6eb;
    background: #fff;
  }

  .app-shell[data-theme="light"] .category-rail button.active {
    border-color: #111113;
    background: #111113;
    color: #fff;
  }

  .app-shell[data-theme="light"].route-test main,
  .app-shell[data-theme="light"] .detail-layout {
    background: #fff;
    color: #111113;
  }

  .app-shell[data-theme="light"] .detail-copy {
    background: #fff;
    color: #111113;
  }

  .app-shell[data-theme="light"] .detail-copy h1 {
    border-bottom-color: #e8e6eb;
    color: #111113;
  }

  .app-shell[data-theme="light"] .detail-copy p {
    color: #4a4650;
  }

  .app-shell[data-theme="light"] .detail-tags span {
    border-color: #e8e6eb;
    background: #f5f5f7;
    color: #ff4d42;
  }

  .app-shell[data-theme="light"] .detail-copy .fact-row strong {
    border-color: #e8e6eb;
    background: #f5f5f7;
    color: #111113;
  }

  .app-shell[data-theme="light"] .detail-playbar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24%);
  }

  .cat-label-desktop {
    display: none;
  }

  .cat-label-mobile {
    display: inline;
  }

  main {
    width: 100%;
    padding: 0 0 82px;
  }

  .page-stack {
    gap: 0;
  }

  .route-admin main {
    padding: 14px 12px 92px;
  }

  .admin-console {
    gap: 14px;
  }

  .admin-preview-head {
    padding: 22px;
    border-radius: 22px;
  }

  .admin-console-head,
  .admin-board,
  .admin-workbench {
    grid-template-columns: 1fr;
    display: grid;
  }

  .admin-console-head {
    gap: 18px;
  }

  .admin-console-head h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .admin-head-actions {
    justify-content: flex-start;
  }

  .admin-tabs {
    top: 0;
    margin-inline: -4px;
    border-radius: 14px;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
  }

  .admin-list-panel {
    max-height: none;
    position: static;
  }

  .admin-form-grid,
  .admin-choice-editor > div,
  .admin-check-list {
    grid-template-columns: 1fr;
  }

  .admin-row-item {
    grid-template-columns: 1fr;
  }

  .admin-danger-button {
    min-height: 34px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-board {
    display: block;
  }

  .hero-card {
    min-height: 389px;
    border-radius: 0;
    box-shadow: none;
    background:
      radial-gradient(
        circle at 50% 24%,
        rgba(255, 255, 255, 0.08),
        transparent 9rem
      ),
      linear-gradient(180deg, rgba(24, 28, 34, 0.25), rgba(23, 16, 27, 0.94));
  }

  .hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(
        180deg,
        rgba(7, 10, 15, 0) 0%,
        rgba(7, 10, 15, 0.18) 45%,
        rgba(15, 13, 20, 0.96) 100%
      ),
      linear-gradient(
        90deg,
        rgba(7, 10, 15, 0.65),
        rgba(7, 10, 15, 0) 50%,
        rgba(7, 10, 15, 0.65)
      );
  }

  .hero-card::after {
    display: none;
  }

  .hero-backdrop {
    filter: blur(18px) brightness(0.45) saturate(1.15);
    transform: scale(1.18);
  }

  .hero-poster {
    position: absolute;
    z-index: 2;
    top: 19px;
    left: 50%;
    display: block;
    width: 174px;
    height: 194px;
    object-fit: cover;
    transform: translateX(-50%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  }

  .hero-page-count {
    position: absolute;
    z-index: 3;
    top: 20px;
    right: 20px;
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
  }

  .hero-copy {
    z-index: 2;
    width: 100%;
    min-height: 389px;
    padding: 216px 21px 14px;
    justify-content: flex-end;
  }

  .hero-meta {
    margin-bottom: 6px;
    gap: 0;
  }

  .hero-meta span {
    display: none;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d6dbe5;
    font-size: 12px;
  }

  .hero-meta span:first-child {
    display: inline;
  }

  .hero-carousel .hero-meta span:nth-child(2) {
    display: inline;
  }

  .hero-carousel .hero-meta span:first-child::after {
    content: "/";
  }

  .horror-hero-card .hero-meta span:first-child::after {
    content: "/공포";
  }

  .hero-copy h1 {
    margin: 0 0 7px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .hero-copy p {
    max-width: none;
    color: #cfd5df;
    font-size: 12px;
    line-height: 1.6;
    font-weight: 650;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .hero-actions button {
    min-height: 48px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 15px;
  }

  .hero-actions button:first-child {
    order: 2;
    background: #2f67ff;
  }

  .hero-actions button:first-child svg {
    display: none;
  }

  .hero-actions button + button {
    order: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.78);
    color: #fff;
  }

  .hero-board .side-list {
    display: none;
  }

  .section-head {
    margin: 0;
    padding: 24px 16px 14px;
    display: block;
  }

  .section-head h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
  }

  .section-head p {
    display: none;
  }

  .card-grid {
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .test-card {
    border: 0;
    border-radius: 7px;
    box-shadow: none;
    aspect-ratio: 112 / 172;
    overflow: visible;
  }

  .test-card::after {
    display: none;
  }

  .test-card img {
    border-radius: 7px;
  }

  .view-count {
    top: 6px;
    left: auto;
    right: 6px;
    min-height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ffe24d;
    color: #101318;
    font-size: 10px;
  }

  .view-count svg {
    display: none;
  }

  .card-copy {
    left: 0;
    right: 0;
    bottom: -45px;
    gap: 4px;
    color: #fff;
    transform: none;
    max-width: 100%;
  }

  .card-copy small {
    color: #9da5b4;
    font-size: 10px;
  }

  .card-copy strong {
    display: block;
    overflow: hidden;
    color: #fff;
    max-width: 100%;
    max-height: none;
    font-size: 12.5px;
    line-height: 1.24;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.76);
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .card-copy em {
    display: none;
  }

  .card-grid .test-card {
    margin-bottom: 48px;
  }

  .search-studio {
    margin: 0 16px 20px;
    padding: 14px;
    border-radius: 14px;
    background: #111722;
    box-shadow: none;
  }

  .search-studio label {
    height: 50px;
  }

  .search-studio input {
    font-size: 14px;
  }

  .horror-hero-card {
    border-right: 0;
    border-left: 0;
  }

  .horror-hero-card .hero-backdrop {
    filter: blur(18px) brightness(0.58) saturate(0.94);
  }

  .horror-grid {
    padding: 0 16px 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .horror-card {
    border: 0;
    border-radius: 7px;
    aspect-ratio: 112 / 172;
    box-shadow: none;
  }

  .horror-card::after {
    display: none;
  }

  .horror-card img {
    border-radius: 7px;
  }

  .horror-card span,
  .horror-card strong,
  .horror-card em {
    left: 7px;
    right: 7px;
  }

  .horror-card span {
    bottom: 43px;
    color: #9da5b4;
    font-size: 10px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.84);
  }

  .horror-card strong {
    bottom: 17px;
    font-size: 12.5px;
    line-height: 1.24;
  }

  .horror-card em {
    display: none;
  }

  .story-reader {
    padding: 16px;
  }

  .story-stage {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .story-stage img {
    min-height: 320px;
  }

  .story-stage article {
    padding: 24px;
  }

  .story-stage h1 {
    font-size: 28px;
  }

  .caption-track p {
    padding: 15px;
    font-size: 14px;
  }

  .story-detail-meta {
    grid-template-columns: 1fr;
  }

  .story-start-button {
    width: 100%;
  }

  .story-player {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .story-player-top {
    min-height: 62px;
    grid-template-columns: 38px 1fr auto;
    padding: 10px 12px;
  }

  .story-player-top div {
    gap: 6px;
  }

  .story-player-top button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 20px;
  }

  .story-text-panel {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 184px;
    padding: 20px 18px 16px;
    border-radius: 18px;
  }

  .story-text-panel p {
    font-size: clamp(17px, 4.5vw, 24px);
    line-height: 1.72;
  }

  .story-ending {
    min-height: 100vh;
    padding: 18px;
    grid-template-columns: 1fr;
  }

  .story-ending img {
    width: min(72vw, 280px);
    margin: 0 auto;
    border-radius: 18px;
  }

  .story-ending article {
    padding: 24px;
    border-radius: 20px;
  }

  .story-ending-actions {
    display: grid;
  }

  .recommend-story-strip {
    padding: 0 16px 16px;
  }

  .recommend-story-grid {
    grid-template-columns: 1fr;
  }

  .recommend-story-grid button {
    min-height: 220px;
  }

  .admin-preview {
    padding: 16px;
  }

  .admin-preview-head,
  .admin-board {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-preview-head,
  .admin-stat-grid article,
  .admin-board article {
    background: #fff;
    color: #111113;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-panel {
    margin: 16px;
    padding: 18px;
    border-radius: 18px;
  }

  .comment-head h2,
  .comment-compose h2 {
    font-size: 18px;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    height: 56px;
    border-top: 1px solid #1d2633;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #070a0f;
  }

  .mobile-bottom-nav button {
    border: 0;
    background: transparent;
    color: #6f7787;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-bottom-nav button span {
    color: inherit;
    font-size: 21px;
    line-height: 1;
  }

  .mobile-bottom-nav button.active {
    background: transparent;
    color: #fff;
  }

  .route-test {
    padding-bottom: 0;
  }

  .route-test .site-header,
  .route-test .category-rail,
  .route-test .mobile-bottom-nav {
    display: none;
  }

  .route-test main {
    min-height: 100vh;
    padding: 0 0 96px;
    background: #fff;
  }

  .route-test .page-stack {
    display: block;
  }

  .detail-layout {
    display: block;
    min-height: 0;
    padding: 0;
    background: #fff;
    color: #111113;
  }

  .mobile-detail-topbar {
    position: sticky;
    top: 0;
    right: auto;
    left: auto;
    z-index: 30;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 58px;
    margin: 0 auto;
    padding: 0 14px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px 42px;
    align-items: center;
    justify-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(17, 17, 19, 0.08);
    box-shadow: 0 6px 18px rgba(17, 17, 19, 0.08);
    backdrop-filter: blur(12px);
    pointer-events: none;
  }

  .mobile-detail-topbar button {
    width: 38px;
    height: 38px;
    border: 1px solid #e1e3e8;
    border-radius: 3px;
    background: #fff;
    color: #111113;
    cursor: pointer;
    font-size: 31px;
    line-height: 1;
    pointer-events: auto;
  }

  .mobile-detail-topbar button:nth-of-type(2) {
    font-size: 30px;
  }

  .mobile-detail-topbar button:nth-of-type(3) {
    font-size: 28px;
  }

  .mobile-detail-topbar button[aria-pressed="true"] {
    color: #ff4d42;
  }

  .detail-action-toast {
    position: absolute;
    top: 64px;
    right: 14px;
    max-width: calc(100vw - 28px);
    padding: 9px 12px;
    border: 1px solid #e8e6eb;
    border-radius: 999px;
    background: #111113;
    color: #fff;
    font-size: 12px;
    font-weight: 850;
    pointer-events: none;
    box-shadow: 0 10px 24px rgba(17, 17, 19, 0.18);
  }

  .detail-visual {
    height: auto;
    min-height: 0;
    padding: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: grid;
    place-items: center;
    border-radius: 0;
    background: #080b10;
  }

  .detail-visual::after {
    display: block;
  }

  .detail-backdrop {
    display: block;
  }

  .detail-art {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 100%;
    height: 100%;
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: contain;
    box-shadow: none;
  }

  .result-layout > .detail-art {
    justify-self: center;
    width: min(68vw, 280px);
    height: min(42vh, 340px);
    margin: 34px auto 28px;
    object-fit: contain;
    box-shadow: none;
  }

  .detail-copy {
    margin-top: -2px;
    padding: 13px 15px 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #111113;
    box-shadow: none;
  }

  .detail-tags {
    gap: 6px;
    margin-bottom: 8px;
  }

  .detail-tags span {
    min-height: 24px;
    padding: 0 8px;
    border: 1px solid #ffe0e0;
    border-radius: 5px;
    background: #fff3f3;
    color: #ff4d42;
    font-size: 11px;
    font-weight: 850;
  }

  .detail-copy h1 {
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8e6eb;
    color: #111113;
    font-size: 21px;
    line-height: 1.32;
  }

  .detail-stats {
    margin: 10px 0 13px;
    gap: 12px;
    color: #ff4d42;
    font-size: 12px;
  }

  .detail-copy p {
    margin: 0;
    color: #303039;
    font-size: 13px;
    line-height: 1.65;
    font-weight: 600;
  }

  .detail-copy .fact-row {
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .detail-copy .fact-row strong {
    padding: 11px 8px;
    border: 1px solid #e8e6eb;
    border-radius: 8px;
    background: #f6f7fb;
    color: #111113;
    font-size: 12px;
    text-align: center;
  }

  .detail-character-preview {
    display: none;
    margin-top: 30px;
  }

  .detail-copy .detail-start-button {
    display: none;
  }

  .detail-character-preview h2 {
    margin: 0 0 7px;
    font-size: 16px;
  }

  .detail-character-preview p {
    color: #8591a5;
    font-size: 12px;
  }

  .detail-character-preview div {
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .detail-character-preview span {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 34%, #263449, #111722 70%);
  }

  .detail-playbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 35;
    display: block;
    padding: 10px 15px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 24%);
  }

  .detail-playbar button {
    width: 100%;
    min-height: 54px;
    border: 0;
    border-radius: 7px;
    background: #2f67ff;
    color: #fff;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
  }

  .fact-row,
  .trait-grid,
  .profile-stats {
    grid-template-columns: 1fr;
  }
  .detail-copy,
  .result-panel,
  .profile-panel,
  .play-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .play-panel h1 {
    margin: 16px 0 20px;
    font-size: 24px;
    line-height: 1.25;
  }

  .play-question-card {
    padding: 22px 6px 26px;
  }

  .play-question-card h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.25;
  }

  .choice-list {
    gap: 12px;
  }

  .choice-list button {
    min-height: 66px;
    padding: 12px 18px;
    font-size: 15px;
  }

  .search-studio {
    padding: 16px;
    border-radius: 22px;
  }
  .search-studio label {
    height: 56px;
  }
  .search-studio input {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }

  .test-card,
  .story-card,
  .mobile-hero-actions button,
  .choice-list button {
    transition: none !important;
  }
}

/* Keep public pages on the same mobile canvas at desktop widths. */
@media (min-width: 681px) {
  body {
    background: #e8ebf1;
  }

  .app-shell:not(.route-admin) {
    width: min(100%, 430px);
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    overflow-x: hidden;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08), 0 18px 60px rgba(17, 24, 39, 0.12);
  }

  .app-shell:not(.route-admin) .mobile-bottom-nav {
    right: auto;
    left: 50%;
    width: min(100%, 430px);
    transform: translateX(-50%);
  }

  .app-shell:not(.route-admin) .mobile-detail-topbar {
    right: auto;
    left: auto;
    width: 100%;
    max-width: 430px;
    transform: none;
  }

  .login-screen {
    width: min(100%, 430px);
    margin: 0 auto;
  }
}

/* Keep the choice-weight dialog independent from the broad admin button rules. */
.route-admin .choice-weight-modal {
  border-radius: 12px;
}

.route-admin .choice-weight-close {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid #d9dce3;
  border-radius: 8px;
  background: #fff;
  color: #20242c;
}

.route-admin .choice-weight-row {
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 10px;
  padding: 12px;
}

.route-admin .choice-weight-row .admin-danger-button {
  min-width: 64px;
  min-height: 46px;
  align-self: end;
  border: 1px solid #ff4d42;
  border-radius: 8px;
  padding: 0 14px;
  background: #ff4d42;
}

.route-admin .choice-weight-modal-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  flex-wrap: nowrap;
}

.route-admin .choice-weight-modal-actions > div {
  justify-self: end;
}

@media (max-width: 600px) {
  .route-admin .choice-weight-row {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .route-admin .choice-weight-row .admin-danger-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
  }

  .route-admin .choice-weight-modal-actions {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .route-admin .choice-weight-modal-actions > div {
    justify-self: stretch;
  }
}

/* Light-theme guardrails: keep psychology-test surfaces readable even after mobile dark defaults. */
.app-shell[data-theme="light"] {
  background: #fff;
  color: #111113;
}

.app-shell[data-theme="light"]
  :where(
    .section-head h2,
    .comment-head h2,
    .comment-compose h2,
    .empty-state strong,
    .profile-panel,
    .profile-panel h1,
    .play-panel,
    .play-panel h1,
    .detail-copy,
    .detail-copy h1,
    .result-panel,
    .result-panel h1,
    .admin-preview,
    .admin-preview h1,
    .admin-preview h2,
    .admin-stat-grid strong,
    .schema-list summary
  ) {
  color: #111113;
}

.app-shell[data-theme="light"]
  :where(
    .section-head p,
    .empty-state p,
    .comment-empty,
    .comment-item time,
    .comment-item p,
    .detail-copy p,
    .result-panel p,
    .admin-preview p,
    .admin-stat-grid span,
    .admin-beat-list em,
    .trait-grid em,
    .profile-stats span
  ) {
  color: #6f6a76;
}

.app-shell[data-theme="light"]
  :where(
    .comment-panel,
    .comment-item,
    .comment-compose textarea,
    .empty-state,
    .search-studio,
    .detail-copy,
    .result-panel,
    .profile-panel,
    .play-panel,
    .admin-preview-head,
    .admin-stat-grid article,
    .admin-board article
  ) {
  background-color: #fff;
}

.app-shell[data-theme="light"]
  :where(
    .choice-list button,
    .fact-row strong,
    .trait-grid div,
    .profile-stats div,
    .admin-beat-list div,
    .schema-list details
  ) {
  background: #f5f5f7;
  color: #111113;
}

.app-shell[data-theme="light"] .choice-list button {
  background: #fff;
}

.app-shell[data-theme="light"] .choice-key {
  color: #fff;
}

.app-shell[data-theme="light"] .mobile-detail-topbar button {
  background: rgba(255, 255, 255, 0.86);
  color: #111113;
  box-shadow: 0 8px 24px rgba(18, 16, 24, 0.12);
}

@media all {
  .app-shell[data-theme="light"] .card-copy {
    color: #111113;
  }

  .app-shell[data-theme="light"] .card-copy strong {
    color: #111113;
    text-shadow: none;
  }

  .app-shell[data-theme="light"] .card-copy small {
    color: #6f6a76;
    text-shadow: none;
  }
}

.play-panel.has-question-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: min(760px, calc(100svh - 168px));
  display: grid;
  grid-template-rows: auto auto minmax(260px, 1fr) auto;
  background-position: center;
  background-size: cover;
  color: #fff;
}

.play-panel.has-question-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.question-background-blur,
.question-background-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: auto;
  pointer-events: none;
}

.question-background-blur {
  z-index: 0;
  object-fit: cover;
  object-position: center;
  filter: blur(22px) brightness(0.58) saturate(0.92);
  transform: scale(1.12);
}

.question-background-image {
  z-index: 1;
  object-fit: cover;
  object-position: center;
  transform: scale(var(--question-background-scale, 1));
  transform-origin: center;
}

.play-panel.has-question-bg .play-step,
.play-panel.has-question-bg .play-question-card,
.play-panel.has-question-bg .choice-list {
  position: relative;
  z-index: 2;
}

.play-panel.has-question-bg .play-step,
.play-panel.has-question-bg .play-question-card p,
.play-panel.has-question-bg .play-question-card h1 {
  color: inherit;
}

.play-panel.has-question-bg .progress-line {
  background: rgba(255, 255, 255, 0.25);
}

.play-panel.has-question-bg .progress-line span {
  background: rgba(255, 255, 255, 0.92);
}

.play-panel.has-question-bg .play-question-card {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  padding-inline: 18px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.44);
}

.play-question-card.empty-question {
  min-height: 260px;
}

.play-panel.has-question-bg .choice-list {
  align-self: end;
  margin-top: auto;
}

.play-panel.has-question-bg .choice-list.choice-anchor-custom {
  position: absolute;
  z-index: 2;
  top: var(--choice-anchor-y);
  left: 16px;
  right: 16px;
  margin: 0;
  align-self: auto;
  transform: translateY(var(--choice-offset-y, 0px));
}

.choice-list.choice-count-2,
.choice-list.choice-count-3,
.choice-list.choice-count-4 {
  grid-auto-rows: minmax(64px, auto);
}

.choice-list.choice-count-2.choice-height-custom,
.choice-list.choice-count-3.choice-height-custom,
.choice-list.choice-count-4.choice-height-custom {
  grid-auto-rows: var(--choice-height);
}

.admin-choice-editor > div {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) auto;
  align-items: end;
}

.admin-choice-editor .admin-danger-button {
  min-height: 46px;
  align-self: end;
}

.choice-weight-editor {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafafa;
}

.choice-weight-head,
.choice-weight-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.choice-weight-head span {
  color: var(--muted);
  font-size: 12px;
}

.choice-weight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 8px;
  align-items: end;
}

.choice-weight-actions button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #111113;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.choice-weight-actions button:last-child {
  background: #111113;
  color: #fff;
}

.choice-weight-actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-danger-button:disabled,
.admin-editor-actions button:disabled,
.admin-json-save:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-json-hint {
  color: #d54c4c;
  font-size: 12px;
  font-weight: 700;
}

.admin-json-save {
  justify-self: start;
  margin-top: 2px;
}

.design-fieldset {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  background: #fafafa;
}

.design-fieldset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.design-fieldset h3 {
  margin: 0;
  font-size: 15px;
}

.design-fieldset-head button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: #f1f1f4;
  color: #111113;
  cursor: pointer;
  font-weight: 900;
}

.result-image-stack {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
}

.result-image-stack .detail-art {
  width: 100%;
}

.result-image-stack.result-image-scale-custom .detail-art {
  width: min(100%, var(--result-image-scale));
}

.result-extra-images {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-extra-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  object-fit: cover;
  background: #f6f6f8;
}

.result-template-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-width: 0;
  margin-top: 24px;
}

.result-restart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(80%, 420px);
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: var(--soft) !important;
  color: var(--muted) !important;
  cursor: pointer;
  line-height: 1;
  font-size: 16px;
  font-weight: 300;
  box-shadow: none !important;
}

.result-share-title {
  align-self: stretch;
  margin: 40px 0 0 !important;
  color: var(--muted) !important;
  font-size: 14px !important;
  font-weight: 300 !important;
  text-align: center;
}

.result-share-actions {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 20px 32px 0;
}

.result-share-button {
  display: grid !important;
  place-items: center;
  justify-self: center;
  width: 48px;
  min-height: 48px !important;
  height: 48px;
  border: none !important;
  border-radius: 16px !important;
  padding: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.result-share-button:active {
  transform: translateY(1px);
}

.result-share-button.instagram {
  background:
    radial-gradient(
      circle at 28% 92%,
      #ffd600 0%,
      #ff7a00 30%,
      rgba(255, 122, 0, 0) 58%
    ),
    radial-gradient(circle at 78% 14%, #7638fa 0%, rgba(118, 56, 250, 0) 44%),
    conic-gradient(
      from 215deg at 50% 52%,
      #ffd600 0deg,
      #ff7a00 55deg,
      #ff0069 142deg,
      #d300c5 230deg,
      #7638fa 310deg,
      #ffd600 360deg
    ) !important;
}

.result-share-button.x {
  background: #111 !important;
}

.result-share-button.kakao {
  background: #ffeb3b !important;
  display: grid !important;
  place-items: center;
  overflow: hidden;
}

.result-share-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  object-position: center;
}

.result-share-icon-copy {
  width: 32px;
  height: 32px;
}

.result-share-icon-x {
  width: 19px;
  height: 19px;
}

.result-share-icon-kakao {
  width: 46px;
  height: 46px;
  transform: none;
}

/* iPhone story detail: keep the start button visible without scrolling past a tall cover. */
@media all {
  .story-reader {
    padding: 12px 16px 84px;
    gap: 12px;
  }

  .story-stage {
    display: flex;
    flex-direction: column;
  }

  .story-stage img {
    height: min(38vh, 300px);
    min-height: 0;
    max-height: 300px;
    flex: 0 0 auto;
    object-fit: cover;
  }

  .story-stage article {
    padding: 16px 18px 18px;
  }

  .story-stage h1 {
    margin: 8px 0;
    font-size: 26px;
  }

  .story-stage p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.55;
  }

  .story-detail-meta {
    margin: 12px 0 8px;
    gap: 8px;
  }

  .story-detail-meta strong {
    min-height: 40px;
  }

  .story-stage .story-listen-note {
    display: none;
  }

  .story-start-button {
    margin-top: 8px;
    min-height: 50px;
  }

  .play-panel.has-question-bg {
    min-height: calc(100svh - 124px);
    border-radius: 0;
  }

  .play-panel.has-question-bg .play-question-card,
  .play-question-card.empty-question {
    min-height: 240px;
  }

  .result-image-stack {
    gap: 8px;
    justify-items: center;
    margin: 0;
  }

  .result-share-actions {
    margin-inline: 20px;
  }
}

/* The question background owns the full viewport area above the fixed bottom nav. */
.route-play main {
  height: calc(100dvh - 172px);
  min-height: calc(100dvh - 172px);
  max-height: calc(100dvh - 172px);
  padding: 0;
  overflow: hidden;
}

.app-shell.route-play {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  padding-bottom: 0;
}

.route-play .page-stack {
  height: 100%;
  overflow: hidden;
}

.route-play .play-panel.has-question-bg {
  height: calc(100dvh - 172px);
  min-height: calc(100dvh - 172px);
  max-height: calc(100dvh - 172px);
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 14px 16px;
  grid-template-rows: minmax(0, 1fr) auto;
}

.route-play .play-panel.has-question-bg .play-question-card {
  min-height: 0;
  padding: 14px 8px;
  overflow: hidden;
}

.route-play .play-panel.has-question-bg .play-question-card h1 {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(21px, 5.8vw, 28px);
  line-height: 1.22;
  text-overflow: ellipsis;
}

.route-play .play-panel.has-question-bg .choice-list {
  gap: 8px;
  overflow: hidden;
}

.route-play .play-panel.has-question-bg .choice-list.choice-anchor-custom {
  left: 16px;
  right: 16px;
  overflow: visible;
  transform: translateY(var(--choice-offset-y, 0px));
}

.route-play .play-panel.has-question-bg .choice-list button {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.25;
}

.route-play .play-panel.has-question-bg .choice-list.choice-width-custom,
.route-play .play-panel.has-question-bg .choice-list.choice-min-width-custom,
.route-play .play-panel.has-question-bg .choice-list.choice-max-width-custom {
  justify-items: center;
}

.route-play .play-panel.has-question-bg .choice-list.choice-width-custom button,
.route-play .play-panel.has-question-bg .choice-list.choice-min-width-custom button,
.route-play .play-panel.has-question-bg .choice-list.choice-max-width-custom button {
  justify-self: center;
}

.route-play .play-panel.has-question-bg .choice-list.choice-width-custom button {
  width: min(100%, var(--choice-width));
}

.route-play .play-panel.has-question-bg .choice-list.choice-min-width-custom button {
  min-width: min(100%, var(--choice-min-width));
}

.route-play .play-panel.has-question-bg .choice-list.choice-max-width-custom button {
  max-width: min(100%, var(--choice-max-width));
}

.route-play .play-panel.has-question-bg .choice-list.choice-height-custom button {
  min-height: var(--choice-height);
  height: var(--choice-height);
}

.route-play .play-panel.has-question-bg .choice-list.choice-gap-custom {
  gap: var(--choice-gap);
}

.route-play .play-panel.has-question-bg.choice-count-4 .play-question-card,
.route-play .play-panel.has-question-bg.choice-count-5 .play-question-card {
  padding-block: 8px;
}

.route-play .play-panel.has-question-bg.choice-count-4 .choice-list button,
.route-play .play-panel.has-question-bg.choice-count-5 .choice-list button {
  padding-block: 8px;
  font-size: 13px;
}

@media (min-width: 681px) {
  .route-play main {
    min-height: calc(100dvh - 172px);
  }

  .app-shell:not(.route-admin).route-play .play-panel.has-question-bg {
    width: 100%;
  }
}

/* Admin editing stays a wide desktop workspace even though public pages use the mobile canvas. */
@media (min-width: 681px) {
  .app-shell.route-admin {
    min-height: 100vh;
    padding-bottom: 0;
    background: #fff;
    color: #111113;
  }

  .route-admin .site-header {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(232, 230, 235, 0.88);
  }

  .route-admin .header-inner {
    width: min(100%, 1240px);
    height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .route-admin .brand {
    order: 1;
  }

  .route-admin .header-inner nav {
    order: 2;
    width: auto;
    display: flex;
    overflow: visible;
  }

  .route-admin .top-search {
    order: 4;
    display: flex;
    width: auto;
    margin-left: 0;
  }

  .route-admin .login-chip,
  .route-admin .admin-tool-chip {
    display: inline-flex;
  }

  .route-admin .header-account-actions {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-left: auto;
    align-self: center;
  }

  .route-admin .mobile-actions,
  .route-admin .mobile-bottom-nav {
    display: none;
  }

  .route-admin main {
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: 30px 24px 96px;
  }

  .route-admin .page-stack {
    gap: 34px;
  }

  .route-admin .admin-preview {
    padding: 0;
  }

  .route-admin .admin-preview-head {
    padding: 34px;
    border-radius: 28px;
    display: flex;
  }

  .route-admin .admin-console-head,
  .route-admin .admin-board,
  .route-admin .admin-workbench {
    display: grid;
  }

  .route-admin .admin-console-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
  }

  .route-admin .admin-console-head h1 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
  }

  .route-admin .admin-head-actions {
    justify-content: flex-end;
  }

  .route-admin .admin-tabs {
    top: 76px;
    margin-inline: 0;
    border-radius: 18px;
  }

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

  .route-admin .admin-board {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .route-admin .admin-workbench {
    grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
  }

  .route-admin .admin-form-grid,
  .route-admin .admin-check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-admin .admin-choice-editor > div {
    grid-template-columns: 1.4fr 0.8fr;
  }

  .route-admin .admin-row-item {
    grid-template-columns: 1fr auto;
  }

  .route-admin .admin-list-panel {
    max-height: calc(100vh - 190px);
    position: sticky;
    top: 140px;
  }

  .route-admin .admin-danger-button {
    min-height: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* Compact home navigation while giving hero calls-to-action stronger emphasis. */
@media (max-width: 680px) {
  .app-shell:not(.route-admin) .category-rail {
    min-height: 52px;
    padding: 7px 16px 8px;
    gap: 7px;
  }

  .app-shell:not(.route-admin) .category-rail button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }

  .app-shell:not(.route-admin) .hero-actions button {
    min-height: 44px;
    padding: 0 10px;
    font-size: 16px;
  }

  .app-shell:not(.route-admin) .hero-carousel.hero-split .hero-actions button {
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 2px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

/* Public pages use a fixed mobile canvas even inside a wide desktop window. */
.app-shell:not(.route-admin) .category-rail {
  min-height: 52px;
  padding: 7px 16px 8px;
  gap: 7px;
}

.app-shell:not(.route-admin) .category-rail button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.app-shell:not(.route-admin) .hero-carousel.hero-split .hero-actions button {
  min-height: 40px !important;
  height: 40px !important;
  padding: 0 2px !important;
  font-size: 13px !important;
  white-space: nowrap;
}

/* Profile: a compact account workspace for the fixed mobile canvas. */
.app-shell:not(.route-admin) .profile-dashboard {
  display: grid;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0 16px 24px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.app-shell:not(.route-admin) .profile-cover {
  height: 96px;
  margin: 0 -16px;
  border-radius: 0;
  background: #eaf4f0;
}

.app-shell:not(.route-admin) .profile-cover::before,
.app-shell:not(.route-admin) .profile-cover-grid,
.app-shell:not(.route-admin) .profile-cover-orb {
  display: none;
}

.app-shell:not(.route-admin) .profile-summary {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: -34px;
  padding: 0;
}

.app-shell:not(.route-admin) .profile-avatar {
  width: 72px;
  height: 72px;
  padding: 3px;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(25, 65, 55, 0.14);
}

.app-shell:not(.route-admin) .profile-avatar > span {
  border-radius: inherit;
  background: #16806d;
  font-size: 30px;
  text-shadow: none;
}

.app-shell:not(.route-admin) .profile-avatar i {
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-width: 3px;
}

.app-shell:not(.route-admin) .profile-identity {
  padding: 0 0 2px;
}

.app-shell:not(.route-admin) .profile-identity .profile-eyebrow {
  display: none;
}

.app-shell:not(.route-admin) .profile-identity h1 {
  margin: 0 0 4px;
  color: #18231f;
  font-size: 21px;
  line-height: 1.2;
  text-shadow: none;
}

.app-shell:not(.route-admin) .profile-identity p {
  color: #6a756f;
  font-size: 12px;
  text-shadow: none;
}

.app-shell:not(.route-admin) .profile-provider {
  min-height: 20px;
  margin-top: 6px;
  padding: 0;
  background: transparent;
  color: #65716b;
  font-size: 10px;
}

.app-shell:not(.route-admin) .profile-summary .profile-library-button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
  margin-top: 16px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  justify-content: center;
  transform: none;
  background: #17211e;
  color: #fff;
  box-shadow: none;
}

.app-shell:not(.route-admin) .profile-summary .profile-library-button:hover {
  transform: none;
  background: #26342f;
  box-shadow: none;
}

.app-shell:not(.route-admin) .profile-metrics {
  gap: 0;
  margin: 20px 0 0;
  transform: none;
  border-top: 1px solid #e6ebe8;
  border-bottom: 1px solid #e6ebe8;
}

.app-shell:not(.route-admin) .profile-metrics article {
  min-height: 82px;
  padding: 13px 8px;
  border: 0;
  border-right: 1px solid #e6ebe8;
  border-radius: 0;
  background: transparent;
  text-align: center;
}

.app-shell:not(.route-admin) .profile-metrics article:last-child {
  border-right: 0;
}

.app-shell:not(.route-admin) .profile-metrics .metric-icon {
  display: none;
}

.app-shell:not(.route-admin) .profile-metrics strong {
  margin-top: 7px;
  color: #18231f;
  font-size: 22px;
}

.app-shell:not(.route-admin) .profile-metrics article > span:last-child {
  margin-top: 6px;
  color: #78827d;
  font-size: 10px;
  white-space: normal;
}

.app-shell:not(.route-admin) .profile-content-grid {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
}

.app-shell:not(.route-admin) .profile-history-card,
.app-shell:not(.route-admin) .profile-side-card {
  min-height: 0;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px solid #e6ebe8;
  border-radius: 0;
  background: transparent;
}

.app-shell:not(.route-admin) .profile-card-heading h2,
.app-shell:not(.route-admin) .profile-side-card h2 {
  font-size: 17px;
}

.app-shell:not(.route-admin) .profile-card-heading > div > span,
.app-shell:not(.route-admin) .profile-side-kicker {
  color: #16806d;
  letter-spacing: 0.06em;
}

.app-shell:not(.route-admin) .profile-history-list {
  margin-top: 12px;
}

.app-shell:not(.route-admin) .profile-history-list > button {
  padding: 10px 0;
  border-radius: 0;
}

.app-shell:not(.route-admin) .profile-quick-actions {
  gap: 0;
  margin-top: 10px;
}

.app-shell:not(.route-admin) .profile-quick-actions button {
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  border-radius: 0;
  background: transparent;
}

.app-shell:not(.route-admin) .profile-quick-actions button:last-child {
  border-bottom: 0;
}

.app-shell:not(.route-admin) .profile-account-footer {
  padding: 18px 0 0;
  border-top: 0;
}

.app-shell:not(.route-admin).route-profile main > .empty-state {
  min-height: 360px;
  margin: 0;
  padding: 72px 28px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.app-shell:not(.route-admin).route-profile main > .empty-state strong {
  color: #18231f;
  font-size: 20px;
}

.app-shell:not(.route-admin).route-profile main > .empty-state p {
  max-width: 240px;
  color: #6f7974;
  font-size: 13px;
  line-height: 1.6;
}

.app-shell:not(.route-admin).route-profile main > .empty-state button {
  min-height: 42px;
  border-radius: 7px;
  background: #17211e;
  font-size: 14px;
}
