:root {
  --ink: #11100d;
  --paper: #d5c7a2;
  --paper-light: #eee4ca;
  --gold: #b9954f;
  --gold-light: #e1c57b;
  --cinnabar: #9b2e25;
  --lake: #315b5b;
  --muted: #93876e;
  --serif: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "KaiTi_GB2312", cursive;
  --display: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "KaiTi_GB2312", cursive;
}

* { box-sizing: border-box; }
.sr-only { position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important; }
html { background: var(--ink); color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0 auto;
  width: min(100%, 390px);
  min-height: 100vh;
  min-width: 320px;
  color: var(--paper-light);
  font-family: var(--serif);
  background:
    radial-gradient(circle at 72% 5%, rgba(82, 105, 99, .2), transparent 24rem),
    radial-gradient(circle at 15% 35%, rgba(123, 47, 36, .13), transparent 28rem),
    linear-gradient(180deg, #12120f 0%, #171713 50%, #0e0e0c 100%);
  padding-bottom: 96px;
  box-shadow: 0 0 80px rgba(0,0,0,.72);
}

.grain {
  position: fixed; top: 0; bottom: 0; left: 50%; width: min(100%, 390px); transform: translateX(-50%); pointer-events: none; z-index: 50; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

button { font: inherit; }
.masthead {
  height: 78px; display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) 20px 8px;
  border-bottom: 1px solid rgba(213, 199, 162, .12);
  position: relative; z-index: 5;
}
.brand { text-align: center; line-height: 1; }
.brand span { color: var(--muted); font-size: 9px; letter-spacing: .35em; }
.brand h1 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: .28em; margin: 6px 0 0 .28em; }
.seal-button, .sound-button {
  width: 34px; height: 34px; color: var(--paper); background: transparent; border: 1px solid rgba(213,199,162,.32);
}
.seal-button { border-color: var(--cinnabar); color: #d66a5a; transform: rotate(-3deg); }
.sound-button { border-radius: 50%; font-size: 12px; }

.notice-ticker { height:27px;display:flex;align-items:center;gap:8px;padding:0 12px;color:#a89b7e;border:0;border-bottom:1px solid rgba(213,199,162,.09);background:linear-gradient(90deg,rgba(118,42,34,.08),rgba(35,59,54,.1));overflow:hidden;cursor:default; }
.notice-ticker.has-announcement{cursor:pointer;color:#c8b98f;background:linear-gradient(90deg,rgba(136,48,37,.14),rgba(52,89,79,.14))}.notice-ticker.has-announcement:focus-visible{outline:1px solid var(--gold);outline-offset:-2px}
.notice-mark { flex:0 0 18px;height:18px;display:grid;place-items:center;color:#d57968;border:1px solid rgba(160,55,44,.68);font:10px/1 var(--display);transform:rotate(-3deg); }
.notice-window { min-width:0;flex:1;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent); }
.notice-track { width:max-content;display:flex;gap:54px;white-space:nowrap;font-size:8px;letter-spacing:.13em;animation:noticeMarquee 18s linear infinite; }
@keyframes noticeMarquee { to { transform:translateX(calc(-50% - 27px)); } }

main { overflow: hidden; }
.sky-intro { text-align: center; padding: 36px 22px 20px; position: relative; }
.sky-intro::before {
  content: ""; position: absolute; width: 390px; height: 280px; left: 50%; top: -60px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(164, 188, 178, .13), transparent 62%); filter: blur(8px);
}
.date-line { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.date-line i { width: 28px; height: 1px; background: var(--muted); opacity: .4; }
.eyebrow { color: var(--gold); font-size: 10px; letter-spacing: .42em; margin: 28px 0 8px .42em; }
.sky-intro h2, .section-heading h2, .formation-section h2 { font-family: var(--display); font-weight: 500; }
.sky-intro h2 { font-size: clamp(42px, 12vw, 68px); letter-spacing: .2em; margin: 0 0 12px .2em; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.sky-copy { max-width: 520px; margin: auto; color: #b9af96; line-height: 1.85; font-size: 13px; }
.sky-tags { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.sky-tags span { border: 1px solid rgba(185,149,79,.32); color: #bba877; padding: 5px 9px; font-size: 10px; }

.result-brief { width: min(calc(100% - 32px), 880px); margin: 16px auto 34px; border: 1px solid rgba(185,149,79,.3); background: linear-gradient(135deg,rgba(35,38,32,.96),rgba(14,14,11,.96)); box-shadow: 0 20px 65px rgba(0,0,0,.34); overflow: hidden; }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 17px 13px; border-bottom: 1px solid rgba(213,199,162,.12); }
.brief-head p { color: var(--gold); margin: 0 0 2px; font-size: 8px; letter-spacing: .28em; }
.brief-head h2 { margin: 0; font-family: var(--display); font-size: 24px; font-weight: 500; letter-spacing: .16em; }
.reveal-countdown { text-align: right; display: grid; gap: 1px; }
.reveal-countdown small { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.reveal-countdown strong { color: var(--gold-light); font: 500 18px/1.15 ui-monospace,"SFMono-Regular",monospace; letter-spacing: .04em; }
.reveal-countdown span { color: #6f6755; font-size: 7px; }
.brief-lineup { padding: 15px; }
.brief-leader { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 8px; background: linear-gradient(90deg,rgba(155,46,37,.16),transparent); border-left: 2px solid var(--cinnabar); }
.brief-portrait { width: 76px; height: 92px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 27%,#747a6a 0 9%,#343832 10% 22%,transparent 23%),linear-gradient(130deg,#42504a,#12140f 70%); }
.brief-portrait::after { content:""; position:absolute; inset:0; box-shadow:inset 0 0 25px #080807; }
.brief-portrait > span { position:absolute; z-index:2; left:5px; top:5px; padding:2px 4px; color:#f0d591; background:rgba(10,10,8,.75); font-size:8px; }
.brief-leader > div:last-child { display:grid; }
.brief-leader small { display:flex;align-items:baseline;gap:8px;color:var(--gold);font-size:8px;letter-spacing:.16em; }
.brief-leader .brief-leader-rank { color:#d7b565;font:500 12px/1 var(--display);letter-spacing:.04em; }
.brief-leader b { width:max-content;max-width:100%;color:#e8c56e;font-family:var(--display);font-size:31px;font-weight:500;letter-spacing:.16em;text-shadow:0 0 14px rgba(218,178,84,.2); }
.brief-leader em { color:var(--muted); font-size:9px; font-style:normal; }
.brief-followers { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; margin-top:10px; }
.brief-follower { min-width:0; text-align:center; animation:briefRise .45s both; animation-delay:var(--delay); }
.brief-follower > div { aspect-ratio:.72; position:relative; overflow:hidden; border:1px solid rgba(82,123,122,.52); background:linear-gradient(145deg,#384a46,#11130f); }
.brief-follower > div span { position:absolute; z-index:2; left:3px; bottom:3px; width:18px; height:18px; display:grid; place-items:center; color:#d96859; border:1px solid rgba(155,46,37,.65); background:rgba(12,12,10,.76); font:12px var(--display); }
.brief-follower b { display:block; overflow:hidden; margin-top:5px; white-space:nowrap; color:#d8cdaF; font-family:var(--display); font-size:12px; font-weight:500; }
.brief-follower small { display:block; overflow:hidden; white-space:nowrap; color:#6f6755; font-size:7px; }
.brief-follower .brief-rank { display:block;overflow:hidden;margin-top:2px;color:#aa8a50;font:normal 7px/1.1 var(--display);white-space:nowrap;text-overflow:ellipsis; }
.brief-verdict { margin:0; padding:10px 16px 12px; color:#91866e; border-top:1px solid rgba(213,199,162,.08); font-size:9px; line-height:1.7; }
@keyframes briefRise { from { opacity:0; transform:translateY(8px); } }

.leader-section { padding: 20px 24px 36px; position: relative; }
.section-label { max-width: 360px; margin: 0 auto 10px; display: flex; justify-content: space-between; color: var(--gold); font-size: 11px; letter-spacing: .22em; }
.section-label small { color: #756a53; letter-spacing: .12em; }
.hero-card { position: relative; perspective: 1200px; cursor: pointer; outline: none; }
.leader-card { width: min(78vw, 340px); aspect-ratio: .665; margin: auto; }
.card-face, .card-back { position: absolute; inset: 0; backface-visibility: hidden; transition: transform .9s cubic-bezier(.2,.75,.2,1); }
.card-back {
  z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--gold); border: 1px solid #7d673c; background:
    linear-gradient(45deg, transparent 46%, rgba(185,149,79,.13) 47% 53%, transparent 54%) 0 0/24px 24px,
    radial-gradient(circle, #25231c, #0d0d0b 72%);
  box-shadow: inset 0 0 0 7px #111, inset 0 0 0 8px #6e5a34, 0 22px 55px #050504;
}
.card-back::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(185,149,79,.35); }
.card-back span { letter-spacing: .6em; margin-left: .6em; font-size: 13px; }
.card-back b { font-family: var(--display); font-size: 74px; font-weight: 400; color: #8d2e25; text-shadow: 0 0 30px #5e1f19; }
.card-face { transform: rotateY(180deg); overflow: hidden; border: 1px solid #aa8848; background: #1b1913; box-shadow: inset 0 0 0 5px #111, inset 0 0 0 6px #715b32, 0 25px 70px rgba(0,0,0,.7); }
.is-revealed .card-back { transform: rotateY(-180deg); }
.is-revealed .card-face { transform: rotateY(0); }
.card-topline { position: absolute; z-index: 4; left: 13px; right: 13px; top: 13px; display: flex; justify-content: space-between; align-items: center; }
.card-topline span { color: #f0d591; font-family: var(--display); font-size: 18px; letter-spacing: .18em; }
.card-topline em { font-style: normal; color: #9b8961; font-size: 9px; letter-spacing: .12em; }
.portrait { height: 60%; position: relative; overflow: hidden; background:
  linear-gradient(180deg, rgba(13,16,15,.1), #161610 92%),
  radial-gradient(circle at 55% 27%, #697369 0 8%, #343832 9% 19%, transparent 20%),
  linear-gradient(118deg, transparent 38%, #44483f 39% 53%, transparent 54%),
  linear-gradient(62deg, transparent 43%, #252720 44% 65%, transparent 66%),
  radial-gradient(ellipse at 50% 84%, #33372e 0 25%, transparent 26%),
  linear-gradient(#354947, #101613);
}
.portrait-art { position:absolute; z-index:1; inset:0; display:block; background-size:300% 400%; background-repeat:no-repeat; background-color:transparent; }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.5), transparent 35%, rgba(218,202,160,.08), transparent 70%, rgba(0,0,0,.45)); }
.weapon-mark { position: absolute; right: 13px; top: 54px; writing-mode: vertical-rl; color: rgba(225,197,123,.45); font-size: 9px; letter-spacing: .28em; z-index: 2; }
.portrait-name { position: absolute; z-index: 3; left: 22px; bottom: 12px; font-family: var(--display); font-size: 54px; color: rgba(232,222,192,.14); letter-spacing: -.08em; }
.hero-identity { position: relative; margin: -7px 16px 0; padding: 9px 10px 7px; background: linear-gradient(90deg, #15140f 70%, transparent); border-top: 1px solid rgba(185,149,79,.5); }
.hero-identity p { float: left; margin: 5px 13px 0 0; color: var(--cinnabar); font-family: var(--display); font-size: 17px; writing-mode: vertical-rl; }
.hero-identity h3 { font-family: var(--display); font-size: 31px; font-weight: 500; letter-spacing: .18em; margin: 0; }
.hero-identity span { color: #9c927c; font-size: 9px; letter-spacing: .08em; }
.trait-row { display: flex; gap: 5px; margin: 3px 20px 8px; }
.trait-row span { color: #b6a475; border-left: 2px solid var(--cinnabar); background: #242118; font-size: 9px; padding: 3px 7px; }
.star-intent { margin: 0 20px; border-top: 1px solid rgba(213,199,162,.15); padding-top: 7px; }
.star-intent small { color: #82765e; font-size: 9px; margin-right: 8px; }
.star-intent strong { color: var(--gold-light); font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .12em; }
.star-intent p { color: #8c826c; font-size: 9px; margin: 4px 0; }
.reveal-button { display: block; margin: 23px auto 0; color: var(--paper); background: transparent; border: 0; font-size: 12px; letter-spacing: .18em; }
.reveal-button span { display: inline-grid; place-items: center; width: 27px; height: 27px; margin-right: 7px; border: 1px solid var(--cinnabar); color: #d46254; transform: rotate(-3deg); }

.followers-section { padding: 32px 0 40px; border-top: 1px solid rgba(213,199,162,.1); }
.section-heading { display: flex; align-items: end; justify-content: space-between; padding: 0 24px 14px; }
.section-heading .eyebrow { margin: 0 0 4px; }
.section-heading h2 { margin: 0; font-size: 26px; letter-spacing: .16em; }
.section-heading > span { color: #776c55; font-size: 11px; letter-spacing: .15em; }
.card-rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 8px 24px 26px; scrollbar-width: none; }
.card-rail::-webkit-scrollbar { display: none; }
.follower-card { flex: 0 0 min(64vw, 250px); aspect-ratio: .665; scroll-snap-align: center; }
.follower-card .card-face { border-color: #596b63; box-shadow: inset 0 0 0 5px #10110f, inset 0 0 0 6px #45554d, 0 20px 45px #080806; }
.follower-card .portrait { height: 59%; background:
  linear-gradient(180deg, transparent, #171812 94%),
  radial-gradient(circle at 53% 28%, var(--portrait-light, #657169) 0 8%, #343a34 9% 19%, transparent 20%),
  linear-gradient(118deg, transparent 38%, var(--portrait-mid, #444b42) 39% 53%, transparent 54%),
  radial-gradient(ellipse at 50% 84%, #30362f 0 25%, transparent 26%),
  linear-gradient(var(--portrait-bg, #304644), #101612);
}
.follower-card .hero-identity h3 { font-size: 27px; }
.position-stamp { position: absolute; z-index: 6; top: 39px; left: 14px; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #a44638; color: #d16a5c; font-family: var(--display); background: rgba(16,15,12,.75); transform: rotate(-4deg); }
.rail-hint { display: flex; gap: 9px; align-items: center; justify-content: center; color: #6f6550; font-size: 9px; letter-spacing: .18em; }
.rail-hint span { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); position: relative; }
.rail-hint span::after { content: ""; position: absolute; right: 0; top: -2px; border: 3px solid transparent; border-left-color: var(--gold); }

.formation-section { position: relative; margin: 22px 20px 40px; padding: 28px 24px; border: 1px solid rgba(185,149,79,.28); background: linear-gradient(135deg, rgba(185,149,79,.08), rgba(49,91,91,.06)); }
.formation-section .eyebrow { margin: 0 0 8px; }
.formation-section h2 { margin: 0 0 13px; font-size: 31px; letter-spacing: .15em; }
.formation-section > p:last-of-type { color: #a79d86; font-size: 12px; line-height: 1.9; max-width: 620px; }
.formation-seal { position: absolute; right: 19px; top: 22px; font-family: var(--display); font-size: 37px; color: rgba(155,46,37,.75); border: 1px solid rgba(155,46,37,.6); width: 52px; height: 52px; display: grid; place-items: center; transform: rotate(6deg); }
.connections { display: grid; gap: 7px; margin-top: 21px; }
.connections button { display: flex; align-items: center; gap: 10px; text-align: left; color: #9d937d; background: rgba(8,8,7,.42); border: 0; padding: 10px; }
.connections i { width: 3px; align-self: stretch; background: var(--gold); }
.connections i.blue { background: #527b7a; } .connections i.red { background: #9b2e25; }
.connections b { color: var(--paper); display: block; font-size: 12px; letter-spacing: .12em; margin-bottom: 2px; }
.connections span { font-size: 9px; }
.formation-buffs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.formation-buffs span { display:grid; place-items:center; min-height:58px; border:1px solid rgba(185,149,79,.24); background:rgba(8,8,7,.42); }
.formation-buffs small { color:#8f846b; font-size:9px; letter-spacing:.08em; }
.formation-buffs strong { color:var(--gold-light); font:500 19px var(--display); }
.formation-members { margin:10px 0 0; color:#746a55; font-size:9px; line-height:1.8; text-align:center; }

.verdict-section { text-align: center; padding: 26px 24px 64px; background: radial-gradient(ellipse at center, rgba(185,149,79,.08), transparent 65%); }
.verdict-title { display: flex; justify-content: center; align-items: center; gap: 13px; color: var(--gold); font-size: 10px; letter-spacing: .35em; }
.verdict-title i { width: 28px; height: 1px; background: var(--gold); }
.verdict-section blockquote { margin: 24px 0 18px; font-family: var(--display); font-size: clamp(22px, 6vw, 30px); line-height: 1.9; letter-spacing: .12em; }
.poem-line { display: block; white-space: nowrap; }
.verdict-section p { color: #817762; font-size: 11px; }
.verify-link { margin-top: 18px; padding: 9px 14px; color: var(--gold); border: 1px solid rgba(185,149,79,.32); background: transparent; font-size: 10px; letter-spacing: .15em; }
.verify-link[hidden] { display:none!important; }

.about-view { position:relative; }
.lore-hero { position:relative;min-height:242px;padding:24px 22px 25px;overflow:hidden;border:1px solid rgba(190,151,74,.38);background:radial-gradient(circle at 82% 24%,rgba(182,138,67,.19),transparent 110px),radial-gradient(circle at 18% 88%,rgba(67,117,107,.16),transparent 140px),linear-gradient(145deg,#22231d,#10120f 72%);box-shadow:inset 0 0 36px rgba(0,0,0,.34); }
.lore-hero::before { content:"";position:absolute;inset:9px;border:1px solid rgba(221,194,126,.11);pointer-events:none; }
.lore-hero .eyebrow { margin:0 0 14px; }
.lore-hero h2 { position:relative;z-index:2;margin:0;color:#f1dfb2;font:500 38px/1.3 var(--display);letter-spacing:.16em;text-shadow:0 4px 22px #000; }
.lore-hero p:last-of-type { position:relative;z-index:2;max-width:265px;margin:17px 0 0;color:#b8ad95;font-size:10px;line-height:1.8; }
.lore-hero > i { position:absolute;right:-9px;bottom:-35px;color:rgba(150,49,39,.17);font:normal 158px/1 var(--display);transform:rotate(-8deg); }
.lore-preface { position:relative;margin-top:10px;padding:20px 17px 17px;overflow:hidden;border:1px solid rgba(190,151,74,.3);background:linear-gradient(155deg,rgba(42,39,30,.96),rgba(17,21,18,.97));box-shadow:inset 0 1px rgba(255,255,255,.025),0 10px 24px rgba(0,0,0,.22); }
.lore-preface::before { content:"";position:absolute;right:-46px;top:54px;width:150px;height:150px;opacity:.16;border:1px solid #b4934c;border-radius:50%;box-shadow:inset 0 0 0 16px rgba(180,147,76,.1),inset 0 0 0 38px rgba(180,147,76,.06);pointer-events:none; }
.lore-preface::after { content:"";position:absolute;left:17px;right:17px;bottom:10px;height:1px;background:linear-gradient(90deg,transparent,#a98445,transparent);opacity:.35; }
.lore-preface header { position:relative;z-index:1;display:grid;grid-template-columns:43px 1fr;align-items:center;gap:12px;margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid rgba(213,199,162,.13); }
.lore-preface header>span { width:41px;height:41px;display:grid;place-items:center;color:#e27b6b;border:1px solid rgba(174,59,47,.7);background:rgba(135,42,34,.08);font:22px/1 var(--display);transform:rotate(-3deg); }
.lore-preface header small { display:block;color:#857b65;font-size:8px;letter-spacing:.17em; }
.lore-preface header h3 { margin:3px 0 0;color:#eadbb9;font:500 21px/1.15 var(--display);letter-spacing:.14em; }
.lore-preface>p { position:relative;z-index:1;margin:0 0 13px;color:#b7ad96;font-size:13px;line-height:2;text-align:justify;letter-spacing:.035em; }
.lore-preface .lore-dropcap::first-letter { float:left;margin:5px 7px 0 0;color:#e3c274;font:42px/.82 var(--display);text-shadow:0 3px 14px rgba(206,166,78,.2); }
.lore-preface blockquote { position:relative;z-index:1;margin:18px 0 5px;padding:12px 10px;color:#e5cf94;border-top:1px solid rgba(190,151,74,.24);border-bottom:1px solid rgba(190,151,74,.24);font:500 16px/1.7 var(--display);text-align:center;letter-spacing:.1em; }
.lore-chapters { display:grid;gap:8px;margin-top:10px; }
.lore-chapters article { position:relative;display:grid;grid-template-columns:36px minmax(0,1fr);gap:11px;padding:14px 13px;overflow:hidden;border:1px solid rgba(74,120,113,.28);background:linear-gradient(110deg,rgba(53,94,88,.13),rgba(17,19,15,.74)); }
.lore-chapters article::after { content:"";position:absolute;right:-24px;bottom:-34px;width:70px;height:70px;border:1px solid rgba(76,124,115,.1);transform:rotate(45deg); }
.lore-chapters article > span { width:32px;height:32px;display:grid;place-items:center;color:#d0ad60;border:1px solid rgba(194,155,72,.45);font:16px/1 var(--display);transform:rotate(-2deg); }
.lore-chapters h3 { margin:0 0 4px;color:#e7d8b5;font:16px/1.2 var(--display);letter-spacing:.12em; }
.lore-chapters p,.lore-note { margin:0;color:#988e76;font-size:9px;line-height:1.7; }
.lore-note { margin:12px 3px 10px;padding:11px 12px;border-left:2px solid rgba(159,57,46,.65);background:rgba(99,42,34,.06); }
.lore-note b { color:#c9ad6d;font-weight:500; }
.battle-portal-wrap { display:grid;place-items:center;margin:18px 0 4px;isolation:isolate; }
.battle-portal { --portal-size:132px;position:relative;width:var(--portal-size);height:var(--portal-size);padding:0;overflow:visible;border:0;border-radius:50%;color:#f2dfaa;background:#090b09;cursor:pointer;box-shadow:0 0 0 1px rgba(198,157,74,.38),0 0 26px rgba(182,133,47,.14),0 14px 30px rgba(0,0,0,.45);transition:transform .22s ease,filter .22s ease; }
.battle-portal::before { content:"";position:absolute;inset:-8px;border:1px solid rgba(190,147,66,.34);border-radius:50%;background:repeating-conic-gradient(from 18deg,rgba(211,174,89,.66) 0 1deg,transparent 1deg 43deg);filter:drop-shadow(0 0 5px rgba(208,159,59,.2));animation:portal-orbit 18s linear infinite; }
.battle-portal::after { content:"";position:absolute;inset:9px;border:1px solid rgba(224,185,101,.32);border-radius:50%;box-shadow:inset 0 0 18px rgba(225,171,65,.13),0 0 12px rgba(225,171,65,.1);animation:portal-breathe 2.8s ease-in-out infinite; }
.battle-portal-art { position:absolute;inset:0;overflow:hidden;border-radius:50%;background:url('/assets/ui/battle-portal.webp?v=20260905-1') center/cover no-repeat; }
.battle-portal-art::after { content:"";position:absolute;inset:17%;border-radius:50%;background:radial-gradient(circle,rgba(0,0,0,.14),rgba(0,0,0,.62) 68%,transparent 72%);box-shadow:inset 0 0 17px rgba(0,0,0,.8); }
.battle-portal-copy { position:absolute;z-index:3;inset:0;display:grid;place-content:center;gap:5px;border-radius:50%;text-shadow:0 2px 5px #000,0 0 10px #000; }
.battle-portal-copy b { font:500 19px/1.1 var(--display);letter-spacing:.12em; }
.battle-portal-copy small { color:#c9ad6c;font-size:10px;letter-spacing:.14em; }
.battle-portal:hover { transform:translateY(-2px) scale(1.025);filter:brightness(1.1); }
.battle-portal:active { transform:scale(.97); }
.battle-portal:disabled { cursor:wait;filter:saturate(.7); }
.battle-portal.is-opening .battle-portal-art { animation:portal-draw-in .8s ease-in infinite; }
.battle-portal.is-opening::before { animation-duration:1.4s; }
@keyframes portal-orbit { to { transform:rotate(360deg); } }
@keyframes portal-breathe { 50% { transform:scale(1.045);opacity:.62;box-shadow:inset 0 0 22px rgba(225,171,65,.22),0 0 19px rgba(225,171,65,.2); } }
@keyframes portal-draw-in { 50% { transform:rotate(8deg) scale(1.08);filter:brightness(1.22); } }
@media (prefers-reduced-motion:reduce) { .battle-portal::before,.battle-portal::after,.battle-portal.is-opening .battle-portal-art { animation:none; } }

.app-view { min-height: calc(100vh - 150px); padding: 38px 20px 100px; max-width: 980px; margin: auto; }
.app-view[hidden], main[hidden] { display: none !important; }
.view-heading { text-align: center; margin: 14px 0 34px; }
.view-heading p { color: var(--gold); font-size: 10px; letter-spacing: .42em; margin: 0 0 8px .42em; }
.view-heading h2 { font-family: var(--display); font-size: clamp(38px,10vw,58px); font-weight: 500; letter-spacing: .2em; margin: 0 0 8px .2em; }
.view-heading span { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.empty-state { grid-column: 1/-1; text-align: center; color: var(--muted); padding: 60px 20px; font-size: 12px; }
.history-list { display: grid; gap: 9px; max-width: 720px; margin: auto; }
.history-item { width: 100%; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 15px; padding: 15px; text-align: left; color: var(--paper); background: rgba(28,27,22,.76); border: 1px solid rgba(185,149,79,.18); }
.history-item > .history-date { width: 48px; height: 48px; display: grid; place-items: center; color: #d16a5c; border: 1px solid rgba(155,46,37,.55); font-family: var(--display); font-size: 13px; }
.history-item div { display: grid; gap: 2px; }
.history-item small,.history-item em,.history-item i { color: var(--muted); font-size: 9px; font-style: normal; }
.history-item b { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: .12em; }
.collection-summary { display:grid;grid-template-columns:repeat(3,1fr);margin:0 10px 13px;border:1px solid rgba(185,149,79,.24);background:linear-gradient(135deg,rgba(185,149,79,.08),rgba(49,91,91,.08)); }
.collection-summary > span { min-height:56px;display:grid;place-content:center;text-align:center;color:#887d65;font-size:9px; }
.collection-summary > span + span { border-left:1px solid rgba(213,199,162,.12); }
.collection-summary small { display:block;font-size:8px;letter-spacing:.12em; }
.collection-summary b { color:var(--paper);font:500 20px var(--display); }
.collection-summary .collection-count { display:inline-flex;align-items:baseline;justify-content:center;white-space:nowrap; }
.collection-summary .collection-count small { display:inline;margin-left:1px;color:#a29881;font:500 .58em/1 var(--display);letter-spacing:0; }
.collection-summary .ready b { color:var(--gold-light);text-shadow:0 0 14px rgba(225,197,123,.35); }
.roster-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 10px; }
.roster-status-filter { margin-bottom:24px; }
.roster-filter button { color: var(--muted); background: transparent; border: 1px solid rgba(213,199,162,.18); padding: 7px 16px; font-size: 10px; }
.roster-filter button.active { color: var(--gold-light); border-color: var(--gold); }
.roster-grid { display:grid; grid-template-columns:1fr; gap:18px; max-width:1180px; margin:auto; }
.roster-card { aspect-ratio:.68; min-height:0; position:relative; overflow:hidden; display:block; padding:0; color:#201a12; text-align:left; border:3px double rgba(58,43,27,.78); background:
  radial-gradient(circle at 70% 20%,rgba(83,72,52,.12),transparent 34%),
  radial-gradient(circle at 30% 72%,rgba(75,53,34,.1),transparent 29%),
  repeating-linear-gradient(4deg,rgba(74,55,35,.025) 0 1px,transparent 1px 5px),
  #cbb995;
  box-shadow:inset 0 0 0 4px rgba(223,206,168,.56),inset 0 0 38px rgba(58,39,21,.3),0 15px 36px rgba(0,0,0,.32); cursor:pointer; }
.roster-card.roster-tiangang { border-color:#8d5d24;box-shadow:inset 0 0 0 4px rgba(229,198,123,.66),inset 0 0 38px rgba(116,43,27,.28),0 15px 36px rgba(0,0,0,.32); }
.roster-card.roster-disha { border-color:#315d58;box-shadow:inset 0 0 0 4px rgba(112,145,133,.42),inset 0 0 38px rgba(26,57,57,.28),0 15px 36px rgba(0,0,0,.32); }
.roster-disha .roster-star { background:transparent; }
.roster-card::before { content:""; position:absolute; inset:8px; z-index:7; pointer-events:none; border:1px solid rgba(65,45,27,.55); }
.roster-card::after { content:""; position:absolute; inset:0; z-index:6; pointer-events:none; opacity:.32; mix-blend-mode:multiply; background-image:linear-gradient(0deg,rgba(31,25,17,.88) 0 15%,rgba(65,49,30,.18) 29%,transparent 48%),url("data:image/svg+xml,%3Csvg viewBox='0 0 180 260' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.52' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E"); }
.roster-corner { position:absolute; inset:5px; z-index:8; pointer-events:none; background:
  linear-gradient(#5d4830,#5d4830) left top/22px 2px no-repeat,linear-gradient(#5d4830,#5d4830) left top/2px 22px no-repeat,
  linear-gradient(#5d4830,#5d4830) right top/22px 2px no-repeat,linear-gradient(#5d4830,#5d4830) right top/2px 22px no-repeat,
  linear-gradient(#5d4830,#5d4830) left bottom/22px 2px no-repeat,linear-gradient(#5d4830,#5d4830) left bottom/2px 22px no-repeat,
  linear-gradient(#5d4830,#5d4830) right bottom/22px 2px no-repeat,linear-gradient(#5d4830,#5d4830) right bottom/2px 22px no-repeat; }
.roster-name { position:absolute; z-index:9; left:7%; top:4%; writing-mode:vertical-rl; color:#17130e; font:500 clamp(37px,11vw,55px)/.92 var(--display); letter-spacing:.01em; text-shadow:0 1px rgba(255,255,255,.55),0 0 12px rgba(223,209,174,.3); }
.roster-nickname { position:absolute; z-index:9; left:19.5%; top:6%; padding:6px 3px; writing-mode:vertical-rl; color:#5e271f; background:linear-gradient(180deg,transparent 0%,rgba(225,205,163,.58) 18%,rgba(207,175,119,.3) 72%,transparent 100%); border:0;box-shadow:none; font:11px/1.15 var(--display); letter-spacing:.1em; text-shadow:0 1px rgba(255,255,255,.45); }
.roster-star { position:absolute; z-index:9; right:7%; top:6%;padding:0; writing-mode:vertical-rl; color:rgba(232,216,177,.96); background:transparent; font:500 17px/1.05 var(--display); letter-spacing:.12em;text-align:center; text-shadow:0 0 4px rgba(244,214,143,.72),0 0 12px rgba(181,132,43,.48);box-shadow:none; }
.roster-constellation { position:absolute; z-index:8; right:-9%; top:.25%; width:41%; height:30%; overflow:visible; opacity:.7; filter:drop-shadow(0 0 5px rgba(217,178,83,.42)); transform:scaleX(-1) rotate(79deg);transform-origin:center; }
.roster-constellation line { stroke:#d6bd80; stroke-width:1.15; opacity:.6; }
.roster-constellation circle { fill:#efd79d; filter:drop-shadow(0 0 4px #cda345); }
.roster-rank { position:absolute; z-index:9; left:7%; bottom:5%;padding:0; writing-mode:vertical-rl; color:rgba(247,237,213,.8); background:transparent;border:0; font:500 9px/1.35 var(--display); letter-spacing:.08em; white-space:nowrap;text-align:center; text-shadow:0 1px 3px rgba(8,6,4,.98),0 0 9px rgba(255,239,193,.18); box-shadow:none; }
.roster-disha .roster-rank { color:rgba(224,238,228,.7);background:transparent;border:0; }
.roster-portrait { position:absolute; inset:3%; overflow:hidden; background:none; }
.roster-portrait::before,.roster-portrait::after { content:none; }
.roster-portrait .portrait-art { z-index:2; opacity:1; }
.roster-copy { position:absolute; z-index:9; left:6%; right:52%; bottom:17%; display:grid; gap:3px; padding-top:6px; border-top:1px solid rgba(60,43,25,.4); }
.roster-copy b,.roster-skill-title { color:#3c2d20; font:10px var(--serif); letter-spacing:.12em; }
.roster-copy em { color:#504231; font:8px/1.65 var(--serif); font-style:normal; }
.roster-skill-title { position:absolute; z-index:9; left:6%; bottom:10%; }
.roster-skills { position:absolute; z-index:9; left:6%; right:6%; bottom:2.7%; display:flex; justify-content:flex-end; gap:7px; }
.roster-skills > i { width:42px; display:grid; justify-items:center; gap:2px; color:#30281d; font-style:normal; }
.roster-skills > i > b { width:30px; height:30px; display:grid; place-items:center; border:2px solid #34291d; border-radius:50%; color:#ead9a9; font:15px var(--display); box-shadow:inset 0 0 0 2px rgba(228,205,151,.23),0 2px 6px rgba(42,29,16,.3); }
.roster-skills .skill-1 > b { background:radial-gradient(circle,#3d7459,#172c24); }
.roster-skills .skill-2 > b { background:radial-gradient(circle,#335f76,#172b38); }
.roster-skills .skill-3 > b { background:radial-gradient(circle,#a56b22,#513414); }
.roster-skills > i > em { color:#463829; font:7px var(--serif); font-style:normal; white-space:nowrap; }
.verify-dialog code { display: block; overflow-wrap: anywhere; padding: 11px; color: #b9ad8c; background: #0e0e0b; border-left: 2px solid var(--gold); font: 9px/1.7 ui-monospace,monospace; }
.verify-dialog a { color: var(--gold-light); }

.bottom-nav { position: fixed; z-index: 30; left: 50%; width:min(100%,390px); transform:translateX(-50%); bottom: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(14,14,12,.94); backdrop-filter: blur(14px); border: 1px solid rgba(213,199,162,.13); border-bottom:0; }
.bottom-nav button { border: 0; background: transparent; color: #716853; font-size: 7px; letter-spacing: 0; padding:0 1px; }
.bottom-nav span { display: block; font-family: var(--display); font-size: 21px; margin-bottom: 3px; }
.bottom-nav .active { color: var(--gold-light); }
.oracle-card,.account-card,.prediction-form { border:1px solid rgba(185,149,79,.28); background:linear-gradient(145deg,rgba(185,149,79,.08),rgba(49,91,91,.07)); padding:22px; margin-bottom:14px; }
.oracle-card small,.account-card small { color:var(--muted); font-size:9px; letter-spacing:.16em; }
.oracle-card blockquote { margin:18px 0; color:var(--paper-light); font:500 24px/1.7 var(--display); letter-spacing:.08em; }
.oracle-meta { display:flex; justify-content:space-between; color:#887d65; font-size:9px; }
.prediction-form { display:grid; gap:10px; }
.prediction-form label { display:grid; gap:5px; color:#9b9077; font-size:10px; }
.prediction-form select,.account-form input { width:100%; color:var(--paper); background:#11110e; border:1px solid rgba(213,199,162,.22); padding:11px; font:12px var(--serif); }
.primary-action { width:100%; padding:12px; color:#f0d591; background:#38271a; border:1px solid var(--gold); letter-spacing:.18em; }
.form-note,.form-error,.form-success { color:#80755f; font-size:10px; line-height:1.7; }
.form-error { color:#d36d5d; }
.form-success { color:#bfa460; }
.account-card h3 { font:500 25px var(--display); margin:8px 0; }
.power-orb { width:92px;height:92px;margin:18px auto;display:grid;place-items:center;border:1px solid var(--gold);border-radius:50%;box-shadow:inset 0 0 28px rgba(185,149,79,.16),0 0 30px rgba(185,149,79,.08); }
.power-orb strong { font:500 36px var(--display);color:var(--gold-light); }
.power-orb span { display:block;font-size:8px;color:var(--muted); }
.account-tabs { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px; }
.account-tabs button { padding:9px;color:var(--muted);background:transparent;border:1px solid rgba(213,199,162,.2); }
.account-tabs button.active { color:var(--gold-light);border-color:var(--gold); }
.account-form { display:grid;gap:10px; }
.activity-scroll { margin:18px 0 0;padding:0 8px; }
.activity-heading { display:flex;align-items:end;justify-content:space-between;margin:0 0 12px;padding:0 3px 9px;border-bottom:1px solid rgba(213,199,162,.14); }
.activity-heading small { color:var(--gold);font-size:9px;letter-spacing:.2em; }
.activity-heading h3 { margin:0;font:500 24px var(--display);letter-spacing:.12em; }
.activity-block { margin-bottom:17px; }
.activity-block h4 { margin:0 0 7px;color:#897e67;font-size:9px;font-weight:400;letter-spacing:.18em; }
.activity-item { display:grid;grid-template-columns:36px 1fr;align-items:center;gap:10px;padding:10px 8px;background:rgba(27,27,23,.72);border-bottom:1px solid rgba(213,199,162,.09); }
.activity-item i { width:32px;height:32px;display:grid;place-items:center;color:#d8c58e;border:1px solid rgba(185,149,79,.42);font:16px var(--display);font-style:normal; }
.activity-item div { display:grid;gap:3px; }
.activity-item b { color:#d8ceb4;font:500 13px var(--display);letter-spacing:.06em; }
.activity-item span,.activity-empty { color:#746b58;font-size:9px; }
.activity-empty { margin:0;padding:12px;background:rgba(27,27,23,.52); }
.roster-owned { position:absolute;z-index:12;right:6%;top:24%;padding:4px 6px;color:#f2d692;background:#67261f;font-size:8px; }
.roster-fragments { position:absolute;z-index:12;right:6%;bottom:18%;color:#4d3a29;font-size:8px; }
.defense-view { padding-left:10px;padding-right:10px; }
.defense-lobby { margin:0 8px;padding:22px;border:1px solid rgba(185,149,79,.28);background:linear-gradient(145deg,rgba(155,46,37,.1),rgba(49,91,91,.1)); }
.defense-lobby h3 { margin:5px 0 12px;font:500 29px var(--display);letter-spacing:.12em; }
.defense-lobby p { color:#978b72;font-size:10px;line-height:1.8; }
.defense-lobby select { width:100%;margin:8px 0 14px;padding:10px;color:var(--paper);background:#11110e;border:1px solid rgba(213,199,162,.22); }
.battle-shell { position:relative;margin:0 auto;width:100%;max-width:390px;background:#10110d;border:1px solid rgba(185,149,79,.36);overflow:hidden; }
#defenseCanvas { display:block;width:100%;aspect-ratio:390/760;touch-action:none;background:#b8aa83;overflow:hidden; }
#defenseCanvas canvas { display:block;width:100%!important;height:100%!important;touch-action:none; }
.battle-hud { position:absolute;left:0;right:0;top:0;display:grid;grid-template-columns:1fr auto 1fr;gap:6px;padding:9px 10px;color:#f0e3bd;background:linear-gradient(#171813e8,transparent);font-size:9px;pointer-events:none; }
.battle-hud b { font:500 20px var(--display);color:#f0d591;text-align:center; }
.battle-hud span:last-child { text-align:right; }
.battle-controls { position:absolute;left:0;right:0;bottom:8px;display:flex;justify-content:space-between;align-items:end;padding:0 12px; }
.battle-exit { position:absolute;z-index:4;top:38px;right:10px;width:34px;height:34px;border:1px solid rgba(225,197,123,.45);border-radius:50%;color:#ead9ae;background:rgba(22,23,18,.78);font:500 14px var(--display); }
.dpad { width:112px;height:112px;display:grid;grid-template:repeat(3,1fr)/repeat(3,1fr);gap:3px; }
.dpad button,.tactic-button { color:#ead9ae;background:rgba(22,23,18,.82);border:1px solid rgba(225,197,123,.45);border-radius:8px;touch-action:none; }
.dpad [data-dir=up]{grid-column:2}.dpad [data-dir=left]{grid-row:2;grid-column:1}.dpad [data-dir=down]{grid-row:2;grid-column:2}.dpad [data-dir=right]{grid-row:2;grid-column:3}
.tactic-button { width:68px;height:68px;border-radius:50%;font:500 17px var(--display);box-shadow:inset 0 0 18px rgba(155,46,37,.35); }
.tactic-button:disabled { opacity:.35; }
.battle-message { position:absolute;left:50%;top:18%;transform:translateX(-50%);padding:8px 16px;color:#f4deb0;background:rgba(32,20,13,.78);border:1px solid rgba(185,149,79,.4);font:500 18px var(--display);white-space:nowrap;opacity:0;transition:opacity .25s;pointer-events:none; }
.battle-message.show { opacity:1; }
.tactic-preview { min-height:48px;margin:0 0 12px;padding:9px 10px;display:grid;grid-template-columns:auto 1fr;gap:2px 10px;color:#aa9b78;background:rgba(49,91,91,.09);border-left:2px solid var(--lake); }
.tactic-preview > span { grid-row:1 / 3;align-self:center;padding-right:10px;color:#8f856f;border-right:1px solid rgba(213,199,162,.12);font-size:9px;letter-spacing:.12em; }
.tactic-preview > strong { align-self:end;color:#e3cf98;font:500 15px/1.25 var(--display);letter-spacing:.08em; }
.tactic-preview > small { align-self:start;color:#a89d84;font-size:9px;line-height:1.45; }
.tactic-preview.no-tactic { border-left-color:#6e6859;background:rgba(110,104,89,.07); }
.tactic-preview.no-tactic > strong { color:#aaa18d; }
.tactic-status { position:absolute;z-index:3;left:50%;top:48px;transform:translateX(-50%);max-width:230px;color:#c8b98e;font-size:8px;letter-spacing:.08em;white-space:nowrap;text-shadow:0 1px 3px #000;pointer-events:none; }

body.battle-active { overflow:hidden;padding-bottom:0;overscroll-behavior:none; }
body.battle-active .masthead,
body.battle-active .notice-ticker,
body.battle-active .bottom-nav,
body.battle-active .defense-view > .view-heading { display:none; }
body.battle-active .defense-view { height:100dvh;min-height:100dvh;padding:0; }
body.battle-active #defensePanel,
body.battle-active .battle-shell { width:100%;height:100%;max-width:none;margin:0;border:0; }
body.battle-active #defenseCanvas { position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto; }
body.battle-active .battle-hud { padding-top:max(9px,env(safe-area-inset-top)); }
body.battle-active .battle-exit { top:max(38px,calc(env(safe-area-inset-top) + 32px)); }
body.battle-active .battle-controls { bottom:max(8px,env(safe-area-inset-bottom)); }

body.draw-active { overflow:hidden;padding-bottom:0;overscroll-behavior:none; }
body.draw-active .masthead,body.draw-active .bottom-nav { display:none; }
body.draw-active .defense-view { height:100dvh;min-height:100dvh;padding:0; }
body.draw-active #defensePanel { width:100%;height:100%;margin:0; }
.hero-draw {
  position:relative;width:100%;height:100%;min-height:100dvh;display:grid;grid-template-rows:auto 1fr auto auto auto;
  align-items:center;padding:max(28px,env(safe-area-inset-top)) 18px max(24px,env(safe-area-inset-bottom));overflow:hidden;
  background:radial-gradient(circle at 50% 42%,rgba(112,80,39,.22),transparent 30%),radial-gradient(circle at 50% 48%,#24231b,#11120e 68%);
}
.hero-draw::before { content:"";position:absolute;inset:-10%;opacity:.18;background:repeating-conic-gradient(from 0deg at 50% 46%,#c19b51 0 1deg,transparent 1deg 15deg);mask-image:radial-gradient(circle,transparent 0 27%,#000 28% 56%,transparent 57%);animation:drawOrbit 18s linear infinite; }
.hero-draw::after { content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 20% 20%,rgba(210,178,103,.2) 0 1px,transparent 2px),radial-gradient(circle at 78% 31%,rgba(210,178,103,.18) 0 1px,transparent 2px);background-size:57px 73px,83px 61px; }
@keyframes drawOrbit { to { transform:rotate(360deg); } }
.draw-heading { position:relative;z-index:2;display:grid;justify-items:center;gap:4px;text-align:center; }
.draw-heading small { color:#b7924e;font-size:9px;letter-spacing:.28em; }
.draw-heading strong { color:#f0dfb7;font:500 32px/1.1 var(--display);letter-spacing:.22em;text-indent:.22em;text-shadow:0 0 24px rgba(215,179,99,.18); }
.draw-heading span { color:#918772;font-size:9px; }
.draw-stage { position:relative;z-index:2;width:236px;height:347px;align-self:center;margin:auto;perspective:900px; }
.draw-card-shadow { position:absolute;inset:0;border:1px solid #7b6338;background:#1a1b16; }
.draw-card-shadow.shadow-one { transform:translate(-13px,8px) rotate(-5deg);opacity:.38; }
.draw-card-shadow.shadow-two { transform:translate(13px,8px) rotate(5deg);opacity:.5; }
.draw-roster-card { position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;cursor:default;transition:border-color .16s,filter .16s;box-shadow:0 25px 70px #000,inset 0 0 0 4px rgba(223,206,168,.56),inset 0 0 38px rgba(58,39,21,.3); }
.draw-roster-card.revealed { animation:drawReveal .46s cubic-bezier(.2,.8,.2,1) both;box-shadow:0 0 0 1px rgba(239,207,130,.45),0 25px 80px #000,0 0 45px rgba(210,168,82,.22); }
@keyframes drawReveal { 0% { transform:rotateY(90deg) scale(.9);filter:brightness(2); } 100% { transform:none;filter:none; } }
.draw-result { position:relative;z-index:2;min-height:55px;display:grid;justify-items:center;align-content:center;gap:3px;text-align:center; }
.draw-result b { color:#d8c69e;font:500 16px var(--display);letter-spacing:.12em; }
.draw-result span { color:#918773;font-size:9px;line-height:1.5; }
.draw-result.buff-hit b { color:#f0cf76;text-shadow:0 0 16px rgba(232,190,91,.4); }
.draw-result.buff-hit span { color:#cbb57e; }
.draw-action { position:relative;z-index:3;min-height:52px;display:grid;place-items:center; }
.draw-enter { min-width:170px;min-height:46px;display:flex;align-items:center;justify-content:center;gap:10px;padding:7px 18px;color:#f1d48d;border:1px solid #c29b50;background:linear-gradient(180deg,#4d3520,#302216);box-shadow:0 8px 25px rgba(0,0,0,.35),inset 0 0 15px rgba(201,157,75,.08); }
.draw-enter[hidden] { display:none; }
.draw-enter > span { padding-right:10px;border-right:1px solid rgba(234,207,145,.24);font:16px var(--display);letter-spacing:.12em; }
.draw-enter > b { font-size:11px;font-weight:500;letter-spacing:.16em; }
.draw-enter:active { transform:translateY(1px);filter:brightness(1.14); }
.draw-enter:disabled { opacity:.6; }
.draw-progress { position:relative;z-index:2;width:72%;height:2px;margin:8px auto 0;background:rgba(212,192,148,.12); }
.draw-progress i { display:block;width:3%;height:100%;background:#d1aa5d;box-shadow:0 0 10px #c99b45;transition:width .16s; }

dialog { width: min(90vw, 430px); color: var(--paper-light); background: #171611; border: 1px solid #79633b; padding: 0; box-shadow: 0 30px 100px #000; }
dialog::backdrop { background: rgba(4,4,3,.82); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 10px; top: 8px; z-index: 2; width: 34px; height: 34px; border: 0; background: transparent; color: var(--paper); font-size: 26px; }
.dialog-hero { padding: 34px 28px 30px; }
.dialog-hero .eyebrow { margin: 0 0 5px; }
.dialog-hero h2 { font-family: var(--display); font-weight: 500; font-size: 38px; letter-spacing: .16em; margin: 0; }
.dialog-hero h2 small { font-size: 16px; color: var(--cinnabar); }
.dialog-meta { color: #8e846e; border-bottom: 1px solid rgba(213,199,162,.14); padding: 8px 0 18px; font-size: 11px; }
.dialog-hero h3 { color: var(--gold); font-size: 11px; letter-spacing: .25em; margin-top: 22px; }
.dialog-hero p, .dialog-hero li { color: #aaa08a; font-size: 12px; line-height: 1.8; }
.dialog-hero ul { padding-left: 1.2em; }
.announcement-dialog-list{display:grid;gap:10px;margin-top:16px}.announcement-dialog-list article{padding:13px 14px;background:rgba(9,10,8,.42);border:1px solid rgba(185,149,79,.18);border-left:2px solid #567e73}.announcement-dialog-list article.pinned{border-left-color:var(--cinnabar)}.announcement-dialog-list header{display:flex;align-items:center;justify-content:space-between;gap:10px}.announcement-dialog-list h3{margin:0;color:#dfc985;font:17px/1.4 var(--display);letter-spacing:.08em}.announcement-dialog-list header span{flex:0 0 auto;padding:2px 5px;color:#d36c5e;border:1px solid rgba(155,46,37,.55);font-size:8px}.announcement-dialog-list p{margin:8px 0!important;white-space:normal}.announcement-dialog-list small{color:#716b5b;font-size:8px}
.collection-login-note { padding:12px;border-left:2px solid var(--lake);background:rgba(49,91,91,.1); }
.collection-owned-mark { display:flex;align-items:center;gap:12px;padding:12px;color:#d7c79d;background:rgba(155,46,37,.11);border:1px solid rgba(155,46,37,.35); }
.collection-owned-mark i { width:38px;height:38px;display:grid;place-items:center;border:2px solid #9b2e25;color:#d16a5c;font:22px var(--display);font-style:normal;transform:rotate(-4deg); }
.collection-owned-mark span { font-size:11px;letter-spacing:.08em; }
.synthesis-panel { padding:14px;border:1px solid rgba(185,149,79,.28);background:linear-gradient(145deg,rgba(185,149,79,.08),rgba(49,91,91,.06)); }
.synthesis-count { display:flex;align-items:end;justify-content:space-between;color:#9b9077;font-size:10px; }
.synthesis-count b { color:var(--gold-light);font:500 26px var(--display); }
.synthesis-count small { color:#80755f;font-size:10px; }
.fragment-track { height:5px;margin:9px 0 15px;background:#29271f;overflow:hidden; }
.fragment-track i { display:block;height:100%;background:linear-gradient(90deg,#315b5b,#d0ab61);box-shadow:0 0 10px #b9954f; }
.synthesis-panel .primary-action:disabled { color:#7b715b;border-color:#4e493c;background:#22211c; }
.synthesis-success { color:#dfc77f!important;padding:10px;border-left:2px solid var(--gold);background:rgba(185,149,79,.09); }

.account-button { width:30px;height:30px;color:var(--paper);background:transparent;border:1px solid rgba(213,199,162,.32);border-radius:50%;font:13px var(--display);transition:.2s ease; }
.account-button.active { color:#17140e;background:var(--gold-light);border-color:var(--gold-light);box-shadow:0 0 16px rgba(225,197,123,.22); }

body { padding-bottom:72px; }
.leader-section[hidden],.followers-section[hidden] { display:none!important; }
.masthead { height:58px;padding:max(7px,env(safe-area-inset-top)) 14px 5px; }
.brand span { font-size:7px;letter-spacing:.24em; }
.brand h1 { margin-top:4px;font-size:19px;letter-spacing:.22em; }
.seal-button,.sound-button { width:30px;height:30px; }
.sky-intro { padding:17px 14px 8px; }
.sky-intro::before { width:340px;height:180px;top:-55px; }
.date-line { gap:7px;font-size:8px;letter-spacing:.05em;white-space:nowrap; }
.date-line span:first-child,.date-line i { display:none; }
.sky-intro > .eyebrow { display:none; }
.sky-intro h2 { margin:8px 0 5px .15em;font-size:35px;letter-spacing:.15em; }
.sky-copy { display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:10px;line-height:1.55; }
.sky-tags { gap:5px;margin-top:9px; }
.sky-tags span { padding:3px 7px;font-size:8px; }

.result-brief { width:calc(100% - 20px);margin:7px 10px 14px;box-shadow:0 12px 34px rgba(0,0,0,.26); }
.brief-head { padding:10px 11px 8px; }
.brief-head p { font-size:7px; }
.brief-head h2 { font-size:20px; }
.reveal-countdown small { font-size:7px; }
.reveal-countdown strong { font-size:16px; }
.reveal-countdown span { max-width:118px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.brief-lineup { padding:9px 10px 10px; }
.brief-leader { grid-template-columns:50px 1fr;gap:9px;padding:5px;cursor:pointer; }
.brief-leader:focus-visible,.brief-follower:focus-visible { outline:1px solid var(--gold);outline-offset:2px; }
.brief-portrait { width:50px;height:59px; }
.brief-leader b { font-size:24px;line-height:1.05; }
.brief-leader small { font-size:7px; }
.brief-leader em { font-size:8px; }
.brief-followers { gap:3px;margin-top:7px; }
.brief-follower { cursor:pointer; }
.brief-follower > div span { left:2px;bottom:2px;width:15px;height:15px;font-size:10px; }
.brief-follower b { margin-top:3px;font-size:10px; }
.brief-follower small { display:none; }
.brief-verdict { display:none; }

.formation-section { margin:10px 10px 13px;padding:14px 13px; }
.formation-section .eyebrow { font-size:8px;margin-bottom:4px; }
.formation-section h2 { margin:0 50px 7px 0;font-size:23px;letter-spacing:.12em; }
.formation-section > p:last-of-type { margin:0;font-size:10px;line-height:1.6; }
.formation-seal { right:13px;top:12px;width:37px;height:37px;font-size:26px; }
.connections { margin-top:11px; }
.formation-buffs { gap:5px; }
.formation-buffs span { min-height:44px; }
.formation-buffs small { font-size:8px; }
.formation-buffs strong { font-size:16px; }
.formation-members { margin:6px 0 0;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.verdict-section { padding:15px 12px 26px; }
.verdict-title { font-size:8px; }
.verdict-section blockquote { margin:11px 0 8px;font-size:20px;line-height:1.62;letter-spacing:.08em; }
.verdict-section p { margin:0;font-size:9px;line-height:1.6; }
.verify-link { margin-top:10px;padding:7px 11px;font-size:8px; }

.app-view { min-height:calc(100vh - 116px);padding:13px 11px 72px;max-width:390px; }
.view-heading { display:grid;grid-template-columns:auto 1fr;align-items:end;gap:5px 12px;margin:0 0 12px;padding:0 2px 10px;text-align:left;border-bottom:1px solid rgba(213,199,162,.13); }
.view-heading p { display:none; }
.view-heading h2 { grid-row:1/3;margin:0;font-size:26px;letter-spacing:.12em; }
.view-heading span { align-self:end;font-size:8px;letter-spacing:.06em;text-align:right; }
.empty-state { padding:32px 14px;font-size:10px; }
.history-list { gap:6px; }
.history-item { grid-template-columns:42px 1fr auto;gap:9px;padding:9px; }
.history-item > .history-date { width:38px;height:38px;font-size:10px; }
.history-item small,.history-item em,.history-item i { font-size:8px; }
.history-item b { font-size:16px; }

.collection-summary { margin:0 0 8px; }
.collection-summary > span { min-height:45px; }
.collection-summary b { font-size:17px; }
.roster-filter { gap:5px;margin-bottom:6px; }
.roster-status-filter { margin-bottom:10px; }
.roster-filter button { flex:1;padding:6px 5px;font-size:9px; }
.roster-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }
.roster-card { border-width:2px;box-shadow:inset 0 0 0 3px rgba(223,206,168,.48),inset 0 0 25px rgba(58,39,21,.26),0 7px 16px rgba(0,0,0,.24); }
.roster-card::before { inset:5px; }
.roster-card::after { opacity:.16; }
.roster-corner { inset:3px; }
.roster-name { left:7%;top:5%;font-size:29px; }
.roster-nickname { left:26.2%;top:6%;padding:4px 3px;font-size:10px;font-weight:600;letter-spacing:.08em;background:linear-gradient(180deg,transparent 0%,rgba(225,205,163,.58) 18%,rgba(207,175,119,.3) 72%,transparent 100%); }
.roster-star { right:7%;top:6%;padding:0;font-size:14px;line-height:1.05; }
.roster-constellation { right:-9%;top:.25%;width:41%;height:30%; }
.roster-rank { left:7%;right:auto;top:auto;bottom:5%;padding:0;font-size:7.5px;line-height:1.3; }
.roster-portrait { inset:3%; }
.roster-copy,.roster-skill-title { display:none; }
.roster-skills { left:4%;right:4%;bottom:2%;gap:3px; }
.roster-skills > i { width:31px; }
.roster-skills > i > b { width:23px;height:23px;border-width:1px;font-size:11px; }
.roster-skills > i > em { font-size:6px; }
.roster-owned { right:5%;top:24%;font-size:7px; }
.roster-fragments { right:5%;bottom:16%;font-size:7px; }
.roster-tools { display:grid;gap:6px;margin:0 0 10px;padding:7px;border:1px solid rgba(213,199,162,.14);background:rgba(18,18,15,.68); }
.roster-tools .roster-filter { display:grid;grid-template-columns:34px 1fr;align-items:center;gap:6px;margin:0; }
.roster-tools .roster-filter > span { color:#756b57;font-size:8px;letter-spacing:.14em;text-align:center; }
.roster-tools .roster-filter > div { display:grid;grid-template-columns:repeat(3,1fr);gap:4px; }
.roster-tools .roster-filter button { width:100%;padding:6px 2px;font-size:9px; }
.roster-card.roster-locked { filter:grayscale(1) saturate(0) brightness(.58);opacity:.76;box-shadow:inset 0 0 0 3px rgba(196,190,174,.32),inset 0 0 26px rgba(38,37,34,.34),0 5px 12px rgba(0,0,0,.2); }
.roster-card.roster-locked .roster-owned { display:none; }
.roster-card.roster-owned-card { filter:none;opacity:1;animation:cardAwaken .38s ease both; }
@keyframes cardAwaken { from { filter:grayscale(.7) brightness(.7);transform:scale(.985); } }

.oracle-card,.account-card,.prediction-form { padding:13px;margin-bottom:9px; }
.oracle-card blockquote { margin:10px 0;font-size:20px;line-height:1.5; }
.prediction-form { grid-template-columns:1fr 1fr;gap:7px; }
.prediction-form label { gap:3px;font-size:9px; }
.prediction-form label:first-child,.prediction-form .form-note,.prediction-form .form-error,.prediction-form .form-success,.prediction-form .primary-action { grid-column:1/-1; }
.prediction-form select,.account-form input { padding:9px 7px;font-size:11px; }
.primary-action { padding:10px;font-size:11px; }
.form-note,.form-error,.form-success { margin:0;font-size:9px;line-height:1.55; }
.account-tabs { gap:5px;margin-bottom:7px; }
.account-tabs button { padding:7px; }
.account-form { gap:7px; }
.account-overview { display:grid;grid-template-columns:1fr 67px;align-items:center;gap:8px 10px; }
.account-identity { min-width:0; }
.account-card h3 { overflow:hidden;margin:4px 0;font-size:18px;text-overflow:ellipsis;white-space:nowrap; }
.power-orb { width:62px;height:62px;margin:0; }
.power-orb strong { font-size:27px; }
.quiet-action { grid-column:1/-1;padding:6px;color:#817762;background:transparent;border:1px solid rgba(213,199,162,.14);font-size:9px; }
.activity-scroll { margin:10px 0 0;padding:0; }
.activity-heading { margin-bottom:6px;padding:0 2px 6px; }
.activity-heading h3 { font-size:19px; }
.activity-block { margin-bottom:10px; }
.activity-item { grid-template-columns:30px 1fr;gap:7px;padding:7px 6px; }
.activity-item i { width:27px;height:27px;font-size:13px; }
.activity-item b { font-size:11px; }

.defense-view { padding-left:8px;padding-right:8px; }
.defense-lobby { margin:0;padding:14px; }
.defense-lobby h3 { margin:2px 0 6px;font-size:23px; }
.defense-lobby p { margin:5px 0;font-size:9px;line-height:1.55; }
.defense-lobby select { margin:5px 0 8px;padding:8px; }
.tactic-preview { min-height:0;margin-bottom:8px;padding:7px; }

dialog { width:min(calc(100vw - 20px),370px);max-height:calc(100dvh - 24px);overflow:auto; }
.dialog-hero { padding:24px 18px 20px; }
.dialog-hero h2 { font-size:30px; }
.dialog-meta { padding:6px 0 10px; }
.dialog-hero h3 { margin-top:14px; }
.dialog-hero p,.dialog-hero li { font-size:11px;line-height:1.65; }

@media (max-width:519px) {
  .verdict-section { padding-left: 12px; padding-right: 12px; }
  .verdict-section blockquote { font-size: clamp(18px, 5.3vw, 22px); line-height: 1.75; letter-spacing: .07em; }
  .poem-line::after { display: none !important; }
  .dialog-hero .poem-line { line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:root {
  --ink: #12120f;
  --ink-deep: #0b0c0a;
  --surface: rgba(31,31,26,.92);
  --surface-soft: rgba(38,37,31,.76);
  --line: rgba(220,204,164,.18);
  --line-strong: rgba(185,149,79,.46);
  --paper: #d9cfb5;
  --paper-light: #f1e7ce;
  --muted: #a69a7e;
  --gold: #c09b54;
  --gold-light: #efd28b;
  --cinnabar: #ad3d32;
  --lake: #3f706d;
  --tap: 44px;
}

html { background:#090a08; }
body {
  color:var(--paper-light);
  background:
    radial-gradient(circle at 82% 4%,rgba(71,105,96,.2),transparent 250px),
    radial-gradient(circle at 6% 48%,rgba(140,55,42,.13),transparent 300px),
    linear-gradient(180deg,#191914,#12130f 46%,#0f100d);
}
body::before {
  content:"";position:fixed;z-index:-1;inset:0 max(0px,calc((100vw - 390px)/2));pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(239,210,139,.025) 48%,transparent 52%);
}
button,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:focus-visible,input:focus-visible,select:focus-visible,[role=button]:focus-visible {
  outline:2px solid var(--gold-light);outline-offset:2px;
}
button:active { transform:translateY(1px); }

.masthead {
  position:sticky;top:0;z-index:25;height:66px;padding:max(9px,env(safe-area-inset-top)) 14px 7px;
  background:linear-gradient(180deg,rgba(18,19,15,.97),rgba(18,19,15,.9));
  border-bottom:1px solid var(--line);backdrop-filter:blur(16px) saturate(.8);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.brand { min-width:0; }
.brand span { display:block;color:#9a9078;font-size:9px;letter-spacing:.2em;white-space:nowrap; }
.brand h1 { margin-top:5px;color:#f0e5cb;font-size:22px;letter-spacing:.2em;text-shadow:0 2px 12px #000; }
.seal-button,.account-button { width:36px;height:36px;min-width:36px;transition:background .2s,color .2s,border-color .2s; }
.seal-button { color:#df7768;border-color:rgba(173,61,50,.8);background:rgba(173,61,50,.06); }
.account-button { font-size:15px;border-color:rgba(220,204,164,.4); }

main,.app-view { animation:viewEnter .3s ease both; }
@keyframes viewEnter { from { opacity:.3;transform:translateY(5px); } }
.app-view {
  position:relative;min-height:calc(100dvh - 66px);padding:14px 12px 86px;
}
.app-view::after {
  content:"";position:fixed;z-index:-1;left:50%;top:44%;width:220px;height:220px;transform:translate(-50%,-50%);
  opacity:.1;pointer-events:none;background:radial-gradient(ellipse at 50% 50%,rgba(220,204,164,.12),transparent 62%);
}
.empty-state { padding:40px 16px;color:#9f947b;font-size:12px;line-height:1.7; }

.sky-intro { padding:20px 16px 10px; }
.date-line { color:#a59a81;font-size:10px;letter-spacing:.07em; }
.sky-intro h2 { margin:10px 0 7px .14em;color:#f1e6cc;font-size:39px;line-height:1.05;letter-spacing:.14em; }
.sky-copy { color:#c0b59c;font-size:12px;line-height:1.65;-webkit-line-clamp:2; }
.sky-tags { gap:7px;margin-top:11px; }
.sky-tags span { min-height:26px;display:grid;place-items:center;padding:4px 9px;color:#d0ba82;border-color:rgba(192,155,84,.42);background:rgba(192,155,84,.045);font-size:9px; }

.result-brief {
  width:calc(100% - 24px);margin:9px 12px 14px;border-color:var(--line-strong);
  background:linear-gradient(145deg,rgba(42,43,36,.97),rgba(20,21,17,.98));
  box-shadow:0 14px 38px rgba(0,0,0,.3),inset 0 1px rgba(255,255,255,.025);
}
.brief-head { min-height:62px;padding:11px 13px 9px; }
.brief-head p { color:#c6a55f;font-size:8px; }
.brief-head h2 { font-size:22px; }
.reveal-countdown { gap:2px; }
.reveal-countdown small { font-size:8px; }
.reveal-countdown strong { color:#f2d58b;font-size:18px; }
.reveal-countdown span { color:#9a8f75;font-size:8px; }
.brief-lineup { padding:10px 11px 12px; }
.brief-leader {
  min-height:92px;grid-template-columns:70px minmax(0,1fr);gap:14px;padding:9px 10px;
  background:linear-gradient(90deg,rgba(173,61,50,.18),rgba(173,61,50,.025));
  border-left-width:3px;
}
.brief-portrait { width:70px;height:82px;border:1px solid rgba(231,211,160,.3); }
.brief-portrait > span { padding:3px 5px;font-size:9px;letter-spacing:.08em; }
.brief-leader > div:last-child { align-content:center;min-width:0; }
.brief-leader small { align-items:center;gap:10px;font-size:10px;line-height:1.2;letter-spacing:.12em; }
.brief-leader b { margin:3px 0 2px;color:#edca72;font-size:30px;line-height:1.12;letter-spacing:.08em; }
.brief-leader .brief-leader-rank { padding-left:10px;border-left:1px solid rgba(215,181,101,.35);font-size:14px; }
.brief-leader em { color:#b8ad93;font-size:11px;line-height:1.35; }
.brief-followers { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:9px; }
.brief-follower {
  min-height:64px;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-rows:auto auto auto;gap:0 9px;
  align-items:center;padding:6px 8px 6px 6px;color:var(--paper);text-align:left;border:1px solid rgba(81,124,119,.34);
  background:linear-gradient(135deg,rgba(63,112,109,.15),rgba(14,16,13,.62));
}
.brief-follower:nth-child(7) { grid-column:1/-1;width:calc((100% - 7px)/2);justify-self:center; }
.brief-follower > div { grid-row:1/4;width:44px;height:52px;aspect-ratio:auto;border:1px solid rgba(214,198,158,.18);background:#202720; }
.brief-follower > div span { left:3px;bottom:3px;width:18px;height:18px;font-size:11px; }
.brief-follower b,
.brief-follower small,
.brief-follower .brief-rank { grid-column:2;min-width:0;white-space:nowrap; }
.brief-follower b { align-self:end;overflow:visible;margin:0;color:#e8ddc3;font-size:15px;line-height:1.15;letter-spacing:.04em;text-overflow:clip; }
.brief-follower small { display:block;align-self:center;overflow:hidden;color:#a49a82;font-size:10px;line-height:1.2;text-overflow:ellipsis; }
.brief-follower .brief-rank { align-self:start;overflow:visible;margin:1px 0 0;color:#c3a35d;font-size:10px;line-height:1.2;text-overflow:clip; }

.formation-section {
  margin:11px 12px 14px;padding:16px 14px;border-color:var(--line-strong);
  background:linear-gradient(140deg,rgba(192,155,84,.1),rgba(63,112,109,.08)),var(--surface);
  box-shadow:inset 0 1px rgba(255,255,255,.02);
}
.formation-section h2 { margin-right:48px;font-size:25px; }
.formation-section > p:last-of-type { color:#bbb096;font-size:11px;line-height:1.65; }
.formation-buffs { gap:7px; }
.formation-buffs span { min-height:50px;background:rgba(10,11,9,.38); }
.formation-buffs small { color:#a69a7d;font-size:9px; }
.formation-buffs strong { font-size:18px; }
.formation-members { color:#92876f;font-size:9px; }
.verdict-section { margin:0 12px;padding:17px 10px 30px;border-top:1px solid var(--line); }
.verdict-title { font-size:9px; }
.verdict-section blockquote { color:#eee1c4;font-size:21px;line-height:1.75; }
.verdict-section p { color:#9d927a;font-size:10px;line-height:1.65; }
.verify-link { min-height:38px;color:#d5b86f;font-size:9px; }

.history-list { gap:10px; }
.history-chronicle { position:relative;max-width:720px;min-height:72px;margin:0 auto 13px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px 14px;overflow:hidden;border:1px solid rgba(185,149,79,.3);background:linear-gradient(105deg,rgba(42,40,31,.96),rgba(20,28,24,.92));box-shadow:0 8px 22px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.025); }
.history-chronicle::before { content:'';position:absolute;left:14px;right:82px;top:50%;height:1px;background:linear-gradient(90deg,rgba(198,158,77,.38),rgba(198,158,77,.05));pointer-events:none; }
.history-chronicle>div { position:relative;z-index:1;min-width:0;background:linear-gradient(90deg,#29271f 78%,transparent); }
.history-chronicle small,.history-chronicle strong,.history-chronicle span { display:block; }
.history-chronicle small { color:#a59a80;font-size:10px;letter-spacing:.08em; }
.history-chronicle strong { margin:4px 0 3px;color:#eadbb8;font:17px/1 var(--display);font-weight:500;letter-spacing:.08em; }
.history-chronicle strong b { color:#d8b963;font-size:22px;font-weight:500; }
.history-chronicle span { color:#b7a477;font:10px var(--display);letter-spacing:.14em; }
.history-chronicle>em { position:relative;z-index:1;color:#9d927a;font:9px/1.5 var(--display);font-style:normal;text-align:right;letter-spacing:.06em; }
.history-item {
  position:relative;min-height:0;grid-template-columns:46px minmax(0,1fr) 24px;gap:5px 10px;padding:11px 10px 10px;overflow:hidden;
  color:#e6dcc2;border:1px solid rgba(182,138,67,.3);border-left:2px solid rgba(182,138,67,.7);background:
  radial-gradient(circle at 93% 8%,rgba(190,151,76,.09),transparent 92px),linear-gradient(108deg,rgba(37,36,29,.97),rgba(18,23,20,.94));
  box-shadow:0 9px 24px rgba(0,0,0,.25),inset 0 1px rgba(255,255,255,.025);transition:border-color .2s,background .2s,transform .2s;
}
.history-item::before { content:"";position:absolute;right:-21px;top:-27px;width:82px;height:82px;border:1px solid rgba(210,177,101,.1);transform:rotate(45deg);pointer-events:none; }
.history-item:hover { border-color:var(--line-strong);background:linear-gradient(100deg,rgba(39,37,29,.96),rgba(25,30,27,.9)); }
.history-item:active { transform:scale(.992); }
.history-item > .history-date { width:44px;height:58px;display:grid;grid-template-rows:1fr 1fr;place-items:stretch;padding:5px 4px;color:#e88372;background:linear-gradient(180deg,rgba(151,47,39,.17),rgba(82,35,29,.035));border:1px solid rgba(173,61,50,.58);font-family:var(--display);text-align:center; }
.history-date b,.history-date em { width:100%;display:grid;place-items:center;font-style:normal;font-weight:500;white-space:nowrap; }
.history-date b { padding-bottom:2px;border-bottom:1px solid rgba(213,103,87,.23);font-size:12px;line-height:1;letter-spacing:.08em; }
.history-date em { padding-top:2px;color:#dc796b;font-size:11px;line-height:1;letter-spacing:.06em; }
.history-item .history-summary { width:auto;height:58px;min-width:0;display:grid;place-items:stretch;align-content:center;gap:6px;border:0;background:none;text-align:left; }
.history-meta { width:100%;display:flex;align-items:center;gap:6px;min-width:0; }
.history-title-row { min-width:0;display:flex;align-items:flex-end;justify-content:space-between;gap:8px; }
.history-summary b { color:#f1e4c6;font:500 20px/1.05 var(--display);letter-spacing:.1em;text-shadow:0 2px 12px rgba(0,0,0,.42); }
.history-summary small { min-width:0;overflow:hidden;color:#9f947b;font-size:7px;line-height:1.2;letter-spacing:.05em;white-space:nowrap;text-overflow:ellipsis; }
.history-formation { flex:none;margin-bottom:1px;padding:3px 6px;color:#c9ad6a;border:1px solid rgba(185,145,64,.3);background:rgba(185,145,64,.07);font:8px/1.15 var(--display);letter-spacing:.08em; }
.history-arrow { position:relative;z-index:2;align-self:center;width:22px;height:22px;display:grid;place-items:center;color:#d3b76f;border:1px solid rgba(190,151,74,.3);border-radius:50%;background:rgba(190,151,74,.055);font:17px/1 var(--display); }
.history-item .history-lineup { grid-column:1/-1;width:auto;height:auto;display:grid;place-items:stretch;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;margin-top:3px;padding-top:9px;border:0;border-top:1px solid rgba(213,199,162,.13);background:none; }
.history-item .history-star { position:relative;min-width:0;min-height:0;display:grid;grid-template-rows:41px auto;align-items:start;gap:4px;padding:0;color:#d8cdb2;border:0;background:none;text-align:center; }
.history-item .history-star.is-leader { border:0;background:none;box-shadow:none; }
.history-item .history-star::after { content:"";position:absolute;right:2px;top:2px;width:4px;height:4px;border-radius:50%;background:#4f817b;box-shadow:0 0 6px rgba(79,129,123,.45); }
.history-item .history-star.is-leader::after,.history-item .history-star.is-tiangang::after { background:#d2ad55;box-shadow:0 0 7px rgba(210,173,85,.55); }
.history-portrait { position:relative;width:100%;height:41px;overflow:hidden;background:#252820;border:1px solid rgba(102,143,134,.32);box-shadow:inset 0 0 8px rgba(0,0,0,.34); }
.history-star.is-leader .history-portrait { border-color:rgba(211,171,84,.72);box-shadow:inset 0 0 8px rgba(0,0,0,.32),0 0 9px rgba(194,147,59,.12); }
.history-portrait .portrait-art { position:absolute;inset:0; }
.history-portrait em { position:absolute;left:1px;top:1px;width:12px;height:12px;display:grid;place-items:center;color:#f5e6c4;background:rgba(132,40,33,.92);border:1px solid rgba(244,218,161,.48);font:8px/1 var(--display); }
.history-star > span:last-child { min-width:0;display:block; }
.history-star strong { display:block;overflow:hidden;color:#f0e4c8;font:500 12px/1.15 var(--display);white-space:nowrap;text-overflow:ellipsis; }
.history-star .history-rank { display:block;overflow:hidden;margin-top:2px;color:#bfa35f;font:9px/1.05 var(--display);white-space:nowrap;text-overflow:ellipsis; }
.history-loader { max-width:720px;margin:14px auto 4px;display:grid;place-items:center;gap:9px;text-align:center; }
.history-loader p { margin:0;color:#8f856e;font-size:9px;letter-spacing:.08em; }
.history-loader button { min-width:172px;min-height:46px;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 20px;color:#e6d7b4;border:1px solid rgba(190,151,74,.42);background:linear-gradient(105deg,rgba(126,79,31,.23),rgba(38,52,44,.78));box-shadow:inset 0 1px rgba(255,255,255,.04),0 8px 22px rgba(0,0,0,.2);font-family:var(--display);letter-spacing:.12em; }
.history-loader button span,.history-loader button small { display:block; }
.history-loader button span { font-size:15px; }
.history-loader button small { color:#a59269;font-size:8px; }
.history-loader button::after { content:'↓';width:20px;height:20px;display:grid;place-items:center;color:#d5b76c;border:1px solid rgba(190,151,74,.32);border-radius:50%;font:12px/1 sans-serif; }
.history-loader button:disabled { opacity:.55;cursor:wait; }
.history-loader button.is-loading::after { content:'·';animation:historyPulse .8s ease-in-out infinite alternate; }
@keyframes historyPulse { to { opacity:.2;transform:translateY(3px); } }

.oracle-card,.account-card,.prediction-form,.defense-lobby {
  border-color:var(--line-strong);background:linear-gradient(145deg,rgba(192,155,84,.09),rgba(63,112,109,.065)),var(--surface);
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.oracle-card { position:relative;padding:17px 16px 15px; }
.oracle-card::before { content:"";position:absolute;right:16px;top:15px;width:34px;height:34px;opacity:.32;transform:rotate(7deg);border:1px solid var(--cinnabar);background:linear-gradient(45deg,transparent 47%,var(--cinnabar) 48% 51%,transparent 52%); }
.oracle-card small,.account-card small { color:#a69a7f;font-size:9px; }
.oracle-card blockquote { position:relative;margin:13px 0 15px;color:#f0e3c4;font-size:21px;line-height:1.65;text-wrap:balance; }
.oracle-card blockquote { white-space:pre-line;letter-spacing:.1em; }
.oracle-meta { color:#9f947a;font-size:10px; }
.prediction-form { gap:9px;padding:14px; }
.form-section-title { grid-column:1/-1;display:flex;align-items:end;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid var(--line); }
.form-section-title span { color:#e8d8b4;font:18px var(--display);letter-spacing:.12em; }
.form-section-title small { color:#9a8f77;font-size:9px; }
.prediction-form label { color:#b4a98e;font-size:10px; }
.prediction-form select,.account-form input,.defense-lobby select {
  min-height:44px;padding:10px;color:#eee2c8;border-color:rgba(220,204,164,.3);
  background:rgba(10,11,9,.7);font-size:12px;border-radius:0;
}
.primary-action {
  min-height:44px;padding:11px;color:#f3d991;background:linear-gradient(180deg,#493321,#342518);
  border-color:#c6a15b;font-size:12px;letter-spacing:.14em;transition:filter .2s,background .2s;
}
.primary-action:hover { filter:brightness(1.12); }
.primary-action:disabled { cursor:not-allowed;filter:none; }
.form-note,.form-error,.form-success { color:#a0957d;font-size:10px;line-height:1.65; }
.form-error { min-height:0;color:#e07b6c; }
.form-success { min-height:0;color:#cfb46c; }
.prediction-entry-card { padding:14px;border:1px solid var(--line-strong);background:linear-gradient(145deg,rgba(192,155,84,.09),rgba(63,112,109,.065)),var(--surface);box-shadow:inset 0 1px rgba(255,255,255,.025); }
.prediction-entry-card > header { display:flex;align-items:center;justify-content:space-between;padding-bottom:9px;border-bottom:1px solid var(--line); }
.prediction-entry-card > header small { display:block;color:#9d9279;font-size:12px;letter-spacing:.16em; }
.prediction-entry-card > header h3 { margin:2px 0 0;color:#eee1c2;font:20px/1.1 var(--display);letter-spacing:.14em; }
.prediction-entry-card > header em { color:#cfb46c;font:normal 13px var(--display); }
.prediction-entry-card > .form-success { margin:9px 0 0; }
.prediction-entry-lineup { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0; }
.prediction-entry-star { position:relative;min-width:0;display:flex;align-items:center;gap:10px;min-height:70px;padding:10px 11px;border:1px solid rgba(75,120,114,.38);background:linear-gradient(135deg,rgba(54,100,96,.15),rgba(10,12,10,.55)); }
.prediction-entry-star.leader { border-color:rgba(191,151,76,.6);background:linear-gradient(135deg,rgba(176,129,56,.17),rgba(10,12,10,.55)); }
.prediction-entry-star > i { flex:0 0 30px;height:30px;display:grid;place-items:center;color:#d5bc78;border:1px solid rgba(192,155,84,.45);font:normal 11px/1 var(--display); }
.prediction-entry-star span { flex:1 1 auto;min-width:0; }
.prediction-entry-star b,.prediction-entry-star small { display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; }
.prediction-entry-star b { color:#e8dcc0;font:17px/1.15 var(--display); }
.prediction-entry-star small { margin-top:4px;color:#aaa087;font-size:12px; }
.prediction-rank { display:block;margin-top:4px;color:#d1b66f;font:normal 11px/1.1 var(--display);white-space:nowrap; }
.prediction-entry-star.leader .prediction-rank { color:#edcb75; }
.prediction-entry-card > .form-note { margin:0; }

.account-tabs { gap:7px;margin-bottom:10px; }
.account-tabs button { min-height:44px;padding:9px;color:#a49a83;border-color:var(--line);font-size:12px; }
.account-tabs button.active { color:#f0d58b;background:rgba(192,155,84,.07);border-color:#c09b54; }
.account-card { padding:15px; }
.account-form { gap:10px; }
.account-form > small { padding-bottom:5px;border-bottom:1px solid var(--line); }
.account-form label { display:grid;gap:5px;color:#aca188;font-size:10px; }
.account-form input { margin:0; }
.account-card h3 { color:#eee2c9;font-size:20px; }
.power-orb { border-color:#c9a45d;background:radial-gradient(circle,rgba(192,155,84,.12),transparent 68%); }
.power-orb strong { color:#f1d584; }
.quiet-action { min-height:38px; }
.activity-heading h3 { color:#e5d9bd;font-size:21px; }
.activity-block h4 { color:#aaa087;font-size:10px; }
.activity-item { min-height:49px;background:var(--surface-soft); }
.activity-item b { color:#e0d5b9;font-size:12px; }
.activity-item span,.activity-empty { color:#958b74;font-size:9px; }

.defense-view { padding-left:12px;padding-right:12px; }
.defense-lobby { margin:0;padding:17px 16px; }
.defense-lobby > small { color:#c4a35f;font-size:9px;letter-spacing:.18em; }
.defense-lobby h3 { margin:5px 0 9px;color:#eee2c6;font-size:27px; }
.defense-lobby p { color:#afa48b;font-size:11px;line-height:1.7; }
.defense-locked { position:relative;overflow:hidden; }
.defense-locked::after { content:"";position:absolute;right:-25px;top:-35px;width:130px;height:130px;opacity:.16;border:1px solid var(--cinnabar);border-radius:50%;box-shadow:inset 0 0 0 12px rgba(173,61,50,.12);pointer-events:none; }
.tactic-preview { color:#b8ac8d!important;background:rgba(63,112,109,.1); }

.collection-summary { margin:0 0 10px;border-color:var(--line-strong);background:var(--surface); }
.collection-summary > span { min-height:52px;color:#a29881;font-size:9px; }
.collection-summary b { color:#eee0c3;font-size:19px; }
.roster-tools {
  position:sticky;top:70px;z-index:8;gap:7px;margin-bottom:12px;padding:8px;border-color:var(--line);
  background:rgba(19,20,16,.95);backdrop-filter:blur(12px);box-shadow:0 8px 18px rgba(0,0,0,.2);
}
.roster-tools .roster-filter { grid-template-columns:40px 1fr; }
.roster-tools .roster-filter > span { color:#9e947d;font-size:9px; }
.roster-tools .roster-filter button { min-height:34px;color:#9d937d;border-color:var(--line);font-size:10px; }
.roster-tools .roster-filter button.active { color:#f0d58b;background:rgba(192,155,84,.08);border-color:#b9954f; }
.roster-grid { gap:10px; }
.roster-card { transition:transform .18s,filter .2s,opacity .2s; }
.roster-card:active { transform:scale(.985); }
.roster-card.roster-locked { filter:grayscale(1) saturate(0) brightness(.64);opacity:.8; }
.roster-name { font-size:31px; }
.roster-skills > i > em { font-size:7px; }
.roster-fragments { padding:2px 4px;background:rgba(219,202,162,.48);font-size:8px; }

.bottom-nav {
  grid-template-columns:repeat(5,1fr);height:calc(66px + env(safe-area-inset-bottom));background:rgba(13,14,11,.96);border-color:var(--line);
  box-shadow:0 -10px 30px rgba(0,0,0,.3);backdrop-filter:blur(18px);
}
.bottom-nav button { position:relative;min-height:58px;color:#8f856e;font-size:9px;transition:color .2s,background .2s; }
.bottom-nav span { margin-bottom:2px;font-size:23px;line-height:1; }
.bottom-nav .active { color:#f0d389;background:linear-gradient(180deg,rgba(192,155,84,.09),transparent); }
.bottom-nav .active::before { content:"";position:absolute;left:25%;right:25%;top:0;height:2px;background:#cfaa61;box-shadow:0 0 10px #cfaa61; }

.account-section { margin-bottom:10px;padding:14px;border:1px solid var(--line);background:var(--surface); }
.account-section-title { display:flex;align-items:end;justify-content:space-between;margin-bottom:9px;padding-bottom:8px;border-bottom:1px solid var(--line); }
.account-section-title small { color:#b08c4d;font-size:9px;letter-spacing:.18em; }
.account-section-title h3 { margin:0;color:#e5d9bd;font:500 20px var(--display);letter-spacing:.12em; }
.setting-row { min-height:58px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:8px 2px;border-bottom:1px solid rgba(213,199,162,.08); }
.setting-row:last-child { border-bottom:0; }
.setting-row > span { display:grid;gap:3px; }
.setting-row b { color:#ddd2b8;font-size:12px;font-weight:500; }
.setting-row small { color:#918771;font-size:9px;line-height:1.5; }
.setting-row input { position:absolute;opacity:0;pointer-events:none; }
.setting-row > i { position:relative;width:42px;height:24px;border:1px solid #665f50;border-radius:20px;background:#26251f;transition:.2s; }
.setting-row > i::after { content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#8c8370;transition:.2s; }
.setting-row input:checked + i { border-color:#b68e49;background:#4b3720; }
.setting-row input:checked + i::after { left:21px;background:#edcf84; }
.setting-row:focus-within > i { outline:2px solid #d6b565;outline-offset:2px; }
.setting-row.static em { color:#bda263;font-size:10px;font-style:normal; }
.account-notice { padding:8px 2px;border-bottom:1px solid rgba(213,199,162,.08); }
.account-notice:last-child { border-bottom:0; }
.account-notice b { color:#d6c9aa;font-size:11px;font-weight:500; }
.account-notice p { margin:3px 0 0;color:#918771;font-size:9px;line-height:1.6; }
.account-logout { width:100%;min-height:44px;margin-top:2px;color:#c98376;border-color:rgba(173,61,50,.45); }

.activity-tabs { position:sticky;top:70px;z-index:8;display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:10px;padding:7px;border:1px solid var(--line);background:rgba(19,20,16,.95);backdrop-filter:blur(12px); }
.activity-tabs button { min-height:44px;color:#9e947d;border:1px solid var(--line);background:transparent;font-size:11px; }
.activity-tabs button.active { color:#f0d58b;border-color:#b9954f;background:rgba(192,155,84,.08); }
.activity-ledger { display:grid;gap:7px; }
.activity-ledger .activity-item { border:1px solid rgba(213,199,162,.09); }
.activity-locked { margin-top:4px; }

body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after { scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }

.view-shortcuts { margin-bottom:10px; }
.view-shortcut {
  width:100%;min-height:58px;display:grid;grid-template-columns:36px 1fr 18px;grid-template-rows:auto auto;
  align-items:center;column-gap:10px;padding:9px 12px;text-align:left;color:var(--paper-light);
  border:1px solid var(--line);background:linear-gradient(100deg,rgba(183,143,72,.12),rgba(38,71,70,.09));
}
.view-shortcut > span {
  grid-row:1 / 3;width:36px;height:36px;display:grid;place-items:center;color:#edcf84;
  border:1px solid #9d7b3e;background:rgba(184,141,65,.08);font:20px var(--display);
}
.view-shortcut > b { align-self:end;font:500 15px/1.25 var(--display);letter-spacing:.08em; }
.view-shortcut > small { align-self:start;color:#9f957e;font-size:9px;line-height:1.4; }
.view-shortcut > i { grid-column:3;grid-row:1 / 3;color:#c9aa68;font:normal 24px/1 var(--serif); }
.view-shortcut:active { border-color:#c29a4f;background:rgba(183,143,72,.16); }

dialog {
  position:fixed;inset:0;width:min(calc(100vw - 16px),374px);max-height:calc(100dvh - 32px);margin:auto;
  overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;color:var(--paper-light);
  border-color:#8e7240;background:linear-gradient(180deg,#222119,#151510);box-shadow:0 -20px 80px #000;
}
dialog[open] { animation:dialogRise .25s ease both; }
@keyframes dialogRise { from { opacity:0;transform:translateY(12px) scale(.985); } }
.dialog-close { width:44px;height:44px;color:#e6d9bd; }
.dialog-hero { padding:27px 20px 24px; }
.dialog-hero h2 { padding-right:32px;font-size:32px; }
.dialog-hero p,.dialog-hero li { color:#b8ad94;font-size:12px; }

.battle-hud {
  min-height:50px;padding:11px 13px;color:#f5e8c6;background:linear-gradient(180deg,rgba(16,18,14,.92),rgba(16,18,14,.2));
  font-size:11px;text-shadow:0 1px 4px #000;
}
.battle-hud b { font-size:21px; }
.battle-exit { width:40px;height:40px;top:45px;right:12px;background:rgba(22,23,18,.88); }
.battle-controls { bottom:12px;padding:0 14px; }
.dpad { width:120px;height:120px;gap:4px; }
.dpad button { min-width:38px;min-height:38px;background:rgba(18,20,16,.88);border-color:rgba(239,210,139,.58);font-size:15px;box-shadow:0 4px 12px rgba(0,0,0,.22); }
.dpad button:active { color:#20180e;background:#efd28b; }
.tactic-button { width:72px;height:72px;color:#f2dc9d;background:rgba(45,30,20,.9);border-color:#cfaa61;font-size:19px; }
.tactic-status { top:53px;color:#e0c990;font-size:9px; }
.battle-message { top:16%;padding:10px 17px;font-size:18px; }

@media (max-width:350px) {
  .brief-followers { grid-template-columns:repeat(2,minmax(0,1fr));gap:5px; }
  .brief-follower { grid-template-columns:38px minmax(0,1fr);gap:0 7px;padding:5px; }
  .brief-follower:nth-child(7) { width:calc((100% - 5px)/2); }
  .brief-follower > div { width:38px;height:48px; }
  .brief-follower b { font-size:14px; }
  .prediction-form { grid-template-columns:1fr; }
  .prediction-form label,.prediction-form label:first-child { grid-column:1; }
}

:root {
  --lacquer:#10120f;
  --lacquer-raised:#1c1e18;
  --bronze:#b68a43;
  --bronze-bright:#f0cf7b;
  --jade:#4e827b;
  --jade-bright:#8bb8aa;
  --red:#a83b30;
  --cream:#f4e8c9;
}
body {
  background:
    radial-gradient(ellipse at 50% -8%,rgba(89,130,117,.25),transparent 320px),
    radial-gradient(ellipse at -20% 52%,rgba(150,55,42,.14),transparent 300px),
    repeating-linear-gradient(90deg,rgba(255,255,255,.008) 0 1px,transparent 1px 5px),
    linear-gradient(180deg,#171a15,#0d0f0c 72%);
}
body::after { content:"";position:fixed;z-index:-1;left:50%;top:0;width:min(100%,390px);height:100%;transform:translateX(-50%);pointer-events:none;box-shadow:inset 1px 0 rgba(240,207,123,.08),inset -1px 0 rgba(240,207,123,.08),0 0 90px #000; }
.grain { opacity:.1; }
.masthead {
  height:70px;padding:calc(max(9px,env(safe-area-inset-top)) + 1px) 15px 8px;
  background:linear-gradient(180deg,rgba(18,21,17,.985),rgba(13,15,12,.94));
  border-bottom-color:rgba(214,184,113,.22);box-shadow:0 12px 32px rgba(0,0,0,.38),inset 0 -1px rgba(0,0,0,.7);
}
.masthead::before,.masthead::after { content:"";position:absolute;bottom:-1px;width:54px;height:5px;border-top:1px solid var(--bronze);opacity:.65; }
.masthead::before { left:12px;border-left:1px solid var(--bronze); }
.masthead::after { right:12px;border-right:1px solid var(--bronze); }
.brand span { color:#9e947a;letter-spacing:.25em; }
.brand h1 { color:var(--cream);font-size:23px;letter-spacing:.23em;text-shadow:0 2px 15px #000,0 0 22px rgba(240,207,123,.1); }
.seal-button,.account-button { position:relative;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(0,0,0,.15));box-shadow:inset 0 0 0 3px rgba(0,0,0,.16); }
.account-button { color:#e8d7ad;border-color:rgba(182,138,67,.56); }
.app-view { padding-top:16px; }
.view-heading { position:relative;margin-bottom:14px;padding:2px 3px 12px;border-bottom-color:rgba(214,184,113,.2); }
.view-heading::after { content:"";position:absolute;left:0;bottom:-1px;width:52px;height:2px;background:linear-gradient(90deg,var(--bronze-bright),transparent); }
.view-heading h2 { color:var(--cream);text-shadow:0 2px 14px #000; }
.view-heading span { color:#aaa086; }

.sky-intro { padding-top:25px; }
.sky-intro::after { content:"";position:absolute;left:50%;top:15px;width:116px;height:116px;transform:translateX(-50%);border:1px solid rgba(182,138,67,.12);border-radius:50%;box-shadow:inset 0 0 0 12px rgba(182,138,67,.025),0 0 45px rgba(101,140,127,.08);pointer-events:none; }
.sky-intro h2 { position:relative;z-index:1;color:#f5e8c8;font-size:42px;text-shadow:0 4px 20px #000,0 0 30px rgba(215,190,125,.12); }
.sky-tags span { border-color:rgba(182,138,67,.4);background:linear-gradient(180deg,rgba(182,138,67,.09),rgba(182,138,67,.025));box-shadow:inset 0 1px rgba(255,255,255,.035); }
.result-brief,.formation-section,.oracle-card,.account-card,.prediction-form,.defense-lobby,.account-section {
  position:relative;border-color:rgba(182,138,67,.42);
  background:linear-gradient(145deg,rgba(37,40,32,.97),rgba(17,19,15,.98));
  box-shadow:0 15px 38px rgba(0,0,0,.28),inset 0 1px rgba(255,255,255,.035),inset 0 0 34px rgba(68,99,89,.035);
}
.result-brief::before,.formation-section::before,.oracle-card::after,.defense-lobby::before,.account-section::before {
  content:"";position:absolute;z-index:2;inset:5px;pointer-events:none;
  background:linear-gradient(var(--bronze),var(--bronze)) left top/18px 1px no-repeat,linear-gradient(var(--bronze),var(--bronze)) left top/1px 18px no-repeat,linear-gradient(var(--bronze),var(--bronze)) right bottom/18px 1px no-repeat,linear-gradient(var(--bronze),var(--bronze)) right bottom/1px 18px no-repeat;opacity:.48;
}
.brief-head { background:linear-gradient(90deg,rgba(182,138,67,.06),transparent); }
.brief-leader { border-left-color:#bd493b;box-shadow:inset 0 0 25px rgba(168,59,48,.05); }
.brief-follower { border-color:rgba(78,130,123,.48);box-shadow:inset 0 0 18px rgba(78,130,123,.05);transition:transform .18s,border-color .18s,background .18s; }
.brief-follower:active { transform:translateY(1px) scale(.985);border-color:var(--jade-bright); }
.formation-seal { color:#d46656;border-color:#a83b30;box-shadow:inset 0 0 0 4px rgba(168,59,48,.08); }
.verdict-section blockquote { text-shadow:0 2px 15px rgba(0,0,0,.75); }
.primary-action { position:relative;overflow:hidden;color:#f6dda0;background:linear-gradient(180deg,#5a4027,#322418);border-color:#d1a95d;box-shadow:inset 0 1px rgba(255,240,190,.14),0 7px 20px rgba(0,0,0,.2); }
.primary-action::after { content:"";position:absolute;left:-35%;top:0;width:28%;height:100%;transform:skewX(-25deg);background:linear-gradient(90deg,transparent,rgba(255,239,190,.12),transparent);transition:left .5s; }
.primary-action:hover::after { left:115%; }
.primary-action:active { filter:brightness(1.16); }
.prediction-form select,.account-form input,.defense-lobby select { background:linear-gradient(180deg,rgba(8,10,8,.84),rgba(20,22,17,.78));border-color:rgba(194,163,94,.32);box-shadow:inset 0 2px 8px rgba(0,0,0,.28); }
.history-item { border-color:rgba(182,138,67,.25);box-shadow:0 8px 22px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.025); }
.history-item .history-lineup { border-top-color:rgba(182,138,67,.16); }
.roster-tools,.activity-tabs { border-color:rgba(182,138,67,.28);background:rgba(14,17,13,.96);box-shadow:0 10px 24px rgba(0,0,0,.34),inset 0 1px rgba(255,255,255,.025); }
.roster-card { box-shadow:inset 0 0 0 3px rgba(223,206,168,.48),inset 0 0 28px rgba(58,39,21,.3),0 12px 25px rgba(0,0,0,.33); }
.bottom-nav {
  left:50%;bottom:7px;width:min(calc(100% - 16px),374px);height:calc(62px + env(safe-area-inset-bottom));
  border:1px solid rgba(182,138,67,.38);border-radius:10px;background:linear-gradient(180deg,rgba(28,31,24,.97),rgba(12,14,11,.98));
  box-shadow:0 12px 35px #000,inset 0 1px rgba(255,255,255,.04);overflow:hidden;
}
.bottom-nav button { min-height:56px;color:#8e866f;font-size:8px; }
.bottom-nav button + button { border-left:1px solid rgba(222,202,155,.07); }
.bottom-nav span { font-size:22px;transition:transform .25s,text-shadow .25s; }
.bottom-nav .active { color:#f0ce7b;background:radial-gradient(ellipse at 50% 0,rgba(195,151,70,.18),transparent 70%); }
.bottom-nav .active span { transform:translateY(-1px);text-shadow:0 0 15px rgba(240,206,123,.5); }
.bottom-nav .active::before { left:28%;right:28%;background:linear-gradient(90deg,transparent,#f0cf7b,transparent); }
dialog { border-color:rgba(208,167,83,.7);background:radial-gradient(circle at 80% 0,rgba(75,111,99,.12),transparent 220px),linear-gradient(180deg,#27261d,#11130f);box-shadow:0 25px 90px #000,inset 0 0 0 5px rgba(0,0,0,.22); }

.defense-lobby { overflow:hidden;padding:20px 18px 18px; }
.defense-lobby::after { content:"";position:absolute;right:-48px;top:-55px;width:172px;height:172px;border:1px solid rgba(182,138,67,.08);border-radius:50%;box-shadow:inset 0 0 0 15px rgba(182,138,67,.025),inset 0 0 0 32px rgba(78,130,123,.018);background:repeating-conic-gradient(from 0deg,rgba(182,138,67,.05) 0 2deg,transparent 2deg 30deg);transform:rotate(-8deg);pointer-events:none; }
.defense-lobby > * { position:relative;z-index:3; }
.defense-lobby h3 { color:#f4e6c5;font-size:30px;text-shadow:0 3px 18px #000; }
.defense-lobby p { color:#bcb099; }
.tactic-preview { min-height:62px;border:1px solid rgba(78,130,123,.28)!important;border-left:3px solid var(--jade)!important;background:linear-gradient(90deg,rgba(78,130,123,.14),rgba(78,130,123,.035))!important; }
.hero-draw { background:radial-gradient(circle at 50% 43%,rgba(137,98,45,.27),transparent 28%),radial-gradient(circle at 50% 46%,#252820,#0b0d0a 72%); }
.draw-roster-card { border-width:2px;box-shadow:0 30px 80px #000,inset 0 0 0 3px rgba(223,206,168,.48),inset 0 0 28px rgba(58,39,21,.3); }
.draw-roster-card .roster-nickname { left:22.25%;padding:6px 4px;font-size:12px;font-weight:600; }
.draw-roster-card .roster-star { right:7%; }
.draw-roster-card.revealed { animation:cardRevealGlow .6s ease both; }
@keyframes cardRevealGlow { 50% { transform:translateY(-5px) scale(1.025);filter:brightness(1.18); } }
.draw-enter { box-shadow:0 10px 28px rgba(0,0,0,.35),inset 0 1px rgba(255,245,210,.12); }

.battle-shell { background:#172528;isolation:isolate; }
.battle-shell::before { content:"";position:absolute;z-index:2;inset:0;pointer-events:none;box-shadow:inset 0 0 55px rgba(4,6,5,.42),inset 0 -100px 80px rgba(13,10,7,.18); }
.battle-hud {
  z-index:7;min-height:72px;grid-template-columns:1fr 82px 1fr;align-items:start;gap:7px;padding:9px 10px 16px;
  background:linear-gradient(180deg,rgba(8,11,9,.96) 0%,rgba(11,15,12,.8) 72%,transparent 100%);text-shadow:0 1px 4px #000;
}
.hud-vital { position:relative;min-width:0;display:grid;grid-template-columns:1fr auto;gap:1px 6px;padding:5px 7px 7px;border:1px solid rgba(220,191,121,.22);background:rgba(21,25,20,.6); }
.hud-vital small { grid-column:1/-1;color:#9f957d;font-size:7px;letter-spacing:.16em; }
.hud-vital b { overflow:hidden;color:#efe0bb;font:500 12px/1.2 var(--display);text-align:left;white-space:nowrap;text-overflow:ellipsis; }
.hud-vital em { color:#e9cc80;font:normal 10px/1 var(--serif); }
.hud-vital span { grid-column:1/-1;display:block;width:100%;height:4px;background:#090b09;box-shadow:inset 0 1px 2px #000; }
.hud-vital span i { display:block;height:100%;background:linear-gradient(90deg,#38766d,#82b09d);box-shadow:0 0 8px rgba(105,173,153,.45);transition:width .2s; }
.city-vital { text-align:right; }
.city-vital b { text-align:right; }
.city-vital span i { margin-left:auto;background:linear-gradient(90deg,#9e3c30,#d18b4f);box-shadow:0 0 8px rgba(203,104,67,.38); }
.hud-round { display:grid;justify-items:center;gap:2px;padding-top:1px; }
.hud-round small { max-width:82px;overflow:hidden;color:#9c9279;font-size:7px;white-space:nowrap;text-overflow:ellipsis; }
.hud-round b { color:#f3d487;font-size:18px;line-height:1.1; }
.hud-round em { padding:2px 7px;color:#d7b66c;border:1px solid rgba(182,138,67,.36);background:rgba(182,138,67,.08);font:normal 7px var(--serif);letter-spacing:.12em; }
.battle-exit { z-index:8;top:max(79px,calc(env(safe-area-inset-top) + 66px))!important;right:12px;width:42px;height:42px;color:#e8d5a5;border:1px solid rgba(230,198,121,.62);background:radial-gradient(circle,#3a3021,#171a15 72%);box-shadow:0 7px 20px rgba(0,0,0,.4),inset 0 0 0 4px rgba(0,0,0,.18); }
.battle-exit:disabled { color:#9d9278;border-color:rgba(176,158,113,.35); }
.tactic-status { z-index:7;top:max(78px,calc(env(safe-area-inset-top) + 65px));max-width:250px;padding:4px 10px;color:#e1c681;border:1px solid rgba(182,138,67,.24);background:rgba(12,15,12,.72);backdrop-filter:blur(6px); }
.battle-message { z-index:9;top:19%;padding:10px 18px;color:#ffe5a2;border-color:rgba(228,186,92,.7);background:rgba(41,27,17,.9);box-shadow:0 12px 35px rgba(0,0,0,.38),inset 0 0 0 3px rgba(0,0,0,.2); }
.battle-controls { z-index:8;bottom:max(13px,env(safe-area-inset-bottom));padding:0 15px; }
.battle-pause-layer {
  position:absolute;z-index:20;inset:0;display:grid;place-items:center;padding:24px;
  background:radial-gradient(circle at 50% 42%,rgba(91,73,40,.2),transparent 210px),rgba(5,7,6,.72);
  backdrop-filter:blur(3px);animation:battlePauseIn .18s ease both;
}
.battle-pause-layer[hidden] { display:none; }
@keyframes battlePauseIn { from { opacity:0; } }
.battle-pause-card {
  position:relative;width:min(100%,304px);padding:25px 22px 20px;text-align:center;color:#f3e5c2;
  border:1px solid rgba(225,191,111,.7);background:
    linear-gradient(#c9a65a,#c9a65a) 7px 7px/22px 1px no-repeat,
    linear-gradient(#c9a65a,#c9a65a) 7px 7px/1px 22px no-repeat,
    linear-gradient(#c9a65a,#c9a65a) calc(100% - 7px) calc(100% - 7px)/22px 1px no-repeat,
    linear-gradient(#c9a65a,#c9a65a) calc(100% - 7px) calc(100% - 7px)/1px 22px no-repeat,
    radial-gradient(circle at 85% 0,rgba(73,119,105,.16),transparent 145px),linear-gradient(155deg,#25261e,#10130f 76%);
  box-shadow:0 26px 80px rgba(0,0,0,.7),inset 0 0 0 5px rgba(0,0,0,.2);
}
.battle-pause-card::before { content:"";position:absolute;left:50%;top:-8px;width:14px;height:14px;transform:translateX(-50%) rotate(45deg);border:1px solid #bd9851;background:#22231c; }
.battle-pause-card > small { color:#c95d4c;font-size:9px;letter-spacing:.28em; }
.battle-pause-card h3 { margin:9px 0 7px;color:#f6e7bd;font:500 30px/1.15 var(--display);letter-spacing:.12em;text-shadow:0 3px 16px #000; }
.battle-pause-card p { min-height:40px;margin:0;color:#aaa087;font-size:11px;line-height:1.75; }
.battle-pause-keys { display:flex;align-items:center;justify-content:center;gap:8px;margin:12px 0 16px;color:#9c9279;font-size:9px;letter-spacing:.08em; }
.battle-pause-keys kbd { min-width:55px;padding:4px 7px;color:#dbc47e;border:1px solid rgba(218,185,105,.42);border-bottom-width:3px;border-radius:3px;background:#0b0e0b;box-shadow:inset 0 1px rgba(255,255,255,.04);font:8px var(--serif);letter-spacing:.12em; }
.battle-pause-actions { display:grid;grid-template-columns:1fr;gap:8px; }
.battle-pause-actions button { min-height:43px;font:500 14px var(--display);letter-spacing:.12em; }
.battle-resume { color:#241a0f;border:1px solid #e4c372;background:linear-gradient(180deg,#e4c97f,#a97b38);box-shadow:inset 0 1px rgba(255,255,255,.32),0 7px 18px rgba(0,0,0,.28); }
.battle-confirm-exit { color:#d7c39a;border:1px solid rgba(186,75,60,.62);background:linear-gradient(180deg,rgba(119,45,36,.46),rgba(49,24,19,.74)); }
.battle-shell.is-paused .battle-controls { pointer-events:none;filter:grayscale(.8) brightness(.58); }
.battle-shell.is-paused .battle-exit { pointer-events:none;filter:brightness(.6); }
.battle-shell.is-paused #defenseCanvas { filter:brightness(.68) saturate(.72); }
.battle-controls {
  align-items:end;gap:12px;padding:0 12px 7px;pointer-events:none;filter:none;
}
.battle-control-pod {
  position:relative;display:grid;place-items:center;padding:0;border:0;background:none;box-shadow:none;clip-path:none;pointer-events:auto;
}
.battle-control-label { display:none; }
.movement-control { width:108px; }
.dpad { position:relative;width:108px;height:108px;padding:0;display:grid;grid-template:repeat(3,34px)/repeat(3,34px);gap:3px;border:0;border-radius:0;background:none;box-shadow:none; }
.dpad::before { display:none; }
.dpad::after { display:none; }
.dpad [data-dir=up] { grid-row:1;grid-column:2; }
.dpad [data-dir=left] { grid-row:2;grid-column:1; }
.dpad .battle-space { grid-row:2;grid-column:2; }
.dpad [data-dir=right] { grid-row:2;grid-column:3; }
.dpad [data-dir=down] { grid-row:3;grid-column:2; }
.dpad button {
  min-width:34px;min-height:34px;padding:0;color:rgba(244,231,195,.9);border:1px solid rgba(226,201,139,.42);border-radius:50%;
  background:rgba(13,18,15,.54);backdrop-filter:blur(3px);
  box-shadow:0 3px 9px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.06);font-size:12px;
}
.dpad button:disabled { opacity:.34; }
.dpad button:active { transform:translateY(2px);color:#251b10;background:linear-gradient(#f0d58c,#b8873e);box-shadow:0 0 14px rgba(237,205,125,.28),inset 0 1px rgba(255,255,255,.25); }
.dpad .battle-space { display:grid;place-content:center;color:#a9d0c4;border-color:rgba(111,175,158,.55);border-radius:8px;background:rgba(24,55,47,.58); }
.battle-space b { font:500 8px/1 var(--display);letter-spacing:.04em; }
.battle-space small { display:none; }
.tactic-control { width:58px;min-height:58px;padding:0 1px 3px; }
.tactic-button {
  position:relative;width:58px;height:58px;display:grid;place-content:center;padding:0;color:#f0d287;border:1px solid rgba(213,169,75,.68);border-radius:50%;clip-path:none;
  background:radial-gradient(circle,rgba(115,45,35,.72),rgba(24,19,16,.68) 70%);backdrop-filter:blur(3px);
  box-shadow:0 5px 14px rgba(0,0,0,.25),inset 0 0 0 3px rgba(0,0,0,.16);text-shadow:0 2px 6px #000;
}
.tactic-button::before { content:"";position:absolute;inset:6px;border:1px solid rgba(238,201,111,.27);border-radius:50%;pointer-events:none; }
.tactic-mark { position:relative;z-index:1;font:500 22px/1 var(--display); }
.tactic-caption { display:none; }
.tactic-button:not(:disabled){animation:tacticBreath 2.8s ease-in-out infinite;}
@keyframes tacticBreath { 50% { box-shadow:0 12px 30px rgba(0,0,0,.38),inset 0 0 0 5px rgba(0,0,0,.2),0 0 28px rgba(218,164,72,.28); } }
.tactic-button:disabled { color:#948a73;filter:grayscale(.75);opacity:.38;animation:none; }
.tactic-button:active:not(:disabled) { transform:translateY(2px) scale(.97);filter:brightness(1.18); }

@media (max-width:350px) {
  .battle-hud { grid-template-columns:1fr 70px 1fr;padding-left:6px;padding-right:6px; }
  .hud-vital { padding-left:5px;padding-right:5px; }
  .battle-controls { gap:9px;padding-left:9px;padding-right:9px; }
  .movement-control { width:102px; }
  .dpad { width:102px;height:102px;grid-template:repeat(3,32px)/repeat(3,32px); }
  .dpad button { min-width:32px;min-height:32px; }
  .tactic-control { width:54px;min-height:54px; }
  .tactic-button { width:54px;height:54px; }
}

.masthead {
  height:76px;padding:calc(max(9px,env(safe-area-inset-top)) + 2px) 14px 10px;
  background:
    linear-gradient(135deg,rgba(182,138,67,.08) 0 12px,transparent 13px) left top/46px 46px no-repeat,
    linear-gradient(225deg,rgba(182,138,67,.08) 0 12px,transparent 13px) right top/46px 46px no-repeat,
    repeating-linear-gradient(90deg,rgba(255,255,255,.009) 0 1px,transparent 1px 5px),
    linear-gradient(180deg,rgba(24,28,22,.995),rgba(10,13,10,.97));
  border-bottom:1px solid rgba(229,194,112,.38);
  box-shadow:0 13px 34px rgba(0,0,0,.48),inset 0 -1px #050605,inset 0 1px rgba(255,255,255,.025);
}
.masthead::before,.masthead::after { bottom:-3px;width:86px;height:7px;border-top:1px solid rgba(233,199,117,.72);opacity:.75; }
.masthead::before { left:9px;border-left:1px solid rgba(233,199,117,.62);background:linear-gradient(90deg,rgba(182,138,67,.18),transparent); }
.masthead::after { right:9px;border-right:1px solid rgba(233,199,117,.62);background:linear-gradient(270deg,rgba(182,138,67,.18),transparent); }
.masthead-ornament { position:absolute;z-index:0;left:50%;bottom:-5px;width:118px;height:16px;transform:translateX(-50%);pointer-events:none; }
.masthead-ornament::before { content:"";position:absolute;left:50%;bottom:0;width:10px;height:10px;transform:translateX(-50%) rotate(45deg);border:1px solid rgba(237,201,115,.62);background:#131610;box-shadow:0 0 12px rgba(229,188,92,.18); }
.masthead-ornament::after { content:"";position:absolute;left:8px;right:8px;bottom:5px;height:1px;background:linear-gradient(90deg,transparent,rgba(221,185,98,.7) 28%,transparent 47% 53%,rgba(221,185,98,.7) 72%,transparent); }
.brand { position:relative;z-index:1;flex:1;display:grid;justify-items:center;align-content:center;min-width:0;padding:0 8px; }
.brand::before,.brand::after { content:"";position:absolute;top:28px;width:34px;height:1px;background:linear-gradient(90deg,transparent,rgba(194,155,77,.58)); }
.brand::before { right:calc(50% + 70px); }
.brand::after { left:calc(50% + 70px);transform:scaleX(-1); }
.brand span { position:relative;color:#b0a486;font-size:8px;line-height:1;letter-spacing:.25em;text-shadow:0 1px 4px #000; }
.brand span::before,.brand span::after { content:"";position:absolute;top:50%;width:3px;height:3px;transform:translateY(-50%) rotate(45deg);background:#96743c; }
.brand span::before { left:-11px; }.brand span::after { right:-9px; }
.brand h1 { position:relative;margin:7px 0 0 .22em;padding:0 9px;color:#f7e8c3;font-size:24px;line-height:1.05;letter-spacing:.22em;text-shadow:0 2px 9px #000,0 0 22px rgba(237,203,125,.16); }
.brand h1::before,.brand h1::after { content:"";position:absolute;top:50%;width:5px;height:5px;border:1px solid rgba(203,160,76,.66);transform:translateY(-50%) rotate(45deg); }
.brand h1::before { left:-4px; }.brand h1::after { right:0; }
.seal-button,.account-button {
  position:relative;z-index:2;width:40px;height:40px;min-width:40px;border-radius:2px;
  box-shadow:0 7px 18px rgba(0,0,0,.35),inset 0 0 0 4px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.04);
}
.seal-button::before { content:"";position:absolute;inset:4px;border:1px solid currentColor;opacity:.24;pointer-events:none; }
.seal-button { color:#e27a69;border-color:rgba(183,60,48,.9);background:linear-gradient(145deg,rgba(143,45,36,.24),rgba(39,18,15,.72));transform:rotate(-3deg); }
.account-button { color:#d6b45e;border-color:rgba(205,164,80,.62);border-radius:50%;background:#071211;box-shadow:0 5px 16px rgba(0,0,0,.42),0 0 0 1px rgba(214,180,94,.08),inset 0 0 12px rgba(60,96,85,.18); }
.account-button img { position:absolute;inset:2px;width:calc(100% - 4px);height:calc(100% - 4px);border-radius:50%;object-fit:cover;display:block;opacity:.96;filter:none;transition:transform .2s ease,filter .2s ease,opacity .2s ease; }
.account-button::after { content:"";position:absolute;right:2px;bottom:2px;width:7px;height:7px;border:1px solid #18140c;border-radius:50%;background:#736548;box-shadow:0 0 0 1px rgba(235,206,136,.22);z-index:3; }
.is-authenticated .account-button::after { background:#d6b45e;box-shadow:0 0 8px rgba(239,199,93,.8),0 0 0 1px #3a2b12; }
.account-button:active img { transform:scale(.93); }
.account-button.active { color:#f0cf76;background:#0b1714;border-color:#e0bd65;box-shadow:0 0 18px rgba(224,189,101,.24),inset 0 0 14px rgba(72,116,101,.2); }
.account-button.active img { filter:brightness(1.12);opacity:1; }
.seal-button:active,.account-button:active { filter:brightness(1.18); }
.account-connection-note { margin:0 0 8px;padding:9px 11px;border:1px solid rgba(196,143,62,.36);background:rgba(112,69,25,.16);color:#d7bd82;font-size:10px;line-height:1.6; }

.defense-loading { text-align:center; }
.defense-loading h3 { margin-bottom:8px; }
.defense-loading p { min-height:3.2em;margin:11px auto 0;max-width:270px;color:#a99e84;font-size:10px;line-height:1.65; }
.defense-loading-mark { height:34px;display:flex;align-items:center;justify-content:center;gap:7px; }
.defense-loading-mark i { width:7px;height:7px;display:block;border:1px solid #cfa95c;background:rgba(207,169,92,.18);transform:rotate(45deg);animation:defenseMuster 1.2s ease-in-out infinite; }
.defense-loading-mark i:nth-child(2) { animation-delay:.16s; }.defense-loading-mark i:nth-child(3) { animation-delay:.32s; }
@keyframes defenseMuster { 0%,100%{opacity:.28;transform:rotate(45deg) scale(.78)} 50%{opacity:1;transform:rotate(45deg) scale(1.16);box-shadow:0 0 12px rgba(213,175,87,.45)} }
.defense-shell-loading .primary-action:disabled { cursor:wait;opacity:.62; }
.battle-enter-loading { min-height:100%;display:grid;place-content:center;justify-items:center;padding:28px;text-align:center;background:radial-gradient(circle at 50% 45%,rgba(137,98,45,.22),transparent 32%),linear-gradient(180deg,#11140f,#080a08); }
.battle-enter-loading small { color:#b7924e;font-size:9px;letter-spacing:.24em; }
.battle-enter-loading h3 { margin:8px 0 5px;color:#f0dfb7;font:500 30px/1.2 var(--display);letter-spacing:.15em; }
.battle-enter-loading p { margin:8px 0 0;color:#918772;font-size:10px;line-height:1.7; }

@media (max-width:350px) {
  .masthead { padding-left:10px;padding-right:10px; }
  .seal-button,.account-button { width:36px;height:36px;min-width:36px; }
  .brand { padding:0 3px; }
  .brand h1 { font-size:21px; }
  .brand::before { right:calc(50% + 62px); }.brand::after { left:calc(50% + 62px); }
}

.formation-layout { display:grid;grid-template-columns:minmax(0,1.15fr) minmax(92px,.85fr);gap:11px;align-items:stretch; }
.formation-identity { position:relative;min-width:0;padding:3px 8px 2px 1px;border-right:1px solid rgba(182,138,67,.2); }
.formation-identity .eyebrow { margin:0 0 6px; }
.formation-identity h2 { margin:0 34px 8px 0;color:#f1e2bf;font-size:clamp(20px,5.7vw,25px);line-height:1.18;letter-spacing:.06em;overflow-wrap:anywhere;text-shadow:0 2px 12px #000; }
.formation-identity > p:last-child { display:-webkit-box;overflow:hidden;margin:0;color:#aaa087;font-size:9px;line-height:1.65;-webkit-box-orient:vertical;-webkit-line-clamp:3; }
.formation-identity .formation-seal { top:0;right:7px;width:31px;height:31px;font-size:21px; }
.formation-layout .formation-buffs { display:grid;grid-template-columns:1fr;gap:6px;align-content:stretch; }
.formation-layout .formation-buffs span {
  position:relative;min-height:0;display:grid;grid-template-columns:24px 1fr;grid-template-rows:auto auto;place-items:initial;align-content:center;column-gap:7px;padding:7px 8px;
  border:1px solid rgba(201,164,84,.42);background:radial-gradient(circle at 12px 50%,rgba(211,170,77,.13),transparent 30px),linear-gradient(135deg,rgba(105,76,31,.2),rgba(8,10,8,.58));
  box-shadow:inset 0 1px rgba(255,238,185,.055),inset 0 0 15px rgba(190,142,50,.045),0 5px 12px rgba(0,0,0,.13);overflow:hidden;
}
.formation-layout .formation-buffs span::before { content:"";grid-row:1/3;align-self:center;width:21px;height:21px;border:1px solid rgba(234,198,112,.54);transform:rotate(45deg);background:radial-gradient(circle,#d5ad5f 0 2px,transparent 3px),linear-gradient(135deg,rgba(202,158,70,.22),rgba(29,25,17,.75));box-shadow:inset 0 0 0 3px rgba(0,0,0,.16),0 0 10px rgba(213,169,76,.12); }
.formation-layout .formation-buffs span::after { content:"";position:absolute;right:3px;top:3px;width:9px;height:9px;border-top:1px solid rgba(233,199,116,.46);border-right:1px solid rgba(233,199,116,.46); }
.formation-layout .formation-buffs span:nth-child(even) { border-color:rgba(78,130,123,.5);background:radial-gradient(circle at 12px 50%,rgba(86,151,139,.15),transparent 30px),linear-gradient(135deg,rgba(43,91,84,.21),rgba(8,10,8,.58)); }
.formation-layout .formation-buffs span:nth-child(even)::before { border-color:rgba(130,190,177,.58);background:radial-gradient(circle,#8bb8aa 0 2px,transparent 3px),linear-gradient(135deg,rgba(78,130,123,.28),rgba(20,31,28,.82));box-shadow:inset 0 0 0 3px rgba(0,0,0,.16),0 0 10px rgba(103,170,157,.14); }
.formation-layout .formation-buffs small { align-self:end;color:#b7aa8c;font-size:7px;line-height:1.1;letter-spacing:.13em;text-align:left; }
.formation-layout .formation-buffs strong { align-self:start;color:#f3d17e;font-size:18px;line-height:1.05;text-align:left;text-shadow:0 0 12px rgba(224,179,78,.22); }
.formation-layout .formation-buffs span:nth-child(even) strong { color:#9bc9ba;text-shadow:0 0 12px rgba(111,180,165,.2); }
.formation-section > .formation-members { margin:10px 0 0;padding-top:8px;color:#92876f;border-top:1px solid rgba(213,199,162,.1);font-size:8px;line-height:1.4;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }

@media (max-width:350px) {
  .formation-layout { grid-template-columns:minmax(0,1.08fr) minmax(84px,.92fr);gap:8px; }
  .formation-identity h2 { font-size:22px; }
  .formation-identity > p:last-child { -webkit-line-clamp:2; }
}

.oracle-card.oracle-compact { margin-bottom:9px;padding:11px 13px 12px;background:radial-gradient(circle at 88% 55%,rgba(72,111,100,.1),transparent 120px),linear-gradient(145deg,rgba(34,38,30,.98),rgba(15,18,14,.99)); }
.oracle-card.oracle-compact::before { display:none; }
.oracle-head { position:relative;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 1px 7px;border-bottom:1px solid rgba(182,138,67,.18); }
.oracle-head > small { display:flex;align-items:center;gap:7px;color:#d1b46d;font-size:8px;line-height:1;letter-spacing:.18em;white-space:nowrap; }
.oracle-head > small::before { content:"";width:15px;height:15px;border:1px solid rgba(181,63,51,.72);background:linear-gradient(45deg,transparent 46%,rgba(181,63,51,.7) 47% 53%,transparent 54%);transform:rotate(-3deg);box-shadow:inset 0 0 0 2px rgba(0,0,0,.18); }
.oracle-compact .oracle-meta { display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#9d9279;font-size:8px;line-height:1; }
.oracle-compact .oracle-meta span { min-height:20px;display:grid;place-items:center;padding:3px 6px;border:1px solid rgba(213,193,143,.14);background:rgba(8,10,8,.28);white-space:nowrap; }
.oracle-compact .oracle-meta span:last-child { color:#bfa45f;border-color:rgba(182,138,67,.28);background:rgba(182,138,67,.055); }
.oracle-card.oracle-compact blockquote { position:relative;z-index:3;margin:8px 0 0;padding:7px 10px 6px;color:#f2e3bd;border-left:2px solid #b78b43;background:linear-gradient(90deg,rgba(182,138,67,.075),transparent 78%);font-size:19px;line-height:1.5;letter-spacing:.1em;text-align:left;text-shadow:0 2px 12px rgba(0,0,0,.7); }
.oracle-card.oracle-compact blockquote::after { content:"";position:absolute;right:5px;bottom:4px;width:22px;height:1px;background:linear-gradient(90deg,transparent,rgba(111,165,151,.48)); }

@media (max-width:350px) {
  .oracle-card.oracle-compact { padding-left:11px;padding-right:11px; }
  .oracle-card.oracle-compact blockquote { font-size:18px;letter-spacing:.07em; }
  .oracle-compact .oracle-meta span { padding-left:4px;padding-right:4px; }
}

@media (max-width:600px) {
  body { width:100%;max-width:none; }
  .grain,body::after { width:100%; }
  .bottom-nav { width:calc(100% - 12px); }
  .app-view { max-width:none; }
  .battle-shell { max-width:none; }
  .sky-intro h2 { max-width:100%;padding:0 4px;font-size:clamp(30px,9vw,38px);letter-spacing:.1em;overflow-wrap:anywhere; }
}

@media (prefers-reduced-motion:reduce) {
  .notice-track { animation:none; }
}

/* 值守总览：左列主星与阵法，右列七位应星。 */
.brief-lineup {
  display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  grid-template-areas:"leader followers" "formation followers";gap:8px;align-items:start;padding:10px 11px 12px;
}
.brief-leader {
  grid-area:leader;min-height:112px;grid-template-columns:52px minmax(0,1fr);gap:8px;
  align-self:stretch;padding:8px 7px;background:linear-gradient(125deg,rgba(173,61,50,.2),rgba(40,26,21,.2));
}
.brief-leader .brief-portrait { width:52px;height:72px;align-self:center; }
.brief-leader > div:last-child { align-content:center; }
.brief-leader small { flex-wrap:wrap;gap:5px;font-size:8px;letter-spacing:.08em; }
.brief-leader .brief-leader-rank { padding-left:6px;font-size:11px; }
.brief-leader b { margin:4px 0 2px;font-size:24px;letter-spacing:.06em; }
.brief-leader em { overflow:hidden;font-size:9px;line-height:1.3;white-space:nowrap;text-overflow:ellipsis; }
.brief-followers { grid-area:followers;display:grid;grid-template-columns:1fr;gap:5px;margin:0; }
.brief-follower,.brief-follower:nth-child(7) {
  width:100%;min-height:55px;grid-column:auto;grid-template-columns:38px minmax(0,1fr);gap:0 7px;
  justify-self:stretch;padding:5px 7px 5px 5px;
}
.brief-follower > div { width:38px;height:45px; }
.brief-follower > div span { left:2px;bottom:2px;width:16px;height:16px;font-size:10px; }
.brief-follower b { font-size:14px;line-height:1.1;letter-spacing:.03em; }
.brief-follower small { font-size:9px;line-height:1.1; }
.brief-follower .brief-rank { font-size:9px;line-height:1.1; }
.brief-formation {
  grid-area:formation;align-self:stretch;margin:0;padding:10px 9px;border-color:rgba(182,138,67,.3);
  background:linear-gradient(145deg,rgba(114,78,32,.12),rgba(20,25,20,.72));box-shadow:none;
}
.brief-formation .formation-layout { grid-template-columns:1fr;gap:8px; }
.brief-formation .formation-identity { padding:0 0 8px;border-right:0;border-bottom:1px solid rgba(182,138,67,.18); }
.brief-formation .formation-identity .eyebrow { margin-bottom:5px;font-size:8px; }
.brief-formation .formation-identity h2 { margin:0 28px 6px 0;font-size:18px;line-height:1.25;letter-spacing:.04em; }
.brief-formation .formation-identity > p:last-child { font-size:8px;line-height:1.45;-webkit-line-clamp:2; }
.brief-formation .formation-identity .formation-seal { right:0;width:25px;height:25px;font-size:17px; }
.brief-formation .formation-buffs { grid-template-columns:1fr 1fr;gap:5px; }
.brief-formation .formation-buffs span { grid-template-columns:1fr;grid-template-rows:auto auto;min-height:48px;padding:6px;place-items:center; }
.brief-formation .formation-buffs span::before,.brief-formation .formation-buffs span::after { display:none; }
.brief-formation .formation-buffs small,.brief-formation .formation-buffs strong { text-align:center; }
.brief-formation .formation-buffs small { font-size:8px; }
.brief-formation .formation-buffs strong { margin-top:2px;font-size:16px; }
.brief-formation > .formation-members { margin-top:7px;padding-top:6px;font-size:7px;text-align:center; }

@media (max-width:350px) {
  .brief-lineup { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6px;padding-left:8px;padding-right:8px; }
  .brief-leader { grid-template-columns:46px minmax(0,1fr);gap:6px;padding-left:5px;padding-right:5px; }
  .brief-leader .brief-portrait { width:46px;height:65px; }
  .brief-leader b { font-size:21px; }
  .brief-follower,.brief-follower:nth-child(7) { grid-template-columns:34px minmax(0,1fr);gap:0 6px;padding-right:5px; }
  .brief-follower > div { width:34px;height:43px; }
  .brief-follower b { font-size:13px; }
}

/* 值守卡片精修：纵向主星、单列阵法、右置圆形排位。 */
.brief-lineup { grid-template-rows:auto 1fr; }
.brief-leader {
  display:grid;grid-template-columns:1fr;grid-template-rows:132px auto;gap:9px;min-height:0;padding:7px;
}
.brief-leader .brief-portrait { width:100%;height:132px;align-self:stretch; }
.brief-leader > div:last-child { display:grid;grid-template-columns:minmax(0,1fr) 40px;grid-template-rows:auto auto auto;gap:1px 7px;align-content:start; }
.brief-leader small { display:contents; }
.brief-leader small > span { grid-column:1;grid-row:1;align-self:center;color:#d2b46a;font-size:9px;letter-spacing:.12em; }
.brief-leader .brief-rank { grid-column:2;grid-row:1/4;align-self:center; }
.brief-leader b { grid-column:1;grid-row:2;margin:3px 0 1px;font-size:28px;line-height:1.12; }
.brief-leader em { grid-column:1;grid-row:3;font-size:11px;line-height:1.3; }
.brief-follower,.brief-follower:nth-child(7) {
  grid-template-columns:38px minmax(0,1fr) 38px;grid-template-rows:1fr 1fr;column-gap:8px;min-height:58px;padding-right:6px;
}
.brief-follower > div { grid-column:1;grid-row:1/3; }
.brief-follower b { grid-column:2;grid-row:1;align-self:end;font-size:16px;line-height:1.15; }
.brief-follower small { grid-column:2;grid-row:2;align-self:start;font-size:11px;line-height:1.2; }
.brief-rank,.brief-follower .brief-rank {
  width:36px;height:36px;display:grid;grid-template-columns:1fr;grid-template-rows:1fr auto;place-items:center;align-content:center;
  overflow:hidden;margin:0;color:#e2c16f;border:1px solid rgba(206,166,79,.72);border-radius:50%;
  background:radial-gradient(circle at 35% 28%,rgba(236,204,126,.18),transparent 38%),rgba(55,41,22,.86);
  box-shadow:inset 0 0 0 3px rgba(11,13,10,.5),0 0 10px rgba(198,151,54,.12);font-style:normal;text-overflow:clip;
}
.brief-rank > span { color:#f0cf7b;font:500 15px/.9 var(--display);letter-spacing:0; }
.brief-rank > i { margin-top:1px;color:#aa9160;font:normal 7px/.8 var(--display);letter-spacing:.08em; }
.brief-follower .brief-rank { grid-column:3;grid-row:1/3;align-self:center;justify-self:end; }
.brief-leader .brief-leader-rank {
  padding:0;border-left:0;border-color:rgba(230,188,91,.88);background:radial-gradient(circle at 35% 28%,rgba(255,221,132,.24),transparent 38%),rgba(75,49,19,.9);
  box-shadow:inset 0 0 0 3px rgba(13,12,8,.52),0 0 13px rgba(220,169,61,.2);
}
.brief-formation .formation-layout { grid-template-columns:1fr; }
.brief-formation .formation-buffs { grid-template-columns:1fr;gap:6px; }
.brief-formation .formation-buffs span { min-height:43px;grid-template-columns:1fr auto;grid-template-rows:1fr;align-items:center;padding:7px 9px; }
.brief-formation .formation-buffs small { justify-self:start;font-size:10px;text-align:left; }
.brief-formation .formation-buffs strong { justify-self:end;margin:0;font-size:18px;text-align:right; }

@media (max-width:350px) {
  .brief-leader { grid-template-rows:116px auto; }
  .brief-leader .brief-portrait { height:116px; }
  .brief-leader > div:last-child { grid-template-columns:minmax(0,1fr) 35px;gap:1px 5px; }
  .brief-leader b { font-size:25px; }
  .brief-follower,.brief-follower:nth-child(7) { grid-template-columns:34px minmax(0,1fr) 34px;column-gap:6px; }
  .brief-rank,.brief-follower .brief-rank { width:32px;height:32px; }
  .brief-rank > span { font-size:13px; }
  .brief-follower b { font-size:15px; }
  .brief-follower small { font-size:10px; }
}

/* 排位纵序与称号：第 / 圆形数字 / 位。 */
.brief-follower,.brief-follower:nth-child(7) {
  min-height:72px;grid-template-columns:40px minmax(0,1fr) 40px;grid-template-rows:auto 1fr;column-gap:8px;padding-top:6px;padding-bottom:6px;
}
.brief-follower > div { width:40px;height:56px;align-self:center; }
.brief-follower b { align-self:end;font-size:16px; }
.brief-follower small { display:grid;grid-template-columns:1fr;gap:1px;align-self:start;overflow:visible;line-height:1.08;white-space:normal;text-overflow:clip; }
.brief-follower small > span { overflow:hidden;color:#b1a68e;font-size:10px;white-space:nowrap;text-overflow:ellipsis; }
.brief-follower small > i { overflow:hidden;color:#d0b36e;font:normal 10px/1.15 var(--display);white-space:nowrap;text-overflow:ellipsis; }
.brief-rank,.brief-follower .brief-rank {
  width:38px;height:58px;display:grid;grid-template-columns:1fr;grid-template-rows:11px 34px 11px;place-items:center;align-content:center;
  overflow:visible;border:0;border-radius:0;background:none;box-shadow:none;
}
.brief-rank::before { content:"第";grid-row:1;color:#8f846e;font:normal 9px/1 var(--display);letter-spacing:0; }
.brief-rank > span {
  grid-row:2;width:34px;height:34px;display:grid;place-items:center;color:#f0cf7b;border:1px solid rgba(206,166,79,.72);border-radius:50%;
  background:radial-gradient(circle at 35% 28%,rgba(236,204,126,.18),transparent 38%),rgba(55,41,22,.86);
  box-shadow:inset 0 0 0 3px rgba(11,13,10,.5),0 0 10px rgba(198,151,54,.12);font-size:15px;line-height:1;
}
.brief-rank > i { grid-row:3;margin:0;color:#8f846e;font:normal 9px/1 var(--display);letter-spacing:0; }
.brief-leader .brief-leader-rank { width:38px;height:58px;padding:0;border:0;background:none;box-shadow:none; }
.brief-leader .brief-leader-rank > span {
  border-color:rgba(230,188,91,.88);background:radial-gradient(circle at 35% 28%,rgba(255,221,132,.24),transparent 38%),rgba(75,49,19,.9);
  box-shadow:inset 0 0 0 3px rgba(13,12,8,.52),0 0 13px rgba(220,169,61,.2);
}
.brief-formation .formation-buffs span {
  width:100%;grid-template-columns:minmax(0,1fr) 52px;grid-template-rows:1fr;column-gap:10px;padding-left:10px;padding-right:10px;
}
.brief-formation .formation-buffs small { width:100%;justify-self:stretch;text-align:left; }
.brief-formation .formation-buffs strong { width:52px;justify-self:end;text-align:right;font-variant-numeric:tabular-nums; }

@media (max-width:350px) {
  .brief-follower,.brief-follower:nth-child(7) { grid-template-columns:34px minmax(0,1fr) 35px;column-gap:6px; }
  .brief-follower > div { width:34px;height:52px; }
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { width:34px;height:54px;grid-template-rows:10px 32px 10px; }
  .brief-rank > span { width:32px;height:32px;font-size:13px; }
  .brief-rank::before,.brief-rank > i { font-size:8px; }
  .brief-follower small > span,.brief-follower small > i { font-size:9px; }
}

/* 紧凑值守：Buff 同行对齐，排名不再撑高应星列。 */
.brief-formation .formation-buffs span { min-height:42px;align-items:center; }
.brief-formation .formation-buffs small,
.brief-formation .formation-buffs strong { align-self:center;line-height:1; }
.brief-follower,.brief-follower:nth-child(7) {
  min-height:62px;grid-template-columns:36px minmax(0,1fr) 34px;column-gap:7px;padding-top:4px;padding-bottom:4px;
}
.brief-follower > div { width:36px;height:50px; }
.brief-leader > div:last-child { grid-template-rows:auto auto;align-content:center; }
.brief-leader b { grid-row:1;margin-top:0;align-self:end; }
.brief-leader em { grid-row:2;align-self:start; }
.brief-leader .brief-rank { grid-row:1/3; }
.brief-leader .brief-portrait > span { letter-spacing:.03em;white-space:nowrap; }
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  position:relative;width:32px;height:46px;grid-template-rows:7px 18px 7px;align-content:center;
  background:url("./assets/ui/rank-token.webp?v=20260905-1") center/100% 100% no-repeat;
  box-shadow:none;clip-path:none;
}
.brief-rank > span {
  width:auto;height:auto;border:0;border-radius:0;background:none;box-shadow:none;
  color:#edc96f;font-size:15px;line-height:1;text-shadow:0 0 10px rgba(220,173,70,.24);
}
.brief-rank::before,.brief-rank > i { color:#9f8a60;font-size:7px;line-height:1; }
.brief-leader .brief-leader-rank > span { border:0;background:none;box-shadow:none;color:#f2cf72; }
.brief-follower,.brief-follower:nth-child(7) { grid-template-rows:auto auto;align-content:center; }
.brief-follower b { align-self:end; }
.brief-follower small { align-self:start; }
.brief-follower .brief-rank { align-self:center;margin-top:0; }

@media (max-width:350px) {
  .brief-follower,.brief-follower:nth-child(7) { min-height:58px;grid-template-columns:32px minmax(0,1fr) 31px;column-gap:5px; }
  .brief-follower > div { width:32px;height:46px; }
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { width:29px;height:43px;grid-template-rows:7px 17px 7px; }
  .brief-rank > span { width:auto;height:auto;font-size:14px; }
}

/* 首屏总览：在手机首屏完整容纳一主七应。 */
.brief-head { min-height:56px;padding:8px 10px 6px; }
.brief-lineup { gap:6px;padding:6px 8px; }
.brief-followers { gap:3px; }
.brief-follower,.brief-follower:nth-child(7) {
  height:39px;min-height:39px;box-sizing:border-box;grid-template-columns:27px minmax(0,1fr) 25px;column-gap:5px;padding:1px 3px;
}
.brief-follower > div { width:27px;height:35px; }
.brief-follower > div span { left:1px;bottom:1px;width:13px;height:13px;font-size:8px; }
.brief-follower b { font-size:13px;line-height:1.05; }
.brief-follower small { gap:0;line-height:1; }
.brief-follower small > span,.brief-follower small > i { font-size:8px;line-height:1.05; }
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  width:25px;height:37px;grid-template-rows:6px 15px 6px;
}
.brief-rank > span { font-size:12px; }
.brief-rank::before,.brief-rank > i { font-size:6px; }
.brief-leader { grid-template-rows:93px auto;gap:5px;padding:5px; }
.brief-leader .brief-portrait { height:93px; }
.brief-leader > div:last-child { grid-template-columns:minmax(0,1fr) 25px;gap:1px 4px; }
.brief-leader b { font-size:23px; }
.brief-leader em { font-size:9px; }
.brief-formation { padding:6px; }
.brief-formation .formation-layout { gap:4px; }
.brief-formation .formation-identity { padding-bottom:4px; }
.brief-formation .formation-identity .eyebrow { margin-bottom:2px;font-size:7px; }
.brief-formation .formation-identity h2 { margin:0 24px 3px 0;font-size:15px;line-height:1.15; }
.brief-formation .formation-identity > p:last-child { font-size:7px;line-height:1.25;-webkit-line-clamp:1; }
.brief-formation .formation-identity .formation-seal { width:22px;height:22px;font-size:15px; }
.brief-formation .formation-buffs { gap:3px; }
.brief-formation .formation-buffs span { min-height:29px;padding:4px 6px; }
.brief-formation .formation-buffs small { font-size:9px; }
.brief-formation .formation-buffs strong { font-size:15px; }

/* 主星横排，并适度收窄应星列。 */
.brief-lineup { grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); }
.brief-leader {
  height:108px;grid-template-columns:58px minmax(0,1fr);grid-template-rows:1fr;gap:6px;align-items:center;
}
.brief-leader .brief-portrait { width:58px;height:96px;align-self:center; }
.brief-leader > div:last-child { min-width:0;align-self:center; }
.brief-leader b { font-size:22px; }
.brief-leader em { font-size:8px; }

@media (max-width:350px) {
  .brief-lineup { grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); }
  .brief-leader { height:104px;grid-template-columns:51px minmax(0,1fr);gap:5px; }
  .brief-leader .brief-portrait { width:51px;height:92px; }
  .brief-leader b { font-size:20px; }
}

/* 客户端可读字号基线：紧凑依靠间距，不依靠缩小文字。 */
body { font-size:14px;line-height:1.5; }
button,input,select,textarea { font-size:14px; }
.brand span,.notice-track { font-size:10px; }
.notice-mark { font-size:11px; }
.sky-intro { padding:18px 16px 8px; }
.date-line { font-size:11px; }
.sky-copy { font-size:12px;line-height:1.55; }
.sky-tags span { font-size:11px; }
.brief-head p,.reveal-countdown small,.reveal-countdown span { font-size:10px; }
.brief-portrait > span { font-size:10px; }
.brief-leader em { font-size:10px;line-height:1.25; }
.brief-follower b { font-size:14px;line-height:1; }
.brief-follower small > span,.brief-follower small > i { font-size:10px;line-height:1; }
.brief-rank::before,.brief-rank > i { font-size:8px; }
.brief-formation .formation-identity .eyebrow { font-size:10px; }
.brief-formation .formation-identity > p:last-child { font-size:10px;line-height:1.3; }
.brief-formation .formation-buffs small { font-size:11px; }
.brief-verdict,.verdict-title { font-size:11px; }
.verdict-section p { font-size:12px;line-height:1.65; }
.verify-link { font-size:11px; }
.bottom-nav button { font-size:11px; }

.app-view,.about-view { font-size:14px; }
.view-heading span,.empty-state { font-size:12px; }
.lore-hero p:last-of-type,.lore-chapters p,.lore-note { font-size:12px;line-height:1.7; }
.history-chronicle small,.history-summary small,.history-item small,.history-item em,.history-item i { font-size:10px; }
.history-loader p,.history-loader button small { font-size:11px; }
.view-shortcut > small { font-size:11px; }
.oracle-card small,.account-card small,.oracle-meta,.form-section-title small { font-size:11px; }
.prediction-form label,.account-form label { font-size:12px; }
.form-note,.form-error,.form-success { font-size:12px;line-height:1.6; }
.prediction-entry-card > header small,.prediction-entry-star small { font-size:10px; }
.activity-heading small,.activity-block h4 { font-size:11px; }
.activity-item span,.activity-empty { font-size:12px; }
.defense-lobby > small { font-size:11px; }
.defense-lobby p,.defense-loading p,.battle-enter-loading p { font-size:12px;line-height:1.6; }
.collection-summary > span { font-size:11px; }
.collection-summary small,.roster-tools .roster-filter > span { font-size:10px; }
.roster-tools .roster-filter button { font-size:12px; }
.roster-nickname { font-size:12px; }
.roster-rank,.roster-fragments { font-size:10px; }
.roster-skills > i > em { font-size:9px; }
.account-section-title small,.setting-row small,.account-notice p,.quiet-action { font-size:11px; }
.setting-row.static em { font-size:12px; }
.account-connection-note { font-size:12px; }
.battle-hud,.tactic-preview > span,.tactic-preview > small,.tactic-status { font-size:11px; }
.hud-vital small,.hud-round small { font-size:9px; }
.draw-heading small,.draw-heading span,.draw-result span,.battle-pause-card > small,.battle-pause-keys { font-size:11px; }
.oracle-card.oracle-compact .oracle-meta,.oracle-card.oracle-compact .oracle-meta span { font-size:10px; }
.power-orb span { font-size:10px; }
.roster-skills > i > em { font-size:10px; }
.brief-follower > div span { width:14px;height:14px;font-size:10px; }

/* 重建值守总览比例，并统一抬高客户端可读字号。 */
body { font-size:15px; }
button,input,select,textarea { font-size:15px; }
.brand span,.notice-track { font-size:11px; }
.date-line { font-size:12px; }
.sky-copy { font-size:13px; }
.sky-tags span { font-size:12px; }
.brief-head p,.reveal-countdown small,.reveal-countdown span { font-size:11px; }
.brief-portrait > span { font-size:11px; }
.brief-verdict,.verdict-title { font-size:12px; }
.verdict-section p { font-size:13px; }
.verify-link,.bottom-nav button { font-size:12px; }
.app-view,.about-view { font-size:15px; }
.view-heading span,.empty-state { font-size:13px; }
.lore-hero p:last-of-type,.lore-chapters p,.lore-note { font-size:13px; }
.history-chronicle small,.history-summary small,.history-item small,.history-item em,.history-item i { font-size:11px; }
.history-loader p,.history-loader button small,.view-shortcut > small { font-size:12px; }
.oracle-card small,.account-card small,.oracle-meta,.form-section-title small { font-size:12px; }
.prediction-form label,.account-form label { font-size:13px; }
.form-note,.form-error,.form-success { font-size:13px; }
.prediction-entry-card > header small,.prediction-entry-star small { font-size:11px; }
.activity-heading small,.activity-block h4 { font-size:12px; }
.activity-item span,.activity-empty { font-size:13px; }
.defense-lobby > small { font-size:12px; }
.defense-lobby p,.defense-loading p,.battle-enter-loading p { font-size:13px; }
.collection-summary > span { font-size:12px; }
.collection-summary small,.roster-tools .roster-filter > span { font-size:11px; }
.roster-tools .roster-filter button { font-size:13px; }
.roster-nickname { font-size:13px; }
.roster-rank,.roster-fragments,.roster-skills > i > em { font-size:11px; }
.account-section-title small,.setting-row small,.account-notice p,.quiet-action { font-size:12px; }
.setting-row.static em,.account-connection-note { font-size:13px; }
.battle-hud,.tactic-preview > span,.tactic-preview > small,.tactic-status { font-size:12px; }
.hud-vital small,.hud-round small { font-size:10px; }
.draw-heading small,.draw-heading span,.draw-result span,.battle-pause-card > small,.battle-pause-keys { font-size:12px; }
.oracle-card.oracle-compact .oracle-meta,.oracle-card.oracle-compact .oracle-meta span,.power-orb span { font-size:11px; }

.brief-lineup {
  grid-template-columns:minmax(0,1.06fr) minmax(0,1.04fr);gap:8px;
}
.brief-leader {
  height:120px;grid-template-columns:62px minmax(0,1fr);gap:8px;padding:6px;
}
.brief-leader .brief-portrait { width:62px;height:108px; }
.brief-leader b { font-size:25px; }
.brief-leader em { font-size:11px;line-height:1.3; }
.brief-leader > div:last-child { grid-template-columns:minmax(0,1fr) 29px;gap:2px 5px; }
.brief-followers { gap:4px; }
.brief-follower,.brief-follower:nth-child(7) {
  height:43px;min-height:43px;grid-template-columns:30px minmax(0,1fr) 29px;column-gap:5px;padding:2px 4px;
}
.brief-follower > div { width:30px;height:39px; }
.brief-follower b { font-size:15px;line-height:1.05; }
.brief-follower small { gap:1px;line-height:1.05; }
.brief-follower small > span,.brief-follower small > i { font-size:11px;line-height:1.05; }
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  width:29px;height:41px;grid-template-rows:7px 17px 7px;
}
.brief-rank > span { font-size:14px; }
.brief-rank::before,.brief-rank > i { font-size:8px; }
.brief-formation { padding:8px; }
.brief-formation .formation-layout { height:100%;grid-template-rows:auto 1fr;gap:7px; }
.brief-formation .formation-identity { padding-bottom:7px; }
.brief-formation .formation-identity .eyebrow { font-size:11px; }
.brief-formation .formation-identity h2 { font-size:18px; }
.brief-formation .formation-identity > p:last-child { font-size:11px;line-height:1.35;-webkit-line-clamp:2; }
.brief-formation .formation-buffs { grid-template-rows:repeat(2,minmax(40px,1fr));align-self:stretch; }
.brief-formation .formation-buffs span { min-height:40px;padding:7px 9px; }
.brief-formation .formation-buffs small { font-size:12px; }
.brief-formation .formation-buffs strong { font-size:19px; }

@media (max-width:350px) {
  .brief-lineup { grid-template-columns:minmax(0,1.05fr) minmax(0,1.03fr);gap:6px; }
  .brief-leader { height:114px;grid-template-columns:54px minmax(0,1fr);gap:6px; }
  .brief-leader .brief-portrait { width:54px;height:102px; }
  .brief-leader b { font-size:22px; }
  .brief-follower,.brief-follower:nth-child(7) { grid-template-columns:28px minmax(0,1fr) 27px;column-gap:4px; }
  .brief-follower > div { width:28px;height:39px; }
  .brief-follower b { font-size:14px; }
  .brief-follower small > span,.brief-follower small > i { font-size:10px; }
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { width:27px;height:39px; }
}

/* 统一排位旗标：主星与应星共用同一种信息次序与角标。 */
.brief-leader,.brief-follower { position:relative; }
.brief-leader { grid-template-columns:72px minmax(0,1fr); }
.brief-leader .brief-portrait { width:72px;height:108px; }
#briefLeader > .brief-leader-info {
  min-width:0;display:grid;grid-template-columns:1fr;grid-template-rows:auto auto;gap:2px;align-content:center;padding:16px 0 0;
}
.brief-leader .brief-leader-info b {
  grid-column:1;grid-row:1;margin:0;font-size:25px;line-height:1.08;align-self:end;white-space:nowrap;word-break:keep-all;
}
.brief-leader .brief-leader-info small {
  grid-column:1;grid-row:2;display:grid;grid-template-columns:1fr;gap:1px;align-self:start;line-height:1.05;
}
.brief-leader .brief-leader-info small > span { color:#b1a68e;font-size:11px;white-space:nowrap; }
.brief-leader .brief-leader-info small > i { color:#d0b36e;font:normal 11px/1.05 var(--display);white-space:nowrap; }
.brief-follower,.brief-follower:nth-child(7) {
  grid-template-columns:30px minmax(0,1fr);padding-right:35px;
}
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  position:absolute;z-index:2;top:-1px;right:4px;width:29px;height:35px;margin:0;
  display:grid;grid-template-columns:1fr;grid-template-rows:10px 1fr;place-items:center;align-content:stretch;
  overflow:hidden;border:1px solid rgba(205,160,68,.72);border-top:0;border-radius:0 0 3px 3px;
  background:linear-gradient(180deg,rgba(111,73,25,.98),rgba(53,35,17,.96));
  box-shadow:0 3px 8px rgba(0,0,0,.28),inset 0 0 0 1px rgba(246,211,129,.08);
  clip-path:polygon(0 0,100% 0,100% 88%,50% 100%,0 88%);
}
.brief-rank::before {
  content:"第";grid-row:1;color:#c8aa67;font:normal 8px/10px var(--display);letter-spacing:0;
}
.brief-rank > span,.brief-leader .brief-leader-rank > span {
  grid-row:2;width:auto;height:auto;border:0;border-radius:0;background:none;box-shadow:none;
  color:#f2d17b;font:500 14px/1 var(--display);text-shadow:0 1px 5px rgba(0,0,0,.5);
}
.brief-rank > i { display:none; }
.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  grid-column:auto;grid-row:auto;align-self:auto;justify-self:auto;
}
.brief-leader .brief-leader-rank {
  right:5px;background:linear-gradient(180deg,rgba(145,96,29,.98),rgba(71,42,17,.97));
}

@media (max-width:350px) {
  .brief-leader { grid-template-columns:64px minmax(0,1fr); }
  .brief-leader .brief-portrait { width:64px;height:102px; }
  .brief-leader .brief-leader-info b { font-size:22px; }
  .brief-leader .brief-leader-info small > span,.brief-leader .brief-leader-info small > i { font-size:10px; }
  .brief-follower,.brief-follower:nth-child(7) { grid-template-columns:28px minmax(0,1fr);padding-right:32px; }
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { width:27px;height:33px; }
}

/* 排名改为紧凑横向旗标；主星角标与信息下沉，避免遮挡人物面部。 */
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  top:-1px;right:4px;width:50px;height:27px;display:flex;align-items:center;justify-content:center;gap:1px;
  padding:0 4px 2px;border-radius:0 0 2px 2px;
  clip-path:polygon(0 0,100% 0,100% 84%,50% 100%,0 84%);
  white-space:nowrap;
}
.brief-rank::before {
  content:"第";display:inline;color:#c8aa67;font:normal 9px/1 var(--display);
}
.brief-rank > span,.brief-leader .brief-leader-rank > span {
  display:inline;width:auto;height:auto;color:#f2d17b;font:500 13px/1 var(--display);
}
.brief-rank > i {
  display:inline;margin:0;color:#c8aa67;font:normal 9px/1 var(--display);
}
.brief-follower,.brief-follower:nth-child(7) { padding-right:55px; }
.brief-leader .brief-portrait > span {
  top:auto;bottom:4px;left:4px;padding:3px 6px;background:linear-gradient(90deg,rgba(39,28,12,.92),rgba(39,28,12,.5));
}
#briefLeader > .brief-leader-info { align-self:end;align-content:end;height:auto;padding:0 0 7px; }

/* Buff数量由数据驱动，1—4条都在阵法卡剩余高度内均分。 */
.brief-formation .formation-buffs { min-height:0;align-self:stretch; }
.brief-formation .formation-buffs.buff-count-1 { grid-template-rows:minmax(0,1fr); }
.brief-formation .formation-buffs.buff-count-2 { grid-template-rows:repeat(2,minmax(0,1fr)); }
.brief-formation .formation-buffs.buff-count-3 { grid-template-rows:repeat(3,minmax(0,1fr));gap:4px; }
.brief-formation .formation-buffs.buff-count-4 { grid-template-rows:repeat(4,minmax(0,1fr));gap:3px; }
.brief-formation .formation-buffs span { min-height:0; }
.brief-formation .formation-buffs.buff-count-3 span,
.brief-formation .formation-buffs.buff-count-4 span { padding-top:4px;padding-bottom:4px; }
.brief-formation .formation-buffs.buff-count-3 strong,
.brief-formation .formation-buffs.buff-count-4 strong { font-size:17px; }

@media (max-width:350px) {
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { width:46px;height:25px; }
  .brief-follower,.brief-follower:nth-child(7) { padding-right:50px; }
}

/* 排位题签：透明墨底配右上金线，去除厚重旗帜造型。 */
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  top:4px;right:4px;width:auto;min-width:43px;height:21px;gap:1px;padding:0 4px 1px 6px;
  border:0;border-top:1px solid rgba(205,169,90,.58);border-right:1px solid rgba(205,169,90,.58);border-radius:0;
  background:linear-gradient(90deg,rgba(37,28,17,0),rgba(37,28,17,.68));box-shadow:none;clip-path:none;
}
.brief-rank::after {
  content:"";position:absolute;right:0;bottom:0;width:18px;height:1px;background:linear-gradient(90deg,transparent,rgba(205,169,90,.48));
}
.brief-rank::before,.brief-rank > i { color:#aa9361;font-size:9px; }
.brief-rank > span,.brief-leader .brief-leader-rank > span { color:#e6c66f;font-size:13px;text-shadow:0 1px 5px rgba(0,0,0,.45); }
.brief-leader .brief-leader-rank { background:linear-gradient(90deg,rgba(50,34,15,0),rgba(65,42,16,.76)); }
.brief-follower,.brief-follower:nth-child(7) { padding-right:52px; }

@media (max-width:350px) {
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { width:auto;min-width:41px;height:20px; }
  .brief-follower,.brief-follower:nth-child(7) { padding-right:48px; }
}

/* 朱漆榜签：与水墨卡面融合的紧凑排位角标。 */
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  top:4px;right:4px;width:auto;min-width:46px;height:22px;gap:0;padding:0 5px 1px 8px;
  overflow:hidden;border:1px solid rgba(183,145,74,.52);border-left-color:rgba(151,49,39,.9);border-radius:1px;
  background:linear-gradient(90deg,rgba(128,42,32,.82) 0 3px,rgba(39,29,19,.92) 3px 100%);
  box-shadow:0 2px 7px rgba(0,0,0,.28),inset 0 0 0 1px rgba(245,215,151,.05);clip-path:none;
}
.brief-rank::after {
  content:"";position:absolute;inset:2px;border:1px solid rgba(224,186,104,.12);pointer-events:none;
}
.brief-rank::before,.brief-rank > span,.brief-rank > i { position:relative;z-index:1; }
.brief-rank::before,.brief-rank > i { color:#bda36c;font-size:8px; }
.brief-rank > span,.brief-leader .brief-leader-rank > span { color:#efd07a;font-size:13px;text-shadow:0 1px 3px rgba(0,0,0,.7); }
.brief-leader .brief-leader-rank {
  border-color:rgba(207,166,80,.62);border-left-color:rgba(177,57,40,.95);
  background:linear-gradient(90deg,rgba(151,48,34,.88) 0 3px,rgba(54,36,19,.95) 3px 100%);
}
.brief-follower,.brief-follower:nth-child(7) { padding-right:55px; }

@media (max-width:350px) {
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { min-width:43px;height:21px;padding-left:7px;padding-right:4px; }
  .brief-follower,.brief-follower:nth-child(7) { padding-right:51px; }
}

/* 首屏纵向收束：保留字号，只压缩空白与继承行高。 */
.sky-intro { padding:10px 16px 4px; }
.sky-intro h2 { margin-top:7px;margin-bottom:5px; }
.sky-tags { margin-top:6px; }
.sky-tags span { min-height:24px;padding:3px 7px; }
.brief-head { min-height:52px;padding:6px 10px 5px; }
.brief-head p { line-height:1.2; }
.brief-head h2 { line-height:1.1; }
.reveal-countdown small,.reveal-countdown span { line-height:1.15; }

/* 极简排位：仅保留朱砂引线与文字，不再使用容器造型。 */
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  top:5px;right:6px;width:auto;min-width:0;height:18px;gap:0;padding:0 0 0 6px;
  overflow:visible;border:0;border-left:2px solid rgba(151,49,39,.72);border-radius:0;
  background:none;box-shadow:none;clip-path:none;
}
.brief-rank::after { display:none; }
.brief-rank::before,.brief-rank > i { color:#9f8f6f;font-size:9px;line-height:1; }
.brief-rank > span,.brief-leader .brief-leader-rank > span {
  color:#d9bb70;font-size:14px;line-height:1;text-shadow:0 1px 3px rgba(0,0,0,.55);
}
.brief-leader .brief-leader-rank { border-left-color:rgba(151,49,39,.72);background:none; }
.brief-follower,.brief-follower:nth-child(7) { padding-right:48px; }

@media (max-width:350px) {
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { min-width:0;height:18px;padding-left:5px; }
  .brief-follower,.brief-follower:nth-child(7) { padding-right:45px; }
}

/* 右起排位：从卡片右边缘起笔，字组向左展开。 */
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  right:5px;flex-direction:row;justify-content:flex-end;direction:ltr;padding:0 6px 0 0;
  border-left:0;border-right:2px solid rgba(151,49,39,.72);
  text-align:right;
}
.brief-leader .brief-leader-rank { border-left:0;border-right-color:rgba(151,49,39,.72); }

@media (max-width:350px) {
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { padding-left:0;padding-right:5px; }
}

/* 右悬绢旗：顶沿贴齐卡片，右侧为细旗杆，旗面向左展开。 */
.brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank {
  top:0;right:0;width:51px;min-width:51px;height:23px;display:flex;flex-direction:row;justify-content:center;direction:ltr;
  gap:0;padding:0 4px 1px 9px;overflow:hidden;border:0;border-top:1px solid rgba(208,169,91,.58);
  border-right:2px solid rgba(225,188,105,.86);border-bottom:1px solid rgba(104,63,32,.8);border-radius:0;
  background:
    linear-gradient(105deg,transparent 0 38%,rgba(255,218,142,.09) 48%,transparent 59%),
    linear-gradient(180deg,rgba(126,47,37,.96) 0%,rgba(83,29,25,.94) 52%,rgba(48,25,21,.97) 100%);
  box-shadow:inset -4px 0 6px rgba(243,199,105,.08),inset 0 -4px 7px rgba(0,0,0,.2);
  clip-path:polygon(0 0,100% 0,100% 100%,0 100%,7px 50%);filter:drop-shadow(0 2px 2px rgba(0,0,0,.34));
}
.brief-rank::after { display:none; }
.brief-rank::before,.brief-rank > i { color:#d3b477;font-size:8px;line-height:1; }
.brief-rank > span,.brief-leader .brief-leader-rank > span { color:#f1d58d;font-size:13px;line-height:1;text-shadow:0 1px 2px rgba(35,12,8,.8); }
.brief-leader .brief-leader-rank {
  border-right-color:rgba(236,201,118,.92);background:
    linear-gradient(105deg,transparent 0 38%,rgba(255,225,154,.12) 48%,transparent 59%),
    linear-gradient(180deg,rgba(145,52,37,.98) 0%,rgba(94,31,24,.96) 52%,rgba(52,25,19,.98) 100%);
}
.brief-follower,.brief-follower:nth-child(7) { padding-right:57px; }

@media (max-width:350px) {
  .brief-rank,.brief-follower .brief-rank,.brief-leader .brief-leader-rank { width:48px;min-width:48px;height:22px;padding:0 3px 1px 8px; }
  .brief-follower,.brief-follower:nth-child(7) { padding-right:53px; }
}
