/*! tailwindcss v4.0.2 | MIT License | https://tailwindcss.com */
@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-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --color-red-50: oklch(.971 .013 17.38);
    --color-red-100: oklch(.936 .032 17.717);
    --color-red-200: oklch(.885 .062 18.334);
    --color-red-300: oklch(.808 .114 19.571);
    --color-red-400: oklch(.704 .191 22.216);
    --color-red-500: oklch(.637 .237 25.331);
    --color-red-600: oklch(.577 .245 27.325);
    --color-red-700: oklch(.505 .213 27.518);
    --color-red-800: oklch(.444 .177 26.899);
    --color-red-900: oklch(.396 .141 25.723);
    --color-red-950: oklch(.258 .092 26.042);
    --color-orange-50: oklch(.98 .016 73.684);
    --color-orange-100: oklch(.954 .038 75.164);
    --color-orange-200: oklch(.901 .076 70.697);
    --color-orange-300: oklch(.837 .128 66.29);
    --color-orange-400: oklch(.75 .183 55.934);
    --color-orange-500: oklch(.705 .213 47.604);
    --color-orange-600: oklch(.646 .222 41.116);
    --color-orange-700: oklch(.553 .195 38.402);
    --color-orange-800: oklch(.47 .157 37.304);
    --color-orange-900: oklch(.408 .123 38.172);
    --color-orange-950: oklch(.266 .079 36.259);
    --color-amber-50: oklch(.987 .022 95.277);
    --color-amber-100: oklch(.962 .059 95.617);
    --color-amber-200: oklch(.924 .12 95.746);
    --color-amber-300: oklch(.879 .169 91.605);
    --color-amber-400: oklch(.828 .189 84.429);
    --color-amber-500: oklch(.769 .188 70.08);
    --color-amber-600: oklch(.666 .179 58.318);
    --color-amber-700: oklch(.555 .163 48.998);
    --color-amber-800: oklch(.473 .137 46.201);
    --color-amber-900: oklch(.414 .112 45.904);
    --color-amber-950: oklch(.279 .077 45.635);
    --color-yellow-50: oklch(.987 .026 102.212);
    --color-yellow-100: oklch(.973 .071 103.193);
    --color-yellow-200: oklch(.945 .129 101.54);
    --color-yellow-300: oklch(.905 .182 98.111);
    --color-yellow-400: oklch(.852 .199 91.936);
    --color-yellow-500: oklch(.795 .184 86.047);
    --color-yellow-600: oklch(.681 .162 75.834);
    --color-yellow-700: oklch(.554 .135 66.442);
    --color-yellow-800: oklch(.476 .114 61.907);
    --color-yellow-900: oklch(.421 .095 57.708);
    --color-yellow-950: oklch(.286 .066 53.813);
    --color-lime-50: oklch(.986 .031 120.757);
    --color-lime-100: oklch(.967 .067 122.328);
    --color-lime-200: oklch(.938 .127 124.321);
    --color-lime-300: oklch(.897 .196 126.665);
    --color-lime-400: oklch(.841 .238 128.85);
    --color-lime-500: oklch(.768 .233 130.85);
    --color-lime-600: oklch(.648 .2 131.684);
    --color-lime-700: oklch(.532 .157 131.589);
    --color-lime-800: oklch(.453 .124 130.933);
    --color-lime-900: oklch(.405 .101 131.063);
    --color-lime-950: oklch(.274 .072 132.109);
    --color-green-50: oklch(.982 .018 155.826);
    --color-green-100: oklch(.962 .044 156.743);
    --color-green-200: oklch(.925 .084 155.995);
    --color-green-300: oklch(.871 .15 154.449);
    --color-green-400: oklch(.792 .209 151.711);
    --color-green-500: oklch(.723 .219 149.579);
    --color-green-600: oklch(.627 .194 149.214);
    --color-green-700: oklch(.527 .154 150.069);
    --color-green-800: oklch(.448 .119 151.328);
    --color-green-900: oklch(.393 .095 152.535);
    --color-green-950: oklch(.266 .065 152.934);
    --color-emerald-50: oklch(.979 .021 166.113);
    --color-emerald-100: oklch(.95 .052 163.051);
    --color-emerald-200: oklch(.905 .093 164.15);
    --color-emerald-300: oklch(.845 .143 164.978);
    --color-emerald-400: oklch(.765 .177 163.223);
    --color-emerald-500: oklch(.696 .17 162.48);
    --color-emerald-600: oklch(.596 .145 163.225);
    --color-emerald-700: oklch(.508 .118 165.612);
    --color-emerald-800: oklch(.432 .095 166.913);
    --color-emerald-900: oklch(.378 .077 168.94);
    --color-emerald-950: oklch(.262 .051 172.552);
    --color-teal-50: oklch(.984 .014 180.72);
    --color-teal-100: oklch(.953 .051 180.801);
    --color-teal-200: oklch(.91 .096 180.426);
    --color-teal-300: oklch(.855 .138 181.071);
    --color-teal-400: oklch(.777 .152 181.912);
    --color-teal-500: oklch(.704 .14 182.503);
    --color-teal-600: oklch(.6 .118 184.704);
    --color-teal-700: oklch(.511 .096 186.391);
    --color-teal-800: oklch(.437 .078 188.216);
    --color-teal-900: oklch(.386 .063 188.416);
    --color-teal-950: oklch(.277 .046 192.524);
    --color-cyan-50: oklch(.984 .019 200.873);
    --color-cyan-100: oklch(.956 .045 203.388);
    --color-cyan-200: oklch(.917 .08 205.041);
    --color-cyan-300: oklch(.865 .127 207.078);
    --color-cyan-400: oklch(.789 .154 211.53);
    --color-cyan-500: oklch(.715 .143 215.221);
    --color-cyan-600: oklch(.609 .126 221.723);
    --color-cyan-700: oklch(.52 .105 223.128);
    --color-cyan-800: oklch(.45 .085 224.283);
    --color-cyan-900: oklch(.398 .07 227.392);
    --color-cyan-950: oklch(.302 .056 229.695);
    --color-sky-50: oklch(.977 .013 236.62);
    --color-sky-100: oklch(.951 .026 236.824);
    --color-sky-200: oklch(.901 .058 230.902);
    --color-sky-300: oklch(.828 .111 230.318);
    --color-sky-400: oklch(.746 .16 232.661);
    --color-sky-500: oklch(.685 .169 237.323);
    --color-sky-600: oklch(.588 .158 241.966);
    --color-sky-700: oklch(.5 .134 242.749);
    --color-sky-800: oklch(.443 .11 240.79);
    --color-sky-900: oklch(.391 .09 240.876);
    --color-sky-950: oklch(.293 .066 243.157);
    --color-blue-50: oklch(.97 .014 254.604);
    --color-blue-100: oklch(.932 .032 255.585);
    --color-blue-200: oklch(.882 .059 254.128);
    --color-blue-300: oklch(.809 .105 251.813);
    --color-blue-400: oklch(.707 .165 254.624);
    --color-blue-500: oklch(.623 .214 259.815);
    --color-blue-600: oklch(.546 .245 262.881);
    --color-blue-700: oklch(.488 .243 264.376);
    --color-blue-800: oklch(.424 .199 265.638);
    --color-blue-900: oklch(.379 .146 265.522);
    --color-blue-950: oklch(.282 .091 267.935);
    --color-indigo-50: oklch(.962 .018 272.314);
    --color-indigo-100: oklch(.93 .034 272.788);
    --color-indigo-200: oklch(.87 .065 274.039);
    --color-indigo-300: oklch(.785 .115 274.713);
    --color-indigo-400: oklch(.673 .182 276.935);
    --color-indigo-500: oklch(.585 .233 277.117);
    --color-indigo-600: oklch(.511 .262 276.966);
    --color-indigo-700: oklch(.457 .24 277.023);
    --color-indigo-800: oklch(.398 .195 277.366);
    --color-indigo-900: oklch(.359 .144 278.697);
    --color-indigo-950: oklch(.257 .09 281.288);
    --color-violet-50: oklch(.969 .016 293.756);
    --color-violet-100: oklch(.943 .029 294.588);
    --color-violet-200: oklch(.894 .057 293.283);
    --color-violet-300: oklch(.811 .111 293.571);
    --color-violet-400: oklch(.702 .183 293.541);
    --color-violet-500: oklch(.606 .25 292.717);
    --color-violet-600: oklch(.541 .281 293.009);
    --color-violet-700: oklch(.491 .27 292.581);
    --color-violet-800: oklch(.432 .232 292.759);
    --color-violet-900: oklch(.38 .189 293.745);
    --color-violet-950: oklch(.283 .141 291.089);
    --color-purple-50: oklch(.977 .014 308.299);
    --color-purple-100: oklch(.946 .033 307.174);
    --color-purple-200: oklch(.902 .063 306.703);
    --color-purple-300: oklch(.827 .119 306.383);
    --color-purple-400: oklch(.714 .203 305.504);
    --color-purple-500: oklch(.627 .265 303.9);
    --color-purple-600: oklch(.558 .288 302.321);
    --color-purple-700: oklch(.496 .265 301.924);
    --color-purple-800: oklch(.438 .218 303.724);
    --color-purple-900: oklch(.381 .176 304.987);
    --color-purple-950: oklch(.291 .149 302.717);
    --color-fuchsia-50: oklch(.977 .017 320.058);
    --color-fuchsia-100: oklch(.952 .037 318.852);
    --color-fuchsia-200: oklch(.903 .076 319.62);
    --color-fuchsia-300: oklch(.833 .145 321.434);
    --color-fuchsia-400: oklch(.74 .238 322.16);
    --color-fuchsia-500: oklch(.667 .295 322.15);
    --color-fuchsia-600: oklch(.591 .293 322.896);
    --color-fuchsia-700: oklch(.518 .253 323.949);
    --color-fuchsia-800: oklch(.452 .211 324.591);
    --color-fuchsia-900: oklch(.401 .17 325.612);
    --color-fuchsia-950: oklch(.293 .136 325.661);
    --color-pink-50: oklch(.971 .014 343.198);
    --color-pink-100: oklch(.948 .028 342.258);
    --color-pink-200: oklch(.899 .061 343.231);
    --color-pink-300: oklch(.823 .12 346.018);
    --color-pink-400: oklch(.718 .202 349.761);
    --color-pink-500: oklch(.656 .241 354.308);
    --color-pink-600: oklch(.592 .249 .584);
    --color-pink-700: oklch(.525 .223 3.958);
    --color-pink-800: oklch(.459 .187 3.815);
    --color-pink-900: oklch(.408 .153 2.432);
    --color-pink-950: oklch(.284 .109 3.907);
    --color-rose-50: oklch(.969 .015 12.422);
    --color-rose-100: oklch(.941 .03 12.58);
    --color-rose-200: oklch(.892 .058 10.001);
    --color-rose-300: oklch(.81 .117 11.638);
    --color-rose-400: oklch(.712 .194 13.428);
    --color-rose-500: oklch(.645 .246 16.439);
    --color-rose-600: oklch(.586 .253 17.585);
    --color-rose-700: oklch(.514 .222 16.935);
    --color-rose-800: oklch(.455 .188 13.697);
    --color-rose-900: oklch(.41 .159 10.272);
    --color-rose-950: oklch(.271 .105 12.094);
    --color-slate-50: oklch(.984 .003 247.858);
    --color-slate-100: oklch(.968 .007 247.896);
    --color-slate-200: oklch(.929 .013 255.508);
    --color-slate-300: oklch(.869 .022 252.894);
    --color-slate-400: oklch(.704 .04 256.788);
    --color-slate-500: oklch(.554 .046 257.417);
    --color-slate-600: oklch(.446 .043 257.281);
    --color-slate-700: oklch(.372 .044 257.287);
    --color-slate-800: oklch(.279 .041 260.031);
    --color-slate-900: oklch(.208 .042 265.755);
    --color-slate-950: oklch(.129 .042 264.695);
    --color-gray-50: oklch(.985 .002 247.839);
    --color-gray-100: oklch(.967 .003 264.542);
    --color-gray-200: oklch(.928 .006 264.531);
    --color-gray-300: oklch(.872 .01 258.338);
    --color-gray-400: oklch(.707 .022 261.325);
    --color-gray-500: oklch(.551 .027 264.364);
    --color-gray-600: oklch(.446 .03 256.802);
    --color-gray-700: oklch(.373 .034 259.733);
    --color-gray-800: oklch(.278 .033 256.848);
    --color-gray-900: oklch(.21 .034 264.665);
    --color-gray-950: oklch(.13 .028 261.692);
    --color-zinc-50: oklch(.985 0 0);
    --color-zinc-100: oklch(.967 .001 286.375);
    --color-zinc-200: oklch(.92 .004 286.32);
    --color-zinc-300: oklch(.871 .006 286.286);
    --color-zinc-400: oklch(.705 .015 286.067);
    --color-zinc-500: oklch(.552 .016 285.938);
    --color-zinc-600: oklch(.442 .017 285.786);
    --color-zinc-700: oklch(.37 .013 285.805);
    --color-zinc-800: oklch(.274 .006 286.033);
    --color-zinc-900: oklch(.21 .006 285.885);
    --color-zinc-950: oklch(.141 .005 285.823);
    --color-neutral-50: oklch(.985 0 0);
    --color-neutral-100: oklch(.97 0 0);
    --color-neutral-200: oklch(.922 0 0);
    --color-neutral-300: oklch(.87 0 0);
    --color-neutral-400: oklch(.708 0 0);
    --color-neutral-500: oklch(.556 0 0);
    --color-neutral-600: oklch(.439 0 0);
    --color-neutral-700: oklch(.371 0 0);
    --color-neutral-800: oklch(.269 0 0);
    --color-neutral-900: oklch(.205 0 0);
    --color-neutral-950: oklch(.145 0 0);
    --color-stone-50: oklch(.985 .001 106.423);
    --color-stone-100: oklch(.97 .001 106.424);
    --color-stone-200: oklch(.923 .003 48.717);
    --color-stone-300: oklch(.869 .005 56.366);
    --color-stone-400: oklch(.709 .01 56.259);
    --color-stone-500: oklch(.553 .013 58.071);
    --color-stone-600: oklch(.444 .011 73.639);
    --color-stone-700: oklch(.374 .01 67.558);
    --color-stone-800: oklch(.268 .007 34.298);
    --color-stone-900: oklch(.216 .006 56.043);
    --color-stone-950: oklch(.147 .004 49.25);
    --color-black: #000;
    --color-white: #fff;
    --spacing: .25rem;
    --breakpoint-sm: 40rem;
    --breakpoint-md: 48rem;
    --breakpoint-lg: 64rem;
    --breakpoint-xl: 80rem;
    --breakpoint-2xl: 96rem;
    --container-3xs: 16rem;
    --container-2xs: 18rem;
    --container-xs: 20rem;
    --container-sm: 24rem;
    --container-md: 28rem;
    --container-lg: 32rem;
    --container-xl: 36rem;
    --container-2xl: 42rem;
    --container-3xl: 48rem;
    --container-4xl: 56rem;
    --container-5xl: 64rem;
    --container-6xl: 72rem;
    --container-7xl: 80rem;
    --text-xs: .75rem;
    --text-xs--line-height: calc(1 / .75);
    --text-sm: .875rem;
    --text-sm--line-height: calc(1.25 / .875);
    --text-base: 1rem;
    --text-base--line-height: calc(1.5 / 1);
    --text-lg: 1.125rem;
    --text-lg--line-height: calc(1.75 / 1.125);
    --text-xl: 1.25rem;
    --text-xl--line-height: calc(1.75 / 1.25);
    --text-2xl: 1.5rem;
    --text-2xl--line-height: calc(2 / 1.5);
    --text-3xl: 1.875rem;
    --text-3xl--line-height: calc(2.25 / 1.875);
    --text-4xl: 2.25rem;
    --text-4xl--line-height: calc(2.5 / 2.25);
    --text-5xl: 3rem;
    --text-5xl--line-height: 1;
    --text-6xl: 3.75rem;
    --text-6xl--line-height: 1;
    --text-7xl: 4.5rem;
    --text-7xl--line-height: 1;
    --text-8xl: 6rem;
    --text-8xl--line-height: 1;
    --text-9xl: 8rem;
    --text-9xl--line-height: 1;
    --font-weight-thin: 100;
    --font-weight-extralight: 200;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    --tracking-tighter: -.05em;
    --tracking-tight: -.025em;
    --tracking-normal: 0em;
    --tracking-wide: .025em;
    --tracking-wider: .05em;
    --tracking-widest: .1em;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    --radius-xs: .125rem;
    --radius-sm: .25rem;
    --radius-md: .375rem;
    --radius-lg: .5rem;
    --radius-xl: .75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;
    --radius-4xl: 2rem;
    --shadow-2xs: 0 1px #0000000d;
    --shadow-xs: 0 1px 2px 0 #0000000d;
    --shadow-sm: 0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;
    --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
    --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
    --shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
    --shadow-2xl: 0 25px 50px -12px #00000040;
    --inset-shadow-2xs: inset 0 1px #0000000d;
    --inset-shadow-xs: inset 0 1px 1px #0000000d;
    --inset-shadow-sm: inset 0 2px 4px #0000000d;
    --drop-shadow-xs: 0 1px 1px #0000000d;
    --drop-shadow-sm: 0 1px 2px #00000026;
    --drop-shadow-md: 0 3px 3px #0000001f;
    --drop-shadow-lg: 0 4px 4px #00000026;
    --drop-shadow-xl: 0 9px 7px #0000001a;
    --drop-shadow-2xl: 0 25px 25px #00000026;
    --ease-in: cubic-bezier(.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, .2, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --animate-spin: spin 1s linear infinite;
    --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
    --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
    --animate-bounce: bounce 1s infinite;
    --blur-xs: 4px;
    --blur-sm: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 24px;
    --blur-2xl: 40px;
    --blur-3xl: 64px;
    --perspective-dramatic: 100px;
    --perspective-near: 300px;
    --perspective-normal: 500px;
    --perspective-midrange: 800px;
    --perspective-distant: 1200px;
    --aspect-video: 16 / 9;
    --default-transition-duration: .15s;
    --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    --default-font-family: var(--font-sans);
    --default-font-feature-settings: var(--font-sans--font-feature-settings);
    --default-font-variation-settings: var(--font-sans--font-variation-settings);
    --default-mono-font-family: var(--font-mono);
    --default-mono-font-feature-settings: var(--font-mono--font-feature-settings);
    --default-mono-font-variation-settings: var(--font-mono--font-variation-settings);
  }
}

@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;
  }

  body {
    line-height: inherit;
  }

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

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

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

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

  b, strong {
    font-weight: bolder;
  }

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

  small {
    font-size: 80%;
  }

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

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

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

  :-moz-focusring {
    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;
    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;
  }

  :-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 {
  .\!visible {
    visibility: visible !important;
  }

  .collapse {
    visibility: collapse;
  }

  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

  .\!absolute {
    position: absolute !important;
  }

  .\!fixed {
    position: fixed !important;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .sticky {
    position: sticky;
  }

  .inset-0 {
    inset: calc(var(--spacing) * 0);
  }

  .top-0 {
    top: calc(var(--spacing) * 0);
  }

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

  .right-0 {
    right: calc(var(--spacing) * 0);
  }

  .right-4 {
    right: calc(var(--spacing) * 4);
  }

  .isolate {
    isolation: isolate;
  }

  .z-50 {
    z-index: 50;
  }

  .col-span-3 {
    grid-column: span 3 / span 3;
  }

  .\!container {
    width: 100% !important;
  }

  @media (width >= 40rem) {
    .\!container {
      max-width: 40rem !important;
    }
  }

  @media (width >= 48rem) {
    .\!container {
      max-width: 48rem !important;
    }
  }

  @media (width >= 64rem) {
    .\!container {
      max-width: 64rem !important;
    }
  }

  @media (width >= 80rem) {
    .\!container {
      max-width: 80rem !important;
    }
  }

  @media (width >= 96rem) {
    .\!container {
      max-width: 96rem !important;
    }
  }

  .container {
    width: 100%;
  }

  @media (width >= 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (width >= 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (width >= 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (width >= 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (width >= 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .m-1 {
    margin: calc(var(--spacing) * 1);
  }

  .mx-auto {
    margin-inline: auto;
  }

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

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

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

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

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

  .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);
  }

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

  .ml-1 {
    margin-left: calc(var(--spacing) * 1);
  }

  .\!grid {
    display: grid !important;
  }

  .\!hidden {
    display: none !important;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

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

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

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

  .table {
    display: table;
  }

  .table-cell {
    display: table-cell;
  }

  .h-2\.5 {
    height: calc(var(--spacing) * 2.5);
  }

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

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

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

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

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

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

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

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

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

  .h-\[40px\] {
    height: 40px;
  }

  .h-\[43px\] {
    height: 43px;
  }

  .h-auto {
    height: auto;
  }

  .h-full {
    height: 100%;
  }

  .max-h-\[90vh\] {
    max-height: 90vh;
  }

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

  .min-h-\[30px\] {
    min-height: 30px;
  }

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

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

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

  .w-11\/12 {
    width: 91.6667%;
  }

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

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

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

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

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

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

  .w-\[80px\] {
    width: 80px;
  }

  .w-\[160px\] {
    width: 160px;
  }

  .w-\[210px\] {
    width: 210px;
  }

  .w-full {
    width: 100%;
  }

  .w-screen {
    width: 100vw;
  }

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

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

  .flex-shrink, .shrink {
    flex-shrink: 1;
  }

  .shrink-0 {
    flex-shrink: 0;
  }

  .flex-grow, .grow {
    flex-grow: 1;
  }

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

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

  .cursor-pointer {
    cursor: pointer;
  }

  .resize {
    resize: both;
  }

  .list-disc {
    list-style-type: disc;
  }

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

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

  .grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .flex-col {
    flex-direction: column;
  }

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

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

  .justify-between {
    justify-content: space-between;
  }

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

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

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

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

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

  :where(.space-y-4 > :not(:last-child)) {
    --tw-space-y-reverse: 0;
    margin-block-start: calc(calc(var(--spacing) * 4) * var(--tw-space-y-reverse));
    margin-block-end: calc(calc(var(--spacing) * 4) * calc(1 - var(--tw-space-y-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-end {
    align-self: flex-end;
  }

  .self-start {
    align-self: flex-start;
  }

  .overflow-y-auto {
    overflow-y: auto;
  }

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

  .rounded-2xl {
    border-radius: var(--radius-2xl);
  }

  .rounded-full {
    border-radius: 3.40282e38px;
  }

  .rounded-lg {
    border-radius: var(--radius-lg);
  }

  .rounded-xl {
    border-radius: var(--radius-xl);
  }

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

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

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

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

  .border-blue-500 {
    border-color: var(--color-blue-500);
  }

  .border-blue-600 {
    border-color: var(--color-blue-600);
  }

  .border-gray-200 {
    border-color: var(--color-gray-200);
  }

  .border-transparent {
    border-color: #0000;
  }

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

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

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

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

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

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

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

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

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

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

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

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

  .object-contain {
    object-fit: contain;
  }

  .p-1\.5 {
    padding: calc(var(--spacing) * 1.5);
  }

  .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);
  }

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

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

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

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

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

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

  .pt-4 {
    padding-top: calc(var(--spacing) * 4);
  }

  .pl-5 {
    padding-left: calc(var(--spacing) * 5);
  }

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

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

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

  .text-7xl {
    font-size: var(--text-7xl);
    line-height: var(--tw-leading, var(--text-7xl--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-xl {
    font-size: var(--text-xl);
    line-height: var(--tw-leading, var(--text-xl--line-height));
  }

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

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

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

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

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

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

  .text-\[\#6d7a8f\] {
    color: #6d7a8f;
  }

  .text-blue-500 {
    color: var(--color-blue-500);
  }

  .text-blue-600 {
    color: var(--color-blue-600);
  }

  .text-gray-500 {
    color: var(--color-gray-500);
  }

  .text-gray-600 {
    color: var(--color-gray-600);
  }

  .text-gray-700 {
    color: var(--color-gray-700);
  }

  .text-gray-900 {
    color: var(--color-gray-900);
  }

  .text-green-100 {
    color: var(--color-green-100);
  }

  .text-green-500 {
    color: var(--color-green-500);
  }

  .text-red-700 {
    color: var(--color-red-700);
  }

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

  .capitalize {
    text-transform: capitalize;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .italic {
    font-style: italic;
  }

  .ordinal {
    --tw-ordinal: ordinal;
    font-variant-numeric: var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, );
  }

  .line-through {
    text-decoration-line: line-through;
  }

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

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .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-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);
  }

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

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

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

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

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

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

  .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;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }

  .duration-200 {
    --tw-duration: .2s;
    transition-duration: .2s;
  }

  .ease-in-out {
    --tw-ease: var(--ease-in-out);
    transition-timing-function: var(--ease-in-out);
  }

  .ease-out {
    --tw-ease: var(--ease-out);
    transition-timing-function: var(--ease-out);
  }

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

    .hover\:bg-gray-400:hover {
      background-color: var(--color-gray-400);
    }

    .hover\:bg-green-600:hover {
      background-color: var(--color-green-600);
    }

    .hover\:text-blue-700:hover {
      color: var(--color-blue-700);
    }
  }

  .disabled\:cursor-default:disabled {
    cursor: default;
  }

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

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

  .dark\:border-gray-600:where([data-theme="dark"], [data-theme="dark"] *) {
    border-color: var(--color-gray-600);
  }

  .dark\:border-gray-700:where([data-theme="dark"], [data-theme="dark"] *) {
    border-color: var(--color-gray-700);
  }

  .dark\:bg-black:where([data-theme="dark"], [data-theme="dark"] *) {
    background-color: var(--color-black);
  }

  .dark\:bg-gray-600:where([data-theme="dark"], [data-theme="dark"] *) {
    background-color: var(--color-gray-600);
  }

  .dark\:bg-gray-700:where([data-theme="dark"], [data-theme="dark"] *) {
    background-color: var(--color-gray-700);
  }

  .dark\:bg-gray-800:where([data-theme="dark"], [data-theme="dark"] *) {
    background-color: var(--color-gray-800);
  }

  .dark\:text-blue-300:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-blue-300);
  }

  .dark\:text-blue-400:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-blue-400);
  }

  .dark\:text-gray-100:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-gray-100);
  }

  .dark\:text-gray-300:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-gray-300);
  }

  .dark\:text-gray-400:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-gray-400);
  }

  .dark\:text-green-400:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-green-400);
  }

  .dark\:text-red-300:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-red-300);
  }

  .dark\:text-white:where([data-theme="dark"], [data-theme="dark"] *) {
    color: var(--color-white);
  }

  @media (hover: hover) {
    .dark\:hover\:text-blue-600:where([data-theme="dark"], [data-theme="dark"] *):hover {
      color: var(--color-blue-600);
    }
  }
}

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

@keyframes ping {
  75%, 100% {
    opacity: 0;
    transform: scale(2);
  }
}

@keyframes pulse {
  50% {
    opacity: .5;
  }
}

@keyframes bounce {
  0%, 100% {
    animation-timing-function: cubic-bezier(.8, 0, 1, 1);
    transform: translateY(-25%);
  }

  50% {
    animation-timing-function: cubic-bezier(0, 0, .2, 1);
    transform: none;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
  initial-value: rotateX(0);
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
  initial-value: rotateY(0);
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
  initial-value: rotateZ(0);
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false;
  initial-value: skewX(0);
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false;
  initial-value: skewY(0);
}

@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-font-weight {
  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-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@property --tw-ease {
  syntax: "*";
  inherits: false
}
.loader {
    width: 30px;
    height: 30px;
    border: 5px solid #FFF;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}.notification-settings { color: inherit; margin: 15px 0 8px; padding: 14px 0 0; border-top: 1px solid var(--shell-line, #a9b5a855); text-align: left; }
.notification-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
.notification-settings-heading > strong { font-size: 13px; line-height: 1.4; }
.notification-settings .notification-settings-heading > .notification-settings-switch { display: grid; align-items: center; flex: 0 0 48px; width: 48px; height: 44px; padding: 0 4px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.notification-settings-switch::before { content: ''; position: absolute; inset: 10px 0; border: 1px solid #8a9b8f; border-radius: 99px; background: #83948840; }
.notification-settings-switch[aria-checked="true"]::before { background: var(--appearance-primary, #a8c887); border-color: transparent; }
.notification-settings-switch > span { position: absolute; left: 4px; top: 14px; width: 16px; height: 16px; border-radius: 50%; background: #fffdf7; box-shadow: 0 1px 3px #0004; transform: translateX(0); transition: transform 120ms ease-out; }
.notification-settings-switch[aria-checked="true"] > span { transform: translateX(24px); }
.notification-settings-switch:disabled { opacity: .5; cursor: default; }
.notification-settings-switch:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.notification-settings .notification-settings-description { margin: 3px 0 0; font-size: 11px; line-height: 1.55; opacity: .8; overflow-wrap: anywhere; }
.notification-settings .notification-settings-status { min-height: 17px; margin: 7px 0 0; font-size: 11px; line-height: 1.5; }
.notification-settings-error p { margin: 6px 0; font-size: 11px; line-height: 1.5; }
.notification-settings .notification-settings-error button { min-height: 36px; padding: 7px 10px; border: 1px solid currentColor; border-radius: 9px; color: inherit; background: transparent; font-size: 11px; cursor: pointer; }
.legacy-notification-settings { margin-top: 14px; border-top: 1px solid #a9b5a855; padding-top: 12px; }
.legacy-notification-settings > summary { font-size: 13px; cursor: pointer; }
.legacy-notification-settings .notification-settings { border: 0; margin-top: 4px; padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .notification-settings-switch > span { transition: none; } }
@font-face {
    font-family: 'Neucha';
    src: url('./Neucha-Regular-9fePpGJi.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.collection-grid {
    align-items: start;
    row-gap: 22px;
    padding: 6px 2px 10px;
}

.collection-polaroid {
    --polaroid-angle: -1.5deg;
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    padding: clamp(5px, 1.6vw, 10px);
    border: 1px solid #e6dfd2;
    border-radius: 2px;
    background: #fffaf0;
    color: #3c342c;
    box-shadow: 0 2px 3px #0000001a, 0 7px 12px #00000029;
    transform: rotate(var(--polaroid-angle));
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.collection-polaroid:nth-child(3n + 2) {
    --polaroid-angle: 1.25deg;
}

.collection-polaroid:nth-child(3n) {
    --polaroid-angle: -0.75deg;
}

.collection-polaroid__photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: radial-gradient(ellipse at 45% 35%, #f5efdf, #e1d5bf);
    box-shadow: inset 0 0 0 1px #7663491a;
}

.collection-polaroid__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5%;
}

.collection-polaroid__caption {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 1px 2px;
    font-family: 'Neucha', cursive;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}

.collection-polaroid__count {
    position: absolute;
    top: 5px;
    right: 5px;
    max-width: calc(100% - 10px);
    min-width: 23px;
    padding: 2px 6px;
    border: 1px solid #ffffff80;
    border-radius: 3px;
    background: #514538;
    color: #fffaf0;
    font-size: clamp(10px, 2.5vw, 12px);
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.collection-polaroid--missing .collection-polaroid__photo {
    background: radial-gradient(ellipse at 45% 35%, #e6e4df, #ccc9c2);
}

.collection-polaroid--missing .collection-polaroid__image {
    opacity: 0.65;
}

.collection-polaroid--missing .collection-polaroid__caption {
    color: #6b665e;
}

.collection-polaroid:focus-visible {
    z-index: 1;
    outline: 3px solid #3390ec;
    outline-offset: 4px;
    transform: translateY(-3px) rotate(0deg);
}

@media (hover: hover) {
    .collection-polaroid:hover {
        z-index: 1;
        box-shadow: 0 3px 5px #0000001a, 0 10px 18px #00000033;
        transform: translateY(-3px) rotate(0deg);
    }
}

.collection-polaroid:active {
    transform: translateY(1px) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .collection-polaroid {
        transition: none;
    }
}

.collection-polaroid--protected {isolation: isolate; border-color: #a5c9ce;}
.collection-polaroid__film {position: absolute; inset: -4px; z-index: 2; pointer-events: none; border: 1px solid #a6ced8; border-radius: 5px; background: linear-gradient(118deg, transparent 18%, #ffffff03 27%, #ffffff70 31%, #ffffff25 38%, transparent 40%, transparent 74%, #ffffff48 75%, transparent 77%), linear-gradient(135deg, #d1f5ff12, transparent 45%, #a9dce91f); box-shadow: inset 0 0 0 2px #f0ffff6b, inset -2px -2px 3px #73a7b644, 1px 2px 1px #00192c33, 0 4px 9px #001a2826;}
.collection-polaroid__film > span {position: absolute; top: 0; right: 0; width: 18px; aspect-ratio: 1; clip-path: polygon(0 0, 100% 100%, 100% 0); background: linear-gradient(45deg, #87b4c077, #fffdf3 52%, #dcf2f4 55%);}
.collection-polaroid__protection {position: absolute; top: -9px; left: 5px; z-index: 3; display: flex; align-items: center; gap: 3px; height: 19px; padding: 2px 5px; border: 1px solid #a7c9cc; border-radius: 5px; background: #eefaf8; color: #275767; font-size: 11px; pointer-events: none;}
.collection-polaroid__protection i {width: 4px; height: 6px; border: 1px solid #709b9f; border-radius: 2px;}
.collection-polaroid__protection i.is-filled {background: #367c80;}
.collection-polaroid--detail {width: 216px; max-width: 100%; margin: 12px auto 20px; padding: 10px; cursor: default;}
.collection-polaroid--detail:hover, .collection-polaroid--detail:active {transform: rotate(var(--polaroid-angle));}

.collection-polaroid--holo .collection-polaroid__film {border-color: #c2bbe6; background: linear-gradient(118deg, transparent 18%, #ffffff07 27%, #ffffff77 31%, #ffffff25 38%, transparent 40%, transparent 74%, #ffffff55 75%, transparent 77%), linear-gradient(128deg, #5bd9d326, #b58bee38 28%, #f3a4cf36 46%, #f5df9938 65%, #9de4d435 80%, #9abdfc33); box-shadow: inset 0 0 0 1px #ffffffb0, 0 1px 8px #bab5eb66;}
.collection-polaroid--holo .collection-polaroid__film::before {content: ''; position: absolute; inset: -2px; border: 3px solid transparent; border-radius: 5px; background: linear-gradient(132deg, #76d9da, #d7bce9 23%, #eeabcc 43%, #f0d69e 60%, #b6e6da 78%, #a8c6e8) border-box; mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); mask-composite: exclude;}
.collection-polaroid__sparks, .collection-polaroid__corners {position: absolute; inset: 0; z-index: 2; pointer-events: none;}
.collection-polaroid__sparks i {position: absolute; left: 12%; top: 20%; width: 12px; height: 12px; background: #fff8d2; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);}
.collection-polaroid__sparks i + i {left: auto; top: auto; right: 12%; bottom: 28%; width: 8px; height: 8px;}
.collection-polaroid--steel .collection-polaroid__film {inset: -1px; border: 1px solid #b7954e44; background: linear-gradient(126deg, #e0cea90e, #ffffff26 29%, transparent 30%, #bca66c08 78%); box-shadow: none;}
.collection-polaroid--steel .collection-polaroid__film > span, .collection-polaroid--frame .collection-polaroid__film > span {display: none;}
.collection-polaroid__corner {position: absolute; width: clamp(19px, 5vw, 30px); aspect-ratio: 1; background: linear-gradient(135deg, #634923, #dcb97b 9%, #ffe8a7 14%, #a78042 18%, #e3bc77 47%, #fae1a4 49%, #76572c 55%, #ad874b 62%, #634626); clip-path: polygon(0 0, 100% 0, 100% 18%, 18% 100%, 0 100%); filter: drop-shadow(1px 2px 1px #26160288);}
.collection-polaroid__corner::after {content: ''; position: absolute; top: 4px; left: 4px; width: 4px; height: 4px; border-radius: 50%; background: #8a612b; box-shadow: 0 1px 1px #ffdf89, inset 0 1px #e8c477;}
.collection-polaroid__corner--tl {top: -3px; left: -3px;}
.collection-polaroid__corner--tr {top: -3px; right: -3px; transform: rotate(90deg);}
.collection-polaroid__corner--bl {bottom: -3px; left: -3px; transform: rotate(-90deg);}
.collection-polaroid__corner--br {bottom: -3px; right: -3px; transform: rotate(180deg);}
.collection-polaroid--frame .collection-polaroid__film {inset: -5px; border: 6px ridge #be8849; border-radius: 2px; background: linear-gradient(126deg, #e8c58908, #ffffff2e 29%, transparent 30%, #e0bc820c 78%); box-shadow: 0 0 0 1px #70471e, inset 0 0 0 1px #f2d19d, 0 5px 8px #3a240c45;}
.collection-detail {width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #e5e1d8; border-radius: 20px; background: #f9f7f2; color: #393b3d; box-shadow: 0 24px 90px #0005; overflow-y: auto;}
.collection-detail::backdrop {background: #07121cd4; backdrop-filter: blur(5px);}
.collection-detail__content {padding: 20px;}
.collection-detail__header {display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px;}
.collection-detail__header h2 {font-size: 14px; font-weight: 500; color: #6d716f;}
.collection-detail button {cursor: pointer;}
.collection-detail__header button {color: #2574b7; padding: 6px 0 6px 12px; font-size: 14px;}
.collection-detail__count {text-align: center; font-size: 14px; margin: 0 0 14px;}
.collection-detail__protected {text-align: center; color: #25666c; font-size: 14px; margin: 0 0 16px;}
.collection-detail__protected small {display: block; font-size: 11px; margin-top: 4px; color: #667a7c;}
.collection-detail__actions {display: flex; justify-content: center; gap: 8px;}
.collection-detail__actions button {min-height: 43px; padding: 10px 12px; border-radius: 9px; background: #2678b9; color: white; font-size: 13px; line-height: 1.3;}
.collection-detail__actions #item-protect-action {background: #316f73;}
.collection-detail__hint {text-align: center; color: #6d716f; font-size: 11px; margin-top: 9px;}
.collection-detail__feedback, .collection-detail__error {font-size: 13px; line-height: 1.5; margin-top: 14px; padding: 10px; border-radius: 8px; background: #e6efeb; color: #296453;}
.collection-detail__error {background: #fce9e8; color: #973d3d;}
.collection-detail__exchange {margin-top: 22px; padding-top: 18px; border-top: 1px solid #dfded7;}
.collection-detail__exchange h3 {font-size: 12px; color: #6d716f; margin-bottom: 6px;}
.collection-detail__exchange-row {display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; font-size: 13px;}
.collection-detail__exchange-row strong {font-variant-numeric: tabular-nums; margin-right: 5px;}
.collection-detail__exchange-row button {padding: 8px 12px; border: 1px solid #aab9c0; border-radius: 7px; color: #2574b7;}
.collection-detail button:disabled {opacity: .45; cursor: default;}
.collection-detail button:focus-visible {outline: 3px solid #3390ec; outline-offset: 3px;}
.collection-detail--dark {background: #1e2b38; color: #edf0f2; border-color: #3b4a57;}
.collection-detail--dark .collection-detail__header h2, .collection-detail--dark .collection-detail__hint, .collection-detail--dark .collection-detail__exchange h3 {color: #aab5bc;}
.collection-detail--dark .collection-detail__header button, .collection-detail--dark .collection-detail__exchange-row button {color: #83c5fa;}
.collection-detail--dark .collection-detail__protected {color: #9bd5d4;}
.collection-detail--dark .collection-detail__protected small {color: #a6bbbf;}
.collection-detail--dark .collection-detail__exchange {border-color: #40505b;}
@media (max-width: 350px) {.collection-detail__content {padding: 16px;} .collection-detail__actions button {padding-inline: 9px; font-size: 12px;}}

.protector-choice {border: 0; padding: 0; margin: 18px 0; min-width: 0;}
.protector-choice legend {font-size: 12px; color: #6d716f; margin-bottom: 9px;}
.protector-choice__grid {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;}
.protector-choice label {position: relative; display: flex; align-items: center; gap: 7px; padding: 9px 7px; border: 1px solid #d2d7d4; border-radius: 8px; cursor: pointer; font-size: 11px; line-height: 1.3; min-width: 0;}
.protector-choice label.is-selected {border-color: #367c80; background: #e9f3f0; box-shadow: inset 0 0 0 1px #367c80;}
.protector-choice input {position: absolute; width: 1px; height: 1px; opacity: 0;}
.protector-choice label:has(input:focus-visible) {outline: 3px solid #3390ec; outline-offset: 2px;}
.protector-choice img {width: 25px; height: 35px; object-fit: contain; flex-shrink: 0;}
.protector-choice label > span {min-width: 0; overflow-wrap: anywhere;}
.protector-choice small {display: block; margin-top: 4px; font-size: 10px; color: #667a7c;}
.protector-choice:disabled {opacity: .6;}
.collection-detail--dark .protector-choice legend, .collection-detail--dark .protector-choice small {color: #aab5bc;}
.collection-detail--dark .protector-choice label {border-color: #455763;}
.collection-detail--dark .protector-choice label.is-selected {background: #26454c; border-color: #83c7c9; box-shadow: inset 0 0 0 1px #83c7c9;}
@media (max-width: 350px) {.protector-choice label {font-size: 10px; gap: 5px;}}
#potion-detail {
    animation: fadeIn 0.3s ease-out;
    transition: background 0.3s, box-shadow 0.3s;
}

#potion-detail img {
    border: 3px solid #f5c542;
    transition: transform 0.2s ease-in-out;
}

#potion-detail img:hover {
    transform: scale(1.1);
}

.world-atlas {
    --world-paper:#fff9e9;
    --world-ink:#273c2b;
    --world-muted:#64715e;
    --world-accent:#99462a;
    --world-on-accent:#fffaf0;
    --world-border:#d9d7be;
    --world-backdrop:#e1e7c6;
    background:var(--world-paper);
    color:var(--world-ink);
    font:400 1rem/1.5 system-ui,sans-serif;
    max-width:1100px;
    margin:0 auto;
    min-height:100svh;
    text-align:left;
    padding-bottom:env(safe-area-inset-bottom)
}

.world-atlas[data-theme=dark] {
    --world-paper:#222f29;
    --world-ink:#f3efd9;
    --world-muted:#bac7ae;
    --world-accent:#e5a366;
    --world-on-accent:#292b1d;
    --world-border:#4d5c44;
    --world-backdrop:#344638
}

.world-atlas * {
    box-sizing:border-box
}

.world-atlas button,.world-atlas select {
    font:inherit
}

.world-atlas button {
    cursor:pointer;
    min-height:44px
}

.world-atlas button:disabled {
    cursor:default;
    opacity:.55
}

.world-atlas button:focus-visible,.world-atlas summary:focus-visible,.world-atlas select:focus-visible {
    outline:3px solid var(--world-accent);
    outline-offset:3px
}

.world-header {
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:18px 22px;
    padding-top:max(18px,var(--tg-content-safe-area-inset-top,0px));
    border-bottom:1px solid var(--world-border)
}

.world-kicker {
    font-size:.75rem;
    letter-spacing:.12em;
    color:var(--world-muted)
}

.world-header h1 {
    font:500 1.6rem/1.15 Georgia,serif;
    margin:2px 0 0
}

.world-text-button {
    border:0;
    background:transparent;
    color:var(--world-ink);
    padding:8px 2px;
    font-size:.875rem!important;
    text-decoration:underline;
    text-underline-offset:4px
}

.world-map-stage {
    position:relative;
    isolation:isolate;
    overflow:hidden;
    height:min(64svh,620px);
    min-height:calc(330px + 10rem);
    touch-action:pan-y pinch-zoom;
    background:var(--world-backdrop);
    cursor:default
}

.world-map-drawing {
    display:block;
    width:100%;
    height:100%;
    pointer-events:none
}

.world-roads path {
    fill:none;
    stroke:#e7d5a2;
    stroke-width:12;
    stroke-linecap:round;
    stroke-linejoin:round
}

.world-active-route path {
    fill:none;
    stroke:var(--world-accent);
    stroke-width:4;
    stroke-linecap:round;
    stroke-linejoin:round;
    stroke-dasharray:5 8
}

.world-compass {
    position:absolute;
    top:16px;
    left:18px;
    text-align:center;
    color:var(--world-ink);
    font:400 26px/1 Georgia,serif
}

.world-compass span {
    display:block;
    font:500 12px/1.5 system-ui,sans-serif;
    letter-spacing:.09em;
    margin-top:5px
}

.world-map-tools {
    position:absolute;
    z-index:4;
    top:14px;
    right:14px;
    display:grid;
    gap:6px
}

.world-map-tools button {
    background:var(--world-paper);
    color:var(--world-ink);
    border:1px solid var(--world-border);
    border-radius:12px;
    width:44px;
    font-size:1.4rem
}

.world-map-tools button:disabled {
    opacity:1;
    color:var(--world-muted)
}

.world-place-label {
    position:absolute;
    transform:translate(-50%,0);
    max-width:calc(100% - 24px);
    border:1px solid var(--world-border);
    border-radius:6px;
    background:var(--world-paper);
    color:var(--world-ink);
    padding:3px 6px;
    box-shadow:0 2px 0 #26391a26;
    white-space:normal;
    width:max-content;
    min-height:0!important;
    font:500 .625rem/1.2 Georgia,serif!important
}

.world-place-label::before {
    content:"";
    position:absolute;
    inset:-10px -8px
}

.world-place-label small {
    display:block;
    font:400 .5rem/1.2 system-ui,sans-serif;
    color:var(--world-muted);
    margin-top:1px
}

.world-place-label[aria-pressed=true] {
    border-color:var(--world-accent);
    box-shadow:0 3px 0 var(--world-accent)
}

.world-player {
    position:absolute;
    transform:translate(-50%,-50%);
    pointer-events:none;
    display:flex;
    align-items:center;
    padding-right:8px;
    border:2px solid #fff9e9;
    border-radius:20px;
    background:#315d70;
    color:#fff9e9;
    z-index:3
}
.world-player-token {
    display:grid;
    place-items:center;
    width:28px;
    height:28px;
    border-radius:50%;
    color:#fff9e9;
    background:#315d70;
    font-size:18px
}
.world-player-label {
    color:inherit;
    font-size:.875rem;
    line-height:1.2
}

.world-map-hint {
    margin:0;
    padding:8px 16px;
    background:var(--world-backdrop);
    color:var(--world-ink);
    font-size:.75rem;
    pointer-events:none
}

.world-detail {
    padding:22px;
    max-width:820px;
    margin:0 auto
}

.world-detail-heading {
    display:flex;
    flex-wrap:wrap;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px
}

.world-detail h2,.world-city h2 {
    font:500 1.65rem/1.15 Georgia,serif;
    margin:5px 0 12px
}

.world-price {
    display:grid;
    text-align:right;
    flex-shrink:0
}

.world-price strong {
    font:500 1.8rem/1.1 Georgia,serif
}

.world-price span {
    font-size:.75rem;
    color:var(--world-muted)
}

.world-muted,.world-journey-progress p {
    color:var(--world-muted);
    font-size:.875rem;
    margin:10px 0
}

.world-actions {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:18px 0 4px
}

.world-primary,.world-secondary,.world-error button {
    border-radius:12px;
    padding:10px 18px;
    border:1px solid var(--world-border);
    font-weight:500!important
}

.world-primary {
    color:var(--world-on-accent);
    background:var(--world-accent);
    border-color:var(--world-accent)
}

.world-secondary,.world-error button {
    color:var(--world-ink);
    background:var(--world-paper)
}

.world-journey-progress {
    margin-top:14px
}

.world-journey-progress>div {
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:.875rem;
    font-variant-numeric:tabular-nums
}

.world-journey-progress progress {
    width:100%;
    height:6px;
    border:0;
    display:block;
    margin-top:7px;
    border-radius:4px;
    overflow:hidden;
    background:var(--world-border);
    accent-color:var(--world-accent)
}

.world-journey-progress progress::-webkit-progress-bar {
    background:var(--world-border)
}

.world-journey-progress progress::-webkit-progress-value {
    background:var(--world-accent)
}

.world-journey-progress progress::-moz-progress-bar {
    background:var(--world-accent)
}

.world-destinations {
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
    padding-top:16px;
    border-top:1px solid var(--world-border)
}

.world-destinations button {
    flex:1;
    min-width:150px;
    text-align:left;
    padding:9px 12px;
    border:1px solid var(--world-border);
    border-radius:10px;
    color:var(--world-ink);
    background:transparent;
    font-size:.875rem
}

.world-destinations button span {
    display:block;
    color:var(--world-muted);
    font-size:.75rem
}

.world-destinations button[aria-pressed=true] {
    border-color:var(--world-accent)
}

.world-route-choice {
    display:grid;
    gap:5px;
    font-size:.875rem
}

.world-route-choice select {
    background:var(--world-paper);
    color:var(--world-ink);
    padding:8px;
    border:1px solid var(--world-border);
    border-radius:8px;
    max-width:100%
}

.world-error {
    padding:16px 22px;
    border-bottom:1px solid var(--world-border)
}

.world-error p {
    margin:0 0 12px
}

.world-loading {
    padding:100px 22px;
    text-align:center
}

.world-preview-note {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    flex-wrap:wrap;
    padding:6px 22px;
    background:var(--world-accent);
    color:var(--world-on-accent);
    font-size:.75rem
}

.world-city {
    padding:22px;
    max-width:820px;
    margin:auto
}

.world-city>p {
    margin:16px 0
}

.world-district {
    border-top:1px solid var(--world-border);
    padding:16px 0
}

.world-district summary {
    cursor:pointer;
    font:500 1.3rem/1.3 Georgia,serif;
    min-height:44px
}

.world-district summary span {
    display:block;
    font:400 .875rem/1.5 system-ui,sans-serif;
    color:var(--world-muted);
    margin-top:5px
}

.world-district>p {
    margin:12px 0
}

.world-city-place {
    display:flex;
    gap:18px;
    margin-top:24px
}

.world-city-place img {
    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:12px;
    flex-shrink:0
}

.world-city-place h3 {
    font:500 1.25rem/1.25 Georgia,serif;
    margin:3px 0 10px
}

.world-city-place p {
    font-size:.875rem;
    margin:6px 0 12px
}

.world-city-place li {
    margin:12px 0
}

.world-city-place ul {
    padding-left:18px
}

@media(max-width:480px) {
    .world-header {
        padding:14px 16px
    }
    .world-detail,.world-city {
        padding:18px 16px
    }
    .world-actions .world-primary {
        flex:1
    }
    .world-city-place {
        flex-direction:column
    }
    .world-city-place img {
        width:100%;
        height:190px
    }
    .world-detail h2 {
        font-size:1.4rem
    }
    .world-place-label {
        font-size:.625rem!important
    }
}

@media(prefers-reduced-motion:reduce) {
    .world-atlas * {
        scroll-behavior:auto!important;
        transition:none!important
    }
}

.world-detail-heading>div:first-child {
    flex:1 1 12rem;
    min-width:0;
    overflow-wrap:anywhere
}

.world-atlas p {
    overflow-wrap:anywhere
}

.world-preview-note>div {
    display:flex;
    gap:6px;
    flex-wrap:wrap
}

.world-preview-note button {
    border:1px solid currentColor;
    border-radius:6px;
    background:transparent;
    color:inherit;
    padding:4px 9px;
    font-size:.875rem;
    min-height:36px
}
.player-hud-effects { min-width: 0; }
.active-effects-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; width: 100%; }
.active-effect { display: flex; align-items: center; min-width: 0; gap: 6px; min-height: 34px; padding: 5px 7px; border: 1px solid #b6da8c33; border-radius: 9px; background: #b7da9d0a; color: #dce9c7; font-size: 10px; line-height: 1.3; }
.active-effect img, .active-effect-glyph { width: 22px; height: 22px; flex-shrink: 0; object-fit: contain; }
.active-effect-glyph { display: grid; place-items: center; color: #bddb96; font-size: 17px; }
.active-effect-name { overflow-wrap: anywhere; }
.active-effect strong { margin-left: auto; white-space: nowrap; font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; color: #d9eeb9; }
.active-effect--negative { border-color: #d2a88940; color: #e8cbb9; }
@media (max-width: 800px) {
    .player-hud-effects { margin-right: -36px; }
    .active-effects-list { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #81997055 transparent; padding-bottom: 2px; }
    .active-effect { flex-shrink: 0; max-width: 245px; min-height: 30px; padding: 3px 6px; font-size: 10px; }
    .active-effect img, .active-effect-glyph { width: 20px; height: 20px; }
}
/* City browsing is one illustrated scene, with the district switch always within reach. */
.city-panel { --city-ink:#f5efd9; --city-muted:#b7bfa8; --city-accent:#e4c78d; width:100%; flex:0 0 auto; min-width:0; color:var(--city-ink); background:#182a22; border:1px solid #d8ddbd24; border-radius:20px; }
.city-heading-label { color:var(--city-muted); font-size:11px; }
.city-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:9px 18px; }
.browser-start .city-heading button { background:transparent; color:var(--city-muted); padding:6px 0; border:0; border-radius:5px; min-height:38px; font-size:12px; text-align:left; }
.browser-start .city-heading .city-back { display:flex; align-items:center; gap:8px; min-width:0; overflow-wrap:anywhere; }
.browser-start .city-heading .city-exit { flex-shrink:0; font-size:10px; }
.city-districts { display:flex; gap:6px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#89957444 transparent; padding:8px 16px 12px; background:#182a22f5; border-bottom:1px solid #d8ddbd1a; position:sticky; top:0; z-index:2; overscroll-behavior-x:contain; }
.browser-start .city-districts button { flex:0 0 auto; min-height:42px; padding:10px 14px; border:1px solid #c7d6a928; border-radius:10px; background:transparent; color:#c4cbb6; font-size:11px; white-space:nowrap; }
.browser-start .city-districts button[aria-pressed=true] { color:#253426; background:#e2cd9c; border-color:#ecd9ae; font-weight:650; }
.city-body { padding:16px; min-width:0; }
.city-breadcrumbs { display:flex; flex-wrap:wrap; gap:5px 9px; align-items:center; color:#849782; margin:0 0 12px; }
.browser-start .city-breadcrumbs button { background:transparent; color:var(--city-muted); border:0; border-radius:4px; padding:4px 0; min-height:28px; font-size:10px; }
.city-scene { position:relative; min-height:230px; display:flex; flex-direction:column; justify-content:flex-end; border-radius:14px; overflow:hidden; isolation:isolate; background:radial-gradient(ellipse at 70% 10%,#cba5644d,transparent 70%),#23382a; }
.city-scene-image { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 52%; }
.city-scene::after { content:''; position:absolute; z-index:-1; inset:0; background:linear-gradient(0deg,#101f19f5 0%,#14221b9c 35%,transparent 85%); }
.city-scene-caption { padding:22px; }
.city-eyebrow { display:block; font-size:9px; line-height:1.5; text-transform:uppercase; letter-spacing:.12em; color:var(--city-accent); }
.browser-start .city-panel h2 { margin:5px 0 0; font-size:clamp(23px,3vw,34px); line-height:1.15; font-weight:650; color:var(--city-ink); overflow-wrap:anywhere; }
.city-panel h2:focus { outline:none; }
.city-story { margin-top:10px; color:#e2e4d0; max-width:630px; }
.city-story summary { width:fit-content; cursor:pointer; font-size:11px; min-height:28px; padding:5px 0; }
.browser-start .city-story p { font-size:13px; line-height:1.65; margin:7px 0 0; }
.city-scene--compact { min-height:95px; }
.city-scene--compact .city-scene-image { opacity:.4; }
.city-scene--compact .city-scene-caption { padding:18px 20px; }
.browser-start .city-scene--compact h2 { font-size:22px; }
.city-discover,.city-residents,.city-service-section,.city-departures { margin-top:22px; }
.city-section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:12px; }
.browser-start .city-panel h3 { font-size:15px; line-height:1.4; margin:0 0 12px; font-weight:600; color:var(--city-ink); }
.browser-start .city-section-heading h3 { margin:0; }
.city-section-heading > span { color:var(--city-muted); font-size:10px; text-align:right; }
.city-places { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.browser-start .city-places button { position:relative; min-width:0; display:flex; flex-direction:column; align-items:stretch; padding:0; overflow:hidden; text-align:left; border:1px solid #c7d6a92a; background:#24392b; border-radius:13px; color:var(--city-ink); transition:border-color .15s; }
.browser-start .city-places button:hover { filter:none; border-color:#e4c78d99; }
.city-place-art { position:relative; display:grid; place-items:center; aspect-ratio:2.2; background:radial-gradient(ellipse at 70% 10%,#caad7430,transparent 90%),#293e2d; overflow:hidden; }
.city-place-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.city-place-art svg { width:40px; height:40px; opacity:.4; color:var(--city-accent); }
.city-place-caption { padding:13px 34px 14px 14px; display:grid; gap:6px; }
.city-place-caption strong { font-size:15px; line-height:1.35; font-weight:600; overflow-wrap:anywhere; }
.city-place-caption > span { color:var(--city-muted); font-size:10px; line-height:1.4; }
.city-place-arrow { position:absolute; bottom:15px; right:14px; color:var(--city-accent); font-size:19px; }
.city-residents { border:1px solid #e4c78d38; border-radius:13px; padding:16px; background:#dfbd6910; }
.city-residents article { display:flex; align-items:center; gap:14px; }
.city-residents article + article { margin-top:16px; padding-top:16px; border-top:1px solid #d8ddbd24; }
.city-residents article > img { width:68px; height:74px; object-fit:cover; border-radius:9px; }
.city-residents article > div { display:flex; align-items:center; flex-wrap:wrap; gap:10px 18px; justify-content:space-between; flex:1; min-width:0; }
.city-residents strong { font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.browser-start .city-residents button { display:flex; align-items:center; gap:8px; min-height:44px; padding:10px 18px; color:#263322; background:#e4ce9b; font-size:13px; font-weight:600; }
.city-residents button svg { width:17px; height:17px; }
.city-services { display:flex; flex-wrap:wrap; gap:9px; }
.browser-start .city-services button { display:flex; align-items:center; gap:10px; border:1px solid #bdcda442; border-radius:11px; min-height:48px; background:#253c2e; color:var(--city-ink); padding:12px 15px; font-size:12px; }
.city-services button strong { font-weight:500; }.city-services button svg { width:18px; height:18px; color:#c2d2ac; }.city-services button > span { margin-left:auto; }
.city-route-list { display:grid; gap:10px; }
.city-route-list article { display:flex; align-items:center; gap:14px; border:1px solid #c7d6a928; padding:12px; border-radius:13px; background:#20382a; }
.city-route-list article > img { flex-shrink:0; width:90px; height:74px; object-fit:cover; border-radius:8px; }
.city-route-list article > div { flex:1; min-width:0; }
.browser-start .city-panel h4 { font-size:16px; font-weight:600; line-height:1.35; color:var(--city-ink); margin:4px 0; }
.city-route-distance { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--city-muted); }.city-route-distance svg { width:13px; height:13px; }
.browser-start .city-departures button { min-height:44px; flex-shrink:0; padding:10px 14px; background:#c9dfa5; color:#203720; font-weight:600; font-size:12px; }
.browser-start .city-panel .city-muted,.browser-start .city-panel .city-empty { font-size:12px; color:var(--city-muted); line-height:1.5; margin:16px 0 0; }
.city-service-content { min-width:0; margin-top:14px; }
.city-service-content > .item-panel { border:none; }
.city-service-content > .npc-panel { border:none; padding:0; background:transparent; }
.city-service-content .quest-dialogue { margin-top:0; border-color:#ddc08a3b; }
.city-service-content .quest-dialogue-heading .quest-npc-portrait { width:70px; height:76px; object-fit:cover; }
.city-service-tabs { display:flex; gap:8px; margin-bottom:15px; }.browser-start .city-service-tabs button { min-height:44px; padding:8px 14px; font-size:12px; }.city-service-tabs button[aria-pressed=true] { background:#c3d69c; color:#183322; }
@media (max-width:800px) {
    .city-panel { border-radius:14px; }.city-heading { padding:3px 12px; gap:10px; }.browser-start .city-heading .city-back { font-size:10px; }
    .city-districts { padding:6px 10px 10px; gap:5px; }.browser-start .city-districts button { font-size:10px; padding:9px 12px; }
    .city-body { padding:10px; }.city-breadcrumbs { gap:3px 6px; margin-bottom:8px; }.browser-start .city-breadcrumbs button { font-size:9px; }
    .city-scene { min-height:175px; border-radius:11px; }.city-scene-caption { padding:16px; }.browser-start .city-panel h2 { font-size:25px; }
    .city-scene--compact { min-height:75px; }.city-scene--compact .city-scene-caption { padding:12px; }.browser-start .city-scene--compact h2 { font-size:19px; }
    .city-discover,.city-service-section,.city-departures { margin-top:18px; }.city-section-heading { margin-bottom:9px; }.city-section-heading > span { font-size:9px; }
    .city-places { gap:8px; }.city-place-art { aspect-ratio:1.6; }.city-place-caption { padding:10px 22px 12px 10px; }.city-place-caption strong { font-size:12px; }.city-place-caption > span { font-size:9px; }.city-place-arrow { right:9px; bottom:11px; font-size:15px; }
    .city-residents { margin-top:14px; padding:12px; }.city-residents article > img { width:56px; height:64px; }.city-residents article > div { gap:7px; }.browser-start .city-residents button { padding:10px 14px; font-size:12px; }
    .browser-start .city-services button { padding:10px 12px; flex:1; font-size:11px; }
    .city-route-list article { gap:10px; flex-wrap:wrap; }.city-route-list article > img { width:68px; height:65px; }.city-route-list article > div { min-width:150px; }.browser-start .city-panel h4 { font-size:14px; }.city-route-list article > button { width:100%; }
    .city-service-content { margin-top:10px; }
}
@media (max-height:500px) { .city-scene { min-height:125px; }.city-scene--compact { min-height:65px; } }
@media (prefers-reduced-motion:reduce) { .city-places button { transition:none; } }
.artifact-equipment {
    --artifact-surface: #21392e;
    --artifact-deep: #172c23;
    --artifact-line: #a8c69135;
    --artifact-ink: #f0f1df;
    --artifact-muted: #b5c6ad;
    --artifact-accent: #d1e7ad;
    border-radius: 18px;
    padding: 18px;
    margin: 16px 0 24px;
    color: var(--artifact-ink);
    background: radial-gradient(ellipse at 35% 0%, #79945a1c, transparent 65%), var(--artifact-surface);
    border: 1px solid var(--artifact-line);
}
.artifact-equipment .artifact-equipment-heading, .artifact-equipment .artifact-stock-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.artifact-equipment .artifact-equipment-heading h3 { margin: 0; font-size: 18px; font-weight: 650; }
.artifact-equipment-heading > span, .artifact-stock-heading > span { font-size: 11px; color: var(--artifact-muted); }
.artifact-equipment-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 420px; gap: 9px; margin-top: 16px; }
.artifact-equipment .artifact-slot { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; min-height: 0; padding: 7px; border-radius: 12px; color: var(--artifact-muted); background: var(--artifact-deep); border: 1px solid var(--artifact-line); box-shadow: inset 0 2px 5px #07170a25; }
.artifact-equipment .artifact-slot--equipped { border-color: #b5d5898c; background: radial-gradient(circle at 50% 45%, #a3bc5b24, transparent 72%), var(--artifact-deep); }
.artifact-slot img { display: block; width: 100%; height: 100%; max-height: 84px; object-fit: contain; filter: drop-shadow(0 3px 3px #06140d60); }
.artifact-slot .artifact-slot-number { position: absolute; top: 3px; left: 6px; font-size: 9px; opacity: .7; }
.artifact-slot .artifact-slot-active { position: absolute; bottom: 5px; right: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--artifact-accent); }
.artifact-slot--empty > span:first-child { font-size: 23px; font-weight: 300; opacity: .65; }
.artifact-equipment .artifact-equipment-hint { margin: 10px 0 20px; font-size: 11px; color: var(--artifact-muted); }
.artifact-equipment .artifact-stock-heading { margin-bottom: 10px; outline-offset: 4px; }
.artifact-stock-heading h4 { margin: 0; font-size: 13px; font-weight: 550; }
.artifact-stock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
.artifact-equipment .artifact-stock-tile { display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 0; padding: 8px 6px 10px; border-radius: 12px; color: var(--artifact-ink); background: #14271d45; border: 1px solid #b7c5a61c; text-align: center; }
.artifact-stock-art { position: relative; display: grid; place-items: center; height: 85px; }
.artifact-stock-art > img { width: 76px; height: 76px; object-fit: contain; filter: drop-shadow(0 4px 4px #06140d55); }
.artifact-stock-quantity { position: absolute; right: 0; bottom: 0; padding: 2px 5px; border: 1px solid var(--artifact-line); border-radius: 5px; background: var(--artifact-deep); color: var(--artifact-accent); font-size: 10px; font-variant-numeric: tabular-nums; }
.artifact-stock-name { margin-top: 7px; font-size: 11px; line-height: 1.3; overflow-wrap: anywhere; }
.artifact-equipment .artifact-stock-empty { margin: 10px 0 2px; color: var(--artifact-muted); font-size: 12px; }
.artifact-equipment button:hover { filter: none; border-color: #bad696a6; background-color: #314a35; }
.artifact-equipment button:focus-visible { outline: 2px solid var(--artifact-accent); outline-offset: 3px; }
.artifact-image-placeholder { display: grid; place-items: center; color: var(--artifact-accent); font-size: 32px; }
.artifact-equipment .artifact-sheet {
    box-sizing: border-box; position: fixed; inset: 0; width: min(420px, calc(100vw - 28px)); max-height: min(740px, calc(100dvh - 28px));
    margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border-radius: 24px;
    background: var(--artifact-surface); color: var(--artifact-ink); border: 1px solid #a8c69166; box-shadow: 0 24px 90px #05110cd9;
}
.artifact-sheet::backdrop { background: #06100bc4; }
.artifact-sheet-content { padding: 14px 22px 22px; }
.artifact-sheet-top { display: flex; justify-content: space-between; align-items: center; color: var(--artifact-muted); font-size: 11px; }
.artifact-equipment .artifact-sheet-close { padding: 0; width: 40px; height: 40px; min-height: 40px; background: transparent; color: var(--artifact-ink); border-radius: 50%; font-size: 27px; font-weight: 300; line-height: 1; }
.artifact-sheet-art { display: grid; place-items: center; height: 176px; background: radial-gradient(ellipse at center, #a4bd6b24, transparent 66%); }
.artifact-sheet-art > img { width: 160px; height: 160px; object-fit: contain; filter: drop-shadow(0 9px 7px #07130d70); }
.artifact-sheet-art .artifact-image-placeholder { height: 120px; font-size: 62px; }
.artifact-equipment .artifact-sheet h3 { margin: 6px 0 14px; font-size: 23px; text-align: center; font-weight: 650; line-height: 1.2; }
.artifact-effects { display: flex; justify-content: center; gap: 8px; margin: 0 0 14px; }
.artifact-effects > div { display: flex; align-items: baseline; gap: 8px; padding: 6px 12px; border-radius: 8px; background: #c4df9620; }
.artifact-effects dt { color: var(--artifact-muted); font-size: 11px; }
.artifact-effects dd { margin: 0; color: var(--artifact-accent); font-size: 17px; font-weight: 650; }
.artifact-equipment .artifact-description, .artifact-equipment .artifact-availability { font-size: 13px; line-height: 1.5; color: var(--artifact-muted); margin: 12px 0 18px; }
.artifact-sheet-actions { display: grid; gap: 8px; }
.artifact-equipment .artifact-sheet-actions button { min-height: 46px; width: 100%; padding: 11px 14px; color: #213627; background: var(--artifact-accent); border-radius: 12px; font-size: 13px; font-weight: 650; }
.artifact-equipment .artifact-sheet-actions .artifact-action-quiet { color: var(--artifact-muted); background: transparent; border: 1px solid var(--artifact-line); font-size: 12px; font-weight: 400; }
.artifact-sale-confirmation { margin-top: 18px; }
.artifact-sale-confirmation h4 { margin: 0 0 8px; font-size: 16px; }
.artifact-equipment .artifact-sale-confirmation p { color: var(--artifact-muted); font-size: 12px; line-height: 1.5; margin: 0 0 14px; }
@media (max-width: 480px) {
    .artifact-equipment { padding: 12px; border-radius: 15px; margin-top: 12px; }
    .artifact-equipment-slots { gap: 6px; margin-top: 12px; }
    .artifact-equipment .artifact-slot { border-radius: 10px; padding: 5px; }
    .artifact-stock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .artifact-stock-art { height: 72px; }
    .artifact-stock-art > img { width: 66px; height: 66px; }
    .artifact-equipment .artifact-equipment-hint { font-size: 10px; margin-bottom: 17px; }
    .artifact-equipment .artifact-sheet { margin-top: auto; margin-bottom: max(10px, env(safe-area-inset-bottom)); max-height: calc(100dvh - max(20px, env(safe-area-inset-bottom))); }
    .artifact-sheet-content { padding: 12px 20px 20px; }
}
@media (max-height: 640px) {
    .artifact-sheet-art { height: 120px; }
    .artifact-sheet-art > img { width: 110px; height: 110px; }
}
.album-card-dialog {
    --album-surface: var(--appearance-surface, #1f342b);
    --album-raised: var(--appearance-raised, #294333);
    --album-ink: var(--appearance-ink, #f3f0df);
    --album-muted: var(--appearance-muted, #b9cbb2);
    --album-line: var(--appearance-border, #b7d89544);
    --album-accent: var(--appearance-accent, #c9e4a6);
    --game-paper: var(--album-raised);
    --game-ink: var(--album-ink);
    --game-muted: var(--album-muted);
    --game-line: var(--album-line);
    width: min(520px, calc(100vw - 24px)); max-width: none;
    max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--album-line); border-radius: 22px;
    color: var(--album-ink); background: var(--album-surface); box-shadow: 0 24px 100px #0008;
}
.album-card-dialog::backdrop { background: #07150ec9; }
.browser-start[data-game-theme="telegram"] .album-card-dialog::backdrop { background: #040a10cc; }
.album-card-shell { display: flex; flex-direction: column; max-height: inherit; }
.album-card-heading { display: flex; align-items: start; gap: 14px; flex: 0 0 auto; padding: 20px 22px 10px; }
.album-card-heading > div { flex: 1; min-width: 0; }
.album-card-rarity { font-size: 10px; letter-spacing: .1em; color: var(--album-muted); }
.browser-start .album-card-heading h2 { margin: 5px 0 0; font-size: 23px; line-height: 1.25; color: var(--album-ink); overflow-wrap: anywhere; }
.browser-start .album-card-close { display: grid; place-items: center; flex: 0 0 auto; width: 44px; min-height: 44px; padding: 0; margin: -5px -8px 0 0; border: 0; border-radius: 50%; font-size: 28px; line-height: 1; background: var(--album-raised); color: var(--album-ink); }
.album-card-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 22px 24px; }
.album-card-art { padding: 7px 14px; }
.album-card-art .collection-polaroid--detail { width: min(100%, 300px); margin: 0 auto; }
.album-card-art .collection-polaroid__photo { max-height: 36dvh; }
.album-card-art .collection-polaroid__caption { min-height: 0; padding-top: 7px; }
.browser-start .album-card-count { text-align: center; font-size: 13px; margin: 15px 0 18px; color: var(--album-muted); }
.album-card-count strong { font-size: 20px; font-weight: 650; color: var(--album-ink); }
.browser-start .album-card-protected { padding: 12px; border: 1px solid var(--album-line); border-radius: 10px; background: var(--album-raised); color: var(--album-accent); font-size: 13px; }
.album-card-protectors, .album-card-body .card-exchange { padding-top: 16px; border-top: 1px solid var(--album-line); margin-top: 18px; }
.browser-start .album-card-body :is(h3, h4) { margin: 0 0 8px; font-size: 15px; color: var(--album-ink); }
.browser-start .album-card-body p { font-size: 13px; line-height: 1.5; }
.album-card-protector-list { display: grid; gap: 8px; margin-top: 12px; }
.browser-start .album-card-protector-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; background: var(--album-raised); border: 1px solid var(--album-line); color: var(--album-ink); font-size: 13px; }
.album-card-protector-list button > img { width: 32px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.album-card-protector-list button > span:nth-last-child(2) { flex: 1; }
.album-card-protector-list small { display: block; margin-top: 3px; font-size: 11px; color: var(--album-muted); }
.album-card-protector-list button > span:last-child { color: var(--album-accent); }
.album-card-body .item-card-detail { background: var(--album-raised); }
.browser-start .album-card-dialog button.secondary { color: var(--album-ink); border-color: var(--album-line); }
@media (max-width: 480px) {
    .album-card-heading { padding: 16px 18px 8px; }
    .album-card-body { padding: 8px 18px 20px; }
    .browser-start .album-card-heading h2 { font-size: 21px; }
}
.item-result-dialog { width: min(460px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 0; margin: auto; border: 1px solid #b7d89544; border-radius: 22px; background: #1f342b; color: #f3f0df; box-shadow: 0 24px 100px #0008; overflow: hidden; }
.item-result-dialog::backdrop { background: #07150ec9; }
.item-result-shell { display: flex; flex-direction: column; max-height: inherit; }
.item-result-heading { display: flex; align-items: start; gap: 14px; padding: 24px 24px 0; }
.item-result-heading > div { flex: 1; min-width: 0; }
.item-result-eyebrow { color: #acc393; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.browser-start .item-result-heading h2 { margin: 6px 0 0; color: #f3f0df; font-size: 24px; line-height: 1.25; overflow-wrap: anywhere; }
.item-result-heading h2:focus { outline: none; }
.browser-start button.item-result-close { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; margin: -8px -10px 0 0; border: 0; border-radius: 50%; color: #cbdbbf; background: #d6ead00a; font-size: 28px; line-height: 1; }
.item-result-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 24px 4px; }
.browser-start .item-result-body p { color: #c3d0bd; font-size: 14px; }
.browser-start .item-result-values { display: grid; gap: 10px; margin: 20px 0 12px; padding: 15px 0 0; border-top: 1px solid #c3d4b321; }
.item-result-values > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.browser-start .item-result-values dt { color: #b5c6ac; font-size: 12px; }
.browser-start .item-result-values dd { margin: 0; color: #e3d28e; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.item-result-values dd span { font-size: 11px; font-weight: 400; }
.item-result-footer { flex-shrink: 0; padding: 18px 24px 24px; }
.browser-start .item-result-footer > button { width: 100%; min-height: 48px; background: #c9e4a6; color: #243e2b; font-weight: 650; white-space: nowrap; }
.browser-start .item-result-footer p { margin: 0 0 10px; font-size: 12px; color: #c3d0bd; }
@media (max-width: 480px) { .item-result-heading { padding: 20px 18px 0; } .item-result-body { padding-inline: 18px; } .item-result-footer { padding: 14px 18px 18px; } .browser-start .item-result-heading h2 { font-size: 21px; } }
.character-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.character-tabs button { flex: 1; min-width: 100px; }
.character-tabs [aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 2px; }
.item-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.item-panel h2, .item-panel h3 { margin: 16px 0; }
.item-panel p { font-size: 14px; line-height: 1.5; }
.item-stock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.item-stock-card { border: 1px solid var(--game-line); border-radius: 12px; padding: 16px; background: var(--game-paper); }
.item-stock-card > img { width: 76px; height: 76px; object-fit: contain; }
.item-stock-card h4 { margin: 8px 0; }
.item-stock-card > button { width: 100%; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.item-card-detail { padding: 16px; margin: 14px 0; border: 1px solid var(--game-line); border-radius: 12px; }
.item-album-section { margin: 20px 0; }
.item-album-section > summary { cursor: pointer; margin-bottom: 16px; font-weight: 600; }
.item-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.item-command { padding: 18px; }
.item-command p { line-height: 1.5; }
/* Normal command progress is visible, but never moves or blocks the inventory. */
.browser-start .item-command-pending { position: fixed; z-index: 6; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 9px 14px; margin: 0; border: 1px solid var(--appearance-border, #a9c89066); border-radius: 12px; background: var(--appearance-raised, #243c2e); color: var(--appearance-ink, #edf1df); box-shadow: 0 5px 24px #0005; font-size: 12px; line-height: 1.4; pointer-events: none; }
.item-panel-refresh-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.item-exchange-reward { width: min(100%, 220px); margin: 16px auto; text-align: center; }
.item-exchange-reward img { display: block; width: 100%; height: 200px; object-fit: contain; }
.card-exchange { margin-top: 20px; }
.item-command:focus, .item-card-detail:focus { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 420px) { .item-stock-grid { grid-template-columns: 1fr; } .item-album-grid { gap: 9px; } }
.game-theme-picker { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--appearance-border, #8da58b55); }
.game-theme-label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--appearance-muted, inherit); }
.game-theme-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.browser-start .game-theme-option { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 44px; padding: 8px; font-size: 12px; background: transparent; border: 1px solid var(--appearance-border, #8da58b55); color: var(--appearance-ink, inherit); border-radius: 10px; }
.browser-start .game-theme-option[aria-pressed=true] { background: var(--appearance-selection, #9bc17d22); border-color: var(--appearance-focus, #92af73); box-shadow: inset 0 0 0 1px var(--appearance-focus, #92af73); font-weight: 650; }
.browser-start .game-theme-option:focus-visible { outline-color: var(--appearance-focus, #92af73); }
.game-theme-swatch { display: block; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #ffffff45; }
.game-theme-swatch--forest { background: linear-gradient(135deg, #20392b 50%, #bddf97 50%); }
.game-theme-swatch--telegram { background: linear-gradient(135deg, #213140 50%, #2b8bd2 50%); }
.game-account-menu .game-theme-picker { margin: 8px 0 16px; padding: 0; border: 0; }
@media (max-width: 800px) {
    .game-account-menu[open] .game-account-menu-content { max-height: calc(100dvh - 150px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
}
.dice-roll {
    --dice-size: 64px;
    display: inline-block;
    position: relative;
    width: calc(var(--dice-size) * 2.05);
    height: calc(var(--dice-size) * 1.9);
    flex: 0 0 auto;
    vertical-align: middle;
    pointer-events: none;
    isolation: isolate;
}
.dice-roll-scene {
    position: absolute;
    width: var(--dice-size);
    height: var(--dice-size);
    left: calc(50% - var(--dice-size) * .5);
    top: calc(var(--dice-size) * .46);
    perspective: calc(var(--dice-size) * 7);
    perspective-origin: 50% 40%;
}
.dice-roll-motion, .dice-roll-cube { display: block; width: 100%; height: 100%; transform-style: preserve-3d; }
.dice-roll-cube { transform: rotateX(var(--dice-view-x)) rotateY(var(--dice-view-y)) rotateZ(0deg) rotateX(var(--dice-face-x)) rotateY(var(--dice-face-y)); }
.dice-roll-core, .dice-roll-face { position: absolute; display: grid; backface-visibility: hidden; }
.dice-roll-core { width: 94%; height: 94%; left: 3%; top: 3%; background: #c9c1a9; border-radius: 1%; }
.dice-roll-face {
    inset: 0;
    box-sizing: border-box;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    padding: 14%;
    border: 1px solid #fff3cf;
    border-radius: 15%;
    background: linear-gradient(145deg, #fff7df 5%, #e6d9b9 94%);
    box-shadow: inset 1px 1px 2px #ffffffb3, inset -2px -2px 3px #8c74594d;
}
.dice-roll-face::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: rgb(66 50 28 / var(--dice-shade)); }
.dice-roll-pip {
    position: relative;
    width: calc(var(--dice-size) * .135);
    height: calc(var(--dice-size) * .135);
    border-radius: 50%;
    background: radial-gradient(circle at 42% 60%, #34453c, #172c25 78%);
    box-shadow: inset 0 1px 2px #0009, 0 1px 0 #fff8;
}
.dice-roll-shadow {
    position: absolute;
    width: calc(var(--dice-size) * 1.35);
    height: calc(var(--dice-size) * .18);
    left: calc(50% - var(--dice-size) * .675);
    top: calc(var(--dice-size) * 1.72);
    border-radius: 50%;
    background: radial-gradient(ellipse, #06120bb3 0%, #06120b40 45%, #06120b00 72%);
    opacity: .7;
}
.dice-roll--rolling .dice-roll-motion { animation: dice-roll-toss var(--dice-duration) linear both; }
.dice-roll--rolling .dice-roll-cube { animation: dice-roll-tumble var(--dice-duration) linear both; }
.dice-roll--rolling .dice-roll-shadow { animation: dice-roll-shadow var(--dice-duration) linear both; }
.dice-roll[data-state="preparing"] .dice-roll-motion { animation: dice-roll-prepare 180ms ease-out both; }
@keyframes dice-roll-toss {
    0% { transform: translate(var(--dice-drift), -38px) scale(.7); opacity: 0; animation-timing-function: ease-in; }
    8% { opacity: 1; }
    24% { transform: translate(calc(var(--dice-drift) * .5), -23px) scale(.88); opacity: 1; animation-timing-function: cubic-bezier(.33,.21,.67,.55); }
    42% { transform: translate(2px, 2px) scale(1.02); animation-timing-function: ease-out; }
    56% { transform: translate(6px, -13px) scale(.97); animation-timing-function: ease-in; }
    70% { transform: translate(4px, 1px) scale(1.01); animation-timing-function: ease-out; }
    82% { transform: translate(1px, -4px) scale(.995); animation-timing-function: ease-in; }
    94%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes dice-roll-tumble {
    0% { transform: rotateX(calc(var(--dice-view-x) + var(--dice-spin-x))) rotateY(calc(var(--dice-view-y) + var(--dice-spin-y))) rotateZ(var(--dice-spin-z)) rotateX(var(--dice-face-x)) rotateY(var(--dice-face-y)); }
    42% { transform: rotateX(calc(var(--dice-view-x) + 120deg)) rotateY(calc(var(--dice-view-y) - 108deg)) rotateZ(-9deg) rotateX(var(--dice-face-x)) rotateY(var(--dice-face-y)); }
    70% { transform: rotateX(calc(var(--dice-view-x) - 11deg)) rotateY(calc(var(--dice-view-y) + 7deg)) rotateZ(3deg) rotateX(var(--dice-face-x)) rotateY(var(--dice-face-y)); }
    82% { transform: rotateX(calc(var(--dice-view-x) + 5deg)) rotateY(calc(var(--dice-view-y) - 3deg)) rotateZ(-1.5deg) rotateX(var(--dice-face-x)) rotateY(var(--dice-face-y)); }
    94%, 100% { transform: rotateX(var(--dice-view-x)) rotateY(var(--dice-view-y)) rotateZ(0deg) rotateX(var(--dice-face-x)) rotateY(var(--dice-face-y)); }
}
@keyframes dice-roll-shadow {
    0% { transform: translateX(var(--dice-drift)) scale(.6); opacity: .12; }
    24% { transform: translateX(calc(var(--dice-drift) * .5)) scale(.72); opacity: .28; }
    42% { transform: translateX(2px) scale(1.08); opacity: .8; }
    56% { transform: translateX(6px) scale(.78); opacity: .36; }
    70% { transform: translateX(4px) scale(1.04); opacity: .76; }
    82% { transform: translateX(1px) scale(.93); opacity: .56; }
    94%, 100% { transform: translateX(0) scale(1); opacity: .7; }
}
@keyframes dice-roll-prepare { from { transform: translateY(0) rotateZ(0); } to { transform: translateY(-2px) rotateZ(-4deg); } }
.dice-roll--flat .dice-roll-cube { transform: none; }
.dice-roll--flat .dice-roll-shadow { top: calc(var(--dice-size) * 1.4); }
.dice-roll--flat .dice-roll-core, .dice-roll--flat .dice-roll-face { display: none; }
.dice-roll--flat .dice-roll-face[data-selected="true"] { display: grid; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
    .dice-roll--rolling .dice-roll-motion, .dice-roll--rolling .dice-roll-cube, .dice-roll--rolling .dice-roll-shadow,
    .dice-roll[data-state="preparing"] .dice-roll-motion { animation: none; }
}
.dart-target {
    --dart-flight-duration: 280ms;
    --dart-settle-duration: 440ms;
    width: 100%;
    position: relative;
    pointer-events: none;
}
.dart-target > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dart-ground-shadow { fill: #06120c; opacity: .23; }
.dart-board-depth { fill: #101f18; }
.dart-board-rim { stroke: #789183; stroke-width: 1; }
.dart-board-lip { fill: #202e23; stroke: #bfa574; stroke-width: .8; }
.dart-board-band { stroke: #4d382a; stroke-width: .8; }
.dart-board-bull { stroke: #fff0b3; stroke-width: 1; }
.dart-board-bull-edge { fill: none; stroke: #ebcb81; stroke-width: .75; opacity: .65; }
.dart-board-tick { fill: none; stroke: #dbc99d; stroke-width: .8; opacity: .5; }
.dart-board-tick--major { stroke-width: 1.5; opacity: .9; }
.dart-board-sheen { fill: none; stroke: #fff3cf; stroke-width: 1; stroke-linecap: round; opacity: .2; }
.dart-metal-tip { fill: #f7f4df; }
.dart-barrel { fill: #96aea6; stroke: #263f37; stroke-width: .6; stroke-linejoin: round; }
.dart-barrel-light { fill: none; stroke: #f4f3d9; stroke-width: 1.3; stroke-linecap: round; }
.dart-grip { fill: none; stroke: #3c6055; stroke-width: 1; }
.dart-stem { fill: none; stroke: #e6e9d2; stroke-width: 2.5; stroke-linecap: round; }
.dart-flight-top { fill: #b9ead7; stroke: #e7f8df; stroke-width: .85; stroke-linejoin: round; }
.dart-flight-bottom { fill: #5ca88f; stroke: #b5d6b7; stroke-width: .85; stroke-linejoin: round; }
.dart-flight-fold { fill: none; stroke: #eef5d7; stroke-width: .8; stroke-linecap: round; }
.dart-at-hand { opacity: .92; }
.dart-landed-shadow { fill: #152a20; opacity: .24; }
.dart-contact-ring { fill: none; stroke: #f4dda1; stroke-width: 1.5; }
.dart-contact-core { fill: #fff0bf; }
.dart-contact { opacity: 0; }
.dart-impact-spark { fill: none; stroke: #ffdf94; stroke-width: 2; stroke-linecap: round; }
.dart-target--bullseye .dart-contact-ring { stroke-width: 2; }
.dart-target--playing .dart-projectile { animation: dart-projectile-flight var(--dart-flight-duration) cubic-bezier(.16,.67,.26,1) both; }
.dart-target--playing .dart-tail { animation: dart-tail-settle var(--dart-settle-duration) ease-out var(--dart-flight-duration) both; }
.dart-target--playing:not(.dart-target--wide) .dart-board-recoil { animation: dart-board-recoil 300ms ease-out var(--dart-flight-duration) both; transform-origin: 150px 150px; }
.dart-target--playing .dart-landed-shadow { animation: dart-shadow-arrive 160ms ease-out var(--dart-flight-duration) both; }
.dart-target--playing .dart-contact { animation: dart-contact-fade 360ms ease-out var(--dart-flight-duration) both; }
.dart-target--playing .dart-contact-ring { animation: dart-contact-expand 360ms ease-out var(--dart-flight-duration) both; }
.dart-target--playing .dart-impact-spark { animation: dart-spark-out var(--dart-settle-duration) ease-out var(--dart-flight-duration) both; }
.dart-target[data-phase="preparing"] .dart-preparation { animation: dart-prepare 220ms ease-out both; }

@keyframes dart-projectile-flight {
    0% { transform: translate(89px, 135px) scale(1.9); opacity: 0; }
    16% { opacity: 1; }
    72% { transform: translate(5px, 8px) scale(1.07); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 1; }
}
@keyframes dart-tail-settle {
    0% { transform: rotate(0); }
    16% { transform: rotate(-7deg); }
    35% { transform: rotate(4deg); }
    56% { transform: rotate(-2deg); }
    78% { transform: rotate(.8deg); }
    100% { transform: rotate(0); }
}
@keyframes dart-board-recoil {
    0%, 100% { transform: scale(1); }
    24% { transform: scale(.982); }
    55% { transform: scale(1.004); }
}
@keyframes dart-shadow-arrive {
    from { opacity: 0; }
    to { opacity: .24; }
}
@keyframes dart-contact-fade {
    0% { opacity: 0; }
    12% { opacity: .85; }
    100% { opacity: 0; }
}
@keyframes dart-contact-expand {
    from { transform: scale(.35); }
    to { transform: scale(1.7); }
}
@keyframes dart-spark-out {
    0% { transform: translateY(0) scaleY(.4); opacity: 0; }
    18% { opacity: .9; }
    100% { transform: translateY(-16px) scaleY(.7); opacity: 0; }
}
@keyframes dart-prepare {
    from { transform: translate(0, 0) rotate(0); }
    to { transform: translate(5px, 7px) rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .dart-target--playing .dart-projectile,
    .dart-target--playing .dart-tail,
    .dart-target--playing:not(.dart-target--wide) .dart-board-recoil,
    .dart-target--playing .dart-landed-shadow,
    .dart-target--playing .dart-contact,
    .dart-target--playing .dart-contact-ring,
    .dart-target--playing .dart-impact-spark,
    .dart-target[data-phase="preparing"] .dart-preparation { animation: none; }
}
.monster-panel { padding: 1rem .4rem 1.5rem; color: inherit; }
.monster-header { position: sticky; top: 0; z-index: 2; padding: .65rem 0; background: var(--appearance-surface, var(--game-paper)); }
.monster-panel h3 { margin: .35rem 0 1rem; font-size: 1.5rem; }
.monster-panel h3 small { display: block; margin-top: .3rem; font-size: .85rem; font-weight: 400; opacity: .72; }
.monster-health > div, .monster-personal, .monster-fatigue { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.monster-health > div { justify-content: space-between; font-size: .9rem; }
.monster-health progress { display: block; width: 100%; height: .7rem; margin-top: .4rem; accent-color: #aa73bf; }
.monster-art { display: block; width: min(100%, 290px); height: 225px; object-fit: contain; margin: .8rem auto; }
.monster-personal { justify-content: space-between; padding: .9rem 0; font-size: .85rem; }
.monster-personal strong, .monster-fatigue strong { margin-left: .25rem; white-space: nowrap; }
.monster-fatigue { padding: .75rem; border: 1px solid #ac8d5b44; border-radius: .7rem; font-size: .8rem; }
.monster-fatigue .monster-fatigue-title { flex-basis: 100%; margin: 0; }
.monster-fatigue p { flex-basis: 100%; margin: .2rem 0 0; line-height: 1.5; opacity: .8; }
.monster-statuses, .monster-rules ul, .monster-participants ul { list-style: none; margin: .75rem 0; padding: 0; }
.monster-statuses li, .monster-participants li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .6rem; padding: .45rem 0; font-size: .82rem; }
.monster-statuses li { border-bottom: 1px solid #ac8d5b33; }
.monster-rules, .monster-participants { margin-top: .85rem; font-size: .85rem; }
.monster-rules summary, .monster-participants summary { cursor: pointer; padding: .4rem 0; }
.monster-rules p, .monster-participants p { line-height: 1.5; opacity: .8; margin: .35rem 0; }
.monster-rules li { display: flex; gap: .65rem; padding: .5rem 0; }
.monster-faces { min-width: 4.4rem; font-size: .75rem; padding-top: .1rem; }
.monster-result { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.2rem; padding: .8rem 0; }
.monster-result > div:last-child { flex: 1; min-width: 180px; }
.monster-result p { font-size: .85rem; line-height: 1.6; margin: .4rem 0; }
.monster-result small { flex-basis: 100%; }
.monster-dart { width: 110px; text-align: center; font-size: .8rem; }
.monster-dart .dart-target { width: 110px; height: 110px; min-height: 0; }
.monster-panel .dart-target svg { width: 100%; height: 100%; }
.monster-actions { display: flex; gap: .6rem; width: 100%; }
.monster-actions > button:first-child { flex: 1; }
.monster-actions .gameplay-button { font-size: .85rem; }
.monster-recovery { font-size: .85rem; width: 100%; }
.lich-panel { display:flex; flex-direction:column; align-items:center; width:100%; max-width:560px; margin:0 auto; padding:12px 10px; text-align:center; }
.lich-panel > header { flex:0 0 auto; }
.browser-start .lich-panel h3 { font-size:28px; margin-top:3px; }
.lich-health { width:100%; max-width:340px; flex:0 0 auto; margin-top:8px; }
.lich-health > div { display:flex; justify-content:space-between; font-size:12px; }
.lich-health progress { display:block; width:100%; height:7px; margin-top:5px; accent-color:#e27a72; }
.lich-art { width:100%; height:300px; min-height:100px; flex:1 1 0; display:flex; align-items:center; justify-content:center; margin:8px 0; }
.lich-art img { width:100%; height:100%; max-height:350px; object-fit:contain; }
.lich-personal { display:flex; justify-content:center; flex-wrap:wrap; gap:14px; width:100%; font-size:12px; flex:0 0 auto; font-variant-numeric:tabular-nums; }
.lich-personal strong { margin-left:5px; color:#edebd5; }
.browser-start .lich-idle-hint { flex:0 0 auto; max-width:340px; margin:6px 0 0; font-size:10px; line-height:1.4; color:#a9bba1; }
.lich-attack { display:flex; align-items:center; justify-content:center; gap:12px; min-height:58px; margin-top:9px; flex:0 0 auto; }
.lich-attack .dice-roll { --dice-size:42px; flex:none; }
.lich-attack > div:last-child { min-width:0; }
.browser-start .lich-attack p { font-size:11px; max-width:290px; color:#c9d4be; margin-top:3px; }
.lich-attack strong { color:#edb39d; font-size:17px; }
.lich-participants,.lich-rewards { width:100%; flex:0 0 auto; margin-top:8px; text-align:left; font-size:12px; }
.lich-participants summary,.lich-rewards summary { text-align:center; color:#b9cdb1; cursor:pointer; padding:4px; }
.lich-participants ul { list-style:none; margin:8px 0; padding:0; }.lich-participants li { display:grid; grid-template-columns:1fr auto auto; gap:15px; padding:6px; border-bottom:1px solid #ffffff13; }.lich-participant--own { color:#e1eac1; }
.browser-start .lich-participants p,.browser-start .lich-rewards p { font-size:11px; color:#b4c1ab; }
.lich-rewards > div { padding:8px; }
.gameplay-stage .lich-roll,.gameplay-stage .lich-claim--primary { display:flex; align-items:center; justify-content:center; gap:14px; min-height:72px; border-radius:18px; background:linear-gradient(110deg,#9589c4,#716294); color:#fff6e6; font-size:24px; font-weight:750; touch-action:manipulation; }
.lich-roll > span { font-size:32px; }.lich-recovery { font-size:12px; text-align:center; margin-bottom:8px; }.browser-start .lich-recovery p { font-size:12px; margin-bottom:8px; }
.lich-reward-result { width:100%; }.lich-reward-result ul { list-style:none; padding:8px 0; }.lich-reward-result li { display:flex; align-items:center; gap:12px; padding:8px; text-align:left; }.lich-reward-result li img { width:58px; height:58px; object-fit:contain; }.lich-reward-result li span { flex:1; }.lich-reward-result li strong { color:#e3cd8b; }
.browser-start .lich-sync-warning { font-size:12px; }
@supports(height:1cqh) { .lich-panel:has(.lich-art) { height:min(600px,calc(100cqh - 24px)); min-height:310px; }.lich-panel:has(details[open]) { height:auto; }.lich-panel:has(details[open]) .lich-art { height:180px; flex:0 0 auto; } }
@media(max-width:800px) { .lich-panel { padding:7px 2px; }.browser-start .lich-panel h3 { font-size:22px; }.lich-health { margin-top:5px; }.lich-art { margin:6px 0; }.lich-personal { gap:10px; font-size:11px; }.lich-attack { min-height:45px; margin-top:6px; }.lich-attack .dice-roll { --dice-size:38px; }.gameplay-stage .lich-roll,.gameplay-stage .lich-claim--primary { min-height:66px; font-size:20px; }.lich-roll > span { font-size:27px; } @supports(height:1cqh) { .lich-panel:has(.lich-art) { height:min(520px,calc(100cqh - 16px)); min-height:280px; } } }
.reaction-panel { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 540px; margin: 0 auto; padding: 16px 12px; text-align: center; }
.reaction-panel > header { flex: 0 0 auto; }
.browser-start .reaction-panel h3 { font-size: 28px; margin-top: 4px; }
.reaction-art { display: flex; align-items: center; justify-content: center; width: 100%; height: 300px; min-height: 90px; flex: 1 1 0; margin: 10px 0; }
.reaction-art img { width: 100%; height: 100%; max-height: 340px; object-fit: contain; }
.browser-start .reaction-instruction { flex: 0 0 auto; font-size: 13px; line-height: 1.6; color: #ccd7c3; max-width: 410px; }
.reaction-progress { width: 100%; max-width: 350px; flex: 0 0 auto; }
.reaction-signal { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 8px; font-size: 25px; font-weight: 750; line-height: 1.2; }
.reaction-signal > span { font-size: 36px; }
.reaction-signal--red { color: #ff9292; }.reaction-signal--green { color: #b5e99b; }
.reaction-signal--left,.reaction-signal--right { color: #d8caec; }
.reaction-metrics { display: flex; justify-content: space-between; font-size: 12px; color: #cad8be; font-variant-numeric: tabular-nums; }
.reaction-progress progress { display: block; width: 100%; height: 4px; margin-top: 7px; accent-color: #c9e699; }
.browser-start .reaction-progress p { font-size: 11px; margin-top: 7px; color: #d9cfb0; }
.reaction-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.gameplay-stage .reaction-choices .reaction-choice { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; border: 1px solid #ffffff20; border-radius: 16px; font-weight: 750; font-size: 22px; color: #fff8e5; touch-action: manipulation; }
.gameplay-stage .reaction-choices .reaction-choice--red { background: #a74845; }.gameplay-stage .reaction-choices .reaction-choice--green { background: #407a4b; }
.gameplay-stage .reaction-choices .reaction-choice--left,.gameplay-stage .reaction-choices .reaction-choice--right { background: #5b4e78; }
.reaction-choice > span { font-size: 26px; }
.reaction-panel > .gameplay-message { flex: 0 0 auto; width: 100%; margin-top: 10px; padding: 12px; font-size: 12px; }
@supports (height: 1cqh) {
    .reaction-panel { height: min(590px, calc(100cqh - 24px)); min-height: 290px; }
    .reaction-panel:has(.gameplay-message) { height: auto; }
    .reaction-panel:has(.gameplay-message) .reaction-art { flex: 0 0 auto; height: 180px; }
}
@media(max-width:800px) {
    .reaction-panel { padding: 8px 2px; }
    .browser-start .reaction-panel h3 { font-size: 22px; }
    .reaction-art { margin: 6px 0; min-height: 100px; }
    .browser-start .reaction-instruction { font-size: 11px; }
    .reaction-signal { font-size: 21px; margin-bottom: 5px; }
    .reaction-signal > span { font-size: 28px; }
    .reaction-metrics { font-size: 11px; }
    .reaction-choices { gap: 8px; }
    .gameplay-stage .reaction-choices .reaction-choice { min-height: 68px; padding: 10px 6px; font-size: 18px; }
    .reaction-choice > span { font-size: 22px; }
    @supports(height:1cqh) { .reaction-panel { height: min(510px, calc(100cqh - 16px)); min-height: 270px; } }
}
.fly-money-panel { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 100%; max-width: 530px; margin: 0 auto; padding: 16px 12px 12px; text-align: center; }
.fly-money-heading { display: flex; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto; }
.fly-money-heading > img { width: 70px; height: 70px; object-fit: contain; }
.fly-money-heading > div { width: 230px; min-width: 0; text-align: left; }
.fly-money-heading .gameplay-eyebrow { font-size: 9px; margin-bottom: 4px; }
.browser-start .fly-money-heading h3 { min-height: 1.25em; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; }
.fly-money-target { width: 100%; max-width: 360px; height: 340px; min-height: 120px; flex: 1 1 auto; }
.gameplay-panel .fly-money-target > svg { display: block; height: 100%; width: 100%; overflow: visible; }
.fly-money-feedback { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; width: 100%; min-height: 64px; }
.fly-money-feedback .activity-reward { margin-top: 0; line-height: 1.3; }
.fly-money-panel[data-dart-phase=impact] .activity-reward { animation: fly-money-reward-arrive .26s ease-out both; }
.browser-start .fly-money-hint { flex: 0 0 auto; max-width: 330px; font-size: 12px; line-height: 1.4; color: #bdcbb4; margin-top: 8px; }
.fly-money-panel > .gameplay-message { flex: 0 0 auto; width: 100%; padding: 10px; margin-top: 10px; font-size: 11px; }
.fly-money-panel > .fly-money-throw { width: 100%; margin-top: 12px; }
.browser-start .gameplay-stage .fly-money-secondary-catch { display: grid; grid-template-columns: 22px minmax(0, 1fr) 22px; align-items: center; width: 100%; min-height: 44px; margin-top: 10px; padding: 9px 20px; font-size: 13px; line-height: 1.4; }
.gameplay-stage .fly-money-secondary-catch > span { text-align: center; }
.gameplay-stage .fly-money-throw > span[aria-hidden] { font-size: 24px; line-height: 1; }
.fly-money-throw > span:first-child svg { display: block; width: 24px; height: 24px; }
.gameplay-stage .gameplay-button.fly-money-throw:not(:disabled):active { transform: translateY(2px); box-shadow: 0 2px 0 #82a868, inset 0 0 0 2px #243c251c; }
.gameplay-stage .gameplay-button.fly-money-throw[aria-busy=true] { opacity: .85; }
@supports (height: 1cqh) {
    .fly-money-panel { height: min(580px, calc(100cqh - 24px)); min-height: 270px; }
    .fly-money-target { min-height: 120px; height: 0; }
    .fly-money-panel:has(.gameplay-message) { height: auto; }
    .fly-money-panel:has(.gameplay-message) .fly-money-target { height: 220px; }
}
@keyframes fly-money-reward-arrive { from { transform: translateY(4px) scale(.97); opacity: .3; } to { transform: none; opacity: 1; } }
@media (max-width: 800px) {
    .fly-money-panel { padding: 8px 2px; }
    .fly-money-heading > img { width: 50px; height: 50px; }
    .fly-money-heading > div { width: 195px; }
    .browser-start .fly-money-heading h3 { font-size: 20px; }
    .fly-money-heading .gameplay-eyebrow { font-size: 8px; }
    .browser-start .fly-money-hint { font-size: 11px; margin-top: 5px; }
    .fly-money-target { max-width: 300px; }
    @supports (height: 1cqh) { .fly-money-panel { height: min(500px, calc(100cqh - 16px)); min-height: 250px; } }
}
@media (max-height: 500px) and (min-width: 600px) {
    .gameplay-stage:has(.fly-money-panel) .activity-feed-content { padding-top: 4px; padding-bottom: 4px; }
    .fly-money-panel { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 0 16px; height: auto; min-height: 0; padding: 0; }
    .fly-money-heading { grid-column: 1; grid-row: 1; }
    .fly-money-heading > img { width: 36px; height: 36px; }
    .fly-money-heading > div { width: 190px; }
    .browser-start .fly-money-heading h3 { font-size: 18px; }
    .fly-money-panel .fly-money-target { grid-column: 2; grid-row: 1 / 3; width: 120px; height: 120px; min-height: 0; }
    .fly-money-feedback { grid-column: 1; grid-row: 2; min-height: 44px; }
    .fly-money-panel > .gameplay-message, .fly-money-panel > .fly-money-throw { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .fly-money-panel[data-dart-phase=impact] .activity-reward { animation: none; }
    .gameplay-stage .gameplay-button.fly-money-throw:not(:disabled):active { transform: none; }
}

.gameplay-stage .fly-money-reopen { width: 100%; min-height: 32px; padding: 5px 12px; margin-bottom: 6px; font-size: 12px; }
/* Stories arrive with the result, without a typewriter delay or a second reveal. */
.browser-start .game-narrative {
    width: min(100%, 48ch);
    margin: 14px auto;
    padding: 0 12px;
    color: var(--game-ink);
    text-align: left;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.browser-start .game-narrative p { margin: 0; white-space: pre-line; font: inherit; color: inherit; }
.browser-start .game-narrative p + p { margin-top: .65em; }
.browser-start .combat-narrative { border-left: 2px solid var(--game-line); }
@media (max-width: 680px) {
    .browser-start .game-narrative { font-size: 13px; line-height: 1.55; margin: 10px auto; padding: 0 8px; }
}
.combat-panel { margin-top: 20px; }
.combat-heading { display: flex; gap: 14px; align-items: center; }
.combat-portrait { width: 76px; height: 86px; object-fit: contain; flex: 0 0 auto; }
.combat-heading > div { min-width: 0; overflow-wrap: anywhere; }
.combat-panel .combat-heading p { margin-top: 3px; }
.combat-rule { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.combat-rule-choice { display: inline-flex; align-items: center; gap: 8px; }
.combat-rule-choice strong { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--game-line); border-radius: 8px; background: var(--game-paper); }
.combat-supplies, .combat-notices { margin-top: 16px; font-size: 13px; }
.combat-supplies summary, .combat-notices summary { cursor: pointer; padding: 4px 0; }
.combat-panel .combat-charges, .combat-panel .combat-result-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.combat-panel .combat-charges > div, .combat-panel .combat-result-facts > div { border-bottom: 1px solid var(--game-line); padding-bottom: 7px; }
.combat-panel dt { font-size: 12px; color: var(--game-muted); }
.combat-panel dd { font-size: 15px; font-weight: 600; margin: 3px 0 0; }
.combat-panel .combat-roll { display: flex; width: 100%; margin-top: 18px; }
.combat-result { border-top: 1px solid var(--game-line); padding-top: 18px; margin-top: 18px; }
.combat-result > button { margin-top: 16px; width: 100%; }
.combat-die-result { display: flex; align-items: center; gap: 18px; margin: 18px 0; }
.combat-die-result .dice-roll, .combat-roll-waiting .dice-roll { --dice-size: 60px; flex: 0 0 auto; }
.combat-roll-waiting { display: flex; align-items: center; gap: 14px; }
.combat-roll-concealed { visibility: hidden; }
.combat-die-result > p { display: grid; gap: 4px; margin: 0; }
.combat-die-result > p > span { color: var(--game-muted); font-size: 12px; }
.combat-picture-group { margin-top: 16px; }
.combat-picture-group h4 { margin: 0 0 8px; font-size: 14px; }
.combat-pictures { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.combat-pictures li { width: 64px; min-height: 64px; border: 1px solid var(--game-line); border-radius: 8px; padding: 4px; font-size: 11px; overflow-wrap: anywhere; }
.combat-pictures img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.combat-notices ul { margin: 10px 0; padding-left: 20px; }
.combat-notices li + li { margin-top: 8px; }
.combat-supplies h4 { margin: 16px 0 8px; font-size: 13px; }
.combat-stock { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.combat-stock li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.combat-stock img { width: 38px; height: 42px; object-fit: contain; flex: 0 0 auto; }
.combat-stock span { flex: 1; overflow-wrap: anywhere; }
.combat-stock small { display: block; color: var(--game-muted); }
.combat-stock strong { white-space: nowrap; }

/* The adventure stage keeps its primary action in the shared bottom dock. */
.gameplay-stage .combat-panel--stage { width: min(100%, 520px); margin: 0 auto; padding: 16px 4px 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.combat-panel--stage .combat-heading { flex-direction: column; gap: 8px; text-align: center; }
.combat-panel--stage .combat-portrait { width: 180px; height: 180px; max-width: 60vw; border-radius: 25px; filter: drop-shadow(0 8px 24px rgba(224, 127, 55, .19)); }
.browser-start .combat-panel--stage .combat-heading h3 { margin: 0; font-size: 22px; line-height: 1.2; }
.combat-panel--stage .combat-heading p { margin: 3px 0 0; font-size: 12px; color: var(--game-muted); }
.combat-panel--stage .combat-heading .gameplay-eyebrow { font-size: 10px; letter-spacing: .12em; }
.combat-panel--stage .combat-rule { margin: 10px 0 0; justify-content: center; text-align: center; font-size: 12px; gap: 6px; }
.combat-panel--stage .combat-rule-choice { gap: 6px; }
.combat-panel--stage .combat-rule-choice strong { width: 25px; height: 25px; border-color: #e8c59c40; background: #e8b26b0d; color: #f3d5a5; }
.combat-panel--stage .combat-threshold { margin: 6px auto; max-width: 44ch; text-align: center; font-size: 11px; }
.combat-panel--stage .combat-supplies { margin-top: 4px; border: 0; }
.combat-panel--stage .combat-supplies summary, .combat-panel--stage .combat-notices summary { padding: 9px 0; font-size: 12px; color: var(--game-muted); }
.combat-panel--stage .combat-supplies[open] { padding-bottom: 8px; }
.combat-panel--stage .combat-result { margin-top: 12px; padding-top: 0; border: 0; }
.combat-panel--stage .combat-result > h3 { margin: 6px 0 8px; }
.combat-panel--stage .combat-die-result { justify-content: center; margin: 10px 0; gap: 14px; }
.combat-panel--stage .combat-die-result .dice-roll { --dice-size: 60px; }
.combat-panel--stage .combat-die-result > p > strong { font-size: 19px; line-height: 1.2; }
.combat-panel--stage .combat-coins-change { margin: 8px 0; text-align: center; font-size: 13px; color: #e9c790; }
.combat-panel--stage .combat-coins-change strong { font-size: 18px; }
.combat-panel--stage .combat-result-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.combat-panel--stage .combat-result-facts dd { font-size: 16px; overflow-wrap: anywhere; }
.combat-panel--stage .combat-card-changes { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 18px; }
.combat-panel--stage .combat-picture-group { margin-top: 8px; min-width: 0; max-width: 100%; }
.combat-panel--stage .combat-picture-group h4 { margin-bottom: 5px; font-size: 11px; text-align: center; color: var(--game-muted); }
.combat-panel--stage .combat-pictures { justify-content: center; gap: 6px; }
.combat-panel--stage .combat-pictures li { width: 60px; min-height: 60px; padding: 2px; border: 0; background: #f3d8af08; }
.combat-panel--stage .combat-notices { margin-top: 8px; }
.combat-panel--stage.combat-panel--resolved .combat-heading { gap: 6px; }
.combat-panel--stage.combat-panel--resolved .combat-portrait { width: 120px; height: 120px; border-radius: 20px; }
.browser-start .combat-panel--stage.combat-panel--resolved .combat-heading h3 { font-size: 18px; }
.gameplay-action-dock .combat-roll, .gameplay-action-dock .combat-continue { width: 100%; margin: 0; }
.gameplay-stage .gameplay-action-dock .combat-roll { display: flex; min-height: 68px; justify-content: center; padding: 16px 24px; border: 0; border-radius: 17px; color: #422116; background: linear-gradient(115deg, #ffb58e, #f58c61); box-shadow: 0 4px 0 #b96743, 0 8px 32px #eea07719; font-size: 24px; font-weight: 700; letter-spacing: -.025em; transition: box-shadow .12s ease; }
.gameplay-stage .gameplay-action-dock .combat-roll:not(:disabled):active { box-shadow: 0 4px 0 #b96743, inset 0 0 0 2px #42211626; }
.gameplay-stage .gameplay-action-dock .combat-roll:disabled { opacity: .55; box-shadow: none; }

@media (prefers-reduced-motion: reduce) { .gameplay-stage .gameplay-action-dock .combat-roll { transition: none; } }
@media (max-width: 680px) {
    .gameplay-stage .combat-panel--stage { padding-top: 6px; }
    .combat-panel--stage .combat-portrait { width: 160px; height: 160px; }
    .combat-panel--stage.combat-panel--resolved .combat-portrait { width: 104px; height: 104px; }
    .combat-die-result .dice-roll, .combat-roll-waiting .dice-roll, .combat-panel--stage .combat-die-result .dice-roll { --dice-size: 48px; }
    .combat-panel--stage .combat-pictures li { width: 54px; min-height: 54px; }
    .combat-panel--stage .combat-result { margin-top: 8px; }
    .combat-panel--stage .combat-die-result > p > strong { font-size: 17px; }
    .combat-panel--stage .combat-supplies summary, .combat-panel--stage .combat-notices summary { padding: 8px 0; }
}
@media (max-width: 360px) { .combat-panel .combat-charges, .combat-panel .combat-result-facts { grid-template-columns: 1fr; } }
.gameplay-panel {
    --game-paper: #f7f8ef;
    --game-ink: #253d31;
    --game-muted: #657565;
    --game-line: #dce3d2;
    --game-green: #365f43;
    --game-soft: #eaf0df;
    --game-gold: #795618;
    text-align: left;
    color: var(--game-ink);
    margin: 24px 0 8px;
    font: 400 15px/1.55 system-ui, sans-serif;
}
.gameplay-panel * { box-sizing: border-box; }
.gameplay-panel h2, .gameplay-panel h3, .gameplay-panel p { margin: 0; }
.gameplay-panel h3 { font-size: 18px; line-height: 1.3; }
.gameplay-panel svg { width: 22px; height: 22px; flex: 0 0 auto; }
.gameplay-panel p { margin-top: 8px; }
.gameplay-panel .gameplay-muted { color: var(--game-muted); font-size: 13px; }
.gameplay-panel button { font: inherit; min-height: 46px; transition: background .15s ease; }
.gameplay-panel button:disabled { cursor: default; opacity: .5; }
.gameplay-panel button:focus-visible, .gameplay-panel summary:focus-visible { outline: 3px solid #bb873b; outline-offset: 3px; }
.gameplay-panel .gameplay-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 12px; padding: 11px 16px; color: #fffdf1; background: var(--game-green); cursor: pointer; }
.gameplay-panel .gameplay-button--quiet { background: transparent; color: var(--game-ink); border-color: var(--game-line); }
.gameplay-route-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gameplay-panel .gameplay-route { height: 100%; width: 100%; padding: 15px; display: flex; align-items: center; justify-content: space-between; text-align: left; gap: 10px; border: 1px solid var(--game-line); border-radius: 12px; background: var(--game-paper); color: var(--game-ink); }
.gameplay-route > span { min-width: 0; display: grid; gap: 4px; }
.gameplay-route strong { font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.gameplay-route small { color: var(--game-muted); font-size: 11px; }
.gameplay-route-distance { color: var(--game-green); font-size: 12px; font-weight: 600; }
.gameplay-panel .gameplay-return { margin-top: 14px; width: 100%; }
.gameplay-message { padding: 15px; margin-top: 18px; border-radius: 12px; background: var(--game-soft); font-size: 14px; }
.gameplay-message p:first-child { margin-top: 0; }
.gameplay-recovery { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gameplay-recovery button { flex: 1; font-size: 13px; }
.gameplay-result { border: 1px solid var(--game-line); padding: 20px; margin: 20px 0; border-radius: 16px; background: var(--game-paper); }
.gameplay-eyebrow { color: var(--game-muted); font-size: 10px; font-weight: 700; letter-spacing: .14em; margin-bottom: 8px; }
.gameplay-result > p { font-size: 14px; }
.gameplay-result > button { margin-top: 16px; width: 100%; }
.browser-start[data-theme=dark] .gameplay-panel:not(.gameplay-stage):not(.item-panel) { --game-paper: #293c2c; --game-ink: #ecf1df; --game-muted: #b9c9ac; --game-line: #4c6047; --game-green: #446c4f; --game-soft: #354b32; --game-gold: #e6c278; }
.browser-start[data-theme=dark] .gameplay-route-distance { color: #c3d9ac; }
@media (max-width: 440px) {
    .gameplay-route-list { grid-template-columns: 1fr; }
    .gameplay-result { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { .gameplay-panel button { transition: none; } }

/* The playfield is a viewport into the adventure; only its history scrolls. */
.browser-start .gameplay-stage {
    --game-paper: #1c3027;
    --game-ink: #f1f0df;
    --game-muted: #a7b9a8;
    --game-line: #d5e7c81c;
    --game-green: #bddf97;
    --game-soft: #294333;
    --game-gold: #e4c98a;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--game-line);
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: radial-gradient(ellipse at 50% 62%, #506a3633, transparent 65%), #15261fe8;
    color: var(--game-ink);
    font: 400 14px/1.5 system-ui, sans-serif;
}
.gameplay-atmosphere { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .055; filter: saturate(.4); pointer-events: none; }
.gameplay-stage-top { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 48px; padding: 12px 24px; color: #b8c8b8; font-size: 11px; border-bottom: 1px solid #d1e6c60b; }
.gameplay-live-dot { width: 5px; height: 5px; background: #c5dfa4; border-radius: 50%; box-shadow: 0 0 12px #c5dfa477; }
.browser-start .gameplay-trail-link { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 0; min-height: 24px; background: transparent; color: #cbd9bd; font-size: 11px; }
.gameplay-trail-link svg { width: 14px; height: 14px; }
.gameplay-stage-progress { display: block; flex: 0 0 auto; width: 100%; height: 2px; margin: 0; border: 0; background: #a5c68b15; color: #accf84; accent-color: #accf84; }
.gameplay-stage-progress::-webkit-progress-bar { background: #a5c68b15; }
.gameplay-stage-progress::-webkit-progress-value { background: #accf84; }
.gameplay-stage-progress::-moz-progress-bar { background: #accf84; }
.activity-feed { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #6e8c6550 transparent; overflow-anchor: none; }
.activity-feed:focus-visible { outline: 2px solid #c4dbaa; outline-offset: -4px; border-radius: 12px; }
.activity-feed-content { display: flex; flex-direction: column; min-height: 100%; padding: 16px 36px 24px; }
.browser-start .activity-history-label { text-align: center; margin: 4px 0 30px; color: #a7bda38c; font-size: 10px; letter-spacing: .04em; }
.activity-entry { position: relative; width: 100%; max-width: 530px; margin: 0 auto; padding: 28px 12px; text-align: center; flex: 0 0 auto; }
.activity-entry + .activity-entry::before { content: ''; display: block; width: 32px; height: 1px; margin: -28px auto 28px; background: #bed5a82b; }
.activity-caption { display: flex; justify-content: center; gap: 12px; font-size: 9px; letter-spacing: .16em; color: #b8c8af9c; }
.activity-caption time { letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.activity-author { max-width: 70%; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #c5d5bc; }
.activity-stickers { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin: 14px auto 16px; }
.activity-stickers figure { margin: 0; min-width: 0; flex: 0 1 260px; }
.activity-sticker { width: 100%; max-width: 260px; height: 230px; object-fit: contain; filter: drop-shadow(0 12px 18px #020c0966); display: block; margin: 0 auto; }
.activity-entry--latest { padding-top: 30px; padding-bottom: 18px; }
.activity-entry--latest .activity-sticker { max-width: 340px; height: clamp(230px, 37dvh, 350px); }
.activity-entry--latest .activity-stickers figure { flex-basis: 340px; }
.activity-stickers--pair .activity-sticker { max-width: 230px; }
.activity-rarity { display: inline-block; margin-top: 9px; padding: 3px 10px; border-radius: 20px; border: 1px solid #c1d6a82a; color: #c9dabb; font-size: 10px; letter-spacing: .025em; background: #a2c27e08; }
.browser-start .activity-entry h3 { margin: 6px 0 0; font-size: 19px; font-weight: 550; letter-spacing: -.02em; color: #f1f1df; }
.browser-start .activity-entry--latest h3 { font-size: 25px; }
.browser-start .activity-description { max-width: 380px; margin: 7px auto 0; font-size: 12px; line-height: 1.6; color: #b5c4ac; }
.activity-entry:has(.game-narrative) { overflow-wrap: anywhere; }
.activity-reward { margin-top: 10px; color: #e4ca8c; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.activity-reward > span:last-child { font-size: 11px; font-weight: 400; color: #c7b985; }
.activity-reward > span:first-child { margin-right: 4px; font-size: 17px; }
.activity-levels { padding: 0; margin: 9px 0; list-style: none; font-size: 12px; color: #d8e9a8; }
.activity-details { margin: 13px auto 0; max-width: 420px; font-size: 11px; color: #a6b99e; }
.activity-details summary { cursor: pointer; list-style-position: inside; }
.activity-details[open] { padding: 12px; border: 1px solid var(--game-line); border-radius: 10px; }
.activity-details p, .activity-details ul { text-align: left; }
.activity-entry--travel, .activity-entry--note, .activity-entry--refused, .activity-entry--skipped, .activity-entry--city { padding-block: 20px; }
.activity-entry--refused h3, .activity-entry--skipped h3 { color: #e1c3a3; }
.activity-die { margin: 14px auto 12px; }
.activity-die svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 9px #0004); }
.activity-die rect { fill: #f4eee0; stroke: #c4c2b7; stroke-width: 1; }
.activity-die circle { fill: #3a4c3c; }
.browser-start .activity-history-status { margin: 12px 0 0; text-align: center; font-size: 11px; color: var(--game-muted); }
.gameplay-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 40px 10px; text-align: center; }
.gameplay-empty-mark { display: grid; place-items: center; width: 94px; height: 94px; margin-bottom: 28px; border-radius: 30px; transform: rotate(-7deg); border: 1px solid #b1d78632; background: radial-gradient(ellipse at 20% 10%, #69855230, #293f2420); box-shadow: 0 0 90px #9ab96512; }
.gameplay-empty-mark svg { width: 43px; height: 43px; color: #c1dba6; transform: rotate(7deg); }
.browser-start .gameplay-empty h2 { margin: 7px 0 0; font: 400 clamp(24px, 4vw, 35px)/1.2 Georgia, serif; color: #ecebda; }
.browser-start .gameplay-empty p { max-width: 300px; margin: 15px auto 0; color: #afc0a7; font-size: 13px; }
.gameplay-action-dock { flex: 0 0 auto; position: relative; z-index: 2; padding: 18px clamp(18px, 6vw, 64px) max(18px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, #16271ffb 70%, #17281fea); border-top: 1px solid #c9dfb619; }
.gameplay-stage .gameplay-button { color: var(--appearance-on-primary, #213a26); background: var(--appearance-primary, #c6e49f); border-radius: 13px; }
.gameplay-stage .gameplay-button--quiet { color: var(--game-ink); border-color: #d4e5c631; background: #cbe1b707; }
.gameplay-stage .gameplay-button--catch { display: flex; width: 100%; min-height: 68px; padding: 16px 24px; border-radius: 17px; background: linear-gradient(115deg, #d0e9ad, #b0d38e); color: #243c25; box-shadow: 0 4px 0 #82a868, 0 8px 36px #b0d98b13; font-size: 25px; font-weight: 700; letter-spacing: -.025em; transition: box-shadow .12s ease, background .15s; }
.gameplay-stage .gameplay-button--catch:has(> span) { display: grid; grid-template-columns: 26px minmax(0, 1fr) 26px; }
.gameplay-stage .gameplay-button--catch span { text-align: center; }
.gameplay-stage .gameplay-button--catch > span:last-child { flex: 0 0 auto; font-size: 20px; color: #4c7148; }
.gameplay-stage .gameplay-button--catch svg { width: 26px; height: 26px; }
.gameplay-stage .gameplay-button--catch:not(:disabled):active { box-shadow: 0 4px 0 #82a868, inset 0 0 0 2px #243c2526; }
.gameplay-stage .gameplay-button--catch:disabled { opacity: .6; box-shadow: none; }
.gameplay-stage .gameplay-button--working:disabled { opacity: .85; box-shadow: 0 4px 0 #82a868; }
.gameplay-dock-feedback { display: grid; place-items: center; min-height: 30px; margin-top: 8px; }
.browser-start .gameplay-dock-hint { margin: 0; text-align: center; font-size: 10px; color: #b5c8a48c; letter-spacing: .02em; }
.gameplay-dock-notice { margin: 0 0 14px; padding: 0; color: #d8dcc3; font-size: 12px; text-align: center; }
.browser-start .gameplay-dock-notice p { margin: 0; }
.gameplay-dock-notice button { margin-top: 8px; font-size: 12px; }
.gameplay-stage .gameplay-new-events { position: absolute; z-index: 3; bottom: 145px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid #aacd803d; border-radius: 24px; background: #344c35; color: #e4edcf; box-shadow: 0 4px 18px #06110b66; font-size: 11px; white-space: nowrap; }
.gameplay-new-events svg { width: 15px; height: 15px; }
.gameplay-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gameplay-journey-drawer { position: absolute; z-index: 4; inset: 12px 12px auto; max-height: calc(100% - 24px); overflow-y: auto; padding: 24px; border-radius: 17px; border: 1px solid #aec89740; background: #20392afa; box-shadow: 0 15px 80px #031008cc; }
.gameplay-journey-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.gameplay-journey-drawer > header button { padding: 8px; min-height: 38px; }
.gameplay-journey-drawer .gameplay-route-list { grid-template-columns: 1fr; margin-top: 18px; }
.gameplay-stage .gameplay-route { background: #c1d9a508; border-color: #c6dcb62b; color: #e6edd8; }
.gameplay-stage .gameplay-route-distance { color: #c1d7a7; }
.gameplay-stage .gameplay-return { margin-top: 18px; }
/* Reveal only after scrolling and image decoding. Keep article geometry fixed so
   transformed overflow cannot move the scroll destination during the reveal. */
.activity-entry--arrive { animation: activity-arrive .24s ease-out both; }
.activity-entry--arrive .activity-stickers, .activity-entry--arrive .activity-die { animation: sticker-arrive .24s ease-out both; will-change: transform; }
@keyframes activity-arrive { from { opacity: .25; } to { opacity: 1; } }
@keyframes sticker-arrive { from { transform: translateY(-10px); } to { transform: translateY(0); } }
@media (max-width: 800px) {
    .browser-start .gameplay-stage { border-radius: 16px 16px 0 0; min-height: 0; }
    .gameplay-stage-top { min-height: 30px; padding: 4px 12px; font-size: 9px; }
    .browser-start .gameplay-trail-link { font-size: 9px; max-width: 78%; }
    .activity-feed-content { padding: 8px 12px; }
    .activity-entry { padding: 22px 4px; }
    .activity-entry--latest .activity-sticker { height: clamp(180px, 29dvh, 280px); max-width: 290px; }
    .activity-sticker { height: 185px; max-width: 240px; filter: drop-shadow(0 5px 7px #020c0944); }
    .activity-stickers--pair .activity-sticker { height: 180px; }
    .browser-start .activity-entry--latest h3 { font-size: 19px; line-height: 1.2; }
    .gameplay-action-dock { padding: 10px 14px max(10px, env(safe-area-inset-bottom)); }
    .gameplay-stage .gameplay-button--catch { min-height: 54px; padding: 11px 20px; font-size: 22px; border-radius: 14px; }
    .gameplay-dock-feedback { min-height: 26px; margin-top: 5px; }
    .browser-start .gameplay-dock-hint { font-size: 9px; }
    .gameplay-stage .gameplay-new-events { bottom: 105px; }
    .gameplay-empty { padding: 28px 8px; }
    .gameplay-empty-mark { width: 70px; height: 70px; margin-bottom: 20px; border-radius: 24px; }
    .gameplay-empty-mark svg { width: 34px; height: 34px; }
    .gameplay-journey-drawer { inset: 8px 8px auto; padding: 18px; }
}

/* The newest catch fits the actual space left by the HUD and action dock, including
   mobile browser chrome. Its artwork yields to the real metadata height, not a
   viewport estimate. Older entries and expanded details keep normal scrollback. */
@supports (height: 1cqh) {
    .activity-feed { container-type: size; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest { display: flex; flex-direction: column; height: min(610px, calc(100cqh - 24px)); min-height: 240px; padding: 16px 12px 12px; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest::before { position: absolute; top: 0; left: calc(50% - 16px); margin: 0; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest > :not(.activity-stickers) { flex: 0 0 auto; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-stickers { flex: 1 1 0; min-height: 120px; margin: 8px auto 10px; width: 100%; align-items: stretch; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-stickers figure { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 0; height: 100%; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-sticker { flex: 1 1 0; height: 0; min-height: 0; max-height: 350px; object-fit: contain; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-rarity { flex: 0 0 auto; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest:has(.activity-details[open], .game-narrative) { height: auto; min-height: 0; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest:has(.activity-details[open], .game-narrative) .activity-stickers { flex: 0 0 auto; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest:has(.activity-details[open], .game-narrative) .activity-stickers figure { height: auto; }
    :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest:has(.activity-details[open], .game-narrative) .activity-sticker { flex: 0 0 auto; height: clamp(140px, 55cqh, 350px); }
    @media (max-width: 800px) {
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest { height: min(530px, calc(100cqh - 16px)); padding: 10px 2px 8px; }
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-caption { font-size: 8px; line-height: 1.5; }
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-stickers { min-height: 124px; margin: 6px auto 8px; }
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-sticker { max-height: 300px; }
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-rarity { margin-top: 5px; padding: 2px 8px; font-size: 9px; line-height: 1.4; }
        .browser-start :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest h3 { margin-top: 4px; }
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-reward { margin-top: 4px; font-size: 18px; line-height: 1.3; }
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-levels { margin: 4px 0 0; font-size: 11px; line-height: 1.4; }
        :is(.activity-entry--catch, .activity-entry--instant, .activity-entry--reward, .activity-entry--chests, .activity-entry--fly-money, .activity-entry--reaction).activity-entry--latest .activity-details { margin-top: 6px; font-size: 10px; line-height: 1.5; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .activity-entry--arrive, .activity-entry--arrive .activity-stickers, .activity-entry--arrive .activity-die { animation: none; will-change: auto; }
    .gameplay-stage .gameplay-button--catch { transition: none; }
}

/* Captured event photos keep their full framing; losses remain visually distinct. */
.activity-sticker--photo { border-radius: 12px; filter: none; }
.activity-reward--loss { color: #edb1a2; }

.activity-event-badge { display: block; width: 44px; height: 44px; object-fit: contain; margin: 5px auto 0; }
.activity-card-name { flex: 0 0 auto; width: 100%; margin-top: 5px; font-size: 11px; line-height: 1.3; color: #e1e8d6; overflow-wrap: anywhere; }
.activity-entry--reward .activity-rarity { margin-top: 4px; }

.activity-card-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* Chest choices remain independent of Catch; only a command in flight owns the controls. */
.chest-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 350px; margin: 12px auto 0; }
.gameplay-stage .chest-choice { min-height: 48px; padding: 8px 10px; font-size: 19px; font-weight: 650; background: #ddca94; color: #3e3524; }
.chest-choice > svg { width: 20px; height: 20px; }
@media (max-width: 800px) {
    .chest-choices { gap: 7px; margin-top: 8px; }
    .gameplay-stage .chest-choice { min-height: 44px; padding: 5px 8px; font-size: 17px; }
    .browser-start .activity-entry--chests .activity-description { font-size: 11px; line-height: 1.4; }
}
.quest-panel, .quest-command { --quest-paper: #1b2e24; --quest-soft: #21382b; --quest-ink: #eff0dd; --quest-muted: #b2c2ae; --quest-line: #cbdcb52b; --quest-accent: #c6dfa7; color: var(--quest-ink); background: var(--quest-paper); border: 1px solid var(--quest-line); border-radius: 18px; padding: 22px; text-align: left; }
.quest-panel { flex: 0 0 auto; }
.quest-command { flex: 0 0 auto; margin-bottom: 12px; padding: 14px 18px; }
.quest-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.browser-start .quest-panel h2, .browser-start .quest-panel h3, .browser-start .quest-panel h4, .browser-start .quest-command h3 { color: var(--quest-ink); margin: 0; }
.browser-start .quest-panel h2 { font-size: 23px; }
.browser-start .quest-panel h3 { font-size: 17px; }
.browser-start .quest-panel h4 { font-size: 15px; }
.browser-start .quest-panel p, .browser-start .quest-command p { font-size: 13px; line-height: 1.55; margin: 9px 0; overflow-wrap: anywhere; }
.quest-eyebrow { color: var(--quest-muted); font-size: 10px; letter-spacing: .1em; }
.browser-start .quest-panel button, .browser-start .quest-command button { border: 1px solid transparent; background: var(--quest-accent); color: #203421; border-radius: 10px; font: 600 13px/1.4 system-ui, sans-serif; padding: 10px 14px; min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.browser-start .quest-panel button.quest-quiet, .browser-start .quest-command button.quest-quiet { color: var(--quest-ink); background: transparent; border-color: var(--quest-line); font-weight: 400; }
.browser-start .quest-panel button.quest-text { display: inline; background: transparent; color: var(--quest-accent); padding: 0 4px; text-decoration: underline; }
.browser-start .quest-panel button:disabled, .browser-start .quest-command button:disabled { opacity: .5; cursor: default; }
.quest-muted, .quest-journal-note { color: var(--quest-muted); }
.quest-residents, .quest-journal { margin-top: 24px; }
.quest-npc-list { display: grid; gap: 12px; margin-top: 12px; }
.quest-npc { display: flex; gap: 16px; align-items: start; padding: 14px; border: 1px solid var(--quest-line); border-radius: 13px; }
.quest-npc > div { min-width: 0; flex: 1; }
.quest-npc-portrait { width: 80px; height: 90px; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.quest-dialogue { margin-top: 22px; border: 1px solid var(--quest-line); border-radius: 14px; background: var(--quest-soft); padding: 20px; }
.quest-dialogue-heading { display: flex; align-items: center; gap: 12px; }
.npc-panel > .quest-heading .quest-actions { margin-top: 0; }
.quest-dialogue-heading .quest-npc-portrait { width: 60px; height: 64px; }
.quest-dialogue-illustration { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; max-height: 460px; margin: 18px 0; overflow: hidden; border: 1px solid var(--quest-line); border-radius: 12px; background: var(--quest-paper); }
.quest-dialogue-illustration img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.quest-dialogue-illustration img[hidden] { display: none; }
.quest-dialogue-illustration figcaption { padding: 18px; text-align: center; font-size: 13px; }
.quest-dialogue-illustration--unavailable { aspect-ratio: auto; }
.browser-start .quest-panel .quest-speech { font-size: 16px; line-height: 1.65; margin: 17px 0; white-space: pre-wrap; }
.quest-previous-reply { border-left: 2px solid #a0b58a; padding-left: 11px; color: var(--quest-muted); white-space: pre-wrap; }
.quest-previous-reply span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.quest-notice { background: #9bc1691c; border: 1px solid #b9d19030; border-radius: 10px; padding: 10px 12px; }
.quest-unavailable { color: #d5c3a5; margin: 12px 0; }
.quest-replies { display: grid; gap: 9px; margin-top: 16px; }
.browser-start .quest-replies button { text-align: left; }
.quest-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quest-panel summary, .quest-command summary { cursor: pointer; min-height: 36px; padding: 7px 0; }
.quest-entry { margin-top: 14px; padding: 17px; border: 1px solid var(--quest-line); border-radius: 13px; }
.quest-entry--completed { background: #0e201836; }
.quest-state { font-size: 11px; padding: 3px 8px; color: var(--quest-accent); border: 1px solid var(--quest-line); border-radius: 20px; }
.quest-metadata { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--quest-muted); font-size: 11px; margin: 13px 0; }
.quest-stage { padding: 4px 0; border-top: 1px solid var(--quest-line); }
.quest-stage summary { font-size: 13px; font-weight: 600; }
.quest-stage ul { list-style: none; padding: 0; margin: 4px 0 10px; }
.quest-stage li { padding: 10px 0; }
.quest-objective-heading { display: flex; align-items: start; gap: 12px; justify-content: space-between; font-size: 13px; }
.quest-objective-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.quest-objective-copy small { font-size: 11px; color: var(--quest-muted); }
.quest-count { color: var(--quest-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.browser-start .quest-panel .quest-progress-note { color: var(--quest-muted); font-size: 11px; line-height: 1.5; margin: 0 0 12px; }
.quest-stage progress { display: block; width: 100%; height: 3px; margin: 7px 0; border: 0; background: #43563f; accent-color: var(--quest-accent); border-radius: 3px; overflow: hidden; }
.quest-stage progress::-webkit-progress-bar { background: #43563f; }
.quest-stage progress::-webkit-progress-value { background: var(--quest-accent); }
.quest-item-target { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; }
.quest-item-target img { width: 38px; height: 38px; object-fit: contain; }
.quest-item-target small { display: block; color: var(--quest-muted); font-size: 10px; }
.browser-start .quest-panel .quest-objective-context { color: var(--quest-muted); font-size: 11px; }
.quest-turn-in span { display: block; color: var(--quest-muted); font-size: 11px; margin-top: 2px; }
@media (max-width: 600px) {
    .quest-panel { border-radius: 12px; padding: 16px 12px; }
    .quest-command { border-radius: 12px; padding: 12px; }
    .quest-npc { padding: 12px; gap: 10px; }
    .quest-npc-portrait { width: 52px; height: 64px; }
    .quest-dialogue, .quest-entry { padding: 14px 12px; }
    .browser-start .quest-panel .quest-speech { font-size: 15px; }
    .quest-npc button { width: 100%; }
}
/* The standalone map lives inside the existing viewport and does not own page scrolling. */
.browser-start .world-session-map { width: 100%; min-height: 0; flex: 0 0 auto; border-radius: 18px; overflow: hidden; padding-bottom: 0; }
.browser-start .world-session-map .world-header { padding: 16px 22px; }
.browser-start .world-session-map .world-header h2 { color: var(--world-ink); font: 500 1.5rem/1.2 Georgia, serif; margin: 3px 0 0; }
.browser-start .world-session-map .world-detail h3 { color: var(--world-ink); font: 500 1.5rem/1.2 Georgia, serif; margin: 5px 0 12px; }
.browser-start .world-session-map .world-map-stage { height: min(52dvh, 480px); min-height: 320px; }
.browser-start .world-session-map .world-primary { background: var(--world-accent); color: var(--world-on-accent); border-color: var(--world-accent); }
.browser-start .world-session-map .world-secondary, .browser-start .world-session-map .world-destinations button,
.browser-start .world-session-map .world-map-tools button, .browser-start .world-session-map .world-place-label { background: var(--world-paper); color: var(--world-ink); border-color: var(--world-border); }
.browser-start .world-session-map .world-text-button { background: transparent; color: var(--world-ink); }
.browser-start .world-session-map .world-route-choice select { color: var(--world-ink); background: var(--world-paper); max-width: 100%; }
.browser-start .world-session-map .world-map-city { margin-top: 20px; }
.browser-start .world-session-map .world-map-city summary { cursor: pointer; }
.browser-start .world-session-map .world-city-place h4 { color: var(--world-ink); margin: 0; }
.browser-start .world-session-map p { font-size: .875rem; }
@media (max-width: 800px) {
    .browser-start .world-session-map { border-radius: 12px; }
    .browser-start .world-session-map .world-header, .browser-start .world-session-map .world-detail { padding: 14px 12px; }
    .browser-start .world-session-map .world-map-stage { min-height: 310px; }
}
.browser-start { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: #f5f3ed; color: #25352f; }
.browser-start-card { width: min(100%, 560px); padding: clamp(22px, 6vw, 36px); border: 1px solid #dbe0d4; border-radius: 24px; background: #fffdf7; }
.browser-start-card.browser-start-playing { width: min(100%, 960px); }
.browser-start-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #536c5b; }
.browser-start h1 { margin: 12px 0 20px; font-size: clamp(26px, 6vw, 34px); line-height: 1.2; }
.browser-start p { margin: 12px 0; line-height: 1.6; }
.browser-start-note { font-size: 14px; color: #68756b; }
.browser-start h2 { font-size: 23px; margin: 18px 0 12px; }
.browser-start button { cursor: pointer; border: 1px solid transparent; background: var(--appearance-primary, #315c44); color: var(--appearance-on-primary, #fff); border-radius: 12px; padding: 12px 18px; font: inherit; line-height: 1.4; }
.browser-start button:hover { filter: brightness(1.08); }
.browser-start button:focus-visible, .browser-start summary:focus-visible { outline: 3px solid #bd8731; outline-offset: 3px; }
.browser-start button:disabled { cursor: wait; opacity: .55; }
.browser-start button.secondary { background: transparent; color: inherit; border-color: #a9b5a8; }
.browser-start button.text-button { background: transparent; color: inherit; padding-left: 0; text-decoration: underline; }
.browser-start-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.browser-start-notice, .browser-start-error { padding: 12px 16px; border-radius: 12px; background: #e8efdf; }
.browser-start-error { background: #f8e9df; color: #78392f; }
.browser-worlds { padding: 0; margin: 20px 0; list-style: none; display: grid; gap: 12px; }
.browser-worlds button { width: 100%; display: grid; gap: 6px; text-align: left; }
.browser-worlds strong { font-size: 20px; overflow-wrap: anywhere; }
.browser-worlds small { opacity: .85; }
.browser-character-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin-top: 10px; }
.browser-character dl { display: flex; flex-wrap: wrap; gap: 24px; margin: 20px 0 24px; }
.browser-character dt { font-size: 14px; opacity: .8; }
.browser-character dd { margin: 4px 0 0; font-size: 24px; }
.browser-account-actions { border-top: 1px solid #dbe0d4; padding-top: 20px; }
.browser-account-link { margin-top: 24px; font-size: 14px; }
.browser-account-link summary { cursor: pointer; }
.browser-start[data-theme=dark] { background: #17241e; color: #f1f3e9; }
.browser-start[data-theme=dark] .browser-start-card { background: #22332a; border-color: #405446; }
.browser-start[data-theme=dark] .browser-start-kicker, .browser-start[data-theme=dark] .browser-start-note { color: #bdd0bc; }
.browser-start[data-theme=dark] .browser-start-notice { background: #334c35; }
.browser-start[data-theme=dark] .browser-start-error { background: #553a32; color: #ffe3d6; }

/* The authenticated playfield has its own palette; the entry screens retain the environment theme. */
.browser-start.browser-start--game {
    --game-shell-offset: 96px;
    --shell-ink: #f3f0df;
    --shell-muted: #a8b9ab;
    --shell-line: #d8e8d51c;
    min-height: 100dvh;
    display: block;
    position: relative;
    isolation: isolate;
    padding: 20px 28px 0;
    background: radial-gradient(ellipse at 12% 8%, #39534348, transparent 50%),
        radial-gradient(ellipse at 90% 75%, #4c624e1c, transparent 52%), #101e1a;
    color: var(--shell-ink);
    font: 400 14px/1.5 system-ui, sans-serif;
    text-align: left;
}
.browser-start--game *, .browser-start--game *::before, .browser-start--game *::after { box-sizing: border-box; }
.browser-start--game .game-ambient { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100dvh; object-fit: cover; opacity: .07; filter: blur(12px) saturate(.5); pointer-events: none; }
.browser-start.browser-start--game .browser-start-playing { width: min(100%, 1224px); margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; }
.game-topbar { min-height: 52px; display: flex; align-items: center; gap: 24px; padding: 0 3px 18px; }
.game-wordmark { display: flex; align-items: center; gap: 9px; color: #d6e6b5; font-size: 10px; font-weight: 700; letter-spacing: .16em; white-space: nowrap; }
.game-wordmark svg { width: 24px; height: 24px; }
.game-location { min-width: 0; padding-left: 24px; border-left: 1px solid var(--shell-line); }
.game-location > span { display: block; color: var(--shell-muted); font-size: 10px; letter-spacing: .05em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 48vw; }
.browser-start .game-location h1 { margin: 1px 0 0; color: var(--shell-ink); font-size: 18px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.game-travelling { display: flex; gap: 7px; align-items: center; margin-left: auto; font-size: 11px; color: #c6d7b1; }
.game-travelling svg { width: 17px; height: 17px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 980px) 220px; gap: 24px; align-items: start; }
.game-playfield { min-width: 0; min-height: 0; grid-column: 1; grid-row: 1; }
.game-sidebar { min-width: 0; grid-column: 2; grid-row: 1; position: sticky; top: 24px; display: grid; gap: 16px; padding-top: 2px; }
.game-notices:empty { display: none; }
.game-notices > p { font-size: 12px; margin: 0 0 12px; }
.browser-start--game .browser-start-notice { background: #2d4536; color: #dbe9cf; }
.browser-start--game .browser-start-error { background: #583d34; color: #ffe7cf; }
.game-sync-notice { display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin-bottom: 12px; background: #66553044; border: 1px solid #cab26b40; border-radius: 12px; }
.browser-start .game-sync-notice p { margin: 0; font-size: 12px; }
.browser-start .game-sync-notice button { flex-shrink: 0; font-size: 12px; padding: 7px 10px; }
.browser-start--game button:disabled { cursor: default; }
.browser-start--game button:focus-visible, .browser-start--game summary:focus-visible { outline-color: #d1e8a7; }

.player-hud { padding: 18px 16px; border: 1px solid var(--shell-line); background: #24362c88; border-radius: 18px; box-shadow: 0 10px 32px #08130e14; }
.player-hud svg { width: 17px; height: 17px; flex-shrink: 0; }
.player-hud-identity { display: flex; align-items: center; gap: 10px; min-width: 0; position: relative; }
.player-hud-identity > div { min-width: 0; }
.player-hud-avatar { width: 38px; height: 38px; border-radius: 12px; background: #bfdba7; color: #203723; display: grid; place-items: center; flex-shrink: 0; font: 600 21px Georgia, serif; overflow: hidden; }
.player-hud-avatar img { width: 100%; height: 100%; object-fit: cover; }
.browser-start .player-hud h2 { margin: 0; font-size: 14px; font-weight: 650; line-height: 1.3; color: var(--shell-ink); overflow-wrap: anywhere; }
.player-hud-level { color: var(--shell-muted); font-size: 11px; }
.player-hud-sync { width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; margin-left: auto; background: #b7d996; }
.player-hud-sync.is-stale { background: #dab075; }
.player-hud-energy { padding-top: 22px; }
.player-hud-counter { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.player-hud-counter > span, .player-hud-coins > span { display: flex; gap: 6px; align-items: center; color: var(--shell-muted); font-size: 10px; line-height: 1.2; }
.player-hud-counter svg { color: #c8e69f; }
.player-hud-counter strong { color: #d2eaa8; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.player-hud-energy progress { width: 100%; display: block; height: 4px; margin-top: 8px; border: 0; border-radius: 5px; overflow: hidden; background: #445449; color: #c5dea1; accent-color: #c5dea1; }
.player-hud-energy progress::-webkit-progress-bar { background: #445449; }
.player-hud-energy progress::-webkit-progress-value { background: #c5dea1; border-radius: 5px; }
.player-hud-energy progress::-moz-progress-bar { background: #c5dea1; border-radius: 5px; }
.player-hud-energy.is-resting .player-hud-counter strong, .player-hud-energy.is-resting svg { color: #dfc796; }
.player-hud-coins { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--shell-line); gap: 10px; }
.player-hud-coins svg { color: #d5bd7d; }
.player-hud-coins strong { font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.player-hud-effects { display: flex; flex-wrap: wrap; gap: 5px; padding-top: 12px; }
.game-nav { display: grid; gap: 5px; }
.browser-start .game-nav button { display: flex; align-items: center; gap: 11px; text-align: left; min-height: 43px; border-radius: 11px; padding: 10px 14px; font-size: 12px; background: transparent; color: #aebfb0; border: 1px solid transparent; }
.game-nav svg { width: 19px; height: 19px; flex-shrink: 0; }
.browser-start .game-nav button:hover { background: #d6ead014; filter: none; color: #eef3db; }
.browser-start .game-nav button[aria-pressed=true] { background: #c7dea9; color: #203525; border-color: #def0c021; font-weight: 650; box-shadow: 0 4px 16px #0a17131a; }
.game-account-menu { border-top: 1px solid var(--shell-line); padding-top: 13px; color: #9daf9f; }
.game-account-menu > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 7px 12px; font-size: 11px; cursor: pointer; border-radius: 8px; }
.game-account-menu > summary::-webkit-details-marker { display: none; }
.game-account-menu summary svg { width: 16px; height: 16px; }
.game-account-menu .browser-account-actions { border: 0; padding-top: 0; margin-top: 8px; display: grid; gap: 7px; }
.browser-start .game-account-menu button { padding: 9px 10px; font-size: 11px; text-align: left; border-color: #86998145; color: #e0e6d4; }
.game-account-menu .browser-account-link { font-size: 11px; margin: 15px 0 0; padding: 0 9px; }
.game-account-menu .browser-account-link p { font-size: 11px; }

/* Existing owned item panels keep their paper surface and command controls inside the darker game shell. */
.browser-start--game .item-panel, .browser-start--game .item-command { --game-paper: #f6f5e9; --game-ink: #283d31; --game-muted: #687465; --game-line: #d8dfcd; --game-soft: #e6eddc; --game-green: #355e42; --game-gold: #796025; color: var(--game-ink); background: var(--game-paper); }
.browser-start--game .item-panel { margin: 0; padding: 22px; border-radius: 18px; }
.browser-start--game .item-command { margin: 0 0 14px; }
.browser-start--game .item-panel button.secondary, .browser-start--game .item-command button.secondary { color: var(--game-ink); border-color: #a2b398; }
.browser-start--game .item-panel button:focus-visible, .browser-start--game .item-command button:focus-visible { outline-color: #617d43; }

@media (max-width: 800px) {
    .browser-start.browser-start--game { padding: 8px 10px 0; }
    .game-topbar { min-height: 34px; gap: 10px; padding: 0 4px 6px; }
    .game-wordmark { gap: 6px; font-size: 8px; letter-spacing: .12em; }
    .game-wordmark span { display: none; }
    .game-wordmark svg { width: 20px; height: 20px; }
    .game-location { flex: 1; padding-left: 10px; }
    .game-location > span { font-size: 9px; max-width: 100%; line-height: 1.2; }
    .browser-start .game-location h1 { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .game-travelling { display: none; }
    .game-layout { display: flex; flex-direction: column; gap: 8px; }
    .game-sidebar { display: grid; width: 100%; gap: 6px; position: relative; top: auto; padding: 0; }
    .player-hud { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'identity energy coins' 'effects effects effects'; column-gap: 10px; align-items: center; padding: 8px 46px 8px 10px; border-radius: 13px; }
    .player-hud-identity { grid-area: identity; gap: 6px; }
    .player-hud-avatar { width: 25px; height: 25px; border-radius: 8px; font-size: 15px; }
    .browser-start .player-hud h2 { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .player-hud-level { font-size: 9px; white-space: nowrap; }
    .player-hud-sync { margin-left: 0; width: 4px; height: 4px; }
    .player-hud-coins { grid-area: coins; padding: 0; margin: 0; border: 0; gap: 4px; }
    .player-hud-coins > span { font-size: 0; gap: 0; }
    .player-hud-coins svg { width: 14px; height: 14px; }
    .player-hud-coins strong { font-size: 13px; }
    .player-hud-energy { grid-area: energy; display: grid; gap: 3px; padding: 0; min-width: 86px; }
    .player-hud-counter { gap: 6px; }
    .player-hud-counter > span { font-size: 9px; gap: 3px; white-space: nowrap; }
    .player-hud-counter svg { width: 14px; height: 14px; }
    .player-hud-counter strong { font-size: 15px; line-height: 1.2; white-space: nowrap; }
    .player-hud-energy progress { margin: 0; height: 2px; }
    .player-hud-effects { grid-area: effects; padding-top: 5px; }
    .game-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
    .browser-start .game-nav button { flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 4px 2px; text-align: center; font-size: 9px; line-height: 1.2; border-radius: 9px; }
    .game-nav svg { width: 16px; height: 16px; }
    .game-account-menu { position: absolute; top: 1px; right: 1px; padding: 0; border: 0; z-index: 5; }
    .game-account-menu > summary { display: grid; place-items: center; width: 44px; min-height: 44px; padding: 10px; background: transparent; }
    .game-account-menu > summary > span { display: none; }
    .game-account-menu[open] .game-account-menu-content { position: absolute; right: 0; top: 44px; width: min(260px, 80vw); padding: 13px; border-radius: 12px; background: #22352b; border: 1px solid #5d755745; box-shadow: 0 14px 40px #07100bcc; }
    .game-playfield { width: 100%; }
    .browser-start--game .item-panel { padding: 16px 12px; border-radius: 12px; }
    .game-sync-notice { padding: 9px 10px; }
}
@media (max-width: 380px) {
    .game-wordmark span { display: none; }
    .game-location { padding-left: 10px; }
    .game-location > span { max-width: 72vw; }
}
@media (max-width: 440px) {
    .player-hud-energy { min-width: 64px; }
    .player-hud-counter > span { font-size: 0; gap: 0; }
}

/* Fill the available viewport instead of estimating HUD height. Item panes keep their own scroll. */
.browser-start.browser-start--game { height: 100dvh; }
.browser-start.browser-start--game .browser-start-playing { height: 100%; display: flex; flex-direction: column; }
.game-topbar { flex: 0 0 auto; }
.game-layout { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
.game-playfield { height: 100%; display: flex; flex-direction: column; overflow-y: auto; }
.game-adventure-pane { flex: 1 1 auto; min-height: 0; }
@media (max-width: 800px) {
    .game-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
    .game-sidebar { grid-column: 1; grid-row: 1; }
    .game-playfield { grid-column: 1; grid-row: 2; }
}

/* Keep navigation usable in short desktop/landscape windows without extending the page. */
@media (min-width:801px) {
    .game-sidebar { max-height:100%; overflow-y:auto; scrollbar-width:thin; }
}
/* Appearance belongs to the shared client, independently of the host's light /
   dark mode. Forest is the existing CSS; this opt-in palette changes paint only.
   Artwork, rarity, rewards and event-specific action colors retain their meaning. */
.browser-start[data-game-theme="telegram"] {
    color-scheme: dark;
    --appearance-background: #0e171e;
    --appearance-surface: #1c2737;
    --appearance-raised: #213140;
    --appearance-soft: #283b4d;
    --appearance-border: #3d5062;
    --appearance-line: #b9d1e51c;
    --appearance-ink: #f3f6fa;
    --appearance-muted: #a8bbcd;
    --appearance-subtle: #93aabe;
    /* White small labels retain 4.5:1 contrast even with the shared hover filter. */
    --appearance-primary: #2272a9;
    --appearance-on-primary: #ffffff;
    --appearance-catch: #2b8bd2;
    --appearance-catch-edge: #1d6094;
    --appearance-accent: #8dccff;
    --appearance-selection: #253e53;
    --appearance-focus: #86caff;
    --shell-ink: var(--appearance-ink);
    --shell-muted: var(--appearance-muted);
    --shell-line: var(--appearance-line);
    color: var(--appearance-ink);
    background: var(--appearance-background);
    accent-color: var(--appearance-catch);
}
/* Match the native overscroll canvas without touching safe-area sizing. */
.native-host:has(.browser-start[data-game-theme="telegram"]) { background: #0e171e; }

/* Entry, membership selection and the persistent player shell. */
.browser-start[data-game-theme="telegram"] .browser-start-card {
    background: var(--appearance-surface);
    border-color: var(--appearance-border);
}
.browser-start[data-game-theme="telegram"] .browser-start-playing { background: transparent; }
.browser-start[data-game-theme="telegram"] :is(.browser-start-kicker, .browser-start-note) { color: var(--appearance-muted); }
.browser-start[data-game-theme="telegram"] .browser-start-notice { background: var(--appearance-soft); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .browser-start-error { background: #503239; color: #ffdadb; }
.browser-start[data-game-theme="telegram"] .browser-account-actions { border-color: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] button.secondary { border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] :is(button, summary, [tabindex]):focus-visible { outline-color: var(--appearance-focus); }
.browser-start[data-game-theme="telegram"] .browser-worlds button { background: var(--appearance-raised); color: var(--appearance-ink); border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] :is(.game-ambient, .gameplay-atmosphere) { opacity: 0; }
.browser-start[data-game-theme="telegram"] :is(.game-wordmark, .game-travelling) { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .player-hud { background: var(--appearance-raised); box-shadow: 0 10px 32px #030a111a; }
.browser-start[data-game-theme="telegram"] .player-hud-avatar { background: var(--appearance-selection); color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .player-hud-energy:not(.is-resting) :is(.player-hud-counter strong, svg) { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .player-hud-energy progress {
    color: var(--appearance-catch); accent-color: var(--appearance-catch); background: var(--appearance-border);
}
.browser-start[data-game-theme="telegram"] .player-hud-energy progress::-webkit-progress-bar { background: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .player-hud-energy progress::-webkit-progress-value { background: var(--appearance-catch); }
.browser-start[data-game-theme="telegram"] .player-hud-energy progress::-moz-progress-bar { background: var(--appearance-catch); }
.browser-start[data-game-theme="telegram"] .game-nav button { color: var(--appearance-muted); }
.browser-start[data-game-theme="telegram"] .game-nav button:hover { background: var(--appearance-raised); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .game-nav button[aria-pressed="true"] {
    background: var(--appearance-primary); color: var(--appearance-on-primary); border-color: #a9d7ff26; box-shadow: 0 4px 16px #030a111a;
}
.browser-start[data-game-theme="telegram"] .game-account-menu { color: var(--appearance-muted); }
.browser-start[data-game-theme="telegram"] .game-account-menu button { border-color: var(--appearance-border); color: var(--appearance-ink); }
@media (max-width: 800px) {
    .browser-start[data-game-theme="telegram"] .game-account-menu[open] .game-account-menu-content {
        background: var(--appearance-raised); border-color: var(--appearance-border); box-shadow: 0 14px 40px #030911cc;
    }
}
.browser-start[data-game-theme="telegram"] .active-effect { background: var(--appearance-selection); border-color: var(--appearance-border); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .active-effect :is(.active-effect-glyph, strong) { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .active-effect--negative { border-color: #d2a88966; color: #e8cbb9; }
.browser-start[data-game-theme="telegram"] .active-effects-list { scrollbar-color: var(--appearance-border) transparent; }

/* Shared panel tokens, including the legacy light item surface. */
.browser-start[data-game-theme="telegram"] .gameplay-panel,
.browser-start[data-game-theme="telegram"] .gameplay-panel:not(.gameplay-stage):not(.item-panel),
.browser-start[data-game-theme="telegram"] .item-command {
    --game-paper: var(--appearance-surface);
    --game-ink: var(--appearance-ink);
    --game-muted: var(--appearance-muted);
    --game-line: var(--appearance-border);
    --game-green: var(--appearance-primary);
    --game-soft: var(--appearance-soft);
    --game-gold: #e4c98a;
}
.browser-start[data-game-theme="telegram"] :is(.item-panel, .item-command) { background: var(--game-paper); color: var(--game-ink); }
.browser-start[data-game-theme="telegram"] :is(.item-panel, .item-command) button.secondary { border-color: var(--appearance-border); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .item-stock-card { background: var(--appearance-raised); }
.browser-start[data-game-theme="telegram"] .collection-polaroid { background: #fffaf0; color: #3c342c; }
.browser-start[data-game-theme="telegram"] .gameplay-route-distance { color: var(--appearance-accent); }

/* Adventure feed and dock: retain all existing viewport / animation geometry. */
.browser-start[data-game-theme="telegram"] .gameplay-stage {
    --game-line: var(--appearance-line);
    background: var(--appearance-background);
}
.browser-start[data-game-theme="telegram"] .gameplay-stage-top { color: var(--appearance-muted); border-color: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] .gameplay-trail-link { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .gameplay-live-dot { background: var(--appearance-accent); box-shadow: 0 0 12px #8dccff44; }
.browser-start[data-game-theme="telegram"] .gameplay-stage-progress { color: var(--appearance-catch); accent-color: var(--appearance-catch); background: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] .gameplay-stage-progress::-webkit-progress-bar { background: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] .gameplay-stage-progress::-webkit-progress-value { background: var(--appearance-catch); }
.browser-start[data-game-theme="telegram"] .gameplay-stage-progress::-moz-progress-bar { background: var(--appearance-catch); }
.browser-start[data-game-theme="telegram"] .activity-feed { scrollbar-color: var(--appearance-border) transparent; }
.browser-start[data-game-theme="telegram"] .activity-feed:focus-visible { outline-color: var(--appearance-focus); }
.browser-start[data-game-theme="telegram"] :is(.activity-history-label, .activity-caption, .gameplay-dock-hint) { color: var(--appearance-subtle); }
.browser-start[data-game-theme="telegram"] .activity-author { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .activity-entry + .activity-entry::before { background: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] :is(.activity-card-name, .activity-entry h3, .gameplay-empty h2, .lich-personal strong) { color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] :is(.activity-description, .activity-details, .gameplay-empty p, .gameplay-dock-notice,
    .fly-money-hint, .reaction-instruction, .reaction-metrics, .lich-idle-hint, .lich-attack p,
    .lich-participants summary, .lich-rewards summary, .lich-participants p, .lich-rewards p) { color: var(--appearance-muted); }
.browser-start[data-game-theme="telegram"] .lich-participant--own { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] :is(.activity-entry--refused, .activity-entry--skipped) h3 { color: #e1c3a3; }
.browser-start[data-game-theme="telegram"] .activity-levels { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .gameplay-empty-mark { background: var(--appearance-surface); border-color: var(--appearance-border); box-shadow: 0 0 90px #2b8bd212; }
.browser-start[data-game-theme="telegram"] .gameplay-empty-mark svg { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .gameplay-action-dock { background: var(--appearance-background); border-color: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-button--quiet { background: var(--appearance-raised); border-color: var(--appearance-border); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-button--catch {
    background: var(--appearance-catch); color: var(--appearance-on-primary);
    box-shadow: 0 4px 0 var(--appearance-catch-edge), 0 8px 36px #2b8bd213;
}
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-button--catch > span:last-child { color: #c8e7ff; }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-button--catch:not(:disabled):active { box-shadow: 0 4px 0 var(--appearance-catch-edge), inset 0 0 0 2px #ffffff30; }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-button--catch:disabled { box-shadow: none; }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-button--working:disabled { box-shadow: 0 4px 0 var(--appearance-catch-edge); }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-button--working { background: #396484; }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-new-events { background: var(--appearance-raised); color: var(--appearance-ink); border-color: var(--appearance-border); box-shadow: 0 4px 18px #03091166; }
.browser-start[data-game-theme="telegram"] .gameplay-journey-drawer { background: var(--appearance-surface); border-color: var(--appearance-border); box-shadow: 0 15px 80px #030911cc; }
.browser-start[data-game-theme="telegram"] .gameplay-stage .gameplay-route { background: var(--appearance-raised); color: var(--appearance-ink); border-color: var(--appearance-border); }

/* Equipment keeps its item art and effect meaning on neutral blue surfaces. */
.browser-start[data-game-theme="telegram"] .artifact-equipment {
    --artifact-surface: var(--appearance-raised);
    --artifact-deep: var(--appearance-background);
    --artifact-line: var(--appearance-border);
    --artifact-ink: var(--appearance-ink);
    --artifact-muted: var(--appearance-muted);
    --artifact-accent: var(--appearance-accent);
    background: var(--artifact-surface);
}
.browser-start[data-game-theme="telegram"] .artifact-equipment .artifact-slot--equipped { background: var(--appearance-selection); border-color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .artifact-equipment .artifact-stock-tile { background: var(--appearance-surface); border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .artifact-equipment button:hover { border-color: var(--appearance-accent); background-color: var(--appearance-soft); }
.browser-start[data-game-theme="telegram"] .artifact-equipment .artifact-sheet { border-color: var(--appearance-border); box-shadow: 0 24px 90px #030911d9; }
.browser-start[data-game-theme="telegram"] .artifact-sheet-art { background: radial-gradient(ellipse at center, #2b8bd224, transparent 66%); }
.browser-start[data-game-theme="telegram"] .artifact-effects > div { background: var(--appearance-selection); }
.browser-start[data-game-theme="telegram"] .artifact-equipment .artifact-sheet-actions button { background: var(--appearance-primary); color: var(--appearance-on-primary); }
.browser-start[data-game-theme="telegram"] .artifact-equipment .artifact-sheet-actions .artifact-action-quiet { background: transparent; color: var(--appearance-muted); }

/* Native dialog top layers still inherit their owning BrowserStart appearance. */
.browser-start[data-game-theme="telegram"] :is(.item-result-dialog, .collection-detail) { background: var(--appearance-raised); color: var(--appearance-ink); border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] :is(.item-result-dialog, .artifact-sheet, .collection-detail)::backdrop { background: #040a10cc; }
.browser-start[data-game-theme="telegram"] .item-result-heading h2 { color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] :is(.item-result-eyebrow, .item-result-body p, .item-result-values dt, .item-result-footer p) { color: var(--appearance-muted); }
.browser-start[data-game-theme="telegram"] .item-result-values { border-color: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] button.item-result-close { background: var(--appearance-soft); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .item-result-footer > button { background: var(--appearance-primary); color: var(--appearance-on-primary); }
.browser-start[data-game-theme="telegram"] :is(.collection-detail__header h2, .collection-detail__hint, .collection-detail__exchange h3, .protector-choice legend, .protector-choice small) { color: var(--appearance-muted); }
.browser-start[data-game-theme="telegram"] :is(.collection-detail__header button, .collection-detail__exchange-row button) { background: transparent; color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] :is(.collection-detail__exchange, .collection-detail__exchange-row button, .protector-choice label) { border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .collection-detail__feedback { background: var(--appearance-selection); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .collection-detail__error { background: #503239; color: #ffdadb; }

/* Conversations and quests share semantic panel variables, without a new UI. */
.browser-start[data-game-theme="telegram"] :is(.quest-panel, .quest-command) {
    --quest-paper: var(--appearance-surface);
    --quest-soft: var(--appearance-raised);
    --quest-ink: var(--appearance-ink);
    --quest-muted: var(--appearance-muted);
    --quest-line: var(--appearance-border);
    --quest-accent: var(--appearance-accent);
}
.browser-start[data-game-theme="telegram"] :is(.quest-panel, .quest-command) button { background: var(--appearance-primary); color: var(--appearance-on-primary); }
.browser-start[data-game-theme="telegram"] :is(.quest-panel, .quest-command) button.quest-quiet { background: transparent; color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .quest-panel button.quest-text { background: transparent; color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .quest-previous-reply { border-color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .quest-notice { background: var(--appearance-selection); border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .quest-entry--completed { background: var(--appearance-background); }
.browser-start[data-game-theme="telegram"] .quest-stage progress { background: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .quest-stage progress::-webkit-progress-bar { background: var(--appearance-border); }

/* City art remains warm; only chrome and the legibility overlay change. */
.browser-start[data-game-theme="telegram"] .city-panel {
    --city-ink: var(--appearance-ink);
    --city-muted: var(--appearance-muted);
    --city-accent: var(--appearance-accent);
    background: var(--appearance-surface); border-color: var(--appearance-border);
}
.browser-start[data-game-theme="telegram"] .city-districts { background: var(--appearance-surface); border-color: var(--appearance-line); scrollbar-color: var(--appearance-border) transparent; }
.browser-start[data-game-theme="telegram"] .city-districts button { color: var(--appearance-muted); border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .city-districts button[aria-pressed="true"] { color: var(--appearance-on-primary); background: var(--appearance-primary); border-color: var(--appearance-catch); }
.browser-start[data-game-theme="telegram"] .city-breadcrumbs { color: var(--appearance-subtle); }
.browser-start[data-game-theme="telegram"] :is(.city-scene, .city-place-art) { background: var(--appearance-raised); }
.browser-start[data-game-theme="telegram"] .city-scene::after { background: linear-gradient(0deg, #0e171ef5 0%, #0e171e9c 35%, transparent 85%); }
.browser-start[data-game-theme="telegram"] .city-story { color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] :is(.city-places button, .city-services button, .city-route-list article) { background: var(--appearance-raised); border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .city-places button:hover { border-color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .city-residents { background: var(--appearance-raised); border-color: var(--appearance-border); }
.browser-start[data-game-theme="telegram"] .city-residents article + article { border-color: var(--appearance-line); }
.browser-start[data-game-theme="telegram"] :is(.city-residents button, .city-departures button, .city-service-tabs button[aria-pressed="true"]) { background: var(--appearance-primary); color: var(--appearance-on-primary); }
.browser-start[data-game-theme="telegram"] .city-services button svg { color: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .city-service-content .quest-dialogue { border-color: var(--appearance-border); }

/* World map controls change theme; the map illustration and roads do not. */
.browser-start[data-game-theme="telegram"] .world-atlas {
    --world-paper: var(--appearance-surface);
    --world-ink: var(--appearance-ink);
    --world-muted: var(--appearance-muted);
    --world-accent: var(--appearance-primary);
    --world-on-accent: var(--appearance-on-primary);
    --world-border: var(--appearance-border);
    --world-backdrop: var(--appearance-background);
}
.browser-start[data-game-theme="telegram"] .world-active-route path { stroke: var(--appearance-accent); }
.browser-start[data-game-theme="telegram"] .world-player { border-color: var(--appearance-accent); background: var(--appearance-raised); color: var(--appearance-ink); }
.browser-start[data-game-theme="telegram"] .world-player-token { background: var(--appearance-raised); color: var(--appearance-ink); }
