/* ============================================================
   $Alexia — floor/floor.css (v2 · Drain Sessions)
   The game screen. Registry plum, portrait panel, one-handed
   action bar, gacha-styled taunt cards and overlays.
   ============================================================ */

:root {
    --bg: rgb(12, 0, 12);
    --ink: rgb(190, 105, 175);
    --ink-strong: #ffe3f6;
    --title-a: #d455b8;
    --title-b: #c21590;
    --title-c: #7e46c2;
    --dark: #6d0060;
    --mid: #d81aa4;
    --light: #f088d2;
    --line: rgba(215, 70, 180, 0.55);
    --line-soft: rgba(215, 70, 180, 0.30);
    --soft: rgba(140, 0, 115, 0.22);
    --glow: rgba(220, 30, 180, 0.55);
    --down: #8d95a5;
    --gold: #ffd278;
    --mono: 'JetBrains Mono', 'Consolas', monospace;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    color: var(--ink);
    background:
        radial-gradient(ellipse at 50% -10%, rgba(110, 0, 92, 0.30), transparent 55%),
        radial-gradient(ellipse at 50% 110%, rgba(70, 0, 60, 0.26), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

.tape { position: sticky; top: 0; z-index: 10; display: flex; align-items: stretch; border-bottom: 1px solid var(--line-soft); background: rgba(6, 0, 6, 0.92); backdrop-filter: blur(6px); }
.tapePrice {
    flex: 0 0 auto;
    display: flex; align-items: center;
    padding: 8px 16px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-strong);
    white-space: nowrap;
    border-right: 1px solid var(--line-soft);
    text-shadow: 0 0 8px var(--glow);
}
.tapeScroller {
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}
.tapeTrack { display: inline-block; padding: 8px 0; will-change: transform; }
.tapeItem { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); opacity: 0.85; }
.tapeItem::after { content: "  ✦  "; opacity: 0.5; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 26px 90px; }

.masthead { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 30px 0 16px; }
.masthead h1 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic; font-weight: 500;
    font-size: clamp(32px, 4.6vw, 54px);
    background: linear-gradient(100deg, var(--title-a), var(--title-b) 25%, var(--title-c) 50%, var(--title-b) 75%, var(--title-a));
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    animation: shimmer 7s linear infinite;
    filter: drop-shadow(0 0 22px var(--glow));
}
@keyframes shimmer { from { background-position: 0% center; } to { background-position: -200% center; } }
.sub { margin: 8px 0 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; letter-spacing: 0.28em; opacity: 0.75; }

.bigQuote { text-align: right; }
.bigQuote b { display: block; font-family: var(--mono); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); color: var(--light); text-shadow: 0 0 22px var(--glow); line-height: 1; }
.delta { font-family: var(--mono); font-size: 13px; margin-right: 8px; }
.delta.up { color: var(--light); } .delta.down { color: var(--down); }
.regimeChip { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; padding: 3px 10px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--light); }
.regimeChip.mood { color: var(--gold); border-color: rgba(255, 210, 120, 0.35); }
.regimeChip.clock { color: var(--ink-strong); font-family: var(--mono); letter-spacing: 0.1em; }

.desk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
/* the left rail: chart on top, buttons right under the graph — the right
   panel's height never pushes the action bar down */
.deskMain { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chartCard { position: relative; border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(180deg, var(--soft), rgba(0, 0, 0, 0.16)); box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.35); padding: 10px; }
#chart { display: block; width: 100%; height: 400px; }

.panel { display: flex; flex-direction: column; gap: 14px; }

.card { border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(180deg, var(--soft), rgba(0, 0, 0, 0.14)); padding: 16px 18px 14px; }
.card h3 { margin: 0 0 10px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 600; font-size: 18px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--light); text-shadow: 0 0 12px var(--glow); }

/* Alexia panel */
.alexiaCard { padding: 10px; }
.portraitWrap { border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); box-shadow: inset 0 0 30px rgba(0,0,0,.5); }
/* day posters are 832×1216 — the frame keeps the ratio, nothing crops */
.portraitWrap img { display: block; width: 100%; aspect-ratio: 832 / 1216; height: auto; object-fit: cover; object-position: top center; filter: saturate(1.05); }
.alexiaCard.flash .portraitWrap { animation: herFlash .8s ease; }
@keyframes herFlash { 0% { box-shadow: 0 0 0 rgba(220,30,180,0); } 30% { box-shadow: 0 0 46px rgba(220,30,180,0.9); } 100% { box-shadow: 0 0 0 rgba(220,30,180,0); } }
.alexiaMeta { text-align: center; padding: 10px 4px 4px; }
.alexiaMeta span { display: block; font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alexiaMeta b { display: block; font-family: var(--mono); font-size: 22px; color: var(--gold); text-shadow: 0 0 14px rgba(255, 210, 120, 0.4); }
.herAccount { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line-soft); display: grid; gap: 4px; }
.haRow { display: flex; justify-content: space-between; align-items: baseline; }
.haRow span { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.haRow b { font-family: var(--mono); font-size: 13px; color: var(--ink-strong); font-weight: 400; }
.haRow b.pos { color: #96e6af; }
.haRow b.neg { color: var(--down); }
.haRow b#hpShares { font-size: 11px; opacity: 0.8; }
.herEdge { margin-top: 10px; padding: 8px 10px; border: 1px solid rgba(255, 210, 120, 0.3); border-radius: 10px; background: rgba(255, 210, 120, 0.06); display: flex; justify-content: space-between; align-items: baseline; }
.herEdge span { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); opacity: 0.85; }
.herEdge b { font-family: var(--mono); font-size: 16px; color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 120, 0.35); }

.port { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.port dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.65; align-self: center; }
.port dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--ink-strong); }
.port dd.pos { color: var(--light); } .port dd.neg { color: var(--down); }

/* one-handed action bar */
.actionBar { display: grid; grid-template-columns: 1fr 1.4fr 0.6fr; gap: 14px; margin: 0; }
.actionBar.disabled { opacity: 0.45; pointer-events: none; filter: saturate(0.5); }
/* the desk grows in: adapt the grid to whatever groups exist */
.actionBar:has(> #bookGroup.hidden):has(> #utilGroup.hidden) {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}
.actionBar:not(:has(> #bookGroup.hidden)):has(> #utilGroup.hidden) {
    grid-template-columns: 1fr 1.4fr;
}
.actionBar:has(> #bookGroup.hidden):not(:has(> #utilGroup.hidden)) {
    grid-template-columns: minmax(0, 640px) 0.6fr;
}
.abGroup { border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(180deg, var(--soft), rgba(0, 0, 0, 0.14)); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.abLabel { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.6; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg.three { grid-template-columns: 1fr 1fr 1fr; }
.segBtn { all: unset; box-sizing: border-box; text-align: center; cursor: pointer; padding: 8px 0; border-radius: 999px; border: 1px solid var(--line-soft); font-size: 11px; letter-spacing: 0.18em; color: var(--ink); transition: all 0.2s ease; }
.segBtn.active { color: var(--ink-strong); border-color: var(--light); box-shadow: 0 0 14px var(--glow); }
.chips { display: flex; gap: 6px; }
.chipBtn { all: unset; box-sizing: border-box; cursor: pointer; flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; border: 1px dashed var(--line-soft); font-family: var(--mono); font-size: 12px; color: var(--ink); transition: all 0.2s ease; }
.chipBtn:hover, .chipBtn.active { color: var(--ink-strong); border-style: solid; border-color: var(--mid); background: rgba(216, 26, 164, 0.12); }
.bigBtn { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; padding: 13px 0; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(216, 26, 164, 0.30), rgba(109, 0, 96, 0.30)); color: var(--ink-strong); font-weight: 600; font-size: 13px; letter-spacing: 0.22em; text-shadow: 0 0 10px var(--glow); transition: all 0.2s ease; }
.bigBtn:hover { box-shadow: 0 0 26px var(--glow); transform: translateY(-1px); }
.bigBtn.buy { } .bigBtn.bet { } 
.bigBtn.sell, .bigBtn.leash { border-color: rgba(141, 149, 165, 0.5); background: linear-gradient(180deg, rgba(90, 98, 112, 0.30), rgba(20, 22, 28, 0.30)); text-shadow: none; }
.bigBtn.armed { animation: armPulse 1s ease-in-out infinite; }
@keyframes armPulse { 0%,100% { box-shadow: 0 0 8px var(--glow); } 50% { box-shadow: 0 0 26px var(--glow); } }
.bigBtn.spent { opacity: 0.35; pointer-events: none; }
.abGroup.disabled { opacity: 0.45; pointer-events: none; filter: saturate(0.5); }
/* her credit: the loan lives in the narrow column */
.creditRow { display: flex; flex-direction: column; gap: 8px; }
.creditLabel { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); opacity: 0.6; }
.creditLabel.inDebt { color: var(--gold); opacity: 1; text-shadow: 0 0 10px rgba(255, 210, 120, 0.35); }
.creditBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bigBtn.credit { border-color: rgba(255, 210, 120, 0.45); }
/* the leash: her exit clock, pinned across the desk she holds */
.leashTimer { display: flex; flex-direction: column; gap: 5px; padding: 2px 0; }
.leashTimerLabel { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); opacity: 0.85; }
.leashTimerLabel b { font-family: var(--mono); color: var(--ink-strong); }
.leashTimerTrack { height: 4px; border-radius: 4px; overflow: hidden; background: rgba(141, 149, 165, 0.25); }
.leashTimerFill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--mid), var(--light)); }
.leashTimer.urgent .leashTimerLabel, .leashTimer.urgent .leashTimerLabel b { color: var(--down); }
.leashTimer.urgent .leashTimerFill { background: var(--down); animation: leashPulse 0.8s ease-in-out infinite; }
@keyframes leashPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.bigBtn.solo {
    font-size: 17px;
    padding: 22px 0;
    letter-spacing: 0.3em;
    animation: soloPulse 2.6s ease-in-out infinite;
}
@keyframes soloPulse { 0%,100% { box-shadow: 0 0 10px var(--glow); } 50% { box-shadow: 0 0 34px var(--glow); } }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.tab { all: unset; box-sizing: border-box; cursor: pointer; padding: 7px 20px; border-radius: 999px; border: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--soft), rgba(0, 0, 0, 0.1)); color: var(--ink); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; transition: all 0.25s ease; }
.tab:hover { color: var(--ink-strong); }
.tab.active { color: var(--ink-strong); border-color: var(--light); box-shadow: 0 0 16px var(--glow); }
.tabBody.hidden, .hidden { display: none !important; }

/* feed */
.feed { display: flex; flex-direction: column; gap: 8px; }
.feedRow { display: flex; gap: 14px; align-items: baseline; padding: 9px 16px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0, 0, 0, 0.18); }
.feedRow time { font-family: var(--mono); font-size: 10px; opacity: 0.55; white-space: nowrap; }
.kindChip { font-size: 8.5px; letter-spacing: 0.18em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.kindChip.news, .kindChip.regime { color: rgba(170, 190, 235, 0.85); }
.kindChip.whale { color: rgba(150, 230, 175, 0.85); }
.kindChip.trade { color: var(--light); }
.kindChip.skim, .kindChip.settle, .kindChip.split { color: rgba(255, 110, 130, 0.9); }
.kindChip.event { color: rgba(255, 200, 110, 0.92); }
.kindChip.taunt { color: rgba(235, 205, 255, 0.9); }
.feedRow p { margin: 0; font-size: 12.5px; line-height: 1.5; }

/* bet rows */
.betList { display: flex; flex-direction: column; gap: 6px; }
.betRow { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: rgba(0, 0, 0, 0.18); font-family: var(--mono); font-size: 11.5px; }
.betRow .dir.up { color: var(--light); } .betRow .dir.down { color: var(--down); }
.betRow .meta { opacity: 0.65; font-size: 10.5px; }
.betRow .right { margin-left: auto; text-align: right; }
.betRow.won { border-color: rgba(240, 136, 210, 0.5); }
.betRow.lost { border-color: rgba(141, 149, 165, 0.4); opacity: 0.8; }
.betStatus { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; padding: 2px 9px; border: 1px solid currentColor; border-radius: 999px; }
.betStatus.open { color: var(--light); } .betStatus.won { color: var(--light); } .betStatus.lost { color: var(--down); }
.drainRow .amt { color: var(--gold); }
.drainRow.mercyRow .amt { color: rgba(150, 230, 175, 0.9); }

.note { font-size: 11.5px; line-height: 1.6; opacity: 0.65; margin: 0 0 12px; }
.emptyNote { text-align: center; padding: 22px 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; opacity: 0.55; }

/* settings */
.setGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.setGrid label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.75; }
.setGrid input { all: unset; box-sizing: border-box; width: 100%; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(0, 0, 0, 0.32); color: var(--ink-strong); font-family: var(--mono); font-size: 13px; }
.setGrid input:focus { border-color: var(--mid); box-shadow: 0 0 14px var(--glow); }
.stRow { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.b { all: unset; box-sizing: border-box; text-align: center; cursor: pointer; padding: 9px 22px; border-radius: 999px; border: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--soft), rgba(0, 0, 0, 0.1)); color: var(--ink); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; transition: all 0.25s ease; }
.b:hover { color: var(--ink-strong); border-color: var(--mid); box-shadow: 0 0 14px var(--glow); }
.b.ghostB { opacity: 0.8; }
.hiddenFile { display: none; }

/* overlays */
.overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(4, 0, 4, 0.82); backdrop-filter: blur(6px); }
.overlayCard { width: min(520px, calc(100vw - 40px)); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #1c0118, #0c000c); box-shadow: 0 0 60px var(--glow); padding: 28px 30px 24px; text-align: center; max-height: calc(100vh - 60px); overflow: auto; }
.overlayCard h2 { margin: 0 0 8px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 30px; color: var(--ink-strong); text-shadow: 0 0 16px var(--glow); }
.overlayCard h3 { margin: 0 0 10px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; color: var(--ink-strong); text-shadow: 0 0 14px var(--glow); }

/* outfit reveal */
.revealWrap { margin: 14px 0; }
.revealCard { position: relative; display: inline-block; border-radius: 12px; overflow: hidden; border: 1px solid var(--light); box-shadow: 0 0 34px var(--glow); animation: revealPop .6s cubic-bezier(0.22, 1, 0.36, 1); }
.revealCard img { display: block; width: 190px; aspect-ratio: 832 / 1216; height: auto; object-fit: cover; object-position: top center; }
.revealRarity { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-strong); background: rgba(12, 0, 12, 0.85); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 12px; white-space: nowrap; }
@keyframes revealPop { from { transform: scale(0.6) rotate(-4deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

/* event card */
.eventCard .rarityTag { display: inline-block; font-size: 10px; letter-spacing: 0.24em; padding: 3px 14px; border: 1px solid currentColor; border-radius: 999px; margin-bottom: 10px; }
.eventCard .rarityTag.c { color: rgba(170, 178, 195, 0.9); }
.eventCard .rarityTag.r { color: rgba(220, 165, 110, 0.9); }
.eventCard .rarityTag.sr { color: rgba(235, 205, 255, 0.95); box-shadow: 0 0 14px rgba(200, 140, 255, 0.35); }
.eventCard .rarityTag.ssr { color: rgba(255, 110, 150, 0.95); box-shadow: 0 0 18px rgba(255, 70, 120, 0.45); }
#evText { font-size: 13.5px; line-height: 1.65; margin: 8px 0 14px; }
.eventTimer { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; margin-bottom: 14px; }
.eventTimerFill { height: 100%; width: 100%; background: linear-gradient(90deg, var(--mid), var(--light)); box-shadow: 0 0 10px var(--glow); }
.eventTimer.urgent .eventTimerFill { background: linear-gradient(90deg, #a13535, #e06a9a); box-shadow: 0 0 12px rgba(224, 106, 154, 0.6); }
.eventTimer.urgent { animation: evPulse 0.6s ease-in-out infinite alternate; }
@keyframes evPulse { from { opacity: 1; } to { opacity: 0.55; } }
.eventBtns { display: flex; flex-direction: column; gap: 8px; }
.eventBtns .bigBtn.alt { border-color: rgba(141, 149, 165, 0.5); background: linear-gradient(180deg, rgba(90, 98, 112, 0.30), rgba(20, 22, 28, 0.30)); text-shadow: none; }

/* settlement */
/* settlement art is 1024×1024 — a square in a square frame, uncropped */
.settlePortrait img { width: 150px; height: 150px; object-fit: contain; object-position: top center; border-radius: 12px; border: 1px solid var(--light); box-shadow: 0 0 30px var(--glow); background: rgba(0,0,0,0.3); }
.duelCols { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 16px auto; }
.duelCol { border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px 14px 10px; text-align: left; background: rgba(0, 0, 0, 0.22); }
.duelCol h4 { margin: 0 0 8px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; letter-spacing: 0.18em; text-transform: uppercase; }
.duelCol.you h4 { color: var(--light); text-shadow: 0 0 10px var(--glow); }
.duelCol.her { border-color: rgba(255, 210, 120, 0.35); }
.duelCol.her h4 { color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 120, 0.35); }
.duelCol dl { margin: 0; display: grid; gap: 5px; }
.duelCol dl div { display: flex; justify-content: space-between; gap: 10px; }
.duelCol dt { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; align-self: center; }
.duelCol dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-strong); }
.duelCol dd.pos { color: #96e6af; }
.duelCol dd.neg { color: var(--down); }
.duelCol.you dd.neg2 { color: var(--down); opacity: 0.85; }
.duelSpread { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0 4px; min-width: 76px; }
.duelSpread span { font-size: 8.5px; letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.55; }
.duelSpread b { font-family: var(--mono); font-size: 15px; color: var(--ink-strong); }
.duelSpread b.pos { color: #96e6af; }   /* you ahead */
.duelSpread b.neg { color: var(--gold); } /* she ahead */
.settleGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; text-align: left; margin: 16px auto; max-width: 360px; }
.settleGrid dt { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.6; }
.settleGrid dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 14px; color: var(--ink-strong); }
.settleGrid dd.neg { color: var(--down); } .settleGrid dd.pos { color: var(--light); }
.tributeDue { margin: 6px 0 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(216, 26, 164, 0.22), rgba(0, 0, 0, 0.2)); box-shadow: inset 0 0 30px rgba(216, 26, 164, 0.15); }
.tributeDue span { display: block; font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--light); }
.tributeDue b { display: block; font-family: var(--mono); font-weight: 600; font-size: 46px; color: var(--ink-strong); text-shadow: 0 0 24px var(--glow); line-height: 1.2; }
.finalTaunt { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 16px; color: var(--light); opacity: 0.9; margin: 0 0 16px; }

/* taunt toasts — gacha rarity in the GachAlexia palette */
.tauntStack { position: absolute; top: 18px; right: 18px; z-index: 70; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: 320px; }
.tauntCard { min-width: 250px; max-width: 320px; padding: 12px 16px 11px; border-radius: 12px; background: rgba(16, 1, 14, 0.98); border: 1px solid; animation: tauntIn .45s cubic-bezier(0.22, 1, 0.36, 1); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.tauntCard .rar { display: block; font-size: 9px; letter-spacing: 0.3em; margin-bottom: 4px; }
.tauntCard p { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15.5px; line-height: 1.4; }
.tauntCard.c { border-color: rgba(170, 178, 195, 0.6); } .tauntCard.c .rar { color: rgba(170, 178, 195, 0.9); } .tauntCard.c p { color: #c9cdd8; }
.tauntCard.r { border-color: rgba(220, 165, 110, 0.8); } .tauntCard.r .rar { color: rgba(220, 165, 110, 0.95); } .tauntCard.r p { color: #ecd2ae; }
.tauntCard.sr { border-color: rgba(200, 140, 255, 0.8); box-shadow: 0 0 24px rgba(200, 140, 255, 0.3); } .tauntCard.sr .rar { color: rgba(220, 180, 255, 0.95); } .tauntCard.sr p { color: #ecdcff; }
.tauntCard.ssr { border-color: rgba(255, 110, 150, 0.9); box-shadow: 0 0 34px rgba(255, 70, 120, 0.5); } .tauntCard.ssr .rar { color: rgba(255, 130, 165, 0.95); } .tauntCard.ssr p { color: #ffd9e4; }
@keyframes tauntIn { from { transform: translateX(60px) scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }
.tauntCard.bye { transition: all 0.4s ease; opacity: 0; transform: translateY(-10px); }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 80; padding: 10px 26px; border: 1px solid var(--line); border-radius: 999px; background: rgba(20, 0, 17, 0.95); color: var(--ink-strong); font-size: 12px; box-shadow: 0 0 30px var(--glow); opacity: 0; pointer-events: none; transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 980px) {
    .desk { grid-template-columns: 1fr; }
    .actionBar { grid-template-columns: 1fr; }
    .bigQuote { text-align: left; }
    #chart { height: 300px; }
}
/* ---- v3.13 · card art: event pictures, day posters, settlement art ---- */
.evArt { margin: 0 0 12px; }
/* event art is 1024×1024 — square frame, contain, nothing lost */
.evArt img { display: block; width: 100%; max-height: 34vh; object-fit: contain; background: rgba(0,0,0,0.3);
             border-radius: 14px; border: 1px solid #3a3020; }
.eventCard #evText { white-space: pre-line; }
.dayArt { margin: 0 0 12px; }
/* day posters are 832×1216 portrait — contain the whole picture */
.dayArt img { display: block; width: 100%; max-height: 30vh; object-fit: contain; background: rgba(0,0,0,0.3);
              border-radius: 14px; border: 1px solid #3a3020; }

/* ---- v3.15 · the week settles ---- */
.settlePortrait img { width: min(420px, 72vw); height: min(420px, 48vh); }
.menuCard { max-width: 460px; }
.menuStats { display: grid; gap: 6px; margin: 12px 0 4px; }
.menuStats div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line-soft); padding: 5px 2px 4px; }
.menuStats span { color: var(--dim); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.menuStats b { font-family: 'Cormorant Garamond', serif; font-size: 17px; }
.menuSettings { display: grid; gap: 8px; margin: 14px 0 6px; text-align: left; }
.menuSettings label { display: grid; gap: 4px; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.menuSettings input { background: rgba(0,0,0,0.3); border: 1px solid var(--line-soft); color: var(--ink); border-radius: 8px; padding: 8px 10px; font-size: 14px; outline: none; }
.menuSettings input:focus { border-color: var(--gold-dim, #8a6a34); }
.toolHelp { margin: 12px 0 4px; padding: 12px 14px; border: 1px solid rgba(255, 210, 120, 0.35); border-radius: 12px; background: rgba(0,0,0,0.25); text-align: left; }
.toolHelp .toolTag { font-size: 10px; letter-spacing: 0.22em; color: var(--gold); text-transform: uppercase; }
.toolHelp h3 { margin: 6px 0 4px; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 21px; letter-spacing: 0.12em; color: var(--gold); text-shadow: 0 0 10px rgba(255, 210, 120, 0.35); }
.toolHelp p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink); }
.levyNote { color: #f0a6cf; font-style: italic; }
