/* Excel Heroes — spreadsheet-disguised desktop UI (≈1240px). */
:root {
  --xl-green: #217346; --xl-green-dark: #185c37; --xl-green-light: #e2efda;
  --bg: #ffffff; --panel: #f3f3f3; --line: #d4d4d4; --line-dark: #bfbfbf;
  --text: #222; --muted: #6b6b6b;
  --font: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
  --cell-w: 64px; --cell-h: 52px; --hdr: 28px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #e6e6e6; font-family: var(--font); font-size: 13px; color: var(--text); }
button { font-family: inherit; font-size: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.mono { font-family: Consolas, "Courier New", monospace; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ window --- */
.app { width: min(100vw, 1240px); min-width: 1024px; margin: 0 auto; height: 100vh; min-height: 720px; background: var(--bg); display: flex; flex-direction: column; box-shadow: 0 0 0 1px #c9c9c9; }
.titlebar { display: flex; align-items: center; gap: 8px; background: var(--xl-green); color: #fff; height: 32px; padding: 0 6px 0 10px; font-size: 13px; flex: none; }
.app-icon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: #fff; color: var(--xl-green); font-weight: 700; border-radius: 2px; font-size: 12px; }
.win-btn { width: 34px; text-align: center; opacity: .9; font-size: 12px; }
.win-btn.close:hover { background: #c42b1c; }
.tb-btn { background: transparent; border: 0; color: #fff; font-size: 12.5px; padding: 0 10px; height: 32px; }
.tb-btn.qat { padding: 0 6px; font-size: 14px; }
.autosave { font-size: 12px; display: inline-flex; align-items: center; gap: 5px; margin-left: 4px; }
.autosave .pill { background: rgba(255,255,255,.22); border-radius: 9px; padding: 0 7px; font-size: 11px; font-weight: 600; }
.title-text { margin-left: 8px; }
.tb-search { width: 300px; height: 22px; background: rgba(255,255,255,.18); border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; color: rgba(255,255,255,.92); }
.tb-search:hover { background: rgba(255,255,255,.28); }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: #c8a200; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; margin-right: 6px; }
.tb-btn:hover { background: rgba(255,255,255,.15); }
.account { font-size: 12.5px; margin-right: 2px; }
.win-btn.ribbon-opts { font-size: 13px; margin-left: 6px; }

.ribbon-tabs { display: flex; background: var(--xl-green); padding: 0 6px; height: 28px; flex: none; }
.ribbon-tab { background: transparent; border: 0; color: #fff; padding: 0 14px; height: 28px; font-size: 13px; }
.ribbon-tab.file { font-weight: 600; }
.ribbon-tab.active { background: var(--panel); color: var(--text); border-radius: 3px 3px 0 0; }
.ribbon-tab:hover:not(.active) { background: rgba(255,255,255,.12); }
.ribbon-right { display: flex; align-items: center; gap: 6px; padding-right: 4px; }
.rr-btn { color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 3px; cursor: default; }
.rr-btn.share { background: rgba(255,255,255,.2); }
.rb-collapse { position: absolute; right: 8px; bottom: 2px; background: transparent; border: 0; color: var(--muted); font-size: 13px; padding: 0 4px; }
.ribbon-body { position: relative; }
.ribbon-body.collapsed { min-height: 0; height: 12px; overflow: hidden; padding: 0 10px; }
.ribbon-body.collapsed .ribbon-panel, .ribbon-body.collapsed .ribbon-group.right { display: none; }
.ribbon-body { display: flex; align-items: stretch; gap: 6px; padding: 4px 10px 2px; background: var(--panel); border-bottom: 1px solid var(--line-dark); min-height: 84px; flex: none; }
.ribbon-panel { display: none; align-items: stretch; gap: 4px; }
.ribbon-panel.active { display: flex; }
.rb-group { display: flex; flex-direction: column; justify-content: space-between; padding: 0 4px; }
.rb-row { display: flex; align-items: center; gap: 4px; flex: 1; }
.rb-row.rb-text { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; font-size: 12px; color: var(--text); padding: 0 6px; }
.rb-row.rb-text b { color: var(--xl-green); }
.rb-stack { display: flex; flex-direction: column; gap: 3px; }
.rb-group-label { text-align: center; font-size: 11px; color: var(--muted); padding: 2px 0 0; }
.rb-btn small { font-size: 10.5px; color: var(--muted); }
.rb-forecast.good { color: var(--xl-green); } .rb-forecast.mid { color: #9a6700; } .rb-forecast.bad { color: #b03a2e; }
.ribbon-group { display: flex; align-items: center; gap: 4px; }
.ribbon-group.right { margin-left: auto; gap: 18px; }
.rb-sep { width: 1px; align-self: stretch; margin: 4px 6px; background: var(--line-dark); }
.rb-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 10px; background: transparent; border: 1px solid transparent; border-radius: 3px; font-size: 12px; color: var(--text); min-width: 64px; }
.rb-btn:hover:not(:disabled) { background: #e5e5e5; border-color: #ccc; }
.rb-icon { font-size: 20px; line-height: 22px; color: var(--xl-green); font-weight: 700; }
.rb-check { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 0 8px; }
.rb-stat { font-size: 11.5px; color: var(--muted); text-align: right; }
.rb-stat b { display: block; color: var(--text); font-size: 15px; }

.formula-bar { display: flex; align-items: stretch; height: 26px; border-bottom: 1px solid var(--line-dark); background: #fff; flex: none; }
.namebox { width: 110px; padding: 0 8px; display: flex; align-items: center; border-right: 1px solid var(--line); font-size: 12px; white-space: nowrap; overflow: hidden; }
.fx { width: 30px; display: flex; align-items: center; justify-content: center; font-style: italic; color: var(--muted); border-right: 1px solid var(--line); }
.formula { flex: 1; display: flex; align-items: center; padding: 0 10px; font-family: Consolas, "Courier New", monospace; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.namebox-arrow { width: 16px; display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--muted); border-right: 1px solid var(--line); }
.fx-btns { display: flex; align-items: center; border-right: 1px solid var(--line); }
.fx-btns span { width: 26px; text-align: center; font-size: 11px; color: var(--muted); }
.fx-btns .fx { font-style: italic; font-size: 12px; }
.formula-expand { width: 22px; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; border-left: 1px solid var(--line); }

/* ------------------------------------------------------------ workspace -- */
.workspace { flex: 1; display: flex; min-height: 0; }
.sheets { flex: 1; overflow-y: auto; overflow-x: hidden; background: #fff; min-width: 0; }
.sheet { display: none; padding-bottom: 8px; }
.sheet.active { display: block; }

/* ------------------------------------------------------------ worksheet -- */
/* Every sheet is a worksheet: corner, column letters across the full width, row numbers down the full height. */
.ws { grid-template-columns: var(--hdr) 1fr; grid-template-rows: var(--hdr) 1fr; min-height: 100%; padding-bottom: 0; }
.sheet.ws.active { display: grid; }
/* frozen panes: headers stay put while the sheet scrolls */
.ws-corner { position: sticky; top: 0; left: 0; z-index: 4; }
.ws-cols { position: sticky; top: 0; z-index: 3; }
.ws-rows { position: sticky; left: 0; z-index: 3; }
.ws-corner { grid-column: 1; grid-row: 1; background: var(--panel); border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); position: relative; }
.ws-corner::after { content: ''; position: absolute; right: 3px; bottom: 3px; border: 6px solid transparent; border-right-color: #b5b5b5; border-bottom-color: #b5b5b5; }
.ws-cols { grid-column: 2; grid-row: 1; display: flex; background: var(--panel); border-bottom: 1px solid var(--line-dark); overflow: hidden; }
.ws-cols span { flex: none; width: var(--cell-w); text-align: center; line-height: var(--hdr); font-size: 12px; color: #444; border-right: 1px solid var(--line); }
.ws-rows { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line-dark); overflow: hidden; }
.ws-rows span { flex: none; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: #444; border-bottom: 1px solid var(--line); }
.ws-rows span.tall { height: var(--cell-h); font-size: 12px; }
.ws-cols span.sel, .ws-rows span.sel { background: #d3e5d8; color: var(--xl-green); font-weight: 600; box-shadow: inset 0 -2px 0 var(--xl-green); }
.ws-rows span.sel { box-shadow: inset -2px 0 0 var(--xl-green); }
.ws-body { grid-column: 2; grid-row: 2; position: relative; min-width: 0;
  /* faint cell grid behind everything (22px rows from the top of the body) */
  background-color: #fff;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px), linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--cell-w) 22px; background-position: -1px -1px; }
.ws-body.generic { padding: 0 0 20px; }
.ws-body.generic > * { position: relative; }
.ws-body.generic .xl-table, .ws-body.generic .sheet-head, .ws-body.generic .card-grid, .ws-body.generic .gacha-layout, .ws-body.generic .quest-footer, .ws-body.generic .ad-box, .ws-body.generic .section-title { background: #fff; }
.cell-area { width: 832px; height: 416px; position: relative; background: #fff; box-shadow: 0 0 0 1px var(--line-dark); }
.ws-row { display: flex; height: 22px; }
.ws-row .cell { flex: none; width: var(--cell-w); height: 22px; line-height: 21px; padding: 0 5px; font-size: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #fff; }
.ws-row .cell.k { background: #f3f3f3; color: #555; font-size: 11.5px; }
.ws-row .cell.w2 { width: calc(var(--cell-w) * 2); }
.ws-row .cell.hint { flex: 1; color: var(--muted); font-size: 11.5px; }
.ws-row .cell.stage-label { color: var(--xl-green); font-weight: 700; }
.ws-row .cell.stage-monster { color: #444; }
.ws-row .cell.stage-mode { font-weight: 700; color: #9a6700; }
.ws-row .cell.stage-mode.challenge { color: #b03a2e; }
.ws-row .cell.stage-mode.farm { color: var(--xl-green); }
/* Excel "data bar" conditional formatting for kill progress */
.databar-cell { position: relative; padding: 0 !important; }
.databar { position: absolute; left: 0; top: 2px; bottom: 2px; background: linear-gradient(to right, #63a9e8, #a6cdf0); border-right: 1px solid #3b8ad6; transition: width .2s; }
.databar-text { position: absolute; inset: 0; padding: 0 5px; font-size: 11.5px; color: #222; white-space: nowrap; }
/* activity log as worksheet rows */
.ws-log { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ws-log col.c-a { width: var(--cell-w); }
.ws-log td { height: 22px; padding: 0 5px; font-size: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #444; background: #fff; }
.ws-log td:first-child { color: #777; font-family: Consolas, monospace; font-size: 11px; text-align: right; }
.ws-log tr.k-boss td { color: #b03a2e; } .ws-log tr.k-warn td { color: #9a6700; } .ws-log tr.k-skill td { color: #6c3483; } .ws-log tr.k-stage td { color: var(--xl-green); font-weight: 600; } .ws-log tr.k-gacha td { color: #1f5fa8; }

.canvas-wrap { line-height: 0; }
#battle { width: 832px; height: 416px; image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.stealth-view { width: 832px; height: 416px; overflow: auto; background: #fff; }


.progress { position: relative; width: 220px; height: 18px; background: #eee; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: var(--xl-green-light); border-right: 2px solid var(--xl-green); transition: width .2s; }
.progress-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #333; white-space: nowrap; }

.section-title { margin: 10px 10px 3px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sheet-head { display: flex; align-items: center; gap: 18px; padding: 8px 10px; background: #fafafa; border-bottom: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap; }
.two-col, .gacha-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 10px; }
.gacha-layout { padding-top: 6px; }

/* ------------------------------------------------------------ task pane -- */
.task-pane { width: 340px; flex: none; border-left: 1px solid var(--line-dark); background: #fafafa; display: flex; flex-direction: column; min-height: 0; }
.pane-title { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-weight: 600; font-size: 13px; background: var(--panel); border-bottom: 1px solid var(--line-dark); }
.pane-x { color: var(--muted); font-size: 12px; }
.pane-body { overflow-y: auto; flex: 1; }
.pane-actions { display: flex; gap: 6px; padding: 8px 10px 2px; }
.xl-table td.act .xl-btn + .xl-btn { margin-left: 3px; }
#hero-table td.act .xl-btn { padding: 2px 5px; font-size: 11px; }
#hero-table th:last-child { min-width: 78px; }
.bestiary { display: flex; gap: 8px; padding: 6px 10px 10px; flex-wrap: wrap; }
.bestiary .beast { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: #444; width: 96px; text-align: center; }
.bestiary canvas { width: 48px; height: 48px; image-rendering: pixelated; }

/* ------------------------------------------------------------ tables --- */
.xl-table { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: auto; }
.xl-table th, .xl-table td { border: 1px solid var(--line); padding: 4px 7px; text-align: left; vertical-align: middle; }
.xl-table th { background: var(--panel); font-weight: 600; color: #444; font-size: 11.5px; }
.xl-table th.num { text-align: right; }
.xl-table tr.affordable td.cost { color: var(--xl-green); font-weight: 600; }
.xl-table td.name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.xl-table td.act { white-space: nowrap; width: 1%; }
.xl-table .sub { font-size: 10.5px; color: var(--muted); white-space: normal; }
.xl-table .icon { width: 20px; height: 20px; vertical-align: -5px; margin-right: 5px; image-rendering: pixelated; }
.xl-table.compact th, .xl-table.compact td { padding: 3px 7px; }
.xl-table.log td { color: #444; font-size: 12px; }
.xl-table.log tr.k-boss td { color: #b03a2e; }
.xl-table.log tr.k-warn td { color: #9a6700; }
.xl-table.log tr.k-skill td { color: #6c3483; }
.xl-table.log tr.k-stage td { color: var(--xl-green); font-weight: 600; }
.xl-table.log tr.k-gacha td { color: #1f5fa8; }
.xl-table tr.locked td { color: #aaa; }
.clickable { cursor: pointer; } .clickable:hover { text-decoration: underline; }
.g-D { color: #7f8c8d; } .g-C { color: #27ae60; } .g-B { color: #2b7cd3; } .g-A { color: #8e44ad; } .g-S { color: #d4a017; font-weight: 700; }
tr.g-S td { background: #fdf6e3; } tr.g-A td { background: #f4ecf7; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e74c3c; margin-left: 4px; vertical-align: top; }

.xl-btn { background: #fff; border: 1px solid #adadad; border-radius: 2px; padding: 3px 10px; font-size: 12px; color: var(--text); }
.xl-btn:hover:not(:disabled) { background: #e5f1fb; border-color: #0078d4; }
.xl-btn.primary { background: var(--xl-green); border-color: var(--xl-green-dark); color: #fff; }
.xl-btn.primary:hover:not(:disabled) { background: var(--xl-green-dark); }
.xl-btn.danger { border-color: #c42b1c; color: #c42b1c; }
.xl-btn.big { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 12px 8px; font-size: 14px; font-weight: 600; }
.xl-btn.big small { font-weight: 400; font-size: 11px; opacity: .8; }
.gacha-actions { display: flex; gap: 10px; padding: 4px 0 10px; }

.settings { display: flex; flex-direction: column; gap: 6px; padding: 4px 10px 8px; font-size: 12.5px; }
.settings-actions { display: flex; gap: 6px; padding: 6px 10px; }
#save-text { width: calc(100% - 20px); margin: 0 10px; font-family: Consolas, monospace; font-size: 10.5px; resize: vertical; border: 1px solid var(--line-dark); }
.sheet p { margin: 6px 10px; }

/* ------------------------------------------------------------ footer --- */
.sheet-tabs { display: flex; align-items: flex-end; background: var(--panel); border-top: 1px solid var(--line-dark); height: 26px; padding: 0 6px; overflow: hidden; flex: none; }
.sheet-nav { color: var(--muted); font-size: 11px; padding: 0 8px 6px; }
.sheet-tab { background: #fff; border: 1px solid var(--line-dark); border-bottom: 0; border-radius: 0; padding: 0 14px; height: 24px; font-size: 12.5px; color: #444; margin-right: -1px; }
.sheet-tab.active { color: var(--xl-green); font-weight: 700; border-bottom: 2px solid var(--xl-green); height: 26px; }
.sheet-add { color: var(--muted); padding: 0 10px 4px; font-size: 14px; }
/* chart sheet */
.chart-grid { display: grid; grid-template-columns: repeat(2, 436px); gap: 18px; padding: 14px; }
.chart-obj { background: #fff; border: 1px solid #c8c8c8; box-shadow: 0 1px 4px rgba(0,0,0,.12); padding: 7px; position: relative; }
.chart-obj::after { content: ''; position: absolute; inset: -4px; border: 1px solid transparent; pointer-events: none; }
.chart-obj:hover { outline: 2px solid #217346; outline-offset: -1px; }
.chart-obj canvas { display: block; }
/* right-click menu */
.ctx-menu { position: fixed; z-index: 20; min-width: 200px; background: #fff; border: 1px solid #c6c6c6; box-shadow: 0 6px 20px rgba(0,0,0,.22); padding: 4px 0; font-size: 12.5px; }
.ctx-menu[hidden] { display: none; }
.ctx-item { display: flex; align-items: center; gap: 10px; padding: 5px 14px 5px 12px; cursor: default; color: var(--text); }
.ctx-item .ci { width: 16px; text-align: center; color: var(--muted); font-size: 12px; }
.ctx-item .sc { margin-left: auto; color: var(--muted); font-size: 11px; }
.ctx-item:hover:not(.disabled) { background: #e5f1fb; }
.ctx-item.disabled { color: #a0a0a0; }
.ctx-sep { height: 1px; background: var(--line); margin: 4px 0; }
/* roster ATK data bar (conditional formatting) */
.xl-table td.databar-td { position: relative; }
.xl-table td.databar-td .bar { position: absolute; left: 2px; top: 3px; bottom: 3px; background: linear-gradient(to right, #63a9e8, #a6cdf0); border-right: 1px solid #3b8ad6; z-index: 0; }
.xl-table td.databar-td span { position: relative; z-index: 1; }
.statusbar { display: flex; align-items: center; gap: 16px; background: var(--xl-green); color: #fff; height: 24px; padding: 0 12px; font-size: 12px; flex: none; }
.sheets { background: #fff; }
.status-dim { opacity: .8; }
.status-views { letter-spacing: 4px; opacity: .9; }

/* ------------------------------------------------------------ backstage -- */
.backstage { position: absolute; left: 0; right: 0; top: 32px; bottom: 0; display: flex; background: #fff; z-index: 5; } /* covers ribbon + sheets like Excel, keeps the title bar */
.backstage[hidden] { display: none; }
.app { position: relative; }
.bs-nav { width: 200px; background: var(--xl-green); color: #fff; display: flex; flex-direction: column; padding: 8px 0 12px; flex: none; }
.bs-back { background: transparent; border: 0; color: #fff; font-size: 18px; text-align: left; padding: 6px 18px 14px; }
.bs-item { background: transparent; border: 0; color: #fff; text-align: left; padding: 9px 22px; font-size: 14px; }
.bs-item:hover { background: rgba(255,255,255,.12); }
.bs-item.active { background: var(--xl-green-dark); font-weight: 600; }
.bs-item.danger { color: #ffd6d0; }
.bs-content { flex: 1; overflow: auto; padding: 18px 26px; }
.bs-content h2 { margin: 0 0 12px; font-weight: 400; font-size: 22px; color: var(--text); }
.bs-section { display: none; } .bs-section.active { display: block; }
.bs-section .two-col { padding: 0; }
.bs-section #save-text { width: 100%; margin: 0; }
.bs-section .settings, .bs-section .settings-actions, .bs-section .section-title, .bs-section p { margin-left: 0; padding-left: 0; }
.statusbar .zoom { opacity: .85; }

/* ------------------------------------------------------------ stealth -- */
/* Only the play area changes: canvas → text rows. Everything else stays put. */
body.stealth .stage-monster, body.stealth #status-gold, body.stealth #status-gems, body.stealth #status-dps, body.stealth .rb-stat b, body.stealth .bestiary { visibility: hidden; }
body.stealth .xl-table .icon, body.stealth .card-grid, body.stealth #quest-dot { display: none; }
body.stealth #roster-table { display: table; }
.xl-table.stealth td { font-family: Consolas, "Courier New", monospace; font-size: 12px; color: #333; }
.xl-table.stealth tr.log td { color: #666; }

/* ------------------------------------------------------------ cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, 128px); gap: 10px; padding: 10px; justify-content: start; }
.card { position: relative; cursor: pointer; transition: transform .1s; border-radius: 0; }
.card:hover { transform: translateY(-3px); }
.card canvas { display: block; border-radius: 0; image-rendering: pixelated; }
.card.in-party canvas { outline: 2px solid var(--xl-green); outline-offset: -1px; }
.card.locked { opacity: .8; }
.card-badge { position: absolute; top: 0; right: 0; background: var(--xl-green); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 0; font-weight: 600; }
.card-badge.main { top: 18px; background: #e67e22; }
.card-badge.new { background: #e74c3c; }
.card-grid.result { padding: 4px 0; grid-template-columns: repeat(auto-fill, 96px); }
.card-canvas { width: 128px; height: 204px; }
.card-grid.result .card-canvas { width: 96px; height: 153px; }
.promo-card .card-canvas { width: 140px; height: 223px; }
.detail-art { width: 232px; height: auto; max-height: 340px; object-fit: contain; border-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.22); cursor: zoom-in; flex: none; background: #f4f4f4; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.82); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 30; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 10px 40px rgba(0,0,0,.6); border-radius: 8px; image-rendering: auto; }
.lightbox .lb-caption { color: #fff; margin-top: 10px; font-size: 13px; }
#roster-table { display: none; }

.detail-head { display: flex; gap: 14px; align-items: flex-start; }
.detail-head canvas { flex: none; border-radius: 4px; image-rendering: pixelated; }
.detail-head canvas[data-art] { image-rendering: auto; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.card canvas, .flip-face.front canvas { image-rendering: auto; }
.detail-stats { flex: 1; min-width: 0; }
.detail-line { margin: 3px 0; font-size: 12.5px; }
.detail-line.skill { color: #6c3483; }
.detail-line.profile { margin: 6px 0 8px; padding: 6px 8px; background: #fafafa; border-left: 3px solid var(--xl-green); }
.detail-line.profile .bio { color: #444; margin-top: 2px; }
.detail-line.profile .quote { color: #6b6b6b; font-style: italic; margin-top: 3px; }
/* ---- collectible presentation: flip reveal, jackpot, holo, favorites ---- */
.flip { perspective: 700px; width: 96px; height: 153px; }
.card-grid:not(.result) .flip { width: 128px; height: 204px; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.8,.2,1); transform: rotateY(180deg); }
.flip.revealed .flip-inner { transform: rotateY(0); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 4px; overflow: hidden; }
.flip-face.front canvas { width: 100%; height: 100%; }
.flip-face { border-radius: 0; }
.flip-face.back { transform: rotateY(180deg); background: linear-gradient(160deg, #1e6b3f, #217346 55%, #185c37); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.flip-face.back::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 16px 12px; }
.flip-face.back .back-x { font-weight: 800; font-size: 34px; background: #fff; color: #217346; width: 40px; height: 40px; border-radius: 4px; display: flex; align-items: center; justify-content: center; position: relative; }
.flip-face.back .back-row { font-family: Consolas, monospace; font-size: 10px; opacity: .85; position: relative; }
.flip.grade-S .flip-face.back { background: linear-gradient(160deg, #b8860b, #d4a017 55%, #8a6508); }
.flip.grade-A .flip-face.back { background: linear-gradient(160deg, #6c3483, #8e44ad 55%, #512e5f); }
.flip.grade-S.revealed { animation: s-glow 1.2s ease-out; }
.flip.grade-A.revealed { animation: a-glow .9s ease-out; }
@keyframes s-glow { 0% { filter: brightness(2.2) drop-shadow(0 0 18px #ffd166); } 100% { filter: none; } }
@keyframes a-glow { 0% { filter: brightness(1.6) drop-shadow(0 0 12px #c39bd3); } 100% { filter: none; } }
.dialog.jackpot { animation: jackpot .9s ease-out; }
@keyframes jackpot { 0% { box-shadow: 0 0 0 0 rgba(255,209,102,.9), 0 8px 30px rgba(0,0,0,.3); } 100% { box-shadow: 0 0 0 40px rgba(255,209,102,0), 0 8px 30px rgba(0,0,0,.3); } }
.hidden-until { visibility: hidden; }
/* rarity tell on the card back + charging beat before the flip */
.flip-face.back.pre-S { box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 0 18px 4px rgba(255,209,102,.75); animation: tell-s 1.1s ease-in-out infinite; }
.flip-face.back.pre-A { box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), 0 0 14px 2px rgba(195,155,211,.7); animation: tell-a 1.3s ease-in-out infinite; }
.flip-face.back.charging { animation-duration: .25s; filter: brightness(1.6); }
@keyframes tell-s { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
@keyframes tell-a { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.3); } }
/* burst overlay: rays + sparks + stamp, centred on the revealed card (--cx/--cy set from JS) */
.reveal-fx { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.reveal-fx .rays { position: absolute; left: var(--cx); top: var(--cy); width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255,255,255,0) 0deg, rgba(255,255,255,.35) 12deg, rgba(255,255,255,0) 24deg, rgba(255,255,255,0) 36deg, rgba(255,255,255,.35) 48deg, rgba(255,255,255,0) 60deg, rgba(255,255,255,0) 72deg, rgba(255,255,255,.35) 84deg, rgba(255,255,255,0) 96deg, rgba(255,255,255,0) 108deg, rgba(255,255,255,.35) 120deg, rgba(255,255,255,0) 132deg, rgba(255,255,255,0) 144deg, rgba(255,255,255,.35) 156deg, rgba(255,255,255,0) 168deg, rgba(255,255,255,0) 180deg, rgba(255,255,255,.35) 192deg, rgba(255,255,255,0) 204deg, rgba(255,255,255,0) 216deg, rgba(255,255,255,.35) 228deg, rgba(255,255,255,0) 240deg, rgba(255,255,255,0) 252deg, rgba(255,255,255,.35) 264deg, rgba(255,255,255,0) 276deg, rgba(255,255,255,0) 288deg, rgba(255,255,255,.35) 300deg, rgba(255,255,255,0) 312deg, rgba(255,255,255,0) 324deg, rgba(255,255,255,.35) 336deg, rgba(255,255,255,0) 348deg, rgba(255,255,255,0) 360deg); animation: rays 1.6s ease-out forwards; mix-blend-mode: screen; }
.reveal-fx.S .rays { filter: sepia(1) saturate(4) hue-rotate(5deg); }
.reveal-fx.A .rays { filter: sepia(1) saturate(3) hue-rotate(230deg); }
@keyframes rays { 0% { transform: rotate(0deg) scale(.2); opacity: 0; } 15% { opacity: 1; } 100% { transform: rotate(60deg) scale(1); opacity: 0; } }
.reveal-fx .sparks span { position: absolute; left: var(--cx); top: var(--cy); width: 8px; height: 8px; margin: -4px; background: #fff3b0; border-radius: 1px; transform: rotate(var(--a)) translateY(0) scale(1); animation: spark var(--d) ease-out forwards; box-shadow: 0 0 8px 2px rgba(255,220,120,.9); }
.reveal-fx.A .sparks span { background: #e8daef; box-shadow: 0 0 8px 2px rgba(195,155,211,.9); }
@keyframes spark { 0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-190px) scale(.2); opacity: 0; } }
.reveal-fx .stamp { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(2.6) rotate(-8deg); display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 24px rgba(255,255,255,.8); animation: stamp 1s cubic-bezier(.2,1.6,.3,1) forwards; opacity: 0; }
.reveal-fx .stamp b { font-size: 64px; line-height: 1; letter-spacing: 2px; }
.reveal-fx .stamp span { font-size: 13px; letter-spacing: 3px; margin-top: 2px; }
.reveal-fx.S .stamp b { color: #ffd166; } .reveal-fx.A .stamp b { color: #c39bd3; }
@keyframes stamp { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.6) rotate(-8deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-8deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.05) rotate(-8deg); } }
.reveal-fx.S::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--cx) var(--cy), rgba(255,220,120,.55), rgba(0,0,0,0) 55%); animation: fxfade 1.6s ease-out forwards; }
.reveal-fx.A::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at var(--cx) var(--cy), rgba(195,155,211,.45), rgba(0,0,0,0) 55%); animation: fxfade 1s ease-out forwards; }
@keyframes fxfade { 0% { opacity: 1; } 100% { opacity: 0; } }
.dialog.has-s .dialog-title { background: linear-gradient(90deg, #f6e7b3, #fff); border-bottom-color: #d4a017; }
.dialog { position: relative; }
.card.holo { overflow: hidden; }
.card .holo-sheen { position: absolute; inset: 0; pointer-events: none; border-radius: 4px; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, rgba(255,120,220,.25) 50%, rgba(120,220,255,.3) 55%, transparent 70%); background-size: 250% 250%; mix-blend-mode: screen; animation: sheen 4.5s linear infinite; opacity: .35; }
.card.holo:hover .holo-sheen { animation-duration: 1.2s; opacity: 1; }
@keyframes sheen { 0% { background-position: 120% 0; } 100% { background-position: -20% 100%; } }
.grade-section { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; padding: 6px 8px 2px; border-bottom: 2px solid var(--gc); margin-top: 6px; font-size: 13px; color: var(--gc); background: linear-gradient(to right, var(--gb), transparent); }
.grade-section:first-child { margin-top: 0; }
.card-fav { position: absolute; top: 2px; left: 5px; color: #e84393; font-size: 14px; text-shadow: 0 1px 2px rgba(255,255,255,.8); }
.xl-btn.fav.on { border-color: #e84393; color: #e84393; }
.card-quote { font-size: 10.5px; color: #555; font-style: italic; text-align: center; margin-top: 3px; line-height: 1.3; }
.detail-line.trait { color: #1f5fa8; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.level-row { display: flex; align-items: center; gap: 4px; margin: 4px 0 6px; flex-wrap: wrap; }
.star-perks { display: flex; flex-wrap: wrap; gap: 4px; }
.star-perks .perk { font-size: 10.5px; padding: 1px 6px; border: 1px solid #d9d9d9; color: #9a9a9a; background: #fafafa; }
.star-perks .perk.on { color: #7d5a00; border-color: #e6c97a; background: #fff7dd; }
.level-row .muted { margin-right: auto; }
.xl-btn.small { padding: 2px 7px; font-size: 11px; }
.promo-result { display: flex; gap: 16px; align-items: center; padding: 6px 2px; }
.promo-card canvas { image-rendering: pixelated; box-shadow: 0 4px 14px rgba(0,0,0,.25); animation: promo-pop .5s cubic-bezier(.2,1.4,.4,1); }
.promo-result.awaken .promo-card canvas { box-shadow: 0 0 0 3px #ffd166, 0 0 24px rgba(255,209,102,.8); }
.promo-lines h4 { margin: 0 0 8px; font-size: 15px; }
.promo-lines b { color: var(--xl-green); }
@keyframes promo-pop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.promo-box { margin-top: 10px; padding: 10px; background: #fafafa; border: 1px solid var(--line); }
.promo-box h4 { margin: 0 0 4px; font-size: 13px; }
.promo-options { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.promo-opt { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 128px; text-align: center; }
.promo-opt canvas { width: 96px; height: auto; image-rendering: pixelated; }
.ok { color: var(--xl-green); font-weight: 600; } .bad { color: #c0392b; font-weight: 600; }

#quest-table tr.done td { background: var(--xl-green-light); }
#quest-table tr.claimed td { color: #999; }
.quest-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.ad-box { display: flex; align-items: center; gap: 12px; padding: 6px 10px; flex-wrap: wrap; }
.ad-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 20; display: flex; align-items: center; justify-content: center; color: #fff; }
.ad-overlay[hidden] { display: none; }
.ad-card { text-align: center; }
.ad-title { font-size: 15px; letter-spacing: .1em; opacity: .8; }
.ad-count { font-size: 72px; font-weight: 700; margin: 8px 0; }
.ad-card .muted { color: #bbb; }

/* ------------------------------------------------------------ dialogs -- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; z-index: 10; }
.modal[hidden] { display: none; }
.dialog { width: min(92vw, 560px); background: #fff; border: 1px solid #888; box-shadow: 0 8px 30px rgba(0,0,0,.3); font-size: 13px; }
.dialog-title { background: var(--panel); border-bottom: 1px solid var(--line-dark); padding: 8px 12px; font-weight: 600; }
.dialog-body { padding: 12px; max-height: 70vh; overflow: auto; }
.dialog-body ul { margin: 6px 0 0 16px; padding: 0; } .dialog-body li { margin: 3px 0; }
.dialog-actions { display: flex; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.toast { position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%); background: #323130; color: #fff; padding: 7px 14px; border-radius: 3px; font-size: 12.5px; z-index: 11; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.toast[hidden] { display: none; }



/* ------------------------------------------------------------ card detail (record layout) -- */
.dialog:has(.dt) { width: min(94vw, 720px); }
.dt { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.dt .detail-art { width: 220px; }
.dt-info { min-width: 0; }
.dt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 2px solid var(--xl-green); margin-bottom: 8px; }
.dt-grade { color: #fff; font-weight: 700; font-size: 12px; padding: 1px 7px; }
.dt-name { font-size: 16px; }
.dt-nick { color: var(--muted); font-size: 12px; }
.dt-role { color: #444; font-size: 12px; margin-left: auto; }
.dt-head .xl-btn.fav { padding: 0 6px; font-size: 13px; }
.dt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dt-table th { text-align: left; width: 82px; background: #f3f3f3; color: #555; font-weight: 600; border: 1px solid var(--line); padding: 5px 8px; font-size: 12px; white-space: nowrap; }
.dt-table td { border: 1px solid var(--line); padding: 5px 8px; vertical-align: middle; }
.dt-table td.val { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.dt-table td.val .hint { font-weight: 400; color: var(--muted); font-size: 11px; margin-top: 2px; white-space: normal; }
.dt-table td.ctl { text-align: right; white-space: nowrap; width: 1%; }
.ctl-group { display: inline-flex; gap: 3px; }
.dt-sections { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.dt-sec { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 12.5px; padding: 6px 8px; border: 1px solid var(--line); background: #fafafa; }
.dt-sec > b { color: #555; font-size: 11.5px; min-width: 44px; }
.dt-sec .nm { font-weight: 700; }
.dt-sec.trait .nm { color: #1f5fa8; } .dt-sec.skill .nm { color: #6c3483; }
.dt-sec .ds { color: #444; }
.dt-sec .lock { color: #b03a2e; }
.dt-sec.perks { gap: 4px; }
.dt-sec.profile { display: block; }
.dt-sec.profile .bio { color: #444; } .dt-sec.profile .quote { color: var(--muted); font-style: italic; margin-top: 2px; }
.dt-actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ------------------------------------------------- roster autofilter bar -- */
.filter-bar { display: flex; align-items: center; gap: 12px; padding: 5px 10px; background: #fff; border-bottom: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.filter-bar .filter-label { color: var(--xl-green); font-weight: 600; }
.filter-bar label { display: inline-flex; align-items: center; gap: 4px; color: #555; }
.filter-bar select { font: inherit; font-size: 12px; padding: 1px 4px; border: 1px solid var(--line-dark); background: #fff; color: #222; border-radius: 0; }
.filter-bar .xl-btn.small { padding: 1px 8px; font-size: 11.5px; }
.filter-bar.on { background: #eef6ee; }
.filter-empty { grid-column: 1 / -1; padding: 24px; text-align: center; color: var(--muted); font-size: 12.5px; }

/* --------------------------------------------------- party pane synergy -- */
.pane-synergy { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 8px; font-size: 11.5px; color: #555; min-height: 18px; }
.pane-synergy .syn { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border: 1px solid var(--sc, #999); color: var(--sc, #444); background: #fff; }
.pane-synergy .syn b { font-weight: 700; }
.pane-synergy .syn.off { border-style: dashed; color: #999; }

/* --------------------------------------------------------- 오류_도감 sheet -- */
#codex-table td:first-child { width: 72px; padding: 2px 6px; }
#codex-table .thumb { width: 64px; height: 64px; image-rendering: pixelated; display: block; }
#codex-table tr.unknown { color: #999; }
#codex-table tr.unknown .thumb { filter: brightness(0) opacity(.28); }
#codex-table .tag { display: inline-block; padding: 0 5px; border: 1px solid var(--line-dark); font-size: 11px; margin-right: 4px; color: #444; background: #fafafa; }
#codex-table .tag.boss { border-color: #c0392b; color: #c0392b; }
#codex-table .tag.ranged { border-color: #2b7cd3; color: #2b7cd3; }

.dt-div { display: inline-block; padding: 0 6px; border: 1px solid; font-size: 11px; line-height: 16px; background: #fff; }

/* ------------------------------------------------------- cloud save box -- */
.cloud-box { display: flex; flex-direction: column; gap: 6px; padding: 6px 0 0; font-size: 12.5px; max-width: 620px; }
.cloud-box label { display: flex; align-items: center; gap: 8px; }
.cloud-box input { flex: 1; font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid var(--line-dark); border-radius: 0; background: #fff; }
.cloud-actions { display: flex; gap: 6px; }
#cloud-status.ok { color: var(--xl-green); } #cloud-status.error { color: #c0392b; }
#rank-table tr.me td { background: #eef6ee; font-weight: 600; }
.xl-btn.small { padding: 1px 8px; font-size: 11.5px; }

/* -------------------------------------------------------- 오늘의 픽업 -- */
.pickup-box { margin: 0 0 8px; border: 1px solid var(--line-dark); background: linear-gradient(135deg, #fdf6e3, #fff 60%); }
.pickup-head { padding: 5px 10px; font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); color: #7d5a00; display: flex; gap: 10px; align-items: baseline; }
.pickup-cards { display: flex; gap: 12px; padding: 8px 10px; }
.pickup-cards .card { position: relative; cursor: pointer; }
.pickup-cards .pickup-tag { position: absolute; top: 4px; left: 4px; padding: 0 6px; font-size: 10.5px; font-weight: 700; color: #fff; background: #d4a017; }
.pickup-cards .pickup-owned { position: absolute; bottom: 42px; right: 4px; font-size: 10.5px; color: #fff; background: rgba(0,0,0,.55); padding: 0 5px; }
.gacha-log .pickup { color: #b7950b; font-weight: 600; }

.rb-btn.active { background: #d5e8d4; box-shadow: inset 0 0 0 1px #8fbc8f; }

.pickup-head .spacer { flex: 1; }
.pickup-foot { padding: 0 10px 8px; }
.pickup-cards .card-col { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
.pickup-cards .xl-btn.spark { font-size: 11px; padding: 2px 6px; }
.pickup-cards .spark-bar { height: 4px; background: #e6e6e6; position: relative; }
.pickup-cards .spark-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: #d4a017; }
.pickup-cards .spark-txt { font-size: 10.5px; color: #666; text-align: center; }

/* ---------------------------------------------------------- account -- */
.account-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: #fff; height: 32px; padding: 0 6px; font: inherit; }
.account-btn:hover { background: rgba(255,255,255,.15); }
.avatar img { width: 24px; height: 24px; border-radius: 50%; display: block; object-fit: cover; }
.account-row { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.account-card { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 1px solid var(--line-dark); background: #fff; }
.account-pic { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #ddd; }
.gsi-button:empty::after { content: 'Google 로그인 버튼을 불러오는 중…'; color: #888; font-size: 12px; }
.gsi-button.unconfigured::after { content: '서버/Google 클라이언트 ID가 설정되지 않았습니다 (index.html · EXCEL_HEROES_CLOUD)'; color: #b03a2e; font-size: 12px; }
.save-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0; }
.save-choice .opt { border: 1px solid var(--line-dark); padding: 10px; background: #fff; }
.save-choice .opt b { display: block; margin-bottom: 4px; }

.xl-table .icon.round { border-radius: 50%; width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; }

/* ------------------------------------------------------- 사내 메신저 -- */
.story-layout { display: grid; grid-template-columns: 300px 1fr; gap: 0; }
.story-list tbody tr { cursor: pointer; } .story-list tbody tr.locked { color: #999; cursor: default; } .story-list tbody tr.active td { background: #eef6ee; font-weight: 600; }
#story-log tr.sys td { color: #666; font-style: italic; background: #fafafa; }
#story-log tr.me td { background: #f3faf3; }
#story-log td.who { white-space: nowrap; } #story-log td.who img { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; image-rendering: pixelated; }
#story-log tr.typing td { color: #999; }
.story-reward { padding: 8px 10px; color: var(--xl-green); font-weight: 600; }
/* ------------------------------------------------------- 호감도 -- */
.dt-sec.affection .hearts { letter-spacing: 1px; color: #e84393; } .dt-sec.affection .hearts .off { color: #ddd; }
.dt-sec.affection .aff-bar { height: 5px; background: #eee; margin: 4px 0; } .dt-sec.affection .aff-bar i { display: block; height: 100%; background: #e84393; }
.dt-sec.affection .secret { margin-top: 4px; color: #444; } .dt-sec.affection .line2 { color: #7d3c98; font-style: italic; }
.dt-sec.affection .locked { color: #999; }
.card-heart { position: absolute; right: 4px; top: 4px; font-size: 11px; color: #e84393; background: rgba(255,255,255,.9); padding: 0 4px; }
/* ------------------------------------------------------- S 스플래시 -- */
.splash { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(255,250,230,.96), rgba(255,255,255,.98)); cursor: pointer; animation: splash-in .35s ease-out; }
.splash img { max-height: 92%; max-width: 60%; object-fit: contain; filter: drop-shadow(0 12px 30px rgba(0,0,0,.35)); animation: splash-art .6s cubic-bezier(.2,.8,.2,1); }
.splash .cap { position: absolute; left: 6%; bottom: 10%; max-width: 40%; }
.splash .cap b { display: block; font-size: 30px; color: #b7950b; letter-spacing: 1px; } .splash .cap .nm { font-size: 22px; font-weight: 700; color: #222; } .splash .cap .q { margin-top: 8px; font-size: 14px; color: #555; font-style: italic; }
.splash .hint { position: absolute; right: 16px; bottom: 12px; font-size: 11px; color: #888; }
@keyframes splash-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes splash-art { from { transform: translateX(40px) scale(.94); opacity: 0 } to { transform: none; opacity: 1 } }
