/* FARCAST game shell — loaded after style.css and overrides its website look. */
:root {
  --gold: #e8c97a;
  --gold-dim: rgba(232, 201, 122, 0.35);
  --ink: #05070f;
  --display: 'Cinzel', Georgia, serif;
  --ui: 'Rajdhani', ui-sans-serif, system-ui, sans-serif;
  font-family: var(--ui);
  font-size: 16px;
}
body { background: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.06em; }
.caps { font-family: var(--ui); font-weight: 600; letter-spacing: 0.22em; }
.btn { font-family: var(--ui); font-weight: 600; letter-spacing: 0.06em; border-radius: 6px; text-transform: uppercase; font-size: 13px; }
.btn.primary { background: linear-gradient(180deg, #f0d48c, #c9a24c); border-color: #f3dc9c; color: #1a1306; box-shadow: 0 0 24px rgba(232, 201, 122, 0.25); }
.btn.primary:hover { background: linear-gradient(180deg, #f7e0a6, #d8b25c); }
.btn.small { padding: 7px 12px; font-size: 12px; }
.btn.big { padding: 14px 28px; font-size: 15px; }
.panel { border-color: rgba(232, 201, 122, 0.12); border-radius: 8px; background: linear-gradient(180deg, rgba(17, 24, 41, 0.92), rgba(9, 13, 24, 0.92)); }

/* top bar: a slim in-game strip, hidden on the title screen and inside a run */
.top { padding: 10px 22px; gap: 18px; border-bottom: 1px solid var(--gold-dim); background: rgba(5, 7, 15, 0.85); }
.brand .wm { font-family: var(--display); font-size: 18px; letter-spacing: 0.32em; color: var(--gold); }
.brand img { border-radius: 50%; }
.crumb { display: flex; align-items: center; gap: 14px; font-family: var(--display); letter-spacing: 0.12em; }
.crumb .back { font-family: var(--ui); font-weight: 600; letter-spacing: 0.1em; color: var(--muted); font-size: 13px; text-transform: uppercase; }
.crumb .back:hover { color: var(--gold); }
body[data-screen='title'] .top, body.in-game .top { display: none; }
body[data-screen='title'] main { padding: 0; max-width: none; }
body.in-game main { display: none; }

/* ---------------------------------------------------------------- title */
.title { position: relative; min-height: 100vh; min-height: 100dvh; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.title-bg { position: absolute; inset: 0; background: url(/art/title-bg.webp) center / cover no-repeat; animation: drift 40s ease-in-out infinite alternate; }
.title-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 7, 15, 0.94) 0%, rgba(5, 7, 15, 0.7) 38%, rgba(5, 7, 15, 0.05) 70%), linear-gradient(0deg, rgba(5, 7, 15, 0.9), transparent 30%); }
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.1) translateX(-1.5%); } }
.title-copy { position: relative; z-index: 2; padding: 0 0 0 clamp(24px, 7vw, 120px); }
.title-sigil { position: absolute; z-index: 1; left: clamp(24px, 7vw, 120px); top: 6vh; width: 150px; height: 150px; }
.logo { font-size: clamp(54px, 7.4vw, 112px); line-height: 1; letter-spacing: 0.14em; margin: 0; background: linear-gradient(180deg, #fff6dc 0%, #e8c97a 45%, #9c7a32 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 30px rgba(232, 201, 122, 0.25)); }
.tagline { display: flex; align-items: center; gap: 14px; margin: 14px 0 44px 4px; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; font-size: 14px; color: #c9d3ea; }
.tagline i { height: 1px; width: 44px; background: var(--gold); opacity: 0.6; }
.menu { display: flex; flex-direction: column; gap: 6px; max-width: 380px; }
.mi { position: relative; display: block; padding: 12px 20px 12px 26px; border-left: 2px solid transparent; transition: background 0.2s, border-color 0.2s, padding 0.2s; }
.mi b { display: block; font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; color: #e8ecf6; }
.mi span { font-size: 14px; color: var(--muted); letter-spacing: 0.04em; }
.mi:hover, .mi:focus-visible { border-color: var(--gold); background: linear-gradient(90deg, rgba(232, 201, 122, 0.14), transparent); padding-left: 32px; outline: none; }
.mi:hover b { color: var(--gold); }
.mi.primary b { color: var(--gold); }
.mi.primary::before { content: '◆'; position: absolute; left: 4px; top: 18px; font-size: 11px; color: var(--gold); }
.title-foot { position: absolute; z-index: 2; bottom: 18px; left: clamp(24px, 7vw, 120px); right: 24px; font-size: 13px; color: #6c7690; letter-spacing: 0.08em; }
@media (max-width: 760px) {
  .title { grid-template-columns: 1fr; align-items: end; padding-bottom: 70px; }
  .title-bg { background-position: 70% center; }
  .title-bg::after { background: linear-gradient(0deg, rgba(5, 7, 15, 0.97) 0%, rgba(5, 7, 15, 0.7) 55%, rgba(5, 7, 15, 0.2) 100%); }
  .title-sigil { width: 96px; height: 96px; top: 4vh; }
  .tagline { letter-spacing: 0.3em; margin-bottom: 26px; font-size: 12px; }
  .mi { padding: 9px 16px 9px 22px; }
  .mi b { font-size: 19px; }
  .title-foot { bottom: 12px; font-size: 11px; }
}

/* ---------------------------------------------------------------- expedition */
#game { position: fixed; inset: 0; z-index: 30; display: none; }
body.in-game #game { display: block; }
body.in-game { overflow: hidden; }
.xp { position: absolute; inset: 0; overflow: hidden; background: var(--ink); user-select: none; }
.xp-board { position: absolute; inset: 0; }
.xp-board canvas { display: block; }
.board-labels { position: absolute; inset: 0; pointer-events: none; }
.room-tag { font-family: var(--display); font-size: 12px; letter-spacing: 0.1em; color: #dfe6f7; text-align: center; text-shadow: 0 2px 6px #000, 0 0 2px #000; white-space: nowrap; }
.room-tag b { display: block; font-weight: 700; }
.room-tag.here b { color: var(--gold); }
.room-tag .st { display: inline-block; margin-top: 2px; font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; padding: 1px 7px; border-radius: 3px; background: rgba(5, 7, 15, 0.75); border: 1px solid rgba(255, 255, 255, 0.14); }
.room-tag .st-1 { color: #8fd3ff; border-color: rgba(143, 211, 255, 0.4); }
.room-tag .st-2 { color: var(--gold); border-color: var(--gold-dim); }
.room-q { font-family: var(--display); font-size: 28px; color: rgba(160, 180, 230, 0.55); text-shadow: 0 0 12px rgba(77, 141, 255, 0.6); }
.enemy-tag { min-width: 96px; padding: 4px 7px; border-radius: 4px; background: rgba(20, 5, 10, 0.82); border: 1px solid rgba(255, 90, 90, 0.45); font-size: 11px; color: #ffc6c6; text-align: center; }
.enemy-tag:empty { display: none; }
.enemy-tag b { display: block; font-size: 12px; letter-spacing: 0.08em; color: #ff8a8a; }
.enemy-tag i { display: block; height: 4px; margin: 3px 0 2px; background: rgba(255, 255, 255, 0.1); border-radius: 2px; overflow: hidden; }
.enemy-tag i::after { content: ''; display: block; width: var(--p); height: 100%; background: #ff5a5a; }
.enemy-tag.boss { border-color: rgba(255, 61, 154, 0.6); min-width: 130px; }
.enemy-tag.boss b { color: #ff7ab8; font-family: var(--display); }

.xp-vignette { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 160px 40px rgba(0, 0, 0, 0.85); }
.xp-vignette.on { animation: hurt 0.7s ease-out; }
@keyframes hurt { 0% { box-shadow: inset 0 0 220px 80px rgba(255, 30, 50, 0.7); } 100% { box-shadow: inset 0 0 160px 40px rgba(0, 0, 0, 0.85); } }

/* HUD frame pieces share a glass + gold-trim look */
.xp-top, .pools, .room, .xp-hand .piles, .endwrap { position: absolute; z-index: 5; }
.hudbox, .vitals, .instab, .objectives, .pools, .room { background: linear-gradient(180deg, rgba(14, 19, 34, 0.9), rgba(7, 10, 19, 0.9)); border: 1px solid rgba(232, 201, 122, 0.22); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04); backdrop-filter: blur(6px); }
.xp-top { top: 12px; left: 12px; right: 12px; display: flex; align-items: flex-start; gap: 10px; pointer-events: none; }
.xp-top > * { pointer-events: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(232, 201, 122, 0.3); background: rgba(10, 14, 26, 0.9); color: var(--gold); font-size: 20px; }
.vitals { display: flex; align-items: center; gap: 14px; padding: 8px 14px; height: 44px; }
.vitals .hp { display: flex; align-items: center; gap: 8px; }
.vitals .hp span { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; color: #ff8a8a; }
.vitals .hp b { font-size: 18px; min-width: 44px; }
.hpbar { display: block; width: 90px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hpbar em { display: block; height: 100%; background: linear-gradient(90deg, #ff3d5a, #ff8a6a); transition: width 0.4s; }
.vitals .guard { color: #8fd3ff; font-weight: 700; font-size: 16px; }
.vitals .guard:empty { display: none; }
.vitals .turn { font-family: var(--display); font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.instab { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; margin: 0 auto; }
.instab > span { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.meter { --ic: #4d8dff; display: flex; align-items: center; gap: 3px; }
.meter i { width: 10px; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, 0.07); transform: skewX(-14deg); }
.meter i.on { background: var(--ic); box-shadow: 0 0 10px var(--ic); }
.meter i.th { margin-right: 6px; }
.meter b { margin-left: 8px; font-size: 18px; color: var(--ic); min-width: 20px; }
.objectives { width: 290px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.ob { display: flex; gap: 10px; align-items: center; }
.ob i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.18); font-style: normal; color: var(--muted); flex: none; }
.ob b { display: block; font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; }
.ob span { font-size: 13px; color: var(--muted); }
.ob.done i { border-color: var(--gold); color: var(--ink); background: var(--gold); box-shadow: 0 0 14px var(--gold-dim); }
.ob.done b { color: var(--gold); }
.conv { font-size: 12px; line-height: 1.3; color: #8a93ab; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 6px; }
.conv span { display: block; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; font-size: 10px; color: #a463ff; }
.extract { font-size: 13px; color: var(--muted); }
.extract.ready { color: var(--gold); font-weight: 700; animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.55; } }

.pools { left: 12px; top: 70px; padding: 10px; display: flex; flex-direction: column; gap: 8px; width: 128px; }
.orb { --pc: #4d8dff; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; opacity: 0.55; transition: opacity 0.2s; }
.orb.lit { opacity: 1; }
.orb i { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 16px; color: var(--pc); background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 50%), rgba(0, 0, 0, 0.4); border: 1px solid var(--pc); }
.orb.lit i { box-shadow: 0 0 16px var(--pc), inset 0 0 10px var(--pc); color: #fff; }
.orb b { font-size: 20px; line-height: 1; }
.orb span { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tags { display: flex; flex-direction: column; gap: 3px; border-top: 1px solid rgba(255, 255, 255, 0.07); padding-top: 8px; }
.tags span { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: #3c4560; }
.tags span.on { color: #8fd3ff; text-shadow: 0 0 8px rgba(143, 211, 255, 0.7); }

.room { right: 12px; top: 300px; width: 290px; padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 300px - 250px); overflow: auto; }
.rh { border-left: 3px solid var(--rc); padding-left: 10px; }
.rh b { display: block; font-family: var(--display); font-size: 17px; letter-spacing: 0.06em; margin-top: 2px; }
.act { text-align: left; padding: 9px 11px; border-radius: 5px; border: 1px solid rgba(232, 201, 122, 0.35); background: rgba(232, 201, 122, 0.07); transition: background 0.15s; }
.act:hover:not([disabled]) { background: rgba(232, 201, 122, 0.18); }
.act[disabled] { opacity: 0.45; cursor: not-allowed; border-color: rgba(255, 255, 255, 0.1); background: none; }
.act b { display: block; font-size: 15px; }
.act span { font-size: 12px; color: var(--muted); }
.act em { font-style: normal; font-weight: 700; }
.room .quiet { margin: 0; font-size: 13px; color: var(--muted); }

.ticker { position: absolute; z-index: 4; left: 136px; bottom: 250px; max-width: 360px; font-size: 13px; color: #aab4cc; text-shadow: 0 1px 4px #000; pointer-events: none; }
.ticker div { margin-top: 2px; }

/* hand */
.xp-hand { position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none; background: linear-gradient(0deg, rgba(5, 7, 15, 0.92), transparent); }
.xp-hand > * { pointer-events: auto; }
.piles { left: 14px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pile { width: 96px; padding: 7px 10px; border-radius: 5px; border: 1px solid rgba(232, 201, 122, 0.25); background: repeating-linear-gradient(135deg, rgba(232, 201, 122, 0.06) 0 6px, transparent 6px 12px), rgba(10, 14, 26, 0.9); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pile b { font-size: 18px; color: #e8ecf6; margin-right: 6px; letter-spacing: 0; }
.hand { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; justify-content: center; }
.gcard { --cc: #4d8dff; --rot: 0deg; --lift: 0px; position: relative; width: 132px; height: 186px; margin: 0 -10px; border-radius: 8px; cursor: pointer; overflow: hidden; background: #0b1020; border: 1px solid color-mix(in srgb, var(--cc) 60%, transparent); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04); transform: translateY(var(--lift)) rotate(var(--rot)); transform-origin: 50% 120%; transition: transform 0.18s ease, box-shadow 0.18s; }
.hand .gcard:hover { transform: translateY(-34px) rotate(0deg) scale(1.12); z-index: 50 !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 26px color-mix(in srgb, var(--cc) 60%, transparent); }
.gcard.nft { border-width: 2px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.6), 0 0 18px color-mix(in srgb, var(--cc) 50%, transparent); }
.gcard.nft::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 3.5s linear infinite; pointer-events: none; }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.gc-art { height: 92px; background: center / cover no-repeat; border-bottom: 1px solid color-mix(in srgb, var(--cc) 40%, transparent); }
.gc-gain { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.gain { --pc: #fff; display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 4px; border-radius: 10px; background: rgba(5, 7, 15, 0.85); border: 1px solid var(--pc); color: #fff; font-weight: 700; font-size: 14px; }
.gain i { font-style: normal; color: var(--pc); font-size: 12px; }
.gc-plus { position: absolute; top: 6px; right: 6px; padding: 0 6px; border-radius: 3px; background: #ff8a2a; color: #1a0d00; font-weight: 700; font-size: 13px; }
.gc-body { padding: 6px 8px; }
.gc-body b { display: block; font-family: var(--display); font-size: 12px; letter-spacing: 0.04em; line-height: 1.15; color: #f0f3fa; }
.gc-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 4px 0 0; font-size: 11.5px; line-height: 1.22; color: #9aa4ba; }
.gcard.flying { transition: transform 0.26s cubic-bezier(0.5, 0, 0.8, 0.4), opacity 0.26s; transform: translate(var(--fx), var(--fy)) scale(0.5) !important; opacity: 0; }
.hand.picking .gcard { animation: pickme 1s ease-in-out infinite; }
@keyframes pickme { 50% { box-shadow: 0 0 0 2px #ff8a2a, 0 0 22px #ff8a2a; } }
.endwrap { right: 18px; bottom: 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.endwrap .btn.arm { border-color: #4d8dff; color: #8fb6ff; }
.end { width: 128px; height: 128px; border-radius: 50%; border: 2px solid var(--gold); background: radial-gradient(circle at 50% 35%, #3a2d10, #120d04 70%); color: var(--gold); font-family: var(--display); font-size: 17px; letter-spacing: 0.1em; box-shadow: 0 0 30px rgba(232, 201, 122, 0.25), inset 0 0 20px rgba(232, 201, 122, 0.2); transition: transform 0.12s, box-shadow 0.2s; }
.end:hover:not([disabled]) { transform: scale(1.05); box-shadow: 0 0 44px rgba(232, 201, 122, 0.45), inset 0 0 24px rgba(232, 201, 122, 0.3); }
.end[disabled] { opacity: 0.35; }

.tip { position: absolute; z-index: 20; width: 250px; padding: 10px 12px; border-radius: 6px; background: rgba(7, 10, 19, 0.96); border: 1px solid rgba(232, 201, 122, 0.3); pointer-events: none; font-size: 13px; }
.tip b { display: block; font-family: var(--display); font-size: 15px; }
.tip p { margin: 6px 0 0; color: #aab4cc; line-height: 1.3; }
.tip .ok { color: #4dff9a; font-weight: 700; }
.tip .no { color: #8a93ab; }
.tip .danger { color: #ff8a8a; }
.tip .here { color: var(--gold); }

.banner { position: absolute; z-index: 25; left: 0; right: 0; top: 30%; display: flex; justify-content: center; pointer-events: none; opacity: 0; }
.banner > div { --bc: var(--gold); text-align: center; padding: 14px 80px; background: linear-gradient(90deg, transparent, rgba(5, 7, 15, 0.9) 20%, rgba(5, 7, 15, 0.9) 80%, transparent); border-top: 1px solid var(--bc); border-bottom: 1px solid var(--bc); }
.banner b { display: block; font-family: var(--display); font-size: 34px; letter-spacing: 0.14em; color: var(--bc); text-shadow: 0 0 24px var(--bc); }
.banner span { color: #c9d3ea; letter-spacing: 0.1em; }
.banner.on { animation: bannerIn 2.2s ease forwards; }
@keyframes bannerIn { 0% { opacity: 0; transform: scaleY(0.4); } 12% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 22; }
.fl { position: absolute; transform: translate(-50%, 0); font-weight: 700; font-size: 18px; text-shadow: 0 2px 8px #000; animation: rise 1.4s ease-out forwards; white-space: nowrap; }
.fl.big { font-size: 30px; font-family: var(--display); }
@keyframes rise { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -60px) scale(1); } }

.xp-modal { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(3, 4, 9, 0.72); backdrop-filter: blur(4px); padding: 16px; }
.xm-box { position: relative; width: min(460px, 100%); max-height: 100%; overflow: auto; padding: 26px; border-radius: 8px; border: 1px solid var(--gold-dim); background: linear-gradient(180deg, #111829, #080b15); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.xm-box.wide { width: min(760px, 100%); }
.xm-box h2 { font-size: 26px; margin: 4px 0 8px; }
.xm-box .sub { color: #aab4cc; line-height: 1.45; margin: 0 0 16px; }
.xm-box .x { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 26px; color: var(--muted); }
.choices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.choices.col { flex-direction: column; }
.mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.mk-i { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.mk-i .gcard { margin: 0; cursor: default; transform: none; }
.howto { padding-left: 20px; line-height: 1.5; color: #c9d3ea; }
.howto li { margin-bottom: 6px; }
.res-row { display: flex; gap: 10px; }
.res-row div { flex: 1; text-align: center; padding: 12px 4px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.1); color: var(--muted); font-size: 20px; }
.res-row div b { display: block; font-family: var(--display); font-size: 13px; margin-top: 4px; }
.res-row div.done { border-color: var(--gold); color: var(--gold); background: rgba(232, 201, 122, 0.08); }

/* briefing */
.brief { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: linear-gradient(rgba(5, 7, 15, 0.82), rgba(5, 7, 15, 0.94)), url(/art/room-core.webp) center / cover; overflow: auto; }
.brief-box { width: min(720px, 100%); }
.brief h1 { font-size: clamp(30px, 5vw, 46px); color: var(--gold); margin: 6px 0 10px; }
.brief p { color: #c0c9de; line-height: 1.5; font-size: 17px; }
.brief h3 { font-size: 15px; margin: 22px 0 10px; }
.brief h3 em { font-family: var(--ui); font-style: normal; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; margin-left: 8px; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.paths div { padding: 12px; border: 1px solid var(--gold-dim); border-radius: 6px; background: rgba(10, 14, 26, 0.8); }
.paths i { font-style: normal; color: var(--gold); font-size: 20px; }
.paths b { display: block; font-family: var(--display); margin: 4px 0 2px; }
.paths span { color: var(--muted); font-size: 14px; }
.bring { display: flex; gap: 10px; flex-wrap: wrap; max-height: 240px; overflow: auto; }
.bring-i { --cc: #fff; width: 104px; padding: 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(10, 14, 26, 0.8); text-align: left; }
.bring-i img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; }
.bring-i b { display: block; font-size: 12px; margin-top: 4px; line-height: 1.1; }
.bring-i span { font-size: 11px; color: var(--cc); }
.bring-i.on { border-color: var(--cc); box-shadow: 0 0 16px color-mix(in srgb, var(--cc) 60%, transparent); }
.brief .choices { justify-content: flex-end; margin-top: 24px; }

/* compact screens: shrink the HUD, cards scroll horizontally */
@media (max-height: 760px), (max-width: 1100px) {
  .gcard { width: 112px; height: 160px; }
  .gc-art { height: 70px; }
  .gc-body p { -webkit-line-clamp: 3; font-size: 11px; }
  .xp-hand { height: 190px; }
  .end { width: 104px; height: 104px; font-size: 15px; }
  .ticker { bottom: 196px; }
  .objectives { width: 250px; }
  .room { top: 280px; width: 250px; max-height: calc(100vh - 280px - 200px); }
}
@media (max-width: 760px) {
  .xp-top { flex-wrap: wrap; gap: 6px; top: 8px; left: 8px; right: 8px; }
  .vitals { height: 40px; padding: 4px 10px; gap: 8px; }
  .hpbar { width: 50px; }
  .instab { order: 3; width: 100%; height: 34px; margin: 0; justify-content: center; }
  .meter i { width: 8px; height: 13px; }
  .objectives { order: 4; width: 100%; flex-direction: row; flex-wrap: wrap; padding: 6px 8px; gap: 4px 10px; }
  .objectives .conv, .objectives .extract { display: none; }
  .ob { flex: 1 1 30%; gap: 5px; }
  .ob i { width: 20px; height: 20px; font-size: 11px; }
  .ob b { font-size: 11px; }
  .ob span { font-size: 11px; }
  .pools { top: auto; bottom: 336px; left: 8px; width: auto; flex-direction: row; padding: 6px; gap: 6px; }
  .orb { grid-template-columns: 26px auto; column-gap: 4px; }
  .orb i { width: 26px; height: 26px; font-size: 12px; }
  .orb b { font-size: 15px; }
  .orb span, .tags { display: none; }
  .room { top: auto; bottom: 186px; left: 8px; right: 8px; width: auto; max-height: 145px; padding: 8px; }
  .rh b { font-size: 14px; }
  .ticker { display: none; }
  .xp-hand { height: 180px; }
  .hand { left: 0; right: 0; transform: none; bottom: 10px; overflow-x: auto; justify-content: flex-start; padding: 40px 10px 0 10px; }
  .gcard { flex: none; width: 96px; height: 136px; margin: 0 2px; }
  .hand .gcard { transform: none; }
  .hand .gcard:hover { transform: translateY(-10px); }
  .gc-art { height: 58px; }
  .gc-body p { display: none; }
  .piles { display: none; }
  .endwrap { position: absolute; right: 8px; bottom: 330px; flex-direction: row; align-items: center; z-index: 7; }
  .xp-hand { overflow: visible; }
  .end { width: 62px; height: 62px; font-size: 11px; }
  .endwrap .btn.small { padding: 6px 8px; font-size: 11px; }
  .pools { bottom: 340px; }
  .banner b { font-size: 22px; }
  .banner > div { padding: 10px 30px; }
  .paths { grid-template-columns: 1fr; }
}
.xp-modal[hidden], .tip[hidden] { display: none; }
@media (max-width: 760px) {
  .head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .head .btn { white-space: nowrap; }
}
.reveal { overflow-y: auto; padding: 16px 0; }
.reveal .stack { gap: 12px; }
.reveal .card.lg { width: min(360px, 80vw, calc((100vh - 340px) * 5 / 7)); }
.reveal #rp { height: min(200px, 22vh) !important; }
.head-btns { display: flex; gap: 10px; flex-wrap: wrap; }
body.fusing #grid .card-wrap { transition: opacity .2s, transform .2s; }
body.fusing #grid .card-wrap.blocked { opacity: .3; filter: grayscale(.8); pointer-events: none; }
body.fusing #grid .card-wrap.picked { transform: translateY(-8px); filter: drop-shadow(0 0 18px #e8c97a); }
body.fusing #grid { padding-bottom: 200px; }
.altar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 35; width: min(980px, calc(100vw - 24px));
  display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 16px; align-items: center; padding: 14px 18px;
  background: linear-gradient(180deg, rgba(20,16,8,.96), rgba(8,9,16,.97)); border: 1px solid #e8c97a88; border-radius: 16px;
  box-shadow: 0 0 40px #e8c97a33, 0 18px 50px #000a; }
.altar[hidden] { display: none; }
.altar-slots { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.altar-slots .muted { color: var(--muted); }
.altar-out { display: flex; gap: 12px; align-items: center; }
.altar-out img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid #e8c97a66; }
.altar-out b { display: block; font-family: Cinzel, serif; color: #e8c97a; font-size: 17px; }
.altar-out span { display: block; font-size: 13px; color: var(--text); }
.altar-out em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.altar-btns { display: flex; gap: 8px; }
@media (max-width: 760px) { .altar { grid-template-columns: 1fr; gap: 10px; } }
.card.fused { box-shadow: 0 0 0 1px #e8c97a99, 0 0 26px #e8c97a44; }
.card.fused .kind { color: #e8c97a; }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.recipe { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid #ffffff14; border-radius: 12px; background: #ffffff05; }
.recipe img { width: 54px; height: 54px; border-radius: 8px; object-fit: cover; flex: none; }
.recipe b { display: block; font-family: Cinzel, serif; color: #e8c97a; font-size: 14px; }
.recipe span { display: block; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.recipe em { display: block; font-style: normal; font-size: 12.5px; }
