/* Generated from tokens.json; regenerate with tools/generate-tarot-themes.cjs. */
[data-tarot-theme="gilded-codex-dark"] {
  --tarot-gilded-codex-dark-colors-page: #160F0E;
  --tarot-gilded-codex-dark-colors-surface: #22171A;
  --tarot-gilded-codex-dark-colors-surface-raised: #2E2024;
  --tarot-gilded-codex-dark-colors-text: #F2E6D3;
  --tarot-gilded-codex-dark-colors-muted: #C9B59D;
  --tarot-gilded-codex-dark-colors-accent: #D9B26A;
  --tarot-gilded-codex-dark-colors-on-accent: #1E1410;
  --tarot-gilded-codex-dark-colors-border: #9A7E62;
  --tarot-gilded-codex-dark-colors-focus: #8EC5FF;
  --tarot-gilded-codex-dark-colors-error: #FF9F9F;
  --tarot-gilded-codex-dark-colors-success: #9AD9B0;
  --tarot-gilded-codex-dark-typography-heading: serif;
  --tarot-gilded-codex-dark-typography-body: sans;
  --tarot-gilded-codex-dark-geometry-panel-radius-px: 6px;
  --tarot-gilded-codex-dark-geometry-card-radius-px: 10px;
  --tarot-gilded-codex-dark-motion-flip-ms: 600ms;
  --tarot-gilded-codex-dark-motion-draw-ms: 420ms;
  --tt-page: var(--tarot-gilded-codex-dark-colors-page);
  --tt-surface: var(--tarot-gilded-codex-dark-colors-surface);
  --tt-raised: var(--tarot-gilded-codex-dark-colors-surface-raised);
  --tt-text: var(--tarot-gilded-codex-dark-colors-text);
  --tt-muted: var(--tarot-gilded-codex-dark-colors-muted);
  --tt-accent: var(--tarot-gilded-codex-dark-colors-accent);
  --tt-on-accent: var(--tarot-gilded-codex-dark-colors-on-accent);
  --tt-border: var(--tarot-gilded-codex-dark-colors-border);
  --tt-focus: var(--tarot-gilded-codex-dark-colors-focus);
  --tt-error: var(--tarot-gilded-codex-dark-colors-error);
  --tt-success: var(--tarot-gilded-codex-dark-colors-success);
  --tt-radius: var(--tarot-gilded-codex-dark-geometry-panel-radius-px);
  --tt-card-radius: var(--tarot-gilded-codex-dark-geometry-card-radius-px);
  color-scheme: dark;
  background: var(--tarot-gilded-codex-dark-colors-page);
  color: var(--tarot-gilded-codex-dark-colors-text);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
[data-tarot-theme="gilded-codex-dark"] :is(h1,h2,h3) { font-family: "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif; }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-panel,.tarot-dialog) { background: var(--tarot-gilded-codex-dark-colors-surface); border: 1px solid var(--tarot-gilded-codex-dark-colors-border); border-radius: var(--tarot-gilded-codex-dark-geometry-panel-radius-px); }
[data-tarot-theme="gilded-codex-dark"] .tarot-button { color: var(--tarot-gilded-codex-dark-colors-text); background: var(--tarot-gilded-codex-dark-colors-surface-raised); border: 1px solid var(--tarot-gilded-codex-dark-colors-border); border-radius: var(--tarot-gilded-codex-dark-geometry-panel-radius-px); cursor: pointer; }
[data-tarot-theme="gilded-codex-dark"] .tarot-button[data-variant="primary"] { color: var(--tarot-gilded-codex-dark-colors-on-accent); background: var(--tarot-gilded-codex-dark-colors-accent); border-color: var(--tarot-gilded-codex-dark-colors-accent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-button[data-variant="ghost"] { color: var(--tarot-gilded-codex-dark-colors-accent); background: transparent; border-color: transparent; }
[data-tarot-theme="gilded-codex-dark"] .tarot-button:hover:not(:disabled) { box-shadow: 0 0 0 2px var(--tarot-gilded-codex-dark-colors-accent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-button:disabled { opacity: .58; cursor: not-allowed; }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-button,.tarot-card)[aria-pressed="true"] { outline: 3px solid var(--tarot-gilded-codex-dark-colors-accent); outline-offset: 3px; }
[data-tarot-theme="gilded-codex-dark"] :is(button,a,input,select,textarea,summary):focus-visible { outline: 3px solid var(--tarot-gilded-codex-dark-colors-focus); outline-offset: 4px; }
[data-tarot-theme="gilded-codex-dark"] .tarot-field { color: var(--tarot-gilded-codex-dark-colors-text); background: var(--tarot-gilded-codex-dark-colors-surface); border: 1px solid var(--tarot-gilded-codex-dark-colors-border); border-radius: var(--tarot-gilded-codex-dark-geometry-panel-radius-px); }
[data-tarot-theme="gilded-codex-dark"] .tarot-field[aria-invalid="true"] { border: 2px solid var(--tarot-gilded-codex-dark-colors-error); }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-help,.tarot-stepper) { color: var(--tarot-gilded-codex-dark-colors-muted); }
[data-tarot-theme="gilded-codex-dark"] .tarot-stepper [aria-current="step"] { color: var(--tarot-gilded-codex-dark-colors-accent); font-weight: 700; text-decoration: underline; text-underline-offset: .4em; }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-card,.tarot-card-face,.tarot-card-back) { border-radius: var(--tarot-gilded-codex-dark-geometry-card-radius-px); }
[data-tarot-theme="gilded-codex-dark"] .tarot-card { border: 1px solid var(--tarot-gilded-codex-dark-colors-border); background: var(--tarot-gilded-codex-dark-colors-surface-raised); }
[data-tarot-theme="gilded-codex-dark"] .tarot-card-face { transition: transform var(--tarot-gilded-codex-dark-motion-flip-ms) ease; }
[data-tarot-theme="gilded-codex-dark"] .tarot-spread { background: var(--tarot-gilded-codex-dark-colors-surface-raised); border-radius: var(--tarot-gilded-codex-dark-geometry-panel-radius-px); }
[data-tarot-theme="gilded-codex-dark"] .tarot-reading { color: var(--tarot-gilded-codex-dark-colors-text); }
[data-tarot-theme="gilded-codex-dark"] .tarot-status { border-inline-start: 3px solid var(--tarot-gilded-codex-dark-colors-accent); background: var(--tarot-gilded-codex-dark-colors-surface-raised); }
[data-tarot-theme="gilded-codex-dark"] .tarot-status[data-state="error"] { color: var(--tarot-gilded-codex-dark-colors-error); border-color: var(--tarot-gilded-codex-dark-colors-error); background: var(--tarot-gilded-codex-dark-colors-surface); }
[data-tarot-theme="gilded-codex-dark"] .tarot-status[data-state="success"] { color: var(--tarot-gilded-codex-dark-colors-success); border-color: var(--tarot-gilded-codex-dark-colors-success); background: var(--tarot-gilded-codex-dark-colors-surface); }
[data-tarot-theme="gilded-codex-dark"] a { color: var(--tarot-gilded-codex-dark-colors-accent); text-underline-offset: .2em; }
[data-tarot-theme="gilded-codex-dark"] input { accent-color: var(--tarot-gilded-codex-dark-colors-accent); }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-header,.tarot-footer,.tarot-history-item,.tarot-banner,.tarot-reading blockquote) { border-color: var(--tarot-gilded-codex-dark-colors-border); }

/* 鎏金典藏: parchment, gilt frames, corner brackets, wax-seal buttons, ribbon choices. */
[data-tarot-theme="gilded-codex-dark"] { isolation: isolate; --gild: var(--tt-accent); --gild-hi: color-mix(in srgb, var(--tt-accent) 45%, #fff3d6); }
[data-tarot-theme="gilded-codex-dark"]::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(ellipse at 50% 42%, transparent 52%, color-mix(in srgb, #000000 55%, transparent) 100%),
  repeating-linear-gradient(0deg, color-mix(in srgb, var(--tt-text) 3%, transparent) 0 1px, transparent 1px 4px),
  radial-gradient(circle at 16% 20%, color-mix(in srgb, var(--gild) 14%, transparent), transparent 42%),
  radial-gradient(circle at 86% 78%, color-mix(in srgb, var(--tt-accent) 10%, transparent), transparent 46%); }
[data-tarot-theme="gilded-codex-dark"] :is(h1,h2,h3,.tarot-brand,.tarot-stepper,.tarot-footer,.tarot-fab,legend) { font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif; }
[data-tarot-theme="gilded-codex-dark"] :is(h1,h2) { letter-spacing: .08em; }
[data-tarot-theme="gilded-codex-dark"] .tarot-header { border-bottom: 3px double var(--gild); }
[data-tarot-theme="gilded-codex-dark"] .tarot-brand { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .22em; }
[data-tarot-theme="gilded-codex-dark"] .tarot-brand::before, [data-tarot-theme="gilded-codex-dark"] .tarot-brand::after { content: ""; width: 30px; height: 7px; flex: none; background: linear-gradient(var(--gild), var(--gild)) center / 100% 1px no-repeat, radial-gradient(circle, var(--gild) 2.5px, transparent 3px) center / 7px 7px no-repeat; }
[data-tarot-theme="gilded-codex-dark"] nav .tarot-button[data-variant="ghost"] { position: relative; border-radius: 0; color: var(--tt-text); letter-spacing: .14em; font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif; }
[data-tarot-theme="gilded-codex-dark"] nav .tarot-button[data-variant="ghost"]:hover:not(:disabled) { box-shadow: none; color: var(--tt-accent); text-decoration: underline; text-decoration-color: var(--gild); text-underline-offset: .55em; }
[data-tarot-theme="gilded-codex-dark"] nav .tarot-button + .tarot-button::before { content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; background: var(--gild); transform: rotate(45deg); }
[data-tarot-theme="gilded-codex-dark"] .tarot-eyebrow { display: flex; align-items: center; gap: 14px; color: var(--tt-accent); letter-spacing: .32em; }
[data-tarot-theme="gilded-codex-dark"] .tarot-eyebrow::after { content: ""; flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, var(--gild), transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-hero h1::first-letter { font-size: 1.5em; color: var(--tt-accent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-panel { position: relative; }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-panel,.tarot-dialog) { border: 1px solid var(--gild); box-shadow: inset 0 0 0 4px var(--tt-surface), inset 0 0 0 5px color-mix(in srgb, var(--gild) 70%, transparent), 0 12px 32px color-mix(in srgb, #000000 40%, transparent); }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-panel,.tarot-dialog)::before { content: ""; position: absolute; inset: 10px; pointer-events: none; background: linear-gradient(var(--gild), var(--gild)) top left / 22px 2px no-repeat, linear-gradient(var(--gild), var(--gild)) top left / 2px 22px no-repeat, linear-gradient(var(--gild), var(--gild)) top right / 22px 2px no-repeat, linear-gradient(var(--gild), var(--gild)) top right / 2px 22px no-repeat, linear-gradient(var(--gild), var(--gild)) bottom left / 22px 2px no-repeat, linear-gradient(var(--gild), var(--gild)) bottom left / 2px 22px no-repeat, linear-gradient(var(--gild), var(--gild)) bottom right / 22px 2px no-repeat, linear-gradient(var(--gild), var(--gild)) bottom right / 2px 22px no-repeat; }
[data-tarot-theme="gilded-codex-dark"] .tarot-panel h2::after { content: ""; display: block; width: 72px; height: 7px; margin-top: 8px; background: linear-gradient(var(--gild), var(--gild)) center / 100% 1px no-repeat, radial-gradient(circle, var(--tt-accent) 2.5px, transparent 3px) center / 7px 7px no-repeat; }
[data-tarot-theme="gilded-codex-dark"] .tarot-button { border-radius: 3px; letter-spacing: .1em; }
[data-tarot-theme="gilded-codex-dark"] .tarot-button:not([data-variant]) { background: transparent; border: 1px solid var(--gild); box-shadow: inset 0 0 0 2px var(--tt-surface), inset 0 0 0 3px color-mix(in srgb, var(--gild) 55%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-button:not([data-variant]):hover:not(:disabled) { background: color-mix(in srgb, var(--gild) 16%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-button[data-variant="primary"] { background: radial-gradient(130% 150% at 28% 18%, color-mix(in srgb, var(--tt-accent) 80%, #ffffff), var(--tt-accent) 55%, color-mix(in srgb, var(--tt-accent) 72%, #000000)); border-color: color-mix(in srgb, var(--tt-accent) 70%, #000000); box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 30%, transparent), inset 0 -2px 0 color-mix(in srgb, #000000 25%, transparent), 0 3px 10px color-mix(in srgb, var(--tt-accent) 35%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-button[data-variant="primary"]:hover:not(:disabled) { box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 30%, transparent), inset 0 -2px 0 color-mix(in srgb, #000000 25%, transparent), 0 0 0 2px var(--gild), 0 5px 16px color-mix(in srgb, var(--tt-accent) 45%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-field { border-radius: 2px; border-color: var(--gild); box-shadow: inset 0 1px 4px color-mix(in srgb, #000000 30%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-choice { border-radius: 2px; border-color: color-mix(in srgb, var(--gild) 75%, var(--tt-border)); border-left: 3px solid var(--gild); background: var(--tt-surface); }
[data-tarot-theme="gilded-codex-dark"] .tarot-choice:has(input:checked) { background: var(--tt-accent); border-color: var(--tt-accent); box-shadow: inset 0 0 0 2px var(--tt-accent), inset 0 0 0 3px var(--gild-hi), 0 3px 10px color-mix(in srgb, var(--tt-accent) 30%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-choice:has(input:checked) :is(.tarot-choice-title, small) { color: var(--tt-on-accent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-stepper { gap: 8px 26px; letter-spacing: .12em; }
[data-tarot-theme="gilded-codex-dark"] .tarot-stepper li { display: flex; align-items: center; gap: 10px; }
[data-tarot-theme="gilded-codex-dark"] .tarot-stepper li::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--gild); transform: rotate(45deg); }
[data-tarot-theme="gilded-codex-dark"] .tarot-stepper [aria-current="step"] { text-decoration: none; }
[data-tarot-theme="gilded-codex-dark"] .tarot-stepper [aria-current="step"]::before { background: var(--tt-accent); border-color: var(--tt-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gild) 35%, transparent); }
[data-tarot-theme="gilded-codex-dark"] :is(.tarot-card-art img, .tarot-draw-grid img, .tarot-gallery img, .tarot-hero-art img, .tarot-dialog img) { padding: 4px; border-radius: var(--tt-card-radius); background: linear-gradient(135deg, var(--gild), var(--gild-hi) 32%, var(--gild) 58%, var(--gild-hi) 84%, var(--gild)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gild) 60%, #000000), 0 8px 22px color-mix(in srgb, #000000 50%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-hero-art img { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gild) 60%, #000000), 0 26px 60px color-mix(in srgb, #000000 60%, transparent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-keywords { color: var(--tt-accent); letter-spacing: .22em; }
[data-tarot-theme="gilded-codex-dark"] .tarot-reading blockquote { position: relative; margin: 24px 0; padding: 16px 18px 16px 56px; border: 0; border-top: 1px solid var(--gild); border-bottom: 1px solid var(--gild); background: color-mix(in srgb, var(--tt-raised) 60%, transparent); font-family: "Songti SC", "STSong", "SimSun", "Noto Serif CJK SC", "Source Han Serif SC", Georgia, serif; font-style: italic; }
[data-tarot-theme="gilded-codex-dark"] .tarot-reading blockquote::before { content: "\201C" / ""; position: absolute; left: 12px; top: -2px; font: 62px/1 Georgia, serif; color: var(--tt-accent); }
[data-tarot-theme="gilded-codex-dark"] .tarot-history-item { border-bottom: 1px dashed var(--gild); }
[data-tarot-theme="gilded-codex-dark"] .tarot-footer { border-top: 3px double var(--gild); font-style: italic; }
[data-tarot-theme="gilded-codex-dark"] .tarot-fab { border-radius: 3px; border-color: var(--gild); letter-spacing: .12em; box-shadow: inset 0 0 0 2px var(--tt-surface), inset 0 0 0 3px color-mix(in srgb, var(--gild) 55%, transparent), 0 6px 18px color-mix(in srgb, #000000 45%, transparent); }
@media (prefers-reduced-motion: reduce) {
  [data-tarot-theme="gilded-codex-dark"] :is(.tarot-card,.tarot-card-face,.tarot-card-back,.tarot-button,.tarot-spread) { transition: none; animation: none; scroll-behavior: auto; }
}
