/* run.css — owner A9. Run screens: map, rewards, shop, rest, treasure, event, muse, scene, act transition.
 * Everything here must look premium with ZERO image assets (gradients, SVG ornament, motes, type). */

/* ---------- act tint tokens ---------- */
[data-act="1"] { --a1: #20442b; --a2: #0b1a10; --ag: #8fe08a; --ac: #d2305a; --at: rgba(120, 200, 110, .14); }
[data-act="2"] { --a1: #3a1f68; --a2: #130a26; --ag: #f0dca8; --ac: #b184ff; --at: rgba(160, 120, 255, .15); }
[data-act="3"] { --a1: #5c0f1c; --a2: #1a0508; --ag: #ff8a4a; --ac: #ff3b4a; --at: rgba(255, 70, 60, .15); }
[data-act="4"] { --a1: #5a1450; --a2: #1c0718; --ag: #fff0cf; --ac: #ff4fb6; --at: rgba(255, 120, 220, .16); }

.rx-screen { position: absolute; inset: 0; overflow: clip; color: var(--text); }
.rx-bg { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 55% at 50% 38%, var(--a1, #2e1838) 0%, transparent 70%),
  radial-gradient(ellipse 120% 90% at 50% 120%, rgba(255, 79, 139, .16), transparent 60%),
  linear-gradient(180deg, var(--a2, #0d0812) 0%, #07040a 100%); background-size: cover; background-position: center; }
.rx-bg.has-art { background-size: cover; background-position: center; }
.rx-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, rgba(3, 1, 6, .8) 100%); }
.rx-divider { display: flex; align-items: center; gap: 12px; color: var(--gold); margin: 14px 0; }
.rx-divider i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.rx-divider b { font-size: 14px; text-shadow: var(--glow-gold); }
.glyph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.glyph svg { width: 100%; height: 100%; }

/* floating motes / steam */
.rx-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.rx-motes i { position: absolute; bottom: -10%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 160, .95), rgba(255, 120, 160, .0) 70%); animation: rxRise linear infinite; }
.rx-motes.steam i { background: radial-gradient(circle, rgba(255, 235, 245, .28), rgba(255, 200, 230, 0) 68%); filter: blur(10px); bottom: -25%; }
.rx-motes.petal i { border-radius: 70% 0 70% 0; background: linear-gradient(135deg, #ff8fb4, #b3164f); }
@keyframes rxRise { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 12% { opacity: 1; } 100% { transform: translate3d(40px, -125vh, 0) scale(1.1); opacity: 0; } }

/* ======================================================================
   MAP
   ==================================================================== */
.map-screen .map-title { position: absolute; left: 36px; top: 300px; width: 370px; text-align: center; }
.mt-act { font-family: var(--f-head); font-size: 20px; letter-spacing: .5em; color: var(--ag, var(--gold)); text-indent: .5em; opacity: .9; }
.map-title h1 { font-family: var(--f-display); font-weight: 900; font-size: 46px; line-height: 1.12; margin: 12px 0 0; color: var(--gold-hi); text-shadow: 0 0 26px var(--ac, var(--rose)), 0 3px 0 rgba(0, 0, 0, .6); letter-spacing: .03em; }
.map-title p { font-size: 24px; line-height: 1.35; margin: 4px 0 18px; }
.mt-floor { font-family: var(--f-head); font-size: 20px; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; }
.mt-floor b { font-family: var(--f-num); color: var(--gold); font-size: 30px; margin-left: 6px; }
.mt-hint { margin-top: 22px; font-size: 16px; color: var(--text-faint); letter-spacing: .04em; }

.map-panel { position: absolute; left: 420px; top: 140px; width: 1080px; height: 920px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--a1, #2e1838) 0%, var(--a2, #130a1a) 55%, #0b0610 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 0 1px rgba(232, 193, 112, .35), 0 0 0 7px rgba(10, 5, 14, .9), 0 0 0 8px rgba(232, 193, 112, .22), inset 0 0 120px rgba(0, 0, 0, .65); }
.map-art { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .75; }
.map-tint { position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(ellipse 80% 40% at 50% 0%, var(--at), transparent 70%),
  radial-gradient(ellipse 90% 50% at 50% 100%, rgba(255, 79, 139, .1), transparent 70%),
  radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%); mix-blend-mode: normal; }
.map-frame { position: absolute; inset: 10px; border: 1px solid rgba(232, 193, 112, .3); border-radius: 10px; pointer-events: none; }
.map-frame i { position: absolute; width: 46px; height: 46px; border: 2px solid var(--gold); opacity: .8; }
.map-frame .c1 { left: -4px; top: -4px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.map-frame .c2 { right: -4px; top: -4px; border-left: none; border-bottom: none; border-top-right-radius: 12px; }
.map-frame .c3 { left: -4px; bottom: -4px; border-right: none; border-top: none; border-bottom-left-radius: 12px; }
.map-frame .c4 { right: -4px; bottom: -4px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }

.map-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; cursor: grab; pointer-events: auto;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%); }
.map-scroll.dragging { cursor: grabbing; }
.map-scroll::-webkit-scrollbar { width: 8px; }
.map-scroll::-webkit-scrollbar-thumb { background: rgba(232, 193, 112, .3); border-radius: 4px; }
.map-canvas { position: relative; margin: 0 auto; background-image:
  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='%23e8c170' stroke-opacity='.07' stroke-width='1.2'><path d='M60 4L116 60 60 116 4 60z'/><path d='M60 28L92 60 60 92 28 60z'/><circle cx='60' cy='60' r='4'/><path d='M0 0l12 12M120 0l-12 12M0 120l12-12M120 120l-12-12'/></svg>"); background-size: 120px 120px; }

.map-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.map-lines path { fill: none; stroke-linecap: round; }
.e-base { stroke: rgba(0, 0, 0, .35); stroke-width: 9; }
.e-dim { stroke: rgba(236, 214, 170, .5); stroke-width: 4.5; stroke-dasharray: .1 12; }
.e-dim.from-visited { stroke: rgba(236, 214, 170, .22); }
.e-reach { stroke: #ffe6b0; stroke-width: 6; stroke-dasharray: .1 12; filter: drop-shadow(0 0 5px rgba(255, 200, 120, .9)); animation: edgeFlow 1.2s linear infinite; }
.e-walk { stroke: #f6b9a2; stroke-width: 6; stroke-dasharray: .1 11; filter: drop-shadow(0 0 6px rgba(255, 130, 150, .85)); }
@keyframes edgeFlow { to { stroke-dashoffset: -12.1; } }

.map-gate { position: absolute; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.gate-arch { width: 210px; height: 60px; margin: 0 auto; border: 2px solid rgba(232, 193, 112, .5); border-bottom: none; border-radius: 105px 105px 0 0; background: linear-gradient(180deg, rgba(255, 79, 139, .18), transparent); box-shadow: 0 0 40px rgba(255, 79, 139, .2); }
.gate-text { margin-top: 8px; font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; font-size: 15px; color: var(--gold); opacity: .8; text-indent: .3em; }

.map-node { position: absolute; width: 80px; height: 80px; transform: translate(-50%, -50%); --nc: #e8c170; --nc2: #7a5a1c; color: var(--nc); }
.map-node.t-monster { --nc: #ff6a86; --nc2: #7a1330; }
.map-node.t-elite { --nc: #e060ff; --nc2: #511070; }
.map-node.t-event { --nc: #8fe1ff; --nc2: #14506a; }
.map-node.t-shop { --nc: #ffd77a; --nc2: #7a5410; }
.map-node.t-rest { --nc: #5ff0cf; --nc2: #0e5a4c; }
.map-node.t-treasure { --nc: #ffc34a; --nc2: #7a4a08; }
.mn-ring { position: absolute; inset: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 36% 28%, rgba(255, 255, 255, .16), transparent 42%), radial-gradient(circle at 50% 55%, #2a1432 0%, #120818 78%);
  border: 3px solid var(--nc); box-shadow: 0 0 0 4px rgba(10, 5, 14, .85), 0 0 0 5px rgba(232, 193, 112, .35), 0 8px 20px rgba(0, 0, 0, .7), inset 0 0 18px var(--nc2); transition: transform .22s var(--ease-out), box-shadow .22s, filter .22s; }
.mn-ico { width: 46px; height: 46px; filter: drop-shadow(0 0 6px var(--nc)); }
.map-node.future .mn-ring { filter: saturate(.55) brightness(.8); opacity: .85; }
.map-node.visited .mn-ring { border-color: #e9b79e; filter: saturate(.4) brightness(.62); box-shadow: 0 0 0 4px rgba(10, 5, 14, .85), 0 0 0 5px rgba(246, 185, 162, .45), 0 0 14px rgba(255, 130, 150, .35); }
.map-node.visited .mn-ico { color: #e9b79e; filter: none; }
.mn-check { position: absolute; right: -6px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: #2a1020; border: 2px solid #f6b9a2; color: #f6b9a2; padding: 4px; }
.mn-pulse { display: none; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--nc); opacity: 0; }
.map-node.reach { cursor: pointer; z-index: 5; }
.map-node.reach .mn-pulse { display: block; animation: nodePulse 1.8s ease-out infinite; }
.map-node.reach .mn-ring { animation: nodeBreathe 1.8s ease-in-out infinite; box-shadow: 0 0 0 4px rgba(10, 5, 14, .85), 0 0 0 5px var(--nc), 0 0 34px var(--nc), 0 8px 20px rgba(0, 0, 0, .7), inset 0 0 18px var(--nc2); }
.map-node.reach:hover .mn-ring, .map-node.kb .mn-ring { transform: scale(1.18); animation: none; box-shadow: 0 0 0 4px rgba(10, 5, 14, .85), 0 0 0 6px var(--nc), 0 0 50px var(--nc), 0 10px 26px rgba(0, 0, 0, .7), inset 0 0 18px var(--nc2); }
.map-node.chosen .mn-ring { transform: scale(.92); }
@keyframes nodePulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes nodeBreathe { 50% { transform: scale(1.06); } }
.map-node.cur .mn-ring { border-color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(10, 5, 14, .85), 0 0 0 6px var(--gold), 0 0 36px rgba(255, 79, 139, .9); filter: none; }
.mn-here { position: absolute; left: 50%; top: -34px; width: 28px; margin-left: -14px; color: var(--rose); filter: drop-shadow(0 0 8px var(--rose)); animation: hereBob 1.1s ease-in-out infinite; }
@keyframes hereBob { 50% { transform: translateY(7px); } }

/* boss node */
.map-node.t-boss { width: 150px; height: 190px; --nc: #ffcf6e; z-index: 4; }
.boss-halo { position: absolute; left: -60px; right: -60px; top: -40px; bottom: -20px; background: radial-gradient(ellipse at 50% 45%, rgba(255, 79, 139, .45), transparent 65%); animation: nodeBreathe 3.2s ease-in-out infinite; pointer-events: none; }
.boss-frame { position: absolute; inset: 0; border-radius: 75px 75px 16px 16px; border: 3px solid var(--gold); background: linear-gradient(180deg, #3a1442, #12060f); overflow: hidden; box-shadow: 0 0 0 5px rgba(10, 5, 14, .9), 0 0 0 6px rgba(232, 193, 112, .5), 0 14px 34px rgba(0, 0, 0, .7), inset 0 0 40px rgba(0, 0, 0, .6); transition: transform .25s var(--ease-out), box-shadow .25s; }
.boss-portrait { position: absolute; inset: 0; }
.boss-portrait .boss-img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.boss-portrait .rx-silhouette { width: 100%; height: 100%; padding-top: 20px; }
.boss-plate { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 12px); white-space: nowrap; text-align: center; padding: 7px 26px 9px; background: linear-gradient(180deg, rgba(40, 14, 40, .96), rgba(14, 5, 18, .96)); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 8px 22px rgba(0, 0, 0, .6); }
.boss-plate small { display: block; font-family: var(--f-head); font-size: 13px; letter-spacing: .35em; color: var(--rose); text-transform: uppercase; text-indent: .35em; }
.boss-plate b { font-family: var(--f-head); font-size: 24px; color: var(--gold-hi); letter-spacing: .06em; }
.map-node.t-boss.reach .boss-frame { animation: bossGlow 1.8s ease-in-out infinite; }
.map-node.t-boss.reach:hover .boss-frame { transform: scale(1.05); }
@keyframes bossGlow { 50% { box-shadow: 0 0 0 5px rgba(10, 5, 14, .9), 0 0 0 6px var(--gold), 0 0 60px rgba(255, 207, 110, .75), 0 14px 34px rgba(0, 0, 0, .7); } }
.map-node.t-boss.visited .boss-frame { filter: grayscale(.6) brightness(.6); }

.map-orb { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle, #fff, #ff9ec2 45%, rgba(255, 79, 139, 0) 72%); box-shadow: 0 0 24px 8px rgba(255, 79, 139, .75); opacity: 0; transition: left .55s var(--ease), top .55s var(--ease), opacity .2s; z-index: 6; pointer-events: none; }
.map-orb.on { opacity: 1; }

/* legend */
.map-legend { position: absolute; left: 1548px; top: 150px; width: 340px; padding: 24px 22px 22px; background: linear-gradient(180deg, rgba(34, 14, 40, .94), rgba(14, 6, 18, .94)); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.map-legend h3 { text-align: center; font-size: 26px; color: var(--gold-hi); letter-spacing: .2em; text-transform: uppercase; text-indent: .2em; }
.lg-list { display: flex; flex-direction: column; gap: 12px; }
.lg-row { display: flex; gap: 14px; align-items: flex-start; --nc: #e8c170; --nc2: #7a5a1c; }
.lg-row.t-monster { --nc: #ff6a86; --nc2: #7a1330; } .lg-row.t-elite { --nc: #e060ff; --nc2: #511070; } .lg-row.t-event { --nc: #8fe1ff; --nc2: #14506a; }
.lg-row.t-shop { --nc: #ffd77a; --nc2: #7a5410; } .lg-row.t-rest { --nc: #5ff0cf; --nc2: #0e5a4c; } .lg-row.t-treasure { --nc: #ffc34a; --nc2: #7a4a08; } .lg-row.t-boss { --nc: #ffcf6e; }
.lg-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--nc); background: radial-gradient(circle at 50% 55%, #2a1432, #120818); padding: 9px; color: var(--nc); box-shadow: inset 0 0 12px var(--nc2); }
.lg-text b { display: block; font-family: var(--f-head); font-size: 18px; color: var(--gold-hi); letter-spacing: .05em; }
.lg-text span { display: block; font-size: 15px; line-height: 1.25; color: var(--text-dim); }
.lg-keys { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--text-dim); }
.lg-key { display: flex; align-items: center; gap: 12px; }
.lg-key i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold); }
.lg-key .k-reach { box-shadow: 0 0 12px var(--gold); background: rgba(232, 193, 112, .25); }
.lg-key .k-here { border-color: var(--rose); box-shadow: 0 0 12px var(--rose); background: rgba(255, 79, 139, .3); }
.lg-key .k-walk { border-color: #f6b9a2; border-style: dotted; }

/* overlay */
.modal-map .map-overlay { position: relative; width: 1120px; height: 960px; }
.mo-head { position: absolute; left: 0; right: 0; top: -2px; height: 70px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 24px; }
.mo-head h2 { font-size: 32px; color: var(--gold-hi); }
.mo-head .btn { position: absolute; right: 8px; }
.mo-head .mt-act { position: absolute; left: 16px; }
.modal-map .map-panel { left: 20px; top: 62px; width: 1080px; height: 880px; }

/* ======================================================================
   REWARDS ("Spoils") + treasure reward panel
   ==================================================================== */
.rw-wrap { position: absolute; left: 50%; top: 150px; transform: translateX(-50%); width: 880px; display: flex; flex-direction: column; align-items: center; }
.rw-panel { width: 100%; padding: 34px 48px 28px; text-align: center; background: linear-gradient(180deg, rgba(40, 17, 48, .95), rgba(16, 7, 21, .96)); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, .75), 0 0 80px rgba(255, 79, 139, .12), inset 0 0 60px rgba(0, 0, 0, .4); animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.rw-kicker { font-family: var(--f-head); font-size: 18px; letter-spacing: .45em; text-indent: .45em; color: var(--rose); text-transform: uppercase; }
.rw-title { font-family: var(--f-display); font-weight: 900; font-size: 88px; line-height: 1.1; margin: 4px 0 0; color: var(--gold-hi); letter-spacing: .06em; text-shadow: 0 0 34px rgba(255, 79, 139, .7), 0 4px 0 rgba(58, 10, 30, .9); }
.rw-sub { font-size: 26px; margin: 0 0 14px; }
.rw-list { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; min-height: 40px; }
.rw-row { position: relative; display: flex; align-items: center; gap: 24px; height: 104px; padding: 0 28px 0 20px; text-align: left; cursor: pointer; background: linear-gradient(90deg, rgba(90, 30, 70, .55), rgba(40, 16, 46, .75) 60%, rgba(30, 12, 38, .6)); border: 1px solid var(--line); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 8px 22px rgba(0, 0, 0, .45); animation: rowIn .5s var(--ease-out) backwards; transition: transform .18s var(--ease), box-shadow .2s, border-color .2s, opacity .3s; overflow: hidden; }
.rw-row::before { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 230, 190, .14) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none; }
.rw-row:hover { transform: translateX(6px) scale(1.01); border-color: var(--gold); box-shadow: 0 0 30px rgba(232, 193, 112, .28), 0 10px 26px rgba(0, 0, 0, .5); }
.rw-row:hover::before { transform: translateX(120%); }
.rw-row.claimed { opacity: 0; transform: translateX(60px) scale(.96); }
.rw-row.blocked { filter: saturate(.55); }
.rw-row.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes rowIn { from { opacity: 0; transform: translateX(-30px); } }
.rw-ico { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #3a1844, #14081a); border: 2px solid var(--gold-deep); padding: 14px; color: var(--gold); box-shadow: inset 0 0 18px rgba(0, 0, 0, .6), 0 0 18px rgba(232, 193, 112, .15); }
.rw-ico.gold { color: #ffd77a; filter: drop-shadow(0 0 6px rgba(255, 215, 122, .5)); }
.rw-ico.cards { color: var(--rose); border-color: var(--rose-deep); }
.rw-ico.boss { color: #ffcf6e; border-color: var(--gold); box-shadow: 0 0 22px rgba(255, 207, 110, .4); }
.rw-ico.potion, .rw-ico.relic { padding: 6px; }
.rw-ico .potion-icon, .rw-ico .relic-icon { width: 100%; height: 100%; }
.rw-text { flex: 1; min-width: 0; }
.rw-name { font-family: var(--f-head); font-weight: 700; font-size: 28px; color: var(--gold-hi); letter-spacing: .03em; }
.rw-name .num { font-size: 36px; color: var(--gold); margin-right: 4px; }
.rw-desc { font-size: 19px; color: var(--text-dim); line-height: 1.25; margin-top: 2px; max-height: 50px; overflow: hidden; }
.rw-warn { font-size: 17px; color: var(--debuff); margin-top: 2px; font-weight: 700; }
.rw-tag { font-family: var(--f-head); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); border: 1px solid rgba(255, 255, 255, .15); border-radius: 20px; padding: 4px 14px; }
.rw-x { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; font-size: 28px; line-height: 1; color: var(--text-faint); background: rgba(0, 0, 0, .3); border: 1px solid rgba(255, 255, 255, .16); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.rw-x:hover { color: #fff; border-color: var(--rose); background: rgba(255, 79, 139, .28); }
.rw-row.skipped { opacity: 0; transform: translateX(-40px) scale(.96); }
.rw-status { font-family: var(--f-flavor); font-style: italic; font-size: 26px; color: var(--text-dim); margin-top: 8px; min-height: 8px; }
.rw-foot { margin-top: 30px; }
.btn-xl { font-size: 30px; padding: 18px 70px; }
.rw-proceed.ready { animation: readyPulse 1.6s ease-in-out infinite; }
@keyframes readyPulse { 50% { box-shadow: 0 0 40px rgba(255, 79, 139, .75), 0 8px 22px rgba(0, 0, 0, .55); transform: translateY(-2px); } }
.treasure-rewards { left: auto; right: 70px; transform: none; width: 820px; top: 170px; animation: panelIn .6s var(--ease-out); }

/* card / relic choice overlays */
.modal-cardchoice { background: radial-gradient(ellipse at center, rgba(40, 14, 48, .6), transparent 70%); }
.cc-wrap { text-align: center; padding: 20px 40px; }
.cc-wrap h2 { font-family: var(--f-display); font-weight: 900; font-size: 64px; color: var(--gold-hi); letter-spacing: .06em; text-shadow: 0 0 30px rgba(255, 79, 139, .6), 0 3px 0 #3a0a1e; }
.cc-wrap > p.flavor { font-size: 26px; margin: 0 0 30px; }
.cc-cards { display: flex; gap: 46px; justify-content: center; padding: 20px 0 30px; }
.cc-card { position: relative; width: 330px; height: 462px; cursor: pointer; transition: transform .25s var(--ease-out), filter .25s; animation: ccIn .55s var(--ease-out) backwards; }
@keyframes ccIn { from { opacity: 0; transform: translateY(60px) scale(.9); } }
.cc-card:hover { transform: translateY(-18px) scale(1.12); z-index: 5; filter: drop-shadow(0 0 28px rgba(255, 215, 122, .55)); }
.cc-card.rar-uncommon:hover { filter: drop-shadow(0 0 28px rgba(255, 134, 184, .6)); }
.cc-card.taken { transform: translateY(-40px) scale(1.2); opacity: 0; transition: transform .38s, opacity .38s; }
.rc-row { display: flex; gap: 36px; justify-content: center; padding: 16px 0 30px; }
.rc-plate { width: 430px; padding: 34px 30px 30px; background: linear-gradient(180deg, rgba(60, 22, 60, .95), rgba(20, 8, 26, .97)); border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: transform .25s var(--ease-out), box-shadow .25s; animation: ccIn .55s var(--ease-out) backwards; }
.rc-plate:hover { transform: translateY(-14px) scale(1.03); box-shadow: 0 0 50px rgba(255, 207, 110, .5), 0 20px 60px rgba(0, 0, 0, .6); border-color: var(--gold); }
.rc-plate.taken { opacity: 0; transform: scale(1.1); transition: all .4s; }
.rc-icon { width: 140px; height: 140px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255, 207, 110, .3), transparent 70%); }
.rc-icon .relic-icon { width: 130px; height: 130px; }
.rc-plate h3 { font-size: 30px; color: var(--gold-hi); }
.rc-tier { font-family: var(--f-head); font-size: 15px; letter-spacing: .3em; color: var(--rose); text-transform: uppercase; margin: 4px 0 12px; }
.rc-plate p { font-size: 22px; line-height: 1.35; margin: 6px 0; color: var(--text); }
.cc-back { margin-left: 8px; }

/* ======================================================================
   SHOP: The Boutique
   ==================================================================== */
.shop-screen .rx-bg { background:
  radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 190, 120, .22), transparent 70%),
  radial-gradient(ellipse 80% 70% at 60% 60%, #3a1440 0%, transparent 75%),
  linear-gradient(180deg, #1a0a1f 0%, #0b0610 100%); }
.shop-drape { position: absolute; top: 0; bottom: 0; width: 70px; z-index: 1; background: repeating-linear-gradient(90deg, #6a1238 0 14px, #3c0a22 14px 28px, #7a1a44 28px 38px); box-shadow: 0 0 60px rgba(0, 0, 0, .8); opacity: .9; }
.shop-drape.l { left: 0; -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent); mask-image: linear-gradient(90deg, #000 40%, transparent); }
.shop-drape.r { right: 0; -webkit-mask-image: linear-gradient(270deg, #000 40%, transparent); mask-image: linear-gradient(270deg, #000 40%, transparent); }
.shop-glow { position: absolute; left: 20%; top: -200px; width: 1000px; height: 700px; background: radial-gradient(ellipse, rgba(255, 200, 130, .22), transparent 65%); pointer-events: none; animation: nodeBreathe 5s ease-in-out infinite; }
.shop-merchant { position: absolute; left: 34px; top: 148px; width: 440px; height: 900px; z-index: 3; cursor: pointer; }
.shop-arch { position: absolute; left: 0; top: 70px; width: 440px; height: 720px; border-radius: 220px 220px 16px 16px; border: 3px solid var(--gold); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #7a2a58 0%, #3a1240 45%, #14081c 100%); box-shadow: 0 0 0 7px rgba(10, 5, 14, .9), 0 0 0 8px rgba(232, 193, 112, .35), 0 24px 70px rgba(0, 0, 0, .8), inset 0 0 80px rgba(0, 0, 0, .55), 0 0 90px rgba(255, 150, 120, .18); }
.shop-portrait { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.shop-portrait .shop-img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.shop-portrait .rx-silhouette { width: 88%; height: 94%; filter: hue-rotate(-18deg) saturate(1.1); animation: breathe 5s ease-in-out infinite; transform-origin: bottom; }
@keyframes breathe { 50% { transform: scale(1.015) translateY(-4px); } }
.rx-silhouette svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 30px rgba(255, 79, 139, .5)); }
.shop-nameplate { position: absolute; left: 50%; top: 770px; transform: translateX(-50%); white-space: nowrap; text-align: center; padding: 8px 34px 10px; background: linear-gradient(180deg, rgba(48, 16, 48, .97), rgba(16, 6, 20, .97)); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .65); }
.shop-nameplate small { display: block; font-family: var(--f-head); font-size: 13px; letter-spacing: .35em; color: var(--rose); text-transform: uppercase; text-indent: .35em; }
.shop-nameplate b { font-family: var(--f-head); font-size: 26px; color: var(--gold-hi); letter-spacing: .08em; }
.shop-bubble { position: absolute; left: 250px; top: -2px; width: 400px; padding: 16px 24px 18px; font-family: var(--f-flavor); font-style: italic; font-size: 26px; line-height: 1.2; color: #2a1020; background: linear-gradient(180deg, #fff1f4, #ffd9e6); border-radius: 22px; box-shadow: 0 12px 34px rgba(0, 0, 0, .6), 0 0 30px rgba(255, 130, 170, .35); opacity: 0; transform: translateY(10px) scale(.92); transform-origin: 8% 100%; transition: opacity .35s, transform .35s var(--ease-out); pointer-events: none; z-index: 8; }
.shop-bubble::after { content: ''; position: absolute; left: 34px; bottom: -16px; border: 12px solid transparent; border-top-color: #ffd9e6; border-bottom: none; border-left-width: 6px; border-right-width: 22px; }
.shop-bubble.on { opacity: 1; transform: none; }

.shop-table { position: absolute; left: 506px; top: 236px; width: 1380px; z-index: 2; display: flex; flex-direction: column; gap: 22px; }
.shop-velvet { padding: 12px 20px 16px; border-radius: 16px; background: linear-gradient(180deg, #5a1236 0%, #3a0a24 100%); border: 1px solid rgba(232, 193, 112, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .65), inset 0 0 80px rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .08); position: relative; }
.shop-velvet::after { content: ''; position: absolute; inset: 7px; border-radius: 11px; border: 1px dashed rgba(232, 193, 112, .25); pointer-events: none; }
.shop-shelf-title { display: flex; align-items: center; gap: 14px; justify-content: center; font-family: var(--f-head); letter-spacing: .3em; text-transform: uppercase; font-size: 17px; color: var(--gold); margin-bottom: 8px; text-indent: .3em; }
.shop-shelf-title i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.shop-cards { display: flex; gap: 18px; justify-content: center; }
.shop-slot { position: relative; cursor: pointer; transition: transform .2s var(--ease), filter .25s, opacity .25s; }
.shop-card { width: 178px; display: flex; flex-direction: column; align-items: center; }
.shop-card .card.size-md { font-size: 5.93px; }
.shop-card:hover { transform: translateY(-8px); z-index: 6; }
.shop-card .card { transition: transform .2s var(--ease); }
.shop-card:hover .card { transform: scale(1.3); transform-origin: 50% 20%; filter: drop-shadow(0 0 20px rgba(255, 215, 122, .5)); }
.shop-slot.cant { filter: grayscale(.45) brightness(.78); }
.shop-pricewrap { margin-top: 12px; display: flex; gap: 10px; align-items: center; justify-content: center; height: 36px; }
.shop-pricewrap .was { font-family: var(--f-num); font-size: 18px; color: var(--text-faint); }
.shop-price { display: inline-flex; align-items: center; gap: 6px; padding: 3px 16px 3px 8px; border-radius: 30px; background: rgba(0, 0, 0, .45); border: 1px solid rgba(232, 193, 112, .5); color: var(--gold); }
.shop-price .coin { width: 26px; height: 26px; display: flex; }
.shop-price .coin svg { width: 100%; height: 100%; }
.shop-price b { font-family: var(--f-num); font-size: 26px; font-weight: 600; }
.shop-price.cant { color: var(--debuff); border-color: rgba(255, 107, 107, .5); }
.sale-ribbon { position: absolute; left: -10px; top: 74px; z-index: 4; padding: 4px 18px 4px 12px; font-family: var(--f-head); font-weight: 900; letter-spacing: .15em; font-size: 15px; color: #fff; text-transform: uppercase; background: linear-gradient(90deg, #ff2d6b, #b3164f); clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); }
.colorless-tag { padding: 3px 9px; font-family: var(--f-head); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: #20102a; background: linear-gradient(90deg, #cfc4e8, #9d8fbe); border-radius: 3px; }
.shop-slot.sold { cursor: default; }
.sold-mark { width: 178px; height: 249px; border: 2px dashed rgba(232, 193, 112, .25); border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .25); }
.sold-mark span { font-family: var(--f-head); font-size: 20px; letter-spacing: .3em; text-transform: uppercase; color: rgba(232, 193, 112, .4); text-indent: .3em; }
.sold-mark.small { width: 110px; height: 150px; }
.shop-shelves { display: flex; gap: 22px; }
.shop-shelf { padding: 12px 18px 16px; border-radius: 14px; background: linear-gradient(180deg, rgba(44, 18, 52, .95), rgba(20, 8, 26, .95)); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 0 40px rgba(0, 0, 0, .35); }
.shop-shelf.trinkets { width: 590px; } .shop-shelf.potions { width: 450px; } .shop-shelf.service { width: 290px; }
.shop-items { display: flex; justify-content: space-around; gap: 10px; }
.shop-relic, .shop-potion { width: 168px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 4px 8px; border-radius: 12px; }
.shop-potion { width: 132px; }
.shop-relic:hover, .shop-potion:hover { transform: translateY(-6px); background: rgba(232, 193, 112, .06); }
.pedestal { width: 112px; height: 112px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #5a2468 0%, #1e0c28 80%); border: 2px solid var(--gold-deep); box-shadow: inset 0 0 20px rgba(0, 0, 0, .7), 0 0 20px rgba(232, 193, 112, .18); }
.pedestal .relic-icon, .pedestal .potion-icon { width: 90px; height: 90px; }
.pedestal .relic-icon:hover { transform: none; }
.item-name { font-family: var(--f-head); font-size: 17px; line-height: 1.15; color: var(--gold-hi); height: 40px; display: flex; align-items: center; justify-content: center; }
.shop-service { text-align: center; cursor: pointer; padding: 6px 4px 10px; border-radius: 12px; transition: transform .2s var(--ease), filter .25s; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.shop-service:hover { transform: translateY(-6px); background: rgba(255, 79, 139, .07); }
.shop-service.cant { filter: grayscale(.4) brightness(.8); }
.shop-service.sold { cursor: default; opacity: .6; }
.shop-service.sold:hover { transform: none; background: none; }
.svc-ico { width: 74px; height: 74px; color: var(--rose); padding: 6px; border-radius: 50%; border: 2px solid var(--rose-deep); background: radial-gradient(circle, #3a1030, #14081a); }
.svc-name { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--gold-hi); }
.svc-text { font-size: 16px; color: var(--text-dim); line-height: 1.25; min-height: 40px; }
.shop-leave { position: absolute; right: 40px; bottom: 24px; z-index: 5; }

/* ======================================================================
   REST: Hot Spring
   ==================================================================== */
.rest-bg { background:
  radial-gradient(ellipse 60% 50% at 50% 100%, rgba(80, 230, 210, .28), transparent 70%),
  radial-gradient(ellipse 70% 60% at 50% 20%, rgba(255, 140, 120, .16), transparent 70%),
  linear-gradient(180deg, #1a0e22 0%, #120a1c 50%, #0a1a22 100%); }
.rest-arches { position: absolute; left: 0; right: 0; top: 60px; height: 560px; background:
  radial-gradient(ellipse 120px 220px at 12% 100%, #08040c 0 99%, transparent 100%),
  radial-gradient(ellipse 150px 260px at 88% 100%, #08040c 0 99%, transparent 100%); opacity: .6; pointer-events: none; }
.rest-lantern { position: absolute; top: 160px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 110, .55), rgba(255, 120, 90, .12) 50%, transparent 70%); animation: flicker 3.4s ease-in-out infinite; pointer-events: none; }
.rest-lantern.l { left: 90px; } .rest-lantern.r { right: 90px; animation-delay: -1.3s; }
.rest-lantern::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 30px; margin: -15px 0 0 -11px; border-radius: 40% 40% 50% 50%; background: radial-gradient(circle at 50% 70%, #fff6d0, #ffb050 60%, #ff7a3d); box-shadow: 0 0 30px 12px rgba(255, 170, 80, .7); }
@keyframes flicker { 0%, 100% { opacity: .9; transform: scale(1); } 40% { opacity: 1; transform: scale(1.06); } 70% { opacity: .8; transform: scale(.97); } }
.rest-pool { position: absolute; left: 50%; bottom: -120px; width: 1700px; height: 380px; margin-left: -850px; pointer-events: none; }
.rest-water { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 30%, rgba(160, 255, 240, .55), rgba(60, 200, 200, .35) 40%, rgba(20, 90, 110, .5) 75%); box-shadow: 0 0 120px rgba(80, 230, 210, .5), inset 0 0 80px rgba(255, 255, 255, .18); border: 3px solid rgba(190, 255, 240, .25); }
.rest-pool i { position: absolute; left: 50%; top: 50%; width: 400px; height: 90px; margin: -45px 0 0 -200px; border-radius: 50%; border: 2px solid rgba(220, 255, 250, .5); animation: ripple 6s ease-out infinite; z-index: 2; }
.rest-pool .rp2 { animation-delay: -2s; } .rest-pool .rp3 { animation-delay: -4s; }
@keyframes ripple { from { transform: scale(.3); opacity: .9; } to { transform: scale(3.6); opacity: 0; } }
.rest-head { position: absolute; left: 0; right: 0; top: 150px; text-align: center; }
.rest-head h1 { font-family: var(--f-display); font-weight: 900; font-size: 92px; color: var(--gold-hi); letter-spacing: .06em; margin: 4px 0 0; text-shadow: 0 0 40px rgba(110, 240, 220, .6), 0 4px 0 rgba(10, 40, 50, .9); }
.rest-head .rx-divider { width: 520px; margin: 8px auto; }
.rest-head p { font-size: 28px; margin: 0; }
.rest-body { position: absolute; left: 0; right: 0; top: 440px; display: flex; justify-content: center; z-index: 3; }
.rest-options { display: flex; gap: 40px; }
.rest-opt { position: relative; width: 340px; height: 470px; padding: 0 28px; text-align: center; cursor: pointer; border-radius: 170px 170px 16px 16px; background: linear-gradient(180deg, rgba(60, 40, 80, .85) 0%, rgba(24, 12, 34, .92) 100%); border: 2px solid var(--gold-deep); box-shadow: 0 24px 60px rgba(0, 0, 0, .65), inset 0 0 60px rgba(0, 0, 0, .4), 0 0 0 6px rgba(10, 5, 14, .6); animation: panelIn .6s var(--ease-out) backwards; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.rest-opt:hover:not(.disabled) { transform: translateY(-14px); border-color: var(--gold-hi); box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 60px rgba(110, 240, 220, .45), 0 0 0 6px rgba(10, 5, 14, .6); }
.ro-art { width: 170px; height: 170px; margin: 58px auto 14px; color: #8ff7e0; filter: drop-shadow(0 0 16px rgba(110, 240, 220, .7)); animation: breathe 4s ease-in-out infinite; }
.rest-opt:nth-child(2) .ro-art { color: #ffd77a; filter: drop-shadow(0 0 16px rgba(255, 200, 110, .7)); }
.rest-opt:nth-child(n+3) .ro-art { color: #ff9ec2; filter: drop-shadow(0 0 16px rgba(255, 120, 170, .7)); }
.ro-art svg { stroke-width: 2; }
.ro-name { font-family: var(--f-head); font-weight: 700; font-size: 40px; letter-spacing: .08em; color: var(--gold-hi); text-transform: uppercase; }
.ro-desc { margin-top: 12px; font-size: 22px; line-height: 1.35; color: var(--text); }
.ro-reason { position: absolute; left: 20px; right: 20px; bottom: 26px; font-family: var(--f-flavor); font-style: italic; font-size: 22px; color: var(--debuff); }
.rest-opt.disabled { cursor: not-allowed; filter: grayscale(.8) brightness(.6); }
.rest-result { text-align: center; width: 760px; padding: 36px 50px 34px; margin-top: 10px; background: linear-gradient(180deg, rgba(40, 20, 56, .92), rgba(14, 8, 22, .94)); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 80px rgba(110, 240, 220, .2); animation: panelIn .6s var(--ease-out); }
.rest-result h2 { font-family: var(--f-display); font-weight: 900; font-size: 58px; color: var(--gold-hi); text-shadow: 0 0 26px rgba(110, 240, 220, .6); }
.rest-result p { font-size: 28px; margin: 10px 0 18px; }
.rr-arousal { display: inline-flex; align-items: baseline; gap: 16px; padding: 10px 34px; border-radius: 40px; background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 143, 180, .4); color: #ff8fb4; font-family: var(--f-head); font-size: 22px; letter-spacing: .1em; text-transform: uppercase; }
.rr-arousal b { font-size: 48px; } .rr-arousal .after { color: var(--buff); } .rr-arousal i { font-style: normal; font-size: 36px; color: var(--text-dim); } .rr-arousal small { font-family: var(--f-num); color: var(--text-dim); font-size: 22px; }
.rr-card { display: flex; justify-content: center; margin: 14px 0 0; }
.rr-card .card { animation: ccIn .6s var(--ease-out); }
.rest-body.result { top: 380px; }
.rest-screen:has(.rr-card) .rest-body.result { top: 150px; }
.rest-screen:has(.rr-card) .rest-head { display: none; }

/* ======================================================================
   TREASURE: the vault
   ==================================================================== */
.vault-bg { background:
  radial-gradient(ellipse 50% 45% at 50% 62%, rgba(255, 190, 90, .22), transparent 70%),
  radial-gradient(ellipse at 50% 0%, #2a1030, transparent 70%),
  linear-gradient(180deg, #120a18 0%, #0a0610 100%); }
.vault-columns { position: absolute; inset: 70px 0 0 0; background:
  linear-gradient(90deg, #0a0610 0, #1c0e24 6%, #0a0610 12%, transparent 12%, transparent 88%, #0a0610 88%, #1c0e24 94%, #0a0610 100%),
  repeating-linear-gradient(90deg, transparent 0 220px, rgba(232, 193, 112, .04) 220px 222px); opacity: .9; }
.vault-torch { position: absolute; top: 280px; width: 160px; height: 340px; background: radial-gradient(ellipse 50% 40% at 50% 30%, rgba(255, 170, 80, .5), transparent 70%); animation: flicker 2.6s ease-in-out infinite; }
.vault-torch.l { left: 130px; } .vault-torch.r { right: 130px; animation-delay: -1s; }
.vault-torch::after { content: ''; position: absolute; left: 50%; top: 22%; width: 18px; height: 36px; margin-left: -9px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 75%, #fff2c0, #ffa040 60%, #ff5a20); box-shadow: 0 0 34px 14px rgba(255, 150, 60, .6); }
.vault-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 330px; background: linear-gradient(180deg, transparent, rgba(255, 170, 90, .1) 40%, rgba(20, 8, 24, .95)), repeating-linear-gradient(90deg, rgba(232, 193, 112, .05) 0 2px, transparent 2px 140px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.treasure-stage { position: absolute; left: 50%; top: 360px; width: 560px; height: 480px; margin-left: -280px; z-index: 3; transition: transform .9s var(--ease-out); }
.treasure-stage.shifted { transform: translateX(-470px); }
.chest { position: absolute; left: 50%; top: 40px; width: 520px; margin-left: -260px; cursor: pointer; animation: chestIdle 3.4s ease-in-out infinite; filter: drop-shadow(0 0 40px rgba(255, 180, 80, .35)); transition: filter .3s; }
.chest.size-small { width: 430px; margin-left: -215px; top: 70px; } .chest.size-large { width: 600px; margin-left: -300px; }
.chest:hover { filter: drop-shadow(0 0 60px rgba(255, 200, 100, .7)) brightness(1.1); }
@keyframes chestIdle { 50% { translate: 0 -8px; } }
.chest-svg { width: 100%; display: block; overflow: visible; }
.chest-lid { transform-box: view-box; transform-origin: 56px 160px; transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.chest-in { opacity: 0; transition: opacity .5s; }
.chest.opening { animation: chestShake .35s linear 1; }
@keyframes chestShake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.chest.open { animation: none; filter: drop-shadow(0 0 70px rgba(255, 200, 100, .6)); cursor: default; }
.chest.open .chest-lid { transform: rotate(-52deg) translate(-10px, -6px); }
.chest.open .chest-in { opacity: 1; }
.chest.instant .chest-lid, .chest.instant .chest-in { transition: none; }
.chest-rays { position: absolute; left: 50%; top: 150px; width: 900px; height: 900px; margin: -450px 0 0 -450px; background: repeating-conic-gradient(from 0deg, rgba(255, 220, 140, 0) 0 8deg, rgba(255, 220, 140, .26) 8deg 12deg); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 62%); mask-image: radial-gradient(circle, #000 0, transparent 62%); opacity: 0; transition: opacity .6s; animation: spin 24s linear infinite; pointer-events: none; }
.chest-rays.on { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.chest-label { position: absolute; left: 0; right: 0; bottom: -90px; text-align: center; transition: opacity .4s; }
.chest-label.gone { opacity: 0; }
.chest-hint { margin-top: 8px; font-family: var(--f-flavor); font-style: italic; font-size: 30px; color: var(--gold-hi); animation: nodeBreathe 2s ease-in-out infinite; }

/* ======================================================================
   EVENT
   ==================================================================== */
.ev-left { position: absolute; left: 80px; top: 176px; width: 820px; height: 800px; }
.ev-art-frame { position: absolute; left: 0; top: 0; width: 820px; height: 730px; border-radius: 300px 300px 16px 16px / 210px 210px 16px 16px; overflow: hidden; border: 3px solid var(--gold); background: linear-gradient(180deg, #3a1442, #12060f); box-shadow: 0 0 0 7px rgba(10, 5, 14, .9), 0 0 0 8px rgba(232, 193, 112, .35), 0 30px 80px rgba(0, 0, 0, .8), 0 0 90px rgba(255, 79, 139, .15); }
.ev-art { position: absolute; inset: 0; }
.ev-art.fade { animation: artIn .9s var(--ease-out); }
@keyframes artIn { from { opacity: 0; transform: scale(1.04); } }
.ev-art .ev-art-img { width: 100%; height: 100%; object-fit: cover; }
.ev-art-shade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45) 100%), linear-gradient(180deg, transparent 70%, rgba(10, 4, 14, .6)); }
.ev-art-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--gold); background:
  radial-gradient(ellipse at 50% 40%, rgba(255, 79, 139, .22), transparent 60%),
  radial-gradient(ellipse at 50% 100%, var(--a1, #3a1442), transparent 75%),
  linear-gradient(180deg, #2a1236, #10060f); }
.ev-sigil { width: 280px; height: 280px; opacity: .85; filter: drop-shadow(0 0 22px rgba(232, 193, 112, .6)); animation: breathe 6s ease-in-out infinite; }
.ev-art-name { font-family: var(--f-display); font-weight: 700; font-size: 44px; color: var(--gold-hi); text-align: center; padding: 0 60px; text-shadow: 0 0 24px rgba(255, 79, 139, .6); line-height: 1.15; }
.ev-art-slot { font-family: var(--f-head); font-size: 14px; letter-spacing: .4em; text-transform: uppercase; color: rgba(232, 193, 112, .4); }
.ev-nameplate { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; text-align: center; padding: 8px 40px 10px; background: linear-gradient(180deg, rgba(48, 16, 48, .97), rgba(16, 6, 20, .97)); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .65); }
.ev-nameplate small { display: block; font-family: var(--f-head); font-size: 13px; letter-spacing: .35em; color: var(--rose); text-transform: uppercase; text-indent: .35em; }
.ev-nameplate b { font-family: var(--f-head); font-size: 26px; color: var(--gold-hi); letter-spacing: .06em; }
.ev-right { position: absolute; left: 960px; top: 168px; width: 880px; height: 840px; display: flex; flex-direction: column; }
.ev-right .mt-act { text-align: left; text-indent: 0; }
.ev-title { font-family: var(--f-display); font-weight: 700; font-size: 54px; line-height: 1.1; color: var(--gold-hi); margin: 6px 0 0; text-shadow: 0 0 28px rgba(255, 79, 139, .5), 0 3px 0 rgba(58, 10, 30, .9); }
.ev-text { font-size: 28px; line-height: 1.5; color: var(--text); min-height: 150px; max-height: 330px; overflow-y: auto; padding-right: 10px; cursor: pointer; }
.ev-text.fade { animation: textIn .6s var(--ease-out); }
@keyframes textIn { from { opacity: 0; transform: translateY(8px); } }
.ev-text b { color: var(--gold-hi); } .ev-text i { color: #ffc4da; font-family: var(--f-flavor); font-size: 1.08em; }
.ev-scene { min-height: 8px; margin: 6px 0; }
.ev-choices { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.ev-choice { position: relative; display: flex; align-items: center; gap: 20px; text-align: left; padding: 14px 26px 14px 16px; min-height: 68px; font-family: var(--f-body); font-size: 25px; line-height: 1.25; color: var(--text); background: linear-gradient(90deg, rgba(110, 30, 80, .55), rgba(40, 16, 48, .75)); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; opacity: 0; transform: translateX(26px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), border-color .2s, box-shadow .2s, background .2s; }
.ev-choices.in .ev-choice { opacity: 1; transform: none; }
.ev-choices.in .ev-choice:hover:not(.disabled) { border-color: var(--gold); transform: translateX(8px); transition-delay: 0s; box-shadow: 0 0 28px rgba(232, 193, 112, .25); background: linear-gradient(90deg, rgba(160, 40, 100, .65), rgba(60, 20, 64, .8)); color: #fff; }
.ec-num { flex: 0 0 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-num); font-size: 20px; color: var(--gold); border: 1px solid var(--gold-deep); background: rgba(0, 0, 0, .35); }
.ec-label { flex: 1; } .ec-label b { color: var(--gold-hi); }
.ec-reason { font-family: var(--f-flavor); font-style: italic; font-size: 22px; color: var(--debuff); }
.ev-choice.disabled { cursor: not-allowed; filter: grayscale(.8) brightness(.65); }
.ev-choices.locked .ev-choice:not(.picked) { opacity: .35; pointer-events: none; }
.ev-choice.picked { border-color: var(--rose); box-shadow: var(--glow-rose); }

/* ======================================================================
   MUSE
   ==================================================================== */
.muse-rays { position: absolute; left: -200px; top: -200px; width: 1400px; height: 1400px; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 150, 200, 0) 0 10deg, rgba(255, 150, 200, .07) 10deg 14deg); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 60%); mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 60%); animation: spin 90s linear infinite; pointer-events: none; }
.muse-left { position: absolute; left: 0; top: 70px; width: 760px; height: 1010px; }
.muse-aura { position: absolute; left: 50%; top: 52%; width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 79, 139, .45), rgba(138, 77, 255, .2) 45%, transparent 70%); animation: nodeBreathe 5s ease-in-out infinite; }
.muse-portrait { position: absolute; left: 50px; right: 30px; top: 30px; bottom: 70px; display: flex; align-items: flex-end; justify-content: center; animation: museIn 1.2s var(--ease-out) backwards; }
@keyframes museIn { from { opacity: 0; transform: translateX(-60px); } }
.muse-portrait .muse-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 0 40px rgba(255, 79, 139, .5)); }
.muse-portrait .rx-silhouette { width: 94%; height: 100%; }
.muse-portrait .rx-silhouette svg { filter: drop-shadow(0 0 46px rgba(255, 79, 139, .65)); animation: breathe 6s ease-in-out infinite; }
.muse-plate { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); white-space: nowrap; text-align: center; padding: 8px 44px 10px; background: linear-gradient(180deg, rgba(48, 16, 48, .97), rgba(16, 6, 20, .97)); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .65); }
.muse-plate small { display: block; font-family: var(--f-head); font-size: 14px; letter-spacing: .35em; color: var(--rose); text-transform: uppercase; text-indent: .35em; }
.muse-plate b { font-family: var(--f-head); font-size: 30px; color: var(--gold-hi); letter-spacing: .08em; }
.muse-right { position: absolute; left: 730px; top: 150px; width: 1150px; height: 900px; display: flex; flex-direction: column; }
.muse-head .mt-act { text-align: left; text-indent: 0; }
.muse-head h1 { font-family: var(--f-display); font-weight: 900; font-size: 72px; line-height: 1.05; color: var(--gold-hi); margin: 6px 0 0; text-shadow: 0 0 40px rgba(255, 79, 139, .7), 0 4px 0 rgba(58, 10, 30, .9); }
.muse-speech { font-family: var(--f-flavor); font-size: 34px; line-height: 1.35; color: #ffd9e8; min-height: 150px; max-width: 1050px; cursor: pointer; }
.muse-boons { margin-top: auto; display: flex; gap: 22px; padding-bottom: 20px; }
.boon { position: relative; flex: 1; min-width: 0; height: 450px; padding: 48px 24px 24px; text-align: center; cursor: pointer; border-radius: 16px; background: linear-gradient(180deg, rgba(88, 34, 88, .92), rgba(28, 12, 36, .96)); border: 2px solid var(--gold-deep); box-shadow: 0 24px 60px rgba(0, 0, 0, .65), inset 0 0 50px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(50px) scale(.96); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), box-shadow .25s, border-color .25s; display: flex; flex-direction: column; align-items: center; }
.muse-boons.in .boon { opacity: 1; transform: none; }
.muse-boons.in .boon:hover { transform: translateY(-14px) scale(1.03); transition-delay: 0s !important; transition-duration: .22s; border-color: var(--gold-hi); box-shadow: 0 30px 70px rgba(0, 0, 0, .65), 0 0 50px rgba(255, 215, 122, .4); }
.boon-gem { position: absolute; left: 50%; top: -14px; width: 34px; height: 34px; margin-left: -17px; transform: rotate(45deg); background: linear-gradient(135deg, #fff1c4, #e8c170 50%, #8a5f1e); border: 2px solid #3a2208; box-shadow: 0 0 22px rgba(255, 215, 122, .8); border-radius: 4px; }
.boon-tag { font-family: var(--f-head); font-size: 14px; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); text-indent: .35em; }
.boon h3 { font-size: 30px; line-height: 1.12; margin: 10px 0 0; color: var(--gold-hi); }
.boon-rule { width: 70%; height: 1px; margin: 16px 0; background: linear-gradient(90deg, transparent, var(--gold-deep), transparent); }
.boon p { flex: 1; margin: 0; font-size: 23px; line-height: 1.35; color: var(--text); }
.boon-foot { font-family: var(--f-head); font-size: 16px; letter-spacing: .25em; text-transform: uppercase; color: var(--rose); padding-top: 10px; text-indent: .25em; }
.boon.pact { background: linear-gradient(180deg, rgba(50, 8, 24, .96), rgba(14, 3, 10, .98)); border-color: #8a1a3e; box-shadow: 0 24px 60px rgba(0, 0, 0, .75), inset 0 0 60px rgba(120, 0, 30, .35), 0 0 40px rgba(200, 30, 60, .2); }
.boon.pact .boon-gem { background: linear-gradient(135deg, #ff9ab0, #d0203f 50%, #4a0614); box-shadow: 0 0 22px rgba(255, 50, 80, .85); }
.boon.pact .boon-tag, .boon.pact .boon-foot { color: #ff5a78; }
.boon.pact h3 { color: #ffc4d0; }
.muse-boons.in .boon.pact:hover { border-color: #ff5a78; box-shadow: 0 30px 70px rgba(0, 0, 0, .75), 0 0 56px rgba(255, 50, 80, .5); }
.muse-boons.locked .boon:not(.picked) { opacity: .25; pointer-events: none; }
.boon.picked { border-color: var(--gold-hi); }

/* ======================================================================
   SCENE PLAYER
   ==================================================================== */
.scene-player { position: absolute; inset: 0; background: #05020a; overflow: hidden; color: var(--text); }
.scene-player.leaving { opacity: .6; transition: opacity .3s; }
.sc-layers { position: absolute; inset: 0; }
.sc-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.sc-layer.in { opacity: 1; }
.sc-layer .sc-img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out forwards; }
.sc-layer .sc-video { animation: none; background: #000; }
.sc-ph.video .sc-ph-slot { color: rgba(255, 79, 139, .75); }
.sc-ph.video .sc-ph-sigil { animation-name: scpulse; animation-timing-function: ease-in-out; }
@keyframes scpulse { 50% { transform: scale(1.09); filter: drop-shadow(0 0 50px rgba(255, 79, 139, .8)); } }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.sc-ph { padding-bottom: 300px; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background:
  radial-gradient(ellipse at 50% 42%, rgba(255, 79, 139, .22), transparent 55%),
  radial-gradient(ellipse at 20% 100%, rgba(138, 77, 255, .2), transparent 60%),
  linear-gradient(180deg, #1b0b24 0%, #0b0510 100%); color: var(--gold); }
.sc-ph::before { content: ''; position: absolute; inset: 60px; border: 1px solid rgba(232, 193, 112, .25); border-radius: 12px; box-shadow: inset 0 0 0 8px rgba(0, 0, 0, .2), inset 0 0 0 9px rgba(232, 193, 112, .12); }
.sc-ph-sigil { width: 340px; height: 340px; opacity: .7; filter: drop-shadow(0 0 30px rgba(232, 193, 112, .55)); animation: breathe 7s ease-in-out infinite; }
.sc-ph-slot { font-family: var(--f-head); letter-spacing: .5em; text-transform: uppercase; font-size: 18px; color: rgba(232, 193, 112, .5); text-indent: .5em; }
.sc-ph-title { font-family: var(--f-display); font-weight: 700; font-size: 64px; color: var(--gold-hi); text-shadow: 0 0 30px rgba(255, 79, 139, .6); text-align: center; padding: 0 200px; line-height: 1.1; }
.sc-ph-sub { font-family: var(--f-flavor); font-style: italic; font-size: 28px; color: var(--text-dim); text-align: center; }
.sc-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0, transparent 18%, transparent 55%, rgba(5, 2, 9, .92) 100%); }
.sc-title { position: absolute; left: 50px; top: 36px; }
.sc-title small { display: block; font-family: var(--f-head); font-size: 15px; letter-spacing: .4em; color: var(--rose); text-transform: uppercase; }
.sc-title b { font-family: var(--f-head); font-size: 30px; color: var(--gold-hi); text-shadow: 0 2px 8px #000; }
.sc-counter { position: absolute; right: 50px; top: 40px; font-family: var(--f-num); font-size: 22px; color: var(--text-dim); letter-spacing: .1em; }
.sc-box { position: absolute; left: 180px; right: 180px; bottom: 100px; min-height: 200px; padding: 40px 54px 30px; background: linear-gradient(180deg, rgba(34, 14, 42, .9), rgba(12, 5, 18, .94)); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .7), inset 0 0 60px rgba(0, 0, 0, .35); cursor: pointer; }
.sc-box.empty { opacity: 0; pointer-events: none; }
.sc-speaker { position: absolute; left: 40px; top: -22px; padding: 6px 30px; font-family: var(--f-head); font-weight: 700; font-size: 24px; letter-spacing: .08em; color: #2a1020; background: linear-gradient(180deg, #ffe7b0, #e8c170); border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); }
.sc-text { font-size: 32px; line-height: 1.5; color: var(--text); font-family: var(--f-body); min-height: 100px; }
.sc-hint { position: absolute; right: 30px; bottom: 14px; font-family: var(--f-head); font-size: 14px; letter-spacing: .25em; text-transform: uppercase; color: var(--text-faint); transition: opacity .3s; }
.sc-bar { position: absolute; right: 50px; bottom: 28px; display: flex; gap: 12px; }
.sc-bar .btn.on { border-color: var(--rose); color: #fff; box-shadow: var(--glow-rose); }
.sc-shade, .sc-title, .sc-counter, .sc-box, .sc-bar { transition: opacity .35s ease; }
.scene-player.ui-hidden :is(.sc-shade, .sc-title, .sc-counter, .sc-box, .sc-bar) { opacity: 0; pointer-events: none; }
.modal-scene { transform: none !important; }
.scene-overlay { position: relative; width: 1920px; height: 1080px; }
.modal-back:has(.modal-scene) { background: #000; backdrop-filter: none; }

/* ======================================================================
   ACT TRANSITION
   ==================================================================== */
.acttrans-screen { background: #05020a; cursor: pointer; }
.at-rays { position: absolute; left: 50%; top: 50%; width: 2200px; height: 2200px; margin: -1100px 0 0 -1100px; background: repeating-conic-gradient(from 0deg, transparent 0 7deg, var(--at, rgba(255, 150, 200, .1)) 7deg 10deg); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 55%); mask-image: radial-gradient(circle, #000 0, transparent 55%); animation: spin 120s linear infinite; }
.at-center { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--ag, var(--gold)); }
.at-ornament { width: 900px; margin: 0 auto; height: 60px; color: var(--gold); }
.at-ornament svg { width: 100%; height: 100%; }
.at-ornament.bottom { transform: scaleY(-1); }
.at-ornament .draw { stroke-dasharray: 420; stroke-dashoffset: 420; animation: drawLine 1.8s var(--ease) .2s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.at-act { font-family: var(--f-head); font-size: 34px; letter-spacing: .7em; text-indent: .7em; text-transform: uppercase; margin: 24px 0 6px; opacity: 0; animation: atFade 1.2s var(--ease-out) .35s forwards; }
.at-title { font-family: var(--f-display); font-weight: 900; font-size: 128px; line-height: 1.05; margin: 0 40px; color: var(--gold-hi); text-shadow: 0 0 50px var(--ac, var(--rose)), 0 6px 0 rgba(20, 4, 14, .9); opacity: 0; animation: atTitle 1.6s var(--ease-out) .6s forwards; }
@keyframes atFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes atTitle { from { opacity: 0; letter-spacing: .3em; filter: blur(14px); } to { opacity: 1; letter-spacing: .04em; filter: blur(0); } }
.at-line { font-size: 40px; margin: 26px 0 0; color: var(--text-dim); opacity: 0; animation: atFade 1.4s var(--ease-out) 1.5s forwards; }
.at-click { position: absolute; left: 0; right: 0; bottom: 50px; text-align: center; font-family: var(--f-head); letter-spacing: .4em; font-size: 16px; text-transform: uppercase; color: var(--text-faint); opacity: 0; animation: atFade 1s ease 2s forwards; }

.ev-art-frame:has(.ev-art-ph) ~ .ev-nameplate { display: none; }
.boon-emblem { width: 62px; height: 62px; margin: 4px 0 8px; color: var(--gold); filter: drop-shadow(0 0 10px rgba(255, 215, 122, .6)); }
.boon-emblem svg { width: 100%; height: 100%; stroke-width: 2.2; }
.boon.pact .boon-emblem { color: #ff5a78; filter: drop-shadow(0 0 10px rgba(255, 50, 80, .7)); }
.boon h3 { margin-top: 4px; }
.rest-arches { opacity: .3; }
.modal-back:has(.modal-cardchoice) { background: rgba(5, 2, 10, .95); }
