/* Modern presentation layer; gameplay and legacy rarity colors stay in the original bundle. */
:root {
  color-scheme: dark;
  --bg: #0b0e14; --panel: #151b25; --panel2: #202836; --line: #a8b6ce24;
  --bronze: #8c7957; --gold: #cdb17b; --gold-hi: #f1d7a4;
  --bone: #edf1f7; --dim: #a5b0bf; --blood: #641d2c; --red: #b74d5e;
  --blue: #578ec7; --blue-hi: #91c8ff; --green: #60ad91; --green-hi: #93dfbf;
  --ui-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #0b0e14; font-family: var(--ui-font); text-shadow: none; line-height: 1.65; }
body .pxfont, body h1, body h2, body h3, body .num, body .bar > span, body .status-res,
body .sheet-head span, body .scenebar .mapname, body .status-name span:first-child,
body .enh-plus, body .classpick .cp-name, body .dock button, body .sb-t, body .big-title, body .big-kicker {
  font-family: var(--ui-font) !important; letter-spacing: .02em;
}
body .num, body .bar > span, body .status-res { font-variant-numeric: tabular-nums; }
body button, body input, body textarea, body select { font-family: var(--ui-font); }
button { background: #ffffff09; border-color: #ffffff1c; border-radius: 8px; transition: background .16s, border-color .16s, color .16s; }
button:hover:not(:disabled) { background: #ffffff12; border-color: #ffffff38; }
button.primary { color: #f1ddba; background: #c8ad7414; border-color: #c8ad7445; }
button.primary:hover:not(:disabled) { background: #c8ad7426; border-color: #c8ad7480; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #e8c98f; outline-offset: 4px;
}
input, textarea, select, .nameinput { background: #0e141e; color: var(--bone); border-color: #344052; border-radius: 8px; }
input::placeholder, textarea::placeholder { color: #8490a2; }
body h1 { text-shadow: none; }
body .app { border-color: #252d39; }
.piximg { image-rendering: auto; }
.visual-portrait { image-rendering: auto !important; object-fit: contain; }

/* Official site */
html .app.lp-mode { max-width: none; border: 0; }
.app .landing { width: 100%; background: #0b0e14; overflow: clip; }
.app .landing .lp-top { padding: 18px max(5vw, calc((100vw - 1280px) / 2)); gap: 24px; background: #0b0e14e8; border-bottom: 1px solid #ffffff10; backdrop-filter: blur(20px); }
.app .landing .lp-brand { gap: 10px; flex-shrink: 0; }
.app .landing .lp-logo { width: 29px; height: 29px; image-rendering: auto; }
.app .landing .lp-name { font-family: Georgia, serif !important; font-size: 26px; letter-spacing: .08em; color: #f1ddae; text-shadow: none; }
.app .landing .lp-tagline { display: none; }
.app .landing .lp-nav { gap: 24px; }
.app .landing .lp-nav a { font-size: 13px; color: #adb7c7; }
.app .landing .lp-actions { flex-shrink: 0; }
.app .landing .lp-beta { background: #c4a26310; border-color: #c4a26345; color: #dcc392; font-size: 10px; }
.app .landing .lp-mini { padding: 9px 17px; color: #16191e; background: #d0b17a; border-color: #d0b17a; border-radius: 6px; font-weight: 600; }
.app .landing .lp-ghost { color: #d7dce5; }
.app .landing .lp-hero {
  max-width: 1440px; min-height: 740px; padding: 105px 7vw 65px; position: relative; isolation: isolate;
  background: linear-gradient(90deg, #0b0e14 2%, #0b0e14c9 48%, #0b0e1440 85%), linear-gradient(0deg, #0b0e14, transparent 65%), url('/visual/world/citadel.webp') center 32% / cover;
}
.app .landing .lp-hero-copy { position: relative; z-index: 2; max-width: 560px; width: 51%; margin: 0; }
.app .landing .lp-brandline { font-size: 10px; color: #bba77f; letter-spacing: .27em; margin-bottom: 24px; }
.app .landing .lp-kicker { color: #b4c2d3; font-size: 12px; margin-bottom: 18px; }
.app .landing .lp-kicker i { border-radius: 50%; background: #8ce0bc; box-shadow: 0 0 12px #8ce0bc66; }
.app .landing .lp-hero h1 { color: #f4f3ee; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.25; font-weight: 600; letter-spacing: -.045em; text-shadow: none; }
.app .landing .lp-hero h1 em { color: #ddc18e; font-style: normal; }
.app .landing .lp-desc { color: #adb9c9; font-size: 14px; line-height: 1.95; max-width: 450px; margin-top: 26px; }
.app .landing .lp-cta { gap: 14px; margin-top: 28px; }
.app .landing .lp-btn-main { min-height: 48px; padding: 12px 26px; color: #191c22; font-weight: 650; background: #d2b783; border: 1px solid #e5c992; border-radius: 6px; letter-spacing: .03em; }
.app .landing .lp-btn-main:hover { background: #e6c996; color: #11151c; }
.app .landing .lp-btn { padding: 12px 20px; color: #c4cdd9; border-color: #ffffff24; background: #10151d99; border-radius: 6px; }
.app .landing .lp-note { color: #93a0b2; font-size: 11px; margin-top: 14px; }
.app .landing .lp-hero-group { margin-top: 22px; padding: 0; background: none; border: 0; gap: 10px; }
.app .landing .lp-hero-group-label, .app .landing .lp-hero-group a { color: #96a3b5; font-size: 11px; }
.app .landing .lp-hero-group b { color: #c6cfdb; font-size: 13px; font-weight: 500; }
.app .landing .lp-copy { padding: 3px 9px; border-color: #ffffff20; font-size: 10px; background: transparent; }
.app .landing .lp-stats { grid-template-columns: repeat(4, 1fr); border: 0; border-top: 1px solid #ffffff1a; background: none; margin-top: 32px; gap: 12px; padding-top: 21px; }
.app .landing .lp-stat { background: none; padding: 0; }
.app .landing .lp-stat b { color: #dce2eb; font-weight: 400; font-size: 25px; }
.app .landing .lp-stat span { color: #acb8c8; font-size: 11px; }
.app .landing .lp-stat em { display: none; }
.lp-hero-art { pointer-events: none; position: absolute; z-index: 1; right: 0; bottom: 15px; width: 57%; height: 610px; }
.lp-hero-art > .hero-keyart { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 88%, transparent), linear-gradient(transparent, #000 13%, #000 69%, transparent 98%); mask-composite: intersect; }
.hero-art-caption { position: absolute; z-index: 3; bottom: 45px; left: 28%; text-align: center; color: #cbb68e; }
.hero-art-caption span { font-size: 9px; letter-spacing: .25em; display: block; }
.hero-art-caption b { display: block; font-size: 11px; font-weight: 400; margin-top: 5px; color: #c8cdd7; letter-spacing: .35em; }
.app .landing .lp-marquee { margin-top: 0; background: #11161e; border-color: #ffffff0c; }
.app .landing .lp-marquee-track { width: 100%; justify-content: center; animation: none; }
.app .landing .lp-marquee-track span { font-size: 11px; padding: 14px 0; color: #8b98aa; letter-spacing: .2em; }
.app .landing .lp-marquee-track span + span { display: none; }
.app .landing .lp-section { max-width: 1240px; margin: 0 auto; padding: 88px 36px 0; scroll-margin-top: 20px; }
.app .landing .lp-eyebrow { color: #c4a874; font-size: 10px; letter-spacing: .22em; margin-bottom: 14px; }
.app .landing h2 { color: #e5eaf1; font-weight: 500; font-size: clamp(25px, 3vw, 36px); line-height: 1.4; letter-spacing: -.03em; text-shadow: none; }
.app .landing h2 em { color: #cbb489; font-style: normal; }
.app .landing .lp-sec-desc { color: #9ba8ba; font-size: 13px; line-height: 1.9; max-width: 650px; margin-top: 16px; }
.app .landing .lp-wide-shot { border: 1px solid #ffffff14; background: #111720; border-radius: 12px; overflow: hidden; box-shadow: none; margin-top: 28px; }
.app .landing .lp-wide-shot img { width: 100%; max-height: 400px; object-fit: cover; image-rendering: auto; }
.app .landing .lp-wide-shot figcaption { background: #121821; color: #a7b5c8; border-color: #ffffff0c; padding: 14px 20px; font-size: 11px; }
.app .landing .lp-maps { gap: 16px; margin-top: 20px; }
.app .landing .lp-map { border: 1px solid #ffffff12; border-radius: 9px; overflow: hidden; background: #121720; }
.app .landing .lp-map img { display: none; }
.app .landing .lp-map-meta { background: #121720; padding: 12px 16px; }
.app .landing .lp-map-meta b { color: #dbe3ee; font-size: 12px; font-weight: 500; }
.app .landing .lp-map-meta span { color: #8a99ae; font-size: 11px; }
.app .landing .lp-more { color: #8d9aae; font-size: 12px; margin-top: 18px; }
.app .landing .lp-more b { color: #c2ae89; font-weight: 400; }
.app .landing .lp-classes { gap: 20px; margin-top: 28px; }
.app .landing .lp-class { background: linear-gradient(160deg, #18202a, #10151e); border: 1px solid #ffffff14; border-radius: 12px; overflow: hidden; flex-direction: column; padding: 0; transition: border-color .2s, transform .2s; }
.app .landing .lp-class:hover { border-color: #c5a87680; transform: translateY(-4px); }
.app .landing .lp-class-art { width: 100%; height: 310px; background: radial-gradient(ellipse at 50% 80%, #a3793b22, transparent 75%); border: 0; border-radius: 0; }
.app .landing .lp-class-art img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; image-rendering: auto; mix-blend-mode: lighten; }
.app .landing .lp-class:nth-child(2) .lp-class-art { background: radial-gradient(ellipse at 50% 80%, #2b6fa833, transparent 75%); }
.app .landing .lp-class:nth-child(3) .lp-class-art { background: radial-gradient(ellipse at 50% 80%, #3f9a7222, transparent 75%); }
.app .landing .lp-class-meta { border-top: 1px solid #ffffff0e; padding: 24px; }
.app .landing .lp-class-meta h3 { color: #f0e3ca; font-size: 21px; font-weight: 500; }
.app .landing .lp-class-meta h3 small { display: inline; color: #8795a8; margin-left: 10px; font-size: 10px; letter-spacing: .18em; }
.app .landing .lp-class-meta p { color: #9aa8ba; font-size: 12px; line-height: 1.8; }
.app .landing .lp-class-meta .lp-class-tags { color: #ccb48b; margin: 8px 0; font-size: 11px; }
.app .landing .lp-loop { gap: 18px; margin-top: 28px; }
.app .landing .lp-loop-item { padding: 25px 20px; background: #121821; border: 1px solid #ffffff12; border-radius: 10px; gap: 16px; }
.app .landing .lp-loop-item b { color: #dee5ee; font-weight: 500; font-size: 14px; }
.app .landing .lp-loop-item p { color: #92a1b5; font-size: 12px; line-height: 1.8; margin-top: 7px; }
.app .landing .lp-loop-icon { background: #202936; border-color: #ffffff0e; border-radius: 9px; }
.app .landing .lp-loop-icon img { image-rendering: auto; }
.app .landing .lp-loop-no { color: #b9a17a; }
.app .landing .lp-progress { border: 1px solid #ffffff14; border-radius: 12px; overflow: hidden; margin-top: 26px; }
.app .landing .lp-progress-row { padding: 22px 24px; background: #121821; border-color: #ffffff0c; gap: 18px; }
.app .landing .lp-progress-txt b { color: #dbe3ee; font-weight: 500; font-size: 14px; }
.app .landing .lp-progress-txt p { color: #95a3b7; font-size: 12px; margin-top: 5px; }
.app .landing .lp-chip { border-color: #ffffff22; color: #a3afc1; font-size: 10px; padding: 4px 10px; }
.app .landing .lp-chip.live { background: #74ba9a0d; border-color: #74ba9a44; color: #9bd3ba; }
.app .landing .visual-gallery { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin-top: 28px; }
.concept-card { position: relative; min-width: 0; height: 390px; border-radius: 12px; overflow: hidden; border: 1px solid #ffffff18; background: #131a24; }
.concept-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.concept-card:hover > img { transform: scale(1.045); }
.concept-card figcaption { position: absolute; inset: auto 0 0; padding: 64px 22px 25px; background: linear-gradient(transparent, #080c13f2 55%); }
.concept-card figcaption > span { color: #c6b28c; font-size: 9px; letter-spacing: .12em; }
.concept-card h3 { font-size: 19px; font-weight: 500; color: #f0e9db; margin-top: 12px; }
.concept-card p { font-size: 11px; color: #adb9cb; margin-top: 8px; }
.visual-concept-note { color: #8996a9; font-size: 11px; margin-top: 18px; text-align: right; }
.app .landing .lp-join { padding-top: 110px; padding-bottom: 60px; }
.app .landing .lp-group { max-width: 720px; padding: 24px; background: #121821; border: 1px solid #ffffff14; border-radius: 10px; margin-top: 35px; }
.app .landing .lp-group-name { color: #d5ddea; }
.app .landing .lp-group-name b { color: #e0c794; }
.app .landing .lp-group-desc { color: #99a7b9; }
.app .landing .lp-group-actions .lp-btn { background: #1d2735; color: #d5ddea; border-color: #ffffff22; border-radius: 6px; }
.app .landing .lp-footer { max-width: 1168px; padding: 32px 20px 45px; border-color: #ffffff10; }
.app .landing .lp-footer p { color: #8997aa; }
.app .landing .lp-foot-brand { color: #c4ab7e; }
.visual-redundant { display: none !important; }
.lp-modal-mask { backdrop-filter: blur(10px); background: #03070dbc; }
.lp-modal-mask .lp-modal { background: #151c27; border: 1px solid #4c4a43; border-radius: 14px; padding: 30px 24px 24px; box-shadow: 0 35px 100px #0009; }
.lp-modal-mask .lp-modal h3 { color: #e8d1a6; font-size: 20px; margin-bottom: 20px; }
.lp-modal-mask .lp-tabs { gap: 0; padding: 4px; background: #0c121c; border-radius: 8px; margin-bottom: 20px; }
.lp-modal-mask .lp-tabs button { border: 0; background: transparent; border-radius: 5px; color: #99a9be; }
.lp-modal-mask .lp-tabs button.on { background: #273244; color: #f1d7a4; }
.lp-modal-mask .nameinput { padding: 12px; }
.lp-modal-mask .lp-modal-note { color: #99a7b9; font-size: 11px; }

/* Character selection, menu, panels and combat */
.statusbar { background: linear-gradient(180deg, #202735ed, #141b27ed); padding: 14px 18px; gap: 12px; box-shadow: inset 0 1px 0 #ffffff06; }
.class-badge { width: 50px; height: 50px; border-radius: 12px; background: #0b1018; }
.class-badge img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.status-name { font-size: 13px; margin-bottom: 7px; }
.status-identity { min-width: 0; }
.status-honors { margin-right: 5px; }
.status-player { font-weight: 600; }
.status-level { margin-left: 5px; white-space: nowrap; }
.status-exp { white-space: nowrap; flex: none; }
.status-res { color: #a2aec0; font-size: 11px; gap: 13px; }
.music-btn { background: #1c2635; border-color: #344052; }
.bar { border: 0; border-radius: 5px; background: #080d15; height: 15px; box-shadow: inset 0 0 0 1px #ffffff0a; }
.bar.hp > i, .bar.ehp > i { background: linear-gradient(90deg, #8a3044, #d15d72); }
.bar.mp > i { background: linear-gradient(90deg, #285689, #68a9e4); }
.bar.exp > i { background: linear-gradient(90deg, #887241, #d5bb87); }
.bar > span { font-size: 10px; text-shadow: 0 1px 3px #000; line-height: 1; }
.scenebar { padding: 10px 16px; background: #0f1520; color: #a9b6c9; }
.scenebar .mapname { color: #ddc89e; }
.socialbar { background: #141b27; border-color: #ffffff0d; padding: 10px 14px; }
.socialbar button { border-color: #ffffff12; background: #ffffff05; border-radius: 8px; }
.combat { background: #101721; border-color: #293445; flex: none; }
.scene { padding: 18px 18px 14px; min-height: 260px; align-items: flex-start; background-blend-mode: luminosity; }
.scene::before { background: linear-gradient(180deg, #11182755, #080d16cc), radial-gradient(ellipse at center, transparent 20%, #080d16aa); }
.scene::after { content: none; display: none; }
.fighter { width: 43%; gap: 7px; }
.fname { max-width: 100%; padding: 3px 10px; border: 0; background: #0b111cb8; color: #e1e8f2; border-radius: 5px; font-size: 11px; }
.hero-card .fname, .foe-card .fname { width: 100%; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding: 0 0 7px; background: transparent; white-space: normal; overflow: visible; text-align: center; }
.fighter-identity { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.fighter-level { color: #b2bdcf; background: #182435d9; padding: 2px 5px; font-size: 9px; border: 1px solid #65728b44; border-radius: 4px; white-space: nowrap; }
.fname .guild-tag { color: #a3b8d8; font-size: 10px; letter-spacing: .06em; line-height: 1.3; overflow-wrap: anywhere; }
.foe-card .fname::before { content: 'TARGET'; font-size: 8px; letter-spacing: .2em; color: #b29a94; }
.hero-card { --class-accent: #d0b27b; }
.hero-card:has(.mage-badge) { --class-accent: #86b9f2; }
.hero-card:has(.taoist-badge) { --class-accent: #8fd2b0; }
.hero-card .figure { border-color: color-mix(in srgb, var(--class-accent) 55%, #202a39); box-shadow: 0 8px 24px #0006, 0 0 0 4px #0c1420, 0 0 0 5px #ffffff0b; }
.portrait-frame { position: absolute; inset: 7px; pointer-events: none; z-index: 2; }
.portrait-frame i { position: absolute; width: 12px; height: 12px; border-color: var(--class-accent); border-style: solid; opacity: .8; }
.portrait-frame i:nth-child(1) { left: 0; top: 0; border-width: 1px 0 0 1px; border-radius: 3px 0 0; }
.portrait-frame i:nth-child(2) { right: 0; top: 0; border-width: 1px 1px 0 0; border-radius: 0 3px 0 0; }
.portrait-frame i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 1px 1px; border-radius: 0 0 0 3px; }
.portrait-frame i:nth-child(4) { right: 0; bottom: 0; border-width: 0 1px 1px 0; border-radius: 0 0 3px; }
.fighter > .bar { position: relative; }
.fighter > .bar::after { position: absolute; left: 6px; top: 0; line-height: 15px; color: #fff9; font-size: 8px; letter-spacing: .08em; }
.fighter > .hp::after, .fighter > .ehp::after { content: 'HP'; }
.fighter > .mp::after { content: 'MP'; }
.figure { width: min(100%, 180px); height: 168px; border-width: 1px; border-radius: 12px; background: radial-gradient(ellipse at bottom, #55739724, transparent 70%), #0e141f; box-shadow: 0 8px 22px #0006; }
.figure > img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.fighter > .bar { width: min(100%, 180px); }
.figure.foe { border-color: #5a4a52; background: #10151b99; }
.figure.foe > img { width: 82%; height: 82%; object-position: center; }
.figure:not(.foe) > .visual-portrait { mix-blend-mode: lighten; }
.respawn-line { white-space: normal; }
.boss-strip { background: #111925; padding: 10px 14px; }
.boss-btn { border-radius: 8px; background: #1b2330; border-color: #384352; }
.boss-btn.ready { background: #29271f; border-color: #8c764c; box-shadow: none; }
.boss-btn.ready .boss-go { background: #d1b77f; color: #181d25; }
.skillbar { background: #101721; gap: 10px; padding: 12px 16px; border-color: #263347; justify-content: center; }
.sk-cell { width: 42px; height: 42px; border-radius: 9px; border-color: #38475d; background: #0a101a; overflow: hidden; box-shadow: 0 4px 10px #0005; }
.sk-cell img { width: 100%; height: 100%; image-rendering: auto; object-fit: cover; }
.sk-cell.on { border-color: #e9d3a1; box-shadow: 0 0 0 2px #d6b87933, 0 0 22px #e4b97066; transform: translateY(-2px); }
.pots { padding: 7px 12px 12px; color: #9baac0; background: #101721; font-size: 10px; text-align: center; }
.battlelog { background: #0e141e; border-color: #293445; line-height: 1.85; }
.log-head { background: #151d2a; padding: 12px 16px; border-color: #293445; }
.dock { padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: #171e2af2; border-color: #ffffff12; gap: 6px; backdrop-filter: blur(18px); box-shadow: 0 -8px 30px #0002, inset 0 1px 0 #ffffff04; }
.dock button { padding: 9px 0 8px; font-size: 11px; letter-spacing: 0; color: #a6b4c9; border: 0; border-radius: 8px; min-width: 0; min-height: 53px; }
.dock button::before { content: ''; display: block; width: 19px; height: 19px; margin: 0 auto 5px; background: currentColor; mask: var(--nav-icon) center / contain no-repeat; }
.dock button:nth-child(1) { --nav-icon: url('/visual/ui/bag.svg'); }
.dock button:nth-child(2) { --nav-icon: url('/visual/ui/character.svg'); }
.dock button:nth-child(3) { --nav-icon: url('/visual/ui/enhance.svg'); }
.dock button:nth-child(4) { --nav-icon: url('/visual/ui/map.svg'); }
.dock button:nth-child(5) { --nav-icon: url('/visual/ui/world.svg'); }
.dock button:nth-child(6) { --nav-icon: url('/visual/ui/quest.svg'); }
.dock button:nth-child(7) { --nav-icon: url('/visual/ui/codex.svg'); }
.dock button:nth-child(8) { --nav-icon: url('/visual/ui/settings.svg'); }
.dock button.on { color: #f1dfba; background: #ffffff0b; box-shadow: inset 0 1px 0 #ffffff18; }
.sheet { background: #171f2b; border-color: #ffffff1c; box-shadow: 0 -12px 55px #0008; border-radius: 18px 18px 0 0; }
.sheet-head { padding: 17px 20px; letter-spacing: .015em; background: #ffffff03; border-color: #ffffff12; color: #edf1f7; }
.sheet-head button { font-size: 11px; border-color: #3b475a; padding: 6px 12px; }
.sheet-body { padding: 16px; scrollbar-width: thin; scrollbar-color: #4b5769 transparent; }
.sheet-body [style*="font-size: 9px"], .sheet-body [style*="font-size: 10px"] { font-size: 11px !important; }
.sheet-body [style*="font-size: 11px"] { font-size: 12px !important; }
.sheet-mask { background: #03070dbb; backdrop-filter: blur(5px); }
.item-tile, .pick-row, .tree-node { background: #0c121a66; border-color: #ffffff14; border-radius: 10px; }
.tree-node { padding: 10px !important; }
.tree-node img { width: 32px !important; height: 32px !important; border-radius: 6px; image-rendering: auto; }
.mapcard { border-color: #344155; border-radius: 10px; overflow: hidden; background-color: #121b29; }
.paperdoll { isolation: isolate; background: radial-gradient(ellipse at center, #2b3c5022, transparent 70%); }
.paperdoll::before { content: ''; position: absolute; z-index: -1; inset: 12% 25% 15%; background: var(--hero-portrait) center / contain no-repeat; opacity: .8; mask-image: linear-gradient(#000 65%, transparent); }
.paperdoll .pd-body { opacity: .12; }
.charselect, .create { padding: 36px 24px; }
.app.auth-mode { background: radial-gradient(ellipse at 50% 0%, #25374b55, transparent 65%), #0e141e; }
.charselect .cs-head h1, .create h1 { font-size: 27px; color: #e5d1aa; }
.charselect .cs-grid { gap: 18px; margin-top: 25px; }
.charselect .cs-card { border-color: #354154; background: #151d29; padding: 12px; border-radius: 12px; }
.charselect .cs-art { aspect-ratio: 4 / 5; background: radial-gradient(ellipse at bottom, #4f607a22, transparent), #0c131d; border: 0; }
.charselect .cs-art img { width: 100%; height: 100%; image-rendering: auto; object-fit: cover; object-position: top; }
.charselect .cs-name { font-size: 16px; color: #e2cba1; }
.charselect .cs-meta { color: #a7b3c5; font-size: 12px; }
.charselect .cs-hint { color: #9caabd; font-size: 12px; }
.classpick { gap: 15px; margin-top: 24px; }
.classpick .cp { background: #151e2c; padding: 0 0 15px; overflow: hidden; border-color: #354154; }
.classpick .cp.on { background: #222b36; border-color: #c6ab76; box-shadow: 0 0 0 1px #c6ab7633; }
.classpick .cp-hero { aspect-ratio: 4 / 5; margin: 0 0 14px; background: #0c121b; border: 0; border-radius: 0; }
.classpick .cp-hero .piximg { width: 100%; height: 100%; object-fit: cover; }
.classpick .cp-name { font-size: 17px; letter-spacing: .08em; }
.classpick .cp-desc { padding: 0 9px; font-size: 11px; }
.facepick { gap: 10px; }
.face { background: #151e2b; border-color: #344155; padding: 5px; border-radius: 9px; }
.face img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; image-rendering: auto; border-radius: 5px; background: #0e141f; }
.face.on { background: #282b2b; border-color: #c8af7b; box-shadow: 0 0 0 1px #c8af7b33; }
.face em { color: #acb9ca; font-size: 10px; }
.big-card { background: #141d2ae8; border-color: #d4ba8280; border-radius: 14px; }
.toast, .hint-card { background: #1b2636f2; border-color: #4b596c; border-radius: 10px; }
#skltip { background: #151e2d !important; border-color: #736547 !important; border-radius: 12px !important; color: #dce5f1 !important; }

/* Fine event-driven effects: thin vector geometry and restrained light. */
.fx::before, .fx::after { content: none !important; display: none !important; }
.fx-name { top: 10px; color: #e4d9c5; font: 10px/1.6 var(--ui-font); letter-spacing: .06em; text-shadow: 0 1px 4px #000; }
.fx[data-class="taoist"] { --c: #e8d3a0 !important; }
.fx.visual-lightning { --c: #a1d6f5 !important; }
.fx.visual-ice { --c: #b5dfed !important; }
.fx.visual-fire { --c: #e8b280 !important; }
.fx.visual-void { --c: #c7afe9 !important; }
.fx-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c, #e1cba2); pointer-events: none; overflow: visible; animation: fineFade .74s ease-out both; }
.fx-line, .fx-ring { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 2px currentColor); }
.fx-secondary { opacity: .3; stroke-width: .7; }
.fx-line.fx-sweep { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: fineSweep .58s cubic-bezier(.2,.7,.2,1) both; }
.fx-line.fx-trail { stroke-dasharray: 160 1000; stroke-dashoffset: 1000; animation: fineTrace .56s ease-in both; }
.fx-line.fx-lightning-main { stroke: #e9f8ff; stroke-width: 1.7; animation: fineFlicker .62s both; }
.fx-line.fx-lightning-branch { stroke-width: .65; opacity: .55; animation: fineFlicker .54s .04s both; }
.fx-line.fx-rising { stroke-dasharray: 300 1000; stroke-dashoffset: 500; animation: fineRise .7s ease-out both; }
.fx-line.fx-sigil, .fx-line.fx-crystal { animation: fineGeometry .72s ease-out both; }
.fx-ring { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fineRing .6s .14s ease-out both; }
.fx-ring.fx-secondary { animation-delay: .23s; }
.fx-soft-impact { animation: fineGlow .68s ease-out both; }
.visual-sparks { position: absolute; left: 77%; top: 51%; width: 0; height: 0; }
.fx.heal .visual-sparks, .fx.buff .visual-sparks, .fx.summon .visual-sparks { left: 23%; }
.visual-sparks i { position: absolute; width: 2px; height: 2px; background: #f4ead3; border-radius: 50%; box-shadow: 0 0 3px var(--c); animation: fineSpark .64s var(--delay) ease-out both; }
.visual-strike { position: absolute; inset: 0; z-index: 4; width: auto; height: auto; border: 0; background: none; filter: none; transform: none; animation: none; pointer-events: none; --c: #ddc6a0; }
.visual-strike .fx-svg { animation-duration: .48s; }
.visual-strike .fx-line { stroke-width: 1; }
.visual-strike .fx-soft-impact, .visual-strike .fx-ring { display: none; }
.visual-strike.from-foe { left: 0; --c: #d7a1a5; filter: none; transform: none; border: 0; }
.visual-strike.from-foe .fx-svg { transform: scaleX(-1); }
@keyframes fineFade { 0% { opacity: 0; } 12%, 55% { opacity: .9; } 100% { opacity: 0; } }
@keyframes fineSweep { 0% { stroke-dashoffset: 1000; opacity: 0; } 24% { opacity: 1; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1000; opacity: 0; } }
@keyframes fineTrace { 0% { stroke-dashoffset: 1000; opacity: 0; } 18%, 70% { opacity: .9; } 100% { stroke-dashoffset: -220; opacity: 0; } }
@keyframes fineFlicker { 0%, 10% { opacity: 0; } 14% { opacity: 1; } 22% { opacity: .3; } 27%, 48% { opacity: .9; } 100% { opacity: 0; } }
@keyframes fineRise { 0% { stroke-dashoffset: 500; opacity: 0; } 30% { opacity: .8; } 100% { stroke-dashoffset: -300; opacity: 0; } }
@keyframes fineGeometry { 0% { opacity: 0; } 30% { opacity: .85; } 100% { opacity: 0; } }
@keyframes fineRing { 0% { opacity: 0; scale: .65; } 30% { opacity: .5; } 100% { opacity: 0; scale: 1.25; } }
@keyframes fineGlow { 0% { opacity: 0; } 35% { opacity: .7; } 100% { opacity: 0; } }
@keyframes fineSpark { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0); } 25% { opacity: .8; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(-36px); } }
@keyframes lungeR { 40% { transform: translateX(12px) rotate(.4deg); } 100% { transform: none; } }
@keyframes lungeL { 40% { transform: translateX(-12px) rotate(-.4deg); } 100% { transform: none; } }
@keyframes hitflash { 0% { filter: brightness(1.35) saturate(1.08); } 100% { filter: none; } }
.float { font-size: 14px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.float.crit { font-size: 19px; color: #e6d2ad; }

@media (min-width: 920px) {
  .app:not(.lp-mode):not(.auth-mode) { max-width: 1280px; grid-template-columns: minmax(540px, 1.1fr) minmax(360px, 1fr); }
  .app.auth-mode { max-width: 960px; min-height: 100dvh; }
  .charselect .cs-grid { grid-template-columns: repeat(3, 1fr); }
  .charselect .cs-art { max-height: 320px; }
  .classpick .cp-hero { max-height: 280px; }
  .create { max-width: 840px; width: 100%; margin: auto; }
  .create .facepick { grid-template-columns: repeat(10, 1fr); }
  .scene { min-height: 285px; padding: 22px 35px 16px; }
  .app:not(.panel-open) .leftcol .combat { flex: none; min-height: 0; display: flex; flex-direction: column; }
  .app:not(.panel-open) .panel-host { display: none; }
  .app:not(.panel-open) .scene { flex: none; height: clamp(320px, 42vh, 430px); min-height: 0; align-items: center; padding: 18px 26px; }
  .app:not(.panel-open) .fighter { width: 45%; gap: 12px; }
  .app:not(.panel-open) .foe-card { padding-bottom: 30px; }
  .app:not(.panel-open) .figure { width: min(100%, 220px); height: clamp(180px, 24vh, 250px); border-radius: 16px; }
  .app:not(.panel-open) .hero-card .figure > img { object-fit: cover; object-position: top; }
  .app:not(.panel-open) .fighter > .bar { width: min(100%, 220px); height: 16px; }
  .app:not(.panel-open) .fighter > .bar::after { line-height: 16px; }
  .app:not(.panel-open) .fighter-identity { font-size: 16px; gap: 9px; }
  .app:not(.panel-open) .fighter-level { font-size: 10px; }
  .app:not(.panel-open) .fname .guild-tag { font-size: 12px; }
  .app:not(.panel-open) .sk-cell { width: 44px; height: 44px; }
  .app:not(.panel-open) .skillbar { padding: 10px 16px; }
  .app:not(.panel-open) .pots { font-size: 11px; padding-bottom: 16px; }
  .figure { height: 190px; width: min(100%, 195px); }
  .fighter > .bar { width: min(100%, 195px); }
  .dock button { font-size: 12px; padding: 9px 0; letter-spacing: .05em; }
  .panel-host .sheet { border-top: 1px solid #5b5545; border-radius: 0; background: #151d29; }
  .sheet { border-radius: 0; border-left: 1px solid #73654b; }
  .battlelog { font-size: 12px; }
}
@media (max-width: 919px) {
  .app:not(.lp-mode):not(.auth-mode) { height: 100dvh; max-height: 100dvh; overflow: hidden; }
  .app:not(.lp-mode):not(.auth-mode) > .leftcol { flex: none; }
  .battlelog { min-height: 0; flex: 1; }
  .statusbar { flex: none; padding: 8px 10px; gap: 8px; }
  .class-badge { width: 38px; height: 38px; border-radius: 9px; }
  .status-main { min-width: 0; }
  .status-name { display: block; margin-bottom: 3px; line-height: 1.3; }
  .status-honors { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; line-height: 15px; margin: 0; }
  .status-honors .guild-tag { font-size: 9px; }
  .status-player { font-size: 12px; }
  .status-level { font-size: 9px; margin-left: 4px; }
  .status-exp { font-size: 9px; line-height: 13px; }
  .status-res { flex-direction: column; align-items: flex-start; gap: 0; font-size: 10px; line-height: 1.6; }
  .music-btn { width: 25px; height: 25px; font-size: 12px; }
  .scenebar { flex: none; padding: 7px 10px; font-size: 10px; }
  .scenebar .mapname { font-size: 11px; }
  .socialbar { flex: none; padding: 6px 8px; }
  .socialbar .sb-btn { min-width: 43px; padding: 3px 5px; }
  .sb-t { font-size: 10px; }
  .sb-ico svg { width: 16px; height: 16px; }
  .scene { height: clamp(190px, 32dvh, 235px); min-height: 0; padding: 8px 12px; }
  .scene::after { font-size: 7px; top: 5px; }
  .fighter { gap: 4px; }
  .figure { width: min(100%, 145px); height: clamp(96px, 17dvh, 136px); border-radius: 10px; }
  .hero-card .fname, .foe-card .fname { min-height: 32px; padding-bottom: 4px; }
  .fighter-identity { font-size: 11px; gap: 4px; }
  .fname .guild-tag { font-size: 9px; }
  .fighter > .bar { width: min(100%, 145px); height: 12px; }
  .fighter > .bar::after { line-height: 12px; font-size: 7px; }
  .fighter > .bar > span { font-size: 9px; }
  .skillbar { flex: none; min-height: 46px; padding: 7px 12px; gap: 6px; justify-content: flex-start; overflow-x: auto; }
  .sk-cell { flex: none; width: 32px; height: 32px; border-radius: 7px; }
  .pots { font-size: 9px; padding: 3px 8px 7px; }
  .boss-strip { padding: 5px 10px; }
  .boss-btn { padding: 6px 8px; }
  .dock { flex: none; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); gap: 3px; }
  .dock button { min-height: 44px; padding: 5px 0; font-size: 10px; }
  .dock button::before { width: 17px; height: 17px; margin-bottom: 3px; }
  .app .landing .lp-top { padding: 14px 20px; gap: 10px; }
  .app .landing .lp-name { font-size: 23px; }
  .app .landing .lp-beta { display: none; }
  .app .landing .lp-mini { font-size: 11px; padding: 8px 14px; }
  .app .landing .lp-hero { min-height: auto; padding: 60px 24px 0; background: linear-gradient(180deg, #0b0e1477, #0b0e14 70%), url('/visual/world/citadel.webp') center top / auto 600px no-repeat; }
  .app .landing .lp-hero-copy { width: 100%; max-width: 560px; margin: auto; }
  .app .landing .lp-hero h1 { font-size: clamp(33px, 7.3vw, 52px); }
  .app .landing .lp-desc { font-size: 13px; max-width: 500px; }
  .app .landing .lp-brandline { font-size: 9px; letter-spacing: .18em; margin-bottom: 18px; }
  .app .landing .lp-cta { gap: 9px; }
  .app .landing .lp-btn-main { font-size: 13px; padding: 11px 20px; }
  .app .landing .lp-btn { font-size: 11px; padding: 11px 13px; }
  .lp-hero-art { position: relative; right: auto; bottom: auto; width: min(100%, 560px); height: 340px; margin: 20px auto 0; }
  .hero-art-caption { bottom: 18px; }
  .app .landing .lp-section { padding: 58px 24px 0; }
  .app .landing .lp-sec-desc { font-size: 12px; }
  .app .landing .lp-maps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app .landing .lp-map img { height: 110px; }
  .app .landing .lp-map-meta { padding: 10px; }
  .app .landing .lp-map-meta b { font-size: 11px; }
  .app .landing .lp-map-meta span { font-size: 9px; }
  .app .landing .lp-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .app .landing .lp-class-art { height: 165px; }
  .app .landing .lp-class-meta { padding: 14px 10px; }
  .app .landing .lp-class-meta h3 { font-size: 17px; }
  .app .landing .lp-class-meta h3 small { display: block; font-size: 8px; margin: 2px 0 0; }
  .app .landing .lp-class-meta p { font-size: 10px; }
  .app .landing .lp-class-meta .lp-class-tags { font-size: 9px; }
  .app .landing .lp-loop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .app .landing .lp-loop-item { flex-direction: column; padding: 20px 15px; gap: 12px; }
  .app .landing .lp-loop-item p { font-size: 11px; }
  .app .landing .lp-progress-row { padding: 18px 14px; gap: 10px; }
  .app .landing .lp-progress-txt b { font-size: 13px; }
  .app .landing .lp-progress-txt p { font-size: 10px; }
  .app .landing .lp-chip { font-size: 9px; padding: 3px 7px; }
  .app .landing .visual-gallery { grid-template-columns: 1fr; gap: 16px; }
  .concept-card { height: 295px; }
  .concept-card figcaption { padding: 60px 22px 24px; }
  .visual-concept-note { font-size: 10px; text-align: left; }
  .app .landing .lp-join { padding-top: 70px; }
  .app .landing .lp-group { padding: 20px; }
  .app .landing .lp-group-actions { flex-wrap: wrap; }
  .app .landing .lp-marquee-track span { font-size: 9px; letter-spacing: .07em; }
}
@media (min-width: 920px) and (max-height: 800px) {
  .app:not(.panel-open) .scene { height: clamp(260px, 38vh, 320px); min-height: 0; padding: 18px 26px; }
  .app:not(.panel-open) .figure { height: clamp(150px, 22vh, 200px); }
  .app:not(.panel-open) .fighter { gap: 8px; }
  .app:not(.panel-open) .skillbar { padding: 10px; }
}
@media (max-width: 370px) {
  .socialbar { padding-left: 8px; padding-right: 8px; gap: 4px; }
  .socialbar .sb-live { display: none; }
  .dock { gap: 0; padding-left: 4px; padding-right: 4px; }
  .dock button { font-size: 10px; }
  .statusbar { padding: 9px; gap: 8px; }
  .status-res { font-size: 10px; gap: 7px; }
  .classpick { gap: 7px; }
  .facepick { gap: 5px; }
  .app .landing .lp-hero { padding-left: 18px; padding-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .visual-sparks { display: none; }
  .fx-svg { display: none; }
}

/* Haven release: quiet surfaces, rounded controls and clear visual hierarchy. */
body { background: radial-gradient(ellipse at 50% 0%,#202a3d 0%,#0a0e15 58%); }
body button { border-radius:12px; border:1px solid #d7e1f01c; background:linear-gradient(180deg,#ffffff0c,#ffffff04); box-shadow:inset 0 1px #ffffff06; font-weight:500; }
body button.primary { color:#181c24; background:linear-gradient(150deg,#ead8b5,#c9b58f); border-color:#d9c7a4; box-shadow:inset 0 1px #ffffff38,0 4px 15px #0002; }
body button.primary:hover:not(:disabled) { background:linear-gradient(150deg,#f3e6cd,#d9c7a2); color:#131922; }
body button:disabled { opacity:.38; box-shadow:none; }
body input,body select,body textarea,body .nameinput { border-radius:12px; border-color:#d8e4f01c; background:#090f1880; box-shadow:inset 0 1px 4px #0003; }
body .statusbar { background:linear-gradient(130deg,#1f2939eb,#121a27ef); border-color:#d6e6ff10; box-shadow:inset 0 1px #ffffff06; }
body .scenebar,body .socialbar { background:#121a26d9; border-color:#d6e6ff0c; }
body .dock { background:linear-gradient(180deg,#253044e8,#141d2bf5); backdrop-filter:blur(24px); border-top:1px solid #cddcff18; border-radius:20px 20px 0 0; box-shadow:0 -8px 32px #0002; }
body .dock button { border-radius:13px; border-color:transparent; background:transparent; box-shadow:none; }
body .dock button.on { background:#ffffff0d; border-color:#ffffff10; color:#efdab4; }
body .sheet { border-radius:24px 24px 0 0; background:linear-gradient(150deg,#202b3bf7,#101925fa); border-color:#d4e4ff1c; box-shadow:0 -14px 65px #0007,inset 0 1px #ffffff10; backdrop-filter:blur(25px); }
body .sheet-head { border-color:#ffffff0f; padding:14px 16px; background:#ffffff03; }
body .sheet-head > span { font-weight:600; font-size:14px; letter-spacing:.02em; }
body .sheet-mask { background:#04081180; backdrop-filter:blur(6px); }
body .sheet-body { padding:16px; }
body .item-tile { border-radius:14px; border-color:#c3d4ed14; background:linear-gradient(150deg,#ffffff08,#ffffff02); box-shadow:inset 0 1px #ffffff04; }
body .item-tile.sel { background:#d8bd8e16; border-color:#dac19480; box-shadow:0 0 0 2px #d8bd8e0d; }
body .item-detail,body .enh-hero { border-radius:18px; border-color:#d8c8a32b; background:linear-gradient(145deg,#2b3544bb,#18212ee8); padding:15px; }
body .affix-chip { border-radius:7px; background:#a9c9ff0a; border-color:#b7d7ff1a; }
body .statlist { border-radius:16px; padding:12px; background:#ffffff04; border:1px solid #ffffff0d; }
body .statlist > div { border-bottom-color:#ffffff08; padding:6px 2px; }
body .rankrow { border-bottom:1px solid #ffffff0d; padding:10px 2px; }
body .town { border-radius:24px; border-color:#c3d5f01c; background:radial-gradient(at 90% 0%,#26354b70,transparent 65%),#111b29; box-shadow:inset 0 1px #ffffff06; }
body .town-hero { min-height:180px; padding-top:30px; padding-bottom:24px; }
body .town-hero h2 { font-weight:550; font-size:28px; letter-spacing:-.04em; color:#f0f2f5; }
body .town-services { gap:10px; padding:16px; }
body .town-services button { border-radius:18px; border-color:#c3d6ee18; background:linear-gradient(135deg,#3d526233,#1d2a3d66); padding:16px; }
body .town-services button:hover { border-color:#d3bd9250; transform:translateY(-1px); }
body .town-services strong { color:#e2e8f0; font-weight:550; }
body .town-services span { line-height:1.6; color:#9aaabd; }
body .town-season { border-radius:18px; border-color:#d7ba8524; background:radial-gradient(at 0% 0%,#8b664633,transparent 70%),#192231; margin:0 16px 16px; padding:16px; }
body .town-departure { background:linear-gradient(100deg,#d9c2940b,#111c2a); border:1px solid #c8d5e51a; border-radius:16px; padding:13px; margin:0 16px 16px; }
body .toast { border-radius:16px; backdrop-filter:blur(22px); background:#182435f0; border-color:#d5e4fa26; box-shadow:0 12px 35px #0005; }
@media(min-width:920px) {
  body .app:not(.lp-mode):not(.auth-mode) { border:1px solid #c5d5ec13; box-shadow:0 0 80px #0005; }
  body .panel-host .sheet { background:linear-gradient(150deg,#202b3bf7,#101925fa); border-radius:20px 20px 0 0; border-top:1px solid #d4e4ff20; }
  body .town-mode.panel-open .town { display:none; }
  body .town-mode.panel-open .panel-host { flex:1; }
}
@media(max-width:480px) {
  body .town-hero { min-height:150px; padding:22px 18px; }
  body .town-hero h2 { font-size:24px; }
  body .town-services { padding:12px; gap:8px; }
  body .town-services button { padding:12px; min-height:106px; }
  body .town-services img { margin-bottom:8px; }
  body .town-season { margin:0 12px 12px; padding:13px; }
  body .town-departure { margin:0 12px 12px; padding:10px; }
  body .sheet-body { padding:13px; }
  body .enh-hero { gap:8px; }
  body .enh-side { width:56px; }
  body .enh-side img { max-width:54px; max-height:54px; }
}
@media(prefers-reduced-motion:reduce) { body .town-services button:hover { transform:none; } }
