@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap");

:root {
  --bg: #f7f3ea;
  --bg-soft: #fcf9f2;
  --ink: #131a21;
  --muted: #4d5a69;
  --line: rgba(19, 26, 33, 0.13);
  --brand: #0f766e;
  --brand-dark: #0a5450;
  --accent: #f1722e;
  --accent-dark: #d65f20;
  --card: rgba(255, 255, 255, 0.84);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-lg: 0 22px 42px rgba(19, 26, 33, 0.12);
  --shadow-md: 0 12px 24px rgba(19, 26, 33, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 14%, #ffe2be 0%, transparent 32%),
    radial-gradient(circle at 90% 84%, #d5efe8 0%, transparent 34%),
    var(--bg);
}

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

.background-orb {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.46;
}

.background-orb-a {
  top: -120px;
  right: -70px;
  width: 320px;
  height: 320px;
  background: #ffc48a;
}

.background-orb-b {
  left: -120px;
  bottom: -190px;
  width: 420px;
  height: 420px;
  background: #9fddd0;
}

.grid-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(19, 26, 33, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 26, 33, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
}

.site-header {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0.7rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.52rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.top-nav a:hover,
.top-nav a.is-active {
  background: #fff;
  border-color: rgba(19, 26, 33, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn {
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 0.62rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, background-color 140ms ease;
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  border-color: rgba(19, 26, 33, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border-color: rgba(19, 26, 33, 0.2);
}

.btn-google {
  background: #fff;
  color: #1a1a1a;
  border-color: rgba(19, 26, 33, 0.25);
}

.btn-google:hover {
  background: #f4f4f4;
}

.page-wrap {
  width: min(1180px, calc(100% - 2rem));
  margin: 0.65rem auto 2.3rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.09), rgba(241, 114, 46, 0.1)),
    var(--card);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.eyebrow {
  color: var(--brand);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.hero h1 {
  margin-top: 0.64rem;
  max-width: 760px;
  font-size: clamp(1.86rem, 5vw, 3.24rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.hero p {
  margin-top: 0.82rem;
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  margin-top: 1.12rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.grid-3 {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
}

.grid-2 {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.82rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.card h3 {
  font-size: 1.06rem;
}

.card p {
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.page-head {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: clamp(1rem, 2.4vw, 1.65rem);
}

.page-head h1 {
  margin-top: 0.52rem;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
  line-height: 1.08;
}

.page-head p {
  margin-top: 0.68rem;
  max-width: 820px;
  color: var(--muted);
}

.list-plain {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.list-plain li {
  margin-top: 0.42rem;
  color: var(--muted);
}

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.login-layout {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 0.5rem 0 1rem;
}

.login-card {
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
}

.login-card h1 {
  margin-top: 0.55rem;
  font-size: 1.72rem;
}

.login-card p {
  margin-top: 0.62rem;
  color: var(--muted);
}

.auth-form {
  margin-top: 0.95rem;
  display: grid;
  gap: 0.52rem;
}

.field-label {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.auth-input {
  width: 100%;
  border: 1px solid rgba(19, 26, 33, 0.2);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.62rem 0.7rem;
}

.auth-input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.32);
  border-color: rgba(15, 118, 110, 0.5);
}

.auth-submit {
  margin-top: 0.4rem;
  width: 100%;
}

.auth-divider {
  margin-top: 0.35rem;
  position: relative;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid rgba(19, 26, 33, 0.15);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.45rem;
}

.auth-switch {
  margin-top: 0.78rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.login-google {
  margin-top: 0.95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.status-text {
  margin-top: 0.8rem;
  border-radius: 10px;
  padding: 0.52rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-neutral {
  color: var(--brand-dark);
  background: rgba(15, 118, 110, 0.12);
}

.status-error {
  color: #9f1414;
  background: rgba(183, 29, 29, 0.12);
}

.status-success {
  color: #0f7a4c;
  background: rgba(15, 122, 76, 0.12);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.hub-highlight {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hub-highlight .metric {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
}

.hub-section {
  margin-top: 0.9rem;
}

.profile-menu {
  position: relative;
}

.profile-button {
  border: 1px solid rgba(19, 26, 33, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.28rem 0.35rem 0.28rem 0.28rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(19, 26, 33, 0.2);
}

.avatar-fallback {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(19, 26, 33, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: #fff;
}

.profile-label {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.42rem);
  min-width: 200px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
  padding: 0.35rem;
  display: none;
  z-index: 50;
}

.profile-dropdown.is-open {
  display: block;
}

.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 0.55rem;
  cursor: pointer;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: var(--bg-soft);
}

.profile-dropdown hr {
  border: 0;
  border-top: 1px solid rgba(19, 26, 33, 0.1);
  margin: 0.25rem 0;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.compact-auth-form {
  margin-top: 0.8rem;
}

.auth-methods {
  margin-top: 0.72rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-method {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(19, 26, 33, 0.18);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.35rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.donation-popup {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  width: min(360px, calc(100% - 2rem));
  border: 1px solid rgba(19, 26, 33, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
  z-index: 70;
}

.donation-close {
  position: absolute;
  top: 0.42rem;
  right: 0.45rem;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(19, 26, 33, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.donation-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-right: 1.7rem;
}

.donation-copy {
  margin-top: 0.34rem;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.86rem;
}

.donation-link {
  margin-top: 0.6rem;
  width: 100%;
}

.wip-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.96), #fff8ef);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 3vw, 2rem);
}

.wip-card h1 {
  margin-top: 0.6rem;
  max-width: 760px;
  font-size: clamp(1.55rem, 4.2vw, 2.7rem);
  line-height: 1.1;
}

.wip-feature {
  margin-top: 0.7rem;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  font-family: "Space Mono", monospace;
  font-size: 0.8rem;
  color: #7a4b00;
  background: rgba(241, 114, 46, 0.14);
}

.wip-copy {
  margin-top: 0.72rem;
  max-width: 760px;
  color: var(--muted);
}

.wip-illustration {
  margin: 0.2rem 0 0.95rem;
  min-height: 130px;
  display: grid;
  grid-template-columns: repeat(3, 68px);
  align-items: end;
  gap: 0.75rem;
  position: relative;
}

.cone {
  width: 68px;
  height: 0;
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 78px solid #f1722e;
  position: relative;
  filter: drop-shadow(0 8px 8px rgba(19, 26, 33, 0.12));
}

.cone::before,
.cone::after {
  content: "";
  position: absolute;
  left: -31px;
  width: 62px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}

.cone::before {
  top: 22px;
}

.cone::after {
  top: 42px;
}

.cone-left {
  animation: cone-bob 3s ease-in-out infinite;
}

.cone-center {
  animation: cone-bob 3.4s ease-in-out 0.22s infinite;
}

.cone-right {
  animation: cone-bob 3.1s ease-in-out 0.42s infinite;
}

.helmet {
  position: absolute;
  right: 0.4rem;
  bottom: 0.3rem;
  width: 92px;
  height: 44px;
  border-radius: 44px 44px 12px 12px;
  background: linear-gradient(180deg, #ffcf66, #f5b73d);
  border: 2px solid rgba(19, 26, 33, 0.18);
  box-shadow: inset 0 -7px 0 rgba(255, 255, 255, 0.32);
}

.helmet::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: -7px;
  height: 12px;
  border-radius: 8px;
  background: #e09d2c;
}

.spark {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #0f766e;
  opacity: 0.9;
}

.spark-a {
  right: 92px;
  top: 10px;
  animation: sparkle 1.8s ease-in-out infinite;
}

.spark-b {
  right: 70px;
  top: 28px;
  width: 8px;
  height: 8px;
  animation: sparkle 1.6s ease-in-out 0.3s infinite;
}

.spark-c {
  right: 48px;
  top: 14px;
  width: 7px;
  height: 7px;
  animation: sparkle 1.9s ease-in-out 0.54s infinite;
}

.wip-tape {
  position: absolute;
  left: -40px;
  right: -40px;
  display: flex;
  gap: 0;
  transform-origin: center;
  pointer-events: none;
}

.wip-tape span {
  flex: 1 0 auto;
  text-align: center;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #3d2d00;
  padding: 0.19rem 0.7rem;
  background: repeating-linear-gradient(
    -45deg,
    #ffd44f,
    #ffd44f 10px,
    #111 10px,
    #111 20px
  );
}

.wip-tape-a {
  top: 16px;
  transform: rotate(-8deg);
  opacity: 0.9;
}

.wip-tape-b {
  bottom: 16px;
  transform: rotate(6deg);
  opacity: 0.78;
}

@keyframes cone-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(45deg);
    opacity: 0.95;
  }
  50% {
    transform: scale(0.6) rotate(45deg);
    opacity: 0.45;
  }
}

.hide {
  display: none !important;
}

.hub-app {
  background: #f4f6f7;
}

.hub-app .site-header {
  width: 100%;
  margin: 0;
  padding: 0.72rem 1.2rem;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(19, 26, 33, 0.14);
  box-shadow: none;
  backdrop-filter: none;
  background: #fff;
}

.hub-topbar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hub-app .brand {
  font-size: 1.16rem;
}

.hub-app .top-nav {
  gap: 0.2rem;
}

.hub-app .top-nav a {
  border-radius: 8px;
  padding: 0.5rem 0.72rem;
}

.hub-app .top-nav a:hover,
.hub-app .top-nav a.is-active {
  background: #edf2f3;
  border-color: rgba(19, 26, 33, 0.1);
}

.hub-app .profile-button {
  border-radius: 10px;
  padding: 0.25rem 0.38rem 0.25rem 0.25rem;
  background: #fff;
  box-shadow: none;
}

.hub-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.hub-hero {
  padding: 0.4rem 0 1rem;
  border-bottom: 1px solid rgba(19, 26, 33, 0.12);
}

.hub-kicker {
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-family: "Space Mono", monospace;
  font-weight: 700;
}

.hub-hero h1 {
  margin-top: 0.52rem;
  font-size: clamp(1.95rem, 4.4vw, 2.75rem);
  line-height: 1.08;
}

.hub-subtitle {
  margin-top: 0.5rem;
  max-width: 760px;
  color: var(--muted);
}

.hub-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(19, 26, 33, 0.12);
}

.hub-stat {
  padding: 1rem 0.75rem 1rem 0;
}

.hub-stat:not(:last-child) {
  border-right: 1px solid rgba(19, 26, 33, 0.1);
  padding-right: 1rem;
}

.hub-stat:not(:first-child) {
  padding-left: 1rem;
}

.hub-stat-label {
  font-size: 0.78rem;
  font-family: "Space Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4e5968;
  font-weight: 700;
}

.hub-stat-value {
  margin-top: 0.34rem;
  font-size: 2rem;
  line-height: 1.05;
  font-weight: 800;
  color: var(--brand);
}

.hub-stat-note {
  margin-top: 0.3rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hub-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid rgba(19, 26, 33, 0.12);
}

.hub-action-panel {
  padding: 1rem 0.75rem 1rem 0;
}

.hub-action-panel:not(:last-child) {
  border-right: 1px solid rgba(19, 26, 33, 0.1);
  padding-right: 1rem;
}

.hub-action-panel:not(:first-child) {
  padding-left: 1rem;
}

.hub-action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.hub-action-panel h2 {
  font-size: 1.18rem;
}

.hub-action-panel p {
  margin-top: 0.42rem;
  color: var(--muted);
  line-height: 1.45;
}

.hub-chip {
  border: 1px solid rgba(19, 26, 33, 0.14);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #4e5968;
  background: #fff;
  white-space: nowrap;
}

.hub-action-row {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.5rem;
}

.hub-track-board {
  padding-top: 1rem;
}

.hub-track-board h2 {
  font-size: 1.18rem;
}

.hub-track-row {
  margin-top: 0.6rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(19, 26, 33, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.hub-track-row p {
  color: var(--ink);
  font-weight: 600;
}

.hub-track-row .btn {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.practice-shell {
  padding-top: 0.95rem;
}

.practice-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 1rem;
}

.practice-layout.is-collapsed {
  grid-template-columns: 92px minmax(0, 1fr);
}

.practice-nav-panel {
  border: 1px solid rgba(19, 26, 33, 0.12);
  background: #fff;
  padding: 0.85rem;
}

.practice-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.practice-collapse-btn {
  border: 1px solid rgba(19, 26, 33, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.practice-game-list {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.4rem;
}

.practice-game-item {
  border: 1px solid rgba(19, 26, 33, 0.14);
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 0.6rem 0.65rem;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
}

.practice-game-item:hover {
  background: #f4f8f9;
}

.practice-game-item.is-active {
  border-color: rgba(15, 118, 110, 0.4);
  background: rgba(15, 118, 110, 0.08);
}

.practice-game-name {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}

.practice-game-meta {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4e5968;
  font-family: "Space Mono", monospace;
}

.practice-layout.is-collapsed .practice-collapse-btn {
  width: 100%;
}

.practice-layout.is-collapsed .practice-game-name,
.practice-layout.is-collapsed .practice-game-meta,
.practice-layout.is-collapsed .hub-kicker {
  display: none;
}

.practice-detail-panel {
  border: 1px solid rgba(19, 26, 33, 0.12);
  background: #fff;
  padding: 1rem;
}

.practice-detail-panel h1 {
  margin-top: 0.42rem;
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  line-height: 1.08;
}

.practice-description {
  margin-top: 0.5rem;
  max-width: 760px;
  color: var(--muted);
}

.practice-accuracy {
  margin-top: 0.6rem;
  padding: 0.42rem 0.54rem;
  border: 1px solid rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.08);
  color: #0a5c56;
  font-weight: 700;
}

.practice-config {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(19, 26, 33, 0.12);
}

.practice-config h2 {
  font-size: 1.15rem;
}

.practice-config-note {
  margin-top: 0.35rem;
  color: var(--muted);
}

.practice-choice-group {
  margin-top: 0.78rem;
}

.practice-choice-group p {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3f4b59;
}

.choice-row {
  margin-top: 0.42rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.choice-btn {
  border: 1px solid rgba(19, 26, 33, 0.22);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.62rem;
  cursor: pointer;
}

.choice-btn:hover {
  background: #f4f8f9;
}

.choice-btn.is-active {
  border-color: rgba(15, 118, 110, 0.45);
  background: rgba(15, 118, 110, 0.11);
  color: #0b5f59;
}

.practice-estimate {
  margin-top: 0.66rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.practice-cta-row {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.54rem;
}

.balance-shell {
  padding-top: 0.95rem;
}

.balance-head {
  border: 1px solid rgba(19, 26, 33, 0.12);
  background: #fff;
  padding: 1rem;
}

.balance-head h1 {
  margin-top: 0.4rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.balance-head p {
  margin-top: 0.45rem;
  max-width: 780px;
  color: var(--muted);
}

.balance-meta {
  margin-top: 0.68rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.balance-meta span {
  border: 1px solid rgba(19, 26, 33, 0.18);
  padding: 0.25rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4e5968;
  background: #fff;
}

.balance-board {
  margin-top: 0.9rem;
  border: 1px solid rgba(19, 26, 33, 0.12);
  background: #fff;
  padding: 0.9rem;
}

.balance-story {
  border: 1px solid rgba(19, 26, 33, 0.12);
  background: #f9fbfb;
  padding: 0.75rem;
  margin-bottom: 0.85rem;
}

.balance-story h2 {
  font-size: 1.25rem;
}

.balance-story-intro {
  margin-top: 0.4rem;
  color: var(--muted);
}

.balance-story-grid {
  margin-top: 0.72rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.balance-story-grid section h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "Space Mono", monospace;
  color: #4f5d6b;
}

.balance-story-grid section ul {
  margin: 0.44rem 0 0;
  padding-left: 1rem;
}

.balance-story-grid section li {
  margin-top: 0.34rem;
  color: #374351;
  line-height: 1.4;
}

.balance-table-wrap {
  overflow-x: auto;
}

.balance-table {
  width: 100%;
  border-collapse: collapse;
}

.balance-table th,
.balance-table td {
  border-bottom: 1px solid rgba(19, 26, 33, 0.1);
  text-align: left;
  padding: 0.58rem 0.5rem;
  font-size: 0.93rem;
}

.balance-table th {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #526170;
  font-family: "Space Mono", monospace;
}

.balance-value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.balance-empty {
  color: #9aa5b2;
}

.balance-input {
  width: 100%;
  min-width: 135px;
  border: 1px solid rgba(19, 26, 33, 0.28);
  border-radius: 8px;
  padding: 0.38rem 0.5rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}

.balance-input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  border-color: rgba(15, 118, 110, 0.45);
}

.balance-input.is-correct {
  border-color: rgba(15, 122, 76, 0.55);
  background: rgba(15, 122, 76, 0.08);
}

.balance-input.is-wrong {
  border-color: rgba(183, 29, 29, 0.52);
  background: rgba(183, 29, 29, 0.08);
}

.balance-actions {
  margin-top: 0.82rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

@media (max-width: 980px) {
  .top-nav {
    display: none;
  }

  .grid-3,
  .grid-2,
  .hub-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .page-wrap {
    margin-top: 0.35rem;
  }

  .donation-popup {
    left: 0.7rem;
    bottom: 0.7rem;
    width: calc(100% - 1.4rem);
  }

  .hub-app .site-header {
    padding: 0.65rem 0.75rem;
  }

  .hub-topbar-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .hub-app .top-nav {
    width: 100%;
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hub-app .top-nav::-webkit-scrollbar {
    height: 5px;
  }

  .hub-app .top-nav::-webkit-scrollbar-thumb {
    background: rgba(19, 26, 33, 0.2);
    border-radius: 999px;
  }

  .hub-shell {
    padding-top: 0.75rem;
  }

  .hub-stats-row,
  .hub-action-grid {
    grid-template-columns: 1fr;
  }

  .hub-stat,
  .hub-action-panel {
    padding: 0.82rem 0;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(19, 26, 33, 0.1);
  }

  .hub-stat:last-child,
  .hub-action-panel:last-child {
    border-bottom: 0;
  }

  .hub-stat:not(:first-child),
  .hub-action-panel:not(:first-child) {
    padding-left: 0;
  }

  .hub-action-head {
    align-items: flex-start;
  }

  .hub-track-row {
    flex-wrap: wrap;
  }

  .practice-layout,
  .practice-layout.is-collapsed {
    grid-template-columns: 1fr;
  }

  .practice-layout.is-collapsed .practice-game-name,
  .practice-layout.is-collapsed .practice-game-meta,
  .practice-layout.is-collapsed .hub-kicker {
    display: initial;
  }

  .practice-nav-head {
    flex-wrap: wrap;
  }

  .practice-collapse-btn {
    width: auto;
  }

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

  .balance-input {
    min-width: 110px;
  }
}
