@font-face { font-family: "Russo One"; src: url("assets/fonts/RussoOne-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/ChakraPetch-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url("assets/fonts/ChakraPetch-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #07050b; }
html { font-size: 10px; }
body {
  display: flex; align-items: center; justify-content: center;
  font-family: "Chakra Petch", "Trebuchet MS", Verdana, sans-serif; font-weight: 600; color: #f4efe6;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
#stage { position: relative; width: 960px; height: 540px; overflow: hidden; background: #120c1c; }
#c { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; outline: none; }
#stage.playing #c { cursor: none; }
#ui { position: absolute; inset: 0; display: none; font-size: 1.5rem; line-height: 1.25; }
#ui.on { display: block; }
#fade { position: absolute; inset: 0; background: #07050b; opacity: 0; pointer-events: none; transition: opacity 0.2s linear; }
#fade.on { opacity: 1; }

:root {
  --cyan: #5ef2ff; --yellow: #ffc531; --red: #ff4a5e; --green: #5dff8f; --ink: #15101c; --mute: #a59cbb;
  --panel: rgba(18, 13, 28, 0.9); --line: #40355a;
}
.disp { font-family: "Russo One", "Arial Black", Impact, sans-serif; font-weight: 400; letter-spacing: 0.02em; }
.mute { color: var(--mute); }
.cy { color: var(--cyan); } .ye { color: var(--yellow); } .gr { color: var(--green); } .re { color: var(--red); }

/* ---------- buttons ---------- */
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; outline: none; }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: "Russo One", "Arial Black", sans-serif; font-weight: 400; font-size: 1.7rem; letter-spacing: 0.04em;
  padding: 0.9rem 2rem; min-width: 14rem; color: #f4efe6;
  background: linear-gradient(#3b3154, #2a2240); border: 0.2rem solid #5a4d7a; border-radius: 0.7rem;
  box-shadow: 0 0.35rem 0 #130e1d; transition: transform 0.06s, box-shadow 0.06s, border-color 0.1s, filter 0.1s;
  white-space: nowrap;
}
.btn:hover, .btn:focus-visible, .btn.kfocus { border-color: var(--cyan); filter: brightness(1.18); transform: translateY(-0.1rem); box-shadow: 0 0.45rem 0 #130e1d, 0 0 1.6rem rgba(94, 242, 255, 0.35); }
.btn:active { transform: translateY(0.25rem); box-shadow: 0 0.1rem 0 #130e1d; }
.btn.primary { background: linear-gradient(#ffd45a, #f09a1c); border-color: #fff0b0; color: #2a1a08; text-shadow: 0 0.1rem 0 rgba(255, 255, 255, 0.4); }
.btn.primary:hover, .btn.primary:focus-visible { border-color: #fff; box-shadow: 0 0.45rem 0 #130e1d, 0 0 2rem rgba(255, 200, 70, 0.6); }
.btn.good { background: linear-gradient(#58e08a, #23a85a); border-color: #c4ffd8; color: #0b2a17; }
.btn.danger { background: linear-gradient(#7a2a3a, #5a1c2a); border-color: #b34a5e; }
.btn.small { font-size: 1.35rem; padding: 0.55rem 1.2rem; min-width: 0; border-radius: 0.55rem; box-shadow: 0 0.25rem 0 #130e1d; }
.btn.big { font-size: 2.4rem; padding: 1.2rem 3.4rem; border-radius: 1rem; }
.btn[disabled], .btn.off { filter: grayscale(0.8) brightness(0.7); cursor: default; pointer-events: none; }
.btn .cost { display: inline-flex; align-items: center; gap: 0.3rem; font-family: "Chakra Petch", sans-serif; font-weight: 700; }
.pulse { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.bolt-ic { width: 1.7rem; height: 1.7rem; vertical-align: -0.3rem; }
.star { width: 2rem; height: 2rem; fill: #3a304e; stroke: #15101c; stroke-width: 1.6; vertical-align: middle; }
.star.on { fill: #ffd84a; filter: drop-shadow(0 0 0.5rem rgba(255, 216, 74, 0.7)); }
.key {
  display: inline-block; min-width: 2.3rem; padding: 0.1rem 0.6rem; text-align: center; font-weight: 700; font-size: 1.3rem;
  color: #1b1524; background: #f4efe6; border-radius: 0.45rem; border: 0.15rem solid #0b0a12; box-shadow: 0 0.25rem 0 #0b0a12; margin: 0 0.15rem;
}

/* ---------- title ---------- */
.title { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding-right: 7%; padding-top: 3.4rem; gap: 1.5rem;
  background: linear-gradient(90deg, rgba(10, 6, 18, 0) 20%, rgba(10, 6, 18, 0.55) 70%, rgba(10, 6, 18, 0.75)); }
.logo { text-align: right; line-height: 0.86; transform: skewX(-9deg) rotate(-3deg); filter: drop-shadow(0 0.8rem 0 #15101c); margin-bottom: 0.6rem; }
.logo span { display: block; font-family: "Russo One", "Arial Black", sans-serif; -webkit-text-stroke: 0.5rem #15101c; paint-order: stroke fill; }
.logo .l1 { font-size: 7.6rem; color: #f4efe6; letter-spacing: 0.06em; }
.logo .l2 { font-size: 10.6rem; background: linear-gradient(#fff3a0 15%, #ffc531 45%, #ff7a1a 85%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; position: relative; }
.logo .l2::before { content: attr(data-t); position: absolute; left: 0; top: 0; right: 0; -webkit-text-stroke: 1rem #15101c; color: #15101c; z-index: -1; background: none; -webkit-background-clip: border-box; background-clip: border-box; }
.title .tag { font-size: 1.8rem; letter-spacing: 0.5em; color: var(--cyan); text-shadow: 0 0.2rem 0 #15101c; margin-right: 0.4rem; }
.title .legend { font-size: 1.3rem; color: #d8d0ea; text-align: right; line-height: 2.1; text-shadow: 0 0.15rem 0 #15101c; }
.title .foot { position: absolute; left: 2rem; bottom: 1.4rem; font-size: 1.2rem; color: rgba(255, 255, 255, 0.55); }
.corner { position: absolute; right: 1.6rem; top: 1.4rem; display: flex; gap: 0.8rem; align-items: center; }
.icon-btn { width: 4rem; height: 4rem; min-width: 0; padding: 0; font-size: 2rem; border-radius: 50%; }

/* ---------- hub ---------- */
.hub { position: absolute; inset: 0; display: flex; flex-direction: column; background: linear-gradient(rgba(10, 6, 18, 0.72), rgba(10, 6, 18, 0.5) 40%, rgba(10, 6, 18, 0.8)); }
.topbar { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.6rem; background: rgba(12, 8, 20, 0.88); border-bottom: 0.2rem solid var(--line); }
.topbar .btn.small { flex-shrink: 0; }
.brand { font-family: "Russo One", sans-serif; font-size: 1.9rem; flex-shrink: 0; color: var(--yellow); transform: skewX(-9deg); text-shadow: 0 0.2rem 0 #15101c; white-space: nowrap; }
.brand b { color: #f4efe6; font-weight: 400; }
.tabs { display: flex; gap: 0.4rem; margin-left: 0.4rem; flex-shrink: 0; }
.tab { position: relative; font-family: "Russo One", sans-serif; font-size: 1.5rem; padding: 0.7rem 1.25rem; color: #b8aed0; border-radius: 0.6rem; border: 0.2rem solid transparent; transition: all 0.1s; }
.tab:hover, .tab:focus-visible { color: #fff; border-color: var(--cyan); }
.tab.active { background: #f4efe6; color: #1b1524; }
.badge { position: absolute; right: -0.5rem; top: -0.6rem; min-width: 1.9rem; height: 1.9rem; line-height: 1.9rem; text-align: center; border-radius: 1rem; font-size: 1.2rem; background: var(--red); color: #fff; font-family: "Chakra Petch", sans-serif; font-weight: 700; animation: pulse 0.9s infinite; }
.wallet { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; font-size: 1.75rem; font-family: "Russo One", sans-serif; flex-shrink: 0; }
.wallet .w { display: flex; align-items: center; gap: 0.5rem; }
.wallet .w.bolts { color: #ffe08a; }
.wallet .star { width: 2.1rem; height: 2.1rem; }
.hub-body { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 1.2rem 1.8rem 1.4rem; gap: 1rem; }

.zones { display: flex; gap: 0.7rem; }
.zone { flex: 1; text-align: left; padding: 0.6rem 1rem; border-radius: 0.7rem; background: rgba(30, 23, 46, 0.86); border: 0.2rem solid var(--line); transition: all 0.1s; min-width: 0; }
.zone .zn { font-size: 1.1rem; color: var(--mute); letter-spacing: 0.1em; }
.zone .zt { font-family: "Russo One", sans-serif; font-size: 1.45rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone .zs { font-size: 1.15rem; color: #ffd84a; }
.zone:hover, .zone:focus-visible { border-color: var(--cyan); }
.zone.active { background: linear-gradient(#4a3d6e, #33284f); border-color: #f4efe6; }
.zone.locked { opacity: 0.5; }
.blurb { font-size: 1.4rem; color: #d8d0ea; min-height: 1.8rem; text-shadow: 0 0.15rem 0 #15101c; }
.cards { display: flex; gap: 0.9rem; }
.card { position: relative; flex: 1; min-width: 0; height: 12.4rem; text-align: left; padding: 0.9rem 1rem; border-radius: 0.9rem; background: rgba(26, 20, 40, 0.92); border: 0.25rem solid var(--line); transition: transform 0.08s, border-color 0.1s; overflow: hidden; }
.card:hover, .card:focus-visible { border-color: var(--cyan); transform: translateY(-0.2rem); }
.card.sel { border-color: var(--yellow); background: linear-gradient(rgba(74, 58, 30, 0.95), rgba(40, 30, 40, 0.95)); box-shadow: 0 0 1.8rem rgba(255, 197, 49, 0.3); }
.card .num { font-family: "Russo One", sans-serif; font-size: 2.6rem; color: #f4efe6; line-height: 1; }
.card .nm { font-size: 1.35rem; color: #d8d0ea; margin-top: 0.3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .st { position: absolute; left: 0.9rem; bottom: 0.8rem; display: flex; gap: 0.2rem; }
.card .tagx { position: absolute; right: 0.7rem; top: 0.7rem; font-size: 1.05rem; padding: 0.1rem 0.6rem; border-radius: 0.4rem; background: var(--red); color: #fff; letter-spacing: 0.08em; }
.card .tagx.next { background: var(--green); color: #0b2a17; animation: pulse 1s infinite; }
.card.locked { opacity: 0.55; }
.card.locked .num { color: #7a708e; }
.lock { position: absolute; right: 0.9rem; bottom: 0.8rem; width: 2.2rem; height: 2.2rem; fill: #7a708e; }
.detail { flex: 1; min-height: 0; display: flex; gap: 2rem; padding: 1.3rem 1.6rem; border-radius: 0.9rem; background: var(--panel); border: 0.2rem solid var(--line); }
.detail .info { flex: 1.25; min-width: 0; }
.detail h2 { font-family: "Russo One", sans-serif; font-size: 2.5rem; font-weight: 400; line-height: 1.1; }
.detail .brief { color: #d8d0ea; margin-top: 0.5rem; font-size: 1.45rem; }
.detail .recs { margin-top: 0.7rem; font-size: 1.3rem; color: var(--mute); }
.objs { flex: 1; display: flex; flex-direction: column; gap: 0.45rem; justify-content: center; font-size: 1.4rem; }
.obj { display: flex; align-items: center; gap: 0.7rem; color: #cfc6e2; }
.obj.on { color: #fff; }
.go { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 0.8rem; min-width: 19rem; }
.go .hint { font-size: 1.15rem; text-align: center; color: var(--mute); }

/* ---------- armory ---------- */
.arm { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.subtabs { display: flex; gap: 0.6rem; }
.subtab { font-family: "Russo One", sans-serif; font-size: 1.35rem; padding: 0.5rem 1.4rem; border-radius: 0.5rem; background: rgba(30, 23, 46, 0.86); border: 0.2rem solid var(--line); color: #b8aed0; position: relative; }
.subtab:hover, .subtab:focus-visible { border-color: var(--cyan); color: #fff; }
.subtab.active { background: #f4efe6; color: #1b1524; border-color: #f4efe6; }
.arm-main { flex: 1; min-height: 0; display: flex; gap: 1.2rem; }
.arm-list { width: 34%; display: flex; flex-direction: column; gap: 0.5rem; overflow-y: auto; padding-right: 0.4rem; }
.arm-list::-webkit-scrollbar { width: 0.6rem; } .arm-list::-webkit-scrollbar-thumb { background: #5a4d7a; border-radius: 0.3rem; }
.item { display: flex; align-items: center; gap: 0.9rem; text-align: left; padding: 0.5rem 0.9rem; border-radius: 0.7rem; background: rgba(26, 20, 40, 0.92); border: 0.2rem solid var(--line); min-height: 4.5rem; flex-shrink: 0; transition: border-color 0.1s; }
.item:hover, .item:focus-visible { border-color: var(--cyan); }
.item.sel { border-color: var(--yellow); background: linear-gradient(rgba(74, 58, 30, 0.95), rgba(40, 30, 40, 0.95)); }
.item img { width: 5.4rem; height: 3rem; object-fit: contain; }
.item .nm { flex: 1; font-size: 1.45rem; font-family: "Russo One", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tg { font-size: 1.1rem; padding: 0.1rem 0.6rem; border-radius: 0.4rem; background: #3a304e; color: #cfc6e2; white-space: nowrap; }
.item .tg.eq { background: var(--green); color: #0b2a17; }
.item .tg.buy { background: var(--yellow); color: #2a1a08; }
.item.locked { opacity: 0.5; }
.arm-detail { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.7rem; padding: 1.2rem 1.5rem; border-radius: 0.9rem; background: var(--panel); border: 0.2rem solid var(--line); }
.arm-detail .head { display: flex; align-items: center; gap: 1.4rem; }
.arm-detail .head img { width: 12rem; height: 5.6rem; object-fit: contain; filter: drop-shadow(0 0.4rem 0 rgba(0, 0, 0, 0.5)); }
.arm-detail h2 { font-family: "Russo One", sans-serif; font-size: 2.4rem; font-weight: 400; line-height: 1.1; }
.arm-detail .desc { color: #d8d0ea; font-size: 1.4rem; }
.pips { display: flex; gap: 0.35rem; align-items: center; }
.pip { width: 2.2rem; height: 0.9rem; border-radius: 0.2rem; background: #3a304e; border: 0.12rem solid #15101c; }
.pip.on { background: var(--yellow); box-shadow: 0 0 0.6rem rgba(255, 197, 49, 0.6); }
.statrow { display: flex; align-items: center; gap: 0.8rem; font-size: 1.25rem; }
.statrow .lb { width: 8rem; color: var(--mute); }
.statbar { flex: 1; height: 1rem; border-radius: 0.3rem; background: #2a2238; border: 0.12rem solid #15101c; overflow: hidden; position: relative; }
.statbar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #5ef2ff, #9df7ff); }
.statbar i.nx { background: rgba(93, 255, 143, 0.55); }
.traits { font-size: 1.25rem; color: #cfc6e2; display: flex; flex-direction: column; gap: 0.2rem; }
.traits .t { display: flex; gap: 0.6rem; } .traits .t b { color: var(--mute); min-width: 4.4rem; } .traits .t.on { color: #fff; } .traits .t.on b { color: var(--yellow); }
.arm-actions { margin-top: auto; display: flex; gap: 1rem; align-items: center; }
.arm-actions .note { font-size: 1.25rem; color: var(--mute); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.swatch { width: 9.5rem; padding: 0.7rem; border-radius: 0.7rem; background: rgba(26, 20, 40, 0.92); border: 0.2rem solid var(--line); text-align: center; font-size: 1.15rem; }
.swatch i { display: block; height: 2.2rem; border-radius: 0.4rem; margin-bottom: 0.4rem; border: 0.15rem solid #15101c; }
.swatch.sel { border-color: var(--yellow); } .swatch:hover, .swatch:focus-visible { border-color: var(--cyan); } .swatch.locked { opacity: 0.45; }

/* ---------- daily ---------- */
.daily { flex: 1; min-height: 0; display: flex; gap: 1.4rem; }
.panel { flex: 1; min-width: 0; padding: 1.5rem 1.8rem; border-radius: 0.9rem; background: var(--panel); border: 0.2rem solid var(--line); display: flex; flex-direction: column; gap: 0.9rem; }
.panel h2 { font-family: "Russo One", sans-serif; font-size: 2.3rem; font-weight: 400; }
.panel .sub { color: #d8d0ea; font-size: 1.4rem; }
.streak { display: flex; gap: 0.5rem; }
.day { flex: 1; text-align: center; padding: 0.6rem 0; border-radius: 0.5rem; background: #2a2238; border: 0.15rem solid #15101c; font-size: 1.15rem; color: var(--mute); }
.day b { display: block; font-family: "Russo One", sans-serif; font-weight: 400; font-size: 1.4rem; color: #cfc6e2; }
.day.on { background: linear-gradient(#58e08a, #23a85a); color: #0b2a17; } .day.on b { color: #0b2a17; }
.day.next { border-color: var(--yellow); box-shadow: 0 0 1rem rgba(255, 197, 49, 0.4); }
.mods { display: flex; flex-direction: column; gap: 0.5rem; }
.mod { display: flex; gap: 0.8rem; align-items: baseline; font-size: 1.4rem; }
.mod b { font-family: "Russo One", sans-serif; font-weight: 400; } .mod.bad b { color: var(--red); } .mod.good b { color: var(--green); }
.count { font-family: "Russo One", sans-serif; font-size: 1.6rem; color: var(--cyan); }
.spacer { flex: 1; }

/* ---------- results / pause / dialogs ---------- */
.overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 5, 14, 0.72); }
.box { min-width: 52rem; max-width: 84rem; max-height: 96%; padding: 2rem 2.8rem; border-radius: 1.2rem; background: var(--panel); border: 0.25rem solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 1.1rem; box-shadow: 0 1.2rem 4rem rgba(0, 0, 0, 0.6); }
.box h1 { font-family: "Russo One", sans-serif; font-weight: 400; font-size: 3.8rem; line-height: 1; transform: skewX(-7deg); text-shadow: 0 0.35rem 0 #15101c; }
.box h1.win { color: var(--cyan); } .box h1.lose { color: var(--red); }
.box .mname { color: var(--mute); font-size: 1.4rem; letter-spacing: 0.12em; }
.bigstars { display: flex; gap: 2.2rem; margin: 0.4rem 0; }
.bigstar { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 1.2rem; color: var(--mute); width: 13rem; text-align: center; }
.bigstar .star { width: 5.4rem; height: 5.4rem; transform: scale(0.6); opacity: 0.6; transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1), opacity 0.2s; }
.bigstar.on .star { transform: scale(1); opacity: 1; } .bigstar.on { color: #fff; }
.bigstar .new { color: var(--green); font-size: 1.1rem; height: 1.3rem; }
.rstats { display: flex; gap: 2.4rem; font-size: 1.4rem; color: #cfc6e2; } .rstats b { color: #fff; font-family: "Russo One", sans-serif; font-weight: 400; font-size: 1.7rem; margin-left: 0.5rem; }
.loot { width: 100%; display: flex; flex-direction: column; gap: 0.25rem; padding: 0.9rem 1.4rem; border-radius: 0.8rem; background: rgba(0, 0, 0, 0.3); font-size: 1.4rem; }
.loot .row { display: flex; justify-content: space-between; color: #cfc6e2; } .loot .row b { color: #ffe08a; }
.loot .row.tot { font-family: "Russo One", sans-serif; font-size: 2.1rem; color: #fff; border-top: 0.15rem solid var(--line); padding-top: 0.4rem; margin-top: 0.3rem; }
.unl { width: 100%; display: flex; flex-direction: column; gap: 0.4rem; }
.unl .u { display: flex; align-items: center; gap: 0.9rem; padding: 0.5rem 1rem; border-radius: 0.6rem; background: linear-gradient(90deg, rgba(93, 255, 143, 0.25), rgba(93, 255, 143, 0.05)); border: 0.15rem solid rgba(93, 255, 143, 0.6); font-size: 1.35rem; animation: slidein 0.4s both; }
.unl .u b { font-family: "Russo One", sans-serif; font-weight: 400; color: var(--green); } .unl .u img { width: 4.6rem; height: 2.4rem; object-fit: contain; }
@keyframes slidein { from { transform: translateX(-2rem); opacity: 0; } to { transform: none; opacity: 1; } }
.btnrow { display: flex; gap: 1rem; margin-top: 0.5rem; flex-wrap: wrap; justify-content: center; }
.tip { font-size: 1.35rem; color: #d8d0ea; max-width: 60rem; text-align: center; }
.menu { display: flex; flex-direction: column; gap: 0.9rem; align-items: stretch; min-width: 30rem; }
.ctrl { display: grid; grid-template-columns: auto auto; gap: 0.5rem 1.6rem; font-size: 1.3rem; color: #d8d0ea; align-items: center; margin-top: 0.4rem; }
.ctrl .k { text-align: right; white-space: nowrap; }
.set { display: grid; grid-template-columns: 15rem 1fr; gap: 1rem 1.6rem; align-items: center; font-size: 1.5rem; width: 100%; }
.seg { display: flex; gap: 0.5rem; align-items: center; }
.meter { display: flex; gap: 0.25rem; } .meter i { width: 1.2rem; height: 1.9rem; border-radius: 0.2rem; background: #3a304e; } .meter i.on { background: var(--cyan); }
.toast { position: absolute; left: 50%; top: 7rem; transform: translateX(-50%); padding: 0.8rem 1.8rem; border-radius: 0.8rem; background: rgba(18, 13, 28, 0.95); border: 0.2rem solid var(--green); font-size: 1.5rem; animation: toast 2.2s both; pointer-events: none; white-space: nowrap; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -1rem); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -1rem); } }
.center-msg { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font-family: "Russo One", sans-serif; font-size: 2.2rem; text-shadow: 0 0.25rem 0 #15101c; }

.card .kind { font-size: 1.05rem; letter-spacing: 0.12em; color: var(--mute); margin-top: 0.5rem; }
.card .ocp { position: absolute; right: 0.9rem; bottom: 0.9rem; display: flex; gap: 0.25rem; }
.card .ocp i { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--red); border: 0.12rem solid #15101c; box-shadow: 0 0 0.6rem rgba(255, 74, 94, 0.7); }
.ocrow { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.7rem; font-size: 1.2rem; letter-spacing: 0.1em; }
.ocrow .btn.small { min-width: 4rem; padding: 0.35rem 0.8rem; font-size: 1.2rem; }

.panel h3 { font-family: "Russo One", sans-serif; font-weight: 400; font-size: 1.35rem; letter-spacing: 0.08em; color: var(--mute); margin-top: 0.3rem; }
.contracts { display: flex; flex-direction: column; gap: 0.45rem; }
.contract { display: flex; align-items: center; gap: 1rem; padding: 0.5rem 0.9rem; border-radius: 0.6rem; background: rgba(0, 0, 0, 0.28); border: 0.15rem solid transparent; font-size: 1.3rem; min-height: 4rem; }
.contract.done { border-color: var(--green); }
.contract.claimed { opacity: 0.55; }
.contract .ct { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.contract .cr { white-space: nowrap; color: #ffe08a; font-size: 1.2rem; }
.cbar { height: 0.5rem; border-radius: 0.25rem; background: #2a2238; overflow: hidden; }
.cbar i { display: block; height: 100%; background: linear-gradient(90deg, #5ef2ff, #5dff8f); }

.item .tg.bk { background: var(--cyan); color: #062a30; }
.swaphint { font-size: 1.2rem; }
.arm-actions .btn.small { font-size: 1.4rem; padding: 0.7rem 1.3rem; }

.title .pitch { font-size: 1.45rem; line-height: 1.35; color: #f4efe6; text-shadow: 0 0.15rem 0 #15101c; margin-top: -0.8rem; margin-right: 0.4rem; text-align: right; }

.title .resume { font-size: 1.4rem; text-align: right; text-shadow: 0 0.15rem 0 #15101c; line-height: 1.7; margin-top: -0.6rem; }
.title .resume .star { width: 1.6rem; height: 1.6rem; vertical-align: -0.25rem; }

/* keyboard / gamepad selection highlight, set explicitly by the menu code */
.tab.kfocus, .subtab.kfocus, .zone.kfocus, .card.kfocus, .item.kfocus, .swatch.kfocus { border-color: var(--cyan); box-shadow: 0 0 1.2rem rgba(94, 242, 255, 0.4); }
.card.kfocus { transform: translateY(-0.2rem); }
.btn.primary.kfocus { border-color: #fff; box-shadow: 0 0.45rem 0 #130e1d, 0 0 2rem rgba(255, 200, 70, 0.6); }
/* results: the middle scrolls if a mission unlocks a lot at once; the buttons always stay in view */
.box { overflow: hidden; }
.rscroll { width: 100%; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; padding: 0.2rem 0.4rem; }
.rscroll::-webkit-scrollbar { width: 0.6rem; } .rscroll::-webkit-scrollbar-thumb { background: #5a4d7a; border-radius: 0.3rem; }
.box > .btnrow, .box > h1, .box > .mname { flex-shrink: 0; }
