:root {
  --bg: #f3ede2;
  --panel: rgba(255, 251, 245, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --ink: #201914;
  --muted: #6b5f55;
  --line: rgba(48, 38, 28, 0.12);
  --accent: #d95d39;
  --accent-deep: #b74a2a;
  --accent-2: #1f6c5d;
  --good: #2f8a59;
  --bad: #b33c2e;
  --shadow: 0 22px 60px rgba(54, 36, 15, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(217, 93, 57, 0.16), transparent 30%),
    radial-gradient(circle at top right, rgba(31, 108, 93, 0.14), transparent 22%),
    linear-gradient(180deg, #f8f1e7 0%, #efe5d7 100%);
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
}

body:not(.landing-page)::before {
  content: "";
  display: block;
  height: 76px;
  background:
    linear-gradient(180deg, rgba(245, 234, 220, 0.98), rgba(237, 224, 208, 0.94)),
    radial-gradient(circle at top left, rgba(217, 93, 57, 0.12), transparent 38%);
  border-bottom: 1px solid rgba(48, 38, 28, 0.1);
  box-shadow: 0 10px 26px rgba(54, 36, 15, 0.08);
}

body.menu-open {
  overflow: hidden;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  flex: 0 0 auto;
}

.site-brand-name {
  font-family: Futura, "Futura PT", "Trebuchet MS", Arial, sans-serif;
  font-size: 3.54rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: var(--accent);
}

.sidebar .site-brand-name,
.landing-aside .site-brand-name {
  color: #fbf3e8;
}

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

button {
  border: 0;
  cursor: pointer;
}

.top-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.xp-counter,
.life-counter,
.streak-counter {
  position: relative;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 66px;
  padding: 6px 18px 6px 9px;
  border: 1px solid rgba(48, 38, 28, 0.16);
  border-radius: 8px;
  background: rgba(221, 205, 184, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(54, 36, 15, 0.14);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.streak-counter:hover,
.streak-counter:focus-visible,
.streak-counter.active {
  border-color: rgba(226, 96, 28, 0.5);
  box-shadow: 0 16px 34px rgba(54, 36, 15, 0.18), 0 0 0 3px rgba(240, 122, 54, 0.16);
}

.xp-counter {
  width: 226px;
  flex: 0 0 226px;
  padding: 7px 13px 7px 8px;
}

.xp-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 51px;
  height: 51px;
  flex: 0 0 51px;
}

.xp-icon {
  display: block;
  width: 51px;
  height: 51px;
}

.xp-icon .chip-crown {
  display: none;
}

.xp-tier-1 {
  --chip-rim: #083f31;
  --chip-light: #7ee28d;
  --chip-mid: #229b63;
  --chip-dark: #0d5d42;
  --chip-accent: #eaffef;
  --chip-inner-light: #ecfff0;
  --chip-inner-dark: #b8f1c7;
  --chip-stroke: #063626;
  --chip-ring: #0c6a49;
  --chip-shine: #d8ffe0;
  --xp-tier-text: #063626;
  --xp-tier-stroke: rgba(255, 255, 255, 0.92);
}

.xp-tier-10 {
  --chip-rim: #082b5f;
  --chip-light: #8bd7ff;
  --chip-mid: #2478d4;
  --chip-dark: #123c91;
  --chip-accent: #e8f6ff;
  --chip-inner-light: #eef9ff;
  --chip-inner-dark: #b9ddff;
  --chip-stroke: #071f56;
  --chip-ring: #165aa8;
  --chip-shine: #d7f4ff;
  --xp-tier-text: #082b5f;
  --xp-tier-stroke: rgba(255, 255, 255, 0.94);
}

.xp-tier-20 {
  --chip-rim: #31105d;
  --chip-light: #d3a4ff;
  --chip-mid: #8b45d6;
  --chip-dark: #512080;
  --chip-accent: #f3e9ff;
  --chip-inner-light: #fbf1ff;
  --chip-inner-dark: #dfc2ff;
  --chip-stroke: #2b0c50;
  --chip-ring: #6d33a6;
  --chip-shine: #f0dbff;
  --xp-tier-text: #32105d;
  --xp-tier-stroke: rgba(255, 255, 255, 0.94);
}

.xp-tier-30 {
  --chip-rim: #5b1114;
  --chip-light: #ff8b7d;
  --chip-mid: #d93939;
  --chip-dark: #8e1d22;
  --chip-accent: #fff0ea;
  --chip-inner-light: #fff2ee;
  --chip-inner-dark: #ffc4ba;
  --chip-stroke: #561011;
  --chip-ring: #a9262a;
  --chip-shine: #ffe0dc;
  --xp-tier-text: #5b1114;
  --xp-tier-stroke: rgba(255, 255, 255, 0.94);
}

.xp-tier-40 {
  --chip-rim: #050505;
  --chip-light: #6d6d6d;
  --chip-mid: #242424;
  --chip-dark: #080808;
  --chip-accent: #f3f1e8;
  --chip-inner-light: #f5f5f5;
  --chip-inner-dark: #b8b8b8;
  --chip-stroke: #000;
  --chip-ring: #2e2e2e;
  --chip-shine: #fff6d2;
  --xp-tier-text: #070707;
  --xp-tier-stroke: rgba(255, 255, 255, 0.96);
}

.xp-tier-50 {
  --chip-rim: #5a626b;
  --chip-light: #f8fbff;
  --chip-mid: #b8c1cc;
  --chip-dark: #75808c;
  --chip-accent: #ffffff;
  --chip-inner-light: #ffffff;
  --chip-inner-dark: #d5dbe2;
  --chip-stroke: #505963;
  --chip-ring: #8d98a5;
  --chip-shine: #ffffff;
  --xp-tier-text: #3e4851;
  --xp-tier-stroke: rgba(255, 255, 255, 0.98);
}

.xp-tier-60 {
  --chip-rim: #7c4f08;
  --chip-light: #fff19a;
  --chip-mid: #d9a72f;
  --chip-dark: #9a650e;
  --chip-accent: #fff8d7;
  --chip-inner-light: #fffbe8;
  --chip-inner-dark: #f5d66a;
  --chip-stroke: #6a4105;
  --chip-ring: #b88417;
  --chip-shine: #fff7b8;
  --xp-tier-text: #6a4105;
  --xp-tier-stroke: rgba(255, 255, 255, 0.92);
}

.xp-tier-70 {
  --chip-rim: #cdd9df;
  --chip-light: #ffffff;
  --chip-mid: #dff8ff;
  --chip-dark: #a8d4e5;
  --chip-accent: #effcff;
  --chip-inner-light: #ffffff;
  --chip-inner-dark: #e3f8ff;
  --chip-stroke: #9ab8c4;
  --chip-ring: #b6dce8;
  --chip-shine: #ffffff;
  --xp-tier-text: #3a6a7a;
  --xp-tier-stroke: rgba(255, 255, 255, 1);
}

.xp-tier-80 {
  --chip-rim: #064c36;
  --chip-light: #7df3b2;
  --chip-mid: #0aa86f;
  --chip-dark: #036042;
  --chip-accent: #ffeaa1;
  --chip-inner-light: #fff8cb;
  --chip-inner-dark: #d8b849;
  --chip-stroke: #043d2d;
  --chip-ring: #b88914;
  --chip-shine: #fff4b0;
  --xp-tier-text: #053828;
  --xp-tier-stroke: rgba(255, 250, 210, 0.96);
}

.xp-tier-90 {
  --chip-rim: #080608;
  --chip-light: #ff6371;
  --chip-mid: #b8102d;
  --chip-dark: #560713;
  --chip-accent: #111111;
  --chip-inner-light: #ffe1e5;
  --chip-inner-dark: #ff8491;
  --chip-stroke: #080000;
  --chip-ring: #1b0a0b;
  --chip-shine: #ffc5cb;
  --xp-tier-text: #240104;
  --xp-tier-stroke: rgba(255, 235, 235, 0.96);
}

.xp-tier-99 {
  --chip-rim: #170044;
  --chip-light: #59fff5;
  --chip-mid: #b85cff;
  --chip-dark: #1a5cff;
  --chip-accent: #fffd8a;
  --chip-inner-light: #ffffff;
  --chip-inner-dark: #ffd6ff;
  --chip-stroke: #27006c;
  --chip-ring: #ffdd45;
  --chip-shine: #ffffff;
  --xp-tier-text: #22005b;
  --xp-tier-stroke: rgba(255, 255, 255, 1);
}

.xp-tier-99 .xp-icon .chip-crown {
  display: block;
}

.xp-tier-99 .xp-chip-level {
  transform: translateY(5px);
  font-size: 0.98rem;
}

.xp-count {
  font-weight: 900;
  white-space: nowrap;
}

.xp-chip-level {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--xp-tier-text, #063626);
  font-family: Futura, "Futura PT", "Trebuchet MS", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-shadow:
    0 1px 0 var(--xp-tier-stroke, rgba(255, 255, 255, 0.95)),
    1px 0 0 var(--xp-tier-stroke, rgba(255, 255, 255, 0.82)),
    -1px 0 0 var(--xp-tier-stroke, rgba(255, 255, 255, 0.82)),
    0 -1px 0 var(--xp-tier-stroke, rgba(255, 255, 255, 0.82));
  pointer-events: none;
}

.xp-count {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  width: 7.6ch;
  flex: 0 0 7.6ch;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.xp-bar {
  position: relative;
  display: block;
  width: 82px;
  flex: 0 0 82px;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 24, 19, 0.12);
  box-shadow: inset 0 0 0 1px rgba(48, 38, 28, 0.08);
}

.xp-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--chip-mid, var(--accent-2)), var(--chip-light, #8fbf5d));
  transition: width 220ms ease;
}

.xp-slot-reward {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 244, 168, 0.18), rgba(19, 14, 10, 0) 46%);
  animation: xpSlotOverlay 1650ms ease-out forwards;
}

.coin-slot-reward {
  background: radial-gradient(circle at center, rgba(255, 207, 88, 0.24), rgba(19, 14, 10, 0) 48%);
}

.xp-slot-reward.jackpot {
  background:
    radial-gradient(circle at center, rgba(255, 244, 168, 0.32), rgba(19, 14, 10, 0) 52%),
    radial-gradient(circle at 50% 50%, rgba(69, 206, 122, 0.18), transparent 34%);
}

.xp-slot-machine {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 20px 20px;
  border: 3px solid #f6d56b;
  border-radius: 8px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #3e1513, #170d0b 62%, #0d0908);
  color: #fff9cf;
  text-align: center;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 0 8px rgba(246, 213, 107, 0.18);
  animation: xpSlotMachinePop 1650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.coin-slot-reward .xp-slot-machine {
  border-color: #ffd767;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #5f3711, #251306 62%, #100904);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.38),
    0 0 0 8px rgba(255, 215, 103, 0.2);
}

.xp-slot-reward.jackpot .xp-slot-machine {
  border-color: #fff2a5;
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    0 0 0 8px rgba(255, 242, 165, 0.22),
    0 0 44px rgba(255, 221, 69, 0.38);
}

.xp-slot-machine::before,
.xp-slot-machine::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 22px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f9d96a, #b86c16);
  box-shadow: inset 0 0 0 2px rgba(65, 25, 7, 0.34);
}

.xp-slot-machine::before {
  left: -17px;
  transform: translateY(-50%);
}

.xp-slot-machine::after {
  right: -17px;
  transform: translateY(-50%);
}

.xp-slot-lights {
  position: absolute;
  inset: 8px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 249, 207, 0.34);
  opacity: 0.9;
  animation: xpSlotLights 340ms steps(2, end) infinite;
}

.xp-slot-reels {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.xp-slot-reel {
  display: grid;
  height: 88px;
  overflow: hidden;
  border: 2px solid rgba(246, 213, 107, 0.86);
  border-radius: 6px;
  background: linear-gradient(180deg, #fffdf1, #f2e2b1);
  color: #143326;
  box-shadow: inset 0 10px 18px rgba(255, 255, 255, 0.76), inset 0 -10px 18px rgba(72, 40, 9, 0.12);
}

.coin-slot-reward .xp-slot-reel {
  color: #5b3108;
  background: linear-gradient(180deg, #fff9d8, #f1c653);
}

.xp-slot-reward.jackpot .xp-slot-reel {
  border-color: #fff2a5;
}

.xp-slot-reel span {
  display: grid;
  place-items: center;
  min-height: 88px;
  font-size: clamp(1.25rem, 7vw, 2.4rem);
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0;
  animation: xpSlotReelSpin 820ms cubic-bezier(0.18, 0.82, 0.2, 1) forwards;
}

.xp-slot-reel:nth-child(2) span {
  animation-duration: 940ms;
}

.xp-slot-reel:nth-child(3) span {
  animation-duration: 1060ms;
}

.xp-slot-machine strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff2a5;
  font-size: clamp(2rem, 11vw, 4.25rem);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow:
    0 3px 0 #6b250e,
    0 0 22px rgba(255, 221, 69, 0.6);
  animation: xpSlotPrize 1650ms ease-out forwards;
}

.coin-slot-reward .xp-slot-machine strong {
  color: #ffe484;
  text-shadow:
    0 3px 0 #6a3707,
    0 0 24px rgba(255, 215, 103, 0.66);
}

.xp-slot-reward.jackpot .xp-slot-machine strong {
  color: #ffffff;
  text-shadow:
    0 3px 0 #6b250e,
    0 0 18px rgba(255, 242, 165, 0.82),
    0 0 34px rgba(69, 206, 122, 0.42);
}

@keyframes xpSlotOverlay {
  0%,
  100% {
    opacity: 0;
  }
  12%,
  78% {
    opacity: 1;
  }
}

@keyframes xpSlotMachinePop {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.72);
  }
  14% {
    opacity: 1;
    transform: translateY(0) scale(1.08);
  }
  24%,
  74% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.92);
  }
}

@keyframes xpSlotReelSpin {
  0% {
    transform: translateY(-176px);
  }
  72%,
  100% {
    transform: translateY(-88px);
  }
}

@keyframes xpSlotPrize {
  0%,
  48% {
    transform: scale(0.8);
    opacity: 0;
  }
  62% {
    transform: scale(1.14);
    opacity: 1;
  }
  78%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes xpSlotLights {
  0% {
    box-shadow:
      0 -6px 0 #fff2a5,
      18px -6px 0 #45ce7a,
      36px -6px 0 #fff2a5,
      54px -6px 0 #45ce7a;
  }
  100% {
    box-shadow:
      0 -6px 0 #45ce7a,
      18px -6px 0 #fff2a5,
      36px -6px 0 #45ce7a,
      54px -6px 0 #fff2a5;
  }
}

.life-counter {
  min-width: 96px;
  padding-right: 14px;
}

.life-counter.admin {
  min-width: 138px;
}

.life-icons {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.life-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.life-counter.admin .life-icon {
  width: 62px;
  flex-basis: 62px;
}

.life-count {
  min-width: 2ch;
  font-weight: 800;
  font-size: 1.32rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.life-timer {
  min-width: 4ch;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.life-counter.empty .life-count {
  color: var(--muted);
}

.streak-fire-icon {
  display: block;
  width: 54px;
  height: 54px;
  max-width: 54px;
  max-height: 54px;
  flex: 0 0 auto;
  overflow: hidden;
}

.streak-fire-icon path {
  transform-box: fill-box;
  transform-origin: center;
}

.streak-count {
  min-width: 2ch;
  font-weight: 800;
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
}

.streak-calendar-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(48, 38, 28, 0.16);
  border-radius: 8px;
  background: rgba(245, 239, 229, 0.98);
  color: var(--ink);
  box-shadow: 0 22px 48px rgba(38, 25, 12, 0.22);
  backdrop-filter: blur(14px);
}

.streak-calendar-title {
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: capitalize;
}

.streak-calendar-weekdays,
.streak-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.streak-calendar-weekdays {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.streak-calendar-cell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-radius: 6px;
  background: rgba(255, 252, 244, 0.78);
  color: rgba(48, 38, 28, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.streak-calendar-cell.empty {
  visibility: hidden;
}

.streak-calendar-cell.played {
  border-color: rgba(214, 77, 32, 0.72);
  background: linear-gradient(135deg, #ff8a3d 0%, #d84024 54%, #7e1f17 100%);
  color: #fff8ec;
  box-shadow: inset 0 0 0 1px rgba(255, 236, 191, 0.34);
}

.streak-calendar-cell.today {
  outline: 2px solid rgba(245, 183, 72, 0.9);
  outline-offset: 1px;
}

.streak-calendar-footer {
  margin-top: 10px;
  color: #b94a22;
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

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

.top-controls {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
}

body.menu-open .language-switcher {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.menu-toggle,
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(48, 38, 28, 0.14);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.94);
  box-shadow: 0 14px 30px rgba(54, 36, 15, 0.14);
}

.menu-toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.menu-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fbf3e8;
  font-size: 1.45rem;
  line-height: 1;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(20, 16, 12, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

body.menu-open .sidebar-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .menu-toggle {
  opacity: 0;
  pointer-events: none;
}

.sidebar {
  position: fixed;
  inset: 12px auto 12px 20px;
  z-index: 60;
  width: min(352px, calc(100vw - 32px));
  padding: 18px 20px 12px;
  border-radius: 14px;
  background: #1f1c1a;
  color: #bdb8b4;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 10px;
  align-content: start;
  height: auto;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  transform: translateX(calc(-100% - 24px));
  transition: transform 180ms ease;
  box-shadow: 18px 18px 42px rgba(20, 16, 12, 0.28);
}

body.menu-open .sidebar {
  transform: translateX(0);
}

.sidebar-hero {
  display: grid;
  gap: 14px;
  padding: 0 4px 8px;
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: calc(100% - 48px);
  color: #fbf3e8;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.sidebar-brand-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.22));
}

.sidebar-hero h2 {
  max-width: 9ch;
  margin: 4px 0 0;
  color: #fff7ef;
  font-size: clamp(2.25rem, 8.2vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.07em;
}

.sidebar-hero p {
  margin: 0;
  color: rgba(251, 243, 232, 0.76);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.sidebar .site-brand {
  max-width: calc(100% - 48px);
  gap: 14px;
  margin-right: 48px;
}

.sidebar .site-brand-logo {
  width: 58px;
  height: 58px;
}

.sidebar .site-brand-name {
  font-size: 1.72rem;
}

.brand-block h1,
.panel-header h2,
.surface h3,
.sidebar h2 {
  margin: 0;
  line-height: 1.08;
}

.brand-block h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lede,
#spot-summary {
  color: rgba(251, 243, 232, 0.76);
  line-height: 1.55;
}

.eyebrow,
.card-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  color: var(--muted);
}

.sidebar .eyebrow,
.sidebar .card-label {
  color: rgba(251, 243, 232, 0.66);
}

.hover-translate {
  position: relative;
  display: inline-flex;
  cursor: help;
  text-decoration: underline dotted rgba(32, 25, 20, 0.38);
  text-underline-offset: 0.16em;
}

.hover-translate::after {
  content: attr(data-beginner-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: min(320px, 80vw);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(32, 25, 20, 0.96);
  color: #fbf3e8;
  box-shadow: 0 14px 28px rgba(32, 25, 20, 0.22);
  font-size: 0.84rem;
  line-height: 1.4;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  transition: opacity 140ms ease, transform 140ms ease;
}

.hover-translate::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%) translateY(6px);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: rgba(32, 25, 20, 0.96) transparent transparent;
  pointer-events: none;
  opacity: 0;
  z-index: 20;
  transition: opacity 140ms ease, transform 140ms ease;
}

.hover-translate:hover::after,
.hover-translate:hover::before,
.hover-translate:focus-visible::after,
.hover-translate:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sidebar .hover-translate {
  text-decoration-color: rgba(251, 243, 232, 0.45);
}

.tab-list {
  display: grid;
  gap: 19px;
  align-content: start;
  padding-top: 4px;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-section-label {
  margin: 0 10px 4px;
  color: #696561;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-section-account {
  align-self: end;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.language-switcher {
  position: relative;
  width: 56px;
  height: 42px;
  border: 1px solid rgba(48, 38, 28, 0.14);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.94);
  box-shadow: 0 14px 30px rgba(54, 36, 15, 0.14);
  cursor: pointer;
}

.language-switcher select {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.flag-display {
  position: absolute;
  inset: 8px 10px;
  display: none;
  pointer-events: none;
}

.flag-display svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(48, 38, 28, 0.14);
  overflow: hidden;
}

.language-switcher[data-language="en"] .flag-uk,
.language-switcher[data-language="es"] .flag-es {
  display: block;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(48, 38, 28, 0.14);
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.98);
  box-shadow: 0 14px 30px rgba(54, 36, 15, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.language-switcher.open .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-option {
  width: 44px;
  height: 32px;
  padding: 4px;
  border-radius: 8px;
  background: transparent;
}

.language-option:hover,
.language-option:focus-visible {
  background: rgba(217, 93, 57, 0.12);
}

.language-option svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  box-shadow: 0 0 0 1px rgba(48, 38, 28, 0.14);
  overflow: hidden;
}

.language-switcher:focus,
.language-switcher:focus-within {
  outline: 2px solid rgba(217, 93, 57, 0.78);
  outline-offset: 2px;
}

.tab-button,
.mode-button,
.primary-button,
.secondary-button,
.action-button,
.builder-option,
.saved-report-card,
.library-card,
.hand-select-button,
.hand-star-button,
.combo-cell {
  border-radius: 999px;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.tab-button {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  text-align: left;
  background: transparent;
  color: inherit;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.tab-button:hover,
.mode-button:hover,
.primary-button:hover,
.secondary-button:hover,
.action-button:hover,
.builder-option:hover,
.saved-report-card:hover,
.library-card:hover,
.hand-select-button:hover,
.hand-star-button:hover,
.combo-cell:hover {
  transform: translateY(-1px);
}

.tab-button.active {
  background: linear-gradient(135deg, rgba(217, 93, 57, 0.22), rgba(217, 93, 57, 0.1));
  color: #ff7229;
  box-shadow: none;
}

.mode-button.active,
.primary-button {
  background: linear-gradient(135deg, var(--accent), #ec8a40);
  color: white;
  box-shadow: 0 14px 30px rgba(217, 93, 57, 0.28);
}

.tab-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #8f8983;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tab-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-button.active .tab-icon {
  color: #ff7229;
}

.account-tab-button {
  min-height: 52px;
  padding-block: 10px;
}

.account-icon {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 999px;
  background: rgba(255, 114, 41, 0.16);
  color: #ff7229;
  padding: 4px;
}

.logout-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 0;
  padding: 10px 12px;
  border: 1px solid rgba(251, 243, 232, 0.2);
  color: rgba(251, 243, 232, 0.9);
  font-size: 0.9rem;
}

.logout-button:hover,
.logout-button:focus-visible {
  border-color: rgba(231, 71, 71, 0.72);
  background: #c93434;
  color: #fff;
  box-shadow: 0 14px 30px rgba(201, 52, 52, 0.26);
}

.logout-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  padding: 14px 22px;
  font-weight: 700;
}

.secondary-button,
.mode-button,
.action-button,
.builder-option,
.saved-report-card,
.library-card,
.hand-select-button,
.hand-star-button {
  padding: 11px 14px;
  background: rgba(32, 24, 19, 0.06);
  color: var(--ink);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.sidebar-card,
.surface,
.advanced-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 18px;
  color: #fbf3e8;
  background: rgba(255, 255, 255, 0.08);
}

.admin-xp-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: rgba(251, 243, 232, 0.78);
}

.admin-xp-field {
  color: rgba(251, 243, 232, 0.78);
}

.admin-xp-field input {
  border-color: rgba(251, 243, 232, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fbf3e8;
}

.admin-xp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.admin-xp-actions .secondary-button {
  color: #fbf3e8;
  background: rgba(255, 255, 255, 0.12);
}

.admin-xp-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: rgba(251, 243, 232, 0.74);
  font-size: 0.9rem;
}

.spot-table-visual {
  margin-top: 16px;
}

.focus-table-wrap {
  margin: 12px 0 14px;
}

.table-visual-shell {
  display: grid;
  gap: 12px;
}

.focus-hand-head {
  margin-bottom: 8px;
}

.focus-hand-head h3 {
  margin: 0;
}

.poker-table {
  position: relative;
  min-height: 380px;
  padding: 40px 24px 130px;
  margin: 0 12px;
  border: 1px solid rgba(246, 236, 220, 0.12);
  border-radius: 140px;
  background:
    radial-gradient(circle at 50% 45%, rgba(76, 148, 128, 0.24), rgba(22, 82, 70, 0.18) 28%, rgba(12, 51, 44, 0.92) 68%),
    linear-gradient(180deg, rgba(255, 248, 238, 0.05), rgba(255, 248, 238, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 251, 245, 0.08), 0 20px 44px rgba(14, 24, 22, 0.2);
}

.poker-table.table-skin-midnight {
  border-color: rgba(123, 184, 255, 0.2);
  background:
    radial-gradient(circle at 50% 45%, rgba(49, 98, 154, 0.35), rgba(21, 48, 94, 0.28) 30%, rgba(8, 18, 39, 0.95) 70%),
    linear-gradient(180deg, rgba(213, 231, 255, 0.08), rgba(213, 231, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(225, 239, 255, 0.12), 0 22px 48px rgba(8, 18, 39, 0.25);
}

.poker-table.table-skin-crimson {
  border-color: rgba(255, 171, 132, 0.24);
  background:
    radial-gradient(circle at 50% 45%, rgba(152, 50, 48, 0.34), rgba(103, 30, 34, 0.34) 30%, rgba(51, 17, 24, 0.95) 70%),
    linear-gradient(180deg, rgba(255, 226, 206, 0.08), rgba(255, 226, 206, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 239, 226, 0.12), 0 22px 48px rgba(51, 17, 24, 0.26);
}

.poker-table.table-skin-aurora {
  border: 4px solid #d6a323;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(218, 255, 242, 0.86) 0 9%, rgba(102, 232, 203, 0.58) 10% 18%, transparent 28%),
    radial-gradient(ellipse at 50% 46%, rgba(110, 88, 222, 0.92) 0 32%, rgba(61, 42, 166, 0.94) 48%, rgba(37, 20, 88, 0.98) 74%),
    conic-gradient(from 190deg at 50% 50%, rgba(248, 214, 109, 0.48), rgba(99, 237, 200, 0.26), rgba(155, 109, 255, 0.4), rgba(248, 214, 109, 0.48));
  box-shadow:
    inset 0 0 0 3px rgba(255, 229, 112, 0.28),
    inset 0 1px 0 rgba(255, 246, 210, 0.36),
    inset 0 0 58px rgba(111, 230, 207, 0.18),
    0 24px 58px rgba(34, 14, 70, 0.34),
    0 0 42px rgba(214, 163, 35, 0.42);
  animation: auroraTableGlow 5s ease-in-out infinite;
}

@keyframes auroraTableGlow {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 229, 112, 0.28),
      inset 0 1px 0 rgba(255, 246, 210, 0.36),
      inset 0 0 58px rgba(111, 230, 207, 0.18),
      0 24px 58px rgba(34, 14, 70, 0.34),
      0 0 42px rgba(214, 163, 35, 0.42);
  }

  50% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 229, 112, 0.36),
      inset 0 1px 0 rgba(255, 246, 210, 0.44),
      inset 0 0 70px rgba(111, 230, 207, 0.26),
      0 28px 66px rgba(34, 14, 70, 0.38),
      0 0 60px rgba(214, 163, 35, 0.58);
  }
}

.table-pot-display {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  display: grid;
  gap: 1px;
  min-width: 96px;
  padding: 7px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 33, 29, 0.82);
  color: rgba(251, 243, 232, 0.94);
  text-align: center;
  box-shadow: 0 14px 30px rgba(12, 18, 16, 0.22);
  z-index: 1;
}

.table-pot-display small {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 243, 232, 0.62);
}

.table-pot-display strong {
  font-size: 0.98rem;
  line-height: 1;
}

.table-pot-display span {
  font-size: 0.68rem;
  color: rgba(251, 243, 232, 0.74);
}

.table-action-display {
  position: absolute;
  top: 112px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: min(300px, calc(100% - 168px));
  z-index: 1;
  pointer-events: none;
}

.table-action-display span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 33, 29, 0.74);
  color: rgba(251, 243, 232, 0.84);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(12, 18, 16, 0.16);
}

.table-lesson-overlay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.table-lesson-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f7efe2;
  background: rgba(24, 29, 27, 0.7);
  border: 1px solid rgba(246, 236, 220, 0.14);
}

.table-lesson-pill.board {
  background: rgba(28, 80, 70, 0.8);
}

.table-lesson-pill.pot {
  background: rgba(56, 74, 122, 0.88);
}

.table-lesson-pill.fold {
  background: rgba(84, 74, 132, 0.88);
}

.table-lesson-pill.role {
  background: rgba(63, 54, 118, 0.88);
}

.table-lesson-pill.reason {
  background: rgba(78, 94, 34, 0.9);
}

.table-lesson-pill.warning {
  background: rgba(179, 60, 46, 0.9);
}

.table-lesson-pill.action {
  background: rgba(168, 107, 32, 0.88);
}

.table-lesson-pill.action.correct {
  background: rgba(47, 138, 89, 0.9);
}

.table-lesson-pill.action.wrong {
  background: rgba(179, 60, 46, 0.9);
}

.table-stage-markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.table-stage-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 999px;
  border: 1px solid rgba(246, 236, 220, 0.08);
}

.table-stage-ring.ring-a {
  width: calc(100% - 78px);
  height: calc(100% - 84px);
}

.table-stage-ring.ring-b {
  width: calc(100% - 132px);
  height: calc(100% - 132px);
  border-color: rgba(246, 236, 220, 0.05);
}

.poker-table::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(246, 236, 220, 0.08);
  border-radius: 130px;
  pointer-events: none;
}

.poker-table.lecture-table {
  border-color: rgba(36, 73, 62, 0.18);
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 62%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 50%, transparent 50%),
    linear-gradient(180deg, #215f51, #1b5347);
  background-size: auto, auto, 7px 7px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 251, 245, 0.05), 0 16px 34px rgba(30, 48, 43, 0.16);
}

.poker-table.lecture-table.table-skin-midnight {
  border-color: rgba(123, 184, 255, 0.2);
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 62%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 50%, transparent 50%),
    linear-gradient(180deg, #214d85, #10213e);
  background-size: auto, auto, 7px 7px, auto;
  box-shadow: inset 0 0 0 1px rgba(225, 239, 255, 0.08), 0 16px 34px rgba(8, 18, 39, 0.18);
}

.poker-table.lecture-table.table-skin-crimson {
  border-color: rgba(255, 171, 132, 0.24);
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 62%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 50%, transparent 50%),
    linear-gradient(180deg, #8e342e, #451820);
  background-size: auto, auto, 7px 7px, auto;
  box-shadow: inset 0 0 0 1px rgba(255, 239, 226, 0.08), 0 16px 34px rgba(51, 17, 24, 0.18);
}

.poker-table.lecture-table.table-skin-aurora {
  border: 4px solid #d6a323;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 62%, rgba(0, 0, 0, 0.09) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 50%, transparent 50%),
    radial-gradient(ellipse at 50% 42%, rgba(218, 255, 242, 0.78) 0 10%, rgba(102, 232, 203, 0.48) 11% 20%, transparent 30%),
    radial-gradient(ellipse at 50% 46%, rgba(110, 88, 222, 0.9) 0 34%, rgba(61, 42, 166, 0.94) 52%, rgba(37, 20, 88, 0.98) 78%),
    conic-gradient(from 190deg at 50% 50%, rgba(248, 214, 109, 0.48), rgba(99, 237, 200, 0.24), rgba(155, 109, 255, 0.4), rgba(248, 214, 109, 0.48));
  background-size: auto, auto, 7px 7px, auto, auto;
}

.poker-table.lecture-table .table-stage-ring,
.poker-table.lecture-table::after {
  display: none;
}

.poker-table.lecture-table .seat-utg {
  top: 18px;
}

.poker-table.lecture-table .seat-hj {
  top: 46px;
  right: 38px;
}

.poker-table.lecture-table .seat-co {
  right: 24px;
}

.poker-table.lecture-table .seat-btn {
  right: 46px;
  bottom: 56px;
}

.poker-table.lecture-table .seat-sb {
  left: 46px;
  bottom: 56px;
}

.poker-table.lecture-table .seat-bb {
  left: 24px;
}

.poker-table.lecture-table .table-hero-hand {
  bottom: -44px;
}

.table-seat {
  position: absolute;
  display: grid;
  gap: 3px;
  min-width: 82px;
  padding: 9px 11px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 29, 27, 0.82), rgba(15, 22, 21, 0.72));
  border: 1px solid rgba(246, 236, 220, 0.08);
  text-align: center;
  color: rgba(247, 239, 226, 0.72);
  backdrop-filter: blur(6px);
}

.table-seat.active {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff9f1;
}

.table-seat.inactive {
  background: linear-gradient(180deg, rgba(47, 38, 35, 0.72), rgba(30, 25, 24, 0.78));
  border-color: rgba(200, 181, 162, 0.12);
  color: rgba(232, 216, 199, 0.74);
}

.table-seat.active.role-hero {
  background: linear-gradient(135deg, rgba(25, 111, 95, 0.96), rgba(45, 149, 128, 0.92));
  box-shadow: 0 14px 28px rgba(14, 71, 60, 0.28);
}

.table-seat.active.role-villain {
  background: linear-gradient(135deg, rgba(128, 70, 38, 0.95), rgba(177, 108, 56, 0.92));
  box-shadow: 0 14px 28px rgba(82, 49, 26, 0.28);
}

.table-seat.focused {
  border-color: rgba(255, 222, 136, 0.88);
  box-shadow: 0 0 0 3px rgba(255, 222, 136, 0.14), 0 14px 28px rgba(112, 82, 27, 0.22);
}

.seat-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

.seat-name {
  font-size: 0.82rem;
  line-height: 1.2;
}

.seat-role {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.84;
}

.seat-hint {
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.seat-utg {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.seat-hj {
  top: 34px;
  right: 6%;
}

.seat-co {
  top: 50%;
  right: -4px;
  transform: translateY(-50%);
}

.seat-btn {
  bottom: 96px;
  right: 10%;
}

.seat-sb {
  bottom: 96px;
  left: 10%;
}

.seat-bb {
  top: 50%;
  left: -4px;
  transform: translateY(-50%);
}

.table-board {
  position: absolute;
  z-index: 2;
  top: 51%;
  left: 50%;
  width: min(320px, calc(100% - 150px));
  transform: translate(-50%, -50%);
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(9, 20, 18, 0.28), rgba(9, 20, 18, 0.16));
  border: 1px solid rgba(246, 236, 220, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 251, 245, 0.05);
}

.table-hero-hand {
  position: absolute;
  left: 50%;
  bottom: -16px;
  width: min(340px, calc(100% - 64px));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: stretch;
  text-align: left;
  padding: 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 18, 17, 0.96), rgba(18, 28, 25, 0.88));
  border: 1px solid rgba(246, 236, 220, 0.18);
  box-shadow: 0 -4px 20px rgba(8, 14, 13, 0.2), 0 16px 28px rgba(8, 14, 13, 0.4);
}

.table-board-label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 243, 232, 0.7);
}

.table-board-head,
.table-hero-head {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.table-board-state,
.table-hero-state {
  font-size: 0.78rem;
  color: rgba(251, 243, 232, 0.72);
}

.table-board-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.table-card {
  min-width: 36px;
  padding: 7px 8px 6px;
  border-radius: 12px;
  background: rgba(255, 251, 245, 0.96);
  color: var(--ink);
  display: grid;
  gap: 2px;
  justify-items: center;
  box-shadow: 0 8px 18px rgba(21, 16, 12, 0.18);
}

.table-card-slot {
  min-width: 42px;
  min-height: 56px;
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.08), rgba(255, 251, 245, 0.02));
  border: 1px dashed rgba(246, 236, 220, 0.18);
  box-shadow: none;
}

.table-card-slot.active-slot {
  border-color: rgba(255, 222, 136, 0.34);
}

.table-card.hero-card {
  box-shadow: 0 0 0 3px rgba(54, 164, 138, 0.28), 0 10px 22px rgba(21, 16, 12, 0.22);
  transform: translateY(-1px);
}

.table-card.highlighted-card {
  box-shadow: 0 0 0 2px rgba(255, 248, 220, 0.22), 0 8px 18px rgba(21, 16, 12, 0.18);
}

.table-card small {
  font-size: 0.7rem;
}

.table-card.suit-h,
.table-card.suit-h {
  color: #d62839;
}

.table-card.suit-d {
  color: #2563eb;
}

.table-card.suit-c {
  color: #1f8a4c;
}

.table-card.suit-s {
  color: #1d1d1d;
}

.table-board-empty,
.table-board-copy {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(251, 243, 232, 0.76);
}

.table-board-copy {
  color: rgba(251, 243, 232, 0.6);
}

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

.stat-list li,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stat-list strong {
  max-width: 150px;
  text-align: right;
  word-break: break-word;
}

.main-panel {
  padding: 20px;
  display: grid;
  gap: 20px;
}

.tab-panel {
  display: none;
  animation: fadeIn 180ms ease;
}

.tab-panel.active {
  display: grid;
  gap: 20px;
}

.panel-header,
.surface-head,
.matrix-header,
.button-row,
.aggregate-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.select-wrap,
label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.surface {
  padding: 22px;
}

.accent-surface {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 237, 226, 0.96)),
    linear-gradient(135deg, rgba(31, 108, 93, 0.08), transparent);
}

.start-grid,
.lectures-grid,
.practice-grid,
.review-grid,
.library-grid,
.store-grid,
.profile-grid {
  display: grid;
  gap: 18px;
}

.store-grid {
  grid-template-columns: repeat(auto-fill, minmax(184px, 184px));
  align-items: start;
}

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

.plan-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 251, 245, 0.82);
}

.premium-plan {
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(238, 247, 244, 0.94)),
    linear-gradient(135deg, rgba(31, 108, 93, 0.12), transparent);
}

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

.plan-card h4 {
  margin: 0;
  font-size: 1.45rem;
}

.plan-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.plan-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 108, 93, 0.1);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.premium-badge {
  background: rgba(217, 93, 57, 0.12);
  color: var(--accent);
}

.plan-offer {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #201914;
  color: #fbf3e8;
  box-shadow: 0 14px 28px rgba(32, 25, 20, 0.16);
}

.plan-offer span {
  color: rgba(251, 243, 232, 0.68);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.plan-offer strong {
  font-size: 1.12rem;
}

.plan-highlight {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(217, 93, 57, 0.16), rgba(242, 189, 74, 0.2));
  box-shadow: inset 0 0 0 1px rgba(217, 93, 57, 0.18);
}

.plan-highlight span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.plan-highlight strong {
  color: var(--ink);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.95;
}

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

.billing-option {
  position: relative;
  display: grid;
  min-height: 86px;
  gap: 5px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(48, 38, 28, 0.14);
  border-radius: 8px;
  background: rgba(255, 251, 245, 0.9);
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.billing-option.active {
  border-color: rgba(217, 93, 57, 0.5);
  background: linear-gradient(135deg, rgba(217, 93, 57, 0.14), rgba(242, 189, 74, 0.18));
}

.billing-option span,
.billing-option small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.billing-option small {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #201914;
  color: #fbf3e8;
  letter-spacing: 0;
}

.billing-option strong {
  font-size: 1.25rem;
}

.plan-price {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
}

.store-section {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.store-header {
  align-items: center;
}

.store-wallet-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
}

.store-coin-balance {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  min-width: 180px;
  padding: 9px 16px 9px 10px;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.96);
  box-shadow: 0 14px 30px rgba(54, 36, 15, 0.12);
}

.daily-reward-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  min-width: 180px;
  padding: 9px 14px 9px 10px;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-radius: 18px;
  background: rgba(255, 251, 245, 0.96);
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(54, 36, 15, 0.12);
}

.daily-reward-button.ready {
  border-color: rgba(244, 123, 43, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 229, 0.96)),
    radial-gradient(circle at top left, rgba(244, 123, 43, 0.14), transparent 52%);
}

.daily-reward-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.daily-reward-button span {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: left;
}

.daily-reward-button strong {
  font-size: 0.9rem;
  line-height: 1;
}

.daily-reward-button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.roulette-icon {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  filter: drop-shadow(0 8px 10px rgba(54, 36, 15, 0.16));
}

.coin-stack-icon {
  display: block;
  width: 82px;
  height: 62px;
  flex: 0 0 82px;
  filter: drop-shadow(0 9px 10px rgba(54, 36, 15, 0.18));
}

.store-coin-balance span {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.store-coin-balance strong {
  color: var(--ink);
  font-size: 1.7rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.store-item-card {
  display: grid;
  align-content: start;
  gap: 10px;
  width: 184px;
  min-height: 184px;
  aspect-ratio: 1;
  padding: 16px;
}

.store-table-card.epic {
  border-color: rgba(214, 163, 35, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 251, 245, 0.99), rgba(251, 241, 221, 0.96)),
    radial-gradient(circle at 20% 0%, rgba(214, 163, 35, 0.18), transparent 50%);
  box-shadow: 0 18px 42px rgba(99, 66, 17, 0.16);
}

.store-item-main {
  display: grid;
  gap: 8px;
}

.store-life-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(31, 108, 93, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 247, 241, 0.94)),
    radial-gradient(circle at top left, rgba(31, 108, 93, 0.13), transparent 54%);
}

.store-life-icon {
  display: block;
  width: 34px;
  height: 34px;
}

.store-life-pack-icon {
  position: relative;
  overflow: hidden;
}

.store-life-pack-icon .store-life-icon {
  position: absolute;
  width: 27px;
  height: 27px;
}

.store-life-pack-icon .store-life-icon:nth-child(1) {
  left: 7px;
  top: 19px;
}

.store-life-pack-icon .store-life-icon:nth-child(2) {
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
}

.store-life-pack-icon .store-life-icon:nth-child(3) {
  right: 7px;
  top: 19px;
}

.store-table-preview {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(48, 38, 28, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 18px rgba(54, 36, 15, 0.12);
}

.store-table-preview span {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.72);
}

.store-table-preview.table-skin-classic {
  border-color: #1f6c5d;
  background: radial-gradient(circle at 50% 45%, #4c9480, #0c332c 72%);
}

.store-table-preview.table-skin-midnight {
  border-color: #182c52;
  background: radial-gradient(circle at 50% 45%, #2f65a8, #10213e 72%);
}

.store-table-preview.table-skin-crimson {
  border-color: #6a251f;
  background: radial-gradient(circle at 50% 45%, #bd463d, #451820 72%);
}

.store-table-preview.table-skin-aurora {
  border-color: #d6a323;
  background:
    radial-gradient(circle at 50% 42%, rgba(99, 237, 200, 0.9), rgba(91, 75, 203, 0.86) 45%, rgba(48, 18, 91, 0.96) 74%),
    conic-gradient(from 190deg, #f8d66d, #63edc8, #9b6dff, #f8d66d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 20px rgba(79, 42, 144, 0.18), 0 0 18px rgba(214, 163, 35, 0.26);
}

.store-item-main h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.store-item-main p:last-child {
  display: none;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.store-item-action {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.store-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(214, 163, 35, 0.14);
  color: #79500a;
  font-weight: 800;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.store-item-action .primary-button {
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  font-size: 0.86rem;
}

.store-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.daily-reward-modal[hidden] {
  display: none;
}

.lives-empty-modal[hidden] {
  display: none;
}

.daily-reward-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
}

.daily-reward-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.58);
}

.lives-empty-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 18px;
}

.lives-empty-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.62);
  backdrop-filter: blur(4px);
}

.lives-empty-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 13px;
  width: min(560px, 100%);
  padding: 24px;
  border: 1px solid rgba(48, 38, 28, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(31, 108, 93, 0.13), transparent 38%),
    linear-gradient(135deg, rgba(255, 251, 245, 0.99), rgba(246, 235, 221, 0.98));
  box-shadow: 0 30px 90px rgba(20, 16, 12, 0.34);
}

.lives-empty-social {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.86rem;
}

.lives-empty-avatars {
  display: inline-flex;
  align-items: center;
}

.lives-empty-avatars span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: -6px;
  border: 2px solid rgba(255, 251, 245, 0.96);
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff8ed;
  font-size: 0.58rem;
  font-weight: 900;
}

.lives-empty-avatars span:first-child {
  margin-left: 0;
  background: #6f5cc2;
}

.lives-empty-avatars span:nth-child(2) {
  background: #1f6c5d;
}

.lives-empty-avatars span:nth-child(3) {
  background: #d95d39;
}

.lives-empty-avatars span:nth-child(4) {
  background: #8b5b3d;
}

.lives-empty-badge {
  width: fit-content;
  margin: 4px 0 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(217, 93, 57, 0.13);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.lives-empty-dialog h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.lives-empty-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.lives-empty-benefits {
  display: grid;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 0;
  list-style: none;
}

.lives-empty-benefits li {
  position: relative;
  padding-left: 30px;
  font-weight: 800;
}

.lives-empty-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 108, 93, 0.15);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.lives-empty-benefits li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid var(--accent-2);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lives-empty-primary {
  width: 100%;
  min-height: 46px;
}

.lives-empty-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.lives-empty-note::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 8px;
  margin-right: 6px;
  border: 2px solid var(--accent-deep);
  border-radius: 2px;
  box-shadow: 0 -5px 0 -2px var(--accent-deep);
}

.lives-empty-wait {
  width: fit-content;
  justify-self: center;
  padding: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.lives-empty-wait:hover,
.lives-empty-wait:focus-visible {
  color: var(--accent-deep);
}

.daily-reward-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.98), rgba(247, 238, 228, 0.98)),
    radial-gradient(circle at top left, rgba(244, 123, 43, 0.14), transparent 50%);
  box-shadow: 0 28px 80px rgba(20, 16, 12, 0.28);
}

.daily-reward-dialog h3 {
  margin: 0;
  font-size: 1.45rem;
}

.daily-review-exit-dialog {
  justify-items: stretch;
  text-align: left;
}

.daily-review-exit-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.daily-review-exit-actions {
  justify-content: flex-end;
}

.daily-reward-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(32, 24, 19, 0.08);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.streak-rescue-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 16, 12, 0.58);
}

.streak-rescue-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(20, 16, 12, 0.28);
}

.streak-rescue-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.streak-rescue-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.streak-rescue-card .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(32, 24, 19, 0.08);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.daily-fireworks {
  position: absolute;
  inset: -68px;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.daily-fireworks span {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--spark-size);
  height: var(--spark-size);
  border-radius: 999px;
  background: var(--firework-color);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42), 0 0 18px var(--firework-color), 0 0 32px var(--firework-color);
  opacity: 0;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(0.2);
}

.daily-fireworks.active span {
  animation: dailyFirework 1500ms cubic-bezier(0.05, 0.82, 0.16, 1) var(--delay) both;
}

.roulette-stage {
  position: relative;
  width: min(280px, 76vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.roulette-stage::before {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 208, 141, 0.26), transparent 62%);
  opacity: 0;
  pointer-events: none;
}

.daily-fireworks.active + .roulette-pointer + .reward-roulette-wheel,
.daily-fireworks.active ~ .roulette-center-button {
  filter: drop-shadow(0 0 22px rgba(244, 123, 43, 0.34));
}

.roulette-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  border-right: 13px solid transparent;
  border-left: 13px solid transparent;
  border-top: 26px solid #d95d39;
  filter: drop-shadow(0 4px 4px rgba(20, 16, 12, 0.24));
  transform: translateX(-50%);
}

.reward-roulette-wheel {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 10px solid #17120e;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #f8d08d 0 12%, #17120e 12.5% 17%, transparent 17.5%),
    conic-gradient(
      from -90deg,
      #f47b2b 0deg 45deg,
      #fbf6ed 45deg 90deg,
      #17120e 90deg 135deg,
      #f47b2b 135deg 180deg,
      #fbf6ed 180deg 225deg,
      #17120e 225deg 270deg,
      #f47b2b 270deg 315deg,
      #fbf6ed 315deg 360deg
    );
  box-shadow:
    inset 0 0 0 3px rgba(248, 208, 141, 0.95),
    0 18px 40px rgba(54, 36, 15, 0.22);
  transition: transform 4.2s cubic-bezier(0.12, 0.82, 0.15, 1);
}

.reward-roulette-wheel span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  margin: -10px 0 0 -21px;
  color: #17120e;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: rotate(var(--angle)) translateY(-95px) rotate(var(--angle-neg));
}

.reward-roulette-wheel span:nth-child(1),
.reward-roulette-wheel span:nth-child(4) {
  color: #fbf6ed;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
}

.roulette-center-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 8px solid #17120e;
  border-radius: 50%;
  background: #f8d08d;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 6px 14px rgba(20, 16, 12, 0.18);
  transform: translate(-50%, -50%);
}

.roulette-center-button:hover,
.roulette-center-button:focus-visible {
  background: #ffd98f;
  transform: translate(-50%, -50%) scale(1.04);
}

.roulette-center-button:disabled {
  cursor: not-allowed;
  opacity: 0.78;
  transform: translate(-50%, -50%);
}

.daily-reward-result {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.daily-reward-spin {
  width: min(220px, 100%);
}

@keyframes dailyFirework {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(0) scale(0.2);
  }
  12% {
    opacity: 1;
  }
  62% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateX(var(--distance)) scale(1.15);
  }
}

.onboarding-strip {
  display: grid;
  gap: 14px;
}

.lectures-roadmap,
.lecture-detail {
  display: grid;
  gap: 16px;
}

.lecture-level-group {
  border-radius: 22px;
}

.lecture-level-group + .lecture-level-group {
  margin-top: 12px;
}

.lecture-level-group[open] .lecture-level-banner {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.lecture-level-banner {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(92, 128, 43, 0.18);
  background:
    linear-gradient(135deg, rgba(244, 250, 236, 0.98), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top left, rgba(162, 196, 108, 0.18), transparent 58%);
  cursor: pointer;
  list-style: none;
}

.lecture-level-banner::-webkit-details-marker {
  display: none;
}

.lecture-level-banner::after {
  content: "+";
  justify-self: end;
  align-self: start;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
}

.lecture-level-group[open] .lecture-level-banner::after {
  content: "-";
}

.lecture-level-banner p,
.lecture-level-banner small,
.lecture-helper-note,
.lecture-card-summary,
.lecture-detail-copy p,
.lecture-outcome-list,
.lecture-progress-strip {
  color: var(--muted);
  line-height: 1.55;
}

.lecture-level-meta,
.lecture-progress-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.lecture-level-pill,
.lecture-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.lecture-level-pill {
  color: #527126;
  background: rgba(148, 189, 89, 0.2);
}

.lecture-list {
  display: grid;
  gap: 12px;
  padding: 12px 0 0;
}

.lecture-card {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-left: 3px solid rgba(148, 189, 89, 0.9);
  border-radius: 18px;
  background: var(--panel-strong);
  box-shadow: 0 14px 32px rgba(54, 36, 15, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.lecture-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(54, 36, 15, 0.12);
}

.lecture-card.active {
  border-color: rgba(92, 128, 43, 0.34);
  box-shadow: 0 20px 36px rgba(92, 128, 43, 0.16);
}

.lecture-card.locked {
  opacity: 0.6;
  pointer-events: none;
  filter: grayscale(100%);
}

.lecture-card-lock-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.lecture-progress-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.lesson-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 4px;
  appearance: none;
  background-color: rgba(32, 24, 19, 0.1);
}

.lesson-progress-bar::-webkit-progress-bar {
  background-color: rgba(32, 24, 19, 0.1);
  border-radius: 4px;
}

.lesson-progress-bar::-webkit-progress-value {
  background-color: #527126;
  border-radius: 4px;
}

.lecture-progress-text {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: right;
}

.lecture-card-index {
  padding-top: 2px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.lecture-card-body,
.lecture-card-head,
.lecture-detail-card,
.lecture-detail-copy,
.lecture-outcome-block {
  display: grid;
  gap: 10px;
}

.lecture-card-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.lecture-card-head strong,
.lecture-detail-copy h3 {
  font-size: 1.08rem;
  line-height: 1.28;
}

.lecture-card-summary {
  display: block;
  margin-top: 6px;
}

.lecture-card-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.lecture-card.active .lecture-card-arrow {
  color: #527126;
}

.lecture-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lecture-tag {
  color: #527126;
  background: rgba(148, 189, 89, 0.17);
}

.lecture-detail-card {
  min-height: 100%;
  position: relative;
}

.daily-review-card {
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(31, 108, 93, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(236, 246, 238, 0.92)),
    radial-gradient(circle at 92% 12%, rgba(217, 93, 57, 0.18), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(31, 108, 93, 0.14), transparent 34%);
  box-shadow: 0 22px 44px rgba(54, 36, 15, 0.12);
}

.daily-review-hero {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.daily-review-badge {
  padding: 7px 10px;
  border: 1px solid rgba(31, 108, 93, 0.18);
  border-radius: 999px;
  background: rgba(31, 108, 93, 0.1);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.daily-review-copy h3 {
  font-size: 2rem;
}

.daily-review-countdown-panel {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(217, 93, 57, 0.22);
  border-radius: 16px;
  background: rgba(255, 246, 235, 0.86);
}

.daily-review-countdown-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-review-countdown-panel strong {
  color: var(--ink);
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (max-width: 640px) {
  .daily-review-copy h3 {
    font-size: 1.55rem;
  }

  .daily-review-countdown-panel strong {
    font-size: 2rem;
  }
}

.daily-review-rewards .detail-card {
  border-color: rgba(31, 108, 93, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.daily-review-start-button {
  min-width: 220px;
}

.daily-review-active-card {
  padding-top: 58px;
}

.daily-review-exit-button {
  top: 14px;
  left: 14px;
}

.lecture-loading-card,
.lecture-loading-detail-card {
  position: relative;
  overflow: hidden;
}

.lecture-loading-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(92, 128, 43, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(246, 237, 226, 0.92)),
    radial-gradient(circle at top left, rgba(148, 189, 89, 0.14), transparent 52%);
  box-shadow: 0 16px 34px rgba(54, 36, 15, 0.08);
}

.lecture-loading-card::after,
.lecture-loading-detail-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  animation: lectureShimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}

.lecture-loading-header,
.lecture-loading-copy,
.lecture-loading-body,
.lecture-loading-progress,
.lecture-loading-points {
  display: grid;
  gap: 10px;
}

.lecture-loading-header {
  gap: 14px;
}

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

.lecture-loading-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(48, 38, 28, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.lecture-loading-item.active {
  border-left: 3px solid rgba(148, 189, 89, 0.9);
  box-shadow: 0 12px 28px rgba(92, 128, 43, 0.08);
}

.lecture-loading-index {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 999px;
}

.lecture-loading-tags,
.lecture-loading-detail-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lecture-loading-footnote,
.lecture-loading-progress-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.lecture-loading-detail-card {
  padding: 22px;
  border: 1px solid rgba(92, 128, 43, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 236, 226, 0.94)),
    radial-gradient(circle at top right, rgba(217, 93, 57, 0.08), transparent 36%);
}

.lecture-skeleton {
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(148, 189, 89, 0.14), rgba(255, 255, 255, 0.72), rgba(217, 93, 57, 0.12));
  background-size: 220% 100%;
  animation: lecturePulse 1.8s ease-in-out infinite;
}

.lecture-skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.lecture-skeleton-title {
  width: min(220px, 72%);
  height: 16px;
}

.lecture-skeleton-copy {
  width: min(320px, 88%);
}

.lecture-skeleton-copy-short {
  width: min(240px, 66%);
}

.lecture-skeleton-item-title {
  width: min(170px, 62%);
}

.lecture-skeleton-chip,
.lecture-skeleton-pill {
  height: 28px;
}

.lecture-skeleton-chip {
  width: 92px;
}

.lecture-skeleton-chip-short {
  width: 70px;
}

.lecture-skeleton-pill {
  width: 96px;
}

.lecture-skeleton-pill-wide {
  width: 136px;
}

.lecture-skeleton-pill-short {
  width: 74px;
}

.lecture-skeleton-progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
}

.lecture-detail-copy small,
.lecture-outcome-block small {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: rgba(32, 25, 20, 0.58);
}

.lecture-detail-copy h3,
.lecture-detail-copy p,
.lecture-helper-note,
.lecture-outcome-list {
  margin: 0;
}

.lecture-outcome-list {
  padding-left: 20px;
}

.lecture-detail-actions {
  margin-top: 4px;
}

.lecture-visual-block {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.lecture-question-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.lecture-hand-head {
  margin-top: 0;
}

.lecture-spot-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148, 189, 89, 0.17);
  color: #527126;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lecture-hint-row {
  margin-top: -2px;
}

@media (max-width: 720px) {
  .poker-table {
    min-height: 460px;
    padding: 28px 16px 148px;
    margin: 0;
    border-radius: 34px;
  }

  .table-lesson-overlay {
    gap: 6px;
  }

  .table-lesson-pill {
    font-size: 0.66rem;
    padding: 7px 10px;
  }

  .table-seat {
    min-width: 66px;
    max-width: 86px;
    padding: 8px 8px;
  }

  .seat-name {
    font-size: 0.74rem;
  }

  .seat-utg {
    top: 16px;
  }

  .poker-table.lecture-table .seat-utg {
    top: 18px;
  }

  .seat-hj {
    top: 44px;
    right: 4%;
  }

  .poker-table.lecture-table .seat-hj {
    top: 52px;
    right: 14px;
  }

  .seat-co {
    top: 50%;
    right: -2px;
    transform: translateY(-50%);
  }

  .poker-table.lecture-table .seat-co {
    right: 12px;
  }

  .seat-bb {
    top: 50%;
    left: -2px;
    transform: translateY(-50%);
  }

  .poker-table.lecture-table .seat-bb {
    left: 12px;
  }

  .seat-btn {
    bottom: 116px;
    right: 8%;
  }

  .poker-table.lecture-table .seat-btn {
    right: 18px;
    bottom: 86px;
  }

  .seat-sb {
    bottom: 116px;
    left: 8%;
  }

  .poker-table.lecture-table .seat-sb {
    left: 18px;
    bottom: 86px;
  }

  .poker-table.lecture-table .table-hero-hand {
    bottom: -36px;
  }

  .table-board {
    top: 50%;
    width: calc(100% - 120px);
    padding: 14px 12px;
  }

  .table-board-head,
  .table-hero-head {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
  }

  .table-board-state,
  .table-hero-state {
    font-size: 0.72rem;
  }

  .table-hero-hand {
    bottom: -8px;
    width: calc(100% - 44px);
    padding: 12px 14px;
    text-align: center;
    justify-items: center;
  }
}

.lecture-coach-grid {
  margin-top: 8px;
}

.lecture-outs-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lecture-outs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lecture-answer-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.lecture-answer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
}

.lecture-answer-pill.correct,
.lecture-answer-pill.low {
  background: rgba(47, 138, 89, 0.12);
  border-color: rgba(47, 138, 89, 0.24);
}

.lecture-answer-pill.wrong,
.lecture-answer-pill.high,
.lecture-answer-pill.warning {
  background: rgba(179, 60, 46, 0.12);
  border-color: rgba(179, 60, 46, 0.24);
}

.lecture-answer-pill.best,
.lecture-answer-pill.neutral {
  background: rgba(31, 108, 93, 0.08);
  border-color: rgba(31, 108, 93, 0.16);
}

.lecture-numeric-answer-block {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.lecture-numeric-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lecture-numeric-label {
  font-weight: 700;
  color: var(--ink);
}

.lecture-clue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(31, 108, 93, 0.18);
  background: rgba(31, 108, 93, 0.08);
  color: var(--accent-2);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: help;
}

.lecture-numeric-answer-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.lecture-numeric-input-wrap {
  position: relative;
  min-width: 180px;
  flex: 1 1 180px;
}

.lecture-numeric-input-wrap input {
  width: 100%;
  padding-right: 42px;
}

.lecture-numeric-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 700;
  pointer-events: none;
}

.lecture-round-summary {
  margin-top: 10px;
}

.lecture-builder-card {
  gap: 14px;
  padding-top: 52px;
}

.lecture-builder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lecture-builder-back-button {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(48, 38, 28, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(54, 36, 15, 0.08);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.lecture-builder-back-button:hover {
  transform: translateY(-1px);
  border-color: rgba(92, 128, 43, 0.34);
  box-shadow: 0 14px 28px rgba(54, 36, 15, 0.12);
}

.lecture-builder-back-button:focus-visible {
  outline: 2px solid rgba(92, 128, 43, 0.5);
  outline-offset: 2px;
}

.lecture-builder-grid {
  margin-top: 4px;
}

.onboarding-card,
.detail-card,
.drill-card,
.trainer-card,
.builder-card,
.aggregate-summary-card,
.saved-report-card,
.library-detail,
.step-card,
.hand-card,
.action-log,
.priority-card,
.recommendation-card,
.metric-card,
.profile-hero-card,
.interaction-card,
.chart-card {
  padding: 16px;
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.onboarding-card small,
.step-card small,
.priority-card small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-dismiss {
  justify-self: start;
}

.hidden {
  display: none;
}

.focus-card,
.recommendation-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.study-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.lab-rules-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 700;
}

.lab-rules-note span {
  padding: 8px 10px;
  border: 1px solid rgba(31, 108, 93, 0.14);
  border-radius: 999px;
  background: rgba(31, 108, 93, 0.08);
}

.focus-copy,
.detail-card p,
.step-card p,
.priority-card p,
.recommendation-card p,
.subtle-note,
.aggregate-summary-card p,
.profile-hero-card p,
.interaction-card p,
.chart-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.focus-chip-row,
.pill-row,
.trainer-actions,
.builder-actions,
.saved-report-list,
.detail-stack,
.drill-list,
.hand-list,
.replayer-actions,
.library-spot-list,
.step-strip,
.interaction-list {
  display: grid;
  gap: 14px;
}

.focus-chip-row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.focus-chip,
.pill {
  padding: 10px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.focus-chip {
  background: rgba(31, 108, 93, 0.08);
  border: 1px solid rgba(31, 108, 93, 0.08);
}

.pill {
  background: rgba(31, 108, 93, 0.1);
  color: var(--accent-2);
}

.status-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2bd4a, var(--accent));
  box-shadow: 0 0 0 8px rgba(242, 189, 74, 0.16);
}

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

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.08rem;
}

.compact-metrics {
  margin-top: 18px;
}

.advanced-panel {
  overflow: hidden;
}

.advanced-panel summary {
  padding: 16px 20px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.advanced-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-panel summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.advanced-panel[open] summary::after {
  content: "-";
}

.advanced-panel-body {
  padding: 0 20px 20px;
  display: grid;
  gap: 18px;
}

.inline-panel {
  margin-top: 18px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 93, 57, 0.14);
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
}

.input-icon-wrap input {
  padding-left: 42px;
}

textarea {
  resize: vertical;
}

.form-grid,
.review-filter-grid,
.aggregate-card-grid,
.builder-grid {
  display: grid;
  gap: 14px;
}

.review-filter-grid {
  margin-top: 18px;
}

.checkbox-label {
  align-content: center;
}

.checkbox-label input {
  width: auto;
}

.mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.range-matrix {
  display: grid;
  grid-template-columns: repeat(13, minmax(34px, 1fr));
  gap: 6px;
}

.combo-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 4px;
  color: white;
  font-size: 0.72rem;
  font-family: "Consolas", "Lucida Console", monospace;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
}

.combo-cell.selected {
  outline: 3px solid rgba(32, 24, 19, 0.32);
  transform: scale(1.02);
}

.range-replay-card {
  gap: 18px;
}

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

.range-replay-step {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.range-replay-step.active {
  border-color: rgba(31, 108, 93, 0.36);
  background: rgba(31, 108, 93, 0.1);
}

.range-replay-step span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.range-role-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.range-replay-grid-wrap {
  overflow-x: auto;
}

.range-replay-grid {
  display: grid;
  grid-template-columns: repeat(13, minmax(42px, 1fr));
  gap: 5px;
  min-width: 620px;
}

.range-replay-cell {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.range-replay-cell.role-value {
  background: #1f6c5d;
  color: #fff;
}

.range-replay-cell.role-medium {
  background: #d7a642;
  color: #241a10;
}

.range-replay-cell.role-bluff {
  background: #7b5ea7;
  color: #fff;
}

.range-replay-cell.role-call {
  background: #3f7da7;
  color: #fff;
}

.range-replay-cell.role-fold {
  background: #6f6a64;
  color: #fff;
}

.range-replay-cell.correct {
  outline: 2px solid var(--success);
}

.range-replay-cell.incorrect {
  outline: 2px solid var(--danger);
}

.range-replay-cell.missed {
  box-shadow: inset 0 0 0 2px rgba(232, 154, 47, 0.72);
}

.aggregate-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

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

.aggregate-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

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

.aggregate-head,
.aggregate-label,
.builder-card h4,
.library-card strong {
  font-weight: 700;
}

.library-card {
  display: grid;
  gap: 6px;
  text-align: left;
}

.library-card.active {
  border-color: rgba(31, 108, 93, 0.34);
  box-shadow: 0 12px 28px rgba(31, 108, 93, 0.1);
  background: rgba(31, 108, 93, 0.1);
}

.library-card-meta,
.json-preview,
.action-log small,
.hand-card small,
.drill-card small,
.aggregate-summary-card small {
  color: var(--muted);
}

.json-preview {
  margin: 0;
  max-height: 520px;
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(27, 22, 18, 0.94);
  color: #f8f0e5;
  line-height: 1.55;
}

.profile-overview {
  display: grid;
  gap: 14px;
}

.profile-hero-card {
  background:
    linear-gradient(135deg, rgba(31, 108, 93, 0.14), rgba(217, 93, 57, 0.12)),
    var(--panel-strong);
}

.profile-skeleton-card {
  position: relative;
  overflow: hidden;
}

.profile-skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.48), transparent);
  animation: lectureShimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}

.profile-skeleton-card.compact {
  display: grid;
  gap: 12px;
}

.profile-skeleton {
  display: block;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(31, 108, 93, 0.12), rgba(255, 255, 255, 0.75), rgba(217, 93, 57, 0.12));
  background-size: 220% 100%;
  animation: lecturePulse 1.8s ease-in-out infinite;
}

.profile-skeleton-kicker {
  width: 92px;
  height: 10px;
}

.profile-skeleton-title {
  width: min(260px, 70%);
  height: 24px;
  margin-top: 12px;
}

.profile-skeleton-title-small {
  width: min(190px, 66%);
  height: 15px;
}

.profile-skeleton-label {
  width: 118px;
  height: 11px;
}

.profile-skeleton-value {
  width: 82px;
  height: 24px;
}

.profile-skeleton-line {
  width: min(280px, 72%);
  height: 12px;
  margin-top: 10px;
}

.profile-skeleton-wide {
  width: min(360px, 90%);
}

.profile-skeleton-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.profile-skeleton-chip {
  width: 106px;
  height: 28px;
}

.profile-skeleton-chip-short {
  width: 76px;
}

.profile-chart-skeleton {
  min-height: 204px;
}

.profile-skeleton-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 142px;
  padding-top: 18px;
}

.profile-skeleton-bars span {
  display: block;
  flex: 1;
  min-width: 14px;
  height: var(--bar-height);
  border-radius: 10px 10px 4px 4px;
  background:
    linear-gradient(180deg, rgba(31, 108, 93, 0.24), rgba(217, 93, 57, 0.16));
  animation: lecturePulse 1.8s ease-in-out infinite;
}

.profile-hero-card h3,
.interaction-card strong,
.chart-card strong {
  margin: 8px 0 0;
}

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

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

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

.severity-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.severity-high {
  background: rgba(217, 93, 57, 0.16);
  color: var(--accent);
}

.severity-medium {
  background: rgba(242, 189, 74, 0.16);
  color: #926400;
}

.severity-low {
  background: rgba(31, 108, 93, 0.14);
  color: var(--accent-2);
}

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

.chart-card {
  display: grid;
  gap: 12px;
}

.stacked-bar {
  display: flex;
  min-height: 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 24, 19, 0.08);
}

.stacked-bar-segment.aggressive {
  background: linear-gradient(135deg, var(--accent), #ec8a40);
}

.stacked-bar-segment.passive {
  background: linear-gradient(135deg, var(--accent-2), #4f998c);
}

.stacked-bar-segment.neutral {
  background: rgba(32, 24, 19, 0.18);
}

.profile-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.profile-chart rect {
  fill: rgba(217, 93, 57, 0.82);
}

.profile-chart text {
  fill: var(--muted);
  font-size: 10px;
}

.line-chart path {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart circle {
  fill: var(--accent);
}

.trainer-card {
  margin-top: 18px;
  background:
    linear-gradient(135deg, rgba(31, 108, 93, 0.12), rgba(217, 93, 57, 0.12)),
    var(--panel-strong);
}

.trainer-empty {
  margin: 0;
}

.action-button {
  text-align: left;
}

.study-answer-button {
  min-height: 76px;
}

.lecture-detail-card {
  position: relative;
}

.lecture-drill-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.lecture-drill-cheat-button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(31, 108, 93, 0.18);
  background: rgba(255, 248, 240, 0.92);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(32, 24, 19, 0.08);
}

.lecture-drill-cheat-button.active {
  border-color: rgba(47, 138, 89, 0.34);
  background: rgba(47, 138, 89, 0.12);
}

.lecture-drill-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lecture-drill-option-revealed {
  box-shadow: inset 0 0 0 1px rgba(47, 138, 89, 0.14);
}

.lecture-drill-option-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(47, 138, 89, 0.16);
  color: var(--success);
  font-weight: 700;
}

.action-button.correct,
.builder-option.correct {
  background: rgba(47, 138, 89, 0.16);
}

.builder-option.missed {
  background: rgba(201, 136, 39, 0.18);
  border: 1px solid rgba(201, 136, 39, 0.36);
  box-shadow: inset 0 0 0 1px rgba(201, 136, 39, 0.12);
}

.action-button.incorrect,
.builder-option.incorrect {
  background: rgba(179, 60, 46, 0.16);
}

.study-feedback {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.study-feedback.correct {
  background: rgba(47, 138, 89, 0.1);
  border-color: rgba(47, 138, 89, 0.18);
}

.study-feedback.incorrect {
  background: rgba(179, 60, 46, 0.08);
  border-color: rgba(179, 60, 46, 0.18);
}

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

.study-coach {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(245, 236, 210, 0.72), rgba(250, 246, 235, 0.94));
}

.study-coach.correct {
  border-color: rgba(47, 138, 89, 0.18);
}

.study-coach.incorrect {
  border-color: rgba(179, 60, 46, 0.18);
}

.study-coach small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-coach strong {
  display: block;
  margin-top: 6px;
}

.study-coach p {
  margin: 8px 0 0;
  color: var(--text);
  line-height: 1.6;
}

.builder-card.selected {
  border-color: rgba(31, 108, 93, 0.3);
  background: linear-gradient(135deg, rgba(31, 108, 93, 0.08), rgba(255, 255, 255, 0.92));
}

.builder-card.missed {
  border-color: rgba(201, 136, 39, 0.42);
  background: linear-gradient(135deg, rgba(201, 136, 39, 0.14), rgba(255, 248, 235, 0.96));
}

.builder-card.incorrect {
  border-color: rgba(179, 60, 46, 0.3);
  background: linear-gradient(135deg, rgba(179, 60, 46, 0.08), rgba(255, 255, 255, 0.92));
}

.builder-actions {
  display: flex;
  flex-wrap: wrap;
}

.builder-option.active {
  background: rgba(31, 108, 93, 0.14);
  border: 1px solid rgba(31, 108, 93, 0.2);
}

.priority-card h3,
.aggregate-summary-card h4,
.builder-card h4 {
  margin: 8px 0 0;
}

.hand-card {
  text-align: left;
}

.hand-card.unmatched {
  border-style: dashed;
}

.hand-card.active {
  border-color: rgba(31, 108, 93, 0.26);
}

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

.hand-card-value {
  display: block;
  margin-top: 12px;
}

.match-pill[data-status="matched"] {
  background: rgba(31, 108, 93, 0.14);
}

.match-pill[data-status="unmatched"] {
  background: rgba(217, 93, 57, 0.12);
}

.board-banner {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(32, 24, 19, 0.9), rgba(31, 108, 93, 0.88));
  color: #fff7eb;
}

.replayer-meta {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.replayer-street {
  display: grid;
  gap: 10px;
}

.replayer-street-title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-log.current,
.hand-star-button.active {
  background: rgba(217, 93, 57, 0.08);
  border: 1px solid rgba(217, 93, 57, 0.24);
}

.action-log.hero-action {
  background: rgba(31, 108, 93, 0.08);
  border: 1px solid rgba(31, 108, 93, 0.2);
}

.action-log.hero-focus {
  box-shadow: 0 0 0 2px rgba(217, 93, 57, 0.14);
}

.step-strip {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step-card.ready {
  border-color: rgba(31, 108, 93, 0.2);
}

.step-card.live {
  border-color: rgba(217, 93, 57, 0.24);
}

.step-card.pending {
  border-style: dashed;
}

.empty-card {
  color: var(--muted);
  border-style: dashed;
}

.no-lives-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(179, 60, 46, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 238, 228, 0.94)),
    radial-gradient(circle at top left, rgba(179, 60, 46, 0.12), transparent 46%);
  box-shadow: 0 14px 32px rgba(54, 36, 15, 0.1);
}

.no-lives-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(48, 38, 28, 0.08);
  border-radius: 16px;
  background: rgba(48, 38, 28, 0.07);
}

.no-lives-icon {
  display: block;
  width: 34px;
  height: 34px;
}

.no-lives-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.no-lives-copy strong {
  color: var(--ink);
  font-size: 1rem;
}

.no-lives-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.no-lives-timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5ch;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(179, 60, 46, 0.12);
  color: var(--bad);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

body[data-analyze-density="compact"] .hand-card,
body[data-analyze-density="compact"] .action-log {
  padding: 12px;
}

body[data-analyze-density="large"] .hand-card,
body[data-analyze-density="large"] .action-log,
body[data-analyze-density="large"] .drill-card {
  padding: 20px;
}

.compact-gap {
  margin-top: 14px;
}

.compact-row {
  margin-top: 18px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lecturePulse {
  0%,
  100% {
    opacity: 0.62;
    background-position: 0% 50%;
  }
  50% {
    opacity: 1;
    background-position: 100% 50%;
  }
}

@keyframes lectureShimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (min-width: 960px) {
  .start-grid,
  .lectures-grid,
  .practice-grid,
  .review-grid,
  .library-grid,
  .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .review-filter-grid,
  .form-grid,
  .builder-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 959px) {
  .aggregate-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .top-status {
    top: 10px;
    right: 10px;
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  .life-counter,
  .xp-counter,
  .streak-counter {
    min-height: 52px;
    padding: 6px 12px 6px 8px;
  }

  .xp-counter {
    width: 184px;
    flex-basis: 184px;
    gap: 5px;
  }

  .xp-icon-wrap {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .xp-icon {
    width: 42px;
    height: 42px;
  }

  .xp-bar {
    width: 46px;
    flex-basis: 46px;
  }

  .xp-count {
    font-size: 0.72rem;
    width: 7.6ch;
    flex-basis: 7.6ch;
  }

  .xp-chip-level {
    font-size: 0.9rem;
  }

  .life-counter {
    min-width: 86px;
  }

  .life-icon {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .streak-fire-icon {
    width: 40px;
    height: 40px;
    max-width: 40px;
    max-height: 40px;
    flex-basis: 40px;
  }

  .streak-count {
    font-size: 1.32rem;
  }

  .main-panel,
  .sidebar {
    padding: 16px;
  }

  .button-row,
  .panel-header,
  .surface-head,
  .matrix-header,
  .aggregate-controls,
  .row-between {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .focus-chip-row,
  .step-strip,
  .aggregate-card-grid,
  .range-matrix,
  .review-filter-grid,
  .form-grid,
  .builder-grid,
  .lectures-grid,
  .store-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .store-coin-balance {
    width: 100%;
  }

  .store-wallet-row,
  .daily-reward-button {
    width: 100%;
  }

  .store-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 160px));
  }

  .store-item-card {
    width: 160px;
    min-height: 160px;
    padding: 14px;
  }

  .range-matrix {
    display: flex;
    flex-wrap: wrap;
  }

  .combo-cell {
    width: 52px;
    height: 52px;
  }

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

  .lecture-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 16px;
  }
}

/* ── Ranking drill ── */

.poker-mini-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 8px 6px;
  border-radius: 12px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(21, 16, 12, 0.1);
}

.poker-card-suit-h {
  color: #d62839;
}

.poker-card-suit-d {
  color: #2563eb;
}

.poker-card-suit-c {
  color: #1f8a4c;
}

.poker-card-suit-s {
  color: #1d1d1d;
}

.ranking-board-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ranking-hands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 16px 0;
}

.ranking-hand-block {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px 20px;
  border-radius: 20px;
  border: 2px solid var(--line);
  background: var(--panel-strong);
  min-width: 120px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ranking-hand-block small {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  color: var(--muted);
}

.ranking-cards {
  display: flex;
  gap: 6px;
}

.ranking-hand-label {
  font-weight: 600;
  font-size: 0.92rem;
}

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

.ranking-winner {
  border-color: var(--good);
  box-shadow: 0 0 0 3px rgba(47, 138, 89, 0.18), 0 10px 24px rgba(47, 138, 89, 0.14);
}

.ranking-tie {
  border-color: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18), 0 10px 24px rgba(201, 162, 39, 0.14);
}

.ranking-vs {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ranking-actions {
  justify-content: center;
}

.ranking-feedback {
  padding: 16px;
  border-radius: 18px;
  margin: 8px 0;
}

.ranking-feedback strong {
  display: block;
  margin-bottom: 6px;
}

.ranking-feedback p {
  margin: 0;
  line-height: 1.55;
}

.ranking-correct {
  background: rgba(47, 138, 89, 0.1);
  border: 1px solid rgba(47, 138, 89, 0.22);
  color: #1a6b3a;
}

.ranking-wrong {
  background: rgba(179, 60, 46, 0.08);
  border: 1px solid rgba(179, 60, 46, 0.2);
  color: #8a2318;
}

/* Landing page */

.landing-page {
  padding: 0 24px 40px;
  background:
    linear-gradient(90deg, rgba(217, 93, 57, 0.1), transparent 30%),
    linear-gradient(180deg, #f8f1e7 0%, #efe5d7 58%, #e7dccb 100%);
}

.landing-page :focus-visible {
  outline: 3px solid rgba(217, 93, 57, 0.38);
  outline-offset: 3px;
}

.landing-shell {
  width: min(1320px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.landing-header,
.landing-hero,
.landing-auth-shell,
.landing-auth-card,
.landing-guest-card,
.landing-system-band,
.landing-footer,
.landing-photo-card,
.landing-segment-panel {
  border-radius: 8px;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 14px;
  background: rgba(248, 241, 231, 0.88);
  border-bottom: 1px solid rgba(48, 38, 28, 0.08);
  backdrop-filter: blur(16px);
}

.landing-header .site-brand {
  gap: 14px;
}

.landing-header .site-brand-logo {
  width: 58px;
  height: 58px;
}

.landing-header .site-brand-name {
  font-size: 1.76rem;
}

.landing-language-switcher {
  flex: 0 0 auto;
}

.landing-header .language-options {
  left: auto;
  right: 0;
  z-index: 20;
}

.landing-nav,
.landing-header-actions,
.landing-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-nav {
  flex-wrap: wrap;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid rgba(48, 38, 28, 0.08);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.52);
}

.landing-nav a,
.landing-footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 750;
  transition: color 140ms ease, transform 140ms ease;
}

.landing-nav a:hover,
.landing-footer-link:hover,
.landing-nav a:focus-visible,
.landing-footer-link:focus-visible {
  color: var(--accent);
}

.landing-header-button,
.landing-hero-button,
.landing-submit,
.landing-guest-button {
  min-height: 48px;
}

.landing-main {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.landing-hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: grid;
  gap: 34px;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(246, 238, 226, 0.9)),
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(241, 231, 216, 0.9));
  border: 1px solid rgba(48, 38, 28, 0.12);
  box-shadow: 0 30px 70px rgba(54, 36, 15, 0.14);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(255, 251, 245, 0.08) 49% 50%, transparent 50%),
    repeating-linear-gradient(0deg, rgba(32, 25, 20, 0.025) 0 1px, transparent 1px 7px);
  opacity: 0.7;
}

.landing-copy,
.landing-side,
.landing-brand-block,
.landing-auth-copy,
.landing-auth-card,
.landing-form,
.landing-system-item,
.landing-footer-brand,
.landing-footer-links,
.landing-photo-card,
.landing-segment-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  align-content: start;
}

.landing-copy,
.landing-side {
  position: relative;
  z-index: 1;
}

.landing-brand-block {
  gap: 12px;
  padding-top: 10px;
}

.landing-brand-block h1,
.landing-auth-copy h2,
.landing-guest-card h3,
.landing-system-item h2,
.landing-footer-brand h2,
.landing-segment-panel h2,
.landing-faq-head h2,
.landing-faq-item h3 {
  margin: 0;
  line-height: 1.05;
}

.landing-brand-block h1 {
  max-width: 12.5ch;
  font-size: 3.85rem;
  font-weight: 900;
  letter-spacing: 0;
}

.landing-hero-subhead,
.landing-intro,
.landing-guest-card p,
.landing-system-item p,
.landing-footer-brand p,
.landing-segment-copy,
.landing-faq-intro,
.landing-faq-item p {
  margin: 0;
  line-height: 1.55;
}

.landing-hero-subhead {
  max-width: 31ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.landing-photo-card {
  margin: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(48, 38, 28, 0.14);
  background: #fffaf3;
  box-shadow: none;
}

.landing-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.landing-photo-card figcaption {
  padding: 11px 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.landing-trust-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 16px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(217, 93, 57, 0.24);
  background: rgba(255, 247, 238, 0.88);
  box-shadow: none;
}

.landing-trust-kicker {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.landing-trust-line strong {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.landing-result-card strong {
  grid-row: span 2;
  font-size: 3.6rem;
  line-height: 0.95;
  color: var(--accent-deep);
}

.landing-result-detail,
.landing-result-source,
.landing-risk-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.landing-result-detail {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink);
}

.landing-result-source,
.landing-risk-note {
  font-size: 0.94rem;
}

.landing-risk-note {
  font-weight: 800;
  color: var(--accent-deep);
}

.landing-segment-panel {
  max-width: 42rem;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 3px solid var(--accent);
  background: transparent;
}

.landing-segment-panel .card-label,
.landing-footer .card-label {
  margin-bottom: 0;
}

.landing-cta-row {
  flex-wrap: wrap;
}

.landing-tablist {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(48, 38, 28, 0.1);
  border-radius: 8px;
  background: rgba(32, 24, 19, 0.06);
}

.landing-side {
  gap: 16px;
}

.landing-auth-shell {
  padding: 26px;
  gap: 18px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.96), rgba(244, 234, 219, 0.92)),
    linear-gradient(180deg, rgba(31, 108, 93, 0.08), transparent);
  border: 1px solid rgba(48, 38, 28, 0.12);
  box-shadow: 0 22px 48px rgba(54, 36, 15, 0.1);
}

.landing-auth-copy h2 {
  max-width: 14ch;
  font-size: 2.72rem;
}

.landing-intro {
  max-width: 54ch;
  color: var(--muted);
}

.landing-auth-card {
  padding: 18px;
  background: rgba(255, 253, 249, 0.9);
  color: var(--ink);
  border: 1px solid rgba(48, 38, 28, 0.1);
  box-shadow: none;
}

.landing-tab {
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.landing-tab:hover {
  transform: translateY(-1px);
}

.landing-tab.active {
  background: linear-gradient(135deg, var(--accent), #ec8a40);
  color: #fff;
  box-shadow: 0 10px 22px rgba(217, 93, 57, 0.18);
}

.landing-status {
  min-height: 24px;
  font-size: 0.92rem;
  color: var(--muted);
}

.landing-status[data-state="error"] {
  color: var(--bad);
}

.landing-status[data-state="success"] {
  color: var(--good);
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-auth-panel {
  display: none;
}

.landing-auth-panel.active {
  display: block;
  animation: panelFadeIn 0.25s ease forwards;
}

.landing-form {
  gap: 14px;
}

.landing-form label {
  color: var(--muted);
}

.landing-form input {
  min-height: 48px;
  border-radius: 6px;
  background: #fffdf9;
}

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

.landing-verify-panel h3 {
  margin: 0;
  font-size: 1.1rem;
}

.landing-verify-panel p {
  margin: 0;
  color: var(--muted);
}

.landing-forgot-password {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.landing-resend-verification {
  width: fit-content;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.landing-forgot-password:hover,
.landing-forgot-password:focus-visible {
  text-decoration: underline;
}

.landing-guest-card {
  padding: 18px;
  border: 1px solid rgba(31, 108, 93, 0.18);
  background:
    linear-gradient(135deg, rgba(31, 108, 93, 0.1), rgba(255, 251, 245, 0.86)),
    rgba(255, 251, 245, 0.8);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.landing-guest-card p,
.landing-guest-card .card-label {
  color: var(--muted);
}

.landing-guest-card .secondary-button {
  background: rgba(32, 24, 19, 0.06);
  color: var(--ink);
}

.landing-social-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(48, 38, 28, 0.1);
  border-radius: 8px;
  background: rgba(48, 38, 28, 0.1);
}

.landing-social-proof article {
  display: grid;
  gap: 3px;
  padding: 15px 14px;
  background: rgba(255, 253, 249, 0.72);
}

.landing-social-proof strong {
  color: var(--accent-deep);
  font-size: 1.54rem;
  line-height: 1;
}

.landing-social-proof span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.25;
}

.landing-loss-band {
  display: grid;
  gap: 20px;
  padding: 34px;
  border: 1px solid rgba(48, 38, 28, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 251, 245, 0.92), rgba(245, 234, 220, 0.86)),
    linear-gradient(90deg, rgba(179, 60, 46, 0.08), transparent 62%);
  box-shadow: 0 20px 46px rgba(54, 36, 15, 0.08);
}

.landing-loss-head {
  display: grid;
  gap: 12px;
  max-width: 52rem;
}

.landing-loss-head h2,
.landing-loss-card h3 {
  margin: 0;
  line-height: 1.05;
}

.landing-loss-head h2 {
  font-size: 2.34rem;
  max-width: 18ch;
}

.landing-loss-head p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.55;
}

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

.landing-loss-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(179, 60, 46, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.94), rgba(248, 239, 227, 0.9)),
    rgba(255, 251, 245, 0.92);
}

.landing-loss-card .card-label {
  color: var(--bad);
}

.landing-loss-card h3 {
  font-size: 1.28rem;
}

.landing-loss-card strong {
  color: var(--bad);
  font-size: 2.08rem;
  line-height: 1;
}

.landing-results-band {
  display: grid;
  gap: 20px;
  padding: 32px 0;
  border-top: 1px solid rgba(48, 38, 28, 0.1);
}

.landing-results-head {
  display: grid;
  gap: 10px;
  max-width: 44rem;
}

.landing-results-head h2 {
  margin: 0;
  font-size: 2.1rem;
  line-height: 1.05;
}

.landing-results-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 3);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 0 0 12px;
  scroll-padding-inline: 0;
  scroll-snap-type: inline mandatory;
  scrollbar-color: rgba(217, 93, 57, 0.42) rgba(48, 38, 28, 0.08);
}

.landing-result-story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 176px;
  padding: 16px;
  border: 1px solid rgba(48, 38, 28, 0.1);
  border-radius: 8px;
  background: rgba(255, 251, 245, 0.68);
  scroll-snap-align: start;
}

.landing-result-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(31, 108, 93, 0.12);
  color: var(--accent-2);
  font-weight: 900;
  font-size: 0.82rem;
}

.landing-result-story h3,
.landing-result-story p {
  margin: 0;
}

.landing-result-story h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.landing-result-story p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.48;
}

.landing-final-cta {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 42px 28px;
  border: 1px solid rgba(217, 93, 57, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 93, 57, 0.14), rgba(255, 251, 245, 0.9)),
    linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(245, 234, 220, 0.88));
  text-align: center;
  box-shadow: 0 22px 50px rgba(54, 36, 15, 0.1);
}

.landing-final-cta h2,
.landing-final-cta p {
  margin: 0;
}

.landing-final-cta h2 {
  max-width: 16ch;
  font-size: 2.56rem;
  line-height: 1.02;
}

.landing-final-cta p {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.5;
}

.landing-final-cta-button {
  min-height: 54px;
  padding-inline: 28px;
}

.landing-final-cta span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.landing-system-band,
.landing-faq-band {
  padding: 32px 0;
  border-top: 1px solid rgba(48, 38, 28, 0.1);
  border-bottom: 1px solid rgba(48, 38, 28, 0.06);
  background: transparent;
  box-shadow: none;
}

.landing-system-band {
  display: grid;
  gap: 22px;
}

.landing-system-item {
  align-content: start;
  padding: 0 18px 0 0;
}

.landing-system-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(48, 38, 28, 0.1);
  box-shadow: 0 14px 28px rgba(54, 36, 15, 0.1);
}

.landing-system-item p + p {
  margin-top: 2px;
}

.landing-faq-band,
.landing-faq-head,
.landing-faq-list,
.landing-faq-item {
  display: grid;
  gap: 16px;
}

.landing-faq-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-faq-intro {
  max-width: 64ch;
  color: var(--muted);
}

.landing-faq-item {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(48, 38, 28, 0.08);
  background: rgba(255, 251, 245, 0.56);
}

.landing-faq-item h3 {
  font-size: 1.02rem;
}

@media (min-width: 1080px) {
  .landing-hero {
    grid-template-columns: minmax(430px, 0.95fr) minmax(430px, 1.05fr);
    background:
      linear-gradient(90deg, rgba(255, 251, 245, 0.94) 0%, rgba(246, 238, 226, 0.78) 50%, rgba(42, 54, 46, 0.94) 50%, rgba(31, 41, 36, 0.97) 100%),
      linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(241, 231, 216, 0.9));
  }

  .landing-system-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .landing-system-item-wide {
    grid-column: 1 / -1;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .landing-system-item-wide .card-label,
  .landing-system-item-wide h2,
  .landing-system-item-wide p {
    grid-column: 2;
  }

  .landing-system-image-wide {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .landing-system-item:not(:last-child) {
    padding-right: 18px;
    border-right: 1px solid rgba(48, 38, 28, 0.08);
  }

  .landing-faq-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (max-width: 980px) {
  .landing-header {
    flex-wrap: wrap;
  }

  .landing-nav {
    order: 3;
    width: 100%;
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .landing-language-switcher {
    order: 2;
    margin-left: auto;
  }

  .landing-header-actions {
    order: 4;
    width: 100%;
    justify-content: flex-start;
  }

  .landing-faq-list {
    grid-template-columns: 1fr;
  }

  .landing-brand-block h1 {
    max-width: 13ch;
    font-size: 3.1rem;
  }
}

@media (max-width: 720px) {
  .landing-page {
    padding: 0 16px 28px;
    overflow-x: hidden;
  }

  .landing-shell {
    width: 100%;
    overflow: hidden;
  }

  .landing-header-actions,
  .landing-cta-row,
  .landing-product-meta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .landing-language-switcher {
    width: 56px;
  }

  .landing-footer-grid,
  .landing-system-band,
  .landing-loss-grid,
  .landing-faq-list {
    grid-template-columns: 1fr;
  }

  .landing-results-grid {
    grid-auto-columns: min(86vw, 360px);
  }

  .landing-hero,
  .landing-auth-shell,
  .landing-loss-band,
  .landing-final-cta,
  .landing-system-band,
  .landing-faq-band {
    padding: 20px;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    min-width: 0;
  }

  .landing-copy,
  .landing-side,
  .landing-auth-shell,
  .landing-auth-card,
  .landing-photo-card,
  .landing-segment-panel {
    width: 100%;
    max-width: 100%;
  }

  .landing-brand-block h1 {
    font-size: 2.42rem;
    white-space: normal;
  }

  .landing-loss-head h2 {
    font-size: 1.9rem;
  }

  .landing-results-head h2,
  .landing-final-cta h2 {
    font-size: 1.9rem;
  }

  .landing-result-card strong {
    font-size: 2.72rem;
  }

  .landing-trust-line {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .landing-header {
    position: static;
  }

  .landing-auth-card,
  .landing-guest-card,
  .landing-segment-panel {
    padding: 16px;
  }

  .landing-social-proof {
    grid-template-columns: 1fr;
  }

  .landing-trust-line {
    max-width: 100%;
  }

  .landing-tablist {
    width: 100%;
  }

  .landing-tab {
    padding-inline: 12px;
  }

}

/* Blog Article Specific Styles */
.blog-main {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.blog-main .landing-loss-band {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.blog-main .landing-loss-head {
  max-width: 100%;
}

.blog-main .landing-loss-head h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.blog-main p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
}

.landing-privacy-small {
  padding: 16px 0 4px;
  text-align: center;
}

.landing-privacy-small a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.landing-privacy-small a:hover,
.landing-privacy-small a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.landing-cookie-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: min(720px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(48, 38, 28, 0.14);
  border-radius: 8px;
  background: rgba(255, 251, 244, 0.96);
  box-shadow: 0 18px 44px rgba(48, 38, 28, 0.18);
}

.landing-cookie-consent[hidden] {
  display: none;
}

.landing-cookie-consent h2,
.landing-cookie-consent p {
  margin: 0;
}

.landing-cookie-consent h2 {
  font-size: 1rem;
  line-height: 1.2;
}

.landing-cookie-consent p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-cookie-consent a {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.landing-cookie-consent a:hover,
.landing-cookie-consent a:focus-visible {
  text-decoration: underline;
}

.landing-cookie-consent .primary-button {
  min-height: 44px;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .blog-main .landing-loss-head h1 {
    font-size: 2.2rem;
  }

  .landing-cookie-consent {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    width: calc(100% - 24px);
  }

  .landing-cookie-consent .primary-button {
    width: 100%;
  }
}
