/*!
 * Sllina - main.css
 * ----------------
 * Extracted verbatim from the old single-file index.html.
 * Layered theme tokens + all app styles.
 * Content below keeps its ORIGINAL order; navigate via the
 * banner comments inside this file.
 */

/*
 * Sllina - Styles (styles.css)
 * ─────────────────────────────
 * Two original <style> blocks merged:
 *   1) @layer properties / theme variables (Tailwind-style tokens)
 *   2) Main app & game styles
 * ─────────────────────────────
 */
@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-translate-x: 0;
      --tw-translate-y: 0;
      --tw-translate-z: 0;
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-space-y-reverse: 0;
      --tw-space-x-reverse: 0;
      --tw-border-style: solid;
      --tw-leading: initial;
      --tw-font-weight: initial;
      --tw-tracking: initial;
      --tw-ordinal: initial;
      --tw-slashed-zero: initial;
      --tw-numeric-figure: initial;
      --tw-numeric-spacing: initial;
      --tw-numeric-fraction: 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-duration: initial;
      --tw-ease: initial;
      --tw-content: '';
    }
  }
}
@layer theme {
  :root,
  :host {
    --font-sans:
      ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
      'Segoe UI Symbol', 'Noto Color Emoji';
    --font-mono:
      ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
      monospace;
    --color-red-50: oklch(97.1% 0.013 17.38);
    --color-red-300: oklch(80.8% 0.114 19.571);
    --color-red-400: oklch(70.4% 0.191 22.216);
    --color-red-500: oklch(63.7% 0.237 25.331);
    --color-red-600: oklch(57.7% 0.245 27.325);
    --color-gray-50: oklch(98.5% 0.002 247.839);
    --color-gray-600: oklch(44.6% 0.03 256.802);
    --color-gray-900: oklch(21% 0.034 264.665);
    --color-black: #000;
    --spacing: 0.25rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --text-xs: 0.75rem;
    --text-xs--line-height: calc(1 / 0.75);
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --text-base: 1rem;
    --text-base--line-height: 1.5;
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --tracking-tight: -0.025em;
    --tracking-widest: 0.1em;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --animate-spin: spin 1s linear infinite;
    --animate-pulse: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    --aspect-video: 16 / 9;
    --default-transition-duration: 0.15s;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@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,
      ui-sans-serif,
      system-ui,
      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;
    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: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    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;
  }
}
@layer components;
@layer utilities {
  .\@container\/field-group {
    container: field-group/inline-size;
  }
  .pointer-events-auto {
    pointer-events: auto;
  }
  .pointer-events-none {
    pointer-events: none;
  }
  .invisible {
    visibility: hidden;
  }
  .sr-only {
    clip-path: inset(50%);
    white-space: nowrap;
    border-width: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }
  .inset-x-0 {
    inset-inline: calc(var(--spacing) * 0);
  }
  .inset-y-0 {
    inset-block: calc(var(--spacing) * 0);
  }
  .-top-12 {
    top: calc(var(--spacing) * -12);
  }
  .top-0 {
    top: calc(var(--spacing) * 0);
  }
  .top-1\.5 {
    top: calc(var(--spacing) * 1.5);
  }
  .top-1\/2 {
    top: 50%;
  }
  .top-2 {
    top: calc(var(--spacing) * 2);
  }
  .top-3\.5 {
    top: calc(var(--spacing) * 3.5);
  }
  .top-4 {
    top: calc(var(--spacing) * 4);
  }
  .top-\[1px\] {
    top: 1px;
  }
  .top-\[50\%\] {
    top: 50%;
  }
  .top-\[60\%\] {
    top: 60%;
  }
  .top-full {
    top: 100%;
  }
  .-right-12 {
    right: calc(var(--spacing) * -12);
  }
  .right-0 {
    right: calc(var(--spacing) * 0);
  }
  .right-1 {
    right: calc(var(--spacing) * 1);
  }
  .right-2 {
    right: calc(var(--spacing) * 2);
  }
  .right-3 {
    right: calc(var(--spacing) * 3);
  }
  .right-4 {
    right: calc(var(--spacing) * 4);
  }
  .-bottom-12 {
    bottom: calc(var(--spacing) * -12);
  }
  .bottom-0 {
    bottom: calc(var(--spacing) * 0);
  }
  .-left-12 {
    left: calc(var(--spacing) * -12);
  }
  .left-0 {
    left: calc(var(--spacing) * 0);
  }
  .left-1\/2 {
    left: 50%;
  }
  .left-2 {
    left: calc(var(--spacing) * 2);
  }
  .left-\[50\%\] {
    left: 50%;
  }
  .z-10 {
    z-index: 10;
  }
  .z-20 {
    z-index: 20;
  }
  .z-50 {
    z-index: 50;
  }
  .z-\[1\] {
    z-index: 1;
  }
  .z-\[100\] {
    z-index: 100;
  }
  .order-first {
    order: -9999;
  }
  .order-last {
    order: 9999;
  }
  .\!m-0 {
    margin: calc(var(--spacing) * 0) !important;
  }
  .-mx-1 {
    margin-inline: calc(var(--spacing) * -1);
  }
  .mx-2 {
    margin-inline: calc(var(--spacing) * 2);
  }
  .mx-3\.5 {
    margin-inline: calc(var(--spacing) * 3.5);
  }
  .mx-4 {
    margin-inline: calc(var(--spacing) * 4);
  }
  .mx-auto {
    margin-inline: auto;
  }
  .-my-2 {
    margin-block: calc(var(--spacing) * -2);
  }
  .my-0 {
    margin-block: calc(var(--spacing) * 0);
  }
  .my-0\.5 {
    margin-block: calc(var(--spacing) * 0.5);
  }
  .my-1 {
    margin-block: calc(var(--spacing) * 1);
  }
  .-mt-4 {
    margin-top: calc(var(--spacing) * -4);
  }
  .mt-1\.5 {
    margin-top: calc(var(--spacing) * 1.5);
  }
  .mt-2 {
    margin-top: calc(var(--spacing) * 2);
  }
  .mt-4 {
    margin-top: calc(var(--spacing) * 4);
  }
  .mt-24 {
    margin-top: calc(var(--spacing) * 24);
  }
  .mt-auto {
    margin-top: auto;
  }
  .mr-2 {
    margin-right: calc(var(--spacing) * 2);
  }
  .mb-1 {
    margin-bottom: calc(var(--spacing) * 1);
  }
  .mb-2 {
    margin-bottom: calc(var(--spacing) * 2);
  }
  .mb-3 {
    margin-bottom: calc(var(--spacing) * 3);
  }
  .mb-4 {
    margin-bottom: calc(var(--spacing) * 4);
  }
  .-ml-4 {
    margin-left: calc(var(--spacing) * -4);
  }
  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }
  .ml-4 {
    margin-left: calc(var(--spacing) * 4);
  }
  .ml-auto {
    margin-left: auto;
  }
  .line-clamp-2 {
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }
  .block {
    display: block;
  }
  .flex {
    display: flex;
  }
  .grid {
    display: grid;
  }
  .hidden {
    display: none;
  }
  .inline-flex {
    display: inline-flex;
  }
  .table {
    display: table;
  }
  .aspect-square {
    aspect-ratio: 1;
  }
  .aspect-video {
    aspect-ratio: var(--aspect-video);
  }
  .size-4 {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .size-6 {
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
  }
  .size-8 {
    width: calc(var(--spacing) * 8);
    height: calc(var(--spacing) * 8);
  }
  .size-10 {
    width: calc(var(--spacing) * 10);
    height: calc(var(--spacing) * 10);
  }
  .size-\[--cell-size\] {
    width: --cell-size;
    height: --cell-size;
  }
  .h-1\.5 {
    height: calc(var(--spacing) * 1.5);
  }
  .h-2 {
    height: calc(var(--spacing) * 2);
  }
  .h-2\.5 {
    height: calc(var(--spacing) * 2.5);
  }
  .h-3 {
    height: calc(var(--spacing) * 3);
  }
  .h-3\.5 {
    height: calc(var(--spacing) * 3.5);
  }
  .h-4 {
    height: calc(var(--spacing) * 4);
  }
  .h-5 {
    height: calc(var(--spacing) * 5);
  }
  .h-6 {
    height: calc(var(--spacing) * 6);
  }
  .h-7 {
    height: calc(var(--spacing) * 7);
  }
  .h-8 {
    height: calc(var(--spacing) * 8);
  }
  .h-9 {
    height: calc(var(--spacing) * 9);
  }
  .h-10 {
    height: calc(var(--spacing) * 10);
  }
  .h-12 {
    height: calc(var(--spacing) * 12);
  }
  .h-\[--cell-size\] {
    height: --cell-size;
  }
  .h-\[1px\] {
    height: 1px;
  }
  .h-\[var\(--radix-navigation-menu-viewport-height\)\] {
    height: var(--radix-navigation-menu-viewport-height);
  }
  .h-\[var\(--radix-select-trigger-height\)\] {
    height: var(--radix-select-trigger-height);
  }
  .h-auto {
    height: auto;
  }
  .h-full {
    height: 100%;
  }
  .h-px {
    height: 1px;
  }
  .h-svh {
    height: 100svh;
  }
  .max-h-\[--radix-context-menu-content-available-height\] {
    max-height: --radix-context-menu-content-available-height;
  }
  .max-h-\[--radix-select-content-available-height\] {
    max-height: --radix-select-content-available-height;
  }
  .max-h-\[300px\] {
    max-height: 300px;
  }
  .max-h-\[var\(--radix-dropdown-menu-content-available-height\)\] {
    max-height: var(--radix-dropdown-menu-content-available-height);
  }
  .max-h-screen {
    max-height: 100vh;
  }
  .min-h-0 {
    min-height: calc(var(--spacing) * 0);
  }
  .min-h-8 {
    min-height: calc(var(--spacing) * 8);
  }
  .min-h-9 {
    min-height: calc(var(--spacing) * 9);
  }
  .min-h-10 {
    min-height: calc(var(--spacing) * 10);
  }
  .min-h-\[60px\] {
    min-height: 60px;
  }
  .min-h-screen {
    min-height: 100vh;
  }
  .min-h-svh {
    min-height: 100svh;
  }
  .w-0 {
    width: calc(var(--spacing) * 0);
  }
  .w-1 {
    width: calc(var(--spacing) * 1);
  }
  .w-2 {
    width: calc(var(--spacing) * 2);
  }
  .w-2\.5 {
    width: calc(var(--spacing) * 2.5);
  }
  .w-3 {
    width: calc(var(--spacing) * 3);
  }
  .w-3\.5 {
    width: calc(var(--spacing) * 3.5);
  }
  .w-3\/4 {
    width: 75%;
  }
  .w-4 {
    width: calc(var(--spacing) * 4);
  }
  .w-5 {
    width: calc(var(--spacing) * 5);
  }
  .w-7 {
    width: calc(var(--spacing) * 7);
  }
  .w-8 {
    width: calc(var(--spacing) * 8);
  }
  .w-9 {
    width: calc(var(--spacing) * 9);
  }
  .w-10 {
    width: calc(var(--spacing) * 10);
  }
  .w-64 {
    width: calc(var(--spacing) * 64);
  }
  .w-72 {
    width: calc(var(--spacing) * 72);
  }
  .w-\[--cell-size\] {
    width: --cell-size;
  }
  .w-\[1px\] {
    width: 1px;
  }
  .w-\[100px\] {
    width: 100px;
  }
  .w-\[var\(--sidebar-width\)\] {
    width: var(--sidebar-width);
  }
  .w-auto {
    width: auto;
  }
  .w-fit {
    width: fit-content;
  }
  .w-full {
    width: 100%;
  }
  .w-max {
    width: max-content;
  }
  .w-px {
    width: 1px;
  }
  .max-w-\[var\(--skeleton-width\)\] {
    max-width: var(--skeleton-width);
  }
  .max-w-lg {
    max-width: var(--container-lg);
  }
  .max-w-max {
    max-width: max-content;
  }
  .max-w-md {
    max-width: var(--container-md);
  }
  .max-w-sm {
    max-width: var(--container-sm);
  }
  .min-w-0 {
    min-width: calc(var(--spacing) * 0);
  }
  .min-w-5 {
    min-width: calc(var(--spacing) * 5);
  }
  .min-w-8 {
    min-width: calc(var(--spacing) * 8);
  }
  .min-w-9 {
    min-width: calc(var(--spacing) * 9);
  }
  .min-w-10 {
    min-width: calc(var(--spacing) * 10);
  }
  .min-w-\[--cell-size\] {
    min-width: --cell-size;
  }
  .min-w-\[8rem\] {
    min-width: 8rem;
  }
  .min-w-\[12rem\] {
    min-width: 12rem;
  }
  .min-w-\[var\(--radix-select-trigger-width\)\] {
    min-width: var(--radix-select-trigger-width);
  }
  .flex-1 {
    flex: 1;
  }
  .shrink-0 {
    flex-shrink: 0;
  }
  .grow {
    flex-grow: 1;
  }
  .grow-0 {
    flex-grow: 0;
  }
  .basis-full {
    flex-basis: 100%;
  }
  .caption-bottom {
    caption-side: bottom;
  }
  .border-collapse {
    border-collapse: collapse;
  }
  .origin-\[--radix-context-menu-content-transform-origin\] {
    transform-origin: --radix-context-menu-content-transform-origin;
  }
  .origin-\[--radix-dropdown-menu-content-transform-origin\] {
    transform-origin: --radix-dropdown-menu-content-transform-origin;
  }
  .origin-\[--radix-hover-card-content-transform-origin\] {
    transform-origin: --radix-hover-card-content-transform-origin;
  }
  .origin-\[--radix-menubar-content-transform-origin\] {
    transform-origin: --radix-menubar-content-transform-origin;
  }
  .origin-\[--radix-popover-content-transform-origin\] {
    transform-origin: --radix-popover-content-transform-origin;
  }
  .origin-\[--radix-select-content-transform-origin\] {
    transform-origin: --radix-select-content-transform-origin;
  }
  .origin-\[--radix-tooltip-content-transform-origin\] {
    transform-origin: --radix-tooltip-content-transform-origin;
  }
  .-translate-x-1\/2 {
    --tw-translate-x: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .-translate-x-px {
    --tw-translate-x: -1px;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .translate-x-\[-50\%\] {
    --tw-translate-x: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .translate-x-px {
    --tw-translate-x: 1px;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .-translate-y-1\/2 {
    --tw-translate-y: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .translate-y-\[-50\%\] {
    --tw-translate-y: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .rotate-45 {
    rotate: 45deg;
  }
  .rotate-90 {
    rotate: 90deg;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,)
      var(--tw-skew-y,);
  }
  .animate-pulse {
    animation: var(--animate-pulse);
  }
  .animate-spin {
    animation: var(--animate-spin);
  }
  .cursor-default {
    cursor: default;
  }
  .cursor-pointer {
    cursor: pointer;
  }
  .cursor-text {
    cursor: text;
  }
  .touch-none {
    touch-action: none;
  }
  .resize-none {
    resize: none;
  }
  .list-disc {
    list-style-type: disc;
  }
  .list-none {
    list-style-type: none;
  }
  .flex-col {
    flex-direction: column;
  }
  .flex-col-reverse {
    flex-direction: column-reverse;
  }
  .flex-row {
    flex-direction: row;
  }
  .flex-wrap {
    flex-wrap: wrap;
  }
  .place-content-center {
    place-content: center;
  }
  .items-center {
    align-items: center;
  }
  .items-end {
    align-items: flex-end;
  }
  .items-start {
    align-items: flex-start;
  }
  .items-stretch {
    align-items: stretch;
  }
  .justify-between {
    justify-content: space-between;
  }
  .justify-center {
    justify-content: center;
  }
  .justify-start {
    justify-content: flex-start;
  }
  .gap-1 {
    gap: calc(var(--spacing) * 1);
  }
  .gap-1\.5 {
    gap: calc(var(--spacing) * 1.5);
  }
  .gap-2 {
    gap: calc(var(--spacing) * 2);
  }
  .gap-2\.5 {
    gap: calc(var(--spacing) * 2.5);
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .gap-4 {
    gap: calc(var(--spacing) * 4);
  }
  .gap-6 {
    gap: calc(var(--spacing) * 6);
  }
  .gap-7 {
    gap: calc(var(--spacing) * 7);
  }
  :where(.space-y-1\.5 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 1.5) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 1.5) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-y-2 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)));
  }
  :where(.space-x-1 > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 1) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 1) * calc(1 - var(--tw-space-x-reverse)));
  }
  :where(.space-x-4 > :not(:last-child)) {
    --tw-space-x-reverse: 0;
    margin-inline-start: calc(calc(var(--spacing) * 4) * var(--tw-space-x-reverse));
    margin-inline-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
  }
  .self-stretch {
    align-self: stretch;
  }
  .overflow-auto {
    overflow: auto;
  }
  .overflow-hidden {
    overflow: hidden;
  }
  .overflow-x-hidden {
    overflow-x: hidden;
  }
  .overflow-y-auto {
    overflow-y: auto;
  }
  .rounded-\[2px\] {
    border-radius: 2px;
  }
  .rounded-\[calc\(var\(--radius\)-5px\)\] {
    border-radius: calc(var(--radius) - 5px);
  }
  .rounded-\[inherit\] {
    border-radius: inherit;
  }
  .rounded-full {
    border-radius: 3.40282e38px;
  }
  .rounded-lg {
    border-radius: var(--radius-lg);
  }
  .rounded-md {
    border-radius: var(--radius-md);
  }
  .rounded-none {
    border-radius: 0;
  }
  .rounded-sm {
    border-radius: var(--radius-sm);
  }
  .rounded-xl {
    border-radius: var(--radius-xl);
  }
  .rounded-t-\[10px\] {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .rounded-l-md {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
  }
  .rounded-tl-sm {
    border-top-left-radius: var(--radius-sm);
  }
  .rounded-r-md {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .border-0 {
    border-style: var(--tw-border-style);
    border-width: 0;
  }
  .border-2 {
    border-style: var(--tw-border-style);
    border-width: 2px;
  }
  .border-\[1\.5px\] {
    border-style: var(--tw-border-style);
    border-width: 1.5px;
  }
  .border-y {
    border-block-style: var(--tw-border-style);
    border-block-width: 1px;
  }
  .border-t {
    border-top-style: var(--tw-border-style);
    border-top-width: 1px;
  }
  .border-r {
    border-right-style: var(--tw-border-style);
    border-right-width: 1px;
  }
  .border-b {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .border-l {
    border-left-style: var(--tw-border-style);
    border-left-width: 1px;
  }
  .border-dashed {
    --tw-border-style: dashed;
    border-style: dashed;
  }
  .\[border-color\:var\(--badge-outline\)\] {
    border-color: var(--badge-outline);
  }
  .\[border-color\:var\(--button-outline\)\] {
    border-color: var(--button-outline);
  }
  .border-\[--color-border\] {
    border-color: --color-border;
  }
  .border-transparent {
    border-color: #0000;
  }
  .border-t-transparent {
    border-top-color: #0000;
  }
  .border-l-transparent {
    border-left-color: #0000;
  }
  .bg-\[--color-bg\] {
    background-color: --color-bg;
  }
  .bg-black\/80 {
    background-color: #000c;
  }
  @supports (color: color-mix(in lab, red, red)) {
    .bg-black\/80 {
      background-color: color-mix(in oklab, var(--color-black) 80%, transparent);
    }
  }
  .bg-gray-50 {
    background-color: var(--color-gray-50);
  }
  .bg-transparent {
    background-color: #0000;
  }
  .fill-current {
    fill: currentColor;
  }
  .p-0 {
    padding: calc(var(--spacing) * 0);
  }
  .p-1 {
    padding: calc(var(--spacing) * 1);
  }
  .p-2 {
    padding: calc(var(--spacing) * 2);
  }
  .p-3 {
    padding: calc(var(--spacing) * 3);
  }
  .p-4 {
    padding: calc(var(--spacing) * 4);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .p-\[1px\] {
    padding: 1px;
  }
  .px-1 {
    padding-inline: calc(var(--spacing) * 1);
  }
  .px-1\.5 {
    padding-inline: calc(var(--spacing) * 1.5);
  }
  .px-2 {
    padding-inline: calc(var(--spacing) * 2);
  }
  .px-2\.5 {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .px-3 {
    padding-inline: calc(var(--spacing) * 3);
  }
  .px-4 {
    padding-inline: calc(var(--spacing) * 4);
  }
  .px-8 {
    padding-inline: calc(var(--spacing) * 8);
  }
  .px-\[--cell-size\] {
    padding-inline: --cell-size;
  }
  .py-0\.5 {
    padding-block: calc(var(--spacing) * 0.5);
  }
  .py-1 {
    padding-block: calc(var(--spacing) * 1);
  }
  .py-1\.5 {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .py-2 {
    padding-block: calc(var(--spacing) * 2);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .py-4 {
    padding-block: calc(var(--spacing) * 4);
  }
  .py-6 {
    padding-block: calc(var(--spacing) * 6);
  }
  .pt-0 {
    padding-top: calc(var(--spacing) * 0);
  }
  .pt-3 {
    padding-top: calc(var(--spacing) * 3);
  }
  .pt-4 {
    padding-top: calc(var(--spacing) * 4);
  }
  .pt-6 {
    padding-top: calc(var(--spacing) * 6);
  }
  .pr-1 {
    padding-right: calc(var(--spacing) * 1);
  }
  .pr-2 {
    padding-right: calc(var(--spacing) * 2);
  }
  .pr-2\.5 {
    padding-right: calc(var(--spacing) * 2.5);
  }
  .pr-3 {
    padding-right: calc(var(--spacing) * 3);
  }
  .pr-8 {
    padding-right: calc(var(--spacing) * 8);
  }
  .pb-3 {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .pb-4 {
    padding-bottom: calc(var(--spacing) * 4);
  }
  .pl-2 {
    padding-left: calc(var(--spacing) * 2);
  }
  .pl-2\.5 {
    padding-left: calc(var(--spacing) * 2.5);
  }
  .pl-3 {
    padding-left: calc(var(--spacing) * 3);
  }
  .pl-4 {
    padding-left: calc(var(--spacing) * 4);
  }
  .pl-8 {
    padding-left: calc(var(--spacing) * 8);
  }
  .text-center {
    text-align: center;
  }
  .text-left {
    text-align: left;
  }
  .align-middle {
    vertical-align: middle;
  }
  .font-mono {
    font-family: var(--font-mono);
  }
  .font-sans {
    font-family: var(--font-sans);
  }
  .text-2xl {
    font-size: var(--text-2xl);
    line-height: var(--tw-leading, var(--text-2xl--line-height));
  }
  .text-base {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .text-lg {
    font-size: var(--text-lg);
    line-height: var(--tw-leading, var(--text-lg--line-height));
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .text-sm\/relaxed {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
  }
  .text-xs {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .text-\[0\.8rem\] {
    font-size: 0.8rem;
  }
  .leading-none {
    --tw-leading: 1;
    line-height: 1;
  }
  .leading-normal {
    --tw-leading: var(--leading-normal);
    line-height: var(--leading-normal);
  }
  .leading-snug {
    --tw-leading: var(--leading-snug);
    line-height: var(--leading-snug);
  }
  .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-normal {
    --tw-font-weight: var(--font-weight-normal);
    font-weight: var(--font-weight-normal);
  }
  .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);
  }
  .tracking-widest {
    --tw-tracking: var(--tracking-widest);
    letter-spacing: var(--tracking-widest);
  }
  .text-balance {
    text-wrap: balance;
  }
  .break-words {
    overflow-wrap: break-word;
  }
  .whitespace-nowrap {
    white-space: nowrap;
  }
  .text-current {
    color: currentColor;
  }
  .text-gray-600 {
    color: var(--color-gray-600);
  }
  .text-gray-900 {
    color: var(--color-gray-900);
  }
  .text-red-500 {
    color: var(--color-red-500);
  }
  .tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,)
      var(--tw-numeric-spacing,) var(--tw-numeric-fraction,);
  }
  .underline-offset-4 {
    text-underline-offset: 4px;
  }
  .opacity-0 {
    opacity: 0;
  }
  .opacity-50 {
    opacity: 0.5;
  }
  .opacity-60 {
    opacity: 0.6;
  }
  .opacity-70 {
    opacity: 0.7;
  }
  .opacity-90 {
    opacity: 0.9;
  }
  .shadow {
    --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);
  }
  .shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\] {
    --tw-shadow: 0 0 0 1px var(--tw-shadow-color, hsl(var(--sidebar-border)));
    box-shadow:
      var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
      var(--tw-ring-shadow), var(--tw-shadow);
  }
  .shadow-lg {
    --tw-shadow:
      0 10px 15px -3px var(--tw-shadow-color, #0000001a),
      0 4px 6px -4px 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);
  }
  .shadow-md {
    --tw-shadow:
      0 4px 6px -1px var(--tw-shadow-color, #0000001a),
      0 2px 4px -2px 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);
  }
  .shadow-none {
    --tw-shadow: 0 0 #0000;
    box-shadow:
      var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
      var(--tw-ring-shadow), var(--tw-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);
  }
  .shadow-xl {
    --tw-shadow:
      0 20px 25px -5px var(--tw-shadow-color, #0000001a),
      0 8px 10px -6px 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);
  }
  .shadow-xs {
    --tw-shadow: 0 1px 2px 0 var(--tw-shadow-color, #0000000d);
    box-shadow:
      var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
      var(--tw-ring-shadow), var(--tw-shadow);
  }
  .ring-0 {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + 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);
  }
  .ring-1 {
    --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);
  }
  .outline-hidden {
    --tw-outline-style: none;
    outline-style: none;
  }
  @media (forced-colors: active) {
    .outline-hidden {
      outline-offset: 2px;
      outline: 2px solid #0000;
    }
  }
  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
  .outline-2 {
    outline-style: var(--tw-outline-style);
    outline-width: 2px;
  }
  .outline-offset-2 {
    outline-offset: 2px;
  }
  .outline-transparent {
    outline-color: #0000;
  }
  .transition {
    transition-property:
      color,
      background-color,
      border-color,
      outline-color,
      text-decoration-color,
      fill,
      stroke,
      --tw-gradient-from,
      --tw-gradient-via,
      --tw-gradient-to,
      opacity,
      box-shadow,
      transform,
      translate,
      scale,
      rotate,
      filter,
      -webkit-backdrop-filter,
      backdrop-filter,
      display,
      content-visibility,
      overlay,
      pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-\[color\,box-shadow\] {
    transition-property: color, box-shadow;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-\[left\,right\,width\] {
    transition-property: left, right, width;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-\[margin\,opacity\] {
    transition-property: margin, opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-\[width\,height\,padding\] {
    transition-property: width, height, padding;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-\[width\] {
    transition-property: width;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-all {
    transition-property: all;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .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));
  }
  .transition-opacity {
    transition-property: opacity;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .transition-transform {
    transition-property: transform, translate, scale, rotate;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
  .duration-100 {
    --tw-duration: 0.1s;
    transition-duration: 0.1s;
  }
  .duration-200 {
    --tw-duration: 0.2s;
    transition-duration: 0.2s;
  }
  .duration-300 {
    --tw-duration: 0.3s;
    transition-duration: 0.3s;
  }
  .duration-1000 {
    --tw-duration: 1s;
    transition-duration: 1s;
  }
  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }
  .ease-linear {
    --tw-ease: linear;
    transition-timing-function: linear;
  }
  .outline-none {
    --tw-outline-style: none;
    outline-style: none;
  }
  .select-none {
    -webkit-user-select: none;
    user-select: none;
  }
  .\[--cell-size\:2rem\] {
    --cell-size: 2rem;
  }
  .group-focus-within\/menu-item\:opacity-100:is(:where(.group\/menu-item):focus-within *) {
    opacity: 1;
  }
  @media (hover: hover) {
    .group-hover\:opacity-100:is(:where(.group):hover *),
    .group-hover\/menu-item\:opacity-100:is(:where(.group\/menu-item):hover *) {
      opacity: 1;
    }
  }
  .group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(
    :where(.group\/menu-item):has([data-sidebar='menu-action']) *
  ) {
    padding-right: calc(var(--spacing) * 8);
  }
  .group-has-\[\[data-orientation\=horizontal\]\]\/field\:text-balance:is(
    :where(.group\/field):has([data-orientation='horizontal']) *
  ) {
    text-wrap: balance;
  }
  .group-has-\[\[data-slot\=item-description\]\]\/item\:translate-y-0\.5:is(
      :where(.group\/item):has([data-slot='item-description']) *
    ) {
    --tw-translate-y: calc(var(--spacing) * 0.5);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .group-has-\[\[data-slot\=item-description\]\]\/item\:self-start:is(
    :where(.group\/item):has([data-slot='item-description']) *
  ) {
    align-self: flex-start;
  }
  .group-has-\[\>input\]\/input-group\:pt-2\.5:is(:where(.group\/input-group):has(> input) *) {
    padding-top: calc(var(--spacing) * 2.5);
  }
  .group-has-\[\>input\]\/input-group\:pb-2\.5:is(:where(.group\/input-group):has(> input) *) {
    padding-bottom: calc(var(--spacing) * 2.5);
  }
  .group-data-\[collapsible\=icon\]\:-mt-8:is(:where(.group)[data-collapsible='icon'] *) {
    margin-top: calc(var(--spacing) * -8);
  }
  .group-data-\[collapsible\=icon\]\:hidden:is(:where(.group)[data-collapsible='icon'] *) {
    display: none;
  }
  .group-data-\[collapsible\=icon\]\:h-8\!:is(:where(.group)[data-collapsible='icon'] *) {
    height: calc(var(--spacing) * 8) !important;
  }
  .group-data-\[collapsible\=icon\]\:w-8\!:is(:where(.group)[data-collapsible='icon'] *) {
    width: calc(var(--spacing) * 8) !important;
  }
  .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+var\(--spacing-4\)\)\]:is(
    :where(.group)[data-collapsible='icon'] *
  ) {
    width: calc(var(--sidebar-width-icon) + var(--spacing-4));
  }
  .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+var\(--spacing-4\)\+2px\)\]:is(
    :where(.group)[data-collapsible='icon'] *
  ) {
    width: calc(var(--sidebar-width-icon) + var(--spacing-4) + 2px);
  }
  .group-data-\[collapsible\=icon\]\:w-\[var\(--sidebar-width-icon\)\]:is(
    :where(.group)[data-collapsible='icon'] *
  ) {
    width: var(--sidebar-width-icon);
  }
  .group-data-\[collapsible\=icon\]\:overflow-hidden:is(:where(.group)[data-collapsible='icon'] *) {
    overflow: hidden;
  }
  .group-data-\[collapsible\=icon\]\:p-0\!:is(:where(.group)[data-collapsible='icon'] *) {
    padding: calc(var(--spacing) * 0) !important;
  }
  .group-data-\[collapsible\=icon\]\:p-2\!:is(:where(.group)[data-collapsible='icon'] *) {
    padding: calc(var(--spacing) * 2) !important;
  }
  .group-data-\[collapsible\=icon\]\:opacity-0:is(:where(.group)[data-collapsible='icon'] *) {
    opacity: 0;
  }
  .group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(
    :where(.group)[data-collapsible='offcanvas'] *
  ) {
    right: calc(var(--sidebar-width) * -1);
  }
  .group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]:is(
    :where(.group)[data-collapsible='offcanvas'] *
  ) {
    left: calc(var(--sidebar-width) * -1);
  }
  .group-data-\[collapsible\=offcanvas\]\:w-0:is(:where(.group)[data-collapsible='offcanvas'] *) {
    width: calc(var(--spacing) * 0);
  }
  .group-data-\[collapsible\=offcanvas\]\:translate-x-0:is(
    :where(.group)[data-collapsible='offcanvas'] *
  ) {
    --tw-translate-x: calc(var(--spacing) * 0);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .group-data-\[disabled\=true\]\/field\:opacity-50:is(
    :where(.group\/field)[data-disabled='true'] *
  ),
  .group-data-\[disabled\=true\]\/input-group\:opacity-50:is(
    :where(.group\/input-group)[data-disabled='true'] *
  ) {
    opacity: 0.5;
  }
  .group-data-\[focused\=true\]\/day\:relative:is(:where(.group\/day)[data-focused='true'] *) {
    position: relative;
  }
  .group-data-\[focused\=true\]\/day\:z-10:is(:where(.group\/day)[data-focused='true'] *) {
    z-index: 10;
  }
  .group-data-\[focused\=true\]\/day\:ring-\[3px\]:is(:where(.group\/day)[data-focused='true'] *) {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + 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);
  }
  .group-data-\[side\=left\]\:-right-4:is(:where(.group)[data-side='left'] *) {
    right: calc(var(--spacing) * -4);
  }
  .group-data-\[side\=left\]\:border-r:is(:where(.group)[data-side='left'] *) {
    border-right-style: var(--tw-border-style);
    border-right-width: 1px;
  }
  .group-data-\[side\=right\]\:left-0:is(:where(.group)[data-side='right'] *) {
    left: calc(var(--spacing) * 0);
  }
  .group-data-\[side\=right\]\:rotate-180:is(:where(.group)[data-side='right'] *) {
    rotate: 180deg;
  }
  .group-data-\[side\=right\]\:border-l:is(:where(.group)[data-side='right'] *) {
    border-left-style: var(--tw-border-style);
    border-left-width: 1px;
  }
  .group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state='open'] *) {
    rotate: 180deg;
  }
  .group-data-\[variant\=floating\]\:rounded-lg:is(:where(.group)[data-variant='floating'] *) {
    border-radius: var(--radius-lg);
  }
  .group-data-\[variant\=floating\]\:border:is(:where(.group)[data-variant='floating'] *) {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .group-data-\[variant\=floating\]\:shadow-sm:is(:where(.group)[data-variant='floating'] *) {
    --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);
  }
  .group-data-\[variant\=outline\]\/field-group\:-mb-2:is(
    :where(.group\/field-group)[data-variant='outline'] *
  ) {
    margin-bottom: calc(var(--spacing) * -2);
  }
  .group-\[\.destructive\]\:text-red-300:is(:where(.group).destructive *) {
    color: var(--color-red-300);
  }
  .group-\[\.toaster\]\:shadow-lg:is(:where(.group).toaster *) {
    --tw-shadow:
      0 10px 15px -3px var(--tw-shadow-color, #0000001a),
      0 4px 6px -4px 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);
  }
  .peer-disabled\:cursor-not-allowed:is(:where(.peer):disabled ~ *) {
    cursor: not-allowed;
  }
  .peer-disabled\:opacity-70:is(:where(.peer):disabled ~ *) {
    opacity: 0.7;
  }
  .peer-data-\[size\=default\]\/menu-button\:top-1\.5:is(
      :where(.peer\/menu-button)[data-size='default'] ~ *
    ) {
    top: calc(var(--spacing) * 1.5);
  }
  .peer-data-\[size\=lg\]\/menu-button\:top-2\.5:is(
      :where(.peer\/menu-button)[data-size='lg'] ~ *
    ) {
    top: calc(var(--spacing) * 2.5);
  }
  .peer-data-\[size\=sm\]\/menu-button\:top-1:is(:where(.peer\/menu-button)[data-size='sm'] ~ *) {
    top: calc(var(--spacing) * 1);
  }
  .file\:border-0::file-selector-button {
    border-style: var(--tw-border-style);
    border-width: 0;
  }
  .file\:bg-transparent::file-selector-button {
    background-color: #0000;
  }
  .file\:text-sm::file-selector-button {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .file\:font-medium::file-selector-button {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .after\:absolute:after {
    content: var(--tw-content);
    position: absolute;
  }
  .after\:-inset-2:after {
    content: var(--tw-content);
    inset: calc(var(--spacing) * -2);
  }
  .after\:inset-y-0:after {
    content: var(--tw-content);
    inset-block: calc(var(--spacing) * 0);
  }
  .after\:left-1\/2:after {
    content: var(--tw-content);
    left: 50%;
  }
  .after\:w-1:after {
    content: var(--tw-content);
    width: calc(var(--spacing) * 1);
  }
  .after\:w-\[2px\]:after {
    content: var(--tw-content);
    width: 2px;
  }
  .after\:-translate-x-1\/2:after {
    content: var(--tw-content);
    --tw-translate-x: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .group-data-\[collapsible\=offcanvas\]\:after\:left-full:is(
      :where(.group)[data-collapsible='offcanvas'] *
    ):after {
    content: var(--tw-content);
    left: 100%;
  }
  .first\:rounded-l-md:first-child {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
  }
  .first\:border-l:first-child {
    border-left-style: var(--tw-border-style);
    border-left-width: 1px;
  }
  .last\:mt-0:last-child {
    margin-top: calc(var(--spacing) * 0);
  }
  .last\:rounded-r-md:last-child {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }
  @media (hover: hover) {
    .hover\:underline:hover {
      text-decoration-line: underline;
    }
    .hover\:opacity-100:hover {
      opacity: 1;
    }
    .hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover {
      --tw-shadow: 0 0 0 1px var(--tw-shadow-color, hsl(var(--sidebar-accent)));
      box-shadow:
        var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
        var(--tw-ring-shadow), var(--tw-shadow);
    }
    .group-\[\.destructive\]\:hover\:text-red-50:is(:where(.group).destructive *):hover {
      color: var(--color-red-50);
    }
  }
  .focus\:opacity-100:focus {
    opacity: 1;
  }
  .focus\:ring-1:focus {
    --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\:ring-2:focus {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + 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\:ring-offset-2:focus {
    --tw-ring-offset-width: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width)
      var(--tw-ring-offset-color);
  }
  .focus\:outline-none:focus {
    --tw-outline-style: none;
    outline-style: none;
  }
  .group-\[\.destructive\]\:focus\:ring-red-400:is(:where(.group).destructive *):focus {
    --tw-ring-color: var(--color-red-400);
  }
  .group-\[\.destructive\]\:focus\:ring-offset-red-600:is(:where(.group).destructive *):focus {
    --tw-ring-offset-color: var(--color-red-600);
  }
  .focus-visible\:ring-0:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(0px + 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-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-2:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(2px + 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-\[3px\]:focus-visible {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + 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-offset-1:focus-visible {
    --tw-ring-offset-width: 1px;
    --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width)
      var(--tw-ring-offset-color);
  }
  .focus-visible\:ring-offset-2:focus-visible {
    --tw-ring-offset-width: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width)
      var(--tw-ring-offset-color);
  }
  .focus-visible\:outline-none:focus-visible {
    --tw-outline-style: none;
    outline-style: none;
  }
  .active\:shadow-none:active {
    --tw-shadow: 0 0 #0000;
    box-shadow:
      var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow),
      var(--tw-ring-shadow), var(--tw-shadow);
  }
  .disabled\:pointer-events-none:disabled {
    pointer-events: none;
  }
  .disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
  }
  .disabled\:opacity-50:disabled {
    opacity: 0.5;
  }
  :where([data-side='left']) .in-data-\[side\=left\]\:cursor-w-resize {
    cursor: w-resize;
  }
  :where([data-side='right']) .in-data-\[side\=right\]\:cursor-e-resize {
    cursor: e-resize;
  }
  .has-focus\:ring-\[3px\]:has(:focus) {
    --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 calc(3px + 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);
  }
  .has-\[\:disabled\]\:opacity-50:has(:disabled) {
    opacity: 0.5;
  }
  .has-\[\[data-slot\=input-group-control\]\:focus-visible\]\:ring-1:has(
    [data-slot='input-group-control']: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);
  }
  .has-\[\>\[data-align\=block-end\]\]\:h-auto:has(> [data-align='block-end']) {
    height: auto;
  }
  .has-\[\>\[data-align\=block-end\]\]\:flex-col:has(> [data-align='block-end']) {
    flex-direction: column;
  }
  .has-\[\>\[data-align\=block-start\]\]\:h-auto:has(> [data-align='block-start']) {
    height: auto;
  }
  .has-\[\>\[data-align\=block-start\]\]\:flex-col:has(> [data-align='block-start']) {
    flex-direction: column;
  }
  .has-\[\>\[data-slot\=button-group\]\]\:gap-2:has(> [data-slot='button-group']) {
    gap: calc(var(--spacing) * 2);
  }
  .has-\[\>\[data-slot\=checkbox-group\]\]\:gap-3:has(> [data-slot='checkbox-group']) {
    gap: calc(var(--spacing) * 3);
  }
  .has-\[\>\[data-slot\=field-content\]\]\:items-start:has(> [data-slot='field-content']) {
    align-items: flex-start;
  }
  .has-\[\>\[data-slot\=field\]\]\:w-full:has(> [data-slot='field']) {
    width: 100%;
  }
  .has-\[\>\[data-slot\=field\]\]\:flex-col:has(> [data-slot='field']) {
    flex-direction: column;
  }
  .has-\[\>\[data-slot\=field\]\]\:rounded-md:has(> [data-slot='field']) {
    border-radius: var(--radius-md);
  }
  .has-\[\>\[data-slot\=field\]\]\:border:has(> [data-slot='field']) {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .has-\[\>\[data-slot\=radio-group\]\]\:gap-3:has(> [data-slot='radio-group']) {
    gap: calc(var(--spacing) * 3);
  }
  .has-\[\>button\]\:mr-\[-0\.4rem\]:has(> button) {
    margin-right: -0.4rem;
  }
  .has-\[\>button\]\:ml-\[-0\.45rem\]:has(> button) {
    margin-left: -0.45rem;
  }
  .has-\[\>kbd\]\:mr-\[-0\.35rem\]:has(> kbd) {
    margin-right: -0.35rem;
  }
  .has-\[\>kbd\]\:ml-\[-0\.35rem\]:has(> kbd) {
    margin-left: -0.35rem;
  }
  .has-\[\>svg\]\:p-0:has(> svg) {
    padding: calc(var(--spacing) * 0);
  }
  .has-\[\>svg\]\:px-2:has(> svg) {
    padding-inline: calc(var(--spacing) * 2);
  }
  .has-\[\>svg\]\:px-2\.5:has(> svg) {
    padding-inline: calc(var(--spacing) * 2.5);
  }
  .has-\[\>textarea\]\:h-auto:has(> textarea) {
    height: auto;
  }
  .aria-disabled\:pointer-events-none[aria-disabled='true'] {
    pointer-events: none;
  }
  .aria-disabled\:opacity-50[aria-disabled='true'] {
    opacity: 0.5;
  }
  .data-\[active\=true\]\:font-medium[data-active='true'] {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .data-\[disabled\]\:pointer-events-none[data-disabled] {
    pointer-events: none;
  }
  .data-\[disabled\]\:opacity-50[data-disabled] {
    opacity: 0.5;
  }
  .data-\[disabled\=true\]\:pointer-events-none[data-disabled='true'] {
    pointer-events: none;
  }
  .data-\[disabled\=true\]\:opacity-50[data-disabled='true'] {
    opacity: 0.5;
  }
  .data-\[orientation\=vertical\]\:h-auto[data-orientation='vertical'] {
    height: auto;
  }
  .data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction='vertical'] {
    height: 1px;
  }
  .data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction='vertical'] {
    width: 100%;
  }
  .data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction='vertical'] {
    flex-direction: column;
  }
  .data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction='vertical']:after {
    content: var(--tw-content);
    left: calc(var(--spacing) * 0);
  }
  .data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction='vertical']:after {
    content: var(--tw-content);
    height: calc(var(--spacing) * 1);
  }
  .data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction='vertical']:after {
    content: var(--tw-content);
    width: 100%;
  }
  .data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction='vertical']:after {
    content: var(--tw-content);
    --tw-translate-x: calc(var(--spacing) * 0);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction='vertical']:after {
    content: var(--tw-content);
    --tw-translate-y: -50%;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[range-end\=true\]\:rounded-md[data-range-end='true'] {
    border-radius: var(--radius-md);
  }
  .data-\[range-middle\=true\]\:rounded-none[data-range-middle='true'] {
    border-radius: 0;
  }
  .data-\[range-start\=true\]\:rounded-md[data-range-start='true'] {
    border-radius: var(--radius-md);
  }
  .data-\[selected\=true\]\:rounded-none[data-selected='true'] {
    border-radius: 0;
  }
  .data-\[side\=bottom\]\:translate-y-1[data-side='bottom'] {
    --tw-translate-y: calc(var(--spacing) * 1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[side\=left\]\:-translate-x-1[data-side='left'] {
    --tw-translate-x: calc(var(--spacing) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[side\=right\]\:translate-x-1[data-side='right'] {
    --tw-translate-x: calc(var(--spacing) * 1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[side\=top\]\:-translate-y-1[data-side='top'] {
    --tw-translate-y: calc(var(--spacing) * -1);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[slot\=checkbox-group\]\:gap-3[data-slot='checkbox-group'] {
    gap: calc(var(--spacing) * 3);
  }
  .data-\[state\=active\]\:shadow[data-state='active'] {
    --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);
  }
  .data-\[state\=checked\]\:translate-x-4[data-state='checked'] {
    --tw-translate-x: calc(var(--spacing) * 4);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[state\=closed\]\:duration-300[data-state='closed'] {
    --tw-duration: 0.3s;
    transition-duration: 0.3s;
  }
  .data-\[state\=open\]\:opacity-100[data-state='open'] {
    opacity: 1;
  }
  .data-\[state\=open\]\:duration-500[data-state='open'] {
    --tw-duration: 0.5s;
    transition-duration: 0.5s;
  }
  .data-\[state\=unchecked\]\:translate-x-0[data-state='unchecked'],
  .data-\[swipe\=cancel\]\:translate-x-0[data-swipe='cancel'] {
    --tw-translate-x: calc(var(--spacing) * 0);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe='end'] {
    --tw-translate-x: var(--radix-toast-swipe-end-x);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe='move'] {
    --tw-translate-x: var(--radix-toast-swipe-move-x);
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .data-\[swipe\=move\]\:transition-none[data-swipe='move'] {
    transition-property: none;
  }
  .data-\[variant\=label\]\:text-sm[data-variant='label'] {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
  .data-\[variant\=legend\]\:text-base[data-variant='legend'] {
    font-size: var(--text-base);
    line-height: var(--tw-leading, var(--text-base--line-height));
  }
  .nth-last-2\:-mt-1:nth-last-child(2) {
    margin-top: calc(var(--spacing) * -1);
  }
  @media (min-width: 40rem) {
    .sm\:top-auto {
      top: auto;
    }
    .sm\:right-0 {
      right: calc(var(--spacing) * 0);
    }
    .sm\:bottom-0 {
      bottom: calc(var(--spacing) * 0);
    }
    .sm\:mt-0 {
      margin-top: calc(var(--spacing) * 0);
    }
    .sm\:flex {
      display: flex;
    }
    .sm\:max-w-sm {
      max-width: var(--container-sm);
    }
    .sm\:flex-col {
      flex-direction: column;
    }
    .sm\:flex-row {
      flex-direction: row;
    }
    .sm\:justify-end {
      justify-content: flex-end;
    }
    .sm\:gap-2\.5 {
      gap: calc(var(--spacing) * 2.5);
    }
    :where(.sm\:space-x-2 > :not(:last-child)) {
      --tw-space-x-reverse: 0;
      margin-inline-start: calc(calc(var(--spacing) * 2) * var(--tw-space-x-reverse));
      margin-inline-end: calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-x-reverse)));
    }
    .sm\:rounded-lg {
      border-radius: var(--radius-lg);
    }
    .sm\:text-left {
      text-align: left;
    }
  }
  @media (min-width: 48rem) {
    .md\:absolute {
      position: absolute;
    }
    .md\:block {
      display: block;
    }
    .md\:flex {
      display: flex;
    }
    .md\:w-\[var\(--radix-navigation-menu-viewport-width\)\] {
      width: var(--radix-navigation-menu-viewport-width);
    }
    .md\:w-auto {
      width: auto;
    }
    .md\:max-w-\[420px\] {
      max-width: 420px;
    }
    .md\:flex-row {
      flex-direction: row;
    }
    .md\:p-12 {
      padding: calc(var(--spacing) * 12);
    }
    .md\:text-sm {
      font-size: var(--text-sm);
      line-height: var(--tw-leading, var(--text-sm--line-height));
    }
    .md\:opacity-0 {
      opacity: 0;
    }
    .md\:peer-data-\[variant\=inset\]\:m-2:is(:where(.peer)[data-variant='inset'] ~ *) {
      margin: calc(var(--spacing) * 2);
    }
    .md\:peer-data-\[variant\=inset\]\:ml-0:is(:where(.peer)[data-variant='inset'] ~ *) {
      margin-left: calc(var(--spacing) * 0);
    }
    .md\:peer-data-\[variant\=inset\]\:rounded-xl:is(:where(.peer)[data-variant='inset'] ~ *) {
      border-radius: var(--radius-xl);
    }
    .md\:peer-data-\[variant\=inset\]\:shadow-sm:is(:where(.peer)[data-variant='inset'] ~ *) {
      --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);
    }
    .md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2:is(
        :where(.peer)[data-variant='inset'] ~ *
      ):is(:where(.peer)[data-state='collapsed'] ~ *) {
      margin-left: calc(var(--spacing) * 2);
    }
    .md\:after\:hidden:after {
      content: var(--tw-content);
      display: none;
    }
  }
  @container field-group (min-width:28rem) {
    .\@md\/field-group\:flex-row {
      flex-direction: row;
    }
    .\@md\/field-group\:items-center {
      align-items: center;
    }
    .\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:items-start:has(
      > [data-slot='field-content']
    ) {
      align-items: flex-start;
    }
  }
  @media (prefers-color-scheme: dark) {
    .dark\:bg-transparent {
      background-color: #0000;
    }
  }
  .\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke='#fff'] {
    stroke: #0000;
  }
  .\[\&_\.recharts-layer\]\:outline-none .recharts-layer,
  .\[\&_\.recharts-sector\]\:outline-none .recharts-sector {
    --tw-outline-style: none;
    outline-style: none;
  }
  .\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent
    .recharts-sector[stroke='#fff'] {
    stroke: #0000;
  }
  .\[\&_\.recharts-surface\]\:outline-none .recharts-surface {
    --tw-outline-style: none;
    outline-style: none;
  }
  .\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading] {
    padding-inline: calc(var(--spacing) * 2);
  }
  .\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading] {
    padding-block: calc(var(--spacing) * 1.5);
  }
  .\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading] {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading] {
    --tw-font-weight: var(--font-weight-medium);
    font-weight: var(--font-weight-medium);
  }
  .\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group] {
    padding-inline: calc(var(--spacing) * 2);
  }
  .\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0
    [cmdk-group]:not([hidden])
    ~ [cmdk-group] {
    padding-top: calc(var(--spacing) * 0);
  }
  .\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg {
    height: calc(var(--spacing) * 5);
  }
  .\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg {
    width: calc(var(--spacing) * 5);
  }
  .\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input] {
    height: calc(var(--spacing) * 12);
  }
  .\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item] {
    padding-inline: calc(var(--spacing) * 2);
  }
  .\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item] {
    padding-block: calc(var(--spacing) * 3);
  }
  .\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg {
    height: calc(var(--spacing) * 5);
  }
  .\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg {
    width: calc(var(--spacing) * 5);
  }
  .\[\&_img\]\:size-full img {
    width: 100%;
    height: 100%;
  }
  .\[\&_img\]\:object-cover img {
    object-fit: cover;
  }
  .\[\&_p\]\:leading-relaxed p {
    --tw-leading: var(--leading-relaxed);
    line-height: var(--leading-relaxed);
  }
  .\[\&_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;
  }
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3 svg:not([class*='size-']) {
    width: calc(var(--spacing) * 3);
    height: calc(var(--spacing) * 3);
  }
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-']) {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-6 svg:not([class*='size-']) {
    width: calc(var(--spacing) * 6);
    height: calc(var(--spacing) * 6);
  }
  .\[\&_tr\]\:border-b tr {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 1px;
  }
  .\[\&_tr\:last-child\]\:border-0 tr:last-child {
    border-style: var(--tw-border-style);
    border-width: 0;
  }
  .\[\&\+\[data-slot\=item-content\]\]\:flex-none + [data-slot='item-content'] {
    flex: none;
  }
  .\[\&\:first-child\[data-selected\=true\]_button\]\:rounded-l-md:first-child[data-selected='true']
    button {
    border-top-left-radius: var(--radius-md);
    border-bottom-left-radius: var(--radius-md);
  }
  .\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role='checkbox']) {
    padding-right: calc(var(--spacing) * 0);
  }
  .\[\.border-b\]\:pb-3.border-b {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .\[\.border-t\]\:pt-3.border-t {
    padding-top: calc(var(--spacing) * 3);
  }
  :is(
    .rtl\:\*\*\:\[\.rdp-button\\_next\>svg\]\:rotate-180:where(
        :dir(rtl),
        [dir='rtl'],
        [dir='rtl'] *
      )
      *
  ):is(.rdp-button_next > svg),
  :is(
    .rtl\:\*\*\:\[\.rdp-button\\_previous\>svg\]\:rotate-180:where(
        :dir(rtl),
        [dir='rtl'],
        [dir='rtl'] *
      )
      *
  ):is(.rdp-button_previous > svg) {
    rotate: 180deg;
  }
  .\[a\]\:transition-colors:is(a) {
    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));
  }
  .\[\&\:last-child\[data-selected\=true\]_button\]\:rounded-r-md:last-child[data-selected='true']
    button {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }
  .\[\&\>\*\]\:w-full > * {
    width: 100%;
  }
  .\[\&\>\*\]\:focus-visible\:relative > :focus-visible {
    position: relative;
  }
  .\[\&\>\*\]\:focus-visible\:z-10 > :focus-visible {
    z-index: 10;
  }
  @container field-group (min-width:28rem) {
    .\@md\/field-group\:\[\&\>\*\]\:w-auto > * {
      width: auto;
    }
  }
  .\[\&\>\*\:not\(\:first-child\)\]\:rounded-t-none > :not(:first-child) {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
  .\[\&\>\*\:not\(\:first-child\)\]\:rounded-l-none > :not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
  .\[\&\>\*\:not\(\:first-child\)\]\:border-t-0 > :not(:first-child) {
    border-top-style: var(--tw-border-style);
    border-top-width: 0;
  }
  .\[\&\>\*\:not\(\:first-child\)\]\:border-l-0 > :not(:first-child) {
    border-left-style: var(--tw-border-style);
    border-left-width: 0;
  }
  .\[\&\>\*\:not\(\:last-child\)\]\:rounded-r-none > :not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }
  .\[\&\>\*\:not\(\:last-child\)\]\:rounded-b-none > :not(:last-child) {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }
  .\[\&\>\.sr-only\]\:w-auto > .sr-only {
    width: auto;
  }
  .\[\&\>\[data-slot\=field-group\]\]\:gap-4 > [data-slot='field-group'] {
    gap: calc(var(--spacing) * 4);
  }
  .\[\&\>\[data-slot\=field-label\]\]\:flex-auto > [data-slot='field-label'] {
    flex: auto;
  }
  @container field-group (min-width:28rem) {
    .\@md\/field-group\:\[\&\>\[data-slot\=field-label\]\]\:flex-auto > [data-slot='field-label'] {
      flex: auto;
    }
  }
  .\[\&\>\[data-slot\=field\]\]\:p-4 > [data-slot='field'] {
    padding: calc(var(--spacing) * 4);
  }
  .has-\[select\[aria-hidden\=true\]\:last-child\]\:\[\&\>\[data-slot\=select-trigger\]\:last-of-type\]\:rounded-r-md:has(
      :is(select[aria-hidden='true']:last-child)
    )
    > [data-slot='select-trigger']:last-of-type {
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
  }
  .\[\&\>\[data-slot\=select-trigger\]\:not\(\[class\*\=\'w-\'\]\)\]\:w-fit
    > [data-slot='select-trigger']:not([class*='w-']) {
    width: fit-content;
  }
  .\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\] > [role='checkbox'] {
    --tw-translate-y: 2px;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(
      > [data-slot='field-content']
    )
    > [role='checkbox'],
  .has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(
      > [data-slot='field-content']
    )
    [role='radio'] {
    margin-top: 1px;
  }
  @container field-group (min-width:28rem) {
    .\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(
        > [data-slot='field-content']
      )
      > [role='checkbox'],
    .\@md\/field-group\:has-\[\>\[data-slot\=field-content\]\]\:\[\&\>\[role\=checkbox\]\,\[role\=radio\]\]\:mt-px:has(
        > [data-slot='field-content']
      )
      [role='radio'] {
      margin-top: 1px;
    }
  }
  .\[\&\>a\]\:underline > a {
    text-decoration-line: underline;
  }
  .\[\&\>a\]\:underline-offset-4 > a {
    text-underline-offset: 4px;
  }
  .\[\&\>button\]\:hidden > button {
    display: none;
  }
  .\[\&\>input\]\:flex-1 > input {
    flex: 1;
  }
  .has-\[\>\[data-align\=block-end\]\]\:\[\&\>input\]\:pt-3:has(> [data-align='block-end'])
    > input {
    padding-top: calc(var(--spacing) * 3);
  }
  .has-\[\>\[data-align\=block-start\]\]\:\[\&\>input\]\:pb-3:has(> [data-align='block-start'])
    > input {
    padding-bottom: calc(var(--spacing) * 3);
  }
  .has-\[\>\[data-align\=inline-end\]\]\:\[\&\>input\]\:pr-2:has(> [data-align='inline-end'])
    > input {
    padding-right: calc(var(--spacing) * 2);
  }
  .has-\[\>\[data-align\=inline-start\]\]\:\[\&\>input\]\:pl-2:has(> [data-align='inline-start'])
    > input {
    padding-left: calc(var(--spacing) * 2);
  }
  .\[\&\>kbd\]\:rounded-\[calc\(var\(--radius\)-5px\)\] > kbd {
    border-radius: calc(var(--radius) - 5px);
  }
  .\[\&\>span\]\:line-clamp-1 > span {
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
  }
  .\[\&\>span\]\:text-xs > span {
    font-size: var(--text-xs);
    line-height: var(--tw-leading, var(--text-xs--line-height));
  }
  .\[\&\>span\]\:opacity-70 > span {
    opacity: 0.7;
  }
  .\[\&\>span\:last-child\]\:truncate > span:last-child {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
  }
  .\[\&\>svg\]\:absolute > svg {
    position: absolute;
  }
  .\[\&\>svg\]\:top-4 > svg {
    top: calc(var(--spacing) * 4);
  }
  .\[\&\>svg\]\:left-4 > svg {
    left: calc(var(--spacing) * 4);
  }
  .\[\&\>svg\]\:size-3\.5 > svg {
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
  }
  .\[\&\>svg\]\:size-4 > svg {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .\[\&\>svg\]\:h-2\.5 > svg {
    height: calc(var(--spacing) * 2.5);
  }
  .\[\&\>svg\]\:h-3 > svg {
    height: calc(var(--spacing) * 3);
  }
  .\[\&\>svg\]\:h-3\.5 > svg {
    height: calc(var(--spacing) * 3.5);
  }
  .\[\&\>svg\]\:h-4 > svg {
    height: calc(var(--spacing) * 4);
  }
  .\[\&\>svg\]\:w-2\.5 > svg {
    width: calc(var(--spacing) * 2.5);
  }
  .\[\&\>svg\]\:w-3 > svg {
    width: calc(var(--spacing) * 3);
  }
  .\[\&\>svg\]\:w-3\.5 > svg {
    width: calc(var(--spacing) * 3.5);
  }
  .\[\&\>svg\]\:w-4 > svg {
    width: calc(var(--spacing) * 4);
  }
  .\[\&\>svg\]\:shrink-0 > svg {
    flex-shrink: 0;
  }
  .\[\&\>svg\+div\]\:translate-y-\[-3px\] > svg + div {
    --tw-translate-y: -3px;
    translate: var(--tw-translate-x) var(--tw-translate-y);
  }
  .\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-3\.5 > svg:not([class*='size-']) {
    width: calc(var(--spacing) * 3.5);
    height: calc(var(--spacing) * 3.5);
  }
  .\[\&\>svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 > svg:not([class*='size-']) {
    width: calc(var(--spacing) * 4);
    height: calc(var(--spacing) * 4);
  }
  .\[\&\>svg\~\*\]\:pl-7 > svg ~ * {
    padding-left: calc(var(--spacing) * 7);
  }
  .\[\&\>tr\]\:last\:border-b-0 > tr:last-child {
    border-bottom-style: var(--tw-border-style);
    border-bottom-width: 0;
  }
  .\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction='vertical']
    > div {
    rotate: 90deg;
  }
  .\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state='open'] > svg {
    rotate: 180deg;
  }
  [data-side='left'][data-collapsible='offcanvas']
    .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2 {
    right: calc(var(--spacing) * -2);
  }
  [data-side='left'][data-state='collapsed']
    .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize {
    cursor: e-resize;
  }
  [data-side='right'][data-collapsible='offcanvas']
    .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2 {
    left: calc(var(--spacing) * -2);
  }
  [data-side='right'][data-state='collapsed']
    .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize {
    cursor: w-resize;
  }
  [data-slot='card-content'] .\[\[data-slot\=card-content\]_\&\]\:bg-transparent,
  [data-slot='popover-content'] .\[\[data-slot\=popover-content\]_\&\]\:bg-transparent {
    background-color: #0000;
  }
  [data-variant='legend'] + .\[\[data-variant\=legend\]\+\&\]\:-mt-1\.5 {
    margin-top: calc(var(--spacing) * -1.5);
  }
}
:root {
  --orange: var(--orange);
  --orange-dark: #db361c;
  --ink: #24212b;
  --muted: #6f6a75;
  --paper: var(--orange-soft2);
  --surface: #fff;
  --soft: #f0f0f1;
  --line: #24212b21;
  --shadow: 0 18px 42px #24212b1a;
  --blue: #58a9e8;
  --green: #009d2b;
  --brown: #b38358;
  --red: #ef3138;
  --yellow: #efc528;
  --radius: 8px;
}
*,
:before,
:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Arabic', 'Segoe UI', 'Cairo', 'Inter', Tahoma, Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  display: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
button,
input,
textarea {
  font: inherit;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.15;
}
h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.25;
}
h3 {
  margin-bottom: 8px;
  font-size: 1.06rem;
}
.nav,
.selina-page,
.footer-inner {
  width: min(1180px, 100% - 32px);
  margin: 0 auto;
}
.selina-page {
  padding-top: 8px;
  padding-bottom: 60px;
  overflow-x: hidden;
}
.site-header {
  z-index: 30;
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: rgba(var(--orange-soft2-rgb), 0.96);
  position: sticky;
  top: 0;
}
.nav {
  align-items: center;
  gap: 18px;
  min-height: 72px;
  display: flex;
}
.brand {
  align-items: center;
  margin-inline-start: auto;
  flex-shrink: 0;
  display: inline-flex;
}
.brand-text {
  color: var(--orange);
  letter-spacing: -0.5px;
  font-size: 1.7rem;
  font-weight: 900;
}
.brand-text.small {
  font-size: 1.1rem;
}
.nav-links {
  flex-wrap: wrap;
  gap: 4px;
  display: flex;
}
.nav-links a {
  color: #4f4b56;
  border-radius: 999px;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  font-weight: 900;
  transition:
    background 0.15s,
    color 0.15s;
  display: inline-flex;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--surface);
  color: var(--orange);
}
.nav-cta {
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-primary,
.btn-ghost,
.btn-dark,
.btn-danger {
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 24px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  transition: all 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--orange-rgb), 0.35);
}
.btn-primary:active {
  transform: scale(0.96) translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}
.btn-ghost:hover {
  transform: translateY(-2px);
}
.btn-ghost:active {
  transform: scale(0.96);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}
.btn-dark:hover {
  transform: translateY(-2px);
}
.btn-dark:active {
  transform: scale(0.96);
}
.btn-danger {
  color: #fff;
  background: #dc2626;
  font-weight: 700;
  box-shadow: 0 12px 26px #dc262633;
}
.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}
.btn-danger:active {
  transform: scale(0.96);
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}
.eyebrow {
  color: var(--orange);
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}
.start-hero {
  text-align: center;
  padding: 64px 0 32px;
}
.hero-logo-wrap {
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  display: flex;
}
.hero-brand-text {
  color: var(--orange);
  letter-spacing: -2px;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), #f59e0b, var(--orange-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.start-hero .lead {
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.5;
  max-width: 800px;
}
.hero-brand-sub {
  color: var(--muted);
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-actions {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  display: flex;
}
.social-row {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  display: flex;
}
.social-btn {
  color: #fff;
  border-radius: 999px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.25s;
  display: inline-flex;
  box-shadow: 0 8px 24px rgba(36, 33, 43, 0.12);
}
.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(36, 33, 43, 0.18);
}
.social-btn span {
  background: #fff3;
  border-radius: 999px;
  place-items: center;
  width: 32px;
  height: 32px;
  font-weight: 900;
  display: grid;
}
.instagram {
  background: linear-gradient(135deg, #feda75, #fa7e1e 32%, #d62976 66%, #515bd4);
}
.g-button {
  background: linear-gradient(135deg, #4285f4, #34a853 48%, #fbbc05 72%, #ea4335);
}
.summary-section {
  padding: 32px 0 48px;
}
.summary-section,
.special-section {
  padding: 32px 0 48px;
}
.section-row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 20px;
  display: flex;
}
.section-row p {
  max-width: 520px;
  color: var(--muted);
  margin-bottom: 0;
}
.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}
.summary-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(36, 33, 43, 0.04);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(36, 33, 43, 0.08);
}
.summary-card.color-one {
  background: linear-gradient(135deg, var(--orange-soft2), var(--orange-tint1));
  border-color: rgba(var(--orange-rgb), 0.25);
}
.summary-card.color-two {
  background: linear-gradient(135deg, #f7fbff, #dff0ff);
  border-color: #58a9e852;
}
.summary-card.color-three {
  background: linear-gradient(135deg, #f4fff8, #d7f6e6);
  border-color: #009d2b40;
}
.summary-card.color-four {
  background: linear-gradient(135deg, #fff9df, #ffe8a0);
  border-color: #efc5285c;
}
.summary-card strong {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  display: grid;
}
.summary-card p {
  color: var(--muted);
}
/* ---- Sloom outfit shop & dressing room (Apple-inspired) ---- */
.sloom-wallet {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sloom-wallet-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--soft);
  font-weight: 700;
  font-size: 0.9rem;
}
.sloom-wallet-pill b {
  font-size: 1rem;
  font-weight: 800;
}
.sloom-wallet-pill.pts b {
  color: var(--orange);
}
.sloom-wallet-pill.dia b {
  color: var(--blue);
}
.sloom-dress-link {
  margin-inline-start: auto;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 10px;
}
.sloom-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 20px;
  scrollbar-width: none;
}
.sloom-cats::-webkit-scrollbar {
  display: none;
}
.sloom-cat {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sloom-cat.on {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.25);
}
.sloom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 760px) {
  .sloom-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sloom-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sloom-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36, 33, 43, 0.08);
}
.sloom-card.rar-rare {
  border-color: rgba(96, 165, 250, 0.3);
}
.sloom-card.rar-legendary {
  border-color: rgba(251, 191, 36, 0.4);
}
.sloom-card-preview {
  display: grid;
  place-items: center;
  height: 100px;
  background: var(--soft);
  font-size: 2.8rem;
  border-bottom: 1px solid var(--line);
}
.sloom-card.rar-rare .sloom-card-preview {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0.04));
}
.sloom-card.rar-legendary .sloom-card-preview {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18), rgba(251, 191, 36, 0.04));
}
.sloom-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.sloom-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.sloom-card-en {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}
.sloom-rar {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-top: 4px;
}
.sloom-rar.c {
  background: rgba(120, 113, 108, 0.1);
  color: #78716c;
}
.sloom-rar.r {
  background: rgba(96, 165, 250, 0.1);
  color: #2563eb;
}
.sloom-rar.l {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  color: #7c2d12;
}
.sloom-buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.sloom-price {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}
.sloom-price b {
  color: var(--orange);
  font-weight: 800;
}
.sloom-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
  min-height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 4px 10px rgba(var(--orange-rgb), 0.25);
}
.sloom-btn:hover {
  transform: translateY(-1px);
}
.sloom-btn.equip {
  background: var(--surface);
  color: var(--orange);
  border: 1px solid rgba(var(--orange-rgb), 0.4);
  box-shadow: none;
}
.sloom-btn.cant {
  background: var(--soft);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}
.sloom-own {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sloom-badge-on {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  padding: 3px 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}
.sloom-stage {
  text-align: center;
  margin-bottom: 18px;
}
.sloom-stage-art.bbx-banner-art {
  position: relative;
  inset: auto;
  z-index: 0;
  width: 250px;
  height: 250px;
  aspect-ratio: 1;
  margin: 0 auto 6px;
  pointer-events: none;
  border-radius: 52px;
  padding: 8px;
  background: linear-gradient(145deg, rgba(var(--orange-rgb), 0.16), rgba(var(--orange-rgb), 0.36));
  border: 1px solid rgba(var(--orange-rgb), 0.35);
  box-shadow: 0 16px 34px rgba(var(--orange-rgb), 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
}
.sloom-stage-art.bbx-banner-art svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sloom-slots {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sloom-slot {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.03);
}
.sloom-slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
}
.sloom-slot-ic {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--orange-soft);
}
.sloom-slot-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.sloom-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid var(--line);
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sloom-thumb:hover {
  transform: translateY(-2px);
}
.sloom-thumb.on {
  border-color: var(--orange);
  background: var(--orange-soft);
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.25);
}
.sloom-thumb.none {
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border-style: dashed;
}
.sloom-tip {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--soft);
}
.sloom-glow {
  filter: drop-shadow(0 0 7px rgba(251, 191, 36, 0.85));
  animation: sloomGlow 1.6s ease-in-out infinite;
}
.sloom-glow-cyan {
  filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.85));
  animation: sloomGlow 1.6s ease-in-out infinite;
}
@keyframes sloomGlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
.sloom-redeem-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(var(--orange-rgb), 0.4);
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}
.sloom-redeem-btn:hover {
  transform: translateY(-1px);
}
.sloom-code-box {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 4px 0 10px;
}
.sloom-code-box input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  outline: none;
  text-align: center;
}
.sloom-code-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.15);
}
.sloom-code-box .sloom-btn {
  min-height: 44px;
  white-space: nowrap;
}
.sloom-code-msg {
  font-weight: 700;
  font-size: 0.85rem;
  min-height: 1.4em;
  margin: 0 0 8px;
  line-height: 1.5;
}
.sloom-code-msg.ok {
  color: #16a34a;
}
.sloom-code-msg.err {
  color: var(--lose);
}
.special-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}
.special-card {
  border-radius: 16px;
  background: linear-gradient(#fff, #fff8f5);
  border: 1px solid rgba(var(--orange-rgb), 0.12);
  padding: 22px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.special-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(36, 33, 43, 0.06);
}
.special-card > span {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 900;
  display: grid;
}
.opensource-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  display: flex;
  transition: box-shadow 0.3s;
}
.opensource-section:hover {
  box-shadow: 0 12px 40px rgba(36, 33, 43, 0.06);
}
.os-header {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  display: flex;
}
.os-badges {
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  display: flex;
}
.os-badge {
  letter-spacing: 0.02em;
  border-radius: 14px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
}
.os-badge.green {
  color: #166534;
  background: #dcfce7;
}
.os-badge.blue {
  color: #1d4ed8;
  background: #dbeafe;
}
.os-badge.orange {
  color: #9a3412;
  background: #ffedd5;
}
.os-files-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  display: grid;
}
.os-file-card {
  border: 1.5px solid var(--line);
  color: inherit;
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  display: flex;
}
.os-file-card:hover {
  border-color: var(--orange);
  box-shadow: 0 3px 10px rgba(var(--orange-rgb), 0.1);
}
.os-file-icon {
  font-size: 1.1rem;
}
.os-file-name {
  color: var(--ink);
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 800;
}
.os-file-desc {
  color: var(--muted);
  font-size: 0.68rem;
}
.os-file-dl {
  color: var(--orange);
  margin-top: 3px;
  font-size: 0.65rem;
  font-weight: 700;
}
.os-download-all {
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
  border: 1.5px solid #fed7aa;
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  display: flex;
}
.os-note {
  align-items: flex-start;
  gap: 12px;
  display: flex;
}
.os-note-icon {
  font-size: 1.6rem;
}
.os-note strong {
  margin-bottom: 3px;
  font-size: 1rem;
  display: block;
}
.os-note p {
  color: var(--muted);
  margin: 0;
  font-size: 0.83rem;
}
.os-zip-btn {
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  display: flex;
}
.os-zip-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.os-spinner {
  border: 2px solid #fff6;
  border-top-color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: 0.6s linear infinite spin;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.os-license {
  color: var(--muted);
  border-top: 1px solid var(--line);
  align-items: flex-start;
  gap: 10px;
  padding-top: 16px;
  font-size: 0.82rem;
  display: flex;
}
.os-license-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}
.os-license p {
  margin: 0;
}
.os-license strong {
  color: var(--ink);
}
.closing-brand {
  text-align: center;
  background: linear-gradient(135deg, var(--orange), #ff7a52, #ff9c7a);
  border-radius: 24px;
  margin-top: 64px;
  margin-bottom: 28px;
  padding: 72px 24px;
  box-shadow: 0 16px 48px rgba(var(--orange-rgb), 0.2);
}
.closing-logo-text {
  color: var(--orange);
  letter-spacing: -4px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900;
  line-height: 1;
}
.closing-logo-sub {
  color: rgba(255, 255, 255, 0.85);
  margin: 8px 0 24px;
  font-size: 1.1rem;
  font-weight: 600;
}
.closing-brand .btn-primary {
  color: var(--orange);
  background: #fff;
  box-shadow: 0 12px 32px #00000026;
}
.closing-brand .btn-primary:hover {
  background: var(--orange-soft2);
}
.page-hero {
  text-align: center;
  padding: 40px 0 24px;
}
.page-hero .lead {
  margin: 0 auto;
}
.game-top {
  padding: 32px 0 8px;
}
.setup-strip {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 14px;
  margin: 18px 0 24px;
  padding: 20px;
  display: grid;
  box-shadow: 0 4px 16px rgba(36, 33, 43, 0.04);
}
label {
  gap: 7px;
  font-weight: 700;
  display: grid;
}
input,
textarea {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
}
textarea {
  resize: vertical;
  min-height: 128px;
}
.setup-counter {
  border-radius: var(--radius);
  min-width: 130px;
  min-height: 48px;
  color: var(--orange);
  text-align: center;
  background: var(--orange-soft);
  place-items: center;
  padding: 7px 12px;
  display: grid;
}
.setup-counter strong {
  font-size: 1.25rem;
  line-height: 1;
}
.setup-counter span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}
.helper-section,
.category-section {
  padding: 20px 0 36px;
}
.action-row {
  flex-wrap: wrap;
  gap: 10px;
  display: flex;
}
.assist-pickers {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  display: grid;
}
.assist-team {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}
.assist-team h3 {
  margin-bottom: 8px;
}
.assist-team-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 900;
}
.assist-cards-row {
  flex-wrap: wrap;
  gap: 6px;
  display: flex;
}
.assist-setup-card {
  cursor: pointer;
  text-align: center;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 80px;
  padding: 8px 4px 6px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  display: flex;
  position: relative;
}
.assist-setup-card:hover {
  background: #fff;
  box-shadow: 0 4px 14px #24212b1a;
}
.assist-setup-card.selected {
  border-color: var(--orange);
  background: var(--orange-soft2);
  box-shadow: 0 4px 16px rgba(var(--orange-rgb), 0.15);
}
.assist-setup-card.selected .asc-name {
  color: var(--orange);
}
.asc-name {
  color: var(--ink);
  justify-content: center;
  align-items: center;
  min-height: 20px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1.1;
  display: flex;
}
.asc-icon-circle {
  background: #fff;
  border: 2px solid;
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  transition: border-color 0.15s;
  display: grid;
}
.asc-timing {
  display: none;
}
.asc-desc {
  color: var(--muted);
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 18px;
  font-size: 0.65rem;
  line-height: 1.2;
  display: flex;
}
.asc-new-badge {
  color: #fff;
  background: #ef4444;
  border-radius: 0 8px 0 6px;
  padding: 1px 5px;
  font-size: 0.55rem;
  font-weight: 900;
  position: absolute;
  top: -1px;
  right: -1px;
}
.products-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  display: grid;
}
.product-card {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: right;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    border-color 0.15s;
  display: flex;
  position: relative;
  box-shadow: 0 6px 18px #24212b0f;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #24212b1f;
}
.product-card.selected {
  border-color: var(--orange);
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.2);
}
.selected-badge {
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 900;
  position: absolute;
  top: 8px;
  left: 8px;
}
.product-art {
  border-radius: var(--radius);
  flex-shrink: 0;
  place-items: center;
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  display: grid;
}
.card-copy {
  flex-direction: column;
  gap: 2px;
  display: flex;
}
.card-copy strong {
  font-size: 0.95rem;
}
.card-copy small {
  color: var(--muted);
  font-size: 0.78rem;
}
.start-bar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  display: flex;
}
.setup-message {
  color: var(--muted);
  margin: 0;
}
.start-button {
  min-width: 160px;
}
.scorebar {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 24px 0 16px;
  padding: 20px 24px;
  display: grid;
  box-shadow: 0 4px 16px rgba(36, 33, 43, 0.04);
}
.team-box {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  display: flex;
}
.team-box strong {
  font-size: 1.15rem;
  font-weight: 900;
}
.team-score {
  color: var(--orange);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}
.round-box {
  text-align: center;
  color: var(--muted);
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 900;
}
.game-assists {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  display: grid;
}
.game-assists article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}
.assist-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 900;
}
.assist-title-sm {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 900;
}
.assist-strip {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}
.assist-strip.mini {
  gap: 6px;
}
.assist-pill {
  cursor: pointer;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 8px 10px;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    opacity 0.15s;
  display: flex;
}
.assist-pill:hover:not(.used):not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px #24212b1a;
}
.assist-pill.used {
  opacity: 0.35;
  cursor: not-allowed;
}
.assist-pill.mini {
  min-width: 60px;
  padding: 6px 8px;
}
.assist-pill-icon {
  background: #fff;
  border: 2px solid;
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  display: grid;
}
.assist-pill.mini .assist-pill-icon {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}
.assist-pill-name {
  color: var(--ink);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
}
.board-section {
  margin-bottom: 24px;
}
.board {
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  display: grid;
  overflow-x: auto;
}
.board-col {
  flex-direction: column;
  gap: 8px;
  display: flex;
}
.board-title {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 72px;
  padding: 10px 8px;
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
}
.board-emoji {
  border-radius: 6px;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 1.3rem;
  display: grid;
}
.question-button {
  border-radius: var(--radius);
  min-height: 52px;
  color: var(--orange);
  cursor: pointer;
  background: linear-gradient(135deg, #fff, var(--orange-soft));
  border: 2px solid rgba(var(--orange-rgb), 0.25);
  padding: 8px;
  font-size: 1rem;
  font-weight: 900;
  transition:
    transform 0.15s,
    background 0.15s,
    box-shadow 0.15s;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.1);
}
.question-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--orange-soft), #ffd4c7);
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(var(--orange-rgb), 0.2);
}
.question-button.used {
  background: var(--soft);
  color: var(--muted);
  cursor: default;
  box-shadow: none;
  border-color: #0000;
}
.reset-row {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  display: flex;
}
.modal {
  z-index: 100;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(36, 33, 43, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: none;
  position: fixed;
  inset: 0;
}
.modal.open {
  display: flex;
}
.modal-card {
  background: var(--surface);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  padding: 32px;
  animation: 0.25s modalIn;
  box-shadow: 0 32px 80px rgba(36, 33, 43, 0.15);
}
@keyframes modalIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-meta {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}
.modal-category {
  color: var(--muted);
  font-weight: 900;
}
.modal-points {
  color: var(--orange);
  font-size: 1.1rem;
  font-weight: 900;
}
.question-text {
  margin-bottom: 18px;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.5;
}
.question-assists {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  display: grid;
}
.answer-box {
  border-radius: var(--radius);
  background: var(--soft);
  min-height: 56px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 900;
  transition:
    background 0.2s,
    color 0.2s;
}
.answer-box.show {
  color: #15803d;
  background: #e6f9ee;
}
.control-row {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  display: flex;
}
.effect-banner {
  border-radius: var(--radius);
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 900;
  animation: 0.2s bannerIn;
  display: flex;
}
@keyframes bannerIn {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.effect-banner.blue {
  color: #1e40af;
  background: #dbeafe;
}
.effect-banner.green {
  color: #92400e;
  background: #fef3c7;
}
.effect-banner.brown {
  color: #92400e;
  background: #fdf3e6;
}
.effect-banner.red {
  color: #b91c1c;
  background: #fee2e2;
}
.effect-banner.yellow {
  color: #a16207;
  background: #fefce8;
}
.effect-icon {
  flex-shrink: 0;
  font-size: 1.2rem;
}
.call-timer {
  background: #00000012;
  border-radius: 999px;
  margin-right: auto;
  padding: 2px 10px;
  font-size: 1.3rem;
  font-weight: 900;
}
.section {
  padding: 20px 0 36px;
}
.section.split {
  grid-template-columns: 1fr 380px;
  align-items: start;
  gap: 24px;
  display: grid;
}
.card.form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  display: flex;
}
.form-note {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
}
.faq-box {
  flex-direction: column;
  gap: 10px;
  display: flex;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.faq-item summary::marker {
  display: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:after {
  content: ' ▾';
  font-size: 0.8rem;
}
.faq-item[open] summary:after {
  content: ' ▴';
}
.faq-item p {
  color: var(--muted);
  margin: 8px 0 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  padding: 24px 0;
}
.footer-inner {
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  display: flex;
}
.footer-inner span {
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links {
  gap: 8px;
  margin-right: auto;
  display: flex;
}
.footer-links a {
  color: #4f4b56;
  border-radius: 999px;
  min-height: 36px;
  padding: 6px 14px;
  font-weight: 600;
  transition: all 0.2s;
}
#home-games-grid {
  margin: 24px 0 0;
}
.footer-links a:hover {
  background: rgba(var(--orange-rgb), 0.06);
  color: var(--orange);
}
@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .special-grid {
    grid-template-columns: 1fr 1fr;
  }
  .story-section {
    grid-template-columns: 1fr;
  }
  .story-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .assist-pickers {
    grid-template-columns: 1fr;
  }
  .board {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
  .game-assists,
  .section.split {
    grid-template-columns: 1fr;
  }
  .opensource-section {
    padding: 28px 20px;
  }
}
@media (max-width: 600px) {
  .setup-strip,
  .summary-grid,
  .special-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .board {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
  .scorebar {
    text-align: center;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .question-assists {
    grid-template-columns: 1fr;
  }
  .os-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
  .os-download-all {
    flex-direction: column;
    align-items: flex-start;
  }
  .os-zip-btn {
    justify-content: center;
    width: 100%;
  }
  .social-links {
    flex-direction: column;
    align-items: center;
  }
  .follow-us {
    padding: 24px 16px;
  }
  .games-badge-grid {
    padding: 4px 20px;
  }
  .games-bf {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}
@property --tw-translate-x {
  syntax: '*';
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-y {
  syntax: '*';
  inherits: false;
  initial-value: 0;
}
@property --tw-translate-z {
  syntax: '*';
  inherits: false;
  initial-value: 0;
}
@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-space-y-reverse {
  syntax: '*';
  inherits: false;
  initial-value: 0;
}
@property --tw-space-x-reverse {
  syntax: '*';
  inherits: false;
  initial-value: 0;
}
@property --tw-border-style {
  syntax: '*';
  inherits: false;
  initial-value: solid;
}
@property --tw-leading {
  syntax: '*';
  inherits: false;
}
@property --tw-font-weight {
  syntax: '*';
  inherits: false;
}
@property --tw-tracking {
  syntax: '*';
  inherits: false;
}
@property --tw-ordinal {
  syntax: '*';
  inherits: false;
}
@property --tw-slashed-zero {
  syntax: '*';
  inherits: false;
}
@property --tw-numeric-figure {
  syntax: '*';
  inherits: false;
}
@property --tw-numeric-spacing {
  syntax: '*';
  inherits: false;
}
@property --tw-numeric-fraction {
  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-duration {
  syntax: '*';
  inherits: false;
}
@property --tw-ease {
  syntax: '*';
  inherits: false;
}
@property --tw-content {
  syntax: '*';
  inherits: false;
  initial-value: '';
}
@keyframes pulse {
  50% {
    opacity: 0.5;
  }
}
@keyframes ptbShake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
.ptb-shake {
  animation: ptbShake 0.2s ease-in-out infinite;
}


html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  padding-bottom: 100px;
}

a[data-route] {
  text-decoration: none;
}

html.dark .scorebar {
  background: #1f2937;
}
html.dark .modal-card {
  background: #1f2937;
}
html.dark .product-card.selected {
  background: #1e3a5f;
}
html.dark .assist-setup-card.selected {
  background: #1e3a5f;
}
html.dark .question-button:not(.used) {
  background: #1e3a5f;
  color: #93c5fd;
}
html.dark .btn-ghost {
  color: #d1d5db;
}
html.dark .question-button.used {
  background: #374151;
  color: #6b7280;
}
html.dark .editor-textarea {
  background: #111827;
  color: #f3f4f6;
}
html.dark select {
  background: #374151;
  color: #f3f4f6;
}
html.dark input {
  background: #374151;
  color: #f3f4f6;
}
html.dark textarea {
  background: #1e2937;
  color: #f3f4f6;
  border-color: #4b5563;
}
.modal-meta {
  gap: 10px;
  flex-wrap: wrap;
}

.question-timer {
  min-width: 68px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  padding: 4px 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(var(--orange-rgb), 0.16);
}
html.dark .question-timer {
  background: #3b1c1a;
  color: var(--orange);
}
html.dark .timer-track {
  background: #374151;
}
html.dark .difficulty-badge.easy {
  background: #064e3b;
  color: #6ee7b7;
}
html.dark .difficulty-badge.normal {
  background: #1e3a5f;
  color: #93c5fd;
}
html.dark .difficulty-badge.hard {
  background: #5b1a1a;
  color: #fca5a5;
}

.timer-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2eee9;
  margin: 8px 0 18px;
}

.timer-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #16a34a, #f59e0b, var(--orange));
  transform-origin: right center;
  transition: transform 0.25s linear;
}

@keyframes fc-float {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-3px) translateX(2px);
  }
  100% {
    transform: translateY(0) translateX(-2px);
  }
}
.fc-cell {
  will-change: transform;
}

.difficulty-badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.86rem;
  font-weight: 900;
}

.difficulty-badge.easy {
  background: #dcfce7;
  color: #15803d;
}

.difficulty-badge.normal {
  background: #dbeafe;
  color: #1d4ed8;
}

.effect-banner.cyan {
  background: #ecfeff;
  color: #0891b2;
  border-color: #67e8f9;
}
.difficulty-badge.hard {
  background: #fee2e2;
  color: #b91c1c;
}

.setup-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 12px 0 18px;
}

.category-search {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.category-search input {
  width: 100%;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
}

.scorebar {
}

.score-controls,
.score-actions,
.summary-actions,
.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.score-controls button,
.sound-toggle {
  min-height: 48px;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 800;
}

.summary-panel,
.question-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin: 24px 0;
  padding: 28px;
  box-shadow: 0 10px 26px rgba(36, 33, 43, 0.08);
}

.summary-panel {
  display: grid;
  gap: 18px;
  text-align: center;
}

.summary-winner {
  color: var(--orange);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 14px;
}

.summary-stat {
  border-radius: var(--radius);
  background: var(--soft);
  padding: 18px;
  font-weight: 900;
  font-size: 1.1rem;
}

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

.question-editor summary {
  cursor: pointer;
  font-weight: 900;
}

.editor-textarea {
  direction: ltr;
  min-height: 260px;
  margin: 14px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.editor-message {
  color: var(--muted);
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 0.85rem;
  font-weight: 800;
}

.product-card,
.assist-setup-card,
.assist-pill,
.question-button,
.btn-primary,
.btn-ghost,
.btn-dark,
.btn-danger {
  user-select: none;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.modal-card {
  max-height: calc(100svh - 32px);
  overflow-y: auto;
}

@media (max-width: 640px) {
  .nav {
    gap: 10px;
  }
  .nav-links {
    gap: 4px;
  }
  .nav-links a {
    font-size: 0.85rem;
    padding: 8px 12px;
    min-height: 44px;
  }
  .nav-cta {
    padding-inline: 14px;
    font-size: 0.85rem;
    padding: 8px 16px;
    min-height: 44px;
  }
  .brand-text {
    font-size: 1.5rem;
  }
  .replit-pill {
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    font-size: 10px;
  }
  .setup-tools {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .category-search {
    max-width: 100%;
  }
  .summary-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .setup-strip > label {
    min-width: 120px;
    flex: 1 1 120px;
    font-size: 0.88rem;
  }
  .setup-strip {
    gap: 10px;
    margin: 12px 0;
  }
  .setup-counter {
    font-size: 0.88rem;
    padding: 8px 14px;
  }
  .setup-counter strong {
    font-size: 1.1rem;
  }
  .scorebar {
    top: 0;
    padding: 14px;
    gap: 10px;
    flex-direction: row;
  }
  .team-box {
    min-width: 100px;
    flex: 1 1 0;
  }
  .team-box strong {
    font-size: 1rem;
  }
  .team-score {
    font-size: 1.8rem;
  }
  .round-box {
    font-size: 0.88rem;
    flex: 2 1 auto;
  }
  .score-controls button,
  .sound-toggle {
    font-size: 0.82rem;
    padding: 6px 12px;
    min-height: 40px;
  }
  .selina-page {
    padding-bottom: 24px;
  }
  .game-top {
    padding: 16px 0 0;
  }
  .helper-section,
  .category-section {
    padding: 12px 0 18px;
  }
  .section-row {
    gap: 12px;
    margin-bottom: 12px;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .product-card {
    padding: 14px;
    gap: 10px;
  }
  .product-art {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  .card-copy strong {
    font-size: 0.92rem;
  }
  .card-copy small {
    font-size: 0.78rem;
  }
  .assist-cards-row {
    gap: 8px;
  }
  .assist-setup-card {
    width: 100px;
    padding: 10px 6px;
    gap: 6px;
  }
  .asc-icon-circle {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .asc-name {
    font-size: 0.78rem;
    min-height: 30px;
  }
  .asc-desc {
    font-size: 0.72rem;
    min-height: 26px;
  }
  .assist-team {
    padding: 14px;
  }
  .board {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .board-title {
    min-height: 64px;
    padding: 8px;
    font-size: 0.82rem;
  }
  .board-emoji {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .question-button {
    min-height: 48px;
    font-size: 0.95rem;
  }
  .modal {
    padding: 12px;
  }
  .modal-card {
    padding: 18px;
  }
  .question-text {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }
  .question-assists {
    gap: 8px;
  }
  .assist-pill {
    min-width: 64px;
    padding: 6px;
    gap: 4px;
  }
  .assist-pill-icon {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    border-width: 2px;
  }
  .assist-pill-name {
    font-size: 0.7rem;
  }
  .assist-strip {
    gap: 6px;
  }
  .game-assists {
    gap: 10px;
  }
  .game-assists article {
    padding: 12px;
  }
  .assist-title {
    font-size: 0.92rem;
  }
  .theme-row {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .theme-row label {
    min-width: 0;
  }
  .pill-btn {
    min-height: 44px;
    font-size: 0.85rem;
  }
  .btn-primary,
  .btn-ghost,
  .btn-dark,
  .btn-danger {
    min-height: 56px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 16px;
  }
  .start-bar {
    padding: 16px;
    gap: 12px;
  }
  .start-button {
    min-width: 140px;
  }
  .section.split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .control-row {
    gap: 8px;
  }
  .control-row button {
    font-size: 0.85rem;
  }
  .action-row {
    gap: 6px;
  }
  .action-row button {
    font-size: 0.88rem;
    padding: 10px 16px;
    min-height: 44px;
  }
  .summary-stat {
    padding: 12px;
    font-size: 0.92rem;
  }
  .summary-panel {
    padding: 16px;
    gap: 12px;
  }
  .summary-winner {
    font-size: 1.4rem;
  }
  .question-editor {
    padding: 14px;
  }
  .editor-textarea {
    min-height: 200px;
  }
  .nav-links button {
    font-size: 0.82rem;
    padding: 6px 10px;
    min-height: 38px;
  }
  .effect-banner {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
  .story-section {
    padding: 20px 16px !important;
    gap: 10px;
  }
  .story-section .story-text {
    font-size: 0.8rem;
  }
  .td-acc {
    gap: 6px;
  }
  .td-acc-c {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  .start-hero {
    padding: 40px 0 24px !important;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    min-height: 52px;
    padding: 12px 26px;
    font-size: 1rem;
  }
  .social-btn {
    min-height: 40px;
    padding: 6px 14px;
    font-size: 0.85rem;
  }
  .social-row {
    gap: 8px;
    margin-top: 12px;
  }
  .hero-brand-text {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }
  .hero-brand-sub {
    font-size: 1rem;
  }
  .summary-section,
  .special-section {
    padding: 20px 0 24px;
  }
  .summary-card {
    padding: 16px 14px;
  }
  .summary-card strong {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .special-card {
    padding: 20px 16px;
  }
  .special-card > span {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
  .closing-brand {
    padding: 40px 20px;
    margin-top: 32px;
  }
  .closing-logo-text {
    font-size: clamp(3.5rem, 12vw, 6rem);
  }
  .opensource-section {
    gap: 20px;
    margin: 28px 0;
    padding: 28px 20px;
  }
}

@media (max-width: 400px) {
  .nav {
    gap: 6px;
  }
  .nav-links a {
    font-size: 0.78rem;
    padding: 6px 8px;
    min-height: 38px;
  }
  .nav-cta {
    font-size: 0.78rem;
    padding: 6px 10px;
    min-height: 38px;
  }
  .brand-text {
    font-size: 1.3rem;
  }
  .setup-strip > label {
    min-width: 100px;
    flex: 1 1 100px;
    font-size: 0.82rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .board {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .assist-setup-card {
    width: 90px;
    padding: 8px 4px;
  }
  .td-acc {
    gap: 3px;
  }
  .td-acc-c {
    padding: 6px 2px;
    font-size: 0.55rem;
    border-radius: 8px;
  }
  .td-acc-i {
    font-size: 0.85rem;
  }
  .asc-icon-circle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .asc-name {
    font-size: 0.72rem;
  }
  .modal-card {
    padding: 14px;
  }
  .question-text {
    font-size: 1.05rem;
  }
  .scorebar {
    gap: 6px;
    padding: 10px;
  }
  .team-box {
    min-width: 80px;
  }
  .score-controls button,
  .sound-toggle {
    font-size: 0.75rem;
    padding: 4px 8px;
    min-height: 34px;
  }
  .team-score {
    font-size: 1.5rem;
  }
  .round-box {
    flex: 1 1 auto;
  }
  .pill-btn {
    min-height: 40px;
    font-size: 0.82rem;
    padding: 8px 14px;
  }
  .btn-primary,
  .btn-ghost,
  .btn-dark,
  .btn-danger {
    min-height: 48px;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .start-hero {
    padding: 24px 0 12px !important;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    min-height: 44px;
    padding: 8px 18px;
    font-size: 0.88rem;
  }
  .social-btn {
    min-height: 34px;
    padding: 4px 10px;
    font-size: 0.78rem;
  }
  .summary-section,
  .special-section {
    padding: 14px 0 18px;
  }
  .summary-card {
    padding: 12px 10px;
  }
  .special-card {
    padding: 14px 12px;
  }
  .closing-brand {
    padding: 24px 14px;
    margin-top: 20px;
  }
  .opensource-section {
    gap: 14px;
    margin: 20px 0;
    padding: 20px 14px;
  }
  .assist-pill {
    min-width: 56px;
    padding: 4px;
  }
  .assist-pill-icon {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }
  .assist-pill-name {
    font-size: 0.65rem;
  }
  .bbx-banner {
    min-height: 134px;
    padding: 12px 12px 10px;
  }
  .bbx-banner-text {
    max-width: 72%;
  }
  .bbx-banner h3 {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.3;
  }
  .bbx-banner p {
    max-width: 100%;
    font-size: 0.64rem;
    line-height: 1.5;
  }
  .bbx-banner-actions {
    max-width: 72%;
    gap: 8px;
  }
  .bbx-banner-actions .bbx-banner-cta {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
  .bbx-banner-art {
    width: 92px;
  }
}
/* big screens: big Sloom in the banner, showing his outfit */
@media (min-width: 1024px) {
  .bbx-banner {
    min-height: 150px;
    padding: 16px 22px;
  }
  .bbx-banner h3 {
    max-width: 60%;
    font-size: 1.15rem;
  }
  .bbx-banner p {
    max-width: 56%;
  }
  .bbx-banner-art {
    width: 170px;
    inset-inline-end: 10px;
  }
}
/* ── Dark mode ── */
/* ============================================================
   BB GAMES DESIGN TOKENS  (Telegram iGaming / cyber dark)
   ============================================================ */
:root {
  /* --- core brand palette: Fitness Orange & White --- */
  --brand-primary: #ff6b2b; /* Zesty Orange   */
  --brand-primary-strong: #f4571e; /* pressed orange */
  --secondary-soft: #ffd9c2; /* Soft Peach     */
  --bg-base: #ffffff; /* Pure White     */
  --surface: #ffffff; /* card layer     */
  --surface-2: #fff4ee; /* soft peach chip */
  --surface-glass: rgba(var(--orange-rgb), 0.06);
  --text-main: #1c1917; /* Espresso Ink   */
  --text-secondary: #78716c; /* Warm Gray      */
  --text-disabled: #a8a29e; /* Paled Gray     */
  --stroke: rgba(28, 25, 23, 0.1);
  --stroke-strong: rgba(28, 25, 23, 0.18);
  --glow-primary: 0 0 20px rgba(var(--orange-rgb), 0.35);
  --glow-soft: 0 0 44px rgba(var(--orange-rgb), 0.16);
  --radius-card: 18px;
  --bb-appbar-h: 58px;
  --bb-dock-h: 96px;

  /* --- legacy aliases: every existing Sllina rule + inline
         style="var(--orange)" now resolves to the orange/white palette --- */
  --orange: var(--brand-primary);
  --orange-dark: var(--brand-primary-strong);
  /* theme-derived brand tones (computed from the chosen primary) */
  --orange-rgb: 255, 107, 43;
  --orange-light: #ff8c5a;
  --orange-soft: #fff0e9;
  --orange-soft2: #fff8f3;
  --orange-soft2-rgb: 255, 248, 243;
  --orange-tint1: #ffe0d5;
  --orange-tint2: #ffe8e0;
  --orange-tint3: #fff5f0;
  --ink: var(--text-main);
  --text: var(--text-main);
  --muted: var(--text-secondary);
  --paper: var(--bg-base);
  --bg: var(--bg-base);
  --soft: var(--surface-2);
  --line: var(--stroke);
  --shadow: 0 18px 42px rgba(28, 25, 23, 0.1);
  --blue: #60a5fa;
  --green: #22c55e;
  --brown: #b45309;
  --red: #ef4444;
  --yellow: #f59e0b;
  --purple: #ff6b2b;
  --radius: 18px;
  --font-base: 1.0625rem;
  --win: #22c55e;
  --lose: #ef4444;
}
/* light is the default; the class keeps the theme toggle working */
html.dark {
  --brand-primary: #ff7a3d; /* sunset orange */
  --brand-primary-strong: #f4571e;
  --secondary-soft: #ffb88c;
  --bg-base: #0e0d0c;
  --surface: #1a1715;
  --surface-2: #221e1b;
  --text-main: #fff7f0;
  --text-secondary: #a8a29e;
  --text-disabled: #57534e;
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.18);
  --glow-primary: 0 0 20px rgba(255, 122, 61, 0.45);
  --glow-soft: 0 0 44px rgba(255, 122, 61, 0.2);
  --bg: var(--bg-base);
  --paper: var(--bg-base);
  --surface: #1a1715;
  --soft: var(--surface-2);
  --text: var(--text-main);
  --ink: var(--text-main);
  --muted: var(--text-secondary);
  --line: var(--stroke);
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}
body {
  color: #1a1a1a;
  color: var(--text);
}
/* ── Confetti ── */
@keyframes confetti-fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}
.confetti-piece {
  position: fixed;
  top: -10vh;
  width: 10px;
  height: 10px;
  z-index: 999;
  animation: confetti-fall 3s ease-in forwards;
  pointer-events: none;
  border-radius: 2px;
}
.wd-row {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.wd-cell {
  width: calc((100vw - 60px) / 5);
  max-width: 52px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.3rem;
  border-radius: 4px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-transform: uppercase;
  transition: all 0.2s;
}
.wd-cell.wd-active {
  border-color: var(--orange);
  transform: scale(1.05);
}
.wd-cell.wd-g {
  background: #538d4e;
  border-color: #538d4e;
  color: #fff;
}
.wd-cell.wd-y {
  background: #b59f3b;
  border-color: #b59f3b;
  color: #fff;
}
.wd-cell.wd-b {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #fff;
}
html.dark .wd-cell {
  background: var(--surface);
  color: var(--ink);
}
html.dark .wd-cell.wd-b {
  background: #d32f2f;
  border-color: #d32f2f;
}
.wd-kb-row {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.wd-kb {
  padding: 8px 3px;
  min-width: 28px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background: #818384;
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  text-transform: uppercase;
  flex: 1;
  max-width: 32px;
  transition: all 0.15s;
}
.wd-kb.wd-g {
  background: #538d4e;
  color: #fff;
}
.wd-kb.wd-y {
  background: #b59f3b;
  color: #fff;
}
.wd-kb.wd-b {
  background: #d32f2f;
  color: #fff;
}
.wd-kb.wd-kb-focus {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  transform: scale(1.1);
  z-index: 2;
  position: relative;
}
.wd-kb-wide {
  max-width: 65px;
  background: var(--muted);
  font-size: 0.65rem;
  flex: 1.5;
}
.wd-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: wdFadeIn 0.2s;
}
.wd-modal {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  max-width: 340px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
}
.wd-modal h2 {
  margin: 0 0 16px;
  font-size: 1.3rem;
}
.wd-stats-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}
.wd-stat {
  flex: 1;
}
.wd-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ink);
}
.wd-stat-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wd-dist {
  text-align: left;
  margin-bottom: 16px;
}
.wd-dist-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 2px 0;
  font-size: 0.75rem;
}
.wd-dist-bar {
  height: 18px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0 4px;
  display: flex;
  align-items: center;
  min-width: 20px;
  justify-content: flex-end;
  transition: width 0.5s;
}
.wd-dist-bar.empty {
  background: var(--line);
  color: var(--muted);
  justify-content: center;
  min-width: 20px;
}
.wd-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 4px;
}
.wd-btn.again {
  background: var(--orange);
}
.wd-btn:active {
  transform: scale(0.95);
}
@keyframes wdFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes wdFlip {
  0% {
    transform: rotateX(0);
  }
  49% {
    transform: rotateX(90deg);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0);
  }
}
.wd-cell.wd-anim {
  animation: wdFlip 0.4s ease;
}
.cw-bar {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
}
.cw-bar-in {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s;
}
.cw-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  margin: 3px 0;
  transition: all 0.15s;
}
.cw-rank {
  min-width: 36px;
  font-weight: 900;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.cw-word {
  flex: 1;
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cw-input {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  padding: 10px 12px;
  flex: 1;
  outline: none;
}
.cw-input:focus {
  border-color: var(--orange);
}
.cw-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}
@keyframes bbBgShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes bbScorePop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes bbComboPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.bb-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  overflow-y: auto;
  padding: 0;
  width: 100%;
  background: linear-gradient(-45deg, #2a1a4e, #1a3a6e, #455996, #2a3a6e);
  background-size: 400% 400%;
  animation: bbBgShift 8s ease infinite;
}
.bb-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 14px 6px;
  flex-shrink: 0;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}
.bb-score-label {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.bb-score-val {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  text-shadow:
    0 0 25px #f54cff,
    0 0 50px #f54cff88,
    0 0 80px #f54cff44;
  transition: color 0.15s;
  cursor: default;
  letter-spacing: 1px;
}
.bb-score-val.pop {
  animation: bbScorePop 0.2s ease;
}
.bb-score-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
  flex-wrap: wrap;
  width: 100%;
}
.bb-combo {
  display: none;
  padding: 5px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f54cff, #ff6b6b);
  box-shadow: 0 0 20px rgba(245, 76, 255, 0.6);
  letter-spacing: 0.5px;
}
.bb-combo.show {
  display: inline-block;
  animation: bbComboPop 0.3s ease;
}
.bb-high {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.bb-high strong {
  font-size: 1.1rem;
  color: rgba(255, 215, 0, 0.9);
  font-weight: 900;
}
.bb-combo.show {
  font-size: 0.9rem;
}
.bb-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}
.bb-canvas-wrap canvas {
  max-width: 100%;
  max-height: 100%;
  touch-action: none;
}
.bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 420px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bottom-nav-wrap {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  border-radius: 40px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  gap: 24px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.bnav-group {
  display: flex;
  gap: 14px;
  align-items: center;
}
.bnav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  border-radius: 12px;
  transition:
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bnav-link:hover {
  color: var(--orange);
  transform: scale(1.15);
}
.bnav-link.active {
  color: var(--orange);
  background: rgba(var(--orange-rgb), 0.12);
  box-shadow: inset 0 0 12px rgba(var(--orange-rgb), 0.15);
}
.bnav-link .bnav-icon {
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
}
.bnav-link .bnav-label {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 15, 23, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.65rem;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  transform: translateX(-50%) translateY(4px);
}
.bnav-link:hover .bnav-label,
.bnav-link:focus .bnav-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.bnav-center {
  position: absolute;
  top: -44px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 28px rgba(var(--orange-rgb), 0.4);
  z-index: 10;
  text-decoration: none;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.15);
}
.bnav-center:hover {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 12px 40px rgba(var(--orange-rgb), 0.6);
}
.bnav-center .bnav-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}
.bnav-indicator {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(var(--orange-rgb), 0.4);
}
html.dark .bottom-nav-wrap {
  background: rgba(18, 15, 23, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 0 1.5px rgba(var(--orange-rgb), 0.35);
}
html.dark .bnav-link {
  color: rgba(255, 255, 255, 0.3);
}
html.dark .bnav-link:hover {
  color: var(--orange);
}
html.dark .bnav-link.active {
  color: var(--orange);
  background: rgba(var(--orange-rgb), 0.15);
  box-shadow: inset 0 0 16px rgba(var(--orange-rgb), 0.25);
}
@keyframes bnavPulse {
  0%,
  100% {
    box-shadow: 0 8px 28px rgba(var(--orange-rgb), 0.4);
    transform: translateX(-50%) scale(1);
  }
  50% {
    box-shadow: 0 8px 40px rgba(var(--orange-rgb), 0.7);
    transform: translateX(-50%) scale(1.04);
  }
}
/* ── Setup strip grid ── */
.setup-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 18px 0;
}
.setup-strip > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 160px;
  flex: 1 1 160px;
}
.setup-strip > label input,
.setup-strip > label select {
  min-height: 50px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  padding: 10px 14px;
  font-size: 1.05rem;
  background: var(--bg);
  color: var(--text);
}
.setup-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}
.setup-counter strong {
  font-size: 1.3rem;
  color: var(--orange);
}

/* ── Dark mode extras ── */
html.dark .site-header {
  background: #1a2332;
}
html.dark .game-top h1 {
  color: #f3f4f6;
}
html.dark .setup-strip > label input,
html.dark .setup-strip > label select {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #4b5563;
}
html.dark .action-row {
  border-color: #4b5563;
}
html.dark .assist-setup-card {
  background: #1f2937;
  border-color: #374151;
  color: #d1d5db;
}
html.dark .assist-setup-card.selected {
  background: #3b2218;
  border-color: var(--orange);
}
html.dark .start-bar {
  border-top-color: #374151;
}
html.dark .assist-team-title {
  color: #d1d5db;
}
html.dark .product-card {
  background: #1f2937;
  border-color: #374151;
}
html.dark .product-card.selected {
  background: #3b2218;
  border-color: var(--orange);
}
html.dark .board-title {
  color: #d1d5db;
}
html.dark .game-assists {
  border-color: #374151;
}
html.dark .assist-title {
  color: #d1d5db;
}
html.dark .setup-message {
  color: #9ca3af;
}
html.dark .modal-category {
  color: #93c5fd;
}
html.dark .question-text {
  color: #f3f4f6;
}
html.dark .category-search input {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #4b5563;
}
html.dark .setup-counter {
  background: #374151;
  color: #9ca3af;
}

/* ── Home page animations ── */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
@keyframes navSlideIn {
  0% {
    opacity: 0;
    transform: scaleY(0.85) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}
@keyframes navSlideOut {
  0% {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scaleY(0.85) translateY(-8px);
  }
}
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(var(--orange-rgb), 0.25);
  }
  50% {
    box-shadow:
      0 0 40px rgba(var(--orange-rgb), 0.38),
      0 0 60px rgba(var(--orange-rgb), 0.13);
  }
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}
@keyframes rainbow {
  0% {
    filter: hue-rotate(0deg);
  }
  100% {
    filter: hue-rotate(360deg);
  }
}
.summary-card.color-nh {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  box-shadow: 0 8px 24px #2e7d321a;
}
.summary-card.color-nh::after {
  background: linear-gradient(90deg, #2e7d32, #43a047);
}
.summary-card.color-nh strong {
  background: linear-gradient(135deg, #2e7d32, #43a047);
}
.game-pop {
  animation: pop 2s ease-in-out infinite;
}
.game-pop:hover {
  animation-play-state: paused;
}
@keyframes pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}
.game-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 60;
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 var(--line);
}
html.dark .game-nav {
  background: rgba(18, 18, 20, 0.78);
}
html.show-top .game-nav {
  top: 56px;
}
.game-nav .btn-ghost {
  padding: 6px 12px;
  font-size: .8rem;
  white-space: nowrap;
}
.game-nav-title {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-weight: 800;
  font-size: .85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-invite-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  background: rgba(var(--orange-rgb,255,107,43), 0.10);
  color: var(--orange, #FF6B2B);
  border: 1px solid rgba(var(--orange-rgb,255,107,43), 0.20);
  transition: background 0.15s, transform 0.12s;
}
.game-invite-btn:hover { background: rgba(var(--orange-rgb,255,107,43), 0.18); }
.game-invite-btn:active { transform: scale(0.95); }
/* ── Invite sheet (Apple-style bottom sheet) ── */
.invite-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.invite-sheet-overlay.open { opacity: 1; }
.invite-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: var(--card, #fff);
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 12px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.12);
}
.invite-sheet.open { transform: translateY(0); }
html.dark .invite-sheet { background: #1c1c1e; box-shadow: 0 -4px 30px rgba(0,0,0,0.5); }
.invite-sheet-handle {
  width: 36px;
  height: 5px;
  border-radius: 3px;
  background: var(--line, #e2e2e2);
  margin: 10px auto 0;
  flex-shrink: 0;
}
.invite-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  flex-shrink: 0;
}
.invite-sheet-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink, #1a1620);
}
html.dark .invite-sheet-header h3 { color: #f5f5f7; }
.invite-sheet-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--surface, #f2f2f7);
  color: var(--muted, #8e8e93);
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
html.dark .invite-sheet-close { background: #2c2c2e; color: #98989d; }
.invite-sheet-close:hover { background: var(--line, #e5e5ea); }
.invite-sheet-body {
  overflow-y: auto;
  padding: 0 20px 16px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.invite-section-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #8e8e93);
  margin: 14px 0 8px;
}
.invite-friend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line, #e5e5ea);
}
.invite-friend-row:last-child { border-bottom: none; }
.invite-friend-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface, #f2f2f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.invite-friend-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.invite-friend-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--card, #fff);
  background: #d1d5db;
}
html.dark .invite-friend-dot { border-color: #1c1c1e; }
.invite-friend-dot.on { background: #34c759; }
.invite-friend-info { flex: 1; min-width: 0; }
.invite-friend-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink, #1a1620);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html.dark .invite-friend-name { color: #f5f5f7; }
.invite-friend-status {
  font-size: .75rem;
  color: var(--muted, #8e8e93);
}
.invite-send-btn {
  padding: 6px 16px;
  border-radius: 16px;
  border: none;
  background: var(--orange, #FF6B2B);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.12s;
  flex-shrink: 0;
}
.invite-send-btn:hover { opacity: 0.88; }
.invite-send-btn:active { transform: scale(0.95); }
.invite-send-btn.sent {
  background: var(--surface, #f2f2f7);
  color: var(--muted, #8e8e93);
}
html.dark .invite-send-btn.sent { background: #2c2c2e; color: #98989d; }
.invite-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--muted, #8e8e93);
  font-size: .9rem;
}
.invite-empty-icon { font-size: 2rem; margin-bottom: 8px; }
.invite-pending-section { margin-top: 8px; }
.invite-pending-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: rgba(var(--orange-rgb,255,107,43), 0.06);
  border-radius: 14px;
  border: 1px solid rgba(var(--orange-rgb,255,107,43), 0.12);
}
.invite-pending-info { flex: 1; min-width: 0; }
.invite-pending-name { font-size: .88rem; font-weight: 600; color: var(--ink, #1a1620); }
html.dark .invite-pending-name { color: #f5f5f7; }
.invite-pending-text { font-size: .75rem; color: var(--muted, #8e8e93); }
.invite-accept-btn {
  padding: 6px 14px;
  border-radius: 16px;
  border: none;
  background: #34c759;
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.invite-accept-btn:hover { opacity: 0.88; }
.invite-decline-btn {
  padding: 6px 10px;
  border-radius: 16px;
  border: none;
  background: var(--surface, #f2f2f7);
  color: var(--muted, #8e8e93);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
html.dark .invite-decline-btn { background: #2c2c2e; color: #98989d; }
.invite-decline-btn:hover { background: var(--line, #e5e5ea); }
@media (min-width: 500px) {
  .invite-sheet { max-width: 420px; left: 50%; transform: translate(-50%, 100%); }
  .invite-sheet.open { transform: translate(-50%, 0); }
  .invite-sheet-overlay { border-radius: 20px 20px 0 0; }
}

/* ── Hero section ── */
.start-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
}
/* Colorful floating blobs in hero */
.start-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--orange-rgb), 0.08) 0%,
    rgba(var(--orange-rgb), 0.03) 50%,
    transparent 70%
  );
  top: -200px;
  left: -200px;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.start-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(var(--orange-rgb), 0.08) 0%,
    rgba(var(--orange-rgb), 0.03) 50%,
    transparent 70%
  );
  bottom: -150px;
  right: -150px;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

.hero-logo-wrap {
  animation: fadeScale 0.8s ease-out;
  position: relative;
}
.hero-brand-text {
  color: var(--orange);
  text-shadow: none;
  font-size: clamp(4.5rem, 12vw, 8rem);
  filter: drop-shadow(0 4px 12px rgba(var(--orange-rgb), 0.2));
  animation: float 5s ease-in-out 1s infinite;
}
.hero-brand-sub {
  color: var(--muted);
  font-size: 1.3rem;
  margin-top: 8px;
}
.start-hero .eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  color: #fff;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  animation: fadeUp 0.7s ease-out 0.3s both;
}
.start-hero h1 {
  background: linear-gradient(135deg, var(--text), var(--orange));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    fadeUp 0.7s ease-out 0.4s both,
    shimmer 6s ease-in-out 1s infinite;
}
.start-hero .lead {
  animation: fadeUp 0.7s ease-out 0.5s both;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
.hero-actions {
  animation: fadeUp 0.7s ease-out 0.6s both;
  gap: 16px;
}
.social-row {
  animation: fadeUp 0.7s ease-out 0.7s both;
}

/* Hero action buttons glow */
.hero-actions .btn-primary {
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.3);
  animation: pulseGlow 3s ease-in-out infinite;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
  min-height: 60px;
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: 18px;
}
.hero-actions .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 36px rgba(var(--orange-rgb), 0.38);
}
.hero-actions .btn-primary:active {
  transform: scale(0.96);
}
.hero-actions .btn-ghost {
  border-color: var(--orange);
  color: var(--orange);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.3s,
    box-shadow 0.3s;
  min-height: 60px;
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: 18px;
}
.hero-actions .btn-ghost:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--orange-rgb), 0.25);
}
.hero-actions .btn-ghost:active {
  transform: scale(0.96);
}
.hero-actions .btn-quick {
  background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
  animation: pulseGlow 3s ease-in-out infinite;
  animation-delay: 1.5s;
  min-height: 60px;
  padding: 16px 36px;
  font-size: 1.15rem;
  border-radius: 18px;
}
.hero-actions .btn-quick:hover {
  background: linear-gradient(135deg, #db361c, var(--orange)) !important;
  box-shadow: 0 12px 28px rgba(var(--orange-rgb), 0.3) !important;
}

/* Social buttons */
.social-btn {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.social-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #ffffff20 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.social-btn:hover::before {
  opacity: 1;
}
.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 32px #24212b33;
}
.social-btn span {
  background: #ffffff30;
  backdrop-filter: blur(4px);
  transition: transform 0.3s;
}
.social-btn:hover span {
  transform: scale(1.15) rotate(-8deg);
}

/* ── Home maximalist ── */
.home-maximal {
  position: relative;
  overflow-x: hidden;
}
.hm-deco-stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hm-star {
  position: absolute;
  color: var(--orange);
  opacity: 0.25;
  animation: hm-twinkle 3s ease-in-out infinite;
}
@keyframes hm-twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}
.hm-hero {
  position: relative;
  z-index: 1;
}
.hm-hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hm-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.08;
  animation: hm-floatShape 8s ease-in-out infinite;
}
.hm-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--orange);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}
.hm-shape-2 {
  width: 300px;
  height: 300px;
  background: #f59e0b;
  bottom: -80px;
  right: -80px;
  animation-delay: 2s;
}
.hm-shape-3 {
  width: 200px;
  height: 200px;
  background: var(--orange);
  top: 50%;
  left: 50%;
  animation-delay: 4s;
}
@keyframes hm-floatShape {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}
.hm-emoji-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0;
}
.hm-float-emoji {
  display: inline-block;
  animation: hm-float 3s ease-in-out infinite;
}
@keyframes hm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.hm-scroll-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 20px;
  animation: hm-bounce 1.5s ease-in-out infinite;
}
@keyframes hm-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}
.hm-section {
  position: relative;
  padding: 40px 0;
  z-index: 1;
}
.hm-section::before,
.hm-section::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(var(--orange-rgb), 0.15);
  border-style: solid;
  pointer-events: none;
  opacity: 0.6;
}
.hm-section::before {
  top: 8px;
  left: 8px;
  border-width: 2px 0 0 2px;
}
.hm-section::after {
  bottom: 8px;
  right: 8px;
  border-width: 0 2px 2px 0;
}
.hm-section-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hm-section-head {
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.hm-section-head-compact {
  margin-bottom: 8px;
}
.hm-section-compact {
  padding: 12px 0 !important;
}
.hm-section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}
.hm-section-desc {
  color: var(--muted);
  max-width: 500px;
}
.hm-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.hm-eyebrow-glow {
  background: linear-gradient(90deg, var(--orange), #f59e0b, var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: hm-shimmer 3s linear infinite;
}
@keyframes hm-shimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}
.hm-game-grid {
  scroll-behavior: smooth;
}
.hm-game-card {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s;
  cursor: pointer;
}
.hm-game-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}
.hm-game-glow {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  filter: blur(12px);
  opacity: 0.15;
  z-index: -1;
}
.hm-game-icon {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.hm-game-label {
  font-size: clamp(0.65rem, 1.3vw, 0.8rem);
  font-weight: 600;
}
.hm-game-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  background-size: 200% 200%;
  animation: hm-shine 4s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes hm-shine {
  0%,
  100% {
    background-position: 200% 200%;
  }
  50% {
    background-position: 0% 0%;
  }
}

/* ── What's New grid ── */
.sec-cube {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(var(--orange-rgb), 0.4);
  border-radius: 2px;
  background: rgba(var(--orange-rgb), 0.15);
  animation: secCubeFloat 3s ease-in-out infinite;
  pointer-events: none;
}
.sec-cube:nth-child(1) {
  top: -6px;
  left: 10%;
  animation-delay: 0s;
  width: 8px;
  height: 8px;
}
.sec-cube:nth-child(2) {
  top: -2px;
  right: 15%;
  animation-delay: 0.5s;
}
.sec-cube:nth-child(3) {
  bottom: 2px;
  left: 20%;
  animation-delay: 1s;
  width: 7px;
  height: 7px;
}
.sec-cube:nth-child(4) {
  bottom: -4px;
  right: 30%;
  animation-delay: 1.5s;
  width: 11px;
  height: 11px;
}
.sec-cube:nth-child(5) {
  top: 40%;
  left: -6px;
  animation-delay: 0.3s;
  width: 6px;
  height: 6px;
}
.sec-cube:nth-child(6) {
  top: 60%;
  right: -6px;
  animation-delay: 0.8s;
  width: 9px;
  height: 9px;
}
@keyframes secCubeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
.hm-badge-new {
  font-size: 0.55rem;
  padding: 1px 5px;
}
.hm-badge-hot {
  font-size: 0.6rem;
  padding: 1px 5px;
}
.hm-story-card {
  background: linear-gradient(135deg, rgba(88, 169, 232, 0.06), rgba(88, 169, 232, 0.02));
  border: 1px solid rgba(88, 169, 232, 0.15);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  z-index: 1;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hm-story-text {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  line-height: 1.7;
  color: var(--muted);
}
.hm-story-text p:last-child {
  margin-bottom: 0;
}
.hm-acc {
  gap: 8px;
  margin-top: 20px;
}
.hm-acc-item {
  animation: hm-fadeUp 0.5s ease-out both;
}
@keyframes hm-fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hm-os-header {
  position: relative;
  z-index: 1;
}
.hm-os-badge {
  font-size: 0.75rem !important;
}
.hm-os-dl {
  position: relative;
  z-index: 1;
  margin-top: 16px;
}
.hm-zip-btn {
  font-size: 0.85rem !important;
  padding: 10px 20px !important;
}
.hm-closing-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(var(--orange-rgb), 0.12), rgba(245, 158, 11, 0.08));
  border: 2px solid rgba(var(--orange-rgb), 0.35);
  border-radius: 24px;
  padding: 40px 28px;
  box-shadow: 0 8px 32px rgba(var(--orange-rgb), 0.1);
}
.hm-closing-inner::before,
.hm-closing-inner::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(var(--orange-rgb), 0.4);
  border-style: solid;
  pointer-events: none;
}
.hm-closing-inner::before {
  top: 6px;
  left: 6px;
  border-width: 3px 0 0 3px;
}
.hm-closing-inner::after {
  bottom: 6px;
  right: 6px;
  border-width: 0 3px 3px 0;
}
.hm-closing-brand {
  animation: none !important;
}
.hm-closing-sub {
  color: var(--muted);
  margin: 4px 0 12px;
}
.hm-closing-emojis {
  gap: 16px;
  margin: 16px 0 24px;
}
.hm-closing-cta {
  display: inline-flex;
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ── GridMotion ── */
.hm-gm-section {
  overflow: hidden;
  padding: 0 !important;
  margin: 10px 0;
  position: relative;
  z-index: 1;
}
.hm-gm-section .hm-section-head {
  padding: 0 16px;
  margin-bottom: 6px;
}
.hm-gm-wrap {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}
.hm-gm-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40px;
  background: linear-gradient(to right, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}
.hm-gm-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 40px;
  background: linear-gradient(to left, var(--bg), transparent);
  pointer-events: none;
  z-index: 2;
}
.hm-gm-inner {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  transform: rotate(-3deg) scale(1.1);
  width: 135vw;
  left: -17vw;
  padding: 0;
}
.hm-gm-row {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  will-change: transform;
}

.hm-gm-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--orange-rgb), 0.15), rgba(245, 158, 11, 0.1));
  border: 1.5px solid rgba(var(--orange-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
}
.hm-gm-item:hover {
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(var(--orange-rgb), 0.35);
  z-index: 5;
  transform: scale(1.18);
}
.hm-gm-item-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px;
  text-align: center;
  color: var(--text);
  width: 100%;
}
.hm-gm-item-icon {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.hm-gm-item-label {
  font-size: clamp(0.5rem, 0.9vw, 0.65rem);
  font-weight: 700;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 65px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
@media (min-width: 1024px) {
  .hm-gm-inner {
    width: 100vw;
    left: -10vw;
    gap: 10px;
    max-width: 1100px;
    margin: 0 auto;
    right: 0;
  }
  .hm-gm-row {
    gap: 10px;
    max-width: 960px;
    margin: 0 auto;
  }
  .hm-gm-item {
    max-width: 90px;
    max-height: 90px;
    border-radius: 14px;
  }
  .hm-gm-item-icon {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
  }
  .hm-gm-item-label {
    font-size: clamp(0.55rem, 1vw, 0.7rem);
    max-width: 75px;
  }
}

/* ── Summary section ── */
.summary-section {
  position: relative;
  padding: 32px 0 40px;
}
.summary-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--orange),
    #f59e0b,
    var(--orange),
    transparent
  );
  border-radius: 999px;
}

.summary-grid {
  gap: 16px;
}
.summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
}
.summary-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
}
.summary-card.color-one {
  background: linear-gradient(135deg, var(--orange-tint3), var(--orange-tint2));
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.1);
}
.summary-card.color-one::after {
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}
.summary-card.color-two {
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  box-shadow: 0 8px 24px #6366f11a;
}
.summary-card.color-two::after {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}
.summary-card.color-three {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  box-shadow: 0 8px 24px #22c55e1a;
}
.summary-card.color-three::after {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}
.summary-card.color-four {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 8px 24px #f59e0b1a;
}
.summary-card.color-four::after {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.summary-card.color-five {
  background: linear-gradient(135deg, #f0f4ff, #e0e8ff);
  box-shadow: 0 8px 24px #3b82f61a;
}
.summary-card.color-five::after {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}
.summary-card.color-six {
  background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
  box-shadow: 0 8px 24px #a855f71a;
}
.summary-card.color-six::after {
  background: linear-gradient(90deg, #a855f7, #c084fc);
}
.summary-card.color-seven {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  box-shadow: 0 8px 24px #ec48991a;
}
.summary-card.color-seven::after {
  background: linear-gradient(90deg, #ec4899, #f472b6);
}
.summary-card.color-eight {
  background: linear-gradient(135deg, #ecfeff, #cffafe);
  box-shadow: 0 8px 24px #06b6d41a;
}
.summary-card.color-eight::after {
  background: linear-gradient(90deg, #06b6d4, #22d3ee);
}
.summary-card.color-nine {
  background: linear-gradient(135deg, #ccfbf1, #d1fae5);
  box-shadow: 0 8px 24px #14b8a61a;
}
.summary-card.color-nine::after {
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
}
.summary-card.color-ten {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  box-shadow: 0 8px 24px #8b5cf61a;
}
.summary-card.color-ten::after {
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}
.summary-card.color-eleven {
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  box-shadow: 0 8px 24px #e11d481a;
}
.summary-card.color-eleven::after {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}
.summary-card.color-twelve {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  box-shadow: 0 8px 24px #ec48991a;
}
.summary-card.color-twelve::after {
  background: linear-gradient(90deg, #ec4899, #f472b6);
}
.summary-card.color-thirteen {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  box-shadow: 0 8px 24px #2e7d321a;
}
.summary-card.color-thirteen::after {
  background: linear-gradient(90deg, #2e7d32, #43a047);
}
.summary-card.color-fourteen {
  background: linear-gradient(135deg, #e0e8ff, #c7d2fe);
  box-shadow: 0 8px 24px #3730a31a;
}
.summary-card.color-fourteen::after {
  background: linear-gradient(90deg, #1e3a5f, #3b82f6);
}
.summary-card.color-fifteen {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  box-shadow: 0 8px 24px #dc26261a;
}
.summary-card.color-fifteen::after {
  background: linear-gradient(90deg, #dc2626, #ef4444);
}
.summary-card.color-sixteen {
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  box-shadow: 0 8px 24px #0ea5e91a;
}
.summary-card.color-sixteen::after {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}
.summary-card.color-seventeen {
  background: linear-gradient(135deg, #fdf4ff, #fae8ff);
  box-shadow: 0 8px 24px #d946ef1a;
}
.summary-card.color-seventeen::after {
  background: linear-gradient(90deg, #d946ef, #e879f9);
}
.summary-card.color-eighteen {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  box-shadow: 0 8px 24px #eab3081a;
}
.summary-card.color-eighteen::after {
  background: linear-gradient(90deg, #eab308, #d97706);
}
.summary-card.color-nineteen {
  background: linear-gradient(135deg, #faf0e6, #f5e0c8);
  box-shadow: 0 8px 24px #a0522d1a;
}
.summary-card.color-nineteen::after {
  background: linear-gradient(90deg, #a67c52, #d4a76a);
}
/* ── Chess board ── */
.square {
  width: 12.5%;
  height: 12.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: grab;
}
.square.beige {
  background: #ff8c00;
}
.square.brown {
  background: #fff8f0;
}
.square .piece {
  width: 88%;
  height: 88%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.square .piece svg {
  width: 100%;
  height: 100%;
}
.square.drag-over {
  box-shadow: inset 0 0 0 3px rgba(255, 255, 0, 0.7);
}
.square.selected {
  box-shadow: inset 0 0 0 3px var(--orange);
}
.square.valid-target {
  background: rgba(0, 200, 0, 0.4) !important;
  box-shadow: inset 0 0 0 3px #000;
}
.square.valid-target::after {
  content: '';
  position: absolute;
  width: 20%;
  height: 20%;
  background: #fff;
  border-radius: 50%;
}
.square.valid-capture {
  background: rgba(0, 200, 0, 0.3) !important;
  box-shadow: inset 0 0 0 3px #000;
}
#gameboard .square {
  cursor: grab;
}
#gameboard .square:active {
  cursor: grabbing;
}
.square .piece svg.white {
  fill: #fff;
  stroke: #222;
  stroke-width: 20px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}
.square .piece svg.black {
  fill: #222;
  stroke: #000;
  stroke-width: 20px;
}
/* ── Checkers board ── */
.checkers-square {
  width: 12.5%;
  height: 12.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.checkers-square.dark {
  background: #b58863;
}
.checkers-square.light {
  background: #f0d9b5;
}
.checkers-square.selected {
  box-shadow: inset 0 0 0 3px var(--orange);
}
.checkers-square.valid {
  background: rgba(0, 200, 0, 0.4) !important;
  box-shadow: inset 0 0 0 3px #000;
}
.checkers-square.valid::after {
  content: '';
  position: absolute;
  width: 20%;
  height: 20%;
  background: #fff;
  border-radius: 50%;
}
.checkers-piece {
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-card:nth-child(1) {
  animation: fadeUp 0.6s ease-out 0.1s both;
}
.summary-card:nth-child(2) {
  animation: fadeUp 0.6s ease-out 0.2s both;
}
.summary-card:nth-child(3) {
  animation: fadeUp 0.6s ease-out 0.3s both;
}
.summary-card:nth-child(4) {
  animation: fadeUp 0.6s ease-out 0.4s both;
}
.summary-card:nth-child(5) {
  animation: fadeUp 0.6s ease-out 0.5s both;
}
.summary-card:nth-child(6) {
  animation: fadeUp 0.6s ease-out 0.6s both;
}
.summary-card:nth-child(7) {
  animation: fadeUp 0.6s ease-out 0.7s both;
}
.summary-card:nth-child(8) {
  animation: fadeUp 0.6s ease-out 0.8s both;
}
.summary-card:nth-child(9) {
  animation: fadeUp 0.6s ease-out 0.9s both;
}
.summary-card:nth-child(10) {
  animation: fadeUp 0.6s ease-out 1s both;
}
.summary-card:nth-child(11) {
  animation: fadeUp 0.6s ease-out 1.1s both;
}
.summary-card:nth-child(12) {
  animation: fadeUp 0.6s ease-out 1.2s both;
}
.summary-card:nth-child(13) {
  animation: fadeUp 0.6s ease-out 1.3s both;
}
.summary-card:nth-child(14) {
  animation: fadeUp 0.6s ease-out 1.4s both;
}
.summary-card:nth-child(15) {
  animation: fadeUp 0.6s ease-out 1.5s both;
}
.summary-card:nth-child(16) {
  animation: fadeUp 0.6s ease-out 1.6s both;
}
.summary-card:nth-child(17) {
  animation: fadeUp 0.6s ease-out 1.7s both;
}
.summary-card:nth-child(18) {
  animation: fadeUp 0.6s ease-out 1.8s both;
}
.summary-card:nth-child(19) {
  animation: fadeUp 0.6s ease-out 1.9s both;
}
.summary-card:nth-child(20) {
  animation: fadeUp 0.6s ease-out 2s both;
}
.summary-card:nth-child(21) {
  animation: fadeUp 0.6s ease-out 2.1s both;
}
.summary-card:nth-child(22) {
  animation: fadeUp 0.6s ease-out 2.2s both;
}
.summary-card:nth-child(23) {
  animation: fadeUp 0.6s ease-out 2.3s both;
}
.summary-card:nth-child(24) {
  animation: fadeUp 0.6s ease-out 2.4s both;
}
.summary-card:nth-child(25) {
  animation: fadeUp 0.6s ease-out 2.5s both;
}
.summary-card:nth-child(26) {
  animation: fadeUp 0.6s ease-out 2.6s both;
}
.summary-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 48px #24212b1a;
}
.summary-card strong {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-size: 1.2rem;
  margin-bottom: 14px;
  color: #fff;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 4px 12px #0000001a;
}
.summary-card.color-one strong {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}
.summary-card.color-two strong {
  background: linear-gradient(135deg, #6366f1, #818cf8);
}
.summary-card.color-three strong {
  background: linear-gradient(135deg, #22c55e, #4ade80);
}
.summary-card.color-four strong {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.summary-card.color-five strong {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}
.summary-card.color-six strong {
  background: linear-gradient(135deg, #a855f7, #c084fc);
}
.summary-card.color-seven strong {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}
.summary-card.color-eight strong {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
}
.summary-card.color-nine strong {
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
}
.summary-card.color-ten strong {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}
.summary-card.color-eleven strong {
  background: linear-gradient(135deg, #e11d48, #fb7185);
}
.summary-card.color-twelve strong {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}
.summary-card.color-thirteen strong {
  background: linear-gradient(135deg, #2e7d32, #43a047);
}
.summary-card.color-fourteen strong {
  background: linear-gradient(135deg, #1e3a5f, #3b82f6);
}
.summary-card.color-fifteen strong {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}
.summary-card.color-sixteen strong {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
}
.summary-card.color-seventeen strong {
  background: linear-gradient(135deg, #d946ef, #e879f9);
}
.summary-card.color-eighteen strong {
  background: linear-gradient(135deg, #eab308, #d97706);
}
.summary-card.color-nineteen strong {
  background: linear-gradient(135deg, #a67c52, #d4a76a);
}
.summary-card.hidden {
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding: 0 20px;
  overflow: hidden;
  border-color: transparent;
}
.summary-card {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    max-height 0.3s ease,
    margin 0.3s ease,
    padding 0.3s ease,
    border-color 0.3s ease;
}
.summary-card:hover strong {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 8px 20px #00000026;
}
.summary-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.summary-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Pill selector buttons ── */
.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill-btn {
  flex: 1;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  background: var(--surface);
  color: var(--text);
  transition:
    background 0.12s,
    color 0.12s,
    border-color 0.12s;
}
.pill-btn:hover {
  border-color: var(--orange);
}
.pill-btn.sel {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  font-weight: 700;
}
.pill-btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

/* ── Game color themes ── */
.game-aio {
  --gt: linear-gradient(135deg, #22c55e, #86efac);
  --gt2: var(--orange);
}
.game-aio .pill-btn.sel {
  background: var(--orange);
  border-color: var(--orange);
}
.game-aio .pill-btn[data-action='aio-toggle-cat'] {
  flex: 0;
  min-width: auto;
  padding: 10px 18px;
  font-size: 0.82rem;
}
.game-aio .aio-team-badge {
  background: var(--gt);
}
.game-aio .aio-prompt-frame {
  border-color: var(--gt2);
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 5px var(--gt2),
    0 8px 32px rgba(34, 197, 94, 0.15);
}
.game-tb {
  --gt: linear-gradient(135deg, #ec4899, #f9a8d4);
  --gt2: #ec4899;
}
.game-tb .pill-btn.sel {
  background: var(--orange);
  border-color: var(--orange);
}

/* ── Act It Out ── */
.aio-prompt-frame {
  max-width: 500px;
  width: 100%;
  margin: 16px auto;
  padding: 40px 24px;
  background: var(--soft);
  border-radius: 24px;
  border: 3px solid var(--orange);
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 5px var(--orange),
    0 8px 32px rgba(var(--orange-rgb), 0.15);
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.aio-prompt-frame:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 0 2px var(--surface),
    0 0 0 5px var(--orange),
    0 12px 48px rgba(var(--orange-rgb), 0.25);
}
.aio-play-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--soft) 100%);
  border-radius: 24px;
  margin: 12px;
}
.aio-timer-digits {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  transition: color 0.3s;
  margin-bottom: 6px;
}
.aio-team-badge {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.25);
}

/* ── Special section ── */
.special-section {
  position: relative;
  padding: 32px 0 40px;
}
.special-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 400px;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--orange),
    var(--orange-light),
    var(--orange),
    transparent
  );
  border-radius: 999px;
}

.special-grid {
  gap: 16px;
}
.special-card {
  position: relative;
  overflow: hidden;
  border: none;
  border-radius: 16px;
  padding: 28px 24px;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
}
.special-card:nth-child(1) {
  background: linear-gradient(135deg, var(--orange-soft2), var(--orange-tint2));
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.1);
}
.special-card:nth-child(2) {
  background: linear-gradient(135deg, var(--orange-soft2), var(--orange-tint2));
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.1);
}
.special-card:nth-child(3) {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  box-shadow: 0 8px 24px #f59e0b1a;
}
.special-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #ffffff30 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.special-card:hover::before {
  opacity: 1;
}
.special-card:nth-child(1) {
  animation: fadeUp 0.6s ease-out 0.15s both;
}
.special-card:nth-child(2) {
  animation: fadeUp 0.6s ease-out 0.25s both;
}
.special-card:nth-child(3) {
  animation: fadeUp 0.6s ease-out 0.35s both;
}
.special-card:nth-child(4) {
  animation: fadeUp 0.6s ease-out 0.45s both;
}
.special-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 48px #24212b1a;
}
.special-card > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  box-shadow: 0 6px 16px #0000001a;
}
.special-card:nth-child(1) > span {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}
.special-card:nth-child(2) > span {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}
.special-card:nth-child(3) > span {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.special-card:hover > span {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 10px 24px #0000002e;
}
.special-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.special-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Games badge grid ── */
.games-badge-wrap {
  position: relative;
  margin-top: 16px;
}
.games-badge-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 10px;
  padding: 4px 40px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.games-badge-grid::-webkit-scrollbar {
  display: none;
}
.games-bf {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    transform 0.2s;
  color: var(--ink);
  padding: 0;
  line-height: 1;
}
.games-bf:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
.games-bf-l {
  inset-inline-start: 4px;
}
.games-bf-r {
  inset-inline-end: 4px;
}
html.dark .games-bf {
  background: #2a2a2a;
  color: #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.games-badge {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
  position: relative;
  color: #333;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  padding: 8px 6px;
}
.games-badge:hover {
  transform: translateY(-4px) scale(1.06);
}
.games-badge strong {
  font-size: 1.5rem;
  display: block;
}
.gb-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
[dir='rtl'] .gb-badge {
  right: auto;
  left: -6px;
}
.gb-badge.new {
  background: #e74c3c;
  color: #fff;
}
.gb-badge.hot {
  background: #f39c12;
  color: #fff;
  font-size: 0.55rem;
  padding: 2px 4px;
}

/* ── Story section ── */
.story-section {
  position: relative;
  border: none !important;
  border-radius: 16px;
  background: linear-gradient(135deg, #fef6f0, #fdf0e6) !important;
  padding: 28px 26px !important;
  box-shadow:
    0 2px 16px rgba(var(--orange-rgb), 0.04),
    0 0 0 1px rgba(var(--orange-rgb), 0.04) !important;
  animation: fadeUp 0.8s ease-out both;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
html.dark .story-section {
  background: linear-gradient(135deg, #2a1a10, #22120a) !important;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(var(--orange-rgb), 0.1) !important;
}
.story-section .eyebrow {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  margin: 0;
}
.story-section h2 {
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink);
}
.story-section .story-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  white-space: pre-line;
}
.td-acc {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.td-acc-c {
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
html.dark .td-acc-c {
  background: rgba(255, 255, 255, 0.05);
}
.td-acc-i {
  font-size: 1.1rem;
}
/* ── Timeline accent cards ── */
.td-acc {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.td-acc-c {
  background: #fff;
  border-radius: 14px;
  padding: 14px 8px;
  text-align: center;
  border-top: 3px solid var(--a, var(--orange));
  box-shadow: 0 4px 16px rgba(36, 33, 43, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.td-acc-c:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(36, 33, 43, 0.08);
}
.td-acc-i {
  font-size: 1.4rem;
}

/* ── Theme editor ── */
.theme-page {
  max-width: 640px;
  margin: 0 auto;
}
.theme-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.04);
  animation: fadeUp 0.5s ease-out both;
}
.theme-section:nth-child(1) {
  border-left: 3px solid var(--orange);
}
.theme-section:nth-child(2) {
  border-left: 3px solid #58a9e8;
}
.theme-section:nth-child(3) {
  border-left: 3px solid #22c55e;
}
.theme-section:nth-child(4) {
  border-left: 3px solid #eab308;
}
.theme-section:nth-child(5) {
  border-left: 3px solid #3b82f6;
}
.theme-section:nth-child(6) {
  border-left: 3px solid #a855f7;
}
.theme-section:nth-child(7) {
  border-left: 3px solid #14b8a6;
}
.theme-section:nth-child(8) {
  border-left: 3px solid var(--orange);
}
.theme-section h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.theme-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.theme-row label {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 120px;
  color: var(--ink);
}
.theme-row input[type='color'] {
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: none;
}
.theme-row .theme-hex {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: monospace;
}
.theme-nav-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.theme-nav-opt {
  cursor: pointer;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  transition: border-color 0.2s;
}
.theme-nav-opt:hover {
  border-color: var(--orange);
}
.theme-nav-opt.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.2);
}
.theme-nav-opt span {
  display: block;
  font-size: 0.6rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.theme-mini-bar {
  display: flex;
  border-radius: 6px;
  padding: 3px 4px;
  gap: 2px;
  justify-content: center;
}
.theme-mini-bar .tmb {
  font-size: 0.5rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
}
.theme-mini-bar .tmb.active {
  background: var(--orange);
  color: #fff;
}
.theme-reset {
  margin-top: 8px;
}
.theme-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.theme-preset {
  cursor: pointer;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.theme-preset:hover {
  border-color: var(--orange);
}
.theme-preset.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.15);
}
.tp-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin: 0 auto 6px;
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.1);
}
.tp-name {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ink);
}
.theme-select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  min-width: 120px;
}
.theme-toggle {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.2rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: grid;
  place-items: center;
}
.theme-toggle.active {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.15);
}

/* ── Open source section ── */
.opensource-section {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 20px;
  animation: fadeUp 0.8s ease-out 0.3s both;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  position: relative;
}
.opensource-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px #24212b1a;
}

.os-badge {
  border: none !important;
  font-weight: 900;
  letter-spacing: 0.02em;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.os-badge.green {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  box-shadow: 0 4px 12px #ea580c33;
}
.os-badge.blue {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.2);
}
.os-badge.orange {
  background: linear-gradient(135deg, #ea580c, #f97316);
  color: #fff;
  box-shadow: 0 4px 12px #ea580c33;
}
.os-badge:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 20px #00000026;
}

.os-file-card {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s,
    border-color 0.3s;
}
.os-file-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #f59e0b, var(--orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.os-file-card:hover::before {
  transform: scaleX(1);
}
.os-file-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 32px rgba(var(--orange-rgb), 0.15);
}

.os-download-all {
  background: linear-gradient(135deg, #fff7ed, #fffbeb, #fef3c7) !important;
  border-color: #f59e0b40 !important;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.os-download-all:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px #f59e0b26;
}

/* ── Closing brand ── */
.closing-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--orange),
    var(--orange),
    #f59e0b,
    var(--orange),
    #ef4444
  );
  background-size: 400% 400%;
  animation:
    fadeScale 0.8s ease-out 0.4s both,
    gradientShift 10s ease infinite 1s;
  border-radius: 28px;
  padding: 72px 32px;
  box-shadow: 0 24px 60px rgba(var(--orange-rgb), 0.3);
}
.closing-brand::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, #ffffff10 0%, transparent 60%);
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}
.closing-logo-text {
  animation: float 5s ease-in-out infinite;
  display: inline-block;
  filter: drop-shadow(0 8px 24px #0000003d);
}
.closing-brand .btn-primary {
  background: #fff;
  color: var(--orange);
  box-shadow: 0 12px 32px #00000026;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
}
.closing-brand .btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 48px #0000004d;
}

/* ── Dark mode overrides ── */
html.dark .summary-card.color-one {
  background: linear-gradient(135deg, #3b1c1a, #4a2320);
}
html.dark .summary-card.color-two {
  background: linear-gradient(135deg, #1a2332, #1e293b);
}
html.dark .summary-card.color-three {
  background: linear-gradient(135deg, #0c2d1e, #0f3b26);
}
html.dark .summary-card.color-four {
  background: linear-gradient(135deg, #2d220c, #3b2e0f);
}
html.dark .summary-card.color-five {
  background: linear-gradient(135deg, #0c1a3b, #0f224a);
}
html.dark .summary-card.color-six {
  background: linear-gradient(135deg, #0c2d1e, #0f3b26);
}
html.dark .summary-card.color-seven {
  background: linear-gradient(135deg, #1f0c38, #2a1047);
}
html.dark .summary-card.color-eight {
  background: linear-gradient(135deg, #0c2d28, #0f3b33);
}
html.dark .summary-card.color-nine {
  background: linear-gradient(135deg, #3b1a28, #4a2032);
}
html.dark .summary-card.color-ten {
  background: linear-gradient(135deg, #0c2d30, #0f3b3f);
}
html.dark .summary-card.color-eleven {
  background: linear-gradient(135deg, #1c1a3b, #24204a);
}
html.dark .summary-card.color-twelve {
  background: linear-gradient(135deg, #2a0c1f, #381028);
}
html.dark .summary-card.color-thirteen {
  background: linear-gradient(135deg, #0d2d1c, #124a29);
}
html.dark .summary-card.color-sixteen {
  background: linear-gradient(135deg, #0c1f2d, #0f2a3b);
}
html.dark .summary-card.color-seventeen {
  background: linear-gradient(135deg, #2a0c2d, #380f3b);
}
html.dark .summary-card.color-eighteen {
  background: linear-gradient(135deg, #3b2e0f, #4a3811);
}
html.dark .summary-card.color-nineteen {
  background: linear-gradient(135deg, #2a1f14, #382918);
}
html.dark .theme-section {
  background: var(--surface);
}
html.dark .special-card:nth-child(1) {
  background: linear-gradient(135deg, #3b1a2e, #4a2038);
}
html.dark .special-card:nth-child(2) {
  background: linear-gradient(135deg, #0c2d1e, #0f3b26);
}
html.dark .special-card:nth-child(3) {
  background: linear-gradient(135deg, #2d220c, #3b2e0f);
}
html.dark .special-card:nth-child(4) {
  background: linear-gradient(135deg, #1f1a2d, #2d2040);
}
html.dark .os-download-all {
  background: linear-gradient(135deg, #2d220c, #3b2e0f, #2d220c) !important;
}

/* ── Story timeline always stacked ── */
.story-timeline {
  grid-template-columns: 1fr;
}
.story-timeline span {
  width: 100%;
}

/* ── Section sidebar navigator ── */
/* ── Responsive animation adjustments ── */
@media (prefers-reduced-motion: reduce) {
  .start-hero,
  .hero-logo-wrap,
  .hero-brand-text,
  .hero-brand-sub,
  .start-hero .eyebrow,
  .start-hero .lead,
  .hero-actions,
  .social-row,
  .special-card,
  .story-section,
  .opensource-section,
  .closing-brand {
    animation: none;
  }
  .hero-brand-text,
  .hero-brand-sub,
  .start-hero h1 {
    -webkit-text-fill-color: var(--orange);
    background: none;
  }
  .summary-card:hover,
  .special-card:hover,
  .os-file-card:hover {
    transform: none;
  }
}

/* ── Game page animations & graphics ── */
@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(-20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes scorePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}
@keyframes shimmerWide {
  0% {
    background-position: -300% center;
  }
  100% {
    background-position: 300% center;
  }
}
@keyframes borderDance {
  0%,
  100% {
    border-color: var(--orange);
  }
  25% {
    border-color: #f59e0b;
  }
  50% {
    border-color: var(--orange);
  }
  75% {
    border-color: #f59e0b;
  }
}
@keyframes confettiFall {
  0% {
    transform: translateY(-100%) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
@keyframes glowPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(var(--orange-rgb), 0.25));
  }
  50% {
    filter: drop-shadow(
      0 0 20px rgba(var(--orange-rgb), 0.38),
      0 0 40px rgba(var(--orange-rgb), 0.13)
    );
  }
}

/* ── Header / Nav ── */
.site-header {
  background: transparent !important;
  border-bottom: none !important;
  border-image: none !important;
  box-shadow: none;
  padding-top: 16px;
}
.site-header .nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 6px 18px;
  box-shadow:
    0 4px 24px rgba(36, 33, 43, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(var(--orange-rgb), 0.15);
  transition:
    box-shadow 0.3s,
    border-color 0.3s;
}
.site-header .nav:hover {
  box-shadow: 0 8px 32px rgba(36, 33, 43, 0.1);
  border-color: rgba(var(--orange-rgb), 0.25);
}
html.dark .site-header .nav {
  background: rgba(30, 25, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.nav-links a {
  transition: all 0.2s;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.nav-links a:hover {
  transform: translateY(-1px);
  color: var(--orange);
  background: rgba(var(--orange-rgb), 0.06);
}
.nav-links a.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.3);
}
.nav-links a,
.nav-links button {
  border-radius: 10px;
}

.brand-text {
  color: var(--orange);
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px 10px;
  color: var(--ink);
  border-radius: 10px;
  transition: background 0.2s;
}
.nav-toggle:hover {
  background: rgba(var(--orange-rgb), 0.06);
  color: var(--orange);
}
.nav-collapsed .nav-toggle {
  display: block;
  order: 2;
  margin-inline-start: auto;
}
.nav-collapsed .nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  gap: 4px;
  z-index: 100;
  box-shadow: 0 16px 40px #24212b1a;
  transform-origin: top center;
}
.nav-collapsed .nav-links.nav-open {
  display: flex;
  animation: navSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.nav-collapsed .nav-links:not(.nav-open) {
  animation: navSlideOut 0.2s ease both;
}
.nav-collapsed .nav-links a,
.nav-collapsed .nav-links button {
  width: 100%;
  justify-content: center;
  font-size: 0.9rem;
  padding: 12px;
  min-height: 44px;
}
@media (max-width: 820px) {
  .site-header {
    position: relative;
  }
  .site-header .nav-toggle {
    display: block;
    order: 2;
    margin-inline-start: auto;
  }
  .site-header .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    gap: 4px;
    z-index: 100;
    box-shadow: 0 16px 40px #24212b1a;
    transform-origin: top center;
  }
  .site-header .nav-links.nav-open {
    display: flex;
    animation: navSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }
  .site-header .nav-links:not(.nav-open) {
    animation: navSlideOut 0.2s ease both;
  }
  .site-header .nav-links a,
  .site-header .nav-links button {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 12px;
    min-height: 44px;
  }
}
@media (min-width: 821px) {
  .bottom-nav {
    display: block !important;
  }
  .site-header {
    display: none !important;
  }
}
@media (max-width: 820px) {
  .site-header {
    display: none !important;
  }
}

/* ── Settings FAB ── */
.settings-fab {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
}
.settings-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.settings-fab.open {
  transform: rotate(60deg);
  background: rgba(255, 255, 255, 0.25);
}
html.dark .settings-fab {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.12);
}
html.dark .settings-fab.open {
  background: rgba(0, 0, 0, 0.4);
}
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: transparent;
  display: none;
}
.settings-overlay.show {
  display: block;
}
.settings-panel {
  position: fixed;
  top: 60px;
  inset-inline-end: 12px;
  z-index: 999;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  gap: 2px;
  transform-origin: top right;
  animation: settingsIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
html.dark .settings-panel {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}
.settings-panel.show {
  display: flex;
}
@keyframes settingsIn {
  0% {
    opacity: 0;
    transform: scale(0.85) translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--ink);
  transition: background 0.15s;
  text-decoration: none;
}
.settings-item:hover {
  background: var(--soft);
}
.settings-item .s-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}
.settings-divider {
  height: 1px;
  background: var(--line);
  margin: 2px 8px;
}

/* ── Nav style variants ── */
.nav-style-1 .site-header {
  background: transparent !important;
  border-bottom: none !important;
}
.nav-style-1 .nav {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 20px rgba(36, 33, 43, 0.06);
  padding: 6px 0;
}
.nav-style-2 .nav {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-bottom: 2px solid var(--line);
  padding: 6px 0;
}
.nav-style-2 .nav-links a.active {
  background: none !important;
  color: var(--orange) !important;
  box-shadow: none;
  border-bottom: 2px solid var(--orange);
  border-radius: 0;
}
.nav-style-3 .site-header {
  background: #1a1a2e !important;
  border-bottom: none !important;
}
.nav-style-3 .nav {
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.nav-style-3 .nav-links a {
  color: rgba(255, 255, 255, 0.65);
}
.nav-style-3 .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-style-3 .nav-links a.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.3);
}
.nav-style-3 .brand-text {
  background: linear-gradient(135deg, #fff, #ddd);
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-style-3 .nav-cta.btn-primary {
  background: var(--orange);
  color: #fff;
}
.nav-style-3 .nav-cta.btn-ghost {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}
.nav-style-4 .site-header {
  background: transparent !important;
  border-bottom: none !important;
}
.nav-style-4 .nav {
  background: transparent;
  backdrop-filter: none;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  box-shadow: none;
  padding: 4px 12px;
}
.nav-style-4 .nav-links a {
  border-radius: 999px;
}
.nav-style-4 .nav-links a.active {
  background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.3);
  border-radius: 999px;
}
.nav-style-5 .site-header {
  background: transparent !important;
  border-bottom: none !important;
}
.nav-style-5 .nav {
  background: linear-gradient(135deg, var(--orange), #d14d2a);
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(var(--orange-rgb), 0.25);
  padding: 6px 18px;
}
.nav-style-5 .nav-links a {
  color: rgba(255, 255, 255, 0.85);
}
.nav-style-5 .nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.nav-style-5 .nav-links a.active {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  box-shadow: none;
}
.nav-style-5 .brand-text {
  background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-style-5 .nav-cta.btn-primary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(4px);
}
.nav-style-5 .nav-cta.btn-ghost {
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}
.nav-style-7 .nav-links a {
  font-size: 0;
}
.nav-style-7 .nav-links a::before {
  font-size: 1.1rem;
}

/* ── Animation speed overrides ── */
html.anim-off * {
  animation: none !important;
  transition: none !important;
}
html.anim-slow * {
  animation-duration: 0.6s !important;
  transition-duration: 0.6s !important;
}
html.anim-fast * {
  animation-duration: 0.15s !important;
  transition-duration: 0.15s !important;
}

/* ── Shadow intensity overrides ── */
html.shadow-subtle .summary-card,
html.shadow-subtle .special-card,
html.shadow-subtle .opensource-section,
html.shadow-subtle .modal-card,
html.shadow-subtle .setup-strip {
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.03) !important;
}
html.shadow-strong .summary-card,
html.shadow-strong .special-card,
html.shadow-strong .opensource-section,
html.shadow-strong .modal-card,
html.shadow-strong .setup-strip {
  box-shadow: 0 12px 40px rgba(36, 33, 43, 0.12) !important;
}

/* ── Setup page ── */
.game-top {
  position: relative;
}
.game-top::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--orange-rgb), 0.06) 0%, transparent 60%);
  top: -80px;
  left: -80px;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.setup-strip {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 16px !important;
  animation: fadeUp 0.6s ease-out both;
  box-shadow: 0 12px 32px #24212b0f !important;
}
.setup-strip label {
  animation: fadeUp 0.5s ease-out both;
}
.setup-strip label:nth-child(1) {
  animation-delay: 0.05s;
}
.setup-strip label:nth-child(2) {
  animation-delay: 0.1s;
}
.setup-strip label:nth-child(3) {
  animation-delay: 0.15s;
}
.setup-strip label:nth-child(4) {
  animation-delay: 0.2s;
}
.setup-strip label:nth-child(5) {
  animation-delay: 0.25s;
}
.setup-strip label:nth-child(6) {
  animation-delay: 0.3s;
}
.setup-strip label:nth-child(7) {
  animation-delay: 0.35s;
}
.setup-strip input,
.setup-strip select {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.setup-strip input:focus,
.setup-strip select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.13);
  outline: none;
}
.setup-counter {
  background: linear-gradient(135deg, var(--orange-soft), var(--orange-tint2)) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 2px 4px #0000000a !important;
  animation: popIn 0.5s ease-out 0.4s both;
}
.setup-counter strong {
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.5rem;
}

/* ── Assist setup cards ── */
.assist-team {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 16px !important;
  animation: fadeUp 0.6s ease-out 0.15s both;
}
.assist-setup-card {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s,
    border-color 0.25s,
    background 0.25s;
  border: 2px solid #e5e7eb !important;
  border-radius: 14px !important;
}
.assist-setup-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 28px #24212b1a !important;
  border-color: var(--orange) !important;
}
.assist-setup-card.selected {
  background: linear-gradient(135deg, var(--orange-soft2), var(--orange-soft)) !important;
  border-color: var(--orange) !important;
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.2) !important;
}
.assist-setup-card.selected .asc-name {
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.asc-icon-circle {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.assist-setup-card:hover .asc-icon-circle {
  transform: scale(1.12) rotate(-8deg);
  box-shadow: 0 4px 12px #0000001a;
}
.asc-new-badge {
  background: linear-gradient(135deg, #ef4444, #f97316) !important;
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ── Category product cards ── */
.products-grid {
  gap: 14px;
}
.product-card {
  border: 2px solid var(--line) !important;
  border-radius: 16px !important;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s,
    border-color 0.25s;
  animation: fadeUp 0.5s ease-out both;
  overflow: hidden;
  position: relative;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), #f59e0b, var(--orange), #f59e0b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.product-card:hover::before {
  transform: scaleX(1);
}
.product-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 36px #24212b1a !important;
  border-color: var(--orange) !important;
}
.product-card.selected {
  border-color: var(--orange) !important;
  background: linear-gradient(135deg, var(--orange-soft2), var(--orange-soft)) !important;
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.2) !important;
}
.product-card.selected::before {
  transform: scaleX(1);
}
.product-art {
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border-radius: 14px !important;
}
.product-card:hover .product-art {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 6px 16px #0000001a;
}
.selected-badge {
  background: linear-gradient(135deg, var(--orange), #f59e0b) !important;
  animation: popIn 0.3s ease-out both;
  font-size: 0.7rem !important;
}
.category-search input {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.category-search input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.13);
  outline: none;
}

/* ── Question editor ── */
.question-editor {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 16px !important;
  margin: 20px 0;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.question-editor:hover {
  box-shadow: 0 12px 32px #24212b0f;
}
.question-editor summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 900;
  background: linear-gradient(135deg, #f0fdf4, #eff6ff, #fff7ed);
  transition: background 0.2s;
}
html.dark .question-editor summary {
  background: linear-gradient(135deg, #0c2d1e, #0c1a2d, #2d220c);
}
.question-editor[open] summary {
  border-bottom: 1px solid var(--line);
}
.editor-textarea {
  border: none !important;
  border-radius: 0 !important;
  min-height: 200px;
  font-family: monospace;
  font-size: 0.85rem;
}
.editor-actions {
  display: flex;
  gap: 10px;
  padding: 12px 20px;
  flex-wrap: wrap;
}

/* ── Start bar ── */
.start-bar {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 16px !important;
  animation: fadeUp 0.6s ease-out 0.3s both;
  box-shadow: 0 12px 32px #24212b0f !important;
}
.start-button {
  animation: pulseGlow 3s ease-in-out infinite;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s;
}
.start-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(var(--orange-rgb), 0.38);
}

/* ── Play page / Scorebar ── */
.scorebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 20px !important;
  animation: fadeUp 0.5s ease-out both;
  box-shadow: 0 12px 36px #24212b0f !important;
}
.team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 auto;
  min-width: 120px;
}
.round-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 auto;
}
.team-box {
  animation: fadeUp 0.5s ease-out 0.1s both;
}
.team-score {
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.8rem !important;
  animation: scorePulse 3s ease-in-out infinite;
  display: inline-block;
}
.score-controls {
  gap: 6px;
  display: flex;
}
.score-controls .btn-ghost {
  font-size: 0.75rem;
  min-height: 34px;
  padding: 4px 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.score-controls .btn-ghost:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px #24212b1a;
}
.score-actions {
  gap: 6px;
  margin-top: 8px;
}
.score-actions .btn-ghost,
.score-actions .btn-dark {
  font-size: 0.75rem;
  min-height: 34px;
  padding: 4px 12px;
  transition: transform 0.2s;
}
.score-actions .btn-ghost:hover,
.score-actions .btn-dark:hover {
  transform: translateY(-2px);
}
.round-box {
  animation: fadeUp 0.5s ease-out 0.15s both;
}

/* ── Game assists strip ── */
.game-assists article {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 16px !important;
  animation: fadeUp 0.5s ease-out 0.2s both;
}
.game-assists article:nth-child(2) {
  animation-delay: 0.3s;
}

.assist-pill {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s,
    opacity 0.25s;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 12px !important;
}
.assist-pill:hover:not(.used):not(:disabled) {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px #24212b1a !important;
}
.assist-pill-icon {
  transition: transform 0.3s;
}
.assist-pill:hover:not(.used):not(:disabled) .assist-pill-icon {
  transform: scale(1.12) rotate(-8deg);
}

/* ── Board ── */
.board {
  gap: 12px !important;
}
.board-col {
  gap: 10px;
}
.board-title {
  min-height: 82px !important;
  font-size: 0.92rem !important;
  padding: 12px !important;
}
.board-emoji {
  width: 38px !important;
  height: 38px !important;
  font-size: 1.5rem !important;
}
.board-title {
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--surface), var(--orange-soft2)) !important;
}
.board-col:hover .board-title {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #24212b1a;
}
.board-emoji {
  transition: transform 0.3s;
  border-radius: 10px;
}
.board-col:hover .board-emoji {
  transform: scale(1.15) rotate(-5deg);
}
.question-button {
  border-radius: 14px !important;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s,
    box-shadow 0.2s;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.1);
  min-height: 60px !important;
  font-size: 1.1rem !important;
}
.question-button:not(.used):hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(var(--orange-rgb), 0.25);
}
.question-button.used {
  opacity: 0.5;
  transform: scale(0.95);
}
.reset-row {
  gap: 10px;
}

/* ── Summary panel (win screen) ── */
.summary-panel {
  border: 2px solid transparent !important;
  background:
    linear-gradient(135deg, #fffbeb, #fef3c7, #fdf3e6) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b, #d97706) border-box !important;
  border-radius: 24px !important;
  text-align: center;
  padding: 36px 24px !important;
  margin: 20px 0;
  animation: popIn 0.5s ease-out both;
  box-shadow: 0 20px 48px rgba(var(--orange-rgb), 0.15) !important;
  position: relative;
  overflow: hidden;
}
html.dark .summary-panel {
  background: linear-gradient(135deg, #2d220c, #3b2e0f, #3b2210) padding-box !important;
}
.summary-panel::before {
  content: '🏆';
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 4rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}
.summary-panel::after {
  content: '🎉';
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 4rem;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite reverse;
  pointer-events: none;
}
.summary-winner {
  background: linear-gradient(135deg, var(--orange), #f59e0b, #d97706);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s ease-in-out infinite;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 20px;
}
.summary-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}
.summary-stat {
  background: var(--surface);
  padding: 12px 24px;
  border-radius: 14px;
  box-shadow: 0 4px 12px #0000000a;
  min-width: 100px;
}
.summary-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--orange);
}
.summary-stat span {
  font-size: 0.85rem;
  color: var(--muted);
}
.summary-actions {
  gap: 12px;
  margin-top: 20px;
}

/* ── Modal ── */
.modal {
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
  background: #24212baa !important;
  overflow-x: hidden;
}
.modal-card {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 24px !important;
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
  box-shadow: 0 40px 100px #24212b4d !important;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal-card::-webkit-scrollbar {
  display: none;
}
.modal-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, #ffffff08 0%, transparent 50%);
  pointer-events: none;
}
.modal-meta {
  gap: 8px;
  flex-wrap: wrap;
}
.modal-category {
  font-weight: 900;
  background: linear-gradient(135deg, var(--orange), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.difficulty-badge {
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
}
.difficulty-badge.easy {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.difficulty-badge.normal {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}
.difficulty-badge.hard {
  background: linear-gradient(135deg, #ef4444, #f97316);
}
.question-timer {
  font-weight: 900;
  font-size: 1.1rem;
  animation: scorePulse 2s ease-in-out infinite;
}
.timer-track {
  height: 6px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0;
}
.timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #f59e0b, var(--orange));
  border-radius: 999px;
  transition: transform 0.3s;
  transform-origin: right;
}
.effect-banner {
  border-radius: 12px !important;
  border: none !important;
  box-shadow: 0 4px 12px #0000000d;
}
.effect-banner.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
}
.effect-banner.green {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0) !important;
}
.effect-banner.cyan {
  background: linear-gradient(135deg, #cffafe, #a5f3fc) !important;
}
.effect-banner.yellow {
  background: linear-gradient(135deg, #fef9c3, #fef08a) !important;
}
.effect-banner.brown {
  background: linear-gradient(135deg, #fdf3e6, #fce4d6) !important;
}
.effect-banner.red {
  background: linear-gradient(135deg, #fee2e2, #fecaca) !important;
}
.question-text {
  animation: fadeUp 0.4s ease-out both;
  line-height: 1.6 !important;
}
.question-assists article {
  border: 1.5px solid transparent !important;
  background:
    linear-gradient(var(--soft), var(--soft)) padding-box,
    linear-gradient(135deg, var(--orange)) border-box !important;
  border-radius: 12px !important;
  padding: 12px;
}
.answer-box {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 14px !important;
  border: 2px solid transparent;
}
.answer-box.show {
  border-color: #34d399 !important;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5) !important;
  box-shadow: 0 4px 16px #34d39933;
  transform: scale(1.02);
}
.control-row {
  gap: 8px;
}

/* ── Contact page ── */
.page-hero {
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--orange-rgb), 0.08) 0%, transparent 60%);
  top: -60px;
  right: -60px;
  animation: float 9s ease-in-out infinite;
  pointer-events: none;
}
.card.form {
  border: 2px solid transparent !important;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
  border-radius: 20px !important;
  animation: fadeUp 0.6s ease-out both;
  box-shadow: 0 12px 32px #24212b0f !important;
}
.card.form input:focus,
.card.form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.13);
  outline: none;
}
.faq-item {
  border: 1.5px solid var(--line) !important;
  border-radius: 14px !important;
  transition:
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
  animation: fadeUp 0.5s ease-out both;
}
.faq-item:hover {
  border-color: var(--orange) !important;
  box-shadow: 0 4px 16px rgba(var(--orange-rgb), 0.1);
  transform: translateX(-4px);
}
.faq-item summary {
  transition: color 0.2s;
}
.faq-item:hover summary {
  color: var(--orange);
}
.faq-item[open] {
  border-color: var(--orange) !important;
  background: var(--orange-soft2);
}
html.dark .faq-item[open] {
  background: #1a1412;
}

/* ── Social Follow (Contact Page) ── */
.follow-us {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(36, 33, 43, 0.04);
}
.follow-us .eyebrow {
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.follow-us h3 {
  margin: 0 0 24px;
  font-size: 1.1rem;
  color: var(--muted);
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.social-link span:first-child {
  font-size: 1.4rem;
}
.social-link.instagram {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}
.social-link.grip {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}
.social-link.tiktok {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

/* ── Follow Us: platform tiles grid ── */
.platform-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  gap: 12px;
  padding: 6px 2px 10px;
  justify-content: flex-start;
  scrollbar-width: none;
}
.platform-grid::-webkit-scrollbar {
  display: none;
}
.platform-tile {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(var(--orange-rgb), 0.14);
  padding: 8px 4px 6px;
  text-decoration: none;
  overflow: hidden;
  scroll-snap-align: center;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s,
    border-color 0.25s;
}
.platform-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(var(--orange-rgb), 0.07), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.platform-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(var(--orange-rgb), 0.18);
}
.platform-tile:hover::before {
  opacity: 1;
}
.pt-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}
.pt-icon svg {
  width: 20px;
  height: 20px;
}
.pt-name {
  position: relative;
  font-weight: 800;
  font-size: 0.72rem;
  line-height: 1.1;
  color: var(--ink);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pt-sub {
  position: relative;
  display: none;
}
.pt-follow {
  position: relative;
  display: none;
}
.p-instagram .pt-icon {
  background: linear-gradient(135deg, hsl(3, 90%, 50%), hsl(348, 90%, 50%));
}
.p-instagram:hover {
  border-color: hsl(348, 80%, 60%);
  box-shadow: 0 12px 28px hsla(348, 80%, 50%, 0.25);
}
.p-grip .pt-icon {
  background: linear-gradient(135deg, hsl(43, 90%, 50%), hsl(28, 90%, 50%));
}
.p-grip:hover {
  border-color: hsl(35, 85%, 55%);
  box-shadow: 0 12px 28px hsla(35, 85%, 50%, 0.25);
}
.p-tiktok .pt-icon {
  background: linear-gradient(135deg, hsl(253, 90%, 55%), hsl(238, 90%, 55%));
}
.p-tiktok:hover {
  border-color: hsl(248, 85%, 62%);
  box-shadow: 0 12px 28px hsla(248, 85%, 55%, 0.25);
}
.p-github .pt-icon {
  background: linear-gradient(135deg, hsl(223, 70%, 45%), hsl(208, 70%, 45%));
}
.p-github:hover {
  border-color: hsl(215, 70%, 52%);
  box-shadow: 0 12px 28px hsla(215, 70%, 45%, 0.25);
}
.p-play .pt-icon {
  background: linear-gradient(135deg, hsl(123, 80%, 38%), hsl(108, 80%, 38%));
}
.p-play:hover {
  border-color: hsl(115, 75%, 48%);
  box-shadow: 0 12px 28px hsla(115, 75%, 42%, 0.25);
}
.legal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.legal-row a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}
.legal-row a:hover {
  background: rgba(var(--orange-rgb), 0.08);
  color: var(--orange);
  transform: translateY(-2px);
}
html.dark .platform-tile {
  background: var(--surface-2, var(--surface));
}

/* ── GlassIcons (React Bits) ── */
.icon-btns {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  gap: 2.5em;
  padding: 2em 0;
  justify-content: center;
  scrollbar-width: none;
  -webkit-scrollbar {
    display: none;
  }
}
.icon-btns-compact {
  gap: 1.5em;
  padding: 0.75em 0;
}
.icon-btns-compact .icon-btn {
  width: 3.8em;
  height: 3.8em;
}
.icon-btns::-webkit-scrollbar {
  display: none;
}
.icon-btn {
  background: transparent;
  outline: none;
  position: relative;
  flex: 0 0 auto;
  width: 4.5em;
  height: 4.5em;
  perspective: 24em;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
  border: none;
  cursor: pointer;
  scroll-snap-align: center;
}
.icon-btn__back,
.icon-btn__front,
.icon-btn__label {
  transition:
    opacity 0.3s cubic-bezier(0.83, 0, 0.17, 1),
    transform 0.3s cubic-bezier(0.83, 0, 0.17, 1);
}
.icon-btn__back,
.icon-btn__front {
  border-radius: 1.25em;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.icon-btn__back {
  box-shadow: 0.5em -0.5em 0.75em hsla(223, 10%, 10%, 0.15);
  display: block;
  transform: rotate(15deg);
  transform-origin: 100% 100%;
  will-change: transform;
}
.icon-btn__front {
  background: hsla(0, 0%, 100%, 0.12);
  box-shadow: 0 0 0 0.1em hsla(0, 0%, 100%, 0.25) inset;
  backdrop-filter: blur(0.75em);
  -webkit-backdrop-filter: blur(0.75em);
  display: flex;
  transform-origin: 80% 50%;
  will-change: transform;
}
.icon-btn__icon {
  margin: auto;
  width: 1.5em;
  height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.icon-btn__label {
  font-size: 0.75em;
  white-space: nowrap;
  text-align: center;
  line-height: 2;
  opacity: 0;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  transform: translateY(0);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.icon-btn:focus-visible .icon-btn__back,
.icon-btn:hover .icon-btn__back {
  transform: rotate(25deg) translate3d(-0.5em, -0.5em, 0.5em);
}
.icon-btn:focus-visible .icon-btn__front,
.icon-btn:hover .icon-btn__front {
  transform: translate3d(0, 0, 2em);
}
.icon-btn:focus-visible .icon-btn__label,
.icon-btn:hover .icon-btn__label {
  opacity: 1;
  transform: translateY(20%);
}
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e1b24;
  color: #fff;
  padding: 16px 24px;
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
#cookie-banner.show {
  display: flex;
}
#cookie-banner p {
  flex: 1;
  margin: 0;
  line-height: 1.5;
}
#cookie-banner .cookie-btn {
  background: var(--orange, var(--orange));
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.85rem;
}
#cookie-banner .cookie-btn:hover {
  opacity: 0.9;
}

/* ── Consent modal (terms & conditions gate) ── */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 12, 20, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.consent-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface, #221d2b);
  color: var(--ink, #fff);
  border: 1px solid var(--line, #3a3445);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: consentPop 0.25s ease;
}
@keyframes consentPop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.consent-card .c-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.consent-card h2 {
  margin: 10px 0 6px;
  font-size: 1.15rem;
}
.consent-card p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted, #b8b0c4);
}
.consent-card p a {
  color: var(--orange, #e3603a);
  text-decoration: underline;
}
.consent-card .c-update {
  margin: -4px 0 14px;
  font-size: 0.72rem;
  color: var(--muted, #b8b0c4);
}
.consent-actions {
  display: flex;
  gap: 10px;
}
.consent-actions button {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 11px 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.consent-no {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}
.consent-yes {
  background: var(--orange, #e3603a);
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  border-top: 2px solid transparent !important;
  border-image: linear-gradient(90deg, var(--orange), #f59e0b, var(--orange)) 1 !important;
}
.footer-links a {
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.2s,
    color 0.2s;
}
.footer-links a:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.25);
}

/* ── Replit pill ── */
.replit-pill {
  background: linear-gradient(135deg, var(--orange), #f59e0b) !important;
  color: #fff !important;
  font-weight: 900;
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ── Dark mode overrides for game pages ── */
html.dark .setup-strip,
html.dark .assist-team,
html.dark .game-assists article,
html.dark .start-bar,
html.dark .scorebar,
html.dark .card.form,
html.dark .modal-card {
  background:
    linear-gradient(#1a1412, #1a1412) padding-box,
    linear-gradient(135deg, var(--orange), #f59e0b) border-box !important;
}
html.dark .product-card.selected {
  background: linear-gradient(135deg, #2d1a14, #3b2218) !important;
}
html.dark .assist-setup-card.selected {
  background: linear-gradient(135deg, #2d1a14, #3b2218) !important;
}
html.dark .board-title {
  background: linear-gradient(135deg, #1a1412, #2d1a14) !important;
}
html.dark .summary-stat {
  background: #1a1412;
}
/* ── Share result row (summary panel) ── */
.share-result-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
}
.share-result-row .share-btn {
  background: linear-gradient(135deg, #25d366, #128c7e) !important;
  color: #fff !important;
  border: none !important;
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s;
  font-size: 0.8rem;
  padding: 6px 12px;
}
.share-result-row .share-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px #25d3664d !important;
}

/* ── Page transitions ── */
main {
  animation: fadeUp 0.35s ease-out;
}

/* ── Responsive game adjustments ── */
@media (max-width: 600px) {
  .summary-stats {
    flex-direction: column;
    align-items: center;
  }
  .control-row {
    flex-direction: column;
  }
  .control-row button {
    width: 100%;
    justify-content: center;
  }
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ── مين أكثر (Who is Most) game ── */
.most-section {
  padding-bottom: 60px;
}
.most-hero {
  text-align: center;
  padding: 40px 0 24px;
}
.most-hero h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  margin-bottom: 6px;
}
.most-hero p {
  color: var(--muted);
  margin: 0 auto;
  font-size: 0.95rem;
  max-width: 680px;
}
.most-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.04);
}
.most-card-title {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.most-player-input {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.most-player-input input {
  flex: 1;
  min-height: 48px;
  font-size: 1rem;
  padding: 8px 14px;
}
.most-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 12px 0 4px;
}
.most-avatar-btn {
  cursor: pointer;
  font-size: 1.5rem;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.most-avatar-btn.sel {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: var(--glow-primary);
}
.most-player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.most-player-chip {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 6px 10px;
  font-weight: 900;
  font-size: 0.9rem;
}
.most-player-chip .emoji {
  font-size: 1.1rem;
}
.most-player-chip .remove {
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
  margin-right: 2px;
  line-height: 1;
}
.most-player-chip .remove:hover {
  color: var(--red);
}
.most-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.most-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.most-input-row input {
  flex: 1;
  min-height: 44px;
  font-size: 0.95rem;
  padding: 8px 14px;
}
.most-custom-q-count {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 6px 0 0;
  font-weight: 700;
}
.most-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.most-settings-row label {
  font-weight: 900;
  font-size: 0.85rem;
  color: var(--ink);
  white-space: nowrap;
}
.most-settings-row input[type='range'] {
  width: 160px;
  min-height: 36px;
}
.most-settings-row .val {
  font-weight: 900;
  color: var(--orange);
  min-width: 28px;
  text-align: center;
  font-size: 0.9rem;
}
.most-pack-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.most-pack-btn {
  cursor: pointer;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  background: var(--surface);
  transition:
    border-color 0.15s,
    background 0.15s;
}
.most-pack-btn.sel {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.most-start-wrap {
  text-align: center;
  margin-top: 8px;
}
.most-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 8px;
}
.most-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
}
.most-score-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 6px;
}
.most-score-item .score {
  color: var(--orange);
}
.most-score-item .streak {
  font-size: 0.7rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-weight: 900;
}
.most-card.question-card .most-player-list {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.most-card.question-card .most-player-list::-webkit-scrollbar {
  display: none;
}
.most-card.question-card .most-player-list > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}
.most-question-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  margin: 16px auto;
  max-width: 560px;
  box-shadow: 0 6px 20px #24212b0a;
}
.most-question-box h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.most-player-btn {
  cursor: pointer;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 88px;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 1rem;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  display: flex;
  position: relative;
}
.most-player-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px #24212b1a;
}
.most-player-btn.selected {
  border-color: var(--orange);
  background: var(--orange-soft2);
  box-shadow: 0 4px 16px rgba(var(--orange-rgb), 0.15);
}
.most-player-btn .vote-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  font-weight: 900;
}
.most-player-btn .winner-badge {
  font-size: 0.65rem;
  color: var(--green);
  font-weight: 900;
}
.most-progress {
  text-align: center;
  color: var(--muted);
  font-weight: 900;
  font-size: 0.85rem;
}
.most-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.most-bottom-bar .most-actions {
  margin: 0;
}
.most-bottom-bar .most-actions button {
  min-height: 40px;
  font-size: 0.9rem;
  padding: 6px 20px;
}
.tie-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 900;
  margin-right: 4px;
}
.pack-badge {
  display: inline-block;
  margin-right: 3px;
  font-size: 0.78rem;
}
.most-history {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 12px;
}
.most-history-item {
  background: var(--soft);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.most-history-item .winner {
  color: var(--orange);
}
.most-nickname-label {
  font-size: 0.65rem;
  color: var(--orange);
  opacity: 0.8;
  font-weight: 900;
}
.most-reaction-box {
  margin: 8px auto 0;
  max-width: 440px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 900;
  font-style: italic;
}
.most-winner-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  margin: 16px auto;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.04);
}
.most-winner-box .crown {
  font-size: 3.2rem;
}
.most-winner-box .score {
  color: var(--muted);
  font-size: 1rem;
}
.most-result-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 8px;
  margin-bottom: 4px;
  font-weight: 700;
  font-size: 0.95rem;
}
.most-result-item:last-child {
  margin-bottom: 0;
}
.most-result-item .votes {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}
.challenge-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(36, 33, 43, 0.04);
}
.challenge-card .emoji {
  font-size: 2.2rem;
}
.challenge-card p {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.6;
}
.most-result-item:first-child {
  background: color-mix(in srgb, var(--orange) 12%, var(--surface));
  border-radius: 12px 12px 0 0;
  padding: 14px 16px;
}
.most-result-item:first-child .votes {
  color: var(--orange);
  font-size: 0.95rem;
}
.most-player-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 28px #24212b26;
}
.most-player-btn.selected {
  border-color: var(--orange);
  background: linear-gradient(135deg, var(--orange-soft2), #fff0e6);
  box-shadow: 0 4px 20px rgba(var(--orange-rgb), 0.2);
}
.most-player-chip .remove:hover {
  color: var(--red);
  transform: scale(1.2);
}
.most-player-input button:hover,
.most-input-row button:hover {
  transform: translateY(-2px);
}
.most-progress-bar {
  height: 4px;
  background: var(--soft);
  border-radius: 999px;
  margin: 0 0 16px;
  overflow: hidden;
}
.most-progress-bar .fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), #f59e0b);
  border-radius: inherit;
  transition: width 0.4s ease;
}

/* ── extra graphic & motion ── */
@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}
@keyframes slideUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 8px rgba(var(--orange-rgb), 0.13);
  }
  50% {
    box-shadow:
      0 0 20px rgba(var(--orange-rgb), 0.25),
      0 0 40px rgba(var(--orange-rgb), 0.06);
  }
}
@keyframes borderGlow {
  0%,
  100% {
    border-color: var(--line);
  }
  50% {
    border-color: var(--orange);
  }
}
@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.product-card {
  animation: slideUp 0.5s ease-out backwards;
}
.product-card:nth-child(1) {
  animation-delay: 0.05s;
}
.product-card:nth-child(2) {
  animation-delay: 0.1s;
}
.product-card:nth-child(3) {
  animation-delay: 0.15s;
}
.product-card:nth-child(4) {
  animation-delay: 0.2s;
}
.product-card:nth-child(5) {
  animation-delay: 0.25s;
}
.product-card:nth-child(6) {
  animation-delay: 0.3s;
}
.product-card:nth-child(7) {
  animation-delay: 0.35s;
}
.product-card:nth-child(8) {
  animation-delay: 0.4s;
}
.os-file-card {
  animation: slideUp 0.45s ease-out both;
}
.fade-in {
  animation: slideUp 0.45s ease-out both;
}
.game-icon-float {
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}
.game-bounce-in {
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.game-card-stagger > * {
  animation: slideUp 0.4s ease-out backwards;
}
.game-card-stagger > *:nth-child(1) {
  animation-delay: 0.05s;
}
.game-card-stagger > *:nth-child(2) {
  animation-delay: 0.1s;
}
.game-card-stagger > *:nth-child(3) {
  animation-delay: 0.15s;
}
.game-card-stagger > *:nth-child(4) {
  animation-delay: 0.2s;
}
.game-card-stagger > *:nth-child(5) {
  animation-delay: 0.25s;
}
.game-card-stagger > *:nth-child(6) {
  animation-delay: 0.3s;
}
.game-card-stagger > *:nth-child(7) {
  animation-delay: 0.35s;
}
.game-card-stagger > *:nth-child(8) {
  animation-delay: 0.4s;
}
.os-file-card:nth-child(1) {
  animation-delay: 0.03s;
}
.os-file-card:nth-child(2) {
  animation-delay: 0.06s;
}
.os-file-card:nth-child(3) {
  animation-delay: 0.09s;
}
.os-file-card:nth-child(4) {
  animation-delay: 0.12s;
}
.os-file-card:nth-child(5) {
  animation-delay: 0.15s;
}
.os-file-card:nth-child(6) {
  animation-delay: 0.18s;
}
.os-file-card:nth-child(7) {
  animation-delay: 0.21s;
}
.os-file-card:nth-child(8) {
  animation-delay: 0.24s;
}
.start-bar {
  animation: slideUp 0.5s ease-out both;
}
.closing-brand {
  animation: slideUp 0.6s ease-out both;
  animation-delay: 0.2s;
  background-size: 200% 200%;
  animation-name: slideUp, gradientShift;
  animation-duration: 0.6s, 8s;
  animation-timing-function: ease-out, ease-in-out;
  animation-fill-mode: both, infinite;
}
.closing-brand:hover .closing-logo-text {
  animation: wiggle 0.4s ease-in-out;
}
.assist-setup-card:hover {
  animation: breathe 1.5s ease-in-out infinite;
}
.assist-pill:hover:not(.used):not(:disabled) {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px #24212b26;
}
.summary-card:hover strong {
  animation: wiggle 0.4s ease-in-out;
}
.special-card:hover > span {
  animation: wiggle 0.4s ease-in-out;
}
.nav-links a {
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.15s;
}
.nav-links a:hover {
  transform: translateY(-1px);
}
.site-header {
  transition: box-shadow 0.3s;
}
.opensource-section {
  animation: slideUp 0.5s ease-out both;
  animation-delay: 0.15s;
}
.setup-strip {
  animation: slideInRight 0.5s ease-out both;
}
.page-hero {
  animation: slideUp 0.5s ease-out both;
}
.modal.open .modal-card {
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
/* site-wide motion (except most game) */

.player-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--surface);
  border-radius: 20px;
  font-size: 0.9rem;
  margin: 3px;
}
.player-rm {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 0;
  line-height: 1;
}
.player-rm:hover {
  color: var(--orange);
}
/* Rapid Fire */
.rf-timer-bar {
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px auto;
  max-width: 300px;
}
.rf-timer-bar .fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width 0.3s linear;
}
.rf-timer-bar .fill.danger {
  background: #e74c3c;
}
.form-input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: var(--surface);
  padding: 10px 14px;
  font-size: 0.95rem;
  box-sizing: border-box;
}
.form-input:focus {
  outline: 2px solid var(--orange);
  outline-offset: -1px;
}

/* ── Mobile / APK optimizations ── */
* {
  -webkit-tap-highlight-color: transparent;
}
input,
textarea,
select {
  font-size: 16px !important;
}
button,
.btn-primary,
.btn-ghost,
.btn-dark,
.btn-danger,
.pill-btn,
.product-card,
.assist-setup-card,
.question-button,
[data-route],
.social-btn,
.nav-links a,
.nav-links button {
  touch-action: manipulation;
  cursor: pointer;
}
html {
  overflow-y: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
body {
  min-height: 100vh;
}
.modal-card {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.no-select,
.scorebar,
.board,
.game-assists,
.modal,
.summary-panel {
  -webkit-user-select: none;
  user-select: none;
}
img,
a {
  -webkit-touch-callout: none;
}
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: max(env(safe-area-inset-bottom), 100px);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}
@media (hover: none) and (pointer: coarse) {
  .summary-card:hover,
  .special-card:hover,
  .product-card:hover,
  .os-file-card:hover,
  .assist-setup-card:hover,
  .social-btn:hover,
  .btn-primary:hover,
  .btn-ghost:hover,
  .btn-dark:hover,
  .btn-danger:hover,
  .question-button:not(.used):hover,
  .nav-links a:hover,
  .os-download-all:hover,
  .closing-brand .btn-primary:hover,
  .hero-actions .btn-primary:hover,
  .hero-actions .btn-ghost:hover,
  .special-card:hover > span,
  .summary-card:hover strong,
  .summary-card:hover {
    transform: none !important;
  }
  .question-button:not(.used):hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(var(--orange-rgb), 0.1) !important;
  }
}
@keyframes c4-drop {
  from {
    transform: translateY(-380px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.c4-coin-drop {
  animation: c4-drop 0.25s ease-out;
}

/* ============================================================================
   BB GAMES — full app layout (replaces Sllina's page design system)
   ========================================================================== */

:root {
  --bbx-bar: 56px;
  --bbx-dock: 74px;
  --bbx-gut: 14px;
}

html {
  background: var(--bg-base);
}
body {
  background: transparent;
}

body {
  color: var(--text-main);
  font-family:
    'Cairo',
    'Inter',
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-width: 320px;
  padding-top: calc(var(--bbx-bar) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--bbx-dock) + 26px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
}
/* fixed full-viewport layer that hosts the user's custom background
   (image or pattern) — painted here instead of on <body> so it covers the
   whole screen on every device with no iOS fixed-attachment zoom bug */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: var(--sllina-bg-image, none);
  background-size: var(--sllina-bg-size, cover);
  background-position: var(--sllina-bg-position, center);
  background-repeat: var(--sllina-bg-repeat, no-repeat);
  background-attachment: scroll;
}
main {
  position: relative;
  z-index: 1;
}

/* inside a game: no upper app bar, content goes to the top */
html.in-game .bbx-top {
  display: none;
}
html.in-game {
  --bbx-bar: 0px;
}
html.in-game body {
  padding-top: 0;
}

/* games that keep the top nav bar visible (wordle, sequence) */
html.show-top .bbx-top {
  display: flex;
}
html.show-top {
  --bbx-bar: 56px;
}
html.show-top body {
  padding-top: calc(var(--bbx-bar) + env(safe-area-inset-top, 0px));
}

/* legacy page shell neutralised — the new layout owns spacing */
.selina-page {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--bbx-gut) 8px;
}
/* Vungle/Liftoff banner slot at the end of the home page. The div reserves
   space in the page flow; the native app overlays the actual banner view on
   top of it using the reported rect (see setupAdSlot). */
.vng-banner-slot {
  min-height: 60px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.vng-banner-status {
  font-size: .7rem;
  color: #94a3b8;
  text-align: center;
  padding: 2px 8px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.site-header,
.settings-fab {
  display: none !important;
}

/* ---------- top app bar ------------------------------------------------- */
.bbx-top {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 900;
  height: calc(var(--bbx-bar) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--bbx-gut) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(9, 9, 11, 0.78);
  border-bottom: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}
.bbx-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.bbx-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.bbx-top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bbx-wallet {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline-start: 11px;
  padding-inline-end: 4px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--stroke);
  font-family: 'Inter', 'Cairo', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.bbx-wallet:hover {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: var(--glow-primary);
}
.bbx-wallet .gem {
  font-size: 0.9rem;
}
.bbx-wallet .plus {
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #a855f7, #7c3aed);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.6);
}
.bbx-wallet-diamond:hover {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}
.bbx-wallet-diamond .plus {
  background: linear-gradient(145deg, #22d3ee, #0284c7);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.6);
}
.bbx-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #6d28d9, #a855f7);
  color: #fff;
  font-weight: 900;
  font-size: 0.82rem;
  text-decoration: none;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}
.bbx-settings {
  padding: 0;
  cursor: pointer;
  font: inherit;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bbx-settings svg {
  width: 18px;
  height: 18px;
}
.bbx-settings:hover {
  transform: scale(1.1);
}
.bbx-settings.open {
  transform: rotate(60deg);
}

/* ---------- section heading: title + "الكل ›" --------------------------- */
.bbx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 11px;
}
.bbx-head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.bbx-head .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  padding: 3px 9px;
  border-radius: 999px;
}
.bbx-head .live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 7px rgba(34, 197, 94, 0.95);
  display: inline-block;
}
.bbx-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.bbx-more:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.14);
}
.bbx-more svg {
  width: 11px;
  height: 11px;
}
html[dir='rtl'] .bbx-more svg {
  transform: scaleX(-1);
}

/* ---------- promo banner ------------------------------------------------ */
.bbx-banner {
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 16px;
  padding: 14px 14px 12px;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ff6b2b;
  box-shadow:
    0 16px 40px rgba(var(--orange-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  isolation: isolate;
  transition:
    background-color 1.2s ease,
    box-shadow 0.8s ease;
}
.bbx-banner::before {
  content: '';
  position: absolute;
  inset-inline-end: -34px;
  top: -30px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent 66%);
}
.bbx-banner::after {
  content: '';
  position: absolute;
  inset-inline-end: -52px;
  bottom: -64px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  z-index: -1;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
}
.bbx-banner-kick {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3px;
}
.bbx-banner h3 {
  margin: 0 0 2px;
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 76%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}
.bbx-banner p {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  max-width: 78%;
}
.bbx-banner-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: #1a1a1f;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
}
.bbx-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
}
.bbx-banner-cta:active {
  transform: scale(0.96);
}
.bbx-banner-cta svg {
  width: 11px;
  height: 11px;
}
html[dir='rtl'] .bbx-banner-cta svg {
  transform: scaleX(-1);
}
.bbx-banner-cta.ghost {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.bbx-banner-cta.ghost:hover {
  background: rgba(255, 255, 255, 0.34);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* Sloom, the waving mascot — the shadda tufts and one rounded orange mass */
.bbx-banner-art {
  position: absolute;
  inset-inline-end: 6px;
  bottom: 0;
  z-index: -1;
  width: 110px;
  pointer-events: none;
}
.bbx-banner-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.bbx-banner-art .sloom-body {
  transform-box: view-box;
  transform-origin: 200px 406px;
  animation: sloomBody 2.2s ease-in-out infinite;
}
.bbx-banner-art .sloom-arm {
  transform-box: view-box;
  transform-origin: 46px 212px;
  animation: sloomWave 1.1s ease-in-out infinite;
}
.bbx-banner-art .sloom-arm-r {
  transform-box: view-box;
  transform-origin: 348px 300px;
  animation: sloomArmR 2.2s ease-in-out infinite;
}
.bbx-banner-art .sloom-tufts {
  transform-box: view-box;
  transform-origin: 200px 104px;
  animation: sloomTuft 1.2s ease-in-out infinite;
}
@keyframes sloomArmR {
  0%,
  100% {
    transform: rotate(10deg);
  }
  50% {
    transform: rotate(20deg);
  }
}
@keyframes sloomWave {
  0%,
  100% {
    transform: rotate(-20deg);
  }
  50% {
    transform: rotate(-100deg);
  }
}
@keyframes sloomBody {
  0%,
  100% {
    transform: rotate(-1.5deg);
  }
  50% {
    transform: rotate(1.5deg);
  }
}
@keyframes sloomTuft {
  0%,
  100% {
    transform: rotate(2.5deg);
  }
  50% {
    transform: rotate(-2.5deg);
  }
}
/* Sloom motions — purchasable animations (shop + dressing room).
   Ported from the animated reference: squash & stretch, tuft/arm lag. */
.bbx-banner-art[data-motion='wave'] .sloom-arm { animation: sloomWaveBig 0.85s ease-in-out infinite; }
.bbx-banner-art[data-motion='wave'] .sloom-body { animation: sloomBodyBig 0.85s ease-in-out infinite; }
.bbx-banner-art[data-motion='wave'] .sloom-tufts { animation: sloomWaveTuft 0.85s ease-in-out infinite; }
.bbx-banner-art[data-motion='wave'] .sloom-arm-r { animation: sloomWaveArmR 0.85s ease-in-out infinite; }
.bbx-banner-art[data-motion='hop'] .sloom-body { animation: sloomHop 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.bbx-banner-art[data-motion='hop'] .sloom-tufts { animation: sloomHopTuft 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.bbx-banner-art[data-motion='hop'] .sloom-arm { animation: sloomHopArm 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.bbx-banner-art[data-motion='hop'] .sloom-arm-r { animation: sloomHopArmR 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.bbx-banner-art[data-motion='party'] .sloom-body { animation: sloomParty 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
.bbx-banner-art[data-motion='party'] .sloom-arm { animation: sloomPartyArm 0.8s ease-in-out infinite; }
.bbx-banner-art[data-motion='party'] .sloom-arm-r { animation: sloomPartyArmR 0.8s ease-in-out infinite; }
.bbx-banner-art[data-motion='party'] .sloom-tufts { animation: sloomPartyTuft 0.8s ease-in-out infinite; }
.bbx-banner-art[data-motion='think'] .sloom-body { animation: sloomThink 3s ease-in-out infinite; }
.bbx-banner-art[data-motion='think'] .sloom-tufts { animation: sloomThinkTuft 3s ease-in-out infinite; }
.bbx-banner-art[data-motion='think'] .sloom-arm { animation: none; }
.bbx-banner-art[data-motion='think'] .sloom-arm-r { animation: sloomThinkArmR 3s ease-in-out infinite; }
.bbx-banner-art[data-motion='sus'] .sloom-body { animation: sloomSus 2.6s ease-in-out infinite; }
.bbx-banner-art[data-motion='sus'] .sloom-tufts { animation: sloomSusTuft 2.6s ease-in-out infinite; }
.bbx-banner-art[data-motion='sus'] .sloom-arm-r { animation: sloomSusArmR 2.6s ease-in-out infinite; }
.bbx-banner-art[data-motion='pass'] .sloom-arm-r { animation: sloomPassArm 1.6s ease-in-out infinite; }
.bbx-banner-art[data-motion='pass'] .sloom-body { animation: sloomPassBody 1.6s ease-in-out infinite; }
@keyframes sloomWaveBig { 0%, 100% { transform: rotate(-28deg); } 50% { transform: rotate(-120deg); } }
@keyframes sloomBodyBig { 0%, 100% { transform: rotate(-3deg) scale(1, 1.02); } 50% { transform: rotate(3deg) scale(1, 1.02); } }
@keyframes sloomWaveTuft { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(-7deg); } }
@keyframes sloomWaveArmR { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(10deg); } }
@keyframes sloomHop {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  10% { transform: translateY(2px) rotate(0deg) scale(1, 0.86); }
  45% { transform: translateY(-52px) rotate(-1.5deg) scale(1, 1.14); }
  70% { transform: translateY(2px) rotate(0deg) scale(1, 0.82); }
  85% { transform: translateY(0) rotate(0deg) scale(1, 1.06); }
}
@keyframes sloomHopTuft {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(2deg); }
  45% { transform: rotate(-7deg); }
  70% { transform: rotate(4deg); }
}
@keyframes sloomHopArm { 0%, 100% { transform: rotate(-14deg); } 45% { transform: rotate(-34deg); } }
@keyframes sloomHopArmR { 0%, 100% { transform: rotate(14deg); } 45% { transform: rotate(34deg); } }
@keyframes sloomParty {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1, 1); }
  12% { transform: translateY(2px) rotate(0deg) scale(1, 0.84); }
  52% { transform: translateY(-58px) rotate(-2.5deg) scale(1, 1.16); }
  78% { transform: translateY(2px) rotate(0deg) scale(1, 0.82); }
  92% { transform: translateY(0) rotate(0deg) scale(1, 1.06); }
}
@keyframes sloomPartyArm { 0%, 100% { transform: rotate(-80deg); } 50% { transform: rotate(-140deg); } }
@keyframes sloomPartyArmR { 0%, 100% { transform: rotate(80deg); } 50% { transform: rotate(140deg); } }
@keyframes sloomPartyTuft { 0%, 100% { transform: rotate(3deg); } 52% { transform: rotate(-6deg); } }
@keyframes sloomThink { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(3deg); } }
@keyframes sloomThinkTuft { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes sloomThinkArmR { 0%, 100% { transform: rotate(-42deg); } 50% { transform: rotate(-30deg); } }
@keyframes sloomSus { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-4px); } }
@keyframes sloomSusTuft { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-8deg); } }
@keyframes sloomSusArmR { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(26deg); } }
@keyframes sloomPassArm { 0%, 100% { transform: rotate(50deg); } 50% { transform: rotate(-40deg); } }
@keyframes sloomPassBody { 0%, 100% { transform: rotate(3.5deg); } 50% { transform: rotate(-3.5deg); } }
.bbx-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 8px;
}
.bbx-dots i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  display: block;
  background: rgba(255, 255, 255, 0.22);
  transition:
    width 0.3s,
    background 0.3s;
}
.bbx-dots i.on {
  width: 20px;
  background: var(--brand-primary);
  box-shadow: var(--glow-primary);
}

/* rotating promo slides inside the banner */
.bbx-banner-text {
  position: relative;
}
.bbx-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.bbx-banner-slide {
  display: none;
}
.bbx-banner-slide.on {
  display: block;
  animation: bbxSlideIn 0.5s ease;
}
@keyframes bbxSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- chip row ---------------------------------------------------- */
.bbx-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 2px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bbx-chips::-webkit-scrollbar {
  display: none;
}
.bbx-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--text-secondary);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.bbx-chip:hover {
  color: #fff;
  border-color: rgba(255, 107, 43, 0.5);
}
.bbx-chip.on {
  background: linear-gradient(140deg, var(--orange, #FF6B2B), var(--orange-dark, #F4571E));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.4);
}
.bbx-chip svg {
  width: 14px;
  height: 14px;
}

/* ---------- search ------------------------------------------------------ */
.bbx-search {
  position: relative;
  margin: 12px 0 4px;
}
.bbx-search .ico {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-disabled);
  pointer-events: none;
}
.bbx-search input {
  width: 100%;
  height: 46px;
  border-radius: 14px;
  padding-inline-start: 42px;
  padding-inline-end: 48px;
  background: var(--surface) !important;
  color: #fff !important;
  border: 1px solid var(--stroke) !important;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.bbx-search input::placeholder {
  color: var(--text-disabled);
}
.bbx-search input:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important;
}
.bbx-search .layout {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
}
.bbx-search .layout:hover {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.55);
}

/* ---------- layout toggle (inside search bar) ---------------------------- */
.bbx-layout-btn {
  position: absolute;
  inset-inline-end: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 107, 43, 0.08);
  border: 1px solid rgba(255, 107, 43, 0.2);
  color: var(--orange, #FF6B2B);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bbx-layout-btn:hover {
  color: #fff;
  background: var(--orange, #FF6B2B);
  border-color: var(--orange, #FF6B2B);
}
.bbx-layout-btn.active {
  background: var(--orange, #FF6B2B);
  border-color: var(--orange, #FF6B2B);
  color: #fff;
}

/* ---------- filter pill badge (inline in chips row) ---------------------- */
.bbx-filter-pill {
  padding: 0 10px;
}
.bbx-filter-pill:hover {
  border-color: rgba(255, 107, 43, 0.5) !important;
}
.bbx-shuffle-btn {
  padding: 0 10px;
  font-size: 1rem;
}
.bbx-shuffle-btn:active {
  transform: scale(0.92);
}
.bbx-filter-pill-badge {
  display: inline-grid;
  place-items: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--orange, #FF6B2B);
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0 4px;
  line-height: 1;
  margin-inline-start: 2px;
}

/* ---------- list-view: text-only names ----------------------------------- */
.summary-grid.list-view {
  display: grid !important;
  flex-direction: unset;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr) !important;
}
.summary-grid.list-view .summary-card,
.summary-grid.list-view .summary-card[class*='color-'] {
  display: flex !important;
  align-items: center;
  gap: 6px;
  height: auto;
  min-height: 36px;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  aspect-ratio: unset !important;
  background: var(--surface) !important;
  border: 1px solid var(--stroke) !important;
  box-shadow: none !important;
  cursor: pointer;
  color: var(--text) !important;
  transform: none !important;
}
.summary-grid.list-view .summary-card > strong {
  display: none !important;
}
.summary-grid.list-view .summary-card > strong::before,
.summary-grid.list-view .summary-card > strong::after {
  display: none !important;
}
.summary-grid.list-view .summary-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: var(--text) !important;
  -webkit-line-clamp: unset !important;
  display: block !important;
}
.summary-grid.list-view .summary-card p {
  display: none !important;
}
.summary-grid.list-view .summary-card button[data-action="games-fav"] {
  margin-inline-start: auto;
  font-size: 0.9rem;
}

/* ---------- deep search bottom sheet ------------------------------------- */
.deep-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.deep-search-sheet.open {
  display: flex;
}
.deep-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.deep-search-sheet.open .deep-search-backdrop {
  opacity: 1;
}
.deep-search-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.deep-search-sheet.open .deep-search-panel {
  transform: translateY(0);
}
.deep-search-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}
.deep-search-handle span {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
}
.deep-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 12px;
}
.deep-search-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a1a;
}
.deep-search-clear {
  background: none;
  border: none;
  color: var(--orange, #FF6B2B);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.deep-search-clear:hover {
  background: rgba(255, 107, 43, 0.1);
}
.deep-search-body {
  padding: 0 20px 8px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: 55vh;
}
.deep-tag-section {
  margin-bottom: 6px;
}
.deep-tag-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background: #f7f7f7;
  color: #333;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.deep-tag-header:hover {
  border-color: rgba(255, 107, 43, 0.4);
}
.deep-tag-header.on {
  background: rgba(255, 107, 43, 0.1);
  border-color: var(--orange, #FF6B2B);
  color: #d45500;
}
.deep-tag-check {
  font-size: 0.75rem;
  width: 16px;
  text-align: center;
  color: var(--orange, #FF6B2B);
  flex-shrink: 0;
}
.deep-tag-icon {
  font-size: 1rem;
  flex-shrink: 0;
}
.deep-tag-label {
  flex: 1;
  text-align: start;
}
.deep-tag-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #999;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 1px 7px;
  flex-shrink: 0;
}
.deep-tag-header.on .deep-tag-count {
  background: rgba(255, 107, 43, 0.15);
  color: #d45500;
}
.deep-tag-games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 8px 2px 32px;
}
.deep-tag-game {
  font-size: 0.72rem;
  color: #777;
  background: rgba(0,0,0,0.03);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.deep-search-foot {
  padding: 8px 20px 20px;
  display: flex;
  justify-content: center;
}
.deep-search-apply {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(140deg, #FF6B2B, #F4571E);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}
.deep-search-apply:active {
  transform: scale(0.97);
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.dark .deep-search-panel {
  background: #1c1c1e;
  border-color: rgba(255, 255, 255, 0.1);
}
html.dark .deep-search-handle span {
  background: rgba(255, 255, 255, 0.15);
}
html.dark .deep-search-head h3 {
  color: #f0f0f0;
}
html.dark .deep-tag-header {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #aaa;
}
html.dark .deep-tag-header.on {
  background: rgba(255, 107, 43, 0.2);
  border-color: var(--orange, #FF6B2B);
  color: #ffaa77;
}
html.dark .deep-tag-count {
  background: rgba(255, 255, 255, 0.08);
  color: #888;
}
html.dark .deep-tag-header.on .deep-tag-count {
  background: rgba(255, 107, 43, 0.2);
  color: #ffaa77;
}
html.dark .deep-tag-game {
  background: rgba(255, 255, 255, 0.06);
  color: #888;
}

/* ---------- game tiles -------------------------------------------------- */
/* .summary-card / h3 / p / data-tags are retained: the search filter reads them */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 520px) {
  .summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (min-width: 820px) {
  .summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
}

/* horizontal rail variant */
.bbx-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 104px;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bbx-rail::-webkit-scrollbar {
  display: none;
}
.bbx-rail > * {
  scroll-snap-align: start;
}
@media (min-width: 520px) {
  .bbx-rail {
    grid-auto-columns: 124px;
  }
}

.summary-card,
.summary-card[class*='color-'] {
  position: relative;
  display: flex;
  flex-direction: column;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
  cursor: pointer;
  color: #fff !important;
  transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.summary-card::after,
.summary-card[class*='color-']::after {
  display: none !important;
}
.summary-card.hidden {
  display: none !important;
} /* keeps live search working */

/* the artwork panel */
.summary-card > strong,
.summary-card[class*='color-'] > strong {
  position: relative;
  overflow: hidden;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/1;
  margin: 0 0 7px !important;
  border-radius: 15px !important;
  display: grid;
  place-items: center;
  font-size: 2.15rem !important;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    box-shadow 0.26s,
    border-color 0.26s;
}
/* glass sheen across the artwork, like the reference tiles */
.summary-card > strong::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    158deg,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.05) 38%,
    transparent 60%
  );
  pointer-events: none;
}
.summary-card > strong::after {
  content: '';
  position: absolute;
  inset-inline-start: -38%;
  top: -58%;
  width: 52%;
  height: 210%;
  transform: rotate(22deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
  transition: inset-inline-start 0.55s ease;
  pointer-events: none;
}
.summary-card:hover {
  transform: translateY(-5px);
}
.summary-card:hover > strong {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.6),
    0 0 24px rgba(139, 92, 246, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.summary-card:hover > strong::after {
  inset-inline-start: 120%;
}
.summary-card:active {
  transform: translateY(-2px) scale(0.97);
}

.summary-card h3 {
  margin: 0 !important;
  font-size: 0.74rem !important;
  font-weight: 800;
  color: #fff !important;
  line-height: 1.28;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.summary-card p {
  margin: 2px 0 0 !important;
  font-size: 0.62rem !important;
  font-weight: 600;
  color: var(--text-secondary) !important;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 400px) {
  .summary-card p {
    display: none !important;
  }
}

/* favourite toggle sits on the artwork */
.summary-card [data-action='games-fav'] {
  position: absolute !important;
  top: 5px !important;
  z-index: 3;
  inset-inline-end: 5px;
  inset-inline-start: auto !important;
  left: auto !important;
  right: auto !important;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem !important;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
/* "hot" flag for the popular set */
.summary-card.game-pop > strong::before {
  content: 'HOT';
  position: absolute;
  inset-inline-start: 5px;
  top: 5px;
  width: auto;
  height: auto;
  inset-block-end: auto;
  inset-inline-end: auto;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 2px 6px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.6);
}

/* reward cube (Recently played) — 3D gift-cube look */
.summary-card.cube-reward {
  cursor: pointer;
  background: linear-gradient(160deg, #0ea5e9, #06b6d4 45%, #0d9488);
  border: 1px solid rgba(34, 211, 238, 0.5);
  box-shadow: 0 8px 22px rgba(6, 182, 212, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.summary-card.cube-reward:hover {
  transform: translateY(-3px) rotate(-2deg);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.55);
}
.summary-card.cube-reward > strong {
  background: linear-gradient(150deg, #f43f5e, #fb923c);
  animation: cube-bounce 2.4s ease-in-out infinite;
}
.summary-card.cube-reward h3 {
  color: #fff;
}
.summary-card.cube-reward p {
  color: rgba(255, 255, 255, 0.85);
}
.summary-card.cube-reward.on-cd > strong {
  animation: none;
  background: linear-gradient(150deg, #475569, #64748b);
}
@keyframes cube-bounce {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-5px) rotate(6deg); }
}

/* 20 artwork palettes — rich, saturated, readable on void black */
.summary-card.color-one > strong {
  background: linear-gradient(150deg, #7c3aed, #c026d3);
}
.summary-card.color-two > strong {
  background: linear-gradient(150deg, #2563eb, #22d3ee);
}
.summary-card.color-three > strong {
  background: linear-gradient(150deg, #059669, #84cc16);
}
.summary-card.color-four > strong {
  background: linear-gradient(150deg, #d97706, #fbbf24);
}
.summary-card.color-five > strong {
  background: linear-gradient(150deg, #db2777, #f472b6);
}
.summary-card.color-six > strong {
  background: linear-gradient(150deg, #4f46e5, #818cf8);
}
.summary-card.color-seven > strong {
  background: linear-gradient(150deg, #0891b2, #38bdf8);
}
.summary-card.color-eight > strong {
  background: linear-gradient(150deg, #b91c1c, #f97316);
}
.summary-card.color-nine > strong {
  background: linear-gradient(150deg, #7e22ce, #a78bfa);
}
.summary-card.color-ten > strong {
  background: linear-gradient(150deg, #0f766e, #2dd4bf);
}
.summary-card.color-eleven > strong {
  background: linear-gradient(150deg, #9333ea, #f0abfc);
}
.summary-card.color-twelve > strong {
  background: linear-gradient(150deg, #1d4ed8, #60a5fa);
}
.summary-card.color-thirteen > strong {
  background: linear-gradient(150deg, #c2410c, #fdba74);
}
.summary-card.color-fourteen > strong {
  background: linear-gradient(150deg, #15803d, #4ade80);
}
.summary-card.color-fifteen > strong {
  background: linear-gradient(150deg, #be123c, #fb7185);
}
.summary-card.color-sixteen > strong {
  background: linear-gradient(150deg, #6d28d9, #c4b5fd);
}
.summary-card.color-seventeen > strong {
  background: linear-gradient(150deg, #0369a1, #7dd3fc);
}
.summary-card.color-eighteen > strong {
  background: linear-gradient(150deg, #a16207, #fde047);
}
.summary-card.color-nineteen > strong {
  background: linear-gradient(150deg, #86198f, #e879f9);
}
.summary-card.color-nh > strong {
  background: linear-gradient(150deg, #166534, #65a30d);
}

.games-empty-msg {
  grid-column: 1/-1;
  text-align: center;
  padding: 34px 12px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 700;
}

.games-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  gap: 8px;
}
.games-subhead h2 {
  font-size: 1rem;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.games-clear {
  flex-shrink: 0;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: transparent;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s;
}
.games-clear:hover {
  color: #ff4d6d;
  border-color: rgba(255, 77, 109, 0.55);
  background: rgba(255, 77, 109, 0.08);
}

/* count + "show more" */
.bbx-count {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 16px 0 0;
}

/* ---------- bottom dock ------------------------------------------------- */
.bottom-nav {
  position: fixed !important;
  inset-inline: 0;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 950;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  left: 0 !important;
  right: 0 !important;
  transform: none !important;
  padding: 0 var(--bbx-gut);
}
.bottom-nav-wrap,
html.dark .bottom-nav-wrap {
  max-width: 612px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 0 !important;
  height: var(--bbx-dock);
  padding: 0 6px !important;
  border-radius: 24px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  -webkit-backdrop-filter: blur(28px) saturate(1.9) !important;
  backdrop-filter: blur(28px) saturate(1.9) !important;
  box-shadow:
    0 10px 30px rgba(60, 40, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}
.bnav-link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto !important;
  height: auto !important;
  padding: 8px 2px;
  border-radius: 14px;
  text-decoration: none;
  color: #ff9a5c !important;
  background: none !important;
  box-shadow: none !important;
  transition:
    color 0.2s,
    transform 0.18s;
}
.bnav-link svg {
  width: 21px;
  height: 21px;
}
.bnav-link span.t {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.bnav-link:hover {
  color: #ff6b2b !important;
  transform: none !important;
}
.bnav-link.active {
  color: #ff6b2b !important;
  background: rgba(var(--orange-rgb), 0.12) !important;
}
.bnav-link.active svg {
  filter: drop-shadow(0 0 8px rgba(var(--orange-rgb), 0.55));
  color: #ff6b2b;
}

/* raised centre action */
.bnav-center {
  position: relative !important;
  top: -16px !important;
  left: auto !important;
  transform: none !important;
  justify-self: center;
  width: 56px !important;
  height: 56px !important;
  display: grid !important;
  place-items: center;
  border-radius: 20px !important;
  text-decoration: none;
  background: linear-gradient(145deg, #a855f7, #7c3aed) !important;
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 10px 26px rgba(139, 92, 246, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #fff;
  transition:
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
}
.bnav-center:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 34px rgba(139, 92, 246, 0.75) !important;
}
.bnav-center:active {
  transform: scale(0.94) !important;
}
.bnav-center svg {
  width: 25px;
  height: 25px;
}
.bnav-center .bnav-label,
.bnav-indicator {
  display: none !important;
}
.bnav-center .bnav-logo {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  object-fit: cover;
}

/* ---------- immersive game boards --------------------------------------- */
main
  .selina-page[style*='height:100dvh']:not([style*='min-height:100dvh']):not(
    [style*='max-height:100dvh']
  ) {
  height: calc(100dvh - var(--bbx-bar)) !important;
  background: transparent !important;
  max-width: none;
  padding: 0;
}
body:has(
  main
    .selina-page[style*='height:100dvh']:not([style*='min-height:100dvh']):not(
      [style*='max-height:100dvh']
    )
) {
  padding-bottom: 0 !important;
  overflow-y: auto;
}
@supports not selector(body:has(main)) {
  main .selina-page[style*='height:100dvh']:not([style*='min-height:100dvh']) {
    height: calc(100dvh - var(--bbx-bar) - var(--bbx-dock)) !important;
  }
}

/* ---------- in-game surfaces (all 48 games inherit these) --------------- */
.page-hero {
  padding: 16px 0 10px;
  text-align: start;
}
.page-hero h1 {
  font-size: clamp(1.4rem, 5.6vw, 1.95rem);
  font-weight: 900;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.page-hero .lead {
  color: var(--text-secondary);
  font-size: 0.86rem;
}
.eyebrow {
  color: var(--secondary-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-section,
.summary-panel,
.round-box,
.team-box,
.faq-item,
.os-file-card,
.challenge-card,
.story-section,
.question-editor,
.answer-box,
.question-text {
  background: var(--surface) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45) !important;
  color: #fff;
  padding: 16px;
}
.special-card {
  background: linear-gradient(
    155deg,
    rgba(139, 92, 246, 0.15),
    rgba(24, 24, 27, 0.94) 58%
  ) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 18px !important;
  color: #fff;
}
.scorebar,
html.dark .scorebar {
  background: var(--surface) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45) !important;
}
.team-score {
  color: var(--brand-primary);
}
.most-avatar-btn.sel {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: var(--glow-primary);
}

.btn-primary,
.start-button,
.wd-btn.again {
  background: linear-gradient(140deg, #8b5cf6, #7c3aed) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  min-height: 50px;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.45) !important;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
}
.btn-primary:hover,
.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6) !important;
}
.btn-primary:active,
.start-button:active {
  transform: scale(0.97);
}
.btn-ghost,
html.dark .btn-ghost,
.wd-btn {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--secondary-soft) !important;
  border: 1px solid rgba(139, 92, 246, 0.4) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}
.btn-ghost:hover,
.wd-btn:hover {
  background: rgba(139, 92, 246, 0.16) !important;
  color: #fff !important;
  border-color: var(--brand-primary) !important;
}
.btn-dark {
  background: var(--surface-2) !important;
  color: #fff !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 14px !important;
}
.btn-danger {
  background: var(--red) !important;
  color: #fff !important;
  border-radius: 14px !important;
}
button:disabled {
  opacity: 0.4 !important;
  box-shadow: none !important;
}
.icon-btn,
.social-btn,
.sound-toggle,
.theme-toggle {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--stroke) !important;
  color: #fff !important;
  border-radius: 12px !important;
}
.pill-btn,
.assist-pill,
.player-tag,
.assist-team {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--stroke) !important;
  color: #fff !important;
  border-radius: 999px !important;
}
.pill-btn.active {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #fff !important;
}
.pill-btn.sel {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}
.question-button:not(.used),
html.dark .question-button:not(.used) {
  background: var(--surface) !important;
  color: var(--secondary-soft) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
}
.question-button.used,
html.dark .question-button.used {
  background: var(--surface-2) !important;
  color: var(--text-disabled) !important;
}

input,
select,
textarea,
html.dark input,
html.dark select,
html.dark textarea,
.form-input,
.editor-textarea,
.theme-select,
.cw-input,
.setup-strip > label input,
.setup-strip > label select {
  background: var(--surface) !important;
  color: #fff !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 12px !important;
  min-height: 46px;
  padding: 10px 14px;
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: var(--text-disabled) !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand-primary) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important;
}
select option {
  background: #18181b;
  color: #fff;
}
input[type='checkbox'],
input[type='radio'] {
  accent-color: var(--brand-primary);
  min-height: 0;
  width: auto;
  padding: 0;
}
input[type='range'] {
  accent-color: var(--brand-primary);
  border: none !important;
  background: transparent !important;
}
input[type='color'] {
  padding: 2px;
  min-height: 42px;
}

.modal,
.settings-overlay,
.wd-modal-overlay {
  background: rgba(4, 4, 6, 0.84) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal-card,
html.dark .modal-card,
.settings-panel,
.wd-modal {
  background: var(--surface) !important;
  color: #fff !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 22px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8) !important;
}
.question-timer,
html.dark .question-timer {
  background: rgba(139, 92, 246, 0.16) !important;
  color: var(--secondary-soft) !important;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.4) !important;
}
.timer-track,
html.dark .timer-track {
  background: var(--surface-2) !important;
}
.timer-fill {
  background: linear-gradient(90deg, #22c55e, #fbbf24, #8b5cf6) !important;
}
.difficulty-badge.easy,
html.dark .difficulty-badge.easy {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #6ee7b7 !important;
}
.difficulty-badge.normal,
html.dark .difficulty-badge.normal {
  background: rgba(139, 92, 246, 0.18) !important;
  color: var(--secondary-soft) !important;
}
.difficulty-badge.hard,
html.dark .difficulty-badge.hard {
  background: rgba(244, 63, 94, 0.16) !important;
  color: #fda4af !important;
}
.effect-banner {
  background: rgba(139, 92, 246, 0.12) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  color: var(--secondary-soft) !important;
  border-radius: 14px !important;
}
.hm-badge-hot,
.hm-badge-new,
.games-badge,
.pack-badge,
.selected-badge {
  background: linear-gradient(135deg, #8b5cf6, #a78bfa) !important;
  color: #fff !important;
  border: none !important;
}
.product-card {
  background: var(--surface) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: 16px !important;
  color: #fff !important;
}
.product-card.selected,
html.dark .product-card.selected {
  border-color: var(--brand-primary) !important;
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.24), rgba(24, 24, 27, 0.95)) !important;
}
.product-art {
  background: linear-gradient(
    145deg,
    rgba(139, 92, 246, 0.28),
    rgba(139, 92, 246, 0.08)
  ) !important;
  border-radius: 14px !important;
}

.site-footer {
  background: rgba(12, 12, 15, 0.92) !important;
  border-top: 1px solid var(--stroke) !important;
  color: var(--text-secondary);
}
.social-link {
  background: var(--brand-primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
}
.closing-logo-text,
.hm-closing-brand,
.brand-text,
.hero-brand-text {
  background: linear-gradient(135deg, #8b5cf6, #c4b5fd, #ddd6fe) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

a:focus-visible,
button:focus-visible,
[data-action]:focus-visible,
[data-route]:focus-visible {
  outline: 2px solid var(--secondary-soft);
  outline-offset: 2px;
  border-radius: 10px;
}
::selection {
  background: rgba(139, 92, 246, 0.42);
  color: #fff;
}
* {
  scrollbar-color: rgba(139, 92, 246, 0.5) transparent;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.5);
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* App entry animations keep playing even when the OS disables motion. */
  .bbx-top,
  .bbx-banner,
  .bbx-banner h3,
  .bbx-banner p,
  .bbx-banner-cta,
  .bbx-head,
  .bbx-chip,
  .summary-card,
  .bbx-count {
    animation-duration: 0.55s !important;
  }
  .bbx-top {
    animation-duration: 0.5s !important;
  }
  .bbx-banner {
    animation-duration: 0.7s !important;
  }
  .bbx-banner h3,
  .bbx-banner p,
  .bbx-banner-cta {
    animation-duration: 0.6s !important;
  }
  .bbx-chip {
    animation-duration: 0.45s !important;
  }
  .bbx-count {
    animation-duration: 0.5s !important;
  }
  .bbx-banner-art .sloom-body {
    animation: sloomBody 2.2s ease-in-out infinite !important;
  }
  .bbx-banner-art .sloom-arm {
    animation: sloomWave 1.1s ease-in-out infinite !important;
  }
  .bbx-banner-art .sloom-tufts {
    animation: sloomTuft 1.2s ease-in-out infinite !important;
  }
  /* Chosen motions keep playing even when the OS disables motion. */
  .bbx-banner-art[data-motion='wave'] .sloom-arm { animation: sloomWaveBig 0.85s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='wave'] .sloom-body { animation: sloomBodyBig 0.85s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='wave'] .sloom-tufts { animation: sloomWaveTuft 0.85s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='wave'] .sloom-arm-r { animation: sloomWaveArmR 0.85s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='hop'] .sloom-body { animation: sloomHop 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite !important; }
  .bbx-banner-art[data-motion='hop'] .sloom-tufts { animation: sloomHopTuft 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite !important; }
  .bbx-banner-art[data-motion='hop'] .sloom-arm { animation: sloomHopArm 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite !important; }
  .bbx-banner-art[data-motion='hop'] .sloom-arm-r { animation: sloomHopArmR 0.95s cubic-bezier(0.4, 0, 0.2, 1) infinite !important; }
  .bbx-banner-art[data-motion='party'] .sloom-body { animation: sloomParty 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite !important; }
  .bbx-banner-art[data-motion='party'] .sloom-arm { animation: sloomPartyArm 0.8s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='party'] .sloom-arm-r { animation: sloomPartyArmR 0.8s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='party'] .sloom-tufts { animation: sloomPartyTuft 0.8s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='think'] .sloom-body { animation: sloomThink 3s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='think'] .sloom-tufts { animation: sloomThinkTuft 3s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='think'] .sloom-arm { animation: none !important; }
  .bbx-banner-art[data-motion='think'] .sloom-arm-r { animation: sloomThinkArmR 3s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='sus'] .sloom-body { animation: sloomSus 2.6s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='sus'] .sloom-tufts { animation: sloomSusTuft 2.6s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='sus'] .sloom-arm-r { animation: sloomSusArmR 2.6s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='pass'] .sloom-arm-r { animation: sloomPassArm 1.6s ease-in-out infinite !important; }
  .bbx-banner-art[data-motion='pass'] .sloom-body { animation: sloomPassBody 1.6s ease-in-out infinite !important; }
  .summary-card:hover {
    transform: none;
  }
}

/* ============================================================================
     FITNESS ORANGE & WHITE THEME — chrome re-tint + home screen
     ============================================================================ */

/* warm white page glow */
body::before {
  background:
    radial-gradient(60% 42% at 82% -8%, rgba(var(--orange-rgb), 0.13), transparent 62%),
    radial-gradient(48% 34% at 6% 12%, rgba(255, 122, 61, 0.09), transparent 66%),
    radial-gradient(70% 44% at 50% 106%, rgba(var(--orange-rgb), 0.07), transparent 70%);
}
html.dark body::before {
  background:
    radial-gradient(60% 42% at 82% -8%, rgba(var(--orange-rgb), 0.22), transparent 62%),
    radial-gradient(48% 34% at 6% 12%, rgba(255, 122, 61, 0.14), transparent 66%),
    radial-gradient(70% 44% at 50% 106%, rgba(var(--orange-rgb), 0.12), transparent 70%);
}

/* ---------- top app bar: white glass ---------- */
.bbx-top {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(var(--orange-rgb), 0.16);
}
html.dark .bbx-top {
  background: rgba(14, 13, 12, 0.78);
  border-bottom-color: var(--stroke);
}
.bbx-wallet {
  background: rgba(var(--orange-rgb), 0.08);
  border: 1px solid rgba(var(--orange-rgb), 0.22);
  color: var(--ink);
}
.bbx-wallet:hover {
  border-color: rgba(var(--orange-rgb), 0.6);
  box-shadow: var(--glow-primary);
}
.bbx-wallet .plus {
  background: linear-gradient(145deg, var(--orange-light), var(--orange));
  box-shadow: 0 2px 10px rgba(var(--orange-rgb), 0.55);
}
.bbx-wallet-diamond {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.22);
}
.bbx-wallet-diamond:hover {
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}
.bbx-wallet-diamond .plus {
  background: linear-gradient(145deg, #22d3ee, #0284c7);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.6);
}
.bbx-ava {
  background: linear-gradient(145deg, var(--orange), var(--orange-light));
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.16);
}

/* ---------- headings / chips / search ---------- */
.bbx-head h2 {
  color: var(--ink);
}
.bbx-head .live {
  background: rgba(var(--orange-rgb), 0.08);
  border: 1px solid rgba(var(--orange-rgb), 0.22);
  color: var(--muted);
}
.bbx-more {
  background: rgba(var(--orange-rgb), 0.08);
  border: 1px solid rgba(var(--orange-rgb), 0.22);
  color: var(--muted);
}
.bbx-more:hover {
  color: #fff;
  background: linear-gradient(140deg, var(--orange), var(--orange-dark));
  border-color: transparent;
}
.bbx-chip {
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.bbx-chip:hover {
  color: var(--orange);
  border-color: rgba(var(--orange-rgb), 0.45);
  background: #fff4ee;
}
.bbx-chip.on {
  background: linear-gradient(140deg, var(--orange), var(--orange-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(var(--orange-rgb), 0.4);
}
.bbx-dots i.on {
  background: var(--orange);
  box-shadow: var(--glow-primary);
}
.bbx-search input {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: var(--stroke) !important;
}
.bbx-search input::placeholder {
  color: var(--text-disabled);
}
.bbx-search input:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.22) !important;
}
.bbx-search .layout {
  background: rgba(var(--orange-rgb), 0.06);
  border: 1px solid var(--stroke);
  color: var(--muted);
}
.bbx-search .layout:hover {
  color: #fff;
  background: linear-gradient(140deg, var(--orange), var(--orange-dark));
  border-color: transparent;
}
html.dark .bbx-search input {
  background: var(--surface) !important;
  color: #fff !important;
  border-color: var(--stroke) !important;
}

/* ---------- promo banner: orange gradient ---------- */
.bbx-banner {
  background: linear-gradient(
    125deg,
    var(--orange-dark) 0%,
    var(--orange) 46%,
    var(--orange-light) 100%
  );
  box-shadow:
    0 16px 40px rgba(var(--orange-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---------- game tiles: dark font on white ---------- */
@keyframes gridSwapOut {
  to { opacity: 0; transform: translateX(-24px); }
}
@keyframes gridSwapIn {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}
.summary-grid.grid-swap-out {
  animation: gridSwapOut 0.15s ease forwards;
}
.summary-grid.grid-swap-in {
  animation: gridSwapIn 0.25s ease both;
}
.summary-card,
.summary-card[class*='color-'] {
  color: var(--ink) !important;
}
.summary-card h3 {
  color: var(--ink) !important;
}
.summary-card p {
  color: var(--muted) !important;
}
.summary-card > strong {
  border: 1px solid rgba(28, 25, 23, 0.06);
  box-shadow:
    0 8px 22px rgba(var(--orange-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.summary-card:hover > strong {
  border-color: rgba(var(--orange-rgb), 0.35);
  box-shadow:
    0 14px 34px rgba(var(--orange-rgb), 0.25),
    0 0 24px rgba(var(--orange-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- bottom dock: white glass + orange accents ---------- */
.bottom-nav-wrap {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(var(--orange-rgb), 0.16);
  box-shadow:
    0 4px 24px rgba(var(--orange-rgb), 0.18),
    0 0 0 1px rgba(var(--orange-rgb), 0.1);
}
.bnav-link {
  color: rgba(28, 25, 23, 0.5);
}
.bnav-link:hover {
  color: var(--orange);
}
.bnav-link.active {
  color: var(--orange);
  background: rgba(var(--orange-rgb), 0.12);
  box-shadow: inset 0 0 12px rgba(var(--orange-rgb), 0.18);
}
.bnav-locked {
  opacity: 0.45;
  position: relative;
}
.bnav-locked:hover {
  opacity: 0.7;
}
.bnav-center {
  background: linear-gradient(145deg, var(--orange), var(--orange-light)) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 10px 26px rgba(var(--orange-rgb), 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}
.bnav-center:hover {
  box-shadow: 0 16px 34px rgba(var(--orange-rgb), 0.7) !important;
}
html.dark .bottom-nav-wrap {
  background: rgba(18, 17, 16, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
html.dark .bnav-link {
  color: var(--orange-light) !important;
}
html.dark .bnav-link:hover,
html.dark .bnav-link.active {
  color: var(--orange) !important;
}

/* ---------- focus / selection / scrollbars ---------- */
a:focus-visible,
button:focus-visible,
[data-action]:focus-visible,
[data-route]:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
::selection {
  background: rgba(var(--orange-rgb), 0.42);
  color: #fff;
}
* {
  scrollbar-color: rgba(var(--orange-rgb), 0.5) transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(var(--orange-rgb), 0.5);
}

/* ---------- buttons use the orange brand ---------- */
.btn-primary,
.start-button,
.wd-btn.again {
  background: linear-gradient(135deg, var(--orange), var(--orange-light)) !important;
  border-color: rgba(var(--orange-rgb), 0.4) !important;
  box-shadow: 0 8px 22px rgba(var(--orange-rgb), 0.35) !important;
  color: #fff !important;
}
.btn-primary:hover,
.start-button:hover,
.wd-btn.again:hover {
  box-shadow: 0 12px 30px rgba(var(--orange-rgb), 0.5) !important;
}

/* ---------- light mode legibility: dark ink on white surfaces ---------- */
html:not(.dark) .theme-section,
html:not(.dark) .summary-panel,
html:not(.dark) .round-box,
html:not(.dark) .team-box,
html:not(.dark) .faq-item,
html:not(.dark) .os-file-card,
html:not(.dark) .challenge-card,
html:not(.dark) .story-section,
html:not(.dark) .question-editor,
html:not(.dark) .answer-box,
html:not(.dark) .question-text {
  color: var(--ink) !important;
}
html:not(.dark) .special-card {
  background: linear-gradient(
    155deg,
    rgba(var(--orange-rgb), 0.1),
    rgba(255, 255, 255, 0.98) 58%
  ) !important;
  color: var(--ink) !important;
}
html:not(.dark) .scorebar {
  color: var(--ink) !important;
}
html:not(.dark) .btn-ghost,
html:not(.dark) .wd-btn {
  background: rgba(var(--orange-rgb), 0.07) !important;
  color: var(--ink) !important;
  border-color: rgba(var(--orange-rgb), 0.32) !important;
}
html:not(.dark) .icon-btn,
html:not(.dark) .social-btn,
html:not(.dark) .sound-toggle,
html:not(.dark) .theme-toggle {
  background: rgba(var(--orange-rgb), 0.06) !important;
  color: var(--ink) !important;
  border-color: rgba(var(--orange-rgb), 0.22) !important;
}
html:not(.dark) .pill-btn,
html:not(.dark) .assist-pill,
html:not(.dark) .player-tag,
html:not(.dark) .assist-team {
  background: rgba(var(--orange-rgb), 0.06) !important;
  color: var(--ink) !important;
  border-color: rgba(var(--orange-rgb), 0.2) !important;
}
html:not(.dark) .pill-btn.sel {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}
html:not(.dark) input,
html:not(.dark) select,
html:not(.dark) textarea,
html:not(.dark) .form-input,
html:not(.dark) .editor-textarea,
html:not(.dark) .theme-select,
html:not(.dark) .cw-input,
html:not(.dark) .setup-strip > label input,
html:not(.dark) .setup-strip > label select {
  background: #fff !important;
  color: var(--ink) !important;
}
html:not(.dark) .modal-card,
html:not(.dark) .settings-panel,
html:not(.dark) .wd-modal {
  color: var(--ink) !important;
}
html:not(.dark) .product-card {
  color: var(--ink) !important;
}
html:not(.dark) .product-card.selected {
  background: #fff4ee !important;
  border-color: var(--orange) !important;
}
html:not(.dark) .question-button:not(.used) {
  background: #fff !important;
  color: var(--ink) !important;
  border-color: rgba(var(--orange-rgb), 0.3) !important;
}
html:not(.dark) .question-timer {
  background: rgba(var(--orange-rgb), 0.1) !important;
  color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--orange-rgb), 0.3) !important;
}
html:not(.dark) .effect-banner {
  background: rgba(var(--orange-rgb), 0.08) !important;
  border-color: rgba(var(--orange-rgb), 0.3) !important;
  color: var(--ink) !important;
}
html:not(.dark) .eyebrow {
  color: var(--orange) !important;
}

/* ---------- motion: fade-up entry, float, glow ---------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bbxFadeDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes bbxFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
80% {
  transform: translate(-8px, 8px) rotate(-8deg);
}
@keyframes bbxBannerGlow {
  0%,
  100% {
    box-shadow:
      0 16px 40px rgba(var(--orange-rgb), 0.35),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  50% {
    box-shadow:
      0 18px 52px rgba(var(--orange-rgb), 0.5),
      0 0 30px rgba(var(--orange-rgb), 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}
.bbx-top {
  animation: bbxFadeDown 0.5s cubic-bezier(0.22, 0.9, 0.36, 1) backwards;
}
.bbx-banner {
  animation:
    fadeUp 0.7s cubic-bezier(0.22, 0.9, 0.36, 1) 0.08s backwards,
    bbxBannerGlow 3.6s ease-in-out 1.1s infinite;
}
.bbx-banner h3 {
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.9, 0.36, 1) 0.2s backwards;
}
.bbx-banner p {
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.9, 0.36, 1) 0.28s backwards;
}
.bbx-banner-cta {
  animation: fadeUp 0.6s cubic-bezier(0.22, 0.9, 0.36, 1) 0.36s backwards;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s;
}
.bbx-banner-cta:hover {
  transform: translateY(-3px) scale(1.04);
}
.bbx-head {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) backwards;
}
.bbx-chip {
  animation: fadeUp 0.45s cubic-bezier(0.22, 0.9, 0.36, 1) backwards;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bbx-chip:hover {
  transform: translateY(-2px);
}
.bbx-chip:nth-child(1) {
  animation-delay: 0.14s;
}
.bbx-chip:nth-child(2) {
  animation-delay: 0.19s;
}
.bbx-chip:nth-child(3) {
  animation-delay: 0.24s;
}
.bbx-chip:nth-child(4) {
  animation-delay: 0.29s;
}
.bbx-chip:nth-child(5) {
  animation-delay: 0.34s;
}
.summary-card {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) backwards;
}
.summary-card:nth-child(1) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.1s backwards;
}
.summary-card:nth-child(2) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.16s backwards;
}
.summary-card:nth-child(3) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.22s backwards;
}
.summary-card:nth-child(4) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.28s backwards;
}
.summary-card:nth-child(5) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.34s backwards;
}
.summary-card:nth-child(6) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.4s backwards;
}
.summary-card:nth-child(7) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.46s backwards;
}
.summary-card:nth-child(8) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.52s backwards;
}
.summary-card:nth-child(9) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.58s backwards;
}
.summary-card:nth-child(10) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.64s backwards;
}
.summary-card:nth-child(11) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.7s backwards;
}
.summary-card:nth-child(12) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.76s backwards;
}
.summary-card:nth-child(13) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.82s backwards;
}
.summary-card:nth-child(14) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.88s backwards;
}
.summary-card:nth-child(15) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 0.94s backwards;
}
.summary-card:nth-child(16) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1s backwards;
}
.summary-card:nth-child(17) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.06s backwards;
}
.summary-card:nth-child(18) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.12s backwards;
}
.summary-card:nth-child(19) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.18s backwards;
}
.summary-card:nth-child(20) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.24s backwards;
}
.summary-card:nth-child(21) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.3s backwards;
}
.summary-card:nth-child(22) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.36s backwards;
}
.summary-card:nth-child(23) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.42s backwards;
}
.summary-card:nth-child(24) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.48s backwards;
}
.summary-card:nth-child(25) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.54s backwards;
}
.summary-card:nth-child(26) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.6s backwards;
}
.summary-card:nth-child(27) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.66s backwards;
}
.summary-card:nth-child(28) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.72s backwards;
}
.summary-card:nth-child(29) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.78s backwards;
}
.summary-card:nth-child(30) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.84s backwards;
}
.summary-card:nth-child(31) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.9s backwards;
}
.summary-card:nth-child(32) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 1.96s backwards;
}
.summary-card:nth-child(33) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.02s backwards;
}
.summary-card:nth-child(34) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.08s backwards;
}
.summary-card:nth-child(35) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.14s backwards;
}
.summary-card:nth-child(36) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.2s backwards;
}
.summary-card:nth-child(37) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.26s backwards;
}
.summary-card:nth-child(38) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.32s backwards;
}
.summary-card:nth-child(39) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.38s backwards;
}
.summary-card:nth-child(40) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.44s backwards;
}
.summary-card:nth-child(41) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.5s backwards;
}
.summary-card:nth-child(42) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.56s backwards;
}
.summary-card:nth-child(43) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.62s backwards;
}
.summary-card:nth-child(44) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.68s backwards;
}
.summary-card:nth-child(45) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.74s backwards;
}
.summary-card:nth-child(46) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.8s backwards;
}
.summary-card:nth-child(47) {
  animation: fadeUp 0.55s cubic-bezier(0.22, 0.9, 0.36, 1) 2.86s backwards;
}
.summary-card > strong {
  transition:
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.25s ease;
}
.summary-card:hover > strong {
  transform: scale(1.12) rotate(-4deg);
}
.bbx-count {
  animation: fadeUp 0.5s cubic-bezier(0.22, 0.9, 0.36, 1) 0.7s backwards;
}

/* ============================================================================

  /* ── Stop Now: four corner buttons ── */
.sn-buzz-btn {
  z-index: 1000;
}
.sn-buzz-btn[data-cnr='0'],
.sn-buzz-btn[data-cnr='1'] {
  top: calc(var(--bbx-bar) + env(safe-area-inset-top, 0px) + 12px);
}
.sn-buzz-btn[data-cnr='2'],
.sn-buzz-btn[data-cnr='3'] {
  bottom: 16px;
}
@media (max-width: 820px) {
  .sn-buzz-btn[data-cnr='2'],
  .sn-buzz-btn[data-cnr='3'] {
    bottom: 132px;
  }
}
@media (min-width: 821px) {
  .sn-buzz-btn[data-cnr='0'],
  .sn-buzz-btn[data-cnr='1'] {
    top: calc(var(--bbx-bar) + env(safe-area-inset-top, 0px) + 28px);
  }
  .sn-buzz-btn[data-cnr='2'],
  .sn-buzz-btn[data-cnr='3'] {
    bottom: 16px;
  }
}

/* ===== Button press & selection feedback ===== */
.btn-primary:active,
.btn-dark:active {
  filter: brightness(0.88);
}
.btn-ghost:active {
  background: rgba(var(--orange-rgb), 0.14);
  border-color: var(--orange);
  color: var(--orange);
}
.btn-danger:active {
  background: #b91c1c;
}
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-dark:focus-visible,
.btn-danger:focus-visible {
  outline: 3px solid rgba(var(--orange-rgb), 0.5);
  outline-offset: 2px;
}
.pill-btn:active {
  transform: scale(0.94);
}
.bbx-chip:active {
  transform: scale(0.95);
}

/* ===== Statistics + Leaderboard ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}
.stat-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-card .st-ico {
  font-size: 1.6rem;
  line-height: 1;
}
.stat-card .st-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.15;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--orange), #ff8c5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card .st-label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 700;
  margin-top: 4px;
}
.stat-card .st-sub {
  display: block;
  font-size: .72rem;
  color: var(--muted);
  margin-top: 2px;
}
.stat-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--soft);
  overflow: hidden;
  margin-top: 12px;
}
.stat-progress > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), #ff8c5a);
  transition: width .5s ease;
}
.stat-card.stat-card-hero {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: start;
  padding: 20px 22px;
  background:
    radial-gradient(120% 180% at 100% 0%, rgba(255, 140, 90, .1), transparent 60%),
    var(--surface);
}
.stat-card-hero .st-ring {
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--orange) var(--pct), var(--soft) 0);
}
.stat-card-hero .st-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--surface);
}
.stat-card-hero .st-ring-num {
  position: relative;
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--orange), #ff8c5a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card-hero .st-ring-total {
  position: relative;
  display: block;
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-top: 2px;
}
.stat-card-hero .st-hero-txt {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.stat-card-hero .st-label {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 800;
}
.stat-card-hero .st-sub {
  margin: 0;
  font-size: .82rem;
}
.stats-games-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}
.stats-game-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 700;
}
.stats-game-row .sg-ic {
  font-size: 1.15rem;
}
.stats-game-row .sg-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-game-row .sg-count {
  flex-shrink: 0;
  font-size: .75rem;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  padding: 2px 10px;
}
.rank-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 16px;
}
.rank-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: .95rem;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.rank-row:last-child {
  border-bottom: none;
}
.rank-row .rk-num {
  width: 34px;
  flex-shrink: 0;
  text-align: center;
  font-weight: 900;
  font-size: .95rem;
  color: var(--muted);
}
.rank-row.rk-top1 .rk-num,
.rank-row.rk-top2 .rk-num,
.rank-row.rk-top3 .rk-num {
  font-size: 1.15rem;
}
.rank-row .rk-ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.rank-row .rk-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
  font-size: .9rem;
}
.rank-row .rk-pts {
  flex-shrink: 0;
  font-weight: 900;
  font-size: .9rem;
  color: var(--orange);
}
.rank-row.rk-you {
  background: linear-gradient(135deg, rgba(255, 107, 43, 0.12), rgba(255, 140, 90, 0.06));
  border-left: 4px solid var(--orange);
  border-right: 4px solid var(--orange);
}
.rank-row.rk-you .rk-ava {
  background: var(--orange);
  color: #fff;
}
.rank-note {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  padding: 10px 16px 14px;
}
.rank-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ── Apple-inspired Profile ── */
.prof-hero {
  text-align: center;
  padding: 8px 0 20px;
}
.prof-avatar-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(145deg, var(--orange), #ff8c5a);
  padding: 4px;
  box-shadow: 0 8px 28px rgba(var(--orange-rgb, 255,107,43), 0.25);
}
.prof-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.prof-avatar-inner .bbx-banner-art {
  position: relative;
  inset: auto;
  width: 90%;
  height: 90%;
}
.prof-avatar-inner .bbx-banner-art svg {
  width: 100%;
  height: 100%;
}
.prof-photo-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg, #1a1a2e);
  background: var(--orange, #FF6B2B);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}
.prof-photo-btn:active { transform: scale(0.9); }
.prof-avatar-ring { position: relative; }
.prof-name {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.prof-handle {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 14px;
}
.prof-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.prof-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .88rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}
.prof-pill-ico {
  font-size: 1rem;
}

.prof-section {
  margin: 0 0 22px;
}
.prof-section-title {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 4px 10px;
}
.prof-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.prof-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
}
.prof-stat-ico {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.prof-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
}
.prof-stat-label {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}
.prof-stat-sub {
  font-size: .68rem;
  color: var(--muted);
  margin-top: 2px;
}

.prof-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.prof-group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  transition: background .12s;
}
.prof-group-row:last-child {
  border-bottom: none;
}
.prof-group-row:active {
  background: var(--soft);
}
.prof-group-ico {
  font-size: 1.15rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--soft);
  flex-shrink: 0;
}
.prof-group-name {
  flex: 1;
  font-weight: 700;
  font-size: .9rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.prof-group-count {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
}
.prof-group-arrow {
  color: var(--muted);
  font-size: .75rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.prof-action-row {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  padding-bottom: 100px;
}
.prof-action-row a {
  flex: 1;
  text-align: center;
}

/* ── Friends Page ── */
.friends-search-wrap {
  position: relative;
  padding: 0 16px 12px;
}
.friends-search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: border-color .2s, box-shadow .2s;
}
.friends-search-bar:focus-within {
  border-color: var(--orange);
  box-shadow: 0 2px 16px rgba(var(--orange-rgb), 0.12);
}
.friends-search-bar svg {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--muted);
}
.friends-search-bar input {
  flex: 1; border: none; background: none; outline: none;
  font-size: .9rem; color: var(--ink); font-weight: 500;
}
.friends-search-bar input::placeholder { color: var(--muted); opacity: .7; }
.friends-search-cancel {
  font-size: .82rem; font-weight: 700; color: var(--orange);
  background: none; border: none; cursor: pointer; padding: 4px 0;
  display: none;
}
.friends-search-bar:focus-within ~ .friends-search-cancel,
.friends-search-cancel.show { display: block; }

.friends-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  color: #fff; overflow: hidden; position: relative;
}
.friends-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friends-avatar-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
}

.friends-online-dot {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  border: 2.5px solid var(--surface);
  position: absolute; bottom: 0; right: 0;
}
.friends-online-dot.online { background: #22c55e; }
.friends-online-dot.offline { background: #9ca3af; }

.friends-request-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.friends-request-card:last-child { border-bottom: none; }
.friends-request-card:active { background: var(--soft); }
.friends-request-info { flex: 1; min-width: 0; }
.friends-request-name {
  font-weight: 700; font-size: .9rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.friends-request-time {
  font-size: .72rem; color: var(--muted); margin-top: 2px;
}
.friends-request-actions { display: flex; gap: 8px; flex-shrink: 0; }
.friends-request-actions .btn-primary {
  padding: 6px 14px; font-size: .75rem; border-radius: 10px; min-height: 32px;
}
.friends-request-actions .btn-ghost {
  padding: 6px 14px; font-size: .75rem; border-radius: 10px; min-height: 32px;
}

.friends-suggested-scroll {
  display: flex; gap: 12px; padding: 0 16px 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.friends-suggested-scroll::-webkit-scrollbar { display: none; }
.friends-suggested-card {
  flex-shrink: 0; width: 140px; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 12px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.friends-suggested-card:active { transform: scale(.97); }
.friends-suggested-card .friends-avatar {
  margin: 0 auto 10px; width: 52px; height: 52px;
}
.friends-suggested-card .friends-suggested-name {
  font-weight: 700; font-size: .82rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-bottom: 4px;
}
.friends-suggested-card .friends-suggested-pts {
  font-size: .7rem; color: var(--muted); margin-bottom: 10px;
}
.friends-suggested-card .btn-primary {
  width: 100%; padding: 6px 0; font-size: .75rem; border-radius: 10px; min-height: 32px;
}
.friends-suggested-card .btn-primary.sent {
  background: var(--soft); color: var(--muted); box-shadow: none;
}

.friends-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  transition: background .15s; cursor: pointer;
}
.friends-list-item:last-child { border-bottom: none; }
.friends-list-item:active { background: var(--soft); }
.friends-list-avatar-wrap { position: relative; flex-shrink: 0; }
.friends-list-info { flex: 1; min-width: 0; }
.friends-list-name {
  font-weight: 700; font-size: .9rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.friends-list-meta {
  font-size: .72rem; color: var(--muted); margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.friends-list-actions { display: flex; gap: 6px; flex-shrink: 0; }
.friends-list-actions .btn-ghost {
  padding: 6px 12px; font-size: .73rem; border-radius: 10px; min-height: 30px;
}

.friends-empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
}
.friends-empty-icon {
  font-size: 2.8rem; margin-bottom: 14px; opacity: .7;
}
.friends-empty-title {
  font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: 6px;
}
.friends-empty-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 18px;
}
.friends-empty .btn-primary {
  display: inline-flex; padding: 10px 24px; font-size: .85rem; border-radius: 12px;
}

.friends-skeleton-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
}
.friends-skeleton-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.friends-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.friends-skeleton-line {
  height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--soft) 25%, var(--line) 50%, var(--soft) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
}
.friends-skeleton-line:nth-child(1) { width: 55%; }
.friends-skeleton-line:nth-child(2) { width: 35%; }

.friends-profile-overlay {
  position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.friends-profile-overlay.show { opacity: 1; }
.friends-profile-sheet {
  width: 100%; max-width: 480px; max-height: 85vh; overflow-y: auto;
  background: var(--surface); border-radius: 28px 28px 0 0;
  padding: 12px 28px 40px; position: relative;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.32,.72,0,1);
}
.friends-profile-overlay.show .friends-profile-sheet { transform: translateY(0); }
.friends-profile-handle {
  width: 36px; height: 4px; border-radius: 2px; background: var(--line);
  margin: 0 auto 20px;
}
.friends-profile-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px;
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 800;
  color: #fff; overflow: hidden; position: relative;
  box-shadow: 0 8px 24px rgba(var(--orange-rgb), 0.2);
}
.friends-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.friends-profile-username {
  text-align: center; font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 4px;
}
.friends-profile-nickname {
  text-align: center; font-size: .82rem; color: var(--muted); margin-bottom: 20px;
}
.friends-profile-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px;
}
.friends-profile-stat {
  text-align: center; padding: 14px 8px; background: var(--soft);
  border-radius: 14px;
}
.friends-profile-stat-num {
  font-size: 1.2rem; font-weight: 800; color: var(--ink); line-height: 1.1;
}
.friends-profile-stat-label {
  font-size: .68rem; color: var(--muted); font-weight: 600; margin-top: 3px;
}
.friends-profile-actions {
  display: flex; gap: 10px;
}
.friends-profile-actions .btn-primary,
.friends-profile-actions .btn-ghost {
  flex: 1; min-height: 46px; border-radius: 14px; font-size: .88rem;
}
.friends-profile-remove {
  display: block; width: 100%; margin-top: 16px;
  padding: 12px; text-align: center; font-size: .82rem;
  font-weight: 700; color: #ef4444; background: none; border: none;
  cursor: pointer; border-radius: 12px; transition: background .15s;
}
.friends-profile-remove:active { background: rgba(239,68,68,0.08); }
.friends-profile-block {
  display: block; width: 100%; margin-top: 4px;
  padding: 10px; text-align: center; font-size: .78rem;
  font-weight: 600; color: var(--muted); background: none; border: 1px solid var(--border);
  cursor: pointer; border-radius: 10px; transition: all .15s;
}
.friends-profile-block:active { background: rgba(239,68,68,0.06); border-color: #ef4444; color: #ef4444; }
.friends-request-card--sent { opacity: .7; }
.friends-request-card--sent .btn-ghost { color: var(--muted); cursor: default; }
.friends-profile-mutual {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 4px;
  padding: 8px 12px; background: var(--soft); border-radius: 10px;
  font-size: .78rem; color: var(--muted);
}
.friends-mutual-avatars {
  display: flex; gap: 0;
}
.friends-mutual-avatars .friends-avatar {
  margin-inline-start: -8px; border: 2px solid var(--surface);
}
.friends-mutual-avatars .friends-avatar:first-child { margin-inline-start: 0; }
.friends-mutual-label { font-weight: 600; }

html.dark .friends-search-bar { background: var(--surface); }
html.dark .friends-suggested-card { background: var(--surface); }
html.dark .friends-profile-sheet { background: var(--surface); }
html.dark .friends-profile-stat { background: var(--soft); }

/* ── Friends page v2 (segmented tabs) ── */
.fp-tabs {
  display: flex; gap: 4px; margin-top: 8px;
  background: var(--soft); border-radius: 14px; padding: 4px;
}
.fp-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 6px; min-height: 44px; border: none; border-radius: 11px;
  background: transparent; color: var(--muted);
  font-weight: 700; font-size: .8rem; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
}
.fp-tab.active {
  background: var(--surface); color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
html.dark .fp-tab.active { box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.fp-pill {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: rgba(var(--orange-rgb,255,107,43), .12); color: var(--muted);
  font-size: .68rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.fp-pill.hot { background: #ef4444; color: #fff; }
.fp-hint { padding: 24px 16px; text-align: center; color: var(--muted); font-size: .85rem; }
.fp-error {
  margin: 16px; padding: 20px; border-radius: 16px; text-align: center;
  background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.15);
  font-size: .85rem; font-weight: 700; color: var(--ink);
}
.fp-error small { display: block; margin-top: 6px; color: var(--muted); font-weight: 500; }
.friends-request-card.busy { opacity: .5; pointer-events: none; }

/* ── Contacts from Phone ── */
.friends-contacts-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; font-size: .8rem; font-weight: 600; border-radius: 10px;
  border: 1.5px solid var(--orange); background: rgba(var(--orange-rgb),0.08);
  color: var(--orange); cursor: pointer; min-height: 36px;
  transition: background .15s, transform .12s;
}
.friends-contacts-btn:active { transform: scale(.96); }
.friends-contacts-btn[disabled] { opacity: .5; cursor: default; }
.friends-contacts-loading {
  display: flex; align-items: center; gap: 8px;
  padding: 16px; color: var(--muted); font-size: .85rem;
}
.friends-contacts-loading .spin {
  width: 16px; height: 16px; border: 2px solid var(--line);
  border-top-color: var(--orange); border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.friends-contact-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2, #f5f5f7); border: 1px solid var(--line);
  margin-bottom: 8px; transition: background .15s;
}
html.dark .friends-contact-card { background: var(--surface); }
.friends-contact-info { flex: 1; min-width: 0; }
.friends-contact-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.friends-contact-phone { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.friends-contact-card .btn-primary {
  flex-shrink: 0; padding: 6px 14px; font-size: .75rem; border-radius: 10px;
}
.friends-contact-card .btn-primary.sent {
  background: var(--soft); color: var(--muted); border-color: transparent;
}
.friends-contacts-empty {
  text-align: center; padding: 20px 16px; color: var(--muted); font-size: .85rem;
}
.friends-contacts-empty-icon { font-size: 2rem; margin-bottom: 8px; }

/* ── Barricade Online ── */
.bar-online-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: none; align-items: flex-end; justify-content: center; z-index: 200; padding: 0;
  opacity: 0; transition: opacity .25s ease;
}
.bar-online-overlay.show { opacity: 1; }
.bar-online-sheet {
  width: 100%; max-width: 500px; max-height: 85vh; background: var(--surface); border-radius: 24px 24px 0 0;
  padding: 16px 20px 32px; overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(100%); transition: transform .35s cubic-bezier(0.32,0.72,0,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.25);
}
.bar-online-overlay.show .bar-online-sheet { transform: translateY(0); }
.bar-online-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 16px; }
.bar-online-title { font-size: 1.1rem; font-weight: 800; text-align: center; margin-bottom: 16px; color: var(--ink); }
.bar-online-friend {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2, #f5f5f7); border: 1px solid var(--line);
  margin-bottom: 8px; cursor: pointer; transition: background .15s, border-color .15s;
}
.bar-online-friend:active { transform: scale(.98); }
.bar-online-friend.invited { border-color: var(--orange); background: rgba(var(--orange-rgb), 0.06); }
html.dark .bar-online-friend { background: var(--surface); }
.bar-online-friend-avatar {
  width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: var(--surface-2, #f0f0f2); border: 2px solid var(--line);
}
.bar-online-friend-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bar-online-friend-info { flex: 1; min-width: 0; }
.bar-online-friend-name { font-weight: 600; font-size: .9rem; color: var(--ink); }
.bar-online-friend-status { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.bar-online-invite-btn {
  padding: 6px 16px; border-radius: 10px; border: none; font-size: .8rem; font-weight: 700;
  background: var(--orange); color: #fff; cursor: pointer; flex-shrink: 0;
  transition: transform .12s, opacity .15s;
}
.bar-online-invite-btn:active { transform: scale(.95); }
.bar-online-invite-btn[disabled] { opacity: .45; cursor: default; }
.bar-online-invite-btn.sent { background: var(--soft, #f0f0f2); color: var(--muted); }
.bar-online-waiting {
  text-align: center; padding: 32px 16px;
}
.bar-online-waiting-icon { font-size: 3rem; margin-bottom: 12px; animation: barPulse 1.5s ease-in-out infinite; }
@keyframes barPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.bar-online-waiting-text { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.bar-online-waiting-sub { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.bar-online-code {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px;
  background: var(--surface-2, #f5f5f7); border: 1px solid var(--line); font-family: monospace;
  font-size: 1.1rem; font-weight: 700; letter-spacing: .15em; color: var(--orange); cursor: pointer;
}
.bar-online-code:active { transform: scale(.96); }
.bar-online-empty { text-align: center; padding: 24px 16px; color: var(--muted); font-size: .85rem; }
.bar-online-online-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.bar-online-online-dot.on { background: #22c55e; }
.bar-online-online-dot.off { background: #d1d5db; }

/* ── Room System ── */
.room-code-display {
  text-align: center; padding: 20px 16px 8px;
}
.room-code-label {
  font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 8px;
}
.room-code-value {
  font-size: 2.2rem; font-weight: 900; letter-spacing: .25em;
  color: var(--ink); font-family: 'SF Mono', 'Consolas', monospace;
  background: var(--soft); border-radius: 16px; padding: 14px 24px;
  display: inline-block; cursor: pointer; transition: transform .15s;
  user-select: all; -webkit-user-select: all;
}
.room-code-value:active { transform: scale(.96); }
.room-code-copy {
  font-size: .75rem; font-weight: 700; color: var(--orange);
  background: none; border: none; cursor: pointer; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
}
.room-code-copy:active { opacity: .6; }

.room-players-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 12px; padding: 16px;
}
.room-player-card {
  text-align: center; padding: 14px 8px; background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 16px;
  transition: border-color .2s, transform .2s;
}
.room-player-card.host { border-color: var(--orange); }
.room-player-card.ready { border-color: #22c55e; }
.room-player-card .friends-avatar { margin: 0 auto 8px; width: 48px; height: 48px; }
.room-player-card .room-player-name {
  font-size: .78rem; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.room-player-card .room-player-tag {
  font-size: .65rem; font-weight: 700; margin-top: 3px;
  display: inline-block; padding: 2px 8px; border-radius: 6px;
}
.room-player-tag.host-tag { background: rgba(var(--orange-rgb),0.12); color: var(--orange); }
.room-player-tag.ready-tag { background: rgba(34,197,94,0.12); color: #22c55e; }
.room-player-tag.waiting-tag { background: var(--soft); color: var(--muted); }

.room-join-card {
  max-width: 420px; margin: 0 auto; padding: 32px 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.room-join-card h2 {
  font-size: 1.15rem; font-weight: 800; color: var(--ink);
  text-align: center; margin-bottom: 4px;
}
.room-join-card p {
  font-size: .82rem; color: var(--muted); text-align: center; margin-bottom: 20px;
}
.room-join-input {
  width: 100%; text-align: center; font-size: 1.6rem; font-weight: 800;
  letter-spacing: .3em; padding: 16px; border-radius: 16px;
  border: 2px solid var(--line); background: var(--soft); color: var(--ink);
  font-family: 'SF Mono', 'Consolas', monospace; outline: none;
  transition: border-color .2s; text-transform: uppercase;
}
.room-join-input:focus { border-color: var(--orange); }
.room-join-input::placeholder { font-size: 1rem; letter-spacing: .1em; color: var(--muted); opacity: .6; }

.room-settings-panel {
  padding: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; margin: 0 16px 16px;
}
.room-settings-title {
  font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 12px;
}
.room-setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.room-setting-row:last-child { border-bottom: none; }
.room-setting-label {
  font-size: .85rem; font-weight: 600; color: var(--ink);
}
.room-setting-desc {
  font-size: .72rem; color: var(--muted); margin-top: 2px;
}
.room-toggle {
  position: relative; width: 48px; height: 28px; flex-shrink: 0;
}
.room-toggle input { opacity: 0; width: 0; height: 0; }
.room-toggle .room-toggle-slider {
  position: absolute; inset: 0; background: var(--line); border-radius: 14px;
  cursor: pointer; transition: background .2s;
}
.room-toggle .room-toggle-slider::before {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.room-toggle input:checked + .room-toggle-slider { background: var(--orange); }
.room-toggle input:checked + .room-toggle-slider::before { transform: translateX(20px); }

.room-action-bar {
  display: flex; gap: 10px; padding: 0 16px 24px;
}
.room-action-bar .btn-primary,
.room-action-bar .btn-ghost {
  flex: 1; min-height: 50px; border-radius: 14px; font-size: .9rem;
}
.room-action-bar .btn-primary:disabled {
  opacity: .5; cursor: not-allowed; transform: none;
}

.room-empty {
  text-align: center; padding: 60px 24px; color: var(--muted);
}
.room-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .6; }
.room-empty-title {
  font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: 6px;
}
.room-empty-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 20px;
}
.room-empty-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.room-empty-actions .btn-primary,
.room-empty-actions .btn-ghost {
  padding: 12px 24px; font-size: .85rem; border-radius: 12px;
}

.room-vote-bar {
  text-align: center; padding: 12px 16px;
}
.room-vote-msg {
  font-size: .82rem; color: var(--muted); margin-bottom: 8px;
}

html.dark .room-join-card { background: var(--surface); }
html.dark .room-player-card { background: var(--surface); }
html.dark .room-settings-panel { background: var(--surface); }
html.dark .room-toggle .room-toggle-slider::before { background: var(--ink); }

/* ── Room Invite Modal ── */
.room-invite-overlay {
  position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.room-invite-overlay.show { opacity: 1; }
.room-invite-sheet {
  width: 100%; max-width: 480px; max-height: 75vh; overflow-y: auto;
  background: var(--surface); border-radius: 28px 28px 0 0;
  padding: 12px 0 24px; position: relative;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.32,.72,0,1);
}
.room-invite-overlay.show .room-invite-sheet { transform: translateY(0); }
.room-invite-handle {
  width: 36px; height: 4px; border-radius: 2px; background: var(--line);
  margin: 0 auto 16px;
}
.room-invite-header {
  padding: 0 24px 14px; border-bottom: 1px solid var(--line);
}
.room-invite-title {
  font-size: 1rem; font-weight: 800; color: var(--ink);
}
.room-invite-sub {
  font-size: .78rem; color: var(--muted); margin-top: 2px;
}
.room-invite-list { padding: 8px 0; }
.room-invite-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; cursor: pointer; transition: background .15s;
}
.room-invite-item:active { background: var(--soft); }
.room-invite-item .friends-avatar { width: 40px; height: 40px; }
.room-invite-item-info { flex: 1; min-width: 0; }
.room-invite-item-name {
  font-weight: 700; font-size: .85rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.room-invite-item-status { font-size: .72rem; color: var(--muted); margin-top: 1px; }
.room-invite-check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); transition: all .2s;
  display: grid; place-items: center; font-size: .7rem; color: transparent;
}
.room-invite-item.selected .room-invite-check {
  background: var(--orange); border-color: var(--orange); color: #fff;
}
.room-invite-send {
  margin: 0 24px; width: calc(100% - 48px); min-height: 48px;
  border-radius: 14px; font-size: .9rem;
}
.room-invite-send:disabled { opacity: .5; }

html.dark .room-invite-sheet { background: var(--surface); }

.legal-consent {
  margin-top: 18px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.legal-consent h3 {
  font-size: 1.05rem;
  margin: 0 0 4px;
}
.legal-consent-hint {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 10px;
}
.legal-consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
}
.legal-consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}
.legal-consent-saved {
  font-size: .85rem;
  font-weight: 700;
  color: #16a34a;
  margin: 8px 0 0;
}

/* ===== Sllina layout & popup fixes ===== */
main .selina-page:not([style*='height:100dvh']) {
  min-height: calc(100dvh - var(--bbx-bar) - var(--bbx-dock));
  padding-bottom: calc(var(--bbx-dock) + 12px);
}
.modal {
  z-index: 1000;
  overflow-y: auto;
}
.modal-card {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.wd-modal-overlay {
  z-index: 1000;
  overflow-y: auto;
}
.wd-modal {
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}
.settings-panel {
  max-height: calc(100dvh - 84px);
  overflow-y: auto;
}
@media (max-width: 480px) {
  :root {
    --bbx-bar: 50px;
    --bbx-gut: 10px;
  }
  .bbx-logo {
    width: 30px;
    height: 30px;
  }
  .bbx-wallet {
    height: 30px;
    font-size: 0.78rem;
    padding-inline-start: 9px;
    padding-inline-end: 3px;
  }
  .bbx-wallet .plus {
    padding: 2px 7px;
    font-size: 0.72rem;
  }
  .bbx-ava {
    width: 30px;
    height: 30px;
  }
  #auth-btn {
    width: 30px !important;
    height: 30px !important;
  }
  .bbx-top {
    gap: 6px;
  }
}

/* ===== Popup lockdown: fixed in place, background stays scrollable ===== */
.modal,
.wd-modal-overlay,
.settings-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  transform: none !important;
}
.settings-panel {
  position: fixed !important;
}

/* ===== Tall popup cards: stay centered, never clip the top ===== */
.modal,
.wd-modal-overlay,
.consent-overlay {
  align-items: safe center;
}
.modal-card,
.wd-modal,
.consent-card {
  margin: auto;
}

/* ===== Global scroll control: everything scrolls freely ===== */
html {
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
}
body {
  overflow-x: hidden;
}

/* ===== Login / profile page: scrollable, but nothing accidentally selected ===== */
html.login-page {
  overscroll-behavior-y: contain;
}
html.login-page .selina-page,
html.login-page .selina-page *:not(input):not(textarea) {
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  -moz-user-drag: none !important;
}
html.login-page input,
html.login-page textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
}

    