/* Shared marketing / standalone page chrome — cream light, ruby accents, scrolls freely */
:root{ --dou-ruby:#E0115F; --dou-ruby2:#8E0A3C; --dou-ember:#F3C14B; --dou-sapphire:#2B6CB0; --dou-ink:#3b1a0a; --dou-cream:#FFF8EC; --dou-panel:#fffdf8; --dou-line:rgba(59,26,10,.12); }
html,body{ margin:0; min-height:100dvh; overflow:auto; background:linear-gradient(165deg,#fff4d6 0%,#ffe0ec 42%,#e8f1ff 100%); color:var(--dou-ink); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
.pg{ max-width:720px; margin:0 auto; padding:16px 16px calc(48px + env(safe-area-inset-bottom,0px)); }
.pg-top{ display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; position:sticky; top:0; z-index:20;
  background:linear-gradient(180deg,#fff8ec 70%,rgba(255,248,236,0)); padding:10px 0 12px; }
.pg-top a.back{ font-weight:900; color:var(--dou-ruby); text-decoration:none; }
.pg-cta{ display:flex; gap:8px; flex-wrap:wrap; }
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 16px; border-radius:12px; border:0; font-weight:900; cursor:pointer; text-decoration:none; font-size:14px; }
.btn.primary{ background:linear-gradient(#ff5a8a,var(--dou-ruby)); color:#fff; box-shadow:0 6px 16px rgba(224,17,95,.28); }
.btn.ghost{ background:#fff; color:var(--dou-ink); border:1.5px solid var(--dou-ink); }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn.block{ width:100%; }
.chip{ display:inline-flex; padding:4px 12px; border-radius:999px; background:#fff; border:1px solid var(--dou-line); font-size:12px; font-weight:800; }
.chip.hot{ background:var(--dou-ruby); color:#fff; border-color:transparent; }
.chip.gold{ background:var(--dou-ember); color:var(--dou-ink); border-color:transparent; }
.card{ background:var(--dou-panel); border:1px solid var(--dou-line); border-radius:16px; padding:14px 16px; margin:10px 0; }
.card.accent{ background:linear-gradient(180deg,#fffdf8,#fff4d6); border-color:var(--dou-ember); box-shadow:0 0 0 2px #F3C14B44; }
h1{ font-size:clamp(1.6rem,5vw,2.2rem); margin:.4rem 0 .6rem; letter-spacing:-.02em; }
.lead{ color:#5a3218; line-height:1.5; margin:0 0 14px; }
.fine{ font-size:12px; color:#6b4420; line-height:1.45; }
.row{ display:flex; justify-content:space-between; align-items:center; gap:12px; }
.bar{ height:10px; background:#f0e0c8; border-radius:999px; overflow:hidden; }
.bar i{ display:block; height:100%; background:linear-gradient(90deg,#4FD1A1,var(--dou-ruby)); width:0%; transition:width .35s; }

/* —— Light cream default + ruby dragon dark (never near-black) —— */
:root, [data-theme="light"]{
  --dou-bg0:#fff4d6; --dou-bg1:#ffe0ec; --dou-bg2:#e8f1ff;
  --dou-ink:#3b1a0a; --dou-panel:#fffdf8; --dou-line:rgba(59,26,10,.12);
  --dou-ruby:#E0115F; --dou-ruby2:#8E0A3C; --dou-ember:#F3C14B; --dou-cream:#FFF8EC;
  --dou-muted:#6b4420; --dou-lead:#5a3218;
}
[data-theme="dark"]{
  --dou-bg0:#b0144a; --dou-bg1:#E0115F; --dou-bg2:#8E0A3C;
  --dou-ink:#fff6e2; --dou-panel:#a31248; --dou-line:rgba(255,246,226,.28);
  --dou-ruby:#ff6b9a; --dou-ruby2:#ffe08a; --dou-ember:#F3C14B; --dou-cream:#fff8ec;
  --dou-muted:#ffe8c8; --dou-lead:#fff6e2;
}
html[data-theme="dark"], html[data-theme="dark"] body{
  background:linear-gradient(165deg,#c41858 0%,#E0115F 38%,#8E0A3C 78%,#9a1048 100%) fixed !important;
  color:var(--dou-ink) !important;
}
html[data-theme="dark"] .pg-top{
  background:linear-gradient(180deg,rgba(142,10,60,.96) 70%,rgba(142,10,60,0)) !important;
}
html[data-theme="dark"] .pg-top a.back{ color:#F3C14B !important; }
html[data-theme="dark"] .btn.ghost{
  background:rgba(255,255,255,.14) !important; color:#fff6e2 !important; border-color:#F3C14B88 !important;
}
html[data-theme="dark"] .btn.primary{
  background:linear-gradient(#F3C14B,#c8901c) !important; color:#3b1a0a !important;
  box-shadow:0 6px 16px rgba(243,193,75,.35) !important;
}
html[data-theme="dark"] .chip{
  background:rgba(255,255,255,.14) !important; color:#fff6e2 !important; border-color:#F3C14B66 !important;
}
html[data-theme="dark"] .chip.hot{ background:#F3C14B !important; color:#3b1a0a !important; }
html[data-theme="dark"] .chip.gold{ background:#ffe08a !important; color:#3b1a0a !important; }
html[data-theme="dark"] .card, html[data-theme="dark"] .card.accent{
  background:linear-gradient(180deg,#c2185b,#8E0A3C) !important;
  border-color:#F3C14B66 !important; color:#fff6e2 !important;
  box-shadow:0 0 0 2px rgba(243,193,75,.2);
}
html[data-theme="dark"] h1{ color:#fff6e2 !important; }
html[data-theme="dark"] .lead{ color:#ffe8c8 !important; }
html[data-theme="dark"] .fine{ color:#ffe0b8 !important; }
html[data-theme="dark"] .bar{ background:rgba(255,255,255,.18) !important; }
html[data-theme="dark"] .bar i{ background:linear-gradient(90deg,#F3C14B,#ffe08a) !important; }
.pg-tools{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
#themeBtn, .theme-btn{
  min-width:40px; min-height:40px; border-radius:999px; font-size:16px; cursor:pointer;
  border:1.5px solid var(--dou-line); background:var(--dou-panel); color:var(--dou-ink); font-weight:800;
}
html[data-theme="dark"] #themeBtn, html[data-theme="dark"] .theme-btn{
  background:rgba(255,255,255,.16); color:#fff6e2; border-color:#F3C14B88;
}

/* asset tiers (play-only) */
/* Asset cards: stacked fields, never run-on text, never near-black */
.asset-tiers{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;margin:12px 0}
.asset-tier{background:#fffdf8!important;color:#3b1a0a!important;border:1.5px solid #e8d5b5;border-radius:14px;padding:14px;display:flex!important;flex-direction:column!important;align-items:flex-start;gap:6px;min-width:0;box-shadow:0 2px 10px rgba(142,10,60,.06)}
.asset-tier b,.asset-tier .at-kind,.asset-tier small{display:block;width:100%;line-height:1.35}
.asset-tier b{font-size:15px;color:#8E0A3C;font-weight:900}
.asset-tier .at-kind{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#E0115F;font-weight:800}
.asset-tier small{color:#5a3218;font-size:12.5px;font-weight:600}
.at-foot,.at-note{opacity:1;font-weight:600;color:#5a3218}
html[data-theme="dark"] .asset-tier{background:linear-gradient(165deg,#c2185b,#8E0A3C)!important;color:#fff6e2!important;border-color:#F3C14B88}
html[data-theme="dark"] .asset-tier b{color:#F3C14B}
html[data-theme="dark"] .asset-tier .at-kind{color:#ffb3c9}
html[data-theme="dark"] .asset-tier small,html[data-theme="dark"] .at-foot,html[data-theme="dark"] .at-note{color:#fff6e2}


/* —— Shared DouDragon chrome (logo, nav, lang, theme) —— */
#douChrome{position:sticky;top:0;z-index:40}
.dou-chrome{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 14px;padding-top:max(8px,env(safe-area-inset-top));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));
  background:rgba(255,253,248,.94);backdrop-filter:blur(10px);border-bottom:1.5px solid #e8d5b5}
.dc-brand{display:flex;align-items:center;gap:8px;text-decoration:none;min-width:0}
.dc-brand img{width:36px;height:36px;border-radius:10px;flex:none}
.logo-word{font-size:clamp(15px,3.6vw,22px);font-weight:900;letter-spacing:.02em;background:linear-gradient(#fff2b8,#F3C14B,#b37712);-webkit-background-clip:text;background-clip:text;color:transparent}
.logo-word span{letter-spacing:.04em}
.dc-nav{display:flex;gap:4px;overflow-x:auto;-webkit-overflow-scrolling:touch;flex:1;min-width:0;scrollbar-width:none}
.dc-nav::-webkit-scrollbar{display:none}
.dc-nav a{flex:none;padding:8px 12px;border-radius:999px;text-decoration:none;font-weight:800;font-size:13px;color:#3b1a0a;white-space:nowrap}
.dc-nav a:hover{background:#fff4d6;color:#8E0A3C}
.dc-tools{display:flex;align-items:center;gap:6px;margin-left:auto;flex-wrap:wrap}
.dc-icon{min-width:40px;min-height:40px;border-radius:999px;border:1.5px solid #e8d5b5;background:#fffdf8;cursor:pointer;font-weight:800;font-size:16px}
.dc-cta{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:999px;font-weight:900;font-size:13px;text-decoration:none}
.dc-cta.ghost{border:1.5px solid #3b1a0a;color:#3b1a0a;background:#fff}
.dc-cta.primary{background:linear-gradient(#ff5a8a,#E0115F);color:#fff;border:0}
.dc-pop{position:relative}
.dc-lang{position:absolute;right:0;top:44px;z-index:50;min-width:200px;max-height:60vh;overflow:auto;background:#fffdf8;border:1.5px solid #e8d5b5;border-radius:14px;padding:6px;box-shadow:0 16px 40px rgba(142,10,60,.18)}
.dc-lang button{display:block;width:100%;text-align:left;padding:8px 10px;border:0;background:transparent;border-radius:8px;font-weight:700;cursor:pointer;color:#3b1a0a}
.dc-lang button:hover{background:#fff4d6}
.dc-lang.hidden{display:none}
html[data-theme="dark"] .dou-chrome{background:rgba(142,10,60,.94);border-bottom-color:#F3C14B66}
html[data-theme="dark"] .dc-nav a{color:#fff6e2}
html[data-theme="dark"] .dc-nav a:hover{background:rgba(255,255,255,.12);color:#F3C14B}
html[data-theme="dark"] .dc-icon{background:rgba(255,255,255,.14);color:#fff6e2;border-color:#F3C14B88}
html[data-theme="dark"] .dc-cta.ghost{background:rgba(255,255,255,.14);color:#fff6e2;border-color:#F3C14B88}
html[data-theme="dark"] .dc-cta.primary{background:linear-gradient(#F3C14B,#c8901c);color:#3b1a0a}
html[data-theme="dark"] .dc-lang{background:#8E0A3C;border-color:#F3C14B88}
html[data-theme="dark"] .dc-lang button{color:#fff6e2}
html[data-theme="dark"] .logo-word{background:linear-gradient(#fff2b8,#F3C14B,#c8901c);-webkit-background-clip:text;background-clip:text;color:transparent}
@media(max-width:430px){
  .dc-cta.ghost{display:none}
  .dc-nav{order:3;width:100%;padding-bottom:4px}
  .dou-chrome{gap:8px}
}
@media(max-width:320px){
  .dc-brand .logo-word{font-size:14px}
  .dc-cta.primary{padding:0 10px;font-size:12px}
}

/* Hide leftover page-local top bars when chrome is present */
#douChrome + .pg .pg-top, #douChrome + .dl .dl-top, body:has(#douChrome) .pg-top:first-child{display:none}

/* Mobile chrome: full-width scrollable pills, no clipped Lobby/Giveaway labels */
@media (max-width:720px){
  .dou-chrome{flex-wrap:wrap!important;align-items:center;row-gap:4px}
  .dc-brand{flex:none}
  .dc-tools{margin-left:auto;flex-wrap:nowrap!important;gap:6px}
  .dc-cta.ghost{display:none}
  .dc-nav{
    order:3;flex:1 0 100%!important;width:100%!important;min-width:0;
    overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap;
    padding-bottom:4px;padding-right:16px;scrollbar-width:none
  }
  .dc-nav::-webkit-scrollbar{display:none}
  .dc-nav a{flex:none;white-space:nowrap;padding:6px 12px}
}
@media (max-width:320px){
  .dc-brand .logo-word{font-size:14px}
  .dc-cta.primary{padding:0 10px;font-size:12px}
}
