.title-page {
  --title-ink: #f3edff;
  --title-muted: #b9aecb;
  --title-line: #d8c8ff2b;
  --title-panel: #1c142a;
  --title-accent: #c6aaff;
  --title-control: #100b1b;
  padding-bottom: 80px;
  color: var(--title-ink);
}
html[data-faction="elyos"] .title-page {
  --title-ink: #1b354b;
  --title-muted: #526d80;
  --title-line: #4984ad48;
  --title-panel: #f8fcff;
  --title-accent: #247eae;
  --title-control: #fff;
}
.title-page [hidden] { display:none !important; }
.title-breadcrumb { display:flex; flex-wrap:wrap; gap:10px; align-items:center; padding:20px 0 15px; color:var(--title-muted); font-size:12px; overflow-wrap:anywhere; }
.title-breadcrumb a,.title-back { color:var(--title-accent); text-decoration:none; }
.title-breadcrumb a:hover,.title-back:hover { text-decoration:underline; }
.title-hero { position:relative; display:flex; align-items:center; min-height:235px; overflow:hidden; isolation:isolate; border:1px solid var(--title-line); border-radius:22px; background:#181021; }
.title-hero-art { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#0e0a18 0%,#0e0a18ed 44%,#0e0a1880 72%,#0e0a1820),url('/img/art/w/tower_of_aion_night-1600.webp') 75% 48%/cover no-repeat; }
.title-hero-copy { max-width:750px; padding:28px 5%; }
.title-hero h1 { margin:0; font:600 clamp(35px,4.3vw,56px)/1.1 Unbounded,Onest,sans-serif; letter-spacing:-.06em; }
.title-hero .eyebrow { margin-bottom:9px; }
.title-hero-copy > p:not(.eyebrow) { max-width:575px; margin:14px 0 17px; color:var(--title-muted); font-size:14px; line-height:1.6; }
.title-menu-art { position:absolute; right:28px; bottom:22px; opacity:.85; object-fit:contain; }
.title-total { display:inline-block; padding:5px 10px; border:1px solid var(--title-line); border-radius:8px; background:color-mix(in srgb,var(--title-accent) 13%,transparent); font-size:12px; }
html[data-faction="elyos"] .title-hero { background:#e5eff8; }
html[data-faction="elyos"] .title-hero-art { background:linear-gradient(90deg,#f4faff 0%,#f4faffee 43%,#f4faff8c 73%,#f4faff20),url('/img/art/w/temple_light-1600.webp') 76% 45%/cover no-repeat; }
.title-coverage { margin:14px 0 27px; padding:12px 17px; border:1px solid var(--title-line); border-radius:11px; background:var(--title-panel); color:var(--title-muted); font-size:12px; line-height:1.65; }
.title-coverage summary { cursor:pointer; color:var(--title-accent); font-weight:700; }
.title-coverage p { margin:10px 0 0; max-width:1040px; }
.title-coverage code { overflow-wrap:anywhere; }
.title-controls { display:flex; align-items:end; gap:12px; padding:17px; border:1px solid var(--title-line); border-radius:14px; background:var(--title-panel); }
.title-controls label { display:flex; flex:1; flex-direction:column; gap:7px; min-width:0; color:var(--title-muted); font-size:12px; font-weight:700; }
.title-controls label:nth-child(2) { flex:0 0 min(265px,31%); }
.title-controls input,.title-controls select { width:100%; min-width:0; height:44px; padding:8px 12px; border:1px solid var(--title-line); border-radius:9px; background:var(--title-control); color:var(--title-ink); font:500 13px Onest,sans-serif; }
.title-controls input::placeholder { color:var(--title-muted); }
.title-controls :disabled { opacity:.6; cursor:wait; }
.title-controls button,.title-retry { min-height:44px; padding:9px 15px; border:1px solid var(--title-line); border-radius:9px; background:var(--title-control); color:var(--title-accent); font-size:12px; font-weight:700; }
.title-controls button:hover,.title-retry:hover { border-color:var(--title-accent); }
.title-list-heading { display:flex; justify-content:space-between; align-items:baseline; gap:18px; margin:26px 0 14px; }
.title-list-heading h2 { margin:0; font:550 clamp(19px,2.2vw,27px)/1.3 Unbounded,Onest,sans-serif; letter-spacing:-.04em; }
.title-list-heading p { margin:0; color:var(--title-muted); font-size:12px; text-align:right; }
.title-list { display:grid; gap:9px; }
.title-row { --quality:var(--title-accent); display:grid; grid-template-columns:minmax(180px,1fr) 185px 160px 98px; gap:22px; align-items:center; width:100%; min-height:102px; padding:19px 24px; border:1px solid var(--title-line); border-left:3px solid var(--quality); border-radius:13px; background:var(--title-panel); color:var(--title-ink); text-align:left; transition:background .16s,border-color .16s; }
.title-row:hover { border-color:var(--quality); background:color-mix(in srgb,var(--title-panel) 93%,var(--title-accent)); }
.title-row-copy { min-width:0; }
.title-row-copy strong { display:block; font-size:18px; line-height:1.35; font-weight:750; overflow-wrap:anywhere; }
.title-row-copy small { display:block; margin-top:6px; color:var(--title-muted); font-size:11px; }
.title-row-effects { display:grid; gap:4px; color:var(--title-muted); font-size:12px; }
.title-row-action { color:var(--title-accent); font-size:12px; font-weight:750; white-space:nowrap; }
.title-grade { --quality:var(--title-accent); display:inline-flex; gap:7px; align-items:center; width:fit-content; max-width:100%; padding:3px 9px; border:1px solid color-mix(in srgb,var(--quality) 52%,transparent); border-radius:7px; color:var(--title-ink); font-size:11px; overflow-wrap:anywhere; }
.title-grade::before { content:""; flex:none; width:6px; height:6px; border-radius:50%; background:var(--quality); }
[data-grade="Common"] { --quality:#a7adb8; }
[data-grade="Rare"] { --quality:#5fcb6a; }
[data-grade="Legend"] { --quality:#5c8dff; }
[data-grade="Unique"] { --quality:#f2c14e; }
[data-grade="Epic"] { --quality:#ff8a4c; }
[data-grade="Special"] { --quality:#e174d9; }
.title-empty { margin:0; padding:24px; border:1px dashed var(--title-line); border-radius:13px; color:var(--title-muted); font-size:14px; }
.title-preview { --title-ink:#f3edff; --title-muted:#b9aecb; --title-line:#d8c8ff2b; --title-panel:#1c142a; --title-accent:#c6aaff; --title-control:#100b1b; width:min(810px,calc(100vw - 36px)); max-height:calc(100dvh - 48px); padding:0; border:1px solid var(--title-line); border-radius:20px; background:var(--title-panel); color:var(--title-ink); box-shadow:0 24px 100px #0008; }
html[data-faction="elyos"] .title-preview { --title-ink:#1b354b; --title-muted:#526d80; --title-line:#4984ad48; --title-panel:#f8fcff; --title-accent:#247eae; --title-control:#fff; }
.title-preview::backdrop { background:#07040db0; backdrop-filter:blur(5px); }
.title-preview-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 22px; border-bottom:1px solid var(--title-line); color:var(--title-muted); font-size:12px; }
.title-preview-toolbar button { min-height:34px; padding:5px 9px; border:1px solid var(--title-line); border-radius:7px; background:var(--title-control); color:var(--title-ink); font-size:12px; }
.title-card { min-width:0; padding:26px; }
.title-card-heading { margin-bottom:24px; }
.title-card-heading .eyebrow { margin-bottom:10px; }
.title-card-heading h1,.title-card-heading h2 { margin:0 0 15px; font:560 clamp(23px,3vw,36px)/1.2 Unbounded,Onest,sans-serif; letter-spacing:-.04em; overflow-wrap:anywhere; }
.title-effect-groups { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.title-effects { min-width:0; padding:17px 19px; border:1px solid var(--title-line); border-radius:12px; background:var(--title-control); }
.title-effects h3 { margin:0 0 3px; color:var(--title-ink); font-size:15px; font-weight:750; }
.title-source-field { color:var(--title-muted); font-size:10px; overflow-wrap:anywhere; }
.title-effects ul { display:grid; gap:8px; margin:15px 0 0; padding:0; list-style:none; }
.title-effects li { padding-top:8px; border-top:1px solid var(--title-line); color:var(--title-ink); font-size:14px; overflow-wrap:anywhere; }
.title-effect-note,.title-preview-source,.title-source-note,.title-no-effects { margin:13px 0 0; color:var(--title-muted); font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.title-preview-source { margin-top:18px; }
.title-card-actions { margin-top:24px; }
.title-primary { display:inline-flex; align-items:center; justify-content:center; min-height:43px; padding:9px 16px; border:1px solid var(--title-line); border-radius:10px; background:color-mix(in srgb,var(--title-accent) 16%,transparent); color:var(--title-accent); text-decoration:none; font-size:13px; font-weight:750; }
.title-primary:hover { border-color:var(--title-accent); }
.title-detail { max-width:1040px; margin:13px auto 0; border:1px solid var(--title-line); border-radius:19px; background:var(--title-panel); }
.title-detail > h1,.title-detail > p,.title-detail > a { margin:24px; }
.title-conflict { padding:13px 16px; border-left:3px solid #c99858; border-radius:6px; background:#c9985814; color:var(--title-ink); font-size:13px; line-height:1.6; }
.title-source,.title-history { margin-top:29px; padding-top:25px; border-top:1px solid var(--title-line); }
.title-source h2,.title-history h2 { margin:0 0 17px; font-size:19px; font-weight:750; }
.title-source > .title-back { display:inline-block; margin-top:13px; font-size:12px; }
.title-facts { display:grid; gap:0; margin:0; font-size:12px; }
.title-facts > div { display:grid; grid-template-columns:minmax(150px,31%) 1fr; gap:18px; padding:10px 0; border-bottom:1px solid var(--title-line); }
.title-facts dt { color:var(--title-muted); }
.title-facts dd { margin:0; color:var(--title-ink); overflow-wrap:anywhere; }
.title-history-version { margin-top:10px; overflow:hidden; border:1px solid var(--title-line); border-radius:11px; }
.title-history-version summary { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:9px 15px; padding:15px 17px; cursor:pointer; }
.title-history-version summary strong { font-size:13px; overflow-wrap:anywhere; }
.title-history-version summary span { color:var(--title-muted); font-size:11px; }
.title-history-body { padding:0 17px 17px; border-top:1px solid var(--title-line); }
.title-history-body > .title-grade { margin:15px 0; }
.title-history-body .title-facts { margin-top:17px; }
.title-retry { margin:18px 0; }
@media (max-width:900px) { .title-row { grid-template-columns:minmax(180px,1fr) 180px 120px; gap:17px; padding:18px; } .title-row-action { grid-column:1/-1; font-size:11px; } }
@media (max-width:600px) {
  .topbar nav { overflow-x:auto; justify-content:start; gap:18px; padding-bottom:6px; }
  .topbar nav a { flex:none; }
  .topbar .site-theme-switch { margin-left:0; }
  .title-hero { min-height:236px; border-radius:17px; }
  .title-hero-copy { padding:23px; }
  .title-hero-copy > p:not(.eyebrow) { font-size:13px; }
  .title-menu-art { display:none; }
  .title-controls { flex-direction:column; align-items:stretch; padding:14px; }
  .title-controls label:nth-child(2) { flex:1; }
  .title-list-heading { flex-direction:column; gap:7px; align-items:start; }
  .title-list-heading p { text-align:left; }
  .title-row { grid-template-columns:1fr auto; gap:13px; padding:17px; }
  .title-row-copy { grid-column:1/-1; }
  .title-row-copy strong { font-size:17px; }
  .title-row-effects { grid-column:1/-1; grid-row:3; display:flex; flex-wrap:wrap; gap:4px 17px; font-size:11px; }
  .title-row-action { grid-column:2; grid-row:2; }
  .title-preview { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); border-radius:15px; }
  .title-preview-toolbar { padding:11px 16px; }
  .title-card { padding:20px 16px; }
  .title-effect-groups { grid-template-columns:1fr; gap:10px; }
  .title-effects { padding:14px 16px; }
  .title-facts > div { grid-template-columns:1fr; gap:3px; }
  .title-history-version summary { padding:13px; }
  .title-history-body { padding:0 13px 13px; }
}
@media (prefers-reduced-motion:reduce) { .title-row { transition:none; } }
