/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
      --tw-animation-delay: 0s;
      --tw-animation-direction: normal;
      --tw-animation-duration: initial;
      --tw-animation-fill-mode: none;
      --tw-animation-iteration-count: 1;
      --tw-enter-blur: 0;
      --tw-enter-opacity: 1;
      --tw-enter-rotate: 0;
      --tw-enter-scale: 1;
      --tw-enter-translate-x: 0;
      --tw-enter-translate-y: 0;
      --tw-exit-blur: 0;
      --tw-exit-opacity: 1;
      --tw-exit-rotate: 0;
      --tw-exit-scale: 1;
      --tw-exit-translate-x: 0;
      --tw-exit-translate-y: 0;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: "DM Sans", sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: .25rem;
    --container-md: 28rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-7xl: 4.5rem;
    --text-7xl--line-height: 1;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -.025em;
    --animate-spin: spin 1s linear infinite;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: "DM Sans", sans-serif;
    --default-mono-font-family: var(--font-mono);
    --font-display: "Lora", Georgia, serif;
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }

  * {
    border-color: var(--border);
    box-sizing: border-box;
  }

  body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
  }

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

  a {
    color: inherit;
    text-decoration: none;
  }

  button, a, input, select {
    -webkit-tap-highlight-color: transparent;
  }

  :focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
  }

  button {
    cursor: pointer;
  }
}

@layer components;

@layer utilities {
  .relative {
    position: relative;
  }

  .mt-3 {
    margin-top: calc(var(--spacing) * 3);
  }

  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }

  .mt-6 {
    margin-top: calc(var(--spacing) * 6);
  }

  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .inline-flex {
    display: inline-flex;
  }

  .size-4 {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }

  .h-8 {
    height: calc(var(--spacing) * 8);
  }

  .h-9 {
    height: calc(var(--spacing) * 9);
  }

  .h-10 {
    height: calc(var(--spacing) * 10);
  }

  .h-full {
    height: 100%;
  }

  .max-h-40 {
    max-height: calc(var(--spacing) * 40);
  }

  .min-h-screen {
    min-height: 100vh;
  }

  .w-9 {
    width: calc(var(--spacing) * 9);
  }

  .w-full {
    width: 100%;
  }

  .max-w-md {
    max-width: var(--container-md);
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .animate-spin {
    animation: var(--animate-spin);
  }

  .cursor-pointer {
    cursor: pointer;
  }

  .flex-wrap {
    flex-wrap: wrap;
  }

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

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

  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }

  .overflow-auto {
    overflow: auto;
  }

  .rounded {
    border-radius: .25rem;
  }

  .rounded-md {
    border-radius: 6px;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .border-input {
    border-color: var(--border);
  }

  .bg-background {
    background-color: var(--background);
  }

  .bg-destructive {
    background-color: var(--destructive);
  }

  .bg-primary {
    background-color: var(--primary);
  }

  .bg-secondary {
    background-color: var(--secondary);
  }

  .px-0 {
    padding-inline: 0;
  }

  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }

  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }

  .px-8 {
    padding-inline: calc(var(--spacing) * 8);
  }

  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }

  .text-center {
    text-align: center;
  }

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

  .\!text-xl {
    font-size: var(--text-xl) !important;
    line-height: var(--tw-leading, var(--text-xl--line-height)) !important;
  }

  .text-7xl {
    font-size: var(--text-7xl);
    line-height: var(--tw-leading, var(--text-7xl--line-height));
  }

  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }

  .text-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }

  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }

  .text-\[11px\] {
    font-size: 11px;
  }

  .font-bold {
    --tw-font-weight: var(--font-weight-bold);
    font-weight: var(--font-weight-bold);
  }

  .font-medium {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }

  .font-semibold {
    --tw-font-weight: var(--font-weight-semibold);
    font-weight: var(--font-weight-semibold);
  }

  .tracking-tight {
    --tw-tracking: var(--tracking-tight);
    letter-spacing: var(--tracking-tight);
  }

  .break-words {
    overflow-wrap: break-word;
  }

  .whitespace-nowrap {
    white-space: nowrap;
  }

  .whitespace-pre-wrap {
    white-space: pre-wrap;
  }

  .text-destructive-foreground {
    color: var(--primary-foreground);
  }

  .text-foreground {
    color: var(--foreground);
  }

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

  .text-primary {
    color: var(--primary);
  }

  .text-primary-foreground {
    color: var(--primary-foreground);
  }

  .text-secondary-foreground {
    color: var(--foreground);
  }

  .underline-offset-4 {
    text-underline-offset: 4px;
  }

  .shadow, .shadow-sm {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }

  .transition-colors {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .running {
    animation-play-state: running;
  }

  @media (hover: hover) {
    .hover\:bg-accent:hover {
      background-color: var(--accent);
    }

    .hover\:bg-destructive\/90:hover {
      background-color: var(--destructive);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-destructive\/90:hover {
        background-color: color-mix(in oklab, var(--destructive) 90%, transparent);
      }
    }

    .hover\:bg-primary\/90:hover {
      background-color: var(--primary);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-primary\/90:hover {
        background-color: color-mix(in oklab, var(--primary) 90%, transparent);
      }
    }

    .hover\:bg-secondary\/80:hover {
      background-color: var(--secondary);
    }

    @supports (color: color-mix(in lab, red, red)) {
      .hover\:bg-secondary\/80:hover {
        background-color: color-mix(in oklab, var(--secondary) 80%, transparent);
      }
    }

    .hover\:text-accent-foreground:hover {
      color: var(--foreground);
    }

    .hover\:underline:hover {
      text-decoration-line: underline;
    }

    .hover\:opacity-90:hover {
      opacity: .9;
    }
  }

  .focus-visible\:ring-1:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset, ) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .focus-visible\:ring-ring:focus-visible {
    --tw-ring-color: var(--primary);
  }

  .focus-visible\:outline-none:focus-visible {
    --tw-outline-style: none;
    outline-style: none;
  }

  .disabled\:pointer-events-none:disabled {
    pointer-events: none;
  }

  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }

  .disabled\:opacity-50:disabled {
    opacity: .5;
  }

  .\[\&_svg\]\:pointer-events-none svg {
    pointer-events: none;
  }

  .\[\&_svg\]\:size-4 svg {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }

  .\[\&_svg\]\:shrink-0 svg {
    flex-shrink: 0;
  }
}

@property --tw-animation-delay {
  syntax: "*";
  inherits: false;
  initial-value: 0s;
}

@property --tw-animation-direction {
  syntax: "*";
  inherits: false;
  initial-value: normal;
}

@property --tw-animation-duration {
  syntax: "*";
  inherits: false
}

@property --tw-animation-fill-mode {
  syntax: "*";
  inherits: false;
  initial-value: none;
}

@property --tw-animation-iteration-count {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-enter-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-enter-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-blur {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-opacity {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-exit-rotate {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-scale {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}

@property --tw-exit-translate-x {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

@property --tw-exit-translate-y {
  syntax: "*";
  inherits: false;
  initial-value: 0;
}

:root {
  --background: oklch(98.6% .006 65);
  --foreground: oklch(28% .026 20);
  --card: oklch(100% 0 0);
  --primary: oklch(42% .1 15);
  --primary-foreground: oklch(99% .004 40);
  --secondary: oklch(95% .021 10);
  --muted: oklch(95.5% .008 55);
  --muted-foreground: oklch(51% .018 35);
  --accent: oklch(94% .022 15);
  --destructive: oklch(52% .17 25);
  --border: oklch(89% .012 30);
  --hero-ink: oklch(28% .04 18);
  --board-light: oklch(94% .021 15);
  --board-dark: oklch(63% .065 13);
  --board-last: oklch(78% .09 75 / .58);
  --board-selected: oklch(70% .09 60 / .75);
  --board-dot: oklch(30% .02 20 / .35);
  --board-mark: oklch(60% .16 30 / .55);
  --board-check: oklch(62% .19 25 / .8);
  --success: oklch(43% .07 155);
  --hero-wash: oklch(91% .018 35);
  --shadow-soft: 0 6px 25px oklch(30% .03 20 / .05);
}

.dark {
  --background: oklch(20% .014 20);
  --foreground: oklch(93% .009 50);
  --card: oklch(24% .017 20);
  --primary: oklch(75% .1 15);
  --primary-foreground: oklch(20% .02 15);
  --secondary: oklch(30% .028 15);
  --muted: oklch(26% .013 20);
  --muted-foreground: oklch(73% .016 40);
  --accent: oklch(32% .026 15);
  --border: oklch(35% .018 20);
  --board-light: oklch(80% .023 15);
  --board-dark: oklch(49% .06 13);
  --success: oklch(76% .09 155);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
  z-index: 20;
  height: 96px;
  position: relative;
}

.header-inner {
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  max-width: 1320px;
  height: 100%;
  margin: auto;
  padding: 0 48px;
  display: flex;
}

.brand {
  color: var(--primary);
  align-items: center;
  gap: 9px;
  line-height: 1;
  display: flex;
}

.brand svg {
  width: 38px;
  height: 44px;
}

.brand > span {
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
}

.brand-sub {
  font: 9px var(--font-sans);
  letter-spacing: 2px;
  text-align: center;
  margin-top: 7px;
  display: block;
}

.desktop-nav {
  align-items: center;
  gap: 28px;
  display: flex;
}

.desktop-nav a {
  padding: 12px 0;
  font-size: 13px;
  position: relative;
}

.desktop-nav a[data-status="active"] {
  color: var(--primary);
}

.desktop-nav a[data-status="active"]:after {
  content: "";
  background: var(--primary);
  height: 2px;
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
}

.header-actions {
  align-items: center;
  gap: 20px;
  display: flex;
}

.login-link {
  font-size: 13px;
}

.signup-button {
  height: 40px;
  font-size: 12px;
}

.mobile-menu-button {
  display: none;
}

.mobile-nav {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  gap: 15px;
  padding: 20px;
  display: grid;
}

.skip-link {
  z-index: 100;
  background: var(--background);
  padding: 12px;
  position: fixed;
  top: -100px;
  left: 20px;
}

.skip-link:focus {
  top: 10px;
}

.home-hero {
  background: var(--hero-wash);
  min-height: 560px;
  color: var(--hero-ink);
  position: relative;
  overflow: hidden;
}

.hero-image {
  object-fit: cover;
  object-position: center 54%;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-inner {
  max-width: 1224px;
  margin: auto;
  padding: 62px 48px 54px;
  position: relative;
}

.hero-inner h1 {
  max-width: 610px;
  margin: 25px 0 20px;
  font-size: 58px;
  line-height: 1.12;
}

.hero-description {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.85;
}

.hero-actions {
  gap: 12px;
  margin-top: 27px;
  display: flex;
}

.hero-actions a {
  height: 46px;
  padding: 0 21px;
}

.home-content {
  max-width: 1224px;
  margin: auto;
  padding: 48px 48px 55px;
}

.section-heading {
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  display: flex;
}

.section-heading h2 {
  font-size: 29px;
}

.section-heading p {
  color: var(--muted-foreground);
  margin-top: 5px;
  font-size: 13px;
}

.path-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  display: grid;
}

.path-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
  flex-direction: column;
  padding: 24px;
  transition: transform .2s, border-color .2s;
  display: flex;
}

.path-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.path-top {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  display: flex;
}

.path-icon {
  background: var(--secondary);
  width: 44px;
  height: 44px;
  color: var(--primary);
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.path-card:nth-child(2) .path-icon {
  background: var(--muted);
  color: var(--success);
}

.path-card:nth-child(3) .path-icon {
  background: var(--muted);
  color: var(--foreground);
}

.path-card h3 {
  margin-bottom: 9px;
  font-size: 21px;
  line-height: 1.45;
}

.path-card p {
  color: var(--muted-foreground);
  max-width: 275px;
  font-size: 12px;
}

.path-link {
  color: var(--primary);
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
}

.path-link svg {
  width: 15px;
}

.site-footer {
  border-top: 1px solid var(--border);
  max-width: 1224px;
  color: var(--muted-foreground);
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: auto;
  padding: 26px 48px;
  font-size: 10px;
  display: flex;
}

.footer-brand {
  color: var(--primary);
  font-family: var(--font-display);
  align-items: center;
  gap: 7px;
  font-size: 13px;
  display: flex;
}

.footer-brand svg {
  width: 20px;
  height: 25px;
}

.page {
  max-width: 1160px;
  min-height: calc(100vh - 185px);
  margin: auto;
  padding: 46px 48px 64px;
}

.page-heading {
  margin-bottom: 32px;
}

.page-heading h1 {
  margin: 10px 0;
  font-size: 40px;
  line-height: 1.25;
}

.page-heading p {
  color: var(--muted-foreground);
  max-width: 650px;
  font-size: 14px;
}

.workspace {
  grid-template-columns: minmax(0, 600px) minmax(260px, 1fr);
  align-items: start;
  gap: 36px;
  display: grid;
}

.board-wrapper {
  aspect-ratio: 1;
  background: var(--board-light);
  border-radius: 5px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.board-loading {
  aspect-ratio: 1;
  background: var(--muted);
  width: 100%;
  color: var(--muted-foreground);
  place-items: center;
  display: grid;
}

.board-empty {
  aspect-ratio: 1;
  background: repeating-conic-gradient(var(--board-light) 0% 25%, var(--board-dark) 0% 50%) 50% / 25% 25%;
  border-radius: 5px;
  width: 100%;
  position: relative;
}

.board-empty:after {
  content: "";
  background: var(--background);
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .board-empty:after {
    background: color-mix(in oklab, var(--background) 75%, transparent);
  }
}

.board-empty-label {
  z-index: 1;
  color: var(--muted-foreground);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  display: flex;
  position: absolute;
  inset: 0;
}

.board-empty-label svg {
  width: 32px;
  height: 32px;
}

.board-bar {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  display: flex;
}

.turn-indicator {
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
}

.turn-dot {
  background: var(--board-light);
  border: 1px solid var(--foreground);
  border-radius: 50%;
  width: 12px;
  height: 12px;
}

.turn-dot.black {
  background: var(--foreground);
}

.board-tools {
  gap: 5px;
  display: flex;
}

.side-panel {
  padding-top: 4px;
}

.panel-title {
  margin-bottom: 12px;
  font-size: 24px;
}

.panel-section {
  border-top: 1px solid var(--border);
  padding: 23px 0;
}

.panel-label {
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted-foreground);
  margin-bottom: 13px;
  font-size: 10px;
}

.panel-text {
  color: var(--muted-foreground);
  font-size: 12px;
}

.move-list {
  grid-template-columns: 35px 1fr 1fr;
  row-gap: 9px;
  max-height: 300px;
  font-size: 13px;
  display: grid;
  overflow-y: auto;
}

.move-number {
  color: var(--muted-foreground);
}

.move-entry {
  font-weight: 500;
}

.panel-empty {
  text-align: center;
  color: var(--muted-foreground);
  padding: 38px 5px;
  font-size: 12px;
}

.legal-input {
  gap: 8px;
  display: flex;
}

.field {
  border: 1px solid var(--border);
  background: var(--card);
  width: 100%;
  color: var(--foreground);
  font: inherit;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 13px;
}

.feedback {
  border: 1px solid var(--border);
  background: var(--secondary);
  border-radius: 6px;
  align-items: start;
  gap: 9px;
  margin: 14px 0;
  padding: 12px;
  font-size: 13px;
  display: flex;
}

.feedback svg {
  flex-shrink: 0;
  width: 18px;
}

.feedback.correct {
  color: var(--success);
}

.feedback p {
  margin-top: 5px;
  font-size: 12px;
}

.puzzle-metadata {
  gap: 28px;
  padding: 18px 0;
  display: flex;
}

.puzzle-metadata span {
  color: var(--muted-foreground);
  margin-bottom: 3px;
  font-size: 10px;
  display: block;
}

.puzzle-metadata strong {
  font-size: 13px;
  font-weight: 500;
}

.puzzle-buttons {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.empty-state {
  text-align: center;
  padding: 45px 12px;
}

.empty-icon {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 17px;
  display: grid;
}

.empty-state h2 {
  font-size: 24px;
}

.empty-state p {
  max-width: 440px;
  color: var(--muted-foreground);
  margin: 10px auto 22px;
  font-size: 13px;
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  display: grid;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.category-card h2 {
  margin: 18px 0 9px;
  font-size: 21px;
}

.category-card p {
  color: var(--muted-foreground);
  font-size: 12px;
}

.category-card .category-link {
  color: var(--primary);
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  font-size: 12px;
  display: flex;
}

.level-tag {
  color: var(--primary);
  background: var(--secondary);
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 10px;
}

.library-top {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  display: flex;
}

.filter-tabs {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}

.filter-tabs .selected {
  background: var(--secondary);
  color: var(--primary);
}

.auth-page {
  max-width: 440px;
  min-height: calc(100vh - 185px);
  margin: auto;
  padding: 56px 24px 75px;
}

.auth-page .page-heading {
  text-align: center;
}

.auth-page h1 {
  font-size: 34px;
}

.auth-form {
  gap: 17px;
  display: grid;
}

.auth-form label {
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  display: grid;
}

.auth-form button {
  height: 44px;
}

.auth-note {
  text-align: center;
  color: var(--muted-foreground);
  margin-top: 22px;
  font-size: 12px;
}

.auth-note a {
  color: var(--primary);
  text-decoration: underline;
}

.auth-guest {
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  margin-top: 32px;
  padding-top: 25px;
  font-size: 12px;
}

.progress-metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
  display: grid;
}

.progress-metric {
  border-right: 1px solid var(--border);
  padding: 27px 20px;
}

.progress-metric:last-child {
  border: 0;
}

.progress-metric h2 {
  font: 11px var(--font-sans);
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.progress-metric strong {
  font: 36px var(--font-display);
  margin: 12px 0;
  display: block;
}

.progress-metric p {
  color: var(--muted-foreground);
  font-size: 11px;
}

.progress-columns {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 35px;
  display: grid;
}

.progress-columns h2 {
  font-size: 22px;
}

.data-row {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  padding: 13px 0;
  font-size: 13px;
  display: flex;
}

.promotion-picker {
  background: var(--background);
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .promotion-picker {
    background: color-mix(in oklab, var(--background) 92%, transparent);
  }
}

.promotion-picker {
  z-index: 10;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  display: flex;
}

.promotion-options {
  gap: 8px;
  display: flex;
}

.promotion-options button {
  width: 64px;
  height: 64px;
  font-size: 12px;
}

.promotion-picker h2 {
  font-size: 25px;
}

.admin-tabs {
  border-bottom: 1px solid var(--border);
  gap: 12px;
  padding-bottom: 12px;
  display: flex;
}

.lesson-copy {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.9;
}

.breadcrumb {
  color: var(--primary);
  align-items: center;
  gap: 8px;
  font-size: 12px;
  display: inline-flex;
}

.hero-button {
  color: oklch(99% .004 40);
  background: oklch(42% .1 15);
}

.hero-outline {
  border-color: var(--hero-ink);
  background: none;
}

@supports (color: color-mix(in lab, red, red)) {
  .hero-outline {
    border-color: color-mix(in oklab, var(--hero-ink) 35%, transparent);
  }
}

.hero-outline {
  color: var(--hero-ink);
}

.hero-outline:hover {
  background: var(--hero-wash);
}

@supports (color: color-mix(in lab, red, red)) {
  .hero-outline:hover {
    background: color-mix(in oklab, var(--hero-wash) 60%, transparent);
  }
}

@media (min-width: 1500px) {
  .home-hero {
    min-height: 600px;
  }

  .hero-inner {
    padding-top: 80px;
  }
}

@media (max-width: 1100px) {
  .header-inner {
    gap: 18px;
    padding: 0 28px;
  }

  .desktop-nav {
    gap: 19px;
  }

  .header-actions {
    gap: 12px;
  }

  .hero-inner h1 {
    max-width: 510px;
    font-size: 50px;
  }

  .home-hero {
    min-height: 540px;
  }

  .workspace {
    gap: 25px;
  }
}

@media (max-width: 850px) {
  .site-header {
    height: 80px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero-inner {
    padding: 50px 32px;
  }

  .hero-inner h1 {
    max-width: 460px;
    font-size: 44px;
  }

  .hero-description {
    max-width: 340px;
  }

  .home-content {
    padding: 35px 28px;
  }

  .path-grid {
    gap: 12px;
  }

  .path-card {
    padding: 20px;
  }

  .path-card h3 {
    font-size: 19px;
  }

  .page {
    padding: 35px 28px 50px;
  }

  .workspace {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px;
  }

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

  .site-footer {
    padding: 22px 28px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 20px;
  }

  .brand svg {
    width: 31px;
  }

  .brand > span {
    font-size: 25px;
  }

  .header-actions {
    gap: 5px;
  }

  .login-link, .signup-button {
    display: none;
  }

  .home-hero {
    min-height: 620px;
  }

  .hero-inner {
    padding: 37px 24px 260px;
  }

  .hero-inner h1 {
    max-width: 340px;
    margin: 22px 0 15px;
    font-size: 40px;
    line-height: 1.15;
  }

  .hero-description {
    max-width: 330px;
    font-size: 13px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 22px;
  }

  .hero-actions a {
    height: 43px;
    padding: 0 14px;
    font-size: 12px;
  }

  .home-content {
    padding: 30px 20px 35px;
  }

  .section-heading h2 {
    font-size: 25px;
  }

  .path-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .path-card {
    padding: 22px;
  }

  .path-top {
    margin-bottom: 14px;
  }

  .path-card h3 {
    font-size: 23px;
  }

  .path-card p {
    max-width: none;
    font-size: 13px;
  }

  .site-footer {
    gap: 10px;
    padding: 22px 20px;
    font-size: 9px;
  }

  .page {
    padding: 30px 20px 40px;
  }

  .page-heading h1 {
    font-size: 33px;
  }

  .page-heading p {
    font-size: 13px;
  }

  .workspace {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .board-column {
    margin-left: -20px;
    margin-right: -20px;
  }

  .board-wrapper, .board-empty {
    border-radius: 0;
  }

  .board-bar {
    padding: 13px 20px;
  }

  .side-panel {
    padding-top: 0;
  }

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

  .library-top {
    flex-direction: column;
    align-items: start;
    gap: 15px;
  }

  .progress-metrics {
    grid-template-columns: 1fr;
  }

  .progress-metric {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
  }

  .progress-columns {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .panel-section {
    padding: 20px 0;
  }

  .promotion-options button {
    width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

.home-hero {
  --px: 0;
  --py: 0;
  --gx: 30%;
  --gy: 40%;
  background: linear-gradient(#d5c2ba, #ddcac1 62%, #ecded5);
}

.home-hero .hero-image {
  object-position: left center;
  width: min(62%, 1100px);
  transform: translate3d(calc(var(--px) * -14px), calc(var(--py) * -9px), 0) scale(1.06);
  will-change: transform;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  left: auto;
  right: 0;
  -webkit-mask-image: linear-gradient(to right, #0000, #000 24%);
  mask-image: linear-gradient(to right, #0000, #000 24%);
}

.hero-glow {
  pointer-events: none;
  background: radial-gradient(420px circle at var(--gx) var(--gy), #fff8f061, transparent 70%);
  opacity: 0;
  transition: opacity .4s;
  position: absolute;
  inset: 0;
}

.home-hero:hover .hero-glow {
  opacity: 1;
}

.hero-inner {
  transform: translate3d(calc(var(--px) * 5px), calc(var(--py) * 3px), 0);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.hero-actions a {
  transition: transform .18s, box-shadow .18s, opacity .18s;
}

.hero-actions a:hover, .hero-actions a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px oklch(30% .06 15 / .18);
}

.nudge {
  transition: transform .18s;
}

a:hover > .nudge, a:focus-visible > .nudge {
  transform: translateX(4px);
}

.mini-board {
  grid-template-columns: minmax(0, 360px) 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
  display: grid;
}

.mini-board-board .board-wrapper {
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 14px 40px oklch(30% .04 15 / .14);
}

.mini-board-board:hover .board-wrapper {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px oklch(30% .04 15 / .2);
}

.mini-board-copy h2 {
  margin-bottom: 8px;
  font-size: 29px;
}

.mini-board-copy p {
  color: var(--muted-foreground);
  max-width: 380px;
  margin-bottom: 18px;
  font-size: 14px;
}

.mini-board-count {
  color: var(--muted-foreground);
  font-weight: 400;
}

.mini-board-actions {
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}

.path-card {
  --px: 0;
  --py: 0;
  --gx: 50%;
  --gy: 50%;
  transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .2s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.path-card:before {
  content: "";
  pointer-events: none;
  background: radial-gradient(260px circle at var(--gx) var(--gy), var(--primary), transparent 70%);
  position: absolute;
  inset: 0;
}

@supports (color: color-mix(in lab, red, red)) {
  .path-card:before {
    background: radial-gradient(260px circle at var(--gx) var(--gy), color-mix(in oklab, var(--primary) 9%, transparent), transparent 70%);
  }
}

.path-card:before {
  opacity: 0;
  transition: opacity .25s;
}

.path-card:hover, .path-card:focus-visible {
  transform: perspective(900px) rotateX(calc(var(--py) * -5deg)) rotateY(calc(var(--px) * 6deg)) translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 16px 36px oklch(30% .04 15 / .12);
}

.path-card:hover:before, .path-card:focus-visible:before {
  opacity: 1;
}

.path-card .path-link svg {
  transition: transform .2s;
}

.path-card:hover .path-link svg, .path-card:focus-visible .path-link svg {
  transform: translate(3px, -3px);
}

.path-icon svg {
  transition: transform .3s;
}

.path-puzzles:hover .path-icon svg, .path-puzzles:focus-visible .path-icon svg {
  animation: .6s wiggle;
}

.path-learn:hover .path-icon svg, .path-learn:focus-visible .path-icon svg {
  animation: .7s page-flip;
}

.path-practice:hover .path-icon svg, .path-practice:focus-visible .path-icon svg {
  transform: rotate(90deg) scale(1.1);
}

.path-card:hover .path-icon, .path-card:focus-visible .path-icon {
  background: var(--primary);
  color: var(--primary-foreground);
  transition: background .25s, color .25s;
}

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0);
  }

  25% {
    transform: rotate(-14deg);
  }

  50% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-5deg);
  }
}

@keyframes page-flip {
  0% {
    transform: perspective(200px) rotateY(0);
  }

  50% {
    transform: perspective(200px) rotateY(180deg);
  }

  100% {
    transform: perspective(200px) rotateY(360deg);
  }
}

@media (max-width: 850px) {
  .home-hero .hero-image {
    opacity: .85;
    width: 70%;
  }

  .mini-board {
    grid-template-columns: minmax(0, 300px) 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .home-hero .hero-image {
    object-position: 60% center;
    opacity: 1;
    width: 100%;
    height: 42%;
    top: auto;
    bottom: 0;
    -webkit-mask-image: linear-gradient(#0000, #000 20%);
    mask-image: linear-gradient(#0000, #000 20%);
  }

  .mini-board {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 40px;
  }

  .mini-board-board {
    max-width: 420px;
  }

  .mini-board-copy h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-image, .hero-inner, .path-card:hover, .path-card:focus-visible, .hero-actions a:hover, .mini-board-board:hover .board-wrapper {
    transform: none;
  }

  .hero-glow {
    display: none;
  }
}

.header-username {
  font-size: 13px;
  font-weight: 600;
}

.mobile-nav button {
  text-align: left;
  font: inherit;
}

.footer-credit {
  margin: 0;
  font-size: 11px;
}

.footer-credit a {
  text-underline-offset: 2px;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .header-username {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
  }
}

.puzzle-filter {
  color: var(--muted-foreground);
  align-items: center;
  gap: 10px;
  margin: -12px 0 18px;
  font-size: 14px;
  display: flex;
}

.puzzle-filter .field {
  max-width: 300px;
}

.puzzle-filter a, .game-link {
  color: var(--primary);
  text-underline-offset: 2px;
  text-decoration: underline;
}

.rating-change {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.rating-change span {
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 400;
  display: block;
}

.game-link {
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  display: inline-flex;
}

.game-link svg {
  width: 14px;
}

.admin-panel {
  gap: 12px;
  margin-top: 18px;
  display: grid;
}

.admin-toolbar {
  align-items: center;
  gap: 10px;
  display: flex;
}

.admin-toolbar .field {
  max-width: 340px;
}

.admin-row {
  align-items: center;
  gap: 12px;
}

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

.admin-form {
  max-width: 640px;
}

.admin-form h2 {
  font-family: var(--font-display);
  font-size: 22px;
}

.admin-check {
  align-items: center;
  gap: 8px;
  display: flex !important;
}

@media (max-width: 640px) {
  .admin-tabs {
    overflow-x: auto;
  }

  .admin-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.play-setup {
  gap: 18px;
  display: grid;
}

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

.mode-switch button, .bot-card {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  border-radius: 10px;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: flex;
}

.mode-switch button:hover, .bot-card:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.mode-switch button.active, .bot-card.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.mode-switch svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex: none;
}

.mode-switch strong, .bot-card strong {
  color: var(--foreground);
  margin-bottom: 2px;
  font-size: 15px;
  display: block;
}

.bot-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  display: grid;
}

.bot-avatar {
  color: #fff;
  font-family: var(--font-display);
  border-radius: 50%;
  flex: none;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  display: inline-flex;
}

.bot-rating {
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.bot-blurb {
  margin-top: 3px;
  font-size: 12px;
  display: block;
}

.play-start {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.side-picker {
  gap: 6px;
  display: flex;
}

.player-strip {
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
}

.thinking {
  color: var(--muted-foreground);
  margin-left: auto;
  font-size: 12px;
}

.eval {
  gap: 6px;
  margin-bottom: 14px;
  display: grid;
}

.coach-note {
  border: 1px solid var(--border);
  border-left: 4px solid var(--q, var(--border));
  background: var(--card);
  border-radius: 8px;
  gap: 12px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
}

.coach-note p {
  margin: 4px 0 0;
}

.quality-icon {
  vertical-align: middle;
  flex: none;
  display: inline-block;
}

.quality-icon circle {
  fill: var(--q);
}

.quality-icon text {
  fill: #fff;
  font-family: var(--font-sans);
  letter-spacing: -.5px;
  font-size: 12.5px;
  font-weight: 800;
}

.quality-mini {
  margin-left: 4px;
}

.board-badge {
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px oklch(20% .02 20 / .45));
  width: 38%;
  height: 38%;
  animation: .25s ease-out badge-pop;
  position: absolute;
  top: -4%;
  right: -4%;
}

.board-badge .quality-icon {
  width: 100%;
  height: 100%;
}

@keyframes badge-pop {
  from {
    opacity: 0;
    transform: scale(.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .board-badge {
    animation: none;
  }
}

.label-counts {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  font-size: 14px;
  display: grid;
}

.label-counts > div {
  grid-template-columns: 1fr 48px 26px;
  align-items: center;
  min-height: 32px;
  display: grid;
}

.label-counts dt {
  font-weight: 600;
}

.label-counts dd {
  text-align: center;
  color: var(--q);
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.label-counts .none dt, .label-counts .none dd {
  opacity: .55;
}

.move-cell {
  align-items: center;
  display: inline-flex;
}

.q-brilliant {
  --q: #1f9e93;
}

.q-great {
  --q: #3f7fbf;
}

.q-book {
  --q: #a37c55;
}

.q-best {
  --q: #4f8a5b;
}

.q-excellent {
  --q: #6c9a63;
}

.q-good {
  --q: #8a9a7a;
}

.q-inaccuracy {
  --q: #c99a2e;
}

.q-mistake {
  --q: #d0702f;
}

.q-miss {
  --q: #d65f4c;
}

.q-blunder {
  --q: #b03a3a;
}

.game-review {
  gap: 14px;
  margin-bottom: 10px;
  display: grid;
}

.review-accuracy {
  margin: 0;
  font-size: 14px;
}

.review-accuracy strong {
  font-size: 30px;
  font-family: var(--font-display);
  margin-right: 6px;
}

.review-accuracy span {
  color: var(--muted-foreground);
  font-size: 12px;
  display: block;
}

@media (max-width: 640px) {
  .mode-switch {
    grid-template-columns: 1fr;
  }
}

.coach-setup {
  gap: 22px;
  display: grid;
}

.coach-intro {
  align-items: center;
  gap: 18px;
  display: flex;
}

.coach-face {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--border);
  border-radius: 50%;
  flex: none;
}

.speech {
  border: 1px solid var(--border);
  background: var(--card);
  max-width: 520px;
  box-shadow: var(--shadow-soft);
  border-radius: 14px;
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.speech:before, .speech:after {
  content: "";
  border: 9px solid #0000;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.speech:before {
  border-right-color: var(--border);
  left: -19px;
}

.speech:after {
  border-right-color: var(--card);
  left: -17px;
}

.coach-options {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  display: grid;
}

.coach-options .panel-title {
  font-size: 19px;
}

.level-list, .style-list {
  gap: 6px;
  display: grid;
}

.level-list button, .style-list button {
  text-align: left;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 14px;
  font-size: 14px;
  transition: border-color .15s, background .15s;
  display: flex;
}

.level-list button span {
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}

.style-list button {
  color: var(--muted-foreground);
  padding: 11px 14px;
  font-size: 13px;
  display: block;
}

.style-list button strong {
  color: var(--foreground);
  font-size: 15px;
  display: block;
}

.level-list button:hover, .style-list button:hover {
  border-color: var(--primary);
}

.level-list button.active, .style-list button.active {
  border-color: var(--primary);
  background: var(--accent);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.level-list button.active span {
  color: var(--primary);
}

.style-list + .panel-text {
  margin-top: 12px;
}

.side-picker {
  align-items: center;
}

.side-picker > .panel-text {
  margin-right: 4px;
  font-size: 13px;
}

.coach-talk {
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  display: flex;
}

.coach-talk .speech {
  flex: 1;
  min-height: 52px;
}

.board-with-eval {
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 8px;
  display: grid;
}

.eval-vertical {
  background: oklch(32% .02 20);
  border-radius: 4px;
  flex-direction: column;
  justify-content: flex-end;
  display: flex;
  overflow: hidden;
}

.eval-vertical.flipped {
  justify-content: flex-start;
}

.eval-vertical span {
  background: oklch(96% .01 80);
  transition: height .4s;
  display: block;
}

@media (max-width: 640px) {
  .coach-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .coach-intro {
    gap: 14px;
  }

  .coach-intro .coach-face {
    width: 72px;
    height: 72px;
  }

  .coach-talk .coach-face {
    width: 52px;
    height: 52px;
  }

  .board-with-eval {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 4px;
  }

  .board-column .player-strip {
    padding: 0 20px;
  }

  .play-start {
    flex-direction: column;
    align-items: stretch;
  }

  .side-picker {
    flex-wrap: wrap;
  }
}

.hub-link {
  font-family: var(--font-mono, ui-monospace, monospace);
  opacity: .75;
  font-size: .8em;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-font-weight {
  syntax: "*";
  inherits: false
}

@property --tw-tracking {
  syntax: "*";
  inherits: false
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
