/* WoW Studio - white background, blue-to-purple theme */
:root {
  --ink: #0f172a; --ink2: #334155; --mut: #64748b; --line: #e2e8f0; --soft: #f8fafc; --soft2: #f1f5f9;
  --a: #4f46e5; --b: #7c3aed; --c: #0ea5e9;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --green: #16a34a; --red: #dc2626; --amber: #d97706;
  --radius: 18px; --shadow: 0 12px 32px -20px rgba(79, 70, 229, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #fff; color: var(--ink); font: 15px/1.5 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  background-image: radial-gradient(900px 420px at 88% -8%, rgba(124, 58, 237, .09), transparent), radial-gradient(800px 380px at 0% 0%, rgba(79, 70, 229, .09), transparent);
  background-repeat: no-repeat;
}
a { color: var(--a); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: "Sora", "Manrope", system-ui, sans-serif; margin: 0; letter-spacing: -.01em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid rgba(99, 102, 241, .6); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--mut); } .small { font-size: .82rem; } .pad { padding: 18px 4px; }
.r { text-align: right; } .h3 { font-size: .95rem; margin: 18px 0 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* boot / loading */
.boot, .loading { display: grid; place-items: center; gap: 10px; padding: 70px 0; color: var(--mut); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #e0e7ff; border-top-color: var(--a); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none !important; flex-shrink: 0; }
.brand b { display: block; font: 800 1.05rem Sora, sans-serif; line-height: 1.1; }
.brand .bw1 { color: #000; }
.brand .bw2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand small { display: block; font-size: .66rem; color: var(--mut); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.logo img { display: block; width: 28px; height: 28px; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .8); }
.top-nav { border-top: 1px solid var(--line); }
.top-nav-in { max-width: 1180px; margin: 0 auto; padding: 6px 18px; display: flex; gap: 4px; flex-wrap: wrap; }
.top-in .bell { margin-left: auto; }
.theme-b { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink2); cursor: pointer; }
.theme-b:hover { background: #eef2ff; color: var(--a); }
.top-nav a { display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; color: var(--ink2); font-weight: 700; white-space: nowrap; }
.top-nav a:hover { background: var(--soft2); text-decoration: none; }
.top-nav a.on { background: linear-gradient(135deg, #eef2ff, #f5f3ff); color: var(--a); box-shadow: inset 0 0 0 1px #c7d2fe; }
.admin-l { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink2); }
.admin-l.on, .admin-l:hover { background: #eef2ff; color: var(--a); text-decoration: none; }
@media (max-width: 760px) {
  .brand small { display: none; } .top-in { gap: 8px; padding: 8px 12px; }
  .top-nav-in { padding: 6px 10px; gap: 2px; } .top-nav a { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 560px) { .top-nav a span { display: none; } .top-nav a.on span { display: inline; } .top-nav a { padding: 9px 12px; } }
@media (max-width: 420px) { .brand > span:last-child { display: none; } }

/* layout */
main { min-height: 70vh; }
.page { max-width: 1180px; margin: 0 auto; padding: 22px 18px 50px; display: grid; gap: 18px; }
.page.narrow { max-width: 480px; padding-top: 50px; }
.hero { text-align: center; padding: 28px 0 6px; }
.hero.compact { padding: 14px 0 0; text-align: left; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; line-height: 1.12; margin: 14px auto 12px; max-width: 800px; }
.hero.compact h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 6px; }
.hero p { color: var(--mut); max-width: 700px; margin: 0 auto; font-size: 1.02rem; }
.hero.compact p { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 99px; background: #eef2ff; color: var(--a); font-size: .76rem; font-weight: 800; border: 1px solid #c7d2fe; }
.hero-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 18px; font-size: .86rem; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--mut); padding: 5px 12px; border-radius: 99px; background: var(--soft2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.live.on { color: #15803d; background: #f0fdf4; } .live.on i { background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: left; min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2 { font-size: 1.08rem; font-weight: 700; } .sub { margin: 3px 0 0; color: var(--mut); font-size: .84rem; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } .card { padding: 16px; } }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.grid-stats.eight { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-stats.eight { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-stats.tight { margin: 14px 0; }
.stat { padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.stat-l { font-size: .7rem; font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .05em; }
.stat-v { font: 700 1.25rem Sora, sans-serif; word-break: break-word; } .stat-s { font-size: .76rem; color: var(--mut); }
.stat.hi .stat-v { color: var(--green); } .stat.lo .stat-v { color: var(--red); }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c7d2fe; background: #eef2ff; color: var(--a); border-radius: 12px; padding: 10px 16px; font-weight: 800; }
.btn:hover:not(:disabled) { background: #e0e7ff; }
.btn.go { background: var(--grad); color: #fff; border: 0; box-shadow: 0 10px 22px -10px rgba(79, 70, 229, .8); }
.btn.go:hover:not(:disabled) { filter: brightness(1.07); background: var(--grad); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink2); } .btn.ghost:hover:not(:disabled) { background: var(--soft2); }
.btn.sm { padding: 7px 12px; font-size: .84rem; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.link { background: none; border: 0; padding: 0 0 0 10px; color: var(--a); font-weight: 700; cursor: pointer; text-decoration: underline; }
.field { display: grid; gap: 5px; min-width: 0; } .field > span { font-size: .76rem; font-weight: 800; color: var(--ink2); } .field small { color: var(--mut); font-size: .74rem; }
input[type=text], input[type=password], input[type=number], input[type=search], select {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; font: inherit; color: var(--ink); min-width: 0;
}
input:focus, select:focus { outline: 2px solid rgba(99, 102, 241, .3); border-color: #6366f1; }
.search { position: relative; } .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--mut); } .search input { padding-left: 34px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.filters { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; } .filters.sm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 12px; align-items: end; }
@media (max-width: 700px) { .filters { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; padding-bottom: 10px; } .check input { width: 17px; height: 17px; accent-color: var(--a); }
.aform { display: grid; grid-template-columns: 1.5fr .8fr 1.2fr 1.4fr auto; gap: 12px; align-items: end; }
@media (max-width: 980px) { .aform { grid-template-columns: 1fr 1fr; } .aform .btn { grid-column: 1 / -1; justify-content: center; } }
@media (max-width: 520px) { .aform { grid-template-columns: 1fr; } }
.stack-form { display: grid; gap: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--soft2); padding: 4px; border-radius: 13px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 7px 13px; border-radius: 10px; font-weight: 800; font-size: .82rem; color: var(--mut); }
.seg button.on { background: #fff; color: var(--a); box-shadow: 0 2px 8px -3px rgba(79, 70, 229, .5); }
.tabs-s { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs-s button { border: 1px solid var(--line); background: #fff; padding: 7px 14px; border-radius: 99px; font-weight: 800; font-size: .82rem; color: var(--ink2); }
.tabs-s button.on { background: var(--grad); color: #fff; border-color: transparent; }
.tabs-s.big button { padding: 9px 17px; }
.subtabs { display: flex; gap: 8px; }
.subtabs button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; padding: 11px 20px; border-radius: 14px; font-weight: 800; color: var(--ink2); }
.subtabs button.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px -12px rgba(79, 70, 229, .8); }

/* notices & badges */
.notice { border-radius: 13px; padding: 12px 15px; font-size: .9rem; border: 1px solid; margin: 2px 0; }
.notice.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.notice.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.notice.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.notice.info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; margin-bottom: 12px; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 800; margin-left: 6px; background: var(--soft2); color: var(--ink2); white-space: nowrap; }
.dr-badges .badge:first-child, td > .badge:first-child { margin-left: 0; }
.badge.green { background: #dcfce7; color: #166534; } .badge.red { background: #fee2e2; color: #991b1b; } .badge.orange { background: #ffedd5; color: #9a3412; }
.badge.amber { background: #fef3c7; color: #92400e; } .badge.blue { background: #dbeafe; color: #1e40af; } .badge.purple { background: #ede9fe; color: #5b21b6; }
.rb { display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: .7rem; font-weight: 800; color: #fff; background: var(--a); }
.rb-eu { background: var(--b); } .rb-kr { background: var(--c); } .rb-tw { background: #d946ef; }
.chg { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: .84rem; } .chg em { font-style: normal; font-weight: 700; opacity: .85; }
.chg.up { color: var(--green); } .chg.down { color: var(--red); } .chg.flat { color: var(--mut); }

/* token cards */
.tcard { text-align: left; padding: 16px; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; height: 100%; transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-2px); } .tcard.sel { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99, 102, 241, .18), var(--shadow); }
.tcard-h { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink2); }
.price { font: 800 2.15rem/1.1 Sora, sans-serif; margin: 12px 0 4px; } .price small { font: 700 .9rem Manrope, sans-serif; color: #d97706; margin-left: 7px; }
.row-s { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.spark { width: 100%; height: 44px; display: block; margin: 8px 0; } .spark-empty { font-size: .76rem; color: var(--mut); padding: 14px 0; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.mini span { display: block; font-size: .66rem; font-weight: 800; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; } .mini b { font-size: .84rem; }
.tcard .foot { margin-top: auto; padding-top: 10px; }
.tcard .pad { margin-top: 24px; }
.mini .xtra { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding-top: 8px; }
.foot { font-size: .74rem; margin-top: 8px; }

/* charts */
.chart { position: relative; width: 100%; user-select: none; touch-action: pan-y; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: #e2e8f0; stroke-dasharray: 3 4; } .chart .axis { font: 600 11px Manrope, sans-serif; fill: #64748b; } .chart .cross { stroke: #a5b4fc; stroke-width: 1.5; }
.chart-empty { padding: 50px 10px; text-align: center; color: var(--mut); background: var(--soft); border-radius: 14px; }
.tip { position: absolute; top: 6px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 8px 11px; border-radius: 11px; font-size: .78rem; pointer-events: none; box-shadow: 0 10px 24px -8px rgba(15, 23, 42, .6); white-space: nowrap; z-index: 2; }
.tip-t { opacity: .7; margin-bottom: 3px; } .tip-r { display: flex; align-items: center; gap: 7px; } .tip-r i { width: 8px; height: 8px; border-radius: 50%; } .tip-r b { margin-left: auto; padding-left: 10px; }
.bars { display: flex; align-items: flex-end; gap: 4px; padding: 6px 0 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; min-width: 0; }
.bar-fill { width: 100%; border-radius: 6px 6px 2px 2px; min-height: 4px; } .bar-col span { font-size: .62rem; color: var(--mut); font-weight: 700; }
.stack { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--soft2); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.legend-i { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; background: none; border: 0; padding: 2px 0; font-weight: 600; color: var(--ink2); }
.legend-i i { width: 10px; height: 10px; border-radius: 3px; } .legend-i b { color: var(--mut); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); font-weight: 800; padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th.r { text-align: right; } .tbl td { padding: 10px; border-bottom: 1px solid var(--soft2); vertical-align: middle; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #f5f3ff; } .tbl tr.click:focus-visible { outline-offset: -2px; }
.th { background: none; border: 0; padding: 0; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; font-weight: 800; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; font-size: .86rem; color: var(--mut); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-b { border: 1px solid var(--line); background: #fff; padding: 5px 11px; border-radius: 99px; font-size: .78rem; font-weight: 700; color: var(--ink2); }
.chip-b b { color: var(--mut); margin-left: 3px; } .chip-b.on { background: #eef2ff; border-color: #a5b4fc; color: var(--a); } .chip-b.static { cursor: default; }
.feed, .plain, .alist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .88rem; }
.feed li, .alist li { padding: 7px 0; border-bottom: 1px solid var(--soft2); } .plain li { padding: 6px 0; border-bottom: 1px solid var(--soft2); }
.empty { padding: 36px 12px; text-align: center; color: var(--mut); background: var(--soft); border-radius: 14px; border: 1px dashed #cbd5e1; }

/* calculator / classic */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.calc div { background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; } .calc span { display: block; font-size: .7rem; color: var(--mut); font-weight: 800; text-transform: uppercase; } .calc b { font-size: 1.05rem; }
.classic { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mini-card { text-align: left; border: 1px solid var(--line); background: var(--soft); border-radius: 13px; padding: 12px; display: grid; gap: 3px; } .mini-card:hover { border-color: #a5b4fc; background: #f5f3ff; } .mini-card span { font-size: .82rem; }
.mini-form { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); align-content: start; }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 50; display: flex; justify-content: flex-end; }
.drawer { width: min(480px, 100%); background: #fff; height: 100%; overflow-y: auto; padding: 24px; position: relative; box-shadow: -20px 0 50px -20px rgba(15, 23, 42, .4); animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.x { position: absolute; right: 14px; top: 14px; border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 36px; height: 36px; display: grid; place-items: center; }
.dr-h { display: flex; align-items: center; gap: 10px; margin-top: 6px; } .dr-h h2 { font-size: 1.5rem; }
.dr-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; align-items: center; } .dr-badges .badge { margin-left: 0; }
.kv { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv dt, .kv dd { margin: 0; padding: 9px 12px; border-bottom: 1px solid var(--soft2); font-size: .86rem; } .kv dt { background: var(--soft); color: var(--mut); font-weight: 700; } .kv dd { font-weight: 700; word-break: break-word; }
.dr-actions { display: grid; gap: 10px; margin-top: 20px; } .dr-actions .btn { justify-content: center; }
code { background: var(--soft2); padding: 2px 6px; border-radius: 6px; font-size: .85em; word-break: break-all; }
.code { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 12px; overflow-x: auto; font-size: .82rem; white-space: pre-wrap; word-break: break-all; }

/* armory */
.char-h { display: grid; grid-template-columns: 300px 1fr; gap: 22px; align-items: start; }
@media (max-width: 720px) { .char-h { grid-template-columns: 1fr; } .char-art { max-width: 340px; width: 100%; margin: 0 auto; } }
/* Blizzard's transparent "main-raw" render has a lot of empty margin, so it is cropped in to fill a tall frame. */
.char-art { position: relative; border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #eef2ff, #f5f3ff); aspect-ratio: 3 / 4; display: grid; place-items: center; }
.char-art img.raw { position: absolute; left: 50%; top: 50%; width: 210%; max-width: none; height: auto; transform: translate(-50%, -47%); }
.char-art img.framed { width: 100%; height: 100%; object-fit: cover; display: block; } .no-art { color: #a5b4fc; padding: 50px; }
.char-i h2 { font-size: 1.8rem; font-weight: 800; } .char-sub { margin: 4px 0 0; font-size: 1rem; color: var(--ink2); } .char-guild { margin: 4px 0 8px; font-weight: 700; }
.gear { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gear li { display: grid; grid-template-columns: 44px 1fr auto; gap: 11px; align-items: center; padding: 7px; border-radius: 12px; font-size: .88rem; } .gear li:hover { background: var(--soft); }
.gear img, .gear .ic { width: 40px; height: 40px; border-radius: 9px; border: 2px solid #cbd5e1; background: var(--soft2); }
.g-e { color: #16a34a; font-size: .78rem; font-weight: 700; } .g-s { color: #0070dd; font-size: .78rem; } .g-set { color: #b8860b; font-size: .78rem; }
.ilvl { font: 800 1rem Sora, sans-serif; color: var(--a); }
.code-row { display: flex; align-items: center; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.raid { padding: 10px 0; border-bottom: 1px solid var(--soft2); } .raid-m { display: grid; gap: 7px; margin-top: 7px; }
.raid-p { display: grid; grid-template-columns: 90px 1fr 48px; gap: 10px; align-items: center; font-size: .8rem; } .raid-p em { font-style: normal; color: var(--mut); font-weight: 700; } .raid-p b { text-align: right; }
.meter { height: 8px; border-radius: 99px; background: var(--soft2); overflow: hidden; } .meter i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.prof { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: grid; gap: 8px; } .prof-h { display: flex; justify-content: space-between; align-items: center; }
.crest { width: 160px; height: 190px; border-radius: 16px 16px 80px 80px; position: relative; overflow: hidden; justify-self: center; box-shadow: 0 14px 30px -14px rgba(15, 23, 42, .6); border: 3px solid #fff; outline: 1px solid var(--line); }
.crest.no { display: grid; place-items: center; background: linear-gradient(160deg, #eef2ff, #f5f3ff); color: #a5b4fc; }
.crest-l { position: absolute; inset: 8%; }

/* Character panel (paper doll). Drawn entirely in CSS: no Blizzard interface artwork. */
.cpanel { background: #0b0e1c; border: 1px solid #2b3361; border-radius: 16px; color: #e6e9f5; box-shadow: 0 18px 40px -22px rgba(30, 27, 75, .75); margin-bottom: 18px; position: relative; }
.cp-title { background: linear-gradient(90deg, #1b2a6b, #3a2a7a); border-radius: 15px 15px 0 0; border-bottom: 1px solid #2b3361; padding: 10px 16px; text-align: center; }
.cp-title h2 { font-size: 1.1rem; font-weight: 600; margin: 0; color: #fff; letter-spacing: .2px; }
.cp-realm { font-size: .82rem; font-weight: 400; color: #a3acd6; margin-left: 6px; letter-spacing: 0; }
.cp-link { color: #9db6ff; text-decoration: none; cursor: pointer; }
.cp-link:hover, .cp-link:focus-visible { color: #fff; text-decoration: underline; }
.cp-guild { display: block; font-size: .85rem; margin-top: 2px; }
.cp-sub { padding: 10px 20px; font-size: .88rem; color: #c9d0f0; text-align: center; }
.cp-lvl { color: #ffd35c; } .cp-ver { margin-left: 10px; color: #8a93b8; font-size: .74rem; border: 1px solid #2b3361; border-radius: 99px; padding: 1px 8px; }
.cp-body { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; padding: 4px 20px 20px; }
.cp-doll { flex: 1 1 440px; max-width: 500px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cp-cols { display: flex; gap: 12px; height: 424px; }
.cp-col { width: 46px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.cp-art { --ch: 424px; flex: 1; min-width: 0; position: relative; border-radius: 12px; border: 1px solid #2b3361; overflow: hidden; background: radial-gradient(ellipse at 50% 38%, #2a3a8f 0%, #161c42 45%, #0b0e1c 100%); }
/* The transparent "main-raw" render has a lot of empty margin, so it is scaled up and centred on the character (see CharacterPanel.jsx). */
.cp-art img { transition: opacity .2s; }
/* Fallback crop, used only when the page cannot measure the picture: roughly fills the frame; the script's exact fit (.fit) overrides it. */
.cp-art img.raw { position: absolute; left: 50%; top: 36%; width: calc(var(--ch) * 2.28); max-width: none; height: auto; transform: translate(-50%, -47%); }
.cp-art img.framed { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-noart { display: grid; place-items: center; height: 100%; color: #6b7cff; }
.cp-weap { display: flex; justify-content: center; gap: 14px; }
.ct-slotw { position: relative; width: 46px; height: 46px; }
.ct-slot { appearance: none; -webkit-appearance: none; width: 46px; height: 46px; box-sizing: border-box; border-radius: 9px; border: 2px solid #39406a; background: #0f1328; padding: 0; margin: 0; display: flex; align-items: center; justify-content: center; cursor: default; position: relative; overflow: hidden; color: inherit; font: inherit; }
.ct-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ct-slot.empty { opacity: .75; }
.ct-slot:not(.empty) { cursor: pointer; }
.ct-slot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ct-il { position: absolute; right: 2px; bottom: 1px; font: 700 .62rem/1 system-ui, sans-serif; font-style: normal; text-shadow: 0 1px 2px #000, 0 0 3px #000, 0 0 3px #000; }
.ct-tip { position: absolute; z-index: 30; width: 270px; box-sizing: border-box; padding: 12px 14px; background: #0d1127; border: 1px solid #3a4380; border-radius: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55); pointer-events: none; font-size: .78rem; line-height: 1.35; text-align: left; color: #c9d0f0; }
.ct-tip.r { left: 56px; top: -6px; } .ct-tip.r.low { top: auto; bottom: -6px; }
.ct-tip.l { right: 56px; top: -6px; } .ct-tip.l.low { top: auto; bottom: -6px; }
.ct-tip.up { left: 50%; bottom: 56px; transform: translateX(-50%); }
.ct-n { font-size: .95rem; font-weight: 700; } .ct-d { color: #8a93b8; }
.ct-gold { color: #ffd35c; margin-top: 2px; } .ct-m { color: #8a93b8; margin-top: 4px; } .ct-t { margin-top: 3px; }
.ct-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; } .ct-gem { color: #7fb2ff; }
.ct-set { margin-top: 8px; } .ct-sm { margin-top: 1px; padding-left: 8px; font-size: .74rem; }
.ct-flavor { margin-top: 8px; color: #ffd35c; font-style: italic; }
.cp-side { flex: 0 1 340px; min-width: 240px; display: flex; flex-direction: column; gap: 12px; }
.ct-box { border: 1px solid #2b3361; border-radius: 12px; background: #11162e; overflow: hidden; }
.ct-bh { padding: 8px 0; text-align: center; font-size: .88rem; font-weight: 600; background: linear-gradient(90deg, #1b2a6b, #3a2a7a); }
.cp-ilvl { padding: 12px 0; text-align: center; font: 700 1.9rem Sora, system-ui, sans-serif; color: #b794ff; }
.cp-dl { margin: 0; padding: 10px 16px; display: flex; flex-direction: column; gap: 6px; }
.cp-dl > div { display: flex; justify-content: space-between; font-size: .84rem; } .cp-dl dt { color: #ffd35c; } .cp-dl dd { margin: 0; }
.cp-none, .cp-note { margin: 0; padding: 12px 16px; font-size: .8rem; color: #8a93b8; }
.char-meta { margin-bottom: 18px; }
@media (max-width: 560px) {
  .cp-body { padding: 4px 12px 16px; gap: 12px; }
  .cp-cols { gap: 8px; }
  /* On phones the tooltip is a card at the bottom of the screen (tap a slot to open, tap elsewhere to close). */
  .ct-tip, .ct-tip.l, .ct-tip.r, .ct-tip.up, .ct-tip.low { position: fixed; left: 50%; right: auto; top: auto; bottom: 12px; transform: translateX(-50%); width: min(340px, calc(100vw - 24px)); max-height: 70vh; overflow-y: auto; }
}

/* admin / footer */
.admin-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; } .h1s { font-size: 1.7rem; }
.foot-site { max-width: 1180px; margin: 20px auto 0; padding: 22px 18px 40px; border-top: 1px solid var(--line); color: var(--mut); font-size: .78rem; text-align: center; }
.char-guild .link { padding: 0; }

/* Blue posts */
.blue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.blue-item { display: flex; gap: 14px; padding: 14px 6px; border-top: 1px solid var(--line, #e5e7f3); }
.blue-item:first-child { border-top: 0; }
.blue-av { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #eef0fb; }
.blue-av.ph { display: grid; place-items: center; font-weight: 700; color: #5b5fc7; text-transform: uppercase; }
.blue-main { min-width: 0; flex: 1; }
.blue-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.blue-title { display: block; margin: 4px 0 2px; font-weight: 700; font-size: 16px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.blue-title:hover { text-decoration: underline; }
.blue-ex { margin: 2px 0 6px; color: #475069; overflow-wrap: anywhere; }

/* Legal pages + cookie notice */
.legal { max-width: 860px; margin: 0 auto; padding: 24px 28px; line-height: 1.65; }
.legal h2 { font-size: 19px; margin: 24px 0 8px; }
.legal ul { padding-left: 20px; } .legal li { margin: 6px 0; }
.legal code { background: var(--soft2); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.legal-tabs a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 14px; }
.legal-tabs a.on { background: var(--grad); color: #fff; border-color: transparent; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 10px; }
.legal-links a, .legal-links .link { color: var(--ink2); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.legal-links a:hover, .legal-links .link:hover { text-decoration: underline; }
.cookie-pop { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.cookie-in { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 40px rgba(79, 70, 229, .22); padding: 16px 20px; display: flex; gap: 18px; align-items: center; }
.cookie-in h2 { margin: 0 0 4px; font-size: 16px; }
.cookie-in p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.5; }
.cookie-btns { flex: 0 0 auto; }
@media (max-width: 640px) { .cookie-in { flex-direction: column; align-items: stretch; } .legal { padding: 18px 16px; } .cookie-btns .btn { width: 100%; } }

/* Blue posts: nav word, list footer, post page */
.top nav a .blue-word { color: #0b6fe8; font-weight: 800; }
.top nav a.blue-tab svg { color: #0b6fe8; }
.blue-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
.blue-title { color: var(--ink); }
.blue-post { max-width: 820px; margin: 0 auto; padding: 24px 28px; }
.blue-h1 { margin: 10px 0 14px; font-size: clamp(22px, 3.2vw, 30px); line-height: 1.25; overflow-wrap: anywhere; }
.blue-by { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.blue-body { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.blue-body p { margin: 0 0 12px; }
.blue-body img { max-width: 100%; height: auto; border-radius: 8px; }
.blue-body img.emoji { width: 20px; height: 20px; vertical-align: text-bottom; border-radius: 0; }
.blue-body blockquote { margin: 12px 0; padding: 8px 14px; border-left: 3px solid #a5b4fc; background: var(--soft); color: var(--ink2); border-radius: 0 10px 10px 0; }
.blue-body pre { overflow-x: auto; padding: 12px; background: var(--soft2); border-radius: 10px; }
.blue-body code { background: var(--soft2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.blue-body table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.blue-body th, .blue-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }
.blue-body a { color: #4f46e5; text-decoration: underline; }
.blue-more { padding: 10px 14px; background: var(--soft); border: 1px dashed #c7d2fe; border-radius: 10px; color: var(--ink2); }
.blue-attrib { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.back { display: inline-block; margin-bottom: 12px; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .blue-post { padding: 18px 16px; } }

/* Notifications */
.bell { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink2); cursor: pointer; margin-left: 8px; }
.bell:hover { background: #eef2ff; color: var(--a); }
.bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--grad); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.star { background: none; border: 0; padding: 0 4px 0 0; font-size: 18px; line-height: 1; color: #94a3b8; cursor: pointer; vertical-align: middle; }
.star:hover { color: #f59e0b; } .star.on { color: #f59e0b; }
.star.btn-star { font-size: 14px; padding: 9px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink2); border-radius: 12px; font-weight: 700; }
.star.btn-star.on { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.toasts { position: fixed; z-index: 95; top: 76px; right: 16px; width: min(380px, calc(100vw - 32px)); display: grid; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 5px solid #0b6fe8; border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); padding: 12px 14px; animation: toast-in .25s ease-out; }
.toast-main { flex: 1; min-width: 0; } .toast-main b { display: block; overflow-wrap: anywhere; }
.toast-main p { margin: 2px 0 4px; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.toast-main a { font-weight: 700; font-size: 14px; }
.toast-x { align-self: flex-start; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--mut); cursor: pointer; padding: 0 2px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.check input { margin-top: 4px; }
.fav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fav-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }

/* ---- admin analytics ---- */
.a-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.a-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 900px) { .a-two { grid-template-columns: minmax(0, 1fr); } }
.a-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.a-top-l { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: .88rem; }
.a-top-l .a-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.a-top-l b { font-variant-numeric: tabular-nums; }
.a-rank { width: 20px; flex: none; color: var(--mut); font-weight: 800; font-size: .78rem; }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.a-chip { background: #eef2ff; color: #4338ca; border-radius: 99px; padding: 4px 12px; font-size: .82rem; font-weight: 600; }
.a-chip b { margin-left: 4px; }
.a-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .a-meters { grid-template-columns: minmax(0, 1fr); } }
.a-meter-h { display: flex; justify-content: space-between; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.a-meter small { display: block; margin-top: 6px; }
.a-h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); margin: 18px 0 6px; }
.a-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: .88rem; }
.a-dl dt { color: var(--mut); font-weight: 700; } .a-dl dd { margin: 0; overflow-wrap: anywhere; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.a-err { font-size: .78rem; word-break: break-all; }
.btn.danger { color: #b91c1c; border-color: #fecaca; } .btn.danger:hover:not(:disabled) { background: #fef2f2; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.a-refresh { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: -4px 0 14px; font-size: .86rem; }
.a-refresh label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.a-refresh select { padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-weight: 600; }
.a-own { border-top: 1px solid var(--soft2); padding-top: 4px; }
.row-ok td { background: #f0fdf4; }
.ctoken { cursor: default; } .ctoken:hover { transform: none; }

.row-warn td { background: #fffbeb; }
.vpill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; line-height: 1.5; }
.vcolors { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 8px 0; }
.vcolor { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; }
.vcolor input[type=color] { width: 42px; height: 34px; padding: 0; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; }
.vcolor code { font-size: .78rem; color: var(--mut); }

.ed-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: #eef0fb; border: 1px solid #dfe3f6; flex-shrink: 0; }
.ed-switch button { border: 0; background: transparent; padding: 5px 13px; border-radius: 999px; font: 700 .8rem Sora, sans-serif; color: var(--ink2, #475569); cursor: pointer; }
.ed-switch button.on { box-shadow: 0 4px 10px -4px rgba(15, 23, 42, .5); }
@media (max-width: 640px) { .ed-switch button { padding: 4px 9px; font-size: .74rem; } }

/* Item search + Blizzard-style item tooltips */
.item-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.item-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.item-row:hover, .item-row:focus-visible { border-color: #a5b4fc; box-shadow: 0 6px 16px -10px rgba(79, 70, 229, .6); outline: none; }
.item-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 8px; border: 2px solid #94a3b8; background: #0d1127; display: grid; place-items: center; overflow: hidden; color: #8a93b8; }
.item-ic img { display: block; width: 40px; height: 40px; }
.item-ic.big { width: 62px; height: 62px; border-radius: 10px; } .item-ic.big img { width: 56px; height: 56px; }
.item-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-nm { font-weight: 800; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 0 1px rgba(0, 0, 0, .35); }
.item-tx small { color: var(--mut); font-size: .76rem; line-height: 1.3; }
.item-h { font-size: 1.35rem; text-shadow: 0 0 1px rgba(0, 0, 0, .4); }
.wtip { position: fixed; z-index: 1200; min-width: 220px; max-width: 340px; width: max-content; box-sizing: border-box; padding: 10px 13px 11px; background: rgba(8, 8, 20, .97); border: 1px solid #6b6f8a; border-radius: 6px; box-shadow: 0 0 0 1px #000, 0 12px 32px rgba(0, 0, 0, .6); pointer-events: none; font-size: .8rem; line-height: 1.4; color: #fff; text-align: left; }
.wtip-static { margin: 12px 0 14px; padding: 12px 14px; background: #080814; border: 1px solid #6b6f8a; border-radius: 8px; box-shadow: 0 0 0 1px #000; font-size: .84rem; line-height: 1.4; color: #fff; }
.wtip .ct-n, .wtip-static .ct-n { font-size: 1rem; }
.wtip .ct-d, .wtip-static .ct-d { color: #9aa0c0; }
.wtip .ct-gold, .wtip-static .ct-gold { color: #ffd100; }
.wtip .ct-m, .wtip-static .ct-m { color: #fff; }
.wtip .ct-flavor, .wtip-static .ct-flavor { color: #ffd100; }
@media (hover: none) { .wtip { display: none; } }
@media (max-width: 640px) { .item-list { grid-template-columns: 1fr; } }
.chk{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:#3b4266;cursor:pointer;align-self:end;padding:10px 0}
.chk input{width:18px;height:18px;accent-color:#4f46e5}

/* countdown band + flip clock */
.cd-wrap { border-bottom: 1px solid var(--line); }
.cd-band { position: relative; background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-top: 1px solid #e0e7ff; }
.cd-band + .cd-band { border-top: 1px solid #dfe3f6; }
.cd-in { max-width: 1180px; margin: 0 auto; padding: 12px 52px 12px 18px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.cd-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.cd-name { font: 800 1.05rem Sora, sans-serif; color: var(--ink); text-align: center; letter-spacing: -.01em; overflow-wrap: anywhere; }
/* picture box (the picture sits inside, with optional padding and background) */
.cd-pic { flex-shrink: 0; max-width: 26vw; max-height: 26vw; box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .6); }
.cd-x { position: absolute; top: 8px; right: 12px; width: 32px; height: 32px; border-radius: 10px; border: 1px solid #c7d2fe; background: rgba(255, 255, 255, .7); color: var(--ink2); font-size: 20px; line-height: 1; cursor: pointer; }
.cd-x:hover { background: #fff; color: var(--a); }
.cd-band.preview { border: 1px solid #c7d2fe; border-radius: 16px; overflow: hidden; }
.fclock { display: flex; gap: 14px; align-items: flex-start; justify-content: center; flex-wrap: wrap; }
.fu-unit { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.fu-digits { display: flex; gap: 4px; }
.fu-lab { font: 700 .62rem Sora, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.fd { --h: 46px; position: relative; display: block; width: 32px; height: var(--h); perspective: 300px; font: 800 28px/1 Sora, sans-serif; color: #fff; }
.fd span { display: block; position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: linear-gradient(180deg, #2b3361, #1b2147); backface-visibility: hidden; }
.fd i { display: block; font-style: normal; text-align: center; height: var(--h); line-height: var(--h); }
.fd-u, .fd-fu { top: 0; border-radius: 6px 6px 0 0; }
.fd-l, .fd-fl { bottom: 0; border-radius: 0 0 6px 6px; background: linear-gradient(180deg, #1b2147, #262d5a) !important; }
.fd-l i, .fd-fl i { margin-top: calc(var(--h) / -2); }
.fd-fu { transform-origin: 50% 100%; animation: fdTop .32s ease-in forwards; z-index: 3; }
.fd-fl { transform-origin: 50% 0; transform: rotateX(90deg); animation: fdBot .32s .32s ease-out forwards; z-index: 2; }
.fd .fd-hinge { top: 50%; height: 2px; margin-top: -1px; background: rgba(0, 0, 0, .55); z-index: 5; overflow: visible; }
@keyframes fdTop { from { transform: rotateX(0); } to { transform: rotateX(-90deg); } }
@keyframes fdBot { from { transform: rotateX(90deg); } to { transform: rotateX(0); } }
@media (prefers-reduced-motion: reduce) { .fd-fu { display: none; } .fd-fl { animation: none; transform: none; } }
@media (max-width: 640px) {
  .cd-in { padding: 10px 44px 10px 12px; gap: 10px; }
  .fclock { gap: 8px; } .fd { --h: 38px; width: 25px; font-size: 22px; } .cd-name { font-size: .95rem; }
}
@media (max-width: 380px) { .fd { --h: 32px; width: 21px; font-size: 18px; } .fu-digits { gap: 3px; } }
/* switch */
.sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw .track { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; flex-shrink: 0; }
.sw .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(15, 23, 42, .3); transition: left .15s; }
.sw input:checked + .track { background: var(--grad); }
.sw input:checked + .track::after { left: 23px; }
.sw input:focus-visible + .track { outline: 2px solid rgba(99, 102, 241, .6); outline-offset: 2px; }
.cd-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 12px 0; background: #fff; }
.cd-item-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.cd-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #f1f5f9; }
.cd-img-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cd-pic { display: block; box-sizing: border-box; overflow: hidden; flex-shrink: 0; }
.cd-pic img { display: block; width: 100%; height: 100%; }
.cd-when { font-size: .8rem; font-weight: 600; color: var(--mut); text-align: center; }
.cd-band.plain { background: transparent; border-top: 0; }
.cd-band.plain .cd-x { border-color: transparent; background: transparent; }
.cd-wrap:has(.cd-band.plain) { border-bottom-color: transparent; }
/* white flip clock */
.fclock.white .fd { color: #1b2147; text-shadow: none; }
.fclock.white .fd span { background: linear-gradient(180deg, #ffffff, #f1f4fb); box-shadow: 0 1px 0 rgba(15, 23, 42, .08); }
.fclock.white .fd-l, .fclock.white .fd-fl { background: linear-gradient(180deg, #eceff9, #ffffff) !important; }
.fclock.white .fd { filter: drop-shadow(0 4px 6px rgba(15, 23, 42, .22)); }
.fclock.white .fd .fd-hinge { background: rgba(15, 23, 42, .28); box-shadow: none; }
