:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #6b7471;
  --line: #d9ded9;
  --paper: #f7f5ef;
  --panel: #ffffff;
  --green: #1f7a5c;
  --red: #c6453d;
  --gold: #c99a2e;
  --blue: #245d8f;
  --shadow: 0 14px 40px rgba(24, 32, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(31, 122, 92, 0.12), transparent 32%),
    linear-gradient(260deg, rgba(201, 154, 46, 0.18), transparent 36%),
    var(--paper);
}

body::selection {
  background: rgba(201, 154, 46, 0.35);
}

button,
input,
select {
  font: inherit;
}

button,
.import-label {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: white;
  background: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

button:hover,
.import-label:hover {
  filter: brightness(1.08);
}

input,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: var(--shadow);
}

.brand h1,
.brand p,
.quick-card h2,
.family-panel h3,
.swap-panel h3,
.dialog-body h3 {
  margin: 0;
}

.brand h1 {
  font-size: 20px;
}

.brand p,
.quick-card p,
.family-panel p,
.swap-panel p,
.dialog-body p {
  color: var(--muted);
}

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

.profile-button {
  width: 100%;
  min-height: 72px;
  justify-content: flex-start;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.profile-button.active {
  border-color: var(--green);
  box-shadow: 0 8px 20px rgba(31, 122, 92, 0.12);
}

.profile-button.locked-view {
  opacity: 0.72;
}

.profile-dot {
  width: 14px;
  height: 44px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.28), transparent 28%),
    var(--profile-color);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.profile-name {
  display: block;
  font-weight: 800;
}

.profile-progress {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.profile-mode {
  display: inline-block;
  margin-top: 6px;
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  background: #eef1ee;
  font-size: 11px;
  font-weight: 900;
}

.profile-button:not(.locked-view) .profile-mode {
  color: var(--green);
  background: rgba(31, 122, 92, 0.12);
}

.session-card,
.quick-card,
.ritual-card,
.family-panel,
.swap-panel,
.showcase-panel,
.page-strip {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
}

.session-card {
  margin-top: 18px;
  padding: 16px;
  background: white;
}

.session-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.session-card select {
  width: 100%;
}

.session-card p {
  color: var(--muted);
  font-size: 13px;
}

.adult-only.locked {
  display: none;
}

.read-only .quick-card,
.read-only .ritual-card,
.read-only .scanner-panel {
  opacity: 0.58;
}

.read-only .sticker-card,
.read-only .mini-slot {
  cursor: default;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ritual-card {
  background:
    linear-gradient(135deg, rgba(201, 154, 46, 0.22), rgba(36, 93, 143, 0.1)),
    #fffdf6;
}

.ritual-card span,
.showcase-kicker {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ritual-card strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.ritual-card p {
  color: var(--muted);
}

.quick-card label,
.photo-upload {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 14px 0 8px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
}

.workspace {
  padding: 28px;
  min-width: 0;
}

.hero {
  position: relative;
  min-height: clamp(380px, 48vw, 560px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #101615;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 16, 15, 0.82), rgba(10, 16, 15, 0.25) 48%, rgba(10, 16, 15, 0.08)),
    linear-gradient(0deg, rgba(10, 16, 15, 0.55), transparent 45%);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  width: min(620px, 88%);
  padding: clamp(28px, 5vw, 56px);
  color: white;
}

.hero-overlay .eyebrow {
  color: #f2c94c;
}

.hero-overlay h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-overlay p:not(.eyebrow) {
  max-width: 530px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.55;
}

.usage-mark {
  display: inline-flex;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 7px 10px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.glass {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: white;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.hero-score {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  min-width: 96px;
  min-height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 28px;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.13), transparent 52%),
    conic-gradient(var(--gold) var(--hero-progress, 0%), rgba(255, 255, 255, 0.2) 0);
  box-shadow: inset 0 0 0 10px rgba(10, 16, 15, 0.82), var(--shadow);
}

.topbar,
.controls,
.family-panel,
.swap-panel,
.page-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar {
  margin-top: 28px;
}

.topbar h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 900;
  color: var(--green);
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.view-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  margin-top: 20px;
  padding: 6px;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  overflow-x: auto;
  scrollbar-width: thin;
}

.view-tabs button {
  min-height: 36px;
  background: transparent;
  color: var(--muted);
}

.view-tabs button.active {
  background: var(--ink);
  color: white;
}

.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger {
  color: var(--red);
}

.import-label input,
.photo-upload input {
  display: none;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.metric.accent {
  background: var(--ink);
  color: white;
}

.metric.accent span {
  color: rgba(255, 255, 255, 0.72);
}

.family-bars {
  display: grid;
  gap: 8px;
  min-width: 260px;
}

.showcase-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.moments-panel,
.world-map-panel,
.scanner-panel {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.moments-head,
.map-head,
.scanner-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.moments-head h3,
.map-head h3,
.scanner-copy h3 {
  margin: 0;
  font-size: 28px;
}

.moments-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.moment-card {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: white;
}

.moment-card > span {
  width: 10px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--gold);
}

.moment-card strong {
  display: block;
}

.moment-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.map-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.map-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.map-tile {
  min-height: 118px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}

.map-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(24, 32, 31, 0.1);
}

.map-tile strong {
  font-size: 18px;
}

.map-tile span,
.map-tile small {
  color: var(--muted);
  font-weight: 800;
}

.map-tile.empty,
.map-legend .empty {
  background: #eef1ee;
}

.map-tile.bronze,
.map-legend .bronze {
  background: linear-gradient(135deg, #d6a16f, #fff5df);
}

.map-tile.silver,
.map-legend .silver {
  background: linear-gradient(135deg, #bfc8d2, #ffffff);
}

.map-tile.gold,
.map-legend .gold {
  background: linear-gradient(135deg, #c99a2e, #fff0ad);
}

.scanner-panel {
  display: grid;
  gap: 14px;
}

.scanner-copy p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.scanner-panel textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  font: inherit;
}

.scanner-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.scan-result,
.scanner-summary,
.scanner-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
}

.scanner-summary {
  grid-column: 1 / -1;
  color: white;
  background: var(--green);
  font-weight: 900;
}

.scanner-empty {
  grid-column: 1 / -1;
  color: var(--muted);
}

.scan-result.new {
  border-color: rgba(31, 122, 92, 0.45);
}

.scan-result.repeat {
  border-color: rgba(201, 154, 46, 0.45);
}

.scan-result.invalid {
  border-color: rgba(198, 69, 61, 0.4);
}

.scan-result span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.scan-result.repeat span {
  color: var(--gold);
}

.scan-result.invalid span {
  color: var(--red);
}

.scan-result strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.scan-result p {
  margin: 5px 0 8px;
  color: var(--muted);
}

.scan-result small {
  color: var(--ink);
  font-weight: 800;
}

.showcase-card,
.achievement-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.showcase-card strong,
.achievement-card strong {
  display: block;
  margin-top: 6px;
  font-size: 22px;
}

.showcase-card p,
.achievement-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.bar-row {
  display: grid;
  grid-template-columns: 82px 1fr 44px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.bar-track {
  height: 9px;
  border-radius: 999px;
  background: #e9ece8;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.controls {
  margin-top: 22px;
  align-items: stretch;
  flex-wrap: wrap;
}

.page-strip {
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.1), rgba(201, 154, 46, 0.12)),
    rgba(255, 255, 255, 0.78);
}

.page-strip h3 {
  margin: 0;
  font-size: 24px;
}

.page-strip p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-progress {
  min-width: 150px;
  text-align: right;
  font-weight: 900;
  color: var(--green);
}

.book-stage {
  margin-top: 22px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(201, 154, 46, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 249, 232, 0.82)),
    white;
  box-shadow: 0 16px 36px rgba(24, 32, 31, 0.09);
}

.book-meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.book-meta span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.book-meta strong {
  font-size: 28px;
}

.book-meta p {
  margin: 0;
  color: var(--muted);
}

.album-book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  gap: 0;
  min-height: 360px;
  perspective: 1200px;
}

.book-page {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(24, 32, 31, 0.04), transparent 10%),
    repeating-linear-gradient(0deg, rgba(24, 32, 31, 0.025), rgba(24, 32, 31, 0.025) 1px, transparent 1px, transparent 42px),
    #fffdf7;
}

.book-page:first-child {
  border-radius: 8px 0 0 8px;
  box-shadow: inset -18px 0 24px rgba(24, 32, 31, 0.06);
}

.book-page:last-child {
  border-radius: 0 8px 8px 0;
  box-shadow: inset 18px 0 24px rgba(24, 32, 31, 0.06);
}

.book-spine {
  background:
    linear-gradient(90deg, rgba(24, 32, 31, 0.16), rgba(255, 255, 255, 0.66), rgba(24, 32, 31, 0.16)),
    #e6ddc7;
}

.mini-slot {
  position: relative;
  min-height: 126px;
  border: 1px dashed rgba(24, 32, 31, 0.2);
  border-radius: 7px;
  padding: 10px 6px;
  color: var(--muted);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.34)),
    #f7f2e6;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mini-slot:hover {
  transform: translateY(-2px) rotate(-0.4deg);
  box-shadow: 0 10px 20px rgba(24, 32, 31, 0.12);
}

.mini-slot.has-photo-bg {
  color: var(--ink);
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54)),
    var(--photo-url) center / cover;
}

.mini-slot.has-photo-bg::after {
  content: "Uso familiar";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  transform: translate(-50%, -50%) rotate(-28deg);
  color: rgba(24, 32, 31, 0.18);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  pointer-events: none;
}

.mini-slot.owned {
  color: white;
  border-style: solid;
  border-color: rgba(31, 122, 92, 0.4);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, var(--green), var(--blue));
}

.mini-slot.owned.has-photo-bg {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    var(--photo-url) center / cover;
}

.mini-slot span {
  font-weight: 900;
}

.mini-slot small {
  font-size: 11px;
}

.mini-slot em {
  position: absolute;
  top: 7px;
  right: 7px;
  font-style: normal;
  border-radius: 999px;
  padding: 3px 6px;
  color: var(--ink);
  background: #f2c94c;
  font-size: 11px;
  font-weight: 900;
}

.book-footnote {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented button {
  min-height: 34px;
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: white;
  background: var(--green);
}

#sectionSelect {
  min-width: 190px;
}

#searchInput {
  min-width: 250px;
  flex: 1;
}

.swap-list {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 980px;
}

.swap-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  background: white;
  font-size: 13px;
}

.swap-hero {
  border-radius: 8px;
  padding: 18px;
  color: white;
  background:
    radial-gradient(circle at 70% 12%, rgba(242, 201, 76, 0.34), transparent 34%),
    linear-gradient(135deg, var(--ink), var(--blue));
}

.swap-hero strong {
  display: block;
  margin-top: 4px;
  font-size: 46px;
}

.swap-hero p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.trade-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: white;
  transform: translateY(0);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}

.trade-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(24, 32, 31, 0.1);
}

.trade-card span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.trade-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.trade-card p {
  margin: 7px 0;
  color: var(--ink);
  font-weight: 800;
}

.trade-card small {
  color: var(--muted);
}

.album-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 42px;
}

.team-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    white;
  box-shadow: 0 12px 26px rgba(24, 32, 31, 0.07);
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.team-header span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.team-header h3 {
  margin: 3px 0 0;
  font-size: clamp(22px, 3vw, 34px);
}

.team-progress {
  white-space: nowrap;
  color: var(--ink);
  background: #f8f5e9;
  border: 1px solid rgba(201, 154, 46, 0.38);
}

.team-progress-track {
  height: 6px;
  background: #edf0ec;
}

.team-progress-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.team-stickers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
  gap: 12px;
  padding: 16px;
}

.sticker-card {
  position: relative;
  min-height: 214px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  cursor: pointer;
  text-align: left;
  padding: 0;
  color: var(--ink);
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.team-stickers .sticker-card {
  min-height: 198px;
}

.team-stickers .sticker-art {
  height: 132px;
}

.sticker-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 122, 92, 0.42);
  box-shadow: 0 16px 30px rgba(24, 32, 31, 0.12);
}

.sticker-art {
  height: 144px;
  display: grid;
  place-items: center;
  padding: 12px;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(135deg, rgba(36, 93, 143, 0.16), rgba(31, 122, 92, 0.1)),
    #f4f6f4;
}

.sticker-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

.photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
  border-radius: 5px;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame.translucent {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.22)),
    #eef1ee;
}

.photo-frame.translucent img {
  opacity: 0.42;
  filter: saturate(0.92) contrast(0.96);
}

.photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    repeating-linear-gradient(-32deg, transparent 0 34px, rgba(255, 255, 255, 0.18) 34px 35px);
  pointer-events: none;
}

.photo-frame i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  transform: translate(-50%, -50%) rotate(-24deg);
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.42);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  pointer-events: none;
}

.photo-frame b {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px rgba(24, 32, 31, 0.16);
  font-size: 18px;
  font-weight: 900;
}

.photo-frame.large {
  width: 88%;
  height: 88%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-frame.large i {
  font-size: clamp(14px, 2vw, 20px);
}

.sticker-placeholder {
  width: 72px;
  height: 96px;
  border: 1px solid rgba(24, 32, 31, 0.16);
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--muted);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(45deg, rgba(24, 32, 31, 0.04), rgba(24, 32, 31, 0.04) 6px, transparent 6px, transparent 12px);
  box-shadow: 0 8px 18px rgba(24, 32, 31, 0.1);
}

.sticker-info {
  padding: 12px;
}

.sticker-info strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticker-info span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 12px;
}

.status-badge {
  position: absolute;
  top: 9px;
  right: 9px;
  border-radius: 999px;
  padding: 5px 8px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: var(--red);
}

.status-badge.owned {
  background: var(--green);
}

.dupe-pill {
  position: absolute;
  top: 9px;
  left: 9px;
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  background: #f2c94c;
}

dialog {
  border: 0;
  padding: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: min(780px, calc(100vw - 24px));
}

dialog::backdrop {
  background: rgba(24, 32, 31, 0.42);
}

.dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  background: white;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  z-index: 2;
}

.dialog-preview {
  min-height: 380px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(201, 154, 46, 0.25), rgba(36, 93, 143, 0.18)),
    #f4f2ea;
}

.dialog-preview img {
  width: 88%;
  height: 88%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dialog-body {
  padding: 34px;
}

.dialog-body h3 {
  font-size: 28px;
}

.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.photo-upload {
  width: max-content;
  min-height: 40px;
  border-radius: 7px;
  padding: 0 14px;
  color: white;
  background: var(--blue);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.missions-board,
.games-panel,
.tv-stage {
  margin-top: 22px;
}

.mission-header,
.ranking-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.mission-header h3,
.ranking-panel h3,
.games-hero h3,
.game-arena h3,
.game-feed h3,
.tv-columns h3 {
  margin: 0;
}

.games-panel {
  display: none;
}

.games-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.games-hero > div:first-child,
.live-score,
.game-arena,
.game-feed {
  border: 1px solid rgba(31, 122, 92, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 245, 239, 0.82)),
    white;
  padding: 18px;
}

.games-hero h3 {
  font-size: 34px;
}

.games-hero p,
.game-arena p,
.game-feed p,
.game-tile small {
  color: var(--muted);
}

.live-score {
  display: grid;
  gap: 9px;
}

.game-login-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.game-login-row button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.game-login-row span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.live-score > span,
.arena-head > div > span,
.game-tile span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-row {
  display: grid;
  grid-template-columns: 24px 12px 1fr auto;
  gap: 9px;
  align-items: center;
  min-height: 34px;
}

.live-row i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.live-row em {
  color: var(--gold);
  font-style: normal;
  font-weight: 900;
}

.games-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1fr);
  gap: 18px;
}

.game-menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}

.game-tile {
  width: 100%;
  min-height: 208px;
  padding: 10px;
  align-items: flex-start;
  flex-direction: column;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  box-shadow: none;
}

.game-tile img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 8px;
  background: #e8ece7;
}

.game-tile.active {
  border-color: var(--green);
  box-shadow: 0 12px 26px rgba(31, 122, 92, 0.12);
}

.game-tile strong {
  font-size: 16px;
  line-height: 1.1;
}

.game-tile small {
  font-size: 12px;
  line-height: 1.25;
}

.arena-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.arena-back {
  display: none;
}

.arena-image {
  width: 118px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

.game-intro,
.question-card {
  min-height: 320px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 0%, rgba(201, 154, 46, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(31, 122, 92, 0.12), rgba(36, 93, 143, 0.08)),
    #fff;
}

.game-intro {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  padding: 28px;
}

.game-intro strong {
  font-size: 32px;
}

.game-rules {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.game-rules span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.question-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  overflow: hidden;
}

.question-sticker {
  min-height: 320px;
  padding: 20px;
  color: white;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(135deg, var(--green), var(--blue));
  display: grid;
  align-content: end;
  gap: 6px;
}

.question-sticker span {
  font-size: 44px;
  font-weight: 950;
}

.question-sticker .round-visual {
  font-size: 90px;
  line-height: 1;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18));
}

.question-sticker strong {
  font-size: 22px;
}

.question-body {
  padding: 24px;
}

.question-body h3 {
  font-size: 28px;
  margin: 4px 0 18px;
}

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

.answer-grid button {
  min-height: 70px;
  justify-content: flex-start;
  text-align: left;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.answer-grid button.correct {
  color: white;
  background: var(--green);
  border-color: var(--green);
}

.answer-grid button.picked:not(.correct) {
  color: white;
  background: var(--red);
  border-color: var(--red);
}

.game-message {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 800;
}

.game-feed {
  margin-top: 18px;
}

.feed-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.feed-card {
  min-height: 106px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.feed-card.correct {
  border-color: rgba(31, 122, 92, 0.28);
  background: linear-gradient(135deg, rgba(31, 122, 92, 0.1), white);
}

.feed-card span {
  display: block;
  width: 28px;
  height: 5px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.feed-card strong {
  display: block;
  font-size: 14px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}

.mission-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(24, 32, 31, 0.1);
}

.mission-card.complete {
  border-color: rgba(31, 122, 92, 0.42);
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.12), transparent),
    white;
}

.mission-card span {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.mission-card p {
  min-height: 42px;
  color: var(--muted);
}

.mission-card small {
  display: block;
  margin: 8px 0 12px;
  color: var(--muted);
  font-weight: 800;
}

.mission-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8ece7;
}

.mission-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.ranking-panel {
  align-items: flex-start;
  margin-top: 14px;
}

.ranking-list {
  display: grid;
  gap: 8px;
  min-width: min(440px, 100%);
}

.ranking-row {
  display: grid;
  grid-template-columns: 28px 12px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.ranking-row b {
  color: var(--gold);
}

.ranking-row span {
  width: 12px;
  height: 38px;
  border-radius: 999px;
}

.ranking-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.tv-stage {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(201, 154, 46, 0.28);
  background:
    linear-gradient(135deg, rgba(24, 32, 31, 0.92), rgba(36, 93, 143, 0.86)),
    var(--ink);
  color: white;
  padding: clamp(20px, 4vw, 42px);
}

.tv-hero {
  min-height: 230px;
  border-radius: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 20%, rgba(242, 201, 76, 0.25), transparent 42%),
    rgba(255, 255, 255, 0.06);
}

.tv-hero span {
  color: #f2c94c;
  font-weight: 900;
  text-transform: uppercase;
}

.tv-hero strong {
  font-size: clamp(70px, 14vw, 170px);
  line-height: 0.9;
}

.tv-hero p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
}

.tv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tv-profile,
.tv-columns section {
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tv-profile span {
  display: block;
  width: 42px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tv-profile strong {
  display: block;
  font-size: 20px;
}

.tv-profile p {
  color: rgba(255, 255, 255, 0.72);
}

.tv-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.tv-chip {
  margin: 8px 0 0;
  border-radius: 999px;
  padding: 9px 12px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.achievement-card.complete {
  border-color: rgba(31, 122, 92, 0.42);
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.12), transparent),
    white;
}

[data-panel] {
  display: none;
}

[data-panel].visible {
  display: flex;
}

.album-grid.visible,
.achievement-grid.visible,
.showcase-panel.visible,
.world-map-panel.visible,
.missions-board.visible,
.games-panel.visible,
.tv-stage.visible {
  display: grid;
}

.book-stage.visible {
  display: block;
}

.controls.visible {
  display: flex;
}

.missions-board.visible,
.games-panel.visible,
.tv-stage.visible,
.moments-panel.visible,
.scanner-panel.visible,
.world-map-panel.visible {
  display: block;
}

.pack-card {
  position: relative;
  width: min(840px, calc(100vw - 24px));
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(201, 154, 46, 0.18), rgba(31, 122, 92, 0.08)),
    white;
}

.pack-header h3 {
  margin: 0;
  font-size: 34px;
}

.pack-header p:not(.eyebrow),
.pack-result {
  color: var(--muted);
}

.pack-slots {
  display: grid;
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.pack-reveal {
  min-height: 190px;
  margin: 18px 0;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(201, 154, 46, 0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 201, 76, 0.18), transparent 45%),
    rgba(255, 255, 255, 0.68);
  display: grid;
  grid-template-columns: repeat(7, minmax(82px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.sealed-pack {
  grid-column: 1 / -1;
  min-height: 160px;
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 35%),
    linear-gradient(135deg, var(--green), var(--blue));
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  box-shadow: var(--shadow);
}

.sealed-pack span,
.sealed-pack small {
  opacity: 0.8;
  font-weight: 800;
}

.sealed-pack strong {
  font-size: 34px;
}

.reveal-card {
  min-height: 164px;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: white;
  opacity: 0;
  transform: translateY(22px) rotateY(75deg);
  animation: revealCard 520ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  box-shadow: 0 10px 20px rgba(24, 32, 31, 0.1);
}

.reveal-card.new {
  border-color: rgba(31, 122, 92, 0.42);
  background:
    linear-gradient(135deg, rgba(31, 122, 92, 0.14), transparent),
    white;
}

.reveal-card.repeat {
  border-color: rgba(201, 154, 46, 0.46);
  background:
    linear-gradient(135deg, rgba(201, 154, 46, 0.18), transparent),
    white;
}

.reveal-card.invalid {
  border-color: rgba(198, 69, 61, 0.36);
}

.reveal-card span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.reveal-card.repeat span {
  color: var(--gold);
}

.reveal-card.invalid span {
  color: var(--red);
}

.reveal-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.reveal-card p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.reveal-card small {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

@keyframes revealCard {
  to {
    opacity: 1;
    transform: translateY(0) rotateY(0deg);
  }
}

.pack-slot {
  min-width: 0;
}

.pack-slot label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pack-slot input {
  width: 100%;
  text-align: center;
  font-weight: 900;
}

.pack-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

.confetti span {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 16px;
  border-radius: 2px;
  animation: fall 1100ms ease-in forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(520deg);
    opacity: 0.2;
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .app-shell {
    grid-template-columns: 280px 1fr;
  }

  .workspace,
  .sidebar {
    padding: 20px;
  }

  .hero {
    min-height: 420px;
  }

  .dashboard-grid,
  .showcase-panel,
  .tv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .session-card,
  .quick-card,
  .ritual-card {
    margin-top: 14px;
  }

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

  .topbar,
  .controls,
  .family-panel,
  .swap-panel,
  .page-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .family-bars,
  #sectionSelect,
  #searchInput {
    min-width: 0;
    width: 100%;
  }

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

  .swap-list,
  .ranking-panel,
  .games-hero,
  .games-layout,
  .tv-columns {
    grid-template-columns: 1fr;
  }

  .ranking-panel {
    flex-direction: column;
  }

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

  .question-card {
    grid-template-columns: 1fr;
  }

  .question-sticker {
    min-height: 180px;
  }

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

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

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

  .album-book {
    grid-template-columns: 1fr;
  }

  .book-spine {
    display: none;
  }

  .book-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: 8px;
  }

  .book-page + .book-page {
    margin-top: 12px;
  }

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

@media (max-width: 640px) {
  .workspace,
  .sidebar {
    padding: 14px;
  }

  .profile-list,
  .dashboard-grid,
  .tv-grid {
    grid-template-columns: 1fr;
  }

  .profile-button {
    min-height: 64px;
  }

  .profile-avatar {
    width: 40px;
    height: 40px;
  }

  .dialog-card {
    grid-template-columns: 1fr;
  }

  .dialog-preview {
    min-height: 260px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-overlay {
    width: 100%;
    padding: 22px;
  }

  .hero-overlay h2 {
    font-size: clamp(40px, 15vw, 64px);
  }

  .hero-actions button {
    width: 100%;
  }

  .hero-score {
    right: 14px;
    bottom: 14px;
    min-width: 76px;
    min-height: 76px;
    font-size: 21px;
  }

  .showcase-panel {
    grid-template-columns: 1fr;
  }

  .controls {
    gap: 10px;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .segmented button {
    flex: 0 0 auto;
  }

  #sectionSelect,
  #searchInput {
    width: 100%;
    min-width: 0;
  }

  .team-header,
  .page-actions,
  .mission-header,
  .moments-head,
  .map-head,
  .scanner-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .team-progress,
  .page-actions button,
  .scanner-actions button,
  .mission-header button {
    width: 100%;
  }

  .book-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 12px;
  }

  .mini-slot {
    min-height: 110px;
  }

  .pack-reveal {
    grid-template-columns: 1fr;
  }

  .map-grid,
  .scanner-results,
  .moments-list,
  .mission-grid,
  .answer-grid,
  .feed-list,
  .trade-grid {
    grid-template-columns: 1fr;
  }

  .game-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    gap: 8px;
  }

  .game-tile {
    min-height: 178px;
    padding: 8px;
  }

  .game-tile img {
    aspect-ratio: 1.1;
    margin-bottom: 6px;
  }

  .game-tile span {
    font-size: 9px;
  }

  .game-tile strong {
    font-size: 14px;
  }

  .game-tile small {
    display: none;
  }

  .games-hero h3,
  .question-body h3 {
    font-size: 26px;
  }

  .arena-head {
    align-items: stretch;
    flex-direction: column;
  }

  .games-layout.focused .game-menu {
    display: none;
  }

  .games-layout.focused .game-arena {
    display: block;
  }

  .arena-back {
    display: inline-flex;
    width: 100%;
  }

  .arena-image {
    width: 100%;
    max-height: 210px;
    aspect-ratio: 1.7;
  }

  .arena-head button,
  .answer-grid button {
    width: 100%;
  }

  .tv-hero {
    min-height: 210px;
  }

  .tv-hero strong {
    font-size: 76px;
  }
}
