:root{
    --ink:#e8dfcc;
    --ink-dim:#b9b3a3;
    --muted:#7f8176;
    --gold:#c2a05e;
    --gold-deep:#8d7648;
    --frost:#8fb3c0;
    --ember:#a94f3d;
    --night:#080b0a;
    --nav-height:calc(56px + env(safe-area-inset-top, 0px));
    --paper:#e9e0cc;
    --serif:"Songti SC","STSong","Noto Serif SC","Source Han Serif SC",serif;
    --page-tools-height:42px;
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0;background:#070a09}
  body{
    color:var(--ink);
    font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
    -webkit-font-smoothing:antialiased;
  }
  button{font-family:inherit;cursor:pointer}
  .app{
    position:relative;
    width:100%;
    max-width:450px;
    min-height:100dvh;
    margin:0 auto;
    overflow:hidden;
    background:
      radial-gradient(82% 52% at 18% 0%,rgba(124,159,174,.16),transparent 62%),
      radial-gradient(70% 46% at 92% 66%,rgba(157,59,51,.13),transparent 66%),
      linear-gradient(180deg,#0d1210 0%,#080b0a 52%,#0b0e0c 100%);
  }
  .app::after{
    content:"";position:absolute;inset:0;pointer-events:none;z-index:8;
    box-shadow:inset 0 0 140px rgba(0,0,0,.55);
  }

  /* 顶部小程序壳：与动物塑/恋爱等测试共用同一套结构 */
  .app-nav-bar{
    position:sticky;top:0;z-index:60;height:var(--nav-height);
    padding-top:env(safe-area-inset-top, 0px);
    background:rgba(8,11,10,.72);
    backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(194,160,94,.10);
  }
  .app-nav-bar__inner{position:relative;display:flex;align-items:center;height:56px}
  .app-nav-bar__back{
    position:absolute;left:8px;width:44px;height:44px;border:0;background:none;padding:0;
    display:grid;place-items:center;
  }
  .app-nav-bar__chevron{
    width:10px;height:10px;border-left:2px solid #e8dfcc;
    border-bottom:2px solid #e8dfcc;transform:rotate(45deg);
  }
  .app-nav-bar__title{
    position:absolute;left:0;right:0;pointer-events:none;text-align:center;
    padding:0 100px;font-size:16px;font-weight:600;letter-spacing:1px;color:#f1e8d6;
    white-space:nowrap;
  }
  .page-tools{
    display:flex;align-items:center;justify-content:flex-end;
    width:100%;max-width:450px;height:var(--page-tools-height);margin:0 auto;padding:0 14px;
  }
  .language-switch{
    position:relative;display:flex;align-items:center;gap:1px;
    height:32px;padding:2px;border:1px solid rgba(232,223,204,.22);
    border-radius:999px;background:rgba(232,223,204,.07);color:rgba(241,232,214,.76);
    z-index:2;
  }
  .language-switch button{
    display:grid;place-items:center;min-width:37px;height:26px;padding:0 6px;
    border:0;border-radius:999px;background:transparent;color:inherit;
    font:inherit;font-size:11px;line-height:1;white-space:nowrap;
  }
  .language-switch button.selected{background:rgba(194,160,94,.24);color:#f1e8d6;font-weight:600}
  .language-switch button:focus-visible{outline:1px solid var(--gold);outline-offset:1px}
  .mini-capsule{
    position:absolute;right:10px;display:flex;align-items:center;
    width:87px;height:32px;border:1px solid rgba(232,223,204,.22);
    border-radius:999px;background:rgba(232,223,204,.07);
    color:rgba(241,232,214,.82);
    box-shadow:0 1px 2px rgba(0,0,0,.08);
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  }
  .mini-capsule button{
    border:0;background:none;padding:0;height:30px;
    display:grid;place-items:center;color:inherit;cursor:pointer;
  }
  .mini-capsule button:first-child{width:47px}
  .mini-capsule button:last-child{width:39px}
  .mini-capsule svg{width:24px;height:22px;fill:currentColor}
  .mini-capsule button:hover{color:#f1e8d6}
  .capsule-divider{height:17px;width:1px;background:rgba(232,223,204,.22);flex-shrink:0}
  /* 主页 */
  .home{
    position:relative;z-index:2;min-height:calc(100dvh - var(--nav-height) - var(--page-tools-height));
    display:flex;flex-direction:column;align-items:center;
    padding:16px 20px calc(128px + env(safe-area-inset-bottom));
    overflow:hidden;
  }
  .home::before{
    content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
    background-image:radial-gradient(rgba(232,223,204,.10) .5px,transparent .7px);
    background-size:18px 18px;opacity:.28;
    -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.5) 60%,transparent 92%);
    mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.5) 60%,transparent 92%);
  }
  .glow{position:absolute;border-radius:50%;pointer-events:none;filter:blur(24px);z-index:0}
  .glow--cold{top:-12%;left:-22%;width:78%;height:48%;background:radial-gradient(circle,rgba(124,159,174,.20),transparent 66%)}
  .glow--warm{right:-24%;bottom:14%;width:64%;height:40%;background:radial-gradient(circle,rgba(157,59,51,.16),transparent 66%)}

  /* 神谕装饰环 */
  .oracle-ring{
    position:absolute;z-index:0;left:50%;top:55%;width:342px;height:342px;
    transform:translate(-50%,-50%);color:var(--gold);opacity:.34;pointer-events:none;
  }
  .oracle-ring .spin{transform-origin:180px 180px;animation:ring-spin 140s linear infinite}
  @keyframes ring-spin{to{transform:rotate(360deg)}}

  .hero{position:relative;z-index:3;text-align:center;padding-top:8px}
  .eyebrow{
    margin:0 0 14px;font-size:8px;letter-spacing:3.4px;color:var(--gold-deep);
    text-transform:uppercase;
  }
  .title{
    margin:0;font-family:var(--serif);font-size:clamp(38px,10.8vw,48px);
    font-weight:600;line-height:1.2;letter-spacing:.08em;color:var(--ink);
    text-indent:.08em;text-shadow:0 3px 36px rgba(194,160,94,.14);
  }
  .subtitle{
    margin:10px 0 0;font-family:var(--serif);font-size:11px;line-height:1.8;
    letter-spacing:.6px;color:var(--ink-dim);
  }
  .ornament{
    display:flex;align-items:center;justify-content:center;gap:9px;
    width:104px;margin:15px auto 13px;
  }
  .ornament::before,.ornament::after{
    content:"";height:1px;flex:1;
    background:linear-gradient(90deg,transparent,rgba(194,160,94,.62));
  }
  .ornament::after{background:linear-gradient(90deg,rgba(194,160,94,.62),transparent)}
  .ornament i{width:5px;height:5px;background:var(--gold);transform:rotate(45deg);opacity:.9}
  .lead{
    margin:0;font-family:var(--serif);font-size:12px;line-height:1.95;
    letter-spacing:.4px;color:var(--ink-dim);
  }

  /* 卡组 */
  .deck{position:relative;z-index:3;width:100%;height:298px;margin-top:6px;perspective:1200px}
  .flip-card{
    position:absolute;left:50%;bottom:0;width:150px;height:252px;padding:0;
    border:0;background:none;color:inherit;text-align:center;appearance:none;-webkit-appearance:none;
    transform-origin:50% 100%;--x:0px;--y:0px;--r:0deg;--s:.613;
    transform:translateX(-50%) translateX(var(--x)) translateY(var(--y)) rotate(var(--r)) scale(var(--s));
    transition:transform .65s cubic-bezier(.2,.72,.2,1);
    cursor:pointer;z-index:1;
  }
  .flip-card:focus-visible{outline:1px solid rgba(194,160,94,.8);outline-offset:7px}
  .slot-1{--x:-122px;--y:-16px;--r:-18deg;z-index:1}
  .slot-2{--x:-85px;--y:-7px;--r:-11deg;z-index:2}
  .slot-3{--x:-55px;--y:-1px;--r:-4deg;z-index:3}
  .slot-4{--x:55px;--y:-1px;--r:4deg;z-index:3}
  .slot-5{--x:85px;--y:-7px;--r:11deg;z-index:2}
  .slot-6{--x:122px;--y:-16px;--r:18deg;z-index:1}
  .flip-card.is-active{--x:0px;--y:0px;--r:0deg;--s:1;z-index:10}
  .flip-inner{
    position:absolute;inset:0;display:block;transform-style:preserve-3d;-webkit-transform-style:preserve-3d;
    transition:transform .72s cubic-bezier(.2,.72,.2,1);
  }
  .flip-card.is-flipped .flip-inner{transform:rotateY(180deg)}
  .flip-face{
    position:absolute;inset:0;display:block;border-radius:4px;overflow:hidden;
    backface-visibility:hidden;-webkit-backface-visibility:hidden;
  }
  .flip-back{
    background:linear-gradient(155deg,#1c2420 0%,#101512 55%,#171d19 100%);
    border:1px solid rgba(194,160,94,.66);
    box-shadow:0 16px 30px rgba(0,0,0,.42);
  }
  .flip-back::before{
    content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
    background:radial-gradient(circle at 50% 43%,rgba(194,160,94,.15),transparent 60%);
  }
  .flip-back .back-inner{
    position:absolute;inset:8px;border:1px solid rgba(194,160,94,.38);border-radius:2px;
    display:flex;flex-direction:column;align-items:center;justify-content:space-between;
    padding:10px 6px 9px;
  }
  .flip-back .back-num{font-family:Georgia,serif;font-size:10px;letter-spacing:2px;color:rgba(194,160,94,.9)}
  .flip-back .back-sigil{width:40px;height:60px;color:var(--gold);opacity:.84}
  .flip-back .back-word{font-size:6px;letter-spacing:2.4px;color:rgba(141,118,72,.95)}
  .flip-front{
    transform:rotateY(180deg);
    background:
      radial-gradient(circle at 28% 16%,rgba(255,255,255,.55),transparent 52%),
      linear-gradient(146deg,#f0e7d5 0%,#e9dfca 52%,#e1d4ba 100%);
    border:1px solid rgba(194,160,94,.88);
    box-shadow:
      0 32px 64px rgba(0,0,0,.64),
      0 0 0 4px rgba(194,160,94,.07),
      inset 0 0 38px rgba(120,90,40,.08);
  }
  .face-inner{
    position:absolute;inset:6px;border:1px solid rgba(168,134,79,.56);
    display:flex;flex-direction:column;align-items:center;
    padding:7px 8px 6px;text-align:center;
  }
  .face-inner::before,.face-inner::after{
    content:"";position:absolute;left:50%;width:5px;height:5px;
    border:1px solid rgba(168,134,79,.72);transform:translateX(-50%) rotate(45deg);
  }
  .face-inner::before{top:-3px}
  .face-inner::after{bottom:-3px}
  .face-top{
    width:100%;display:flex;align-items:center;justify-content:space-between;
    font-family:Georgia,serif;font-size:5px;letter-spacing:1.2px;color:rgba(141,118,72,.95);
  }
  .face-rune{
    width:44px;height:44px;margin-top:8px;border:1px solid rgba(168,134,79,.55);
    border-radius:50%;display:flex;align-items:center;justify-content:center;
    font-family:Georgia,"Songti SC",serif;font-size:24px;line-height:1;color:#a8864f;
    position:relative;
  }
  .face-rune::before{content:"";position:absolute;inset:4px;border:1px dashed rgba(168,134,79,.32);border-radius:50%}
  .face-portrait{
    display:block;width:82px;height:82px;flex:0 0 82px;margin-top:5px;
    overflow:hidden;border-radius:50%;background:#0b100e;
    box-shadow:0 2px 8px rgba(30,24,12,.18);
  }
  .portrait-image{display:block;width:100%;height:100%;object-fit:cover}
  .face-kicker{margin-top:5px;font-size:5px;letter-spacing:2.4px;color:rgba(141,118,72,.9)}
  .face-name{
    margin:4px 0 0;font-family:var(--serif);font-size:26px;font-weight:700;
    line-height:1.2;letter-spacing:4px;color:#242820;text-indent:4px;
  }
  .face-name--long{font-size:23px;letter-spacing:2px;text-indent:2px}
  .face-epithet{margin:3px 0 0;font-size:6.5px;letter-spacing:1.6px;color:#8d7648}
  .face-rule{width:64px;height:1px;margin:7px 0 5px;background:linear-gradient(90deg,transparent,rgba(141,118,72,.7),transparent);position:relative}
  .face-rule::after{content:"";position:absolute;left:50%;top:-2px;width:4px;height:4px;border:1px solid rgba(141,118,72,.8);transform:translateX(-50%) rotate(45deg);background:#e9dfca}
  .face-shadow{font-size:6.5px;letter-spacing:1.1px;color:#92503f}
  .face-axis{margin-top:3px;font-size:6px;letter-spacing:1.2px;color:#8d7648}
  .face-quote{
    margin:2px 0 0;font-family:var(--serif);font-size:8.5px;line-height:1.58;
    letter-spacing:.1px;color:#5f5b4e;
  }
  .face-bottom{margin-top:auto;font-size:4.6px;letter-spacing:1.5px;color:rgba(141,118,72,.86)}

  .pair-line{
    position:relative;z-index:3;margin:14px auto 0;max-width:340px;
    font-size:8.5px;line-height:2;letter-spacing:.3px;text-align:center;color:#7f8176;
  }
  .pair-line>span{display:inline-block;margin-right:5px;color:#a98a55;letter-spacing:1.5px}
  .pair-line b{font-weight:500;color:#d2c9b7}
  .pair-line i{font-style:normal;color:#6f7368;padding:0 2px}
  .pair-line em{font-style:normal;color:#9b8a6e}
  .deck-caption{
    position:relative;z-index:3;margin:4px 0 0;display:flex;align-items:center;justify-content:center;
    flex-wrap:wrap;gap:3px 9px;text-align:center;font-size:7.5px;letter-spacing:1px;color:#7f8176;
  }
  #deck-hint{color:#a98a55;letter-spacing:.4px;white-space:nowrap}
  #deck-hint::before{content:"·";margin-right:5px;color:#6f7368}

  .closing{
    position:relative;z-index:3;margin:auto 0 0;padding-top:18px;
    font-family:var(--serif);font-size:9.5px;line-height:1.95;
    letter-spacing:.4px;text-align:center;color:#898a7c;
  }

  /* 底部操作 */
  .dock{
    position:fixed;z-index:50;left:50%;bottom:0;transform:translateX(-50%);
    width:100%;max-width:450px;
    padding:24px 22px calc(14px + env(safe-area-inset-bottom));
    background:linear-gradient(180deg,rgba(8,11,10,0) 0%,rgba(8,11,10,.86) 34%,#080b0a 64%);
  }
  .cta{
    position:relative;width:100%;height:50px;border:1px solid rgba(194,160,94,.78);
    background:rgba(10,14,12,.55);color:var(--ink);
    display:flex;align-items:center;justify-content:center;gap:12px;
    font-size:13px;letter-spacing:4px;text-indent:4px;
    backdrop-filter:blur(10px);
    transition:background .25s ease,color .25s ease,box-shadow .25s ease;
  }
  .cta::before,.cta::after{
    content:"";position:absolute;top:50%;width:4px;height:4px;
    border:1px solid rgba(194,160,94,.7);transform:translateY(-50%) rotate(45deg);
  }
  .cta::before{left:12px}
  .cta::after{right:12px}
  .cta span:last-child{font-size:12px;letter-spacing:0;text-indent:0;transition:transform .25s ease}
  .cta:hover{background:var(--gold);color:#0b0f0d;box-shadow:0 0 30px rgba(194,160,94,.18)}
  .cta:hover span:last-child{transform:translateX(3px)}
  .dock-meta{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    margin-top:8px;font-size:8px;letter-spacing:.5px;color:#6f7368;
  }
  .dock-meta button{
    border:0;background:none;padding:2px 0;font-size:8.5px;letter-spacing:.4px;
    color:#a98a55;
  }
  .dock-meta button:hover{color:#d0b77f}

  @media(max-width:360px){
    .app-nav-bar__title{font-size:15px;padding:0 90px}
    .mini-capsule{right:7px;width:79px}
    .mini-capsule button:first-child{width:38px}
    .mini-capsule button:last-child{width:38px}
    .home{padding-left:16px;padding-right:16px}
    .title{font-size:36px}
    .lead{font-size:11px}
    .deck{height:274px}
    .slot-1{--x:-100px;--y:-15px;--r:-18deg}
    .slot-2{--x:-74px;--y:-6px;--r:-11deg}
    .slot-3{--x:-48px;--y:-1px;--r:-4deg}
    .slot-4{--x:48px;--y:-1px;--r:4deg}
    .slot-5{--x:74px;--y:-6px;--r:11deg}
    .slot-6{--x:100px;--y:-15px;--r:18deg}
    .flip-card.is-active{--s:.92}
    .face-rune{width:40px;height:40px;font-size:21px}
    .pair-line{font-size:7.5px;line-height:1.95}
    .deck-caption{font-size:7px}
    .closing{display:none}
  }
  @media(min-width:420px){
    .deck{height:312px}
    .slot-1{--x:-132px;--y:-18px;--r:-18deg}
    .slot-2{--x:-92px;--y:-8px;--r:-11deg}
    .slot-3{--x:-60px;--y:-1px;--r:-4deg}
    .slot-4{--x:60px;--y:-1px;--r:4deg}
    .slot-5{--x:92px;--y:-8px;--r:11deg}
    .slot-6{--x:132px;--y:-18px;--r:18deg}
    .flip-card.is-active{--s:1.067}
  }
  @media (prefers-reduced-motion:reduce){
    .oracle-ring .spin{animation:none}
    .cta,.cta span:last-child{transition:none}
  }

/* ============================================================
   以下为完整测试：答题、加载、翻牌、结果页、弹窗
   ============================================================ */
[hidden]{display:none!important}
.app{overflow:visible!important}
.app::after{display:none}
body{background:#070a09}

/* 答题、加载、报告遮罩：沿用追星等测试的公共框架，仅调整主题色。 */
:root{
 --quiz-background:#0d1410;--quiz-ink:#f0e8d7;--quiz-muted:#b6b9aa;--quiz-accent:#d5b676;
 --quiz-backdrop:radial-gradient(ellipse at 100% 15%,#65877526,transparent 65%),linear-gradient(180deg,#0d1410,#17221b);
 --quiz-surface:#1b2720;--quiz-border:#3c4b3e;--quiz-soft:#26362a;--quiz-onAccent:#182017;
 --quiz-selected:#34402b;--quiz-selectedBorder:#c2a05e;--quiz-mark:#2d3a30;--quiz-primary:#d5b676;
 --quiz-progress:linear-gradient(90deg,#8d7648,#d5b676);--quiz-shadow:0 2px 8px #00000012;
 --quiz-selectedShadow:0 0 0 1px #c2a05e20;--quiz-buttonShadow:0 4px 11px #00000020;
 --quiz-disabledSurface:#202c24;--quiz-disabledInk:#859180;
}
.quiz-page { position:relative; z-index:0; min-height:100vh; background:var(--quiz-background); color:var(--quiz-ink); padding-bottom:env(safe-area-inset-bottom); box-sizing:border-box; }
.quiz-atmosphere { position:absolute; z-index:0; top:0; right:0; bottom:0; left:0; pointer-events:none; background-color:var(--quiz-background); background-image:linear-gradient(180deg,var(--quiz-background) 0px,var(--quiz-background) 88px,transparent 260px),var(--quiz-backdrop); }
.quiz-shell { position:relative; z-index:1; max-width:450px; margin:0 auto; padding:14px 18px 24px; box-sizing:border-box; }
.quiz-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.quiz-title { min-width:0; font-size:13.5px; font-weight:600; line-height:1.5; }
.quiz-progress-count { flex-shrink:0; padding:3.5px 9px; border:0.5px solid var(--quiz-border); border-radius:12px; background:var(--quiz-surface); font-size:12px; line-height:1.4; color:var(--quiz-muted); font-variant-numeric:tabular-nums; }
.quiz-progress { height:3px; margin-top:12px; border-radius:4px; overflow:hidden; background:var(--quiz-border); }
.quiz-progress-fill { height:100%; border-radius:4px; background:var(--quiz-progress); transition:width .18s ease; }
.quiz-question { margin:22px 0 17px; }
.quiz-question-number { display:inline-block; padding:3px 7px; margin-bottom:9px; border-radius:5px; background:var(--quiz-soft); color:var(--quiz-accent); font-size:11.5px; font-weight:600; line-height:1.5; letter-spacing:0.5px; }
.quiz-question-title { display:block; font-size:19px; font-weight:700; line-height:1.55; letter-spacing:0.25px; overflow-wrap:break-word; }
.quiz-question-hint { display:block; margin-top:9px; font-size:12.5px; line-height:1.65; color:var(--quiz-muted); }
.quiz-options { display:flex; flex-direction:column; gap:8.5px; }
.quiz-option { display:flex; align-items:center; gap:9px; width:100%; min-height:54px; padding:11.5px 12px; margin:0; box-sizing:border-box; border:1px solid var(--quiz-border); border-radius:12px; background:var(--quiz-surface); color:var(--quiz-ink); box-shadow:var(--quiz-shadow); line-height:1.6; text-align:left; font-weight:400; transition:border-color .15s,box-shadow .15s; }

.quiz-page .quiz-option[disabled] { color:var(--quiz-ink); background:var(--quiz-surface); opacity:1; }
.quiz-page .quiz-option--selected, .quiz-page .quiz-option--selected[disabled] { border-color:var(--quiz-selectedBorder); background:var(--quiz-selected); box-shadow:var(--quiz-selectedShadow); }
.quiz-option--pressed { background:var(--quiz-selected); }
.quiz-option-mark { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:23px; height:23px; border-radius:50%; background:var(--quiz-mark); color:var(--quiz-muted); font-size:11.5px; font-weight:600; }
.quiz-option--selected .quiz-option-mark { background:var(--quiz-primary); color:var(--quiz-onAccent); }
.quiz-option-text { flex:1; min-width:0; font-size:14.5px; overflow-wrap:break-word; }
.quiz-option-check { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:13.5px; height:13.5px; border:1px solid var(--quiz-border); border-radius:50%; flex-shrink:0; color:transparent; font-size:10px; line-height:1; font-weight:700; }
.quiz-option--selected .quiz-option-check { border-color:transparent; background:var(--quiz-primary); color:var(--quiz-onAccent); }

.quiz-interaction-hint { display:block; margin:14px 0; color:var(--quiz-muted); font-size:11.5px; line-height:1.5; text-align:center; }
.quiz-actions { display:flex; gap:10px; }
.quiz-actions--without-hint { margin-top:14px; }
.quiz-button { display:flex; align-items:center; justify-content:center; box-sizing:border-box; min-height:48px; padding:12px; border:1px solid transparent; border-radius:12px; font-size:14.5px; line-height:1.4; font-weight:600; }
.quiz-button--previous { width:40%; border-color:var(--quiz-border); background:var(--quiz-surface); color:var(--quiz-ink); box-shadow:var(--quiz-shadow); }
.quiz-button--next { flex:1; background:var(--quiz-primary); color:var(--quiz-onAccent); box-shadow:var(--quiz-buttonShadow); }
.quiz-page .quiz-button[disabled] { opacity:1; color:var(--quiz-disabledInk); border-color:var(--quiz-border); background:var(--quiz-disabledSurface); box-shadow:none; }


.quiz-page--light .quiz-heading { gap:8px; }
.quiz-page--light .quiz-title { font-size:14px; font-weight:600; }
.quiz-page--light .quiz-progress-count { padding:0; border:0; background:transparent; color:var(--quiz-accent); font-size:12px; font-weight:500; }
.quiz-page--light .quiz-progress { margin-top:11px; background:var(--quiz-border); }
.quiz-page--light .quiz-question { margin:20px 0 16px; }
.quiz-page--light .quiz-question-number { padding:0; margin-bottom:8px; border-radius:0; background:transparent; color:var(--quiz-accent); font-size:11.5px; font-weight:500; letter-spacing:0; }
.quiz-page--light .quiz-question-title { font-size:20px; font-weight:600; line-height:1.5; letter-spacing:0; }
.quiz-page--light .quiz-question-hint { margin-top:8px; font-size:12px; line-height:1.65; }
.quiz-page--light .quiz-options { gap:9px; }
.quiz-page--light .quiz-option { min-height:52px; padding:12px; border-radius:13px; }
.quiz-page--light .quiz-option-mark { width:17px; height:21px; border-radius:0; background:transparent; color:var(--quiz-muted); font-size:12.5px; font-weight:500; }
.quiz-page--light .quiz-option--selected .quiz-option-mark { background:transparent; color:var(--quiz-accent); }
.quiz-page--light .quiz-option--selected .quiz-option-text { color:var(--quiz-accent); }
.quiz-page--light .quiz-option-check { width:17px; height:17px; border-color:var(--quiz-selectedBorder); opacity:.48; font-size:11px; }
.quiz-page--light .quiz-option--selected .quiz-option-check { border-color:transparent; opacity:1; }
.quiz-page--light .quiz-interaction-hint { margin:13px 0; font-size:11px; }
.quiz-page--light .quiz-actions { gap:9px; }
.quiz-page--light .quiz-button { min-height:48px; border-radius:13px; font-weight:500; }
.quiz-page--light .quiz-button--previous { width:35%; color:var(--quiz-accent); }



.loading-page { position:relative; z-index:0; min-height:100vh; box-sizing:border-box; padding-bottom:env(safe-area-inset-bottom); background:var(--quiz-background); color:var(--quiz-ink); }
.loading-atmosphere { position:absolute; z-index:0; top:0; right:0; bottom:0; left:0; pointer-events:none; background-color:var(--quiz-background); background-image:linear-gradient(180deg,var(--quiz-background) 0px,var(--quiz-background) 88px,transparent 260px),var(--quiz-backdrop); }
.loading-shell { position:relative; z-index:1; display:flex; flex-direction:column; justify-content:center; max-width:450px; min-height:calc(100vh - 88px); margin:0 auto; padding:18px 18px 22px; box-sizing:border-box; text-align:center; }
.loading-eyebrow { display:block; color:var(--quiz-accent); font-size:10px; line-height:1.5; font-weight:600; letter-spacing:2px; overflow-wrap:break-word; }
.loading-orbit { position:relative; flex-shrink:0; width:88px; height:88px; margin:15px auto 14px; }
.loading-ring { position:absolute; border-radius:50%; border:1.5px solid var(--quiz-border); box-sizing:border-box; }
.loading-ring--outer { top:0; right:0; bottom:0; left:0; border-top-color:var(--quiz-accent); border-right-color:var(--quiz-selectedBorder); animation:loadingOrbit 1.8s linear infinite; }
.loading-ring--inner { top:12.5px; right:12.5px; bottom:12.5px; left:12.5px; border-left-color:var(--quiz-accent); opacity:.55; animation:loadingOrbit 3.2s linear infinite reverse; }
.loading-heart { position:absolute; top:50%; left:50%; width:17.5px; height:17.5px; border-radius:3px; background:var(--quiz-accent); transform:translate(-50%,-40%) rotate(-45deg); animation:loadingBreathe 1.8s ease-in-out infinite; }
.loading-heart::before,.loading-heart::after { content:""; position:absolute; width:17.5px; height:17.5px; border-radius:50%; background:inherit; }
.loading-heart::before { top:-8.5px; left:0; }
.loading-heart::after { top:0; left:8.5px; }
.loading-page--paused .loading-ring,.loading-page--paused .loading-heart { animation-play-state:paused; }
.loading-title { display:block; font-size:20px; font-weight:600; line-height:1.45; overflow-wrap:break-word; }
.loading-subtitle { display:block; margin-top:8px; color:var(--quiz-muted); font-size:12.5px; line-height:1.65; }
.loading-progress-section { margin-top:15px; }
.loading-progress-labels { display:flex; justify-content:space-between; gap:10px; color:var(--quiz-muted); font-size:11.5px; line-height:1.5; text-align:left; }
.loading-progress-labels text:last-child { flex-shrink:0; color:var(--quiz-accent); }
.loading-track { height:4px; margin-top:6px; overflow:hidden; border-radius:10px; background:var(--quiz-border); }
.loading-fill { height:100%; border-radius:inherit; background:var(--quiz-progress); transition:width .28s ease; }
.loading-steps { display:flex; flex-direction:column; gap:7px; margin-top:14px; }
.loading-step { display:flex; align-items:center; gap:9px; padding:10px 11px; box-sizing:border-box; min-height:53px; border:1px solid var(--quiz-border); border-radius:12px; background:var(--quiz-surface); box-shadow:var(--quiz-shadow); text-align:left; }
.loading-step--active { border-color:var(--quiz-selectedBorder); background:var(--quiz-selected); }
.loading-step-mark { display:flex; justify-content:center; align-items:center; flex-shrink:0; width:18px; height:18px; border-radius:50%; background:var(--quiz-mark); color:var(--quiz-muted); font-size:11px; line-height:1; font-weight:600; }
.loading-step--active .loading-step-mark,.loading-step--done .loading-step-mark { background:var(--quiz-primary); color:var(--quiz-onAccent); }
.loading-step-copy { flex:1; min-width:0; }
.loading-step-title { display:block; font-size:12.5px; line-height:1.45; font-weight:600; overflow-wrap:break-word; }
.loading-step-desc { display:block; margin-top:3px; color:var(--quiz-muted); font-size:11px; line-height:1.5; overflow-wrap:break-word; }
.loading-step-state { flex-shrink:0; min-width:32px; color:var(--quiz-muted); font-size:10.5px; line-height:1.5; text-align:right; }
.loading-step--active .loading-step-state,.loading-step--done .loading-step-state { color:var(--quiz-accent); }
.loading-notice { display:block; margin-top:12px; color:var(--quiz-muted); font-size:12px; line-height:1.6; }
.loading-error { margin-top:13px; }
.loading-error-text { display:block; color:var(--quiz-ink); font-size:12.5px; line-height:1.7; }
.loading-retry { display:flex; align-items:center; justify-content:center; width:100%; min-height:46px; padding:11px; margin-top:10px; box-sizing:border-box; border:0; border-radius:12px; background:var(--quiz-primary); color:var(--quiz-onAccent); box-shadow:var(--quiz-buttonShadow); font-size:14.5px; line-height:1.5; font-weight:600; }
.loading-retry::after { border:0; }
.loading-page .loading-retry[disabled] { background:var(--quiz-disabledSurface); color:var(--quiz-disabledInk); box-shadow:none; }
@keyframes loadingOrbit { to { transform:rotate(360deg); } }
@keyframes loadingBreathe { 0%,100% { transform:translate(-50%,-40%) rotate(-45deg) scale(.96); } 50% { transform:translate(-50%,-40%) rotate(-45deg) scale(1.04); } }
@media (prefers-reduced-motion:reduce) { .loading-ring,.loading-heart { animation:none; } .loading-fill { transition:none; } }

.report-lock { position: relative; min-height: 72vh; color: var(--lock-text, #293044); }
.report-lock--fixed { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; min-height: 0; }
.report-lock__veil { position: absolute; inset: 0; background: var(--lock-surface, #f8f9fc); opacity: .14; }
.report-lock__scroll { position: absolute; inset: 0; height: 100%; }
.report-lock__stage { box-sizing: border-box; min-height: 100%; padding: 30px 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; align-items: center; }
.report-lock__card { position: relative; box-sizing: border-box; width: 100%; max-width: 330px; padding: 17px 17px 8px; text-align: center; background: var(--lock-surface, #ffffff); border: 0.5px solid var(--lock-line, #e4e8f0); border-radius: 18px; box-shadow: 0 14px 45px rgba(20, 17, 35, .18), 0 1px 5px rgba(20, 17, 35, .06); }
.report-lock__eyebrow { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; line-height: 1.5; letter-spacing: 1.5px; color: var(--lock-muted, #777f91); }
.report-lock__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--lock-accent, #5668ce); }
.report-lock__symbol { position: relative; width: 41px; height: 41px; margin: 13px auto 11px; border: 0.5px solid var(--lock-line, #e4e8f0); border-radius: 13px; background: linear-gradient(150deg, rgba(150,150,170,.10), rgba(150,150,170,.02)); color: var(--lock-accent, #5668ce); }
.report-lock__shackle { position: absolute; left: 13px; top: 8.5px; width: 12px; height: 12.5px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 9px 9px 0 0; }
.report-lock__lock-body { position: absolute; left: 10.5px; top: 19px; width: 18px; height: 13.5px; border: 1.5px solid currentColor; border-radius: 4px; }
.report-lock__keyhole { width: 2px; height: 5px; margin: 4px auto; border-radius: 2px; background: currentColor; }
.report-lock__title { display: block; font-size: 18px; line-height: 1.4; font-weight: 700; letter-spacing: 0.5px; }
.report-lock__subtitle { display: block; margin-top: 6.5px; font-size: 12px; line-height: 1.65; color: var(--lock-muted, #777f91); }
.report-lock__divider { height: 0.5px; margin: 14px 6px 10.5px; background: var(--lock-line, #e4e8f0); }
.report-lock__features { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; color: var(--lock-muted, #777f91); }
.report-lock__feature-dot { opacity: .5; }
.report-lock__button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin-top: 14px; padding: 11px 7px; border: 0; border-radius: 12px; background: var(--lock-accent, #5668ce); color: var(--lock-button-text, #ffffff); font-size: 14px; font-weight: 700; line-height: 1.5; }
.report-lock__button--busy { background: var(--lock-accent, #5668ce); color: var(--lock-button-text, #ffffff); opacity: .65; }
.report-lock__button::after, .report-lock__back::after, .report-lock__chart-retry::after { border: 0; }
.report-lock__arrow { font-size: 16px; font-weight: 400; }
.report-lock__hint { display: block; margin: 8px -6px 0; font-size: 10px; line-height: 1.7; color: var(--lock-muted, #777f91); }
.report-lock__back { width: 110px; padding: 9px 0 5px; margin: 1px auto 0; background: transparent; color: var(--lock-muted, #777f91); font-size: 11.5px; line-height: 1.6; }
.report-lock__back--busy { color: var(--lock-muted, #777f91); background: transparent; opacity: .45; }
.report-lock__error { display: block; margin: 12px 0 0; font-size: 12px; line-height: 1.7; color: var(--lock-text, #293044); }
.report-lock__chart-retry { font-size: 11px; line-height: 1.5; background: transparent; color: var(--lock-muted, #777f91); margin-top: 8px; }
.report-lock__caption { display: block; max-width: 315px; margin-top: 12px; padding: 4px 6px; border-radius: 6px; background: var(--lock-surface, #fff); color: var(--lock-muted, #777f91); font-size: 9px; line-height: 1.6; text-align: center; opacity: .9; }
@media (max-height: 640px) { .report-lock__stage { padding-top: 34px; } .report-lock__symbol { margin-top: 8px; margin-bottom: 8px; } }

/* HTML壳适配：原位模糊真实报告，导航保持清晰。 */
.report-lock { --lock-accent:#0f766e; --lock-text:#102033; --lock-muted:#64748b; --lock-line:#e2e8f0; --lock-surface:#fff; }
.report-lock--fixed { top:var(--nav-height); left:50%; right:auto; width:100%; max-width:450px; transform:translateX(-50%); }
.report-lock__scroll { overflow-y:auto; overscroll-behavior:contain; }
.report-lock__card { flex-shrink:0; }
.report-lock__caption { flex-shrink:0; }
.report-lock__button { cursor:pointer; }
.report-lock__button:focus:not(:focus-visible) { outline:none; }
.report-lock__back { display:block; }
.report-locked { overflow:hidden; }
.report-is-locked { max-height:calc(100dvh - var(--nav-height)); overflow:hidden; pointer-events:none; user-select:none; filter:blur(6px); }
.report-is-locked #report-body { filter:blur(3.5px); }
.report-is-locked button { visibility:hidden; }

  .quiz-page,.loading-page{min-height:calc(100dvh - var(--nav-height) - var(--page-tools-height))}
.quiz-atmosphere,.loading-atmosphere{background-image:linear-gradient(180deg,var(--quiz-background),transparent 150px),var(--quiz-backdrop)}
.quiz-shell{padding:22px 18px 30px;min-height:calc(100dvh - var(--nav-height) - var(--page-tools-height))}
.quiz-question-title{margin:0;outline:none}
.quiz-page--light .quiz-question{margin-top:23px}
.quiz-page--light .quiz-question-title{font-size:21px}
.quiz-page--light .quiz-option{padding:15px 12px;min-height:62px}
.quiz-option{gap:8px}
.quiz-option-text{font-size:15px}
.quiz-page--light .quiz-option-mark{flex-basis:20px}
.quiz-option-check{margin-left:auto}
.quiz-page--light .quiz-option-check{width:16px;height:16px}
.quiz-page--light .quiz-options{gap:10px}
.quiz-page--light .quiz-button{min-height:45px;padding:10px;font-size:14px}
.loading-shell{min-height:calc(100dvh - var(--nav-height) - var(--page-tools-height));padding-top:30px;padding-bottom:30px}
.loading-title{font-size:22px;margin:0}
.loading-subtitle{margin-bottom:0}
.loading-steps{gap:8px}
.loading-step{min-height:60px}
.loading-step-title{font-size:13px}
.loading-step-desc,.loading-step-state{font-size:11px}
.loading-progress-labels span:last-child{color:var(--quiz-accent)}
.report-lock{--lock-accent:#d5b676;--lock-text:#f0e8d7;--lock-muted:#b6b9aa;--lock-line:#3c4b3e;--lock-surface:#1b2720;--lock-button-text:#182017}
.report-lock__veil{background:#080d0a;opacity:.68}
.report-lock__title{margin:0}
.report-lock__subtitle{margin-bottom:0}
.report-lock__back{border:0;cursor:pointer}
.report-lock__button:disabled{opacity:.6;cursor:wait}
@media(max-width:360px){
 .quiz-shell{padding:18px 15px}
 .quiz-page--light .quiz-question-title{font-size:19px}
 .quiz-option-text{font-size:14px}
 .quiz-page--light .quiz-option{padding:12px 10px}
}


/* 刷新带 hash 的页面时，原生锚点滚动须给顶部导航留出空间。 */
.screen{scroll-margin-top:var(--nav-height)}
/* 首页保留浮雕翻卡，用角色本身表达主题。 */
.home .eyebrow{font-size:10px;letter-spacing:2px;color:#b69a64;margin-bottom:12px}
.home .subtitle{font-size:15px;line-height:1.8;margin-top:14px;color:#d2c7b0}
.home .ornament{margin:12px auto}
.home .lead{font-family:inherit;font-size:12px;letter-spacing:0;line-height:1.8}
.home .deck{margin-top:8px;height:286px}
.home .closing{font-size:12px;color:#b5b4a4;padding-top:20px}
.deck-caption{font-size:10px;line-height:1.8;letter-spacing:0;margin-top:12px;gap:0 7px}
.face-name--xlong{font-size:17px;letter-spacing:.5px;text-indent:.5px;white-space:nowrap}
.face-quote{margin-top:7px;font-size:9px;line-height:1.65}
.face-epithet{letter-spacing:.3px;font-size:7px}
.dock-meta{font-size:10px;letter-spacing:0;color:#a6ac9c}
.dock-meta button{font-size:11px;letter-spacing:0}
.quiz-answer-hint{margin:12px 0 0;color:var(--quiz-muted);font-size:12px;line-height:1.7}

/* 结果第一屏：一个人物，一句宣言，光芒与执念属于同一个神格。 */
.report-screen{position:relative;min-height:calc(100dvh - var(--nav-height) - var(--page-tools-height));padding:18px 18px 40px;background:radial-gradient(ellipse at 50% 8%,#1b3022 0,transparent 50%),#0b140e}
.report-wrap{position:relative;z-index:2;max-width:390px;margin:0 auto}
.report-head{text-align:center;padding:0 0 14px}
.report-title{margin:0;font-size:18px;font-weight:500;line-height:1.5;letter-spacing:2px;color:#ede5d4}
.result-card-stage{display:block;margin:0}
.divinity-hero{position:relative;isolation:isolate;padding:15px 18px 18px;border:1px solid #967f4e;background:radial-gradient(ellipse at 50% 15%,#2a3927 0,transparent 62%),linear-gradient(145deg,#17281b,#101e15);text-align:center;box-shadow:0 16px 45px #0004}
.divinity-hero::before{content:"";position:absolute;inset:5px;border:1px solid #c2a05e25;z-index:-1;pointer-events:none}
.divinity-meta{display:flex;justify-content:space-between;gap:8px;font:8px/1.5 Georgia,serif;letter-spacing:1.5px;color:#b6a074}
.divinity-portrait{display:block;width:154px;height:154px;object-fit:cover;aspect-ratio:1;border-radius:50%;margin:14px auto 12px;box-shadow:0 0 0 1px #be9f5b55,0 9px 28px #0005}
.divinity-name{margin:0;font-family:var(--serif);font-size:37px;line-height:1.35;font-weight:600;letter-spacing:2px;color:#dfbf7e}
.divinity-title{margin:5px 0 0;font-size:12px;line-height:1.6;color:#c0bca7;letter-spacing:1px}
.divinity-line{margin:18px 0 12px;font-family:var(--serif);font-size:23px;line-height:1.6;font-weight:500;color:#f2e9d7;text-wrap:balance}
.divinity-keywords{display:flex;justify-content:center;gap:13px;font-size:10px;color:#bba675;letter-spacing:1px}
.divinity-keywords span+span::before{content:"·";margin-right:13px;color:#7e764f}
.divinity-facets{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px;padding:15px 0;border-top:1px solid #c2a05e33;border-bottom:1px solid #c2a05e33;text-align:left}
.divinity-facets>div+div{padding-left:13px;border-left:1px solid #c2a05e25}
.divinity-facets span{font-size:10px;letter-spacing:1px;color:#c6a76b}
.divinity-facets p{margin:6px 0 0;font-size:12px;line-height:1.75;color:#dfdfcd}
.hero-tendencies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:15px;text-align:left}
.hero-tendencies>div{display:grid;grid-template-columns:1fr auto;gap:6px 2px;font-size:10px;color:#b4bbaa}
.hero-tendencies b{font:12px Georgia,serif;color:#dcc286}
.hero-tendencies i{grid-column:1/-1;height:3px;background:#c2a05e26;border-radius:3px;overflow:hidden}
.hero-tendencies em{display:block;height:100%;background:#c2a05e}
.secret-section{padding:25px 17px 9px;text-align:center}
.secret-section>span,.counsel-section>span{font-size:10px;letter-spacing:2px;color:#b69a64}
.secret-section>p{margin:10px 0 0;font-family:var(--serif);font-size:18px;line-height:1.8;color:#e0ddc9;text-wrap:balance}
.report-section{margin-top:18px;padding:20px 18px;border:1px solid #c2a05e2e;background:#17241a66}
.report-section h2{margin:0 0 12px;font-family:var(--serif);font-size:19px;font-weight:500;letter-spacing:1px;color:#d6b77b}
.report-section p,.report-list li{margin:0;font-size:14px;line-height:1.95;color:#c5cabb}
.report-section p+p{margin-top:12px}
.report-list{margin:0;padding-left:17px}
.report-list li+li{margin-top:12px}
.report-list li::marker{color:#c2a05e}
.report-list--cost li::marker{color:#bb967c}
.radar-section>h2{text-align:center}
.radar-wrap{max-width:340px;margin:0 auto}
.radar-svg{display:block;width:100%;height:auto}
.report-section .radar-note{font-size:11px;color:#99a18f;line-height:1.8;margin:0 0 22px}
.axis-list{display:grid;gap:20px}
.axis-item{border-top:1px solid #c2a05e22;padding-top:16px}
.axis-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;color:#d6b77b}
.axis-heading h3{font-size:14px;margin:0;font-weight:500;letter-spacing:1px}
.axis-heading>span{font-size:12px;color:#b9c0ae}
.axis-track{height:4px;margin:10px 0;background:#c2a05e22;border-radius:3px;overflow:hidden}
.axis-track>span{display:block;height:100%;background:#c2a05e}
.axis-item>p{font-size:12px;line-height:1.8}
.axis-ends{display:flex;justify-content:space-between;gap:18px;margin-top:7px;font-size:10px;line-height:1.7;color:#8f9a87}
.axis-ends>span{flex:1}.axis-ends>span+span{text-align:right}
.choice-evidence blockquote{margin:0 0 12px;border-left:2px solid #b4975c;padding:6px 0 6px 13px;font-family:var(--serif);font-size:17px;line-height:1.8;color:#e1d5b9}
.counsel-section{padding:27px 15px 12px;text-align:center}
.counsel-section>p{margin:10px 0 0;font-family:var(--serif);font-size:19px;line-height:1.9;color:#e2d8bc}
.report-section summary{font-size:14px;line-height:1.6;letter-spacing:1px;color:#c6b27e;cursor:pointer}
.report-section[open]>summary{margin-bottom:17px}
.origin-section .archetype-origin{font-size:12px;color:#b5a47d;margin-bottom:10px}
.deity-atlas{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;padding-top:6px}
.atlas-role{text-align:center;min-width:0}
.atlas-role>img{display:block;width:92px;height:92px;object-fit:cover;aspect-ratio:1;border-radius:50%;margin:0 auto 10px}
.atlas-role h3{margin:0;font-family:var(--serif);font-size:16px;font-weight:500;color:#dbd5bf;line-height:1.5}
.atlas-role>p{font-size:10px;margin-top:5px;line-height:1.8;color:#a6af9b}
.report-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:22px}
.report-actions button{min-height:46px;padding:10px;border-radius:3px;font-size:13px}
.report-actions .primary{grid-column:1/-1;background:#c2a05e;border:1px solid #c2a05e;color:#101c12;font-weight:600}
.report-actions .ghost{border:1px solid #c2a05e55;background:transparent;color:#c8cbb8}
.report-actions .more{grid-column:1/-1;background:#c2a05e0d;border:1px solid #c2a05e55;color:#d0b77f;animation:more-pulse 2.8s ease-in-out infinite}
.report-disclaimer{margin:22px 0 0;font-size:10px;line-height:1.8;text-align:center;color:#8c9683}
@keyframes more-pulse{50%{box-shadow:0 0 0 4px #c2a05e12}}
#poster-button:disabled{opacity:.6;cursor:wait}
#share-image{width:100%;margin-top:8px}
.app-nav-bar button:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:360px){
 .report-screen{padding:14px 12px 32px}.report-title{font-size:17px;letter-spacing:1px}
 .divinity-hero{padding:13px 15px 16px}.divinity-name{font-size:32px;letter-spacing:1px}
 .divinity-line{font-size:21px}.divinity-portrait{width:138px;height:138px}
 .divinity-facets{gap:10px}.divinity-facets p{font-size:11px}.report-section{padding:18px 15px}
 .home .subtitle{font-size:14px}.dock-meta{font-size:9px}.dock-meta button{font-size:10px}
}
@media(max-height:760px){
 .report-screen{padding-top:13px}.report-head{padding-bottom:10px}
 .divinity-hero{padding-top:12px;padding-bottom:14px}
 .divinity-portrait{width:126px;height:126px;margin:10px auto 8px}
 .divinity-name{font-size:32px}.divinity-title{margin-top:3px}
 .divinity-line{font-size:21px;margin:13px 0 9px;line-height:1.5}
 .divinity-facets{margin-top:13px;padding:10px 0}.divinity-facets p{margin-top:4px}
 .hero-tendencies{margin-top:12px}
 .home .deck{height:270px}.home .hero{padding-top:3px}
}
@media(prefers-reduced-motion:reduce){
 .oracle-ring .spin,.report-actions .more{animation:none}.flip-card,.flip-inner{transition:none}
}

/* ── 弹窗 ── */
dialog{
  width:min(92vw,380px);max-height:86dvh;padding:0;overflow:auto;
  border:1px solid rgba(194,160,94,.45);border-radius:4px;
  background:#0e1310;color:#e8dfcc;box-shadow:0 30px 90px rgba(0,0,0,.7);
}
dialog::backdrop{background:rgba(4,6,5,.80);backdrop-filter:blur(6px)}
.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px 10px;border-bottom:1px solid rgba(194,160,94,.16)}
.dialog-head h2{margin:0;font-family:var(--serif);font-size:16px;font-weight:600;letter-spacing:1px;color:#e8dfcc}
.dialog-head button{border:0;background:none;color:#c2a05e;font-size:20px;line-height:1;padding:0 3px}
.dialog-copy{padding:13px 18px 0;font-size:10.5px;line-height:1.9;color:#b9b3a3}
.dialog-body{padding:0 18px 18px}
.dialog-actions{display:flex;flex-direction:column;gap:8px;padding:12px 18px 18px}
.dialog-actions button,.dialog-body .dialog-button{min-height:44px;border:1px solid rgba(194,160,94,.36);border-radius:3px;background:rgba(194,160,94,.07);color:#e8dfcc;font-size:12px;letter-spacing:.5px;padding:10px 12px}
.dialog-actions .primary,.dialog-body .primary{background:#c2a05e;border-color:#c2a05e;color:#0b0f0d;font-weight:600}
.dialog-actions .text{border:0;background:none;color:#8d7648;min-height:34px}
.dialog-body .text-button{border:0;background:none;color:#8d7648}
.mp-qr{display:block;width:190px;max-width:72%;margin:14px auto;border:1px solid rgba(194,160,94,.36);border-radius:4px;background:#fff}
.download-link{display:block;text-align:center;font-size:10.5px;color:#a98a55;margin-top:10px;text-decoration:none}
#share-url{display:block;width:100%;padding:10px;border:1px solid rgba(194,160,94,.28);border-radius:3px;background:#0a0e0c;color:#b9b3a3;font-size:10.5px;margin:8px 0 10px}
#poster-image{display:block;width:100%;height:auto;max-width:340px;-webkit-touch-callout:default;user-select:auto;margin:12px auto;border:1px solid rgba(194,160,94,.28);border-radius:3px}
#toast{
  position:fixed;z-index:120;left:50%;bottom:106px;transform:translateX(-50%) translateY(10px);
  max-width:86vw;padding:9px 14px;border:1px solid rgba(194,160,94,.36);border-radius:3px;
  background:#0e1310f2;color:#e8dfcc;font-size:10px;line-height:1.6;letter-spacing:.3px;
  opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease;
}
#toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0)}

@keyframes rune-breathe{0%,100%{opacity:.55;transform:scale(.96)}50%{opacity:1;transform:scale(1.04)}}

