:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #647085;
  --line: #d9e0ea;
  --brand: #2f65a7;
  --accent: #f2a93b;
  --ok: #21885a;
  --danger: #c84848;
  --shadow: 0 12px 30px rgba(25, 37, 59, 0.08);
  --navy: #171f44;
  --navy-2: #202b5f;
  --purple: #7c3cff;
  --blue-action: #2f7cff;
  --soft-lilac: #eef0ff;
  --trophy: #ffc247;
  --hero-glow: rgba(124, 60, 255, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button {
  font: inherit;
}

select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px clamp(14px, 4vw, 34px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 4px;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

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

.mobile-menu-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.mobile-menu-toggle span {
  background: #fff;
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 18px;
}

.pill {
  background: #edf3fb;
  border: 1px solid #d7e4f4;
  border-radius: 999px;
  color: #244a78;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 6px;
  padding: 7px 10px;
}

.accent-pill {
  background: #fff4df;
  border-color: #f4d39a;
  color: #7b4b05;
}

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

.layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px clamp(12px, 3vw, 28px) 180px;
}

.game-column,
.side-column {
  min-width: 0;
}

.side-column {
  align-content: start;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.dashboard-section {
  display: grid;
  gap: 14px;
}

.dashboard-section-title {
  color: var(--navy);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.15;
  margin: 10px 0 0;
}

.dashboard-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.game-header,
.panel,
.ad-slot,
.seo-band {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px;
}

.game-title h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  line-height: 1.15;
  margin: 0 0 4px;
}

.game-title p,
.seo-band p {
  color: var(--muted);
}

.legacy-frame {
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-height: 520px;
  overflow: auto;
  padding: 12px;
}

#legacy-sudoku {
  width: 100%;
}

#legacy-sudoku .SudokuPencilOverlay {
  pointer-events: none !important;
}

#legacy-sudoku .SudokuPencilOverlay span {
  color: #101936 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  line-height: 1 !important;
  pointer-events: none !important;
  text-shadow: 0 0 0 #101936;
}

.gameplay-board-shell {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 8fr) minmax(260px, 4fr);
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.gameplay-board-shell #legacy-sudoku {
  justify-self: center;
  max-width: 100%;
  min-width: 0;
  transform: translateX(clamp(72px, 6vw, 112px));
  width: fit-content;
}

.gameplay-board-shell[hidden],
.competitive-start-layer[hidden] {
  display: none;
}

.gameplay-tips {
  align-self: stretch;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.gameplay-tips h2 {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
  margin: 0 0 12px;
}

.gameplay-tips ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gameplay-tips li {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.gameplay-tips strong {
  color: var(--navy);
  display: block;
  margin-bottom: 2px;
}

.mobile-sudoku-keypad,
.mobile-sudoku-keypad-shell {
  display: none;
}

.mobile-sudoku-keypad-toggle {
  align-items: center;
  background: linear-gradient(135deg, #202b5f, #2f7cff);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 31, 68, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  font-size: 0.805rem;
  font-weight: 500;
  gap: 4px;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1;
  min-height: 46px;
  padding: 7px 6px;
  touch-action: manipulation;
}

.mobile-sudoku-keypad-toggle-mark {
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  display: inline-block;
  height: 7px;
  transform: rotate(45deg);
  width: 7px;
}

.mobile-sudoku-keypad-shell.is-collapsed .mobile-sudoku-keypad-toggle-mark {
  transform: rotate(-135deg);
}

.mobile-sudoku-key {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
  border: 1px solid #cbd8f0;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(23, 31, 68, 0.1);
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.325rem;
  font-weight: 500;
  justify-content: center;
  min-height: 46px;
  padding: 8px 6px;
  touch-action: manipulation;
}

.mobile-sudoku-key:active {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  transform: translateY(1px);
}

.mobile-sudoku-key--delete {
  background: linear-gradient(135deg, #202b5f, #2f7cff);
  color: #fff;
  font-size: 1.075rem;
  grid-column: 1 / -1;
  letter-spacing: 0;
  min-height: 44px;
}

.competitive-start-layer {
  align-items: center;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 242, 201, 0.96), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #eef4ff 52%, #fff7e8 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 360px;
  padding: clamp(18px, 3vw, 36px);
  width: 100%;
}

.competitive-start-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 101, 167, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(23, 31, 68, 0.14);
  display: grid;
  gap: 14px;
  margin: 0 auto;
  max-width: 680px;
  padding: clamp(20px, 3vw, 34px);
  text-align: center;
}

.competitive-start-kicker {
  color: #7b4b05;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.competitive-start-card h2 {
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin: 0;
}

.competitive-start-card p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.competitive-start-button {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  justify-self: center;
  letter-spacing: 0;
  margin-top: 4px;
  min-height: 48px;
  min-width: 180px;
  padding: 12px 22px;
}

#legacy-sudoku .CCPuzButtons {
  transform: translateX(-18px);
}

#legacy-sudoku .ActionButton,
#legacy-sudoku button,
#legacy-sudoku [role="button"] {
  align-items: center;
}

#legacy-sudoku .ActionButton[data-sudoku-tool],
#legacy-sudoku [role="button"][data-sudoku-tool],
#legacy-sudoku button[data-sudoku-tool] {
  border: 1px solid rgba(148, 163, 184, 0.72) !important;
  border-radius: 8px !important;
  background-image: none !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  gap: 7px;
  justify-content: flex-start;
  min-height: 40px;
  min-width: 146px !important;
  outline: 0;
  padding: 4px 16px 4px 7px !important;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

#legacy-sudoku .ActionButton[data-sudoku-tool]:focus-visible,
#legacy-sudoku [role="button"][data-sudoku-tool]:focus-visible,
#legacy-sudoku button[data-sudoku-tool]:focus-visible {
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.28),
    0 8px 18px rgba(23, 31, 68, 0.13);
}

#legacy-sudoku [data-sudoku-tool="lapiz"] {
  background: linear-gradient(180deg, #fffdf7 0%, #f8fafc 100%) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  color: var(--ink);
}

#legacy-sudoku [data-sudoku-tool="lapiz"].is-legacy-tool-active {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%) !important;
  border-color: #f59e0b !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 8px 18px rgba(180, 83, 9, 0.18);
  color: #78350f;
  transform: translateY(-1px);
}

#legacy-sudoku [data-sudoku-tool="lapiz"].is-legacy-tool-active .ButtonText,
#legacy-sudoku [data-sudoku-tool="lapiz"].is-legacy-tool-active .ButtonTextDiv {
  font-weight: 900 !important;
}

#legacy-sudoku [data-sudoku-tool="lapiz"].is-legacy-tool-active .legacy-tool-icon {
  filter: drop-shadow(0 3px 5px rgba(180, 83, 9, 0.24));
}

#legacy-sudoku .legacy-tool-original-icon {
  display: none !important;
}

#legacy-sudoku .legacy-completion-message-hidden {
  display: none !important;
}

#legacy-sudoku .legacy-tool-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

#legacy-sudoku .legacy-tool-icon-img {
  display: block;
  height: 36px;
  object-fit: contain;
  width: 36px;
}

.status-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.stat--profile {
  background: #f8fbff;
  border-top: 3px solid #2f6fed;
}

.stat--puzzle {
  background: #fffdf8;
  border-top: 3px solid #d97706;
}

.stat-label-row,
.panel-title-row,
.welcome-title-row,
.frame-help-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.frame-help-row {
  align-self: stretch;
  justify-content: flex-end;
}

.stat span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  margin-top: 2px;
}

.stat small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  margin-top: 2px;
  min-height: 1em;
}

.hint-stat small[data-state="limit"] {
  color: #8a3a14;
  font-weight: 800;
}

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

.aid-counter {
  align-items: baseline;
  color: inherit;
  display: flex;
  gap: 4px;
  min-width: 0;
  text-transform: none;
}

.aid-counter b {
  font-size: 1.02rem;
}

.aid-counter em {
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.aid-status {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.aid-status i {
  font-style: normal;
  min-width: 0;
}

.aid-status i[data-state="limit"] {
  color: #8a3a14;
  font-weight: 800;
}

.panel {
  margin-bottom: 0;
  padding: 14px;
}

.panel.is-anchor-highlighted {
  border-color: rgba(124, 60, 255, 0.62);
  box-shadow: 0 0 0 5px rgba(124, 60, 255, 0.14), var(--shadow);
}

#progreso,
#estadisticas,
#retos,
#temporada {
  scroll-margin-top: 136px;
}

.panel h2 {
  font-size: 1rem;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.panel-title-row {
  margin-bottom: 10px;
}

.panel-title-row h2 {
  margin: 0;
}

.help-icon-button {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 28px;
}

.help-icon-button:hover,
.help-icon-button:focus-visible {
  background: #eaf4ff;
  border-color: #b9d6f6;
  color: var(--brand);
  outline: none;
}

.mission-list,
.note-list,
.achievement-list,
.challenge-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.panel-copy {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0 0 30px;
}

.panel-copy + .mission-list,
.panel-copy + .season-panel {
  margin-top: 16px;
}

.panel-copy + #challenge-panel,
.panel-copy + #season-panel,
.panel-copy + .achievement-list {
  margin-top: 30px;
}

.select-label {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.puzzle-select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.text-input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  padding: 8px 10px;
  width: 100%;
}

.puzzle-select + .select-label {
  margin-top: 10px;
}

.chooser-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 8px 0 0;
}

.catalog-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.catalog-summary span {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 6px 8px;
}

.selector-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.daily-points-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.daily-points-panel #progression-panel:not(:empty) {
  margin-bottom: 14px;
}

.daily-points-panel .select-label {
  margin-top: 4px;
}

.daily-points-panel .selector-actions {
  margin-top: 14px;
}

.practice-context-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 100%);
}

.practice-context-actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.practice-entry-grid {
  display: grid;
  gap: 8px;
}

.practice-entry-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dff0;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 10px;
  text-align: left;
}

.practice-entry-button strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.practice-entry-button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.progression-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.progression-summary {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.progression-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progression-summary strong {
  color: var(--text);
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.progression-summary p {
  font-size: 0.86rem;
  line-height: 1.35;
}

.progression-training-note {
  background: #eef3ff;
  border: 1px solid #dbe6ff;
  border-radius: 8px;
  color: #2d3d72;
  padding: 8px;
}

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

.progression-difficulty {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr auto;
  padding: 10px;
}

.progression-difficulty span {
  font-weight: 800;
}

.progression-difficulty strong {
  align-self: start;
  background: #ecf7f1;
  border-radius: 999px;
  color: #145c3d;
  font-size: 0.72rem;
  padding: 4px 8px;
}

.progression-difficulty small {
  color: var(--muted);
  font-size: 0.78rem;
  grid-column: 1 / -1;
  line-height: 1.35;
}

.progression-difficulty.is-practice {
  background: #fff8e8;
  border-color: #f1d69b;
}

.progression-difficulty.is-practice strong {
  background: #fff1cc;
  color: #83540a;
}

.motivation-panel,
.weekly-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
}

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

.personal-goal-item {
  align-items: center;
  background: #f7f4ff;
  border: 1px solid #e4dcff;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.personal-goal-item.is-featured {
  background: #eef7ff;
  border-color: #bddaf8;
}

.personal-goal-item em {
  color: #255f9b;
  display: block;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.personal-goal-item strong,
.personal-goal-item span {
  display: block;
}

.personal-goal-item span,
.goals-empty {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.personal-goal-item small {
  background: #fff;
  border: 1px solid #dfd7ff;
  border-radius: 999px;
  color: #5b35d5;
  font-weight: 800;
  padding: 5px 8px;
  white-space: nowrap;
}

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

.recovery-code-box,
.recovery-form {
  display: grid;
  gap: 12px;
}

.recovery-form {
  margin-top: 22px;
}

#restore-recovery-form {
  margin-top: 28px;
}

.recovery-code-box {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 14px;
}

.alias-box,
.alias-warning {
  background: #fff7df;
  border: 1px solid #f3d58a;
  border-radius: 8px;
  color: #705000;
  padding: 14px;
}

.alias-box {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.alias-box span,
.alias-box small,
.alias-warning {
  font-size: 0.78rem;
  line-height: 1.35;
}

.alias-box strong {
  color: var(--text);
}

.alias-warning {
  margin: 0;
}

.recovery-code-box[hidden],
.recovery-form[hidden] {
  display: none;
}

.recovery-code-box span,
.recovery-status {
  color: var(--muted);
  font-size: 0.78rem;
}

.recovery-code-box strong {
  font-size: 1.05rem;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.welcome-screen {
  align-content: center;
  display: grid;
  gap: 14px;
  min-height: min(520px, 70vh);
  padding: clamp(18px, 4vw, 42px);
  text-align: left;
  width: 100%;
}

.welcome-kicker {
  color: var(--accent);
  font-weight: 800;
  margin: 0;
}

.welcome-screen h2 {
  font-size: 2rem;
  line-height: 1.05;
  margin: 0;
}

.welcome-screen p {
  max-width: 760px;
}

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

.welcome-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.welcome-points span {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 10px;
}

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

.tour-root[hidden] {
  display: none;
}

.practice-root[hidden] {
  display: none;
}

.tour-backdrop {
  background: rgba(18, 28, 45, 0.36);
  inset: 0;
  position: fixed;
  z-index: 50;
}

.tour-popover {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(18, 28, 45, 0.22);
  display: grid;
  gap: 10px;
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  padding: 18px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 60;
}

.tour-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tour-popover h2 {
  font-size: 1.25rem;
  margin: 0;
}

.tour-popover p {
  margin: 0;
}

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

.tour-focus {
  outline: 3px solid rgba(30, 117, 217, 0.36);
  outline-offset: 4px;
  position: relative;
  z-index: 40;
}

.practice-backdrop {
  background: rgba(18, 28, 45, 0.42);
  inset: 0;
  position: fixed;
  z-index: 55;
}

.practice-popover {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(18, 28, 45, 0.24);
  display: grid;
  gap: 14px;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  padding: 18px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  z-index: 65;
}

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

.practice-head span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.practice-head h2 {
  font-size: 1.35rem;
  margin: 2px 0 0;
}

.practice-close {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.practice-popover p {
  color: var(--muted);
  margin: 0;
}

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

.practice-choice {
  background: #f7f9fc;
  border: 1px solid #e2e9f4;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
  text-align: left;
}

.practice-choice:hover,
.practice-choice:focus-visible {
  border-color: rgba(124, 60, 255, 0.42);
  box-shadow: 0 10px 26px rgba(23, 31, 68, 0.1);
  outline: 0;
}

.practice-choice strong {
  font-size: 1rem;
}

.practice-choice span,
.practice-empty {
  color: var(--muted);
  font-size: 0.84rem;
}

.checkbox-label {
  align-items: flex-start;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  gap: 8px;
  line-height: 1.35;
}

.checkbox-label input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.recovery-status {
  margin: 8px 0 0;
  min-height: 1.1em;
  padding-top: 6px;
}

.recovery-status[data-state="error"] {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #b42318;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 14px;
  padding: 10px;
}

.recovery-status[data-state="success"] {
  color: #05603a;
  font-weight: 700;
}

.recovery-status[data-state="pending"] {
  color: var(--muted);
  font-weight: 700;
}

.mission-list li,
.note-list li,
.achievement-item,
.challenge-item {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 10px;
}

.mission-item.is-completed {
  background: #ecf7f1;
  border-color: #bfe2cd;
}

.mission-item.is-completed strong {
  color: #145c3d;
}

.mission-points {
  color: #2d5d3d;
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 4px;
}

.achievement-item,
.challenge-item {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.achievement-item span,
.achievement-item small,
.challenge-item span,
.challenge-item small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.achievement-item small,
.challenge-item small {
  color: #2d5d3d;
  font-weight: 800;
  margin-top: 4px;
}

.achievement-item.is-unlocked {
  background: #fff8e8;
  border-color: #f1d69b;
}

.achievement-item.is-unlocked strong {
  color: #7b4b05;
}

.achievement-progress {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  flex: 0 0 auto;
  font-weight: 800;
  padding: 5px 8px;
}

.ranking-panel-shell {
  display: grid;
  gap: 16px;
}

.ranking-intro {
  margin-bottom: 0;
}

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

.ranking-box {
  background: rgba(247, 249, 252, 0.72);
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.ranking-box h3 {
  font-size: 1rem;
  margin: 0;
}

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

.ranking-row {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px;
}

.ranking-position,
.ranking-time {
  font-weight: 800;
}

.ranking-player {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-trust {
  color: var(--muted);
  font-size: 0.78rem;
  grid-column: 2 / -1;
}

.ranking-filter-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0;
}

.ranking-filter-card {
  background: #f7f9fc;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 14px;
}

.ranking-filter-card span {
  color: #2f65a7;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-filter-card strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.22;
}

.ranking-filter-card p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0;
}

.ranking-top-card {
  align-content: start;
  min-height: 260px;
}

.ranking-top-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.ranking-top-row {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  padding: 7px 8px;
}

.ranking-top-row.is-current-player {
  border-color: #ffb340;
  box-shadow: inset 3px 0 0 #ffb340;
}

.ranking-top-row span {
  color: var(--text);
  font-size: 0.82rem;
  text-transform: none;
  white-space: normal;
}

.ranking-top-row span b {
  color: #2f65a7;
  margin-right: 4px;
}

.ranking-top-row em,
.ranking-player-position em {
  color: var(--text);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.ranking-top-row small {
  background: #fff5db;
  border-radius: 999px;
  color: #9a5b00;
  font-size: 0.68rem;
  font-weight: 900;
  grid-column: 1 / -1;
  justify-self: start;
  padding: 2px 7px;
  text-transform: uppercase;
}

.ranking-player-position {
  align-items: center;
  background: #fff9ed;
  border: 1px solid #ffd68a;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  margin-top: 8px;
  padding: 9px 10px;
}

.ranking-player-position span {
  color: #9a5b00;
}

.ranking-player-position strong {
  color: #1f2a44;
}

.ranking-empty,
.ranking-status,
.ranking-trust-note,
.api-health-status,
.content-interest-summary-status {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}

.ranking-status,
.ranking-trust-note,
.api-health-status,
.content-interest-summary-status {
  margin-top: 8px;
}

.ranking-trust-note {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  margin-top: 16px;
  padding: 9px 10px;
}

.api-health-status {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 9px 10px;
}

.api-health-status[data-state="online"] {
  background: #ecf7f1;
  border-color: #bfe2cd;
  color: #145c3d;
}

.api-health-status[data-state="offline"] {
  background: #fff8e8;
  border-color: #f1d69b;
  color: #7b4b05;
}

.content-interest-summary {
  display: grid;
  gap: 10px;
}

.content-interest-summary-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
}

.content-interest-summary-grid div,
.content-interest-product-row {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 10px;
}

.content-interest-summary-grid span,
.content-interest-product-row span,
.content-interest-product-row p {
  color: var(--muted);
  font-size: 0.78rem;
}

.content-interest-summary-grid strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 2px;
}

.content-interest-summary-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-interest-product-row {
  display: grid;
  gap: 8px;
}

.content-interest-product-row strong {
  display: block;
  overflow-wrap: anywhere;
}

.content-interest-product-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-interest-product-metrics span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 7px;
}

.content-interest-product-row p {
  margin: 0;
}

.content-interest-summary-status[data-state="online"] {
  color: #145c3d;
}

.content-interest-summary-status[data-state="offline"] {
  color: #7b4b05;
}

.personal-summary {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 10px;
}

.personal-summary div {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 10px;
}

.personal-summary span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
}

.personal-summary strong {
  display: block;
  margin-top: 2px;
}

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

.personal-best-list li {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
}

.personal-best-list span,
.panel-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.panel-empty {
  margin: 0;
}

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

.practice-stat-item {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
}

.practice-stat-item--wide {
  grid-column: 1 / -1;
}

.practice-stat-item span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.practice-stat-item strong {
  color: var(--navy);
  display: block;
  font-size: 1.08rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.practice-stat-item small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
}

.practice-history {
  margin-top: 14px;
}

.practice-ranking {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
}

.practice-ranking h4 {
  color: var(--navy);
  font-size: 0.9rem;
  margin: 0;
}

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

.practice-ranking-list li,
.practice-player-position {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 8px 10px;
}

.practice-ranking-list strong,
.practice-player-position strong,
.practice-ranking-list em,
.practice-player-position em {
  color: var(--navy);
  font-style: normal;
  font-weight: 800;
}

.practice-ranking-list span,
.practice-player-position span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.practice-ranking-list small,
.practice-player-position small {
  color: var(--muted);
  font-size: 0.76rem;
  grid-column: 2 / -1;
}

.practice-player-position {
  border-color: #cfdcff;
}

.practice-player-position > span:first-child {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  grid-column: 1 / -1;
  text-transform: uppercase;
}

.practice-history-open {
  margin-top: 4px;
}

.practice-history-empty {
  padding: 16px;
}

.practice-history-table small {
  color: var(--muted);
}

.panel-subtitle {
  font-size: 0.84rem;
  margin: 12px 0 8px;
}

.activity-calendar {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 2px;
}

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

.activity-day {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 2px;
  justify-items: center;
  min-height: 46px;
  padding: 6px 4px;
}

.activity-day small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
}

.activity-day strong {
  color: var(--muted);
  font-size: 0.84rem;
}

.activity-day.is-active {
  background: #ecf7f1;
  border-color: #bfe2cd;
}

.activity-day.is-active strong {
  color: #145c3d;
}

.point-history {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 2px;
}

.point-history-summary {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
}

.point-history-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.point-history-summary strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
}

.point-history-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  color: var(--text);
  max-width: min(920px, calc(100vw - 24px));
  padding: 0;
  width: 920px;
}

.point-history-dialog::backdrop {
  background: rgba(17, 24, 39, 0.48);
}

.point-history-dialog-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.point-history-dialog-head h3 {
  margin: 0;
}

.point-history-dialog-head button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.3rem;
  height: 36px;
  justify-content: center;
  line-height: 1;
  width: 36px;
}

.point-history-table-wrap {
  max-height: min(68vh, 620px);
  overflow: auto;
  padding: 12px;
}

.point-history-table {
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 760px;
  width: 100%;
}

.point-history-table th,
.point-history-table td {
  border-bottom: 1px solid #e6ebf2;
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

.point-history-table th {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.point-history-table strong {
  color: #145c3d;
  white-space: nowrap;
}

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

.season-heading,
.season-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.season-heading span,
.season-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.season-heading strong,
.season-meta strong {
  font-size: 0.9rem;
}

.season-progress {
  background: #e8edf4;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.season-progress span {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  display: block;
  height: 100%;
}

.season-track {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.season-track h3 {
  font-size: 0.84rem;
  margin: 0 0 8px;
}

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

.season-reward-item {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 8px 10px;
}

.season-badge-icon {
  --badge-main: #f7b52c;
  --badge-soft: #fff4d8;
  align-items: center;
  background: var(--badge-soft);
  border: 1px solid color-mix(in srgb, var(--badge-main) 35%, #ffffff);
  border-radius: 8px;
  color: var(--badge-main);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.season-badge-icon svg {
  display: block;
  fill: none;
  height: 26px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 26px;
}

.season-badge-icon--gold {
  --badge-main: #f7b52c;
  --badge-soft: #fff4d8;
}

.season-badge-icon--blue {
  --badge-main: #3a7bd5;
  --badge-soft: #eaf2ff;
}

.season-badge-icon--green {
  --badge-main: #2b9b68;
  --badge-soft: #eaf8f0;
}

.season-badge-icon--rose {
  --badge-main: #d8556f;
  --badge-soft: #fff0f3;
}

.season-badge-icon--violet {
  --badge-main: #7c5fd6;
  --badge-soft: #f0ecff;
}

.season-reward-copy {
  min-width: 0;
}

.season-reward-copy span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
}

.season-reward-copy strong {
  display: block;
  font-size: 0.88rem;
  margin-top: 2px;
}

.season-next-badge {
  background: #fff8e8;
  border: 1px solid #f1d69b;
  border-radius: 8px;
  margin-top: 8px;
  padding: 8px 10px;
}

.season-next-badge span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
}

.season-next-badge strong {
  display: block;
  font-size: 0.88rem;
  margin-top: 2px;
}

.ad-slot {
  align-items: center;
  flex-direction: column;
  border-style: dashed;
  color: var(--muted);
  display: flex;
  gap: 4px;
  justify-content: center;
  min-height: 250px;
  padding: 16px;
  text-align: center;
}

.ad-slot-disabled {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(124, 60, 255, 0.07) 0,
      rgba(124, 60, 255, 0.07) 10px,
      rgba(43, 126, 255, 0.08) 10px,
      rgba(43, 126, 255, 0.08) 20px
    ),
    var(--panel);
  border-color: #c9d4ea;
}

.ad-slot .adsbygoogle {
  width: 100%;
}

.ad-label {
  color: #6f7f94;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.ad-slot-live {
  border-style: solid;
  display: block;
  padding: 0;
}

.ad-slot-live .ad-label {
  padding: 6px 8px 0;
  text-align: center;
}

.ad-slot-live .ad-placeholder-note {
  display: none;
}

.ad-placeholder-note strong {
  color: var(--text);
  font-size: 0.94rem;
}

.ad-placeholder-note span,
.ad-placeholder-note small {
  display: block;
}

.ad-placeholder-note small {
  font-size: 0.78rem;
}

.mobile-only-ad {
  display: none;
}

.desktop-only-ad {
  display: flex;
}

.desktop-content-ad {
  display: flex;
  margin-top: 18px;
  min-height: 90px;
}

.dashboard-ad-card {
  margin-bottom: 14px;
  min-height: 220px;
}

.sidebar-ad-card {
  margin: 0;
}

.global-ranking-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.global-ranking-empty {
  background: rgba(47, 102, 198, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.global-ranking-empty span {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
}

.global-ranking-empty strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  margin-top: 3px;
}

.gameplay-rail-ad {
  margin-top: 150px;
}

.post-completion-ad-slot {
  margin-top: 14px;
}

.post-completion-ad {
  margin-top: 0;
  min-height: 120px;
}

.seo-band {
  margin-top: 18px;
  padding: 16px;
}

.seo-band p {
  color: var(--muted);
  line-height: 1.62;
}

.seo-inline-links,
.seo-content-nav {
  align-items: center;
  background: rgba(247, 249, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
}

.seo-content-nav {
  margin: 0 0 24px;
}

.seo-inline-links h3,
.seo-content-nav strong {
  color: var(--text);
  flex-basis: 100%;
  font-size: 1rem;
  font-weight: 900;
  margin: 0 0 4px;
}

.seo-inline-links a,
.seo-content-nav a {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.seo-inline-links a:hover,
.seo-content-nav a:hover,
.seo-content-nav a[aria-current="page"] {
  background: linear-gradient(135deg, var(--purple), var(--blue-action));
  border-color: transparent;
  color: #fff;
}

.seo-static-page {
  margin: 0 auto;
  max-width: none;
  padding: clamp(22px, 5vw, 56px) 0;
  width: min(1120px, calc(100vw - 32px));
}

.seo-page-header,
.seo-page-footer {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 18px clamp(16px, 4vw, 40px);
}

.seo-page-header {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 4;
}

.seo-page-header .brand {
  color: var(--navy);
}

.seo-page-header .brand-copy small {
  color: #5f66a3;
}

.seo-page-header .brand-mark {
  background: #f7f7ff;
}

.seo-page-nav,
.seo-page-footer nav,
.seo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.seo-page-nav a,
.seo-page-footer a,
.seo-breadcrumb a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.seo-page-nav a[aria-current="page"] {
  color: var(--text);
}

.seo-breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.seo-page-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.seo-page-footer strong {
  color: var(--text);
}

.seo-page-footer p {
  margin: 6px 0 0;
}

.app-footer {
  grid-column: 1 / -1;
  margin-top: 18px;
  width: 100%;
}

.seo-static-hero,
.seo-static-action,
.feature-guide,
.points-guide,
.share-guide,
.seo-static-content,
.seo-static-ad {
  margin: 0 0 24px;
}

.seo-static-hero {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 255, 0.9) 58%, rgba(255, 245, 223, 0.72) 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
}

.seo-static-hero p:first-child {
  color: var(--brand);
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.seo-static-hero h1 {
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 1.03;
  margin: 0 0 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.seo-static-hero p,
.seo-static-content p,
.seo-static-content li {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.seo-static-content h2 {
  font-size: 1.35rem;
  margin: 0 0 12px;
}

.seo-static-content p {
  margin: 0 0 12px;
}

.seo-static-steps {
  counter-reset: seo-step;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-static-steps li {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  counter-increment: seo-step;
  padding: 12px 12px 12px 46px;
  position: relative;
}

.seo-static-steps li::before {
  align-items: center;
  background: var(--brand);
  border-radius: 999px;
  color: #fff;
  content: counter(seo-step);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  left: 12px;
  position: absolute;
  top: 14px;
  width: 24px;
}

.primary-action {
  align-items: center;
  background: var(--brand);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  margin-top: 12px;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.seo-static-action {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(35, 43, 85, 0.96), rgba(57, 69, 125, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: clamp(18px, 3vw, 26px);
}

.seo-static-action h2 {
  color: #fff;
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.seo-static-action p {
  color: #d8def8;
  line-height: 1.55;
  margin: 0;
}

.seo-action-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.seo-action-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue-action));
  box-shadow: 0 18px 34px rgba(64, 119, 255, 0.28);
  margin-top: 0;
}

.seo-action-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 14px;
  text-decoration: none;
}

.feature-guide,
.points-guide,
.share-guide {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.94) 58%, rgba(255, 248, 226, 0.82));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 28px);
}

.share-guide {
  background:
    linear-gradient(135deg, rgba(23, 31, 68, 0.98), rgba(48, 62, 132, 0.96) 58%, rgba(91, 72, 255, 0.92));
  color: #fff;
}

.feature-guide-heading,
.points-guide-heading,
.share-guide-heading {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 0.82fr) minmax(240px, 1fr);
  margin-bottom: 18px;
}

.feature-guide-heading p,
.points-guide-heading p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.share-guide-heading p {
  color: #dce3ff;
  line-height: 1.6;
  margin: 0;
}

.feature-guide-heading h2,
.points-guide-heading h2,
.share-guide-heading h2 {
  color: var(--navy);
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.02;
  margin: 0;
}

.share-guide-heading h2 {
  color: #fff;
}

.feature-guide-grid,
.points-guide-grid,
.share-guide-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.feature-guide-card,
.points-guide-card,
.share-guide-card {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #dde5f2;
  border-radius: 8px;
  min-height: 190px;
  padding: 18px;
}

.share-guide-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.feature-guide-card span,
.points-guide-card span {
  align-items: center;
  background: #fff4cf;
  border: 1px solid #f2d98d;
  border-radius: 999px;
  color: #8a5a00;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 16px;
  min-height: 32px;
  padding: 6px 10px;
}

.feature-guide-card span {
  background: #eef1ff;
  border-color: #ccd7ff;
  color: #3542a3;
}

.points-guide-card:nth-child(2n) span {
  background: #e7f7ef;
  border-color: #bde5cf;
  color: #075a3b;
}

.points-guide-card:nth-child(3n) span {
  background: #eef1ff;
  border-color: #cbd5ff;
  color: #3342a0;
}

.feature-guide-card h3,
.points-guide-card h3,
.share-guide-card h3 {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.18;
  margin: 0 0 10px;
}

.share-guide-card h3 {
  color: #fff;
}

.feature-guide-card p,
.points-guide-card p,
.share-guide-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.share-guide-card p {
  color: #dce3ff;
}

.share-guide-card a {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  font-weight: 900;
  margin-top: 16px;
  min-height: 40px;
  padding: 9px 12px;
  text-decoration: none;
}

.feature-guide-rules,
.points-guide-rules,
.share-ideas {
  background: rgba(23, 31, 68, 0.96);
  border-radius: 8px;
  color: #e8ecff;
  margin-top: 14px;
  padding: 18px;
}

.share-ideas {
  background: rgba(255, 255, 255, 0.1);
}

.feature-guide-rules h3,
.points-guide-rules h3,
.share-ideas h3 {
  color: #fff;
  margin: 0 0 10px;
}

.feature-guide-rules ul,
.points-guide-rules ul,
.share-ideas ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.feature-guide-rules li,
.points-guide-rules li,
.share-ideas li {
  line-height: 1.48;
}

.seo-static-content {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.seo-static-faq {
  display: grid;
  gap: 10px;
}

.seo-static-faq details {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 12px;
}

.seo-static-faq summary {
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.seo-static-faq details p {
  margin: 8px 0 0;
}

.seo-static-ad {
  min-height: 120px;
}

.seo-static-ad-inline {
  min-height: 280px;
}

.seo-static-ad-footer {
  min-height: 90px;
}

.completion-card {
  display: none;
}

.completion-card.is-visible {
  display: block;
}

.completion-card.is-popup-open {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  margin: 0;
  padding: 16px;
  position: fixed;
  z-index: 80;
}

.has-completion-popup {
  overflow: hidden;
}

.completion-popup-backdrop {
  background: rgba(18, 28, 45, 0.58);
  inset: 0;
  position: fixed;
}

.completion-popup-panel {
  background: #ffffff;
  border: 1px solid rgba(217, 224, 234, 0.92);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(18, 28, 45, 0.28);
  max-height: min(720px, calc(100vh - 32px));
  max-width: 980px;
  overflow: hidden;
  position: relative;
  width: min(980px, calc(100vw - 32px));
  z-index: 1;
}

.completion-popup-panel:focus {
  outline: none;
}

.completion-popup-scroll {
  max-height: min(720px, calc(100vh - 32px));
  overflow-y: auto;
  padding: 18px;
}

.completion-popup-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 38px;
  z-index: 2;
}

.completion-popup-close:hover,
.completion-popup-close:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
}

.completion-celebration {
  align-items: center;
  background:
    linear-gradient(135deg, #ffffff 0%, #eaf3ff 48%, #fff4df 100%);
  border: 1px solid rgba(47, 101, 167, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(25, 37, 59, 0.12);
  color: var(--text);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
  padding: 16px;
  position: relative;
  transform-origin: center top;
}

.completion-card.is-visible .completion-celebration {
  animation: completion-pop 420ms cubic-bezier(0.18, 0.88, 0.32, 1.16) both;
}

.completion-burst {
  inset: -24px;
  opacity: 0.92;
  pointer-events: none;
  position: absolute;
}

.completion-burst span {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(242, 169, 59, 0.13);
  height: 9px;
  position: absolute;
  width: 9px;
}

.completion-burst span:nth-child(1) {
  left: 10%;
  top: 18%;
}

.completion-burst span:nth-child(2) {
  background: var(--brand);
  right: 13%;
  top: 20%;
}

.completion-burst span:nth-child(3) {
  background: var(--ok);
  bottom: 18%;
  left: 28%;
}

.completion-burst span:nth-child(4) {
  bottom: 24%;
  right: 18%;
}

.completion-card.is-visible .completion-burst span {
  animation: reward-spark 980ms ease-out both;
}

.completion-card.is-visible .completion-burst span:nth-child(2) {
  animation-delay: 90ms;
}

.completion-card.is-visible .completion-burst span:nth-child(3) {
  animation-delay: 150ms;
}

.completion-card.is-visible .completion-burst span:nth-child(4) {
  animation-delay: 210ms;
}

.completion-medal {
  align-items: center;
  animation: medal-pop 560ms cubic-bezier(0.18, 0.88, 0.32, 1.16) both;
  background: conic-gradient(from 160deg, var(--accent), #ffe1a3, var(--brand), var(--accent));
  border-radius: 50%;
  box-shadow: 0 14px 24px rgba(47, 101, 167, 0.22);
  display: inline-flex;
  height: 66px;
  justify-content: center;
  position: relative;
  width: 66px;
  z-index: 1;
}

.completion-medal span {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--brand);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  letter-spacing: 0;
  width: 44px;
}

.completion-celebration-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.completion-kicker {
  color: var(--brand);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.completion-celebration h2 {
  color: var(--text);
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  line-height: 1.1;
  margin: 4px 0 6px;
}

.completion-celebration p {
  color: var(--muted);
  margin: 0;
}

.completion-highlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
  position: relative;
  z-index: 1;
}

.point-breakdown {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 101, 167, 0.12);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 10px;
  position: relative;
  z-index: 1;
}

.point-breakdown > strong {
  color: var(--text);
  font-size: 0.86rem;
}

.point-breakdown ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.point-breakdown li {
  align-items: center;
  border-top: 1px solid rgba(47, 101, 167, 0.1);
  color: var(--muted);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-top: 6px;
}

.point-breakdown b {
  color: #145c3d;
  white-space: nowrap;
}

.completion-highlight-strip span {
  background: rgba(47, 124, 255, 0.1);
  border: 1px solid rgba(47, 124, 255, 0.18);
  border-radius: 999px;
  color: #244d9a;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  padding: 7px 10px;
}

.completion-highlight-strip span:nth-child(2n) {
  background: rgba(242, 169, 59, 0.13);
  border-color: rgba(242, 169, 59, 0.24);
  color: #7b4b05;
}

.reward-grid {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.reward-tile {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 101, 167, 0.12);
  border-radius: 8px;
  min-width: 0;
  padding: 10px;
}

.completion-card.is-visible .reward-tile {
  animation: reward-rise 460ms ease-out both;
}

.completion-card.is-visible .reward-tile:nth-child(2) {
  animation-delay: 80ms;
}

.completion-card.is-visible .reward-tile:nth-child(3) {
  animation-delay: 140ms;
}

.completion-card.is-visible .reward-tile:nth-child(4) {
  animation-delay: 200ms;
}

.completion-card.is-visible .reward-tile:nth-child(5) {
  animation-delay: 260ms;
}

.reward-tile span,
.reward-tile small {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  line-height: 1.35;
}

.reward-tile strong {
  color: var(--text);
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  margin: 3px 0;
  overflow-wrap: anywhere;
}

.completion-authority-note {
  color: #145c3d;
  font-weight: 700;
  margin: 12px 0 0;
}

.challenge-box {
  background: #ffffff;
  border: 1px solid rgba(20, 92, 61, 0.16);
  border-radius: 8px;
  color: var(--text);
  margin-top: 12px;
  padding: 12px;
}

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

.challenge-box small {
  color: var(--muted);
  display: block;
  line-height: 1.45;
}

.completion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-button {
  align-items: center;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  text-decoration: none;
}

.action-button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.action-button.full-width {
  margin-top: 12px;
  width: 100%;
}

.action-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.share-feedback {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

@keyframes completion-pop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes medal-pop {
  0% {
    opacity: 0;
    transform: rotate(-8deg) scale(0.72);
  }
  70% {
    opacity: 1;
    transform: rotate(3deg) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
}

@keyframes reward-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reward-spark {
  0% {
    opacity: 0;
    transform: scale(0.35);
  }
  45% {
    opacity: 1;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

@media (prefers-reduced-motion: reduce) {
  .completion-card.is-visible .completion-celebration,
  .completion-card.is-visible .completion-burst span,
  .completion-card.is-visible .reward-tile,
  .completion-medal {
    animation: none;
  }
}

.monetization-panel {
  border-top: 1px solid rgba(20, 92, 61, 0.18);
  color: var(--text);
  margin-top: 14px;
  padding-top: 12px;
}

.monetization-panel h3 {
  color: #145c3d;
  font-size: 0.96rem;
  margin: 0 0 8px;
}

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

.offer-card {
  border-left: 3px solid var(--accent);
  display: grid;
  gap: 5px;
  padding: 2px 0 2px 10px;
}

.offer-card.is-selected {
  border-left-color: var(--brand);
}

.offer-card strong {
  color: var(--text);
}

.offer-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.offer-product {
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding: 8px 10px;
}

.offer-product span,
.offer-product em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.offer-product strong {
  color: var(--text);
}

.offer-benefits {
  color: var(--muted);
  display: grid;
  font-size: 0.78rem;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer-benefits li::before {
  content: "+ ";
}

.offer-button {
  justify-self: start;
  margin-top: 4px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  text-decoration: none;
}

.consent-root {
  position: relative;
  z-index: 95;
}

.cmp-overlay {
  background: rgba(17, 24, 56, 0.44);
  display: none;
  inset: 0;
  position: fixed;
  z-index: 94;
}

.cmp-overlay.is-visible {
  display: block;
}

.cmp-modal {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6ff 100%);
  border: 1px solid rgba(124, 60, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(23, 31, 68, 0.28);
  color: var(--text);
  display: none;
  gap: 14px;
  padding: 18px;
  position: fixed;
  z-index: 96;
}

.cmp-modal.is-visible {
  display: grid;
}

.cmp-banner {
  bottom: 18px;
  left: 18px;
  max-width: min(700px, calc(100vw - 36px));
}

.cmp-preferences {
  left: 50%;
  max-height: min(720px, calc(100vh - 40px));
  max-width: min(720px, calc(100vw - 32px));
  overflow: auto;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.cmp-subtitle {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cmp-copy {
  display: grid;
  gap: 6px;
}

.cmp-copy h2,
.cmp-copy p {
  margin: 0;
}

.cmp-copy h2 {
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.2;
}

.cmp-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.cmp-consent-state {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cmp-consent-state span,
.cmp-pref-item {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #dbe3ff;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 10px 12px;
}

.cmp-consent-state strong,
.cmp-pref-head strong {
  color: var(--text);
}

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

.cmp-pref-item {
  display: grid;
  gap: 6px;
}

.cmp-pref-toggle {
  align-items: center;
  cursor: pointer;
  grid-template-columns: minmax(0, 1fr) auto;
}

.cmp-pref-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.cmp-pref-head span {
  color: var(--blue-action);
  font-size: 0.8rem;
  font-weight: 700;
}

.cmp-pref-desc {
  color: var(--muted);
  display: block;
  line-height: 1.45;
  margin: 0;
}

.cmp-switch {
  accent-color: var(--purple);
  height: 22px;
  width: 44px;
}

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

.cmp-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d4ddfa;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
}

.cmp-btn:hover,
.cmp-btn:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(124, 60, 255, 0.12);
  outline: none;
}

.cmp-btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue-action));
  border-color: transparent;
  color: #fff;
}

.cmp-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cmp-link {
  color: #4d6092;
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cmp-link:hover,
.cmp-link:focus-visible {
  color: var(--purple);
}

.cmp-fab {
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  bottom: 16px;
  box-shadow: 0 16px 36px rgba(27, 34, 70, 0.24);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0 16px;
  position: fixed;
  right: 16px;
  z-index: 93;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side-column {
    order: 2;
  }

  .app-footer {
    order: 3;
  }

  .game-header,
  .topbar,
  .seo-page-header,
  .seo-page-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-tags {
    justify-content: flex-start;
  }

  .player-strip {
    justify-content: flex-start;
  }

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

  .legacy-frame {
    min-height: 460px;
    padding: 8px;
  }

  .ad-slot {
    min-height: 120px;
  }

  .desktop-only-ad {
    display: none;
  }

  .desktop-content-ad {
    display: none;
  }

  .mobile-only-ad {
    display: flex;
  }

  .offer-button {
    width: 100%;
  }

  .completion-celebration {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .completion-popup-scroll {
    padding: 12px;
  }

  .completion-medal {
    height: 58px;
    width: 58px;
  }

  .completion-medal span {
    height: 38px;
    width: 38px;
  }

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

  .cmp-banner {
    bottom: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
  }

  .cmp-preferences {
    max-height: calc(100vh - 24px);
    max-width: calc(100vw - 24px);
  }

  .cmp-consent-state {
    grid-template-columns: 1fr;
  }

  .consent-actions {
    grid-template-columns: 1fr;
  }
}

/* Rediseño visual RETO SUDOKU */
.topbar {
  align-items: center;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(23, 31, 68, 0.22);
  color: #fff;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 86px;
  padding: 12px clamp(16px, 4vw, 42px);
}

.seo-page-header {
  background: var(--navy);
  margin: 0;
  max-width: none;
  width: 100%;
  z-index: 20;
}

.seo-page-header .brand {
  color: #fff;
}

.seo-page-header .brand-copy small {
  color: #bfc7ee;
}

.seo-page-nav a {
  color: #d9def7;
}

.seo-page-nav a[aria-current="page"] {
  color: #fff;
}

.seo-header-actions {
  justify-content: flex-end;
}

.seo-header-action {
  white-space: nowrap;
}

.brand {
  color: #fff;
  gap: 12px;
  font-weight: 900;
}

.brand-mark {
  background: #f7f7ff;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(124, 60, 255, 0.22);
  color: var(--navy);
  display: grid;
  font-size: 0.72rem;
  font-weight: 900;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  height: 42px;
  line-height: 1;
  padding: 5px;
  width: 42px;
}

.brand-mark span {
  align-items: center;
  border-bottom: 1px solid #a9afe0;
  border-right: 1px solid #a9afe0;
  display: flex;
  justify-content: center;
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(4) {
  border-right: 0;
}

.brand-mark span:nth-child(3),
.brand-mark span:nth-child(4) {
  border-bottom: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  letter-spacing: 0;
}

.brand-copy small {
  color: #bfc7ee;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(12px, 2vw, 28px);
  justify-content: center;
  min-width: 0;
}

.main-nav a {
  color: #d9def7;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 10px 0;
  position: relative;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a[aria-current="page"],
.main-nav a:hover {
  color: #fff;
}

.main-nav a[aria-current="page"]::after {
  background: var(--purple);
  border-radius: 999px;
  bottom: 0;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 9px 12px;
}

.accent-pill {
  background: rgba(255, 194, 71, 0.15);
  border-color: rgba(255, 194, 71, 0.45);
  color: #ffe1a3;
}

.game-tags .accent-pill {
  background: #fff4df;
  border-color: #d89422;
  color: #7b4b05;
}

.progress-action {
  cursor: pointer;
  text-decoration: none;
}

button.progress-action {
  font: inherit;
}

.progress-action.secondary {
  background: rgba(255, 255, 255, 0.04);
}

.logout-action {
  background: rgba(255, 255, 255, 0.08);
}

.player-status-indicator {
  align-items: center;
  background: rgba(12, 18, 44, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  gap: 9px;
  min-height: 40px;
  padding: 7px 11px;
}

.player-status-indicator strong,
.player-status-indicator small {
  display: block;
  line-height: 1.15;
}

.player-status-indicator strong {
  font-size: 0.8rem;
  font-weight: 900;
}

.player-status-indicator small {
  color: #bfc7ee;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
}

.player-status-dot {
  background: #facc15;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.12);
  flex: 0 0 auto;
  height: 9px;
  width: 9px;
}

.player-status-indicator.is-validated .player-status-dot {
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

.action-button {
  background: linear-gradient(135deg, var(--purple), var(--blue-action));
  border-color: transparent;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(86, 67, 255, 0.28);
  color: #fff;
}

.action-button.secondary {
  background: #fff;
  border-color: #dfe4f2;
  box-shadow: 0 10px 24px rgba(23, 31, 68, 0.08);
  color: var(--navy);
}

.is-welcome .layout {
  grid-template-columns: 1fr;
  max-width: none;
  padding-bottom: 56px;
}

.is-welcome .game-column {
  display: flex;
  flex-direction: column;
}

.is-welcome .game-column > :not(.legacy-frame) {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: min(1180px, calc(100vw - clamp(24px, 6vw, 56px)));
}

.is-welcome .game-header {
  display: none;
}

.is-welcome .legacy-frame {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.is-welcome .status-row {
  display: none;
}

.is-welcome .side-column {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: min(1180px, calc(100vw - clamp(24px, 6vw, 56px)));
}

.is-welcome .side-column .panel {
  margin-bottom: 0;
}

.is-welcome .dashboard-ad-card {
  margin-bottom: 0;
}

.is-welcome .dashboard-section {
  grid-column: 1 / -1;
}

.is-welcome .dashboard-section-title {
  align-items: center;
  color: #202b5f;
  display: flex;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  gap: 12px;
  letter-spacing: 0;
  margin: 6px 0 0;
  text-transform: uppercase;
}

.is-welcome .dashboard-section-title::after {
  background: linear-gradient(90deg, rgba(47, 124, 255, 0.88), rgba(124, 60, 255, 0.58), rgba(255, 194, 71, 0));
  border-radius: 999px;
  content: "";
  flex: 1;
  height: 3px;
  min-width: 42px;
}

.is-welcome .dashboard-section-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.is-welcome .dashboard-section-grid > .panel {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: rgba(202, 212, 231, 0.92);
  border-left: 4px solid rgba(47, 124, 255, 0.68);
  box-shadow: 0 18px 40px rgba(23, 31, 68, 0.09);
  padding: 18px;
  position: relative;
}

.is-welcome .dashboard-section-grid > .panel:nth-child(2n) {
  border-left-color: rgba(124, 60, 255, 0.58);
}

.is-welcome .dashboard-section-grid > .panel:nth-child(3n) {
  border-left-color: rgba(255, 194, 71, 0.85);
}

.is-welcome .dashboard-section-grid > .panel .panel-title-row {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.is-welcome .dashboard-section-grid > .panel .panel-title-row h2 {
  color: #202b5f;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
}

.is-welcome .dashboard-section-grid > .panel .panel-copy {
  margin-bottom: 24px;
}

.is-welcome .dashboard-section-grid > .panel .help-icon-button {
  background: #fff9e8;
  border-color: #f4dda3;
  color: #b87900;
}

.is-welcome .app-footer {
  align-items: center;
  gap: 14px 24px;
  margin-top: 4px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.is-welcome .app-footer p {
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 4px;
}

.is-welcome .app-footer nav {
  gap: 6px 12px;
}

.is-welcome .gameplay-rail-ad {
  display: none;
}

.is-gameplay .layout {
  grid-template-columns: 1fr;
  max-width: 1180px;
  padding-bottom: 32px;
}

.gameplay-lower-panels {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 10px auto 0;
  max-width: 1180px;
  width: min(1180px, calc(100vw - clamp(24px, 6vw, 56px)));
}

.gameplay-lower-panels > * {
  height: 100%;
}

.gameplay-lower-panels .gameplay-rail-ad {
  margin-top: 0;
}

.gameplay-lower-panels .dashboard-section {
  grid-column: 1 / -1;
}

.gameplay-lower-panels .dashboard-section-title {
  align-items: center;
  color: #202b5f;
  display: flex;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 900;
  gap: 12px;
  letter-spacing: 0;
  margin: 6px 0 0;
  text-transform: uppercase;
}

.gameplay-lower-panels .dashboard-section-title::after {
  background: linear-gradient(90deg, rgba(47, 124, 255, 0.88), rgba(124, 60, 255, 0.58), rgba(255, 194, 71, 0));
  border-radius: 999px;
  content: "";
  flex: 1;
  height: 3px;
  min-width: 42px;
}

.gameplay-lower-panels .dashboard-section-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gameplay-lower-panels .dashboard-section-grid > .panel,
.gameplay-lower-panels > .panel {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: rgba(202, 212, 231, 0.92);
  border-left: 4px solid rgba(47, 124, 255, 0.68);
  box-shadow: 0 18px 40px rgba(23, 31, 68, 0.09);
  padding: 18px;
  position: relative;
}

.gameplay-lower-panels .dashboard-section-grid > .panel:nth-child(2n),
.gameplay-lower-panels > .panel:nth-child(2n) {
  border-left-color: rgba(124, 60, 255, 0.58);
}

.gameplay-lower-panels .dashboard-section-grid > .panel:nth-child(3n),
.gameplay-lower-panels > .panel:nth-child(3n) {
  border-left-color: rgba(255, 194, 71, 0.85);
}

.gameplay-lower-panels .panel-title-row {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.gameplay-lower-panels .panel-title-row h2 {
  color: #202b5f;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
}

.gameplay-lower-panels .panel-copy {
  margin-bottom: 24px;
}

.gameplay-lower-panels .help-icon-button {
  background: #fff9e8;
  border-color: #f4dda3;
  color: #b87900;
}

@media (min-width: 1180px) {
  .is-gameplay .layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1500px) {
  .is-gameplay .layout {
    max-width: 1180px;
  }
}

@media (max-width: 1180px) {
  .gameplay-lower-panels,
  .gameplay-lower-panels .dashboard-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

.welcome-screen {
  display: block;
  min-height: 0;
  padding: 0;
  width: 100%;
}

.welcome-hero {
  margin-inline: calc(50% - 50vw);
  min-height: clamp(540px, 46vw, 710px);
  overflow: hidden;
  position: relative;
  width: 100vw;
}

.welcome-hero-bg {
  height: 100%;
  inset: 0;
  object-fit: cover;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.welcome-hero::before {
  background: linear-gradient(90deg, rgba(247, 249, 255, 0.96) 0%, rgba(247, 249, 255, 0.76) 34%, rgba(247, 249, 255, 0.12) 63%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.welcome-hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(20px, 4vw, 58px);
  grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
  margin: 0 auto;
  max-width: 1500px;
  min-height: inherit;
  padding: clamp(36px, 5vw, 68px) clamp(28px, 5vw, 78px);
  position: relative;
  z-index: 2;
}

.welcome-copy {
  max-width: 640px;
  position: relative;
  z-index: 3;
}

.welcome-kicker {
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(124, 60, 255, 0.14);
  border-radius: 999px;
  color: #5f66a3;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  margin: 0 0 24px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.welcome-copy h2 {
  color: var(--navy);
  font-size: clamp(3.2rem, 5.2vw, 5rem);
  line-height: 0.98;
  margin: 0;
}

.welcome-copy h2 > span {
  display: block;
}

.welcome-copy h2 > span:nth-child(2) {
  color: var(--purple);
}

.welcome-title-mobile-line,
.welcome-title-mobile-day {
  display: none !important;
}

.welcome-lead {
  color: #4f5a80;
  font-size: clamp(1rem, 1.7vw, 1.24rem);
  line-height: 1.55;
  margin: 24px 0;
  max-width: 500px;
}

.welcome-copy .select-label {
  color: #3d466d;
  margin-top: 14px;
}

.welcome-copy .puzzle-select {
  max-width: 340px;
}

.welcome-screen small {
  color: #596487;
  display: block;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 24px;
}

.welcome-visual {
  align-self: stretch;
  min-height: 520px;
  position: relative;
}

.welcome-season-badge {
  filter: drop-shadow(0 24px 42px rgba(13, 19, 52, 0.28));
  left: clamp(560px, calc(39vw - 60px), 740px);
  margin: 0;
  position: absolute;
  top: clamp(-4px, calc(4vw - 40px), 32px);
  width: clamp(160px, 12vw, 218px);
  z-index: 4;
}

.welcome-season-badge img {
  display: block;
  height: auto;
  width: 100%;
}

.welcome-hero-art {
  animation: hero-art-float 7s ease-in-out infinite;
  height: auto;
  max-width: none;
  pointer-events: none;
  position: absolute;
  right: clamp(-260px, -14vw, -120px);
  top: 50%;
  transform: translate3d(0, -50%, 0) rotate(0.4deg);
  width: min(72vw, 920px);
  z-index: 2;
}

@keyframes hero-art-float {
  0%,
  100% {
    transform: translate3d(0, -50%, 0) rotate(0.4deg);
  }

  50% {
    transform: translate3d(-8px, calc(-50% - 12px), 0) rotate(-0.2deg);
  }
}

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

.welcome-benefits {
  background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
  border: 1px solid rgba(217, 224, 234, 0.78);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(23, 31, 68, 0.08);
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  padding: 24px clamp(20px, 4vw, 54px);
  position: relative;
}

.is-welcome .welcome-benefits {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
  width: min(1180px, calc(100vw - clamp(24px, 6vw, 56px)));
}

.welcome-benefits::after {
  background: linear-gradient(90deg, rgba(47, 124, 255, 0.92), rgba(124, 60, 255, 0.78), rgba(255, 194, 71, 0.72));
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}

.benefit-card {
  align-items: center;
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 8px 12px;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  min-height: 118px;
  padding: 4px 0;
  position: relative;
  text-decoration: none;
}

.benefit-card:hover,
.benefit-card:focus-visible,
.benefit-card.is-active {
  background: rgba(247, 249, 255, 0.86);
  box-shadow: 0 16px 30px rgba(23, 31, 68, 0.08);
  outline: 0;
}

.benefit-icon {
  align-items: center;
  background: var(--soft-lilac);
  border-radius: 8px;
  color: var(--purple);
  display: flex;
  font-size: 1.45rem;
  font-weight: 900;
  grid-row: 1 / span 2;
  height: 56px;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(23, 31, 68, 0.1);
  width: 56px;
}

.benefit-icon img {
  display: block;
  height: 56px;
  width: 56px;
}

.benefit-card--challenge .benefit-icon {
  background: linear-gradient(135deg, #efe9ff, #dcd4ff);
  color: #7c3cff;
}

.benefit-card--reward .benefit-icon {
  background: linear-gradient(135deg, #fff5d8, #ffe19b);
  color: #be7800;
}

.benefit-card--ranking .benefit-icon {
  background: linear-gradient(135deg, #e7fff8, #c9f5e6);
  color: #159b74;
}

.benefit-card--streak .benefit-icon {
  background: linear-gradient(135deg, #e9f1ff, #cfdeff);
  color: #2f7cff;
}

.welcome-benefits .benefit-card strong,
.welcome-benefits .benefit-card p {
  grid-column: 2;
  margin: 0;
}

.welcome-benefits .benefit-card strong {
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.18;
}

.welcome-benefits .benefit-card p {
  color: #596487;
  line-height: 1.38;
}

html:has(.feature-popup-shell),
body:has(.feature-popup-shell) {
  overflow: hidden;
}

.feature-popup-shell {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  overflow: hidden;
  padding: 16px;
  position: fixed;
  z-index: 90;
}

.feature-popup-backdrop {
  background: rgba(11, 18, 34, 0.78);
  inset: 0;
  position: fixed;
}

.feature-popup-panel {
  background: #fff;
  border: 1px solid rgba(217, 224, 234, 0.9);
  border-radius: 8px;
  outline: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 90px rgba(17, 24, 39, 0.3);
  max-height: min(760px, calc(100vh - 32px));
  max-width: 980px;
  overflow: hidden;
  position: relative;
  width: min(980px, calc(100vw - 32px));
  z-index: 1;
}

.feature-popup-scroll {
  max-height: min(760px, calc(100vh - 32px));
  overflow-y: auto;
  padding: clamp(16px, 3vw, 28px);
}

.feature-popup-close {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(217, 224, 234, 0.95);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
  color: #202b5f;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 12px;
  text-decoration: none;
  top: 12px;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  width: 38px;
  z-index: 2;
}

.feature-popup-close:hover,
.feature-popup-close:focus-visible {
  background: #f7f9ff;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.22);
  outline: 3px solid rgba(47, 124, 255, 0.22);
  transform: translateY(-1px);
}

.feature-popup-panel .player-feature-page {
  border: 0;
  box-shadow: none;
  margin: 0;
  max-width: none;
  padding: 0;
  width: 100%;
}

.feature-popup-panel .feature-page-head {
  padding-right: 44px;
}

.player-feature-page {
  background: #fff;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 31, 68, 0.1);
  display: grid;
  gap: 18px;
  margin: 18px auto 0;
  max-width: 1180px;
  padding: clamp(18px, 3vw, 28px);
  width: min(1180px, calc(100vw - clamp(24px, 6vw, 56px)));
}

.feature-page-head {
  display: grid;
  gap: 8px;
}

.feature-page-head span {
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-page-head h2 {
  color: var(--navy);
  font-size: clamp(1.5rem, 2.4vw, 2.15rem);
  line-height: 1.08;
  margin: 0;
}

.feature-page-head p,
.feature-empty {
  color: #596487;
  margin: 0;
}

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

.feature-stat {
  background: #f7f9ff;
  border: 1px solid #e4e9f7;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 14px;
}

.feature-stat span,
.feature-stat small {
  color: #596487;
}

.feature-stat strong {
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.05;
}

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

.feature-list-block h3 {
  color: var(--navy);
  font-size: 1rem;
  margin: 0;
}

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

.feature-item-list li {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
}

.feature-item-list span {
  display: grid;
  gap: 3px;
}

.feature-item-list strong {
  color: var(--navy);
}

.feature-item-list small {
  color: #596487;
}

.feature-item-list em {
  color: #0f5d3a;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.feature-action {
  align-items: center;
  background: linear-gradient(135deg, var(--purple), #2f7cff);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  justify-self: start;
  padding: 12px 16px;
  text-decoration: none;
}

.welcome-rules-panel {
  align-items: center;
  background: #121c45;
  border: 1px solid rgba(217, 224, 234, 0.18);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 31, 68, 0.14);
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(240px, 0.62fr) minmax(0, 1.38fr);
  margin: 18px auto 0;
  max-width: 1180px;
  padding: clamp(18px, 3vw, 28px);
  width: min(1180px, calc(100vw - clamp(24px, 6vw, 56px)));
}

.welcome-rules-copy {
  display: grid;
  gap: 8px;
}

.welcome-rules-copy span {
  color: #ffc247;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.welcome-rules-copy h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  margin: 0;
}

.welcome-rules-copy p {
  color: #c7d0f3;
  line-height: 1.5;
  margin: 0;
}

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

.welcome-rules-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 150px;
  padding: 14px;
}

.welcome-rules-grid article strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
}

.welcome-rules-grid article span {
  color: #fff2c9;
  font-size: 0.84rem;
  font-weight: 900;
}

.welcome-rules-grid article p {
  color: #c7d0f3;
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
}

.is-gameplay .legacy-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 520px;
}

.is-gameplay .status-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 14px;
}

.is-gameplay .game-header {
  background: #fff;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .player-strip {
    justify-content: flex-start;
  }
}

@media (min-width: 1181px) and (max-width: 1500px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .topbar .progress-action {
    display: none;
  }
}

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

  .gameplay-board-shell {
    grid-template-columns: 1fr;
  }

  .gameplay-board-shell #legacy-sudoku {
    transform: none;
  }

  .gameplay-tips {
    justify-content: flex-start;
  }

  .welcome-hero {
    min-height: 0;
  }

  .welcome-hero::before {
    background: linear-gradient(180deg, rgba(247, 249, 255, 0.98) 0%, rgba(247, 249, 255, 0.72) 48%, rgba(247, 249, 255, 0.08) 100%);
  }

  .welcome-hero-inner {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }

  .welcome-season-badge {
    justify-self: center;
    left: auto;
    position: relative;
    top: auto;
    width: min(66vw, 260px);
  }

  .welcome-visual {
    min-height: clamp(300px, 78vw, 520px);
  }

  .welcome-hero-art {
    right: -38%;
    top: 50%;
    width: min(145vw, 820px);
  }

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

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

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

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

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

  .feature-guide-heading,
  .points-guide-heading,
  .share-guide-heading,
  .feature-guide-grid,
  .points-guide-grid,
  .share-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .welcome-title-desktop-line {
    display: none !important;
  }

  .welcome-title-mobile-line,
  .welcome-title-mobile-day {
    display: block !important;
  }

  .welcome-title-mobile-break {
    display: block;
    padding-left: 0;
  }

  .welcome-season-badge {
    left: calc(min(58vw, 330px) - 30px);
    position: absolute;
    top: clamp(185px, calc(50vw - 5px), 240px);
    width: min(48.62vw, 203.06px);
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) 42px;
    max-width: 100vw;
    min-height: 72px;
    overflow: visible;
    padding: 10px 14px;
    width: 100vw;
  }

  .brand-copy small,
  .main-nav {
    display: none;
  }

  .brand {
    gap: 8px;
    min-width: 0;
  }

  .brand-mark {
    font-size: 0.64rem;
    height: 36px;
    padding: 4px;
    width: 36px;
  }

  .brand-copy strong {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    flex: 0 0 42px;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    position: relative;
    z-index: 35;
  }

  .topbar.is-menu-open .mobile-menu-toggle {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
  }

  .mobile-menu-toggle span {
    grid-column: 1;
  }

  .topbar.is-menu-open .main-nav {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    display: grid;
    gap: 4px;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 8px 12px;
    width: 100%;
  }

  .topbar.is-menu-open .main-nav a {
    padding: 10px 0;
  }

  .topbar.is-menu-open .main-nav a[aria-current="page"]::after {
    bottom: 4px;
  }

  .ranking-filter-grid {
    grid-template-columns: 1fr;
  }

  .ranking-filter-card {
    min-height: 0;
  }

  .ranking-player-position {
    grid-template-columns: 1fr;
  }

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

  .progress-action {
    display: none;
  }

  .player-strip {
    align-items: center;
    display: flex;
    gap: 8px;
    grid-column: 2;
    justify-content: flex-end;
    justify-self: end;
    min-width: 0;
    overflow: hidden;
    width: min(142px, 100%);
  }

  .player-status-indicator {
    gap: 7px;
    max-width: 100%;
    min-width: 0;
    padding: 6px 8px;
  }

  .player-status-indicator > span {
    min-width: 0;
  }

  .player-status-indicator strong {
    font-size: 0.74rem;
  }

  .player-status-indicator small {
    display: none;
    font-size: 0.62rem;
  }

  .player-status-indicator strong,
  .player-status-indicator small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar.is-menu-open .player-strip {
    align-items: stretch;
    display: grid;
    grid-column: 1 / -1;
    grid-row: 3;
    grid-template-columns: 1fr;
    justify-content: stretch;
    overflow: visible;
    padding-right: 0;
    width: 100%;
  }

  .topbar.is-menu-open .player-strip .mobile-menu-toggle {
    justify-self: end;
    display: none;
  }

  .topbar.is-menu-open .progress-action {
    display: inline-flex;
    justify-content: center;
    width: 100%;
  }

  .topbar.is-menu-open .player-status-indicator {
    justify-content: flex-start;
    max-width: none;
  }

  .topbar.is-menu-open .player-status-indicator small {
    display: block;
  }

  .seo-static-page {
    margin: 0 14px;
    max-width: none;
    padding: 24px 0;
    width: auto;
  }

  .seo-static-hero {
    padding: 24px;
  }

  .seo-static-hero h1 {
    font-size: 1.55rem;
    line-height: 1.08;
    max-width: calc(100vw - 76px);
  }

  .seo-static-hero p {
    max-width: calc(100vw - 76px);
  }

  .seo-content-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .seo-content-nav strong {
    grid-column: 1 / -1;
  }

  .seo-content-nav a {
    text-align: center;
    white-space: normal;
  }

  .seo-static-action {
    grid-template-columns: 1fr;
  }

  .feature-guide,
  .points-guide,
  .share-guide {
    padding: 18px;
  }

  .feature-guide-heading h2,
  .points-guide-heading h2,
  .share-guide-heading h2 {
    font-size: 1.55rem;
  }

  .feature-guide-card,
  .points-guide-card,
  .share-guide-card {
    min-height: 0;
  }

  .seo-action-row {
    justify-content: stretch;
  }

  .seo-action-row a {
    justify-content: center;
    width: 100%;
  }

  .is-welcome .legacy-frame {
    min-height: 0;
  }

  .welcome-hero {
    margin-inline: calc(50% - 50vw);
  }

  .welcome-hero-inner {
    padding: 28px 18px 18px;
  }

  .welcome-copy h2 {
    font-size: clamp(2.75rem, 14vw, 4.15rem);
  }

  .welcome-visual {
    min-height: clamp(188px, 52vw, 230px);
    margin-top: 8px;
    overflow: hidden;
  }

  .welcome-hero-art {
    right: -46%;
    top: 58%;
    width: min(142vw, 540px);
  }

  .welcome-benefits {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .feature-popup-shell {
    align-items: center;
    padding: 50px 12px;
  }

  .feature-popup-panel {
    border: 2px solid #fff;
    box-shadow: 0 20px 70px rgba(11, 18, 34, 0.42);
    max-height: calc(100vh - 100px);
    width: calc(100vw - 24px);
  }

  .feature-popup-scroll {
    max-height: calc(100vh - 100px);
    padding: 8px 14px 48px;
  }

  .feature-popup-close {
    height: 38px;
    right: 10px;
    top: 10px;
    width: 38px;
  }

  .player-feature-page {
    gap: 14px;
    padding: 0;
  }

  .feature-popup-panel .feature-page-head {
    padding-right: 0;
  }

  .feature-popup-panel .feature-page-head h2 {
    font-size: 1.45rem;
  }

  .feature-popup-panel .feature-page-head p {
    font-size: 0.95rem;
    line-height: 1.32;
  }

  .feature-popup-panel .feature-stat-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-popup-panel .feature-stat {
    min-height: 92px;
    padding: 10px;
  }

  .feature-popup-panel .feature-stat strong {
    font-size: 1.22rem;
  }

  .feature-item-list li {
    align-items: start;
    flex-direction: column;
  }

  .feature-item-list em {
    text-align: left;
  }

  .welcome-rules-panel {
    margin-top: 14px;
    padding: 18px;
  }

  .welcome-rules-grid {
    grid-template-columns: 1fr;
  }

  .welcome-rules-grid article {
    min-height: 0;
  }

  .practice-choice-grid {
    grid-template-columns: 1fr;
  }

  .is-gameplay .topbar {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) 42px;
    justify-content: space-between;
    max-width: 100vw;
    min-height: 0;
    overflow: visible;
    padding: 8px 12px;
    position: static;
    width: 100vw;
  }

  .is-gameplay .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .is-gameplay .brand-mark {
    font-size: 0.64rem;
    height: 34px;
    padding: 4px;
    width: 34px;
  }

  .is-gameplay .brand-copy strong {
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .is-gameplay .player-strip {
    display: flex;
    gap: 6px;
    grid-column: 2;
    justify-content: flex-end;
    justify-self: end;
    width: min(132px, 100%);
  }

  .is-gameplay .topbar.is-menu-open .player-strip {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .is-gameplay .player-strip .pill {
    font-size: 0.76rem;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 6px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .is-gameplay .player-status-indicator {
    justify-content: center;
    min-height: 34px;
    min-width: 0;
    padding: 6px 7px;
  }

  .is-gameplay .player-status-indicator small {
    display: none;
  }

  .is-gameplay .topbar.is-menu-open .player-status-indicator small {
    display: block;
  }

  .is-welcome .dashboard-section {
    gap: 16px;
  }

  .is-welcome .dashboard-section-title {
    font-size: 1.35rem;
    margin-top: 12px;
  }

  .is-welcome .dashboard-section-grid {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .is-welcome .dashboard-section-grid > .panel {
    border-left-width: 5px;
    padding: 18px 16px;
  }

  .is-welcome .dashboard-section-grid > .panel + .panel {
    margin-top: 2px;
  }

  .is-gameplay .layout {
    gap: 10px;
    padding: 10px 10px 18px;
  }

  .gameplay-lower-panels {
    gap: 22px;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .gameplay-lower-panels .dashboard-section-grid {
    gap: 22px;
    grid-template-columns: 1fr;
  }

  .gameplay-lower-panels .dashboard-section-title {
    font-size: 1.35rem;
    margin-top: 12px;
  }

  .gameplay-lower-panels .dashboard-section-grid > .panel,
  .gameplay-lower-panels > .panel {
    border-left-width: 5px;
    padding: 18px 16px;
  }

  #legacy-sudoku .CCPuzButtons {
    display: grid !important;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: center;
    margin: 10px auto 0 !important;
    max-width: 100%;
    padding: 3px 0 6px !important;
    transform: none;
    width: 100% !important;
  }

  #legacy-sudoku .CCPuzButtons .ActionButton[data-sudoku-tool],
  #legacy-sudoku .CCPuzButtons [role="button"][data-sudoku-tool],
  #legacy-sudoku .CCPuzButtons button[data-sudoku-tool] {
    gap: 0;
    justify-content: center;
    min-width: 0 !important;
    width: 100% !important;
  }

  #legacy-sudoku .CCPuzButtons .ButtonText,
  #legacy-sudoku .CCPuzButtons .ButtonTextDiv {
    display: none !important;
  }

  #legacy-sudoku svg,
  #legacy-sudoku canvas,
  #legacy-sudoku table {
    height: auto !important;
    max-width: 100% !important;
  }

  #legacy-sudoku svg {
    width: 100% !important;
  }

  .is-gameplay .game-header {
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 10px 12px;
  }

  .is-gameplay .game-title h1 {
    font-size: 1.28rem;
    line-height: 1.08;
  }

  .is-gameplay .game-title p {
    display: none;
  }

  .is-gameplay .game-tags {
    margin-top: 8px;
  }

  .is-gameplay .status-row {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
    padding-bottom: 2px;
  }

  .is-gameplay .stat {
    min-height: 76px;
    min-width: 0;
    padding: 8px;
  }

  .is-gameplay .timer-stat,
  .is-gameplay .aid-stat {
    grid-column: span 1;
  }

  .is-gameplay .stat span {
    font-size: 0.66rem;
  }

  .is-gameplay .stat strong {
    font-size: 1.05rem;
  }

  .is-gameplay .stat small {
    font-size: 0.68rem;
  }

  .is-gameplay .aid-counters {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .is-gameplay .aid-status {
    display: none;
  }

  .is-gameplay .legacy-frame {
    min-height: 380px;
    padding: 8px 4px;
  }

  .is-gameplay {
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
  }

  .gameplay-board-shell {
    gap: 12px;
  }

  .gameplay-tips {
    padding: 12px;
  }

  .mobile-sudoku-keypad-shell {
    background: rgba(245, 247, 251, 0.96);
    border: 1px solid rgba(203, 216, 240, 0.95);
    border-radius: 8px;
    box-shadow: 0 -12px 34px rgba(23, 31, 68, 0.12);
    bottom: max(8px, env(safe-area-inset-bottom));
    display: grid;
    gap: 8px;
    left: 10px;
    margin: 0 auto;
    max-width: 520px;
    padding: 10px;
    position: fixed;
    right: 10px;
    width: auto;
    z-index: 40;
  }

  .mobile-sudoku-keypad-shell.is-collapsed {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }

  .mobile-sudoku-keypad-shell.is-collapsed .mobile-sudoku-keypad-toggle {
    border-radius: 8px;
    flex-direction: column;
    gap: 4px;
    min-height: 46px;
    padding: 7px 6px;
  }

  .mobile-sudoku-keypad {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-sudoku-keypad-shell.is-collapsed .mobile-sudoku-key,
  .mobile-sudoku-keypad-shell.is-collapsed .mobile-sudoku-key--delete {
    pointer-events: none;
    visibility: hidden;
  }

  #legacy-sudoku .SudokuPencilOverlay span {
    font-size: clamp(13px, calc(3.2vw + 2px), 17px) !important;
  }

  .is-gameplay .frame-help-row {
    display: none;
  }

  #legacy-sudoku .CCPuzButtons .ActionButton[data-sudoku-tool],
  #legacy-sudoku .CCPuzButtons [role="button"][data-sudoku-tool],
  #legacy-sudoku .CCPuzButtons button[data-sudoku-tool] {
    align-items: center;
    box-sizing: border-box !important;
    flex-direction: column;
    gap: 4px;
    height: auto !important;
    justify-content: center;
    min-height: 64px;
    padding: 3px 4px 6px !important;
    text-align: center;
  }

  #legacy-sudoku .CCPuzButtons .legacy-tool-icon {
    height: 30px;
    width: 30px;
  }

  #legacy-sudoku .CCPuzButtons .legacy-tool-icon-img {
    height: 28px;
    width: 28px;
  }

  #legacy-sudoku .CCPuzButtons .ButtonText,
  #legacy-sudoku .CCPuzButtons .ButtonTextDiv {
    display: block !important;
    font-size: 0.785rem !important;
    line-height: 1.08 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal !important;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .is-gameplay .status-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .is-gameplay .status-row--practice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
