/* ==================================================================
   FURY - CS:GO/CS2 Remake website theme (dark navy + gold, CS2 look)
   ================================================================== */

:root {
	--bg:        #131722;
	--bg2:       #191f2c;
	--card:      #1d2433;
	--card2:     #232c3e;
	--line:      #2c3650;
	--ink:       #dbe4f3;
	--dim:       #8b97ad;
	--gold:      #f7b32b;
	--gold2:     #ffce54;
	--blue:      #4b69ff;
	--red:       #eb4b4b;
	--green:     #3fc668;

	--r0: #b0c3d9;   /* common    */
	--r1: #4b69ff;   /* uncommon  */
	--r2: #d32ce6;   /* epic      */
	--r3: #eb4b4b;   /* legendary */
	--r4: #e4ae39;   /* ultra     */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(75,105,255,.14), transparent 60%),
		radial-gradient(900px 420px at 0% 0%, rgba(247,179,43,.07), transparent 55%),
		var(--bg);
	color: var(--ink);
	font: 15px/1.55 "Inter", system-ui, "Segoe UI", Arial, sans-serif;
	min-height: 100vh;
}

code { background: #0e121b; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--gold2); }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Oswald", "Inter", sans-serif; letter-spacing: .4px; }
.wrap { max-width: 1080px; margin: 26px auto 60px; padding: 0 16px; }

/* ---------- top nav ---------- */
.topnav {
	position: sticky; top: 0; z-index: 50;
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px;
	padding: 10px 22px;
	background: rgba(17, 21, 30, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.logo { font-family: "Oswald"; font-size: 21px; display: flex; align-items: baseline; gap: 8px; flex: none; }
.logo b { color: var(--gold); letter-spacing: 2px; }
.logo span { font-size: 11px; color: var(--dim); letter-spacing: 2px; }

/* the icon strip: press & drag to slide it (JS in header.php),
 * mouse wheel over it also scrolls, touch swipes it natively */
.navlinks {
	display: flex; gap: 4px;
	overflow-x: auto; overflow-y: hidden;
	flex-wrap: nowrap;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	user-select: none; cursor: grab;
	min-width: 0;
}
.navlinks::-webkit-scrollbar { display: none; }
.navlinks.grabbing { cursor: grabbing; }
.navlinks::after { content: ''; flex: none; width: 2px; }
.navlinks a { flex: none; padding: 7px 13px; border-radius: 8px; color: var(--dim); font-weight: 600; font-size: 14px; }
.navlinks a:hover { color: var(--ink); background: #ffffff10; }
.navlinks a.on { color: var(--ink); background: #ffffff14; box-shadow: inset 0 -2px 0 var(--gold); }

.navuser { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.chip {
	background: var(--card); border: 1px solid var(--line); color: var(--dim);
	border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.chip.coins { color: var(--gold2); border-color: #48410f; background: #24210d; }
.chip.userchip { color: var(--ink); }
.chip.userchip:hover { border-color: #4a5a85; }
.chip.out { color: #ff9a9a; }
.chip.out:hover { background: #3a1d1d; }
.keysmini { margin-left: 6px; color: var(--dim); }

/* ---------- buttons ---------- */
.btn {
	display: inline-block; cursor: pointer; border: 0; border-radius: 10px;
	padding: 11px 26px; font: 700 15px "Inter", sans-serif; color: #191100;
	background: linear-gradient(180deg, var(--gold2), var(--gold));
	box-shadow: 0 6px 18px -6px rgba(247, 179, 43, .55);
	transition: transform .12s, filter .12s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.btn:active { transform: translateY(0); }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; transform: none; }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.btn.ghost:hover { border-color: #55679c; }
.btn.small { padding: 7px 16px; font-size: 13px; border-radius: 8px; }
.btn.buy { background: linear-gradient(180deg, #6f86ff, var(--blue)); color: #fff; box-shadow: 0 6px 18px -6px rgba(75,105,255,.55); }
.btn.cancel {
	background: linear-gradient(180deg, rgba(235, 75, 75, .22), rgba(235, 75, 75, .10));
	border: 1px solid rgba(235, 75, 75, .6); color: #ffb6b6; box-shadow: none;
}
.btn.cancel:hover { border-color: var(--red); color: #fff; }

/* ---------- hero ---------- */
.hero {
	text-align: center; padding: 58px 20px 46px; position: relative;
}
.hero h1 {
	font-size: clamp(40px, 7vw, 74px); line-height: 1.02; text-transform: uppercase;
	background: linear-gradient(90deg, #fff 10%, var(--gold2) 55%, var(--gold));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	text-shadow: 0 0 60px rgba(247,179,43,.18);
}
.hero h1 small { display: block; font-size: 15px; letter-spacing: 6px; color: var(--dim); margin-top: 10px; -webkit-text-fill-color: var(--dim); }
.hero p.sub { color: var(--dim); max-width: 620px; margin: 16px auto 26px; }
.hero .herobtns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.statstrip {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 10px; max-width: 900px; margin: 34px auto 0;
}
.stat {
	background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.stat b { display: block; font-family: "Oswald"; font-size: 24px; color: var(--gold2); }
.stat span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }

/* ---------- generic cards / grids ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.panel h2 { font-size: 21px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.panel h2::before { content: ''; width: 4px; height: 20px; border-radius: 2px; background: var(--gold); }

.grid { display: grid; gap: 14px; }
.grid.cases { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.items { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ---------- case cards ---------- */
.casecard {
	background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
	display: flex; flex-direction: column; gap: 10px; transition: transform .15s, border-color .15s;
	position: relative;
}
.casecard:hover { transform: translateY(-3px); border-color: #55679c; }
.casecard h3 { font-size: 17px; }
.casecard .caseprice { color: var(--gold2); font-weight: 800; }
.casecard .ownbadge { position: absolute; top: 12px; right: 12px; font-size: 12px; background: #16321e; border: 1px solid #2f5c3d; color: #8be9a4; border-radius: 999px; padding: 3px 10px; }

/* example skins inside a case card */
.casepeek { display: flex; gap: 6px; }
.peekcell {
	flex: 1; border-radius: 8px; padding: 8px 6px; text-align: center;
	font-size: 10.5px; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
	background: #10141d; border: 1px solid #262e42;
}
.peekcell b { display: block; font-size: 11px; }

.r0 b, .r0 { color: var(--r0); }
.r1 b, .r1 { color: var(--r1); }
.r2 b, .r2 { color: var(--r2); }
.r3 b, .r3 { color: var(--r3); }
.r4 b, .r4 { color: var(--r4); }
.peekcell.r0 { border-color: #b0c3d94d; } .peekcell.r1 { border-color: #4b69ff80; }
.peekcell.r2 { border-color: #d32ce680; } .peekcell.r3 { border-color: #eb4b4b80; }
.peekcell.r4 { border-color: #e4ae3980; background: #e4ae390d; }

/* ---------- inventory chips ---------- */
.itemchip {
	background: #10141d; border: 1px solid var(--line); border-left: 4px solid var(--r0);
	border-radius: 10px; padding: 10px 12px; font-size: 13px;
	display: flex; flex-direction: column; gap: 3px; min-height: 64px; justify-content: center;
}
.itemchip b { font-size: 13.5px; }
.itemchip .sec { color: var(--dim); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.itemchip .val { color: var(--gold2); font-size: 12px; }
.itemchip.equipped { outline: 1px solid var(--green); }
.itemchip .eq { color: var(--green); font-size: 10.5px; font-weight: 700; letter-spacing: 1px; }

/* item sections heading */
.secgroup { margin: 18px 0 8px; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; }

/* ---------- stat cards on dashboard ---------- */
.dashtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dashtable th { text-align: left; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.dashtable td { padding: 8px 10px; border-bottom: 1px solid #232b3d; }
.dashtable tr:last-child td { border-bottom: 0; }

/* ---------- pity bar ---------- */
.pitybar { height: 10px; background: #10141d; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.pitybar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--r2), var(--r4)); transition: width .4s; }

/* ---------- login ---------- */
.authbox { max-width: 400px; margin: 60px auto; }
.authbox .panel h1 { font-size: 26px; margin-bottom: 6px; }
.authbox label { display: block; margin: 14px 0 6px; color: var(--dim); font-size: 13px; font-weight: 600; }
.authbox input {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
	background: #10141d; color: var(--ink); font-size: 15px;
}
.authbox input:focus { outline: none; border-color: var(--blue); }
.msg-ok   { background: #10241a; border: 1px solid #2f5c3d; color: #8be9a4; padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: 14px; }
.msg-err  { background: #2a1414; border: 1px solid #6b2f2f; color: #ff9a9a; padding: 10px 14px; border-radius: 10px; margin: 10px 0; font-size: 14px; }

/* ---------- roulette ---------- */
.reel-zone { position: relative; padding: 22px 0; border-radius: 14px; background: linear-gradient(180deg, #10141d, #171e2c); border: 1px solid var(--line); margin: 18px 0; }
.reel-window { overflow: hidden; position: relative; height: 132px; }
.reel-window::before, .reel-window::after {
	content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 5; pointer-events: none;
}
.reel-window::before { left: 0;  background: linear-gradient(90deg, #10141d, transparent); }
.reel-window::after  { right: 0; background: linear-gradient(-90deg, #10141d, transparent); }

.reel-pointer {
	position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px;
	background: linear-gradient(180deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); z-index: 6;
}
.reel-pointer::after { content: ''; position: absolute; top: -6px; left: -7px; border: 8px solid transparent; border-top-color: var(--gold); }
.reel-pointer::before{ content: ''; position: absolute; bottom: -6px; left: -7px; border: 8px solid transparent; border-bottom-color: var(--gold); }

.reel-strip { position: absolute; top: 20px; bottom: auto; left: 0; display: flex; gap: 8px; will-change: transform; }
.reel-item {
	width: 104px; height: 92px; flex: 0 0 104px; border-radius: 10px;
	background: #161b28; border: 1px solid #273046; border-top: 3px solid var(--r0);
	display: flex; flex-direction: column; justify-content: center; align-items: center;
	font-size: 11px; padding: 6px; text-align: center; overflow: hidden;
}
.reel-item small { color: var(--dim); font-size: 9.5px; text-transform: uppercase; }
.reel-item b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; color: var(--ink); }
.reel-item.r1 { border-top-color: var(--r1); }
.reel-item.r2 { border-top-color: var(--r2); }
.reel-item.r3 { border-top-color: var(--r3); }
.reel-item.r4 { border-top-color: var(--r4); box-shadow: 0 0 18px -4px #e4ae3955; }

/* ---------- result modal ---------- */
.modal-veil { position: fixed; inset: 0; background: #06081099; backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal-veil.show { display: flex; }
.resultbox {
	width: min(430px, 92vw); text-align: center; border-radius: 16px; padding: 30px 26px;
	background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line);
	animation: pop .35s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.resultbox .tier { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 800; }
.resultbox h2 { font-size: 30px; margin: 10px 0 4px; }
.resultbox .worth { color: var(--dim); font-size: 14px; }
.resultbox .bonus { margin-top: 12px; color: var(--gold2); font-weight: 700; }
.resultbox .dupe { color: #ffb74d; }

/* rarity glow around result box */
.resultbox.r0 { border-color: #b0c3d980; box-shadow: 0 0 45px -10px #b0c3d966; }
.resultbox.r1 { border-color: #4b69ff99; box-shadow: 0 0 55px -10px #4b69ff88; }
.resultbox.r2 { border-color: #d32ce6aa; box-shadow: 0 0 60px -8px #d32ce699; }
.resultbox.r3 { border-color: #eb4b4baa; box-shadow: 0 0 65px -8px #eb4b4b99; }
.resultbox.r4 { border-color: #e4ae39cc; box-shadow: 0 0 70px -6px #e4ae39aa; }

/* tables on index */
.ranktable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ranktable th { text-align: left; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ranktable td { padding: 7px 10px; border-bottom: 1px solid #222a3b; }
.ranktable tr:last-child td { border-bottom: 0; }
.ranktable .num { color: var(--dim); width: 34px; }
.ranktable .trophy { color: var(--gold2); }
.top2col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .top2col { grid-template-columns: 1fr; } }

/* footer */
.foot {
	margin-top: 70px; padding: 26px; text-align: center; color: var(--dim);
	border-top: 1px solid var(--line); font-size: 13px;
}
.footconnect code { margin-left: 6px; cursor: pointer; }
.okline {
	max-width: 1080px; margin: 14px auto 0; padding: 9px 20px; color: var(--dim);
	background: #ffffff06; border-bottom: 1px solid #232b3d; font-size: 13px; text-align: center;
}
.okline b { color: var(--gold2); }

@media (max-width: 720px) {
	.topnav { padding: 10px 12px; }
	/* links come back as their own swipeable row instead of vanishing */
	.navlinks {
		order: 3; flex: none; width: 100%;
		margin-top: 6px; padding-bottom: 2px;
	}
}

/* ---------- admin ---------- */
.btn.admin {
	background: #f7b32b; border: none; color: #131722; font-weight: 800;
	padding: 7px 16px; border-radius: 8px;
}
.btn.admin:hover { background: #ffc95e; }
.admtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.admtab {
	padding: 8px 18px; border-radius: 8px; border: 1px solid var(--line);
	color: var(--dim); text-decoration: none; font-weight: 700; font-size: 13px;
	background: #ffffff06;
}
.admtab.on { background: var(--gold2); color: #131722; border-color: transparent; }
.admtab.soon { opacity: 0.45; cursor: default; }
.banstate { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.banstate.perm { background: #eb4b4b33; color: #ff8f8f; }
.banstate.act  { background: #4b69ff33; color: #9fb0ff; }
.banstate.exp  { background: #ffffff12; color: var(--dim); }
.searchbar {
	display: flex; gap: 10px; margin-bottom: 16px; max-width: 560px;
}
.searchbar input[name="q"] {
	flex: 1; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line);
	background: #0e121b; color: var(--ink); font-family: Inter, sans-serif;
}
.mono { font-family: monospace; font-size: 12px; color: var(--dim); }

/* ---------- quantity picker (buy 1-10) ---------- */
.qveil {
	position: fixed; inset: 0; z-index: 300; display: none;
	align-items: center; justify-content: center; padding: 16px;
	background:
		radial-gradient(700px 320px at 50% 0%, rgba(247,179,43,.10), transparent 65%),
		radial-gradient(800px 420px at 50% 110%, rgba(75,105,255,.14), transparent 60%),
		rgba(6,8,16,.72);
	backdrop-filter: blur(10px) saturate(1.2);
}
.qveil.show { display: flex; animation: qfade .18s ease; }
@keyframes qfade { from { opacity: 0; } }

.qbox {
	position: relative; width: min(400px, 94vw); overflow: hidden;
	border-radius: 20px; padding: 26px 24px 22px;
	background: linear-gradient(165deg, rgba(46,56,82,.92), rgba(23,29,44,.94));
	border: 1px solid #4a55754d;
	box-shadow: 0 30px 90px -20px rgba(0,0,0,.75), 0 0 0 1px #ffffff0d inset;
	animation: pop .35s cubic-bezier(.2, 1.6, .4, 1);
}
.qglow {
	position: absolute; inset: -40%; pointer-events: none; opacity: .55;
	background:
		radial-gradient(340px 180px at 20% -10%, rgba(247,179,43,.20), transparent 70%),
		radial-gradient(380px 220px at 110% 115%, rgba(75,105,255,.22), transparent 70%);
}
.qbox h3 { position: relative; font-size: 22px; text-align: center; }
.qunitline {
	position: relative; text-align: center; color: var(--dim); font-size: 13.5px; margin-top: 4px;
}
.qunitline b { color: var(--gold2); }
.qitem { color: var(--ink); }

.qnumrow { position: relative; text-align: center; margin: 14px 0 6px; }
.qnum {
	display: inline-block; font: 800 58px/1 "Oswald", sans-serif;
	background: linear-gradient(180deg, #fff 15%, var(--gold2) 60%, var(--gold));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	text-shadow: 0 0 34px rgba(247,179,43,.35);
}
.qnum.bump { animation: qbump .22s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes qbump { 40% { transform: scale(1.14); } }

.qsliderrow { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.qslider {
	-webkit-appearance: none; appearance: none;
	flex: 1; height: 10px; border-radius: 999px; outline: none;
	background: #262e42; cursor: pointer;
	box-shadow: 0 1px 8px rgba(0,0,0,.5) inset;
}
.qslider::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	width: 26px; height: 26px; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold2) 45%, var(--gold));
	border: 2px solid #fff2; cursor: grab;
	box-shadow: 0 0 0 4px rgba(247,179,43,.18), 0 0 18px rgba(247,179,43,.55), 0 2px 6px rgba(0,0,0,.5);
	transition: transform .15s;
}
.qslider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.qslider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.05); }
.qslider::-moz-range-thumb {
	width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff2;
	background: radial-gradient(circle at 35% 30%, #ffe9a8, var(--gold2) 45%, var(--gold));
	box-shadow: 0 0 0 4px rgba(247,179,43,.18), 0 0 18px rgba(247,179,43,.55);
}
.qslider::-moz-range-track { height: 10px; border-radius: 999px; background: transparent; }

.qstep {
	width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
	border: 1px solid var(--line); background: #ffffff0a; color: var(--ink);
	font: 800 18px "Inter", sans-serif; cursor: pointer; transition: border-color .15s, background .15s;
}
.qstep:hover { border-color: var(--gold); color: var(--gold2); background: rgba(247,179,43,.08); }

.qticks {
	position: relative; display: flex; justify-content: space-around;
	color: #55618a; font-size: 10px; font-weight: 700; letter-spacing: 1px;
	margin: 7px 49px 0;  /* aligns under slider (steppers are 36px + 12px gap) */
	user-select: none;
}

.qmoney {
	position: relative; display: flex; justify-content: space-between; gap: 10px;
	margin-top: 16px; padding: 12px 14px; border-radius: 12px;
	background: rgba(13,17,26,.6); border: 1px solid #ffffff12;
}
.qmoney span { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.qmoney b { font-size: 15px; color: var(--ink); }
.qmoney b.goldtxt { color: var(--gold2); }
.qmoney b.neg { color: var(--red); }

.qwarn { position: relative; margin-top: 10px; text-align: center; color: #ff9a9a; font-size: 13px; font-weight: 600; }

.qactions { position: relative; display: flex; gap: 10px; margin-top: 14px; }
.qactions .btn { flex: 1; text-align: center; padding: 12px 10px; }

@media (max-width: 720px) { .qticks { margin: 7px 44px 0; } }

/* ---------- Charge & Burst case intro (the 2s audio lead) ----------
 * All MOTION is driven from js/case.js (FURYC.fxIntro - rAF + inline
 * styles, no @keyframes at all). This block declares the static art
 * only: scene, case faces, glow/beam/sparks/flash shapes, charge ring.
 * The overlay is gone at exactly 2.0s (SND_LEAD) when the reel starts. */
.casefx {
	position: absolute; inset: 0; z-index: 8; pointer-events: none;
	display: grid; place-items: center;
	background: radial-gradient(600px 320px at 50% 40%, rgba(16,20,29,.78), rgba(13,17,26,.95));
	opacity: 0; visibility: hidden;
}
.casefx.go { visibility: visible; }

/* version badge - one glance during the intro tells which css your browser
 * actually runs. Bump with the header.php ?v= number on every css change. */
.casefx::after {
	content: 'INTRO v36';
	position: absolute; top: 10px; right: 12px; z-index: 30;
	font: 600 10px/1 "Inter", sans-serif; letter-spacing: 2px;
	color: rgba(255,209,102,.55);
}

.cwrap {
	position: relative; perspective: 700px;
}
/* the JS engine writes the transform: hero tilt + entrance + rumble */
.cbox {
	position: relative; width: 190px; height: 150px;
	transform-style: preserve-3d;
	will-change: transform;
}

/* charge ring - the svg is built by js; dash values driven in JS per frame */
.cring {
	position: absolute; left: 50%; top: 50%; width: 240px; height: 240px;
	margin: -120px 0 0 -120px; opacity: 0;
}
.cring svg { display: block; }
.cringtrack { fill: none; stroke: rgba(255,209,102,.12); stroke-width: 3; }
.cringglow { fill: none; stroke: rgba(255,205,80,.4); stroke-width: 7; opacity: .5; }
.cringbar { fill: none; stroke: #ffc966; stroke-width: 3; stroke-linecap: round; }
.cringbar, .cringglow { stroke-dasharray: 628.32; stroke-dashoffset: 628.32; }

/* every face is a real plane in the box - edges meet exactly */
.cface { position: absolute; border: 1px solid #0c0f18; }

/* ---- body (y 42..150, z -13..+13) + full interior walls so the open
        mouth never shows a hole ---- */
.bfront {
	left: 0; top: 42px; width: 190px; height: 108px;
	transform: translateZ(13px);
	border-radius: 4px 4px 10px 10px;
	background: linear-gradient(180deg, #465073 0%, #2e3752 45%, #1c2337 100%);
	box-shadow: inset 0 3px 0 #ffffff21, inset 0 -3px 0 #00000055;
}
.bfront b {
	position: absolute; left: 0; right: 0; bottom: 30px; text-align: center;
	font: 800 26px/1 "Oswald", "Inter", sans-serif; letter-spacing: 8px; text-indent: 8px;
	background: linear-gradient(180deg, #ffffff, var(--gold2) 60%, var(--gold));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.bfront::before {
	content: ''; position: absolute; left: 12px; right: 12px; top: 12px; height: 5px; border-radius: 3px;
	background: linear-gradient(90deg, transparent, var(--gold) 15%, var(--gold2) 50%, var(--gold) 85%, transparent);
}
.bfront::after {
	content: ''; position: absolute; left: 12px; right: 12px; bottom: 14px; height: 2px; border-radius: 2px;
	background: linear-gradient(90deg, transparent, #ffffff14 20%, #ffffff26 50%, #ffffff14 80%, transparent);
}
.bback {   /* full-height interior back wall, tucked 2px behind the lid back */
	left: 0; top: 0; width: 190px; height: 150px;
	transform: translateZ(-15px) rotateY(180deg);
	background: linear-gradient(180deg, #2a3249 0%, #1d2436 55%, #141a29 100%);
}
.bleft {   /* sits 0.5px inside the lid's side planes - no z-fighting */
	left: -12.5px; top: 0; width: 26px; height: 150px;
	transform: rotateY(-90deg);
	background: linear-gradient(90deg, #2a334b, #39445f);
}
.bright {
	left: 176.5px; top: 0; width: 26px; height: 150px;
	transform: rotateY(90deg);
	background: linear-gradient(90deg, #39445f, #2a334b);
}
.bbottom {
	left: 0; top: 137px; width: 190px; height: 26px;
	transform: rotateX(90deg);
	background: #12172a;
}

/* glowing panel inside the cavity, revealed through the open mouth */
.cinlight {
	position: absolute;
	left: 20px; top: 44px; width: 150px; height: 80px; border-radius: 8px;
	transform: translateZ(-10px);
	background: radial-gradient(ellipse at 50% 24%, rgba(255,246,205,.9) 0%, rgba(255,210,110,.35) 60%, rgba(255,210,110,0) 100%);
	opacity: 0;
}

/* ---- lid (y 0..42): own 5-face box - stays closed; at the burst the
        whole case dissolves into the light (js fades the faces out) ---- */
.clid3 {
	position: absolute; left: 0; top: 0; width: 190px; height: 42px;
	transform-style: preserve-3d;
}
.lfront {
	left: 0; top: 0; width: 190px; height: 42px;
	transform: translateZ(13px);
	border-radius: 10px 10px 3px 3px;
	background: linear-gradient(180deg, #525d80 0%, #39445f 70%, #2e3750 100%);
	box-shadow: inset 0 3px 0 #ffffff2b;
}
.lfront::before {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold2) 50%, var(--gold) 80%, transparent);
	opacity: .95;
}
.ltop {
	left: 0; top: -13px; width: 190px; height: 26px;
	transform: rotateX(90deg);
	background: linear-gradient(90deg, #4a5478, #525d80 50%, #4a5478);
}
.lback {   /* its outer side reads as the interior of the flipped back lid */
	left: 0; top: 0; width: 190px; height: 42px;
	transform: translateZ(-13px) rotateY(180deg);
	background: linear-gradient(180deg, #2b3550 0%, #243048 55%, #1b2336 100%);
	box-shadow: inset 0 0 0 1px rgba(88,100,130,.45), inset 0 2px 0 rgba(140,155,190,.28), inset 0 -3px 0 rgba(0,0,0,.5);
}
.lback::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px;
	background: linear-gradient(0deg, rgba(255,215,110,.45), rgba(255,215,110,0));
}
.lleft {
	left: -13px; top: 0; width: 26px; height: 42px;
	transform: rotateY(-90deg);
	background: #39445f;
}
.lright {
	left: 177px; top: 0; width: 26px; height: 42px;
	transform: rotateY(90deg);
	background: #39445f;
}

/* light = soft shaft rising out of the open case mouth + small mouth glow */
.cbeam {
	position: absolute; left: 50%; bottom: 108px; width: 88px; height: 100px;
	margin-left: -44px;
	transform: scaleY(0); transform-origin: 50% 100%;
	background: linear-gradient(180deg, rgba(255,240,200,0) 0%, rgba(255,235,170,.35) 45%, rgba(255,220,120,.65) 100%);
	filter: blur(7px);
}

.cglow {
	position: absolute; left: 50%; top: 42px; width: 120px; height: 58px;
	transform: translate(-50%, -50%) scale(.35);
	background: radial-gradient(ellipse, rgba(255,248,214,.95) 0%, rgba(255,215,110,.55) 55%, rgba(255,215,110,0) 80%);
}

/* gold sparks float up out of the case */
.cspark {
	position: absolute; left: 50%; top: 40px; width: 6px; height: 6px; border-radius: 50%;
	background: #ffe9a8; box-shadow: 0 0 8px 2px rgba(255,215,110,.8);
	opacity: 0;
}
.cspark.s1 { margin-left: -26px; }
.cspark.s2 { margin-left: 22px; }
.cspark.s3 { margin-left: -6px; }

.cflash {
	position: absolute; inset: 0;
	background: radial-gradient(380px 240px at 50% 40%, rgba(255,246,220,.75) 0%, rgba(255,216,102,.25) 55%, transparent 90%);
	opacity: 0;
}

/* ==================================================================
   TRADE screen (v28) - website-only swaps: SearchBar + request
   lists, the two-column window + inventory picker modal. HDR glass:
   deep card base, soft light sheen on top, rarity-tinted slots.
   ================================================================== */

.tsearch { display: flex; gap: 10px; }
.tsearch input {
	flex: 1; height: 44px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--bg2); color: var(--ink);
	padding: 0 14px; font: 600 14px "Inter", sans-serif;
}
.tsearch input:focus {
	outline: none; border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(247, 179, 43, .14);
}

/* ---- request lists ---- */
.tlists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tlists .panel { margin-bottom: 8px; }
.tlist { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tlist li {
	display: flex; align-items: center; gap: 8px;
	background: var(--bg2); border: 1px solid var(--line); border-radius: 10px;
	padding: 8px 12px; font-size: 13px;
}
.tlist li.tempty { background: transparent; border-style: dashed; color: var(--dim); }
.tlist .twho { font: 700 13px "Oswald", "Inter", sans-serif; letter-spacing: .5px; }
.tlist .tdim { color: var(--dim); flex: 1; }
.tlist li .btn.small { padding: 5px 12px; font-size: 12px; }

/* ---- trade window ---- */
.tw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tw-colshdr { display: grid; }
.tw-cols { display: grid; grid-template-columns: 1fr 46px 1fr; gap: 10px; align-items: stretch; }
.tw-col {
	position: relative; overflow: hidden;
	background: linear-gradient(180deg, var(--card2), var(--card) 55%);
	border: 1px solid var(--line); border-radius: 14px;
	padding: 12px 14px 14px;
	box-shadow: 0 18px 44px -26px rgba(0, 0, 0, .7);
}
/* HDR sheen: light leak + faint colored floor glow */
.tw-col::before {
	content: ''; position: absolute; left: -20%; right: -20%; top: -40%; height: 62%;
	background:
		radial-gradient(60% 55% at 22% 30%, rgba(255, 255, 255, .10), transparent 70%),
		radial-gradient(50% 60% at 85% 15%, rgba(75, 105, 255, .10), transparent 75%);
	pointer-events: none;
}
#tw-col-you::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, transparent, var(--gold) 28%, var(--gold2) 55%, rgba(63,198,104,.8) 78%, transparent);
	opacity: .55;
}
#tw-col-them::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
	background: linear-gradient(90deg, transparent, var(--blue) 28%, rgba(211,44,230,.8) 60%, rgba(235,75,75,.7) 78%, transparent);
	opacity: .55;
}
.tw-vs {
	display: grid; place-items: center;
	font: 700 15px "Oswald", "Inter", sans-serif; color: var(--gold);
	text-shadow: 0 0 18px rgba(247, 179, 43, .45);
}

.twho { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.twho > b { font: 700 15px "Oswald", "Inter", sans-serif; letter-spacing: .5px; }
.tverdict {
	margin-left: auto; font: 700 11px "Inter", sans-serif; letter-spacing: .6px;
	padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
	color: var(--dim); background: rgba(255, 255, 255, .03);
}
.tverdict.win {
	color: var(--green); border-color: rgba(63, 198, 104, .5); background: rgba(63, 198, 104, .08);
	box-shadow: 0 0 14px -2px rgba(63, 198, 104, .35);
}
.tverdict.loss {
	color: var(--red); border-color: rgba(235, 75, 75, .5); background: rgba(235, 75, 75, .08);
	box-shadow: 0 0 14px -2px rgba(235, 75, 75, .35);
}

.tsum { color: var(--dim); font-size: 12px; margin-bottom: 10px; }
.tsum b { color: var(--gold2); font-size: 14px; }

.tslots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 128px; align-content: flex-start; }
.tw-hint { display: block; color: var(--dim); font-size: 12px; margin-top: 6px; }

/* slots - rarity border + rarity-tinted inner glow */
.twslot {
	position: relative; width: 152px; text-align: left;
	padding: 8px 10px 9px;
	background: linear-gradient(180deg, #00000042, #00000018);
	border: 1px solid var(--line); border-left: 3px solid var(--r0);
	border-radius: 10px;
}
.rr0 { border-left-color: var(--r0); }
.rr1 { border-left-color: var(--r1); box-shadow: inset 0 0 24px -16px var(--r1); }
.rr2 { border-left-color: var(--r2); box-shadow: inset 0 0 26px -14px var(--r2); }
.rr3 { border-left-color: var(--r3); box-shadow: inset 0 0 26px -12px var(--r3); }
.rr4 { border-left-color: var(--r4); box-shadow: inset 0 0 30px -10px var(--r4); }
.twrow { display: flex; align-items: center; gap: 6px; padding-right: 16px; }
.twslot .nm, .pl .nm {
	display: block; max-width: 100%;
	font-weight: 700; font-size: 12.5px; color: var(--ink);
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qn {
	font: 700 10px "Inter", sans-serif; color: var(--gold2);
	background: rgba(247, 179, 43, .12); border: 1px solid rgba(247, 179, 43, .35);
	padding: 1px 6px; border-radius: 999px; margin-left: auto; flex: none;
}
.twslot .sec, .pl .sec {
	display: block; color: var(--dim); font-size: 10.5px;
	letter-spacing: .5px; text-transform: uppercase; margin-top: 2px;
}
.twslot .vl, .pl .vl {
	display: block; color: var(--gold2); font-size: 12px; font-weight: 600; margin-top: 3px;
}
.twslot .tx {
	position: absolute; top: 6px; right: 6px;
	width: 20px; height: 20px; padding: 0; line-height: 17px; text-align: center;
	border-radius: 6px; border: 1px solid var(--line);
	background: var(--bg2); color: var(--dim); cursor: pointer; font-size: 13px;
}
.twslot .tx:hover { color: var(--red); border-color: rgba(235, 75, 75, .55); }

.twadd {
	width: 66px; min-height: 66px; padding: 0; align-self: flex-start;
	border-radius: 10px; border: 2px dashed rgba(139, 151, 173, .5);
	background: rgba(255, 255, 255, .02); color: var(--dim);
	font: 700 26px/1 "Inter", sans-serif; cursor: pointer;
	transition: transform .12s, border-color .12s, color .12s, box-shadow .12s;
}
.twadd:hover {
	border-color: var(--gold); color: var(--gold); transform: translateY(-2px);
	box-shadow: 0 0 18px -4px rgba(247, 179, 43, .4);
}

.tw-strip {
	margin-top: 12px; padding: 9px 12px; border-radius: 10px;
	font-size: 12.5px; color: var(--gold2);
	border: 1px solid rgba(247, 179, 43, .4); background: rgba(247, 179, 43, .07);
	box-shadow: inset 0 0 22px -14px var(--gold);
}

/* ---- inventory picker modal ---- */
.qclose {
	position: absolute; top: 0; right: 0; width: 30px; height: 30px;
	border-radius: 8px; border: 1px solid var(--line);
	background: var(--bg2); color: var(--dim); font-size: 16px; cursor: pointer;
}
.qclose:hover { color: var(--ink); }
#t-pfilter {
	width: 100%; height: 42px; margin-top: 8px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--bg2); color: var(--ink);
	padding: 0 14px; font: 600 14px "Inter", sans-serif;
}
#t-pfilter:focus {
	outline: none; border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(247, 179, 43, .14);
}
.pgrid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 8px; max-height: 46vh; overflow-y: auto; margin-top: 10px; padding-right: 4px;
}
.pl {
	position: relative; text-align: left; color: var(--ink); cursor: pointer;
	padding: 8px 10px 9px; font: inherit;
	background: linear-gradient(180deg, #00000042, #00000018);
	border: 1px solid var(--line); border-left: 3px solid var(--r0); border-radius: 10px;
	transition: transform .12s, box-shadow .12s, border-color .12s;
}
.pl:hover {
	transform: translateY(-2px); border-color: rgba(247, 179, 43, .5);
	box-shadow: 0 10px 26px -14px var(--gold);
}
.pempty { grid-column: 1 / -1; color: var(--dim); font-size: 13px; padding: 8px 2px; }

/* ---- toast ---- */
#t-toast {
	position: fixed; left: 50%; bottom: 26px; z-index: 99;
	transform: translate(-50%, 12px);
	background: var(--card2); color: var(--ink);
	border: 1px solid var(--line); border-radius: 10px;
	padding: 10px 18px; font-size: 13px; font-weight: 600;
	box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8);
	opacity: 0; visibility: hidden;
	transition: opacity .18s, transform .18s, visibility .18s;
}
#t-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#t-toast.good { border-color: rgba(63, 198, 104, .5); }
#t-toast.bad  { border-color: rgba(235, 75, 75, .6); color: #ffb6b6; }

@media (max-width: 900px) {
	.tlists { grid-template-columns: 1fr; }
	.tw-cols { grid-template-columns: 1fr; }
	.tw-vs { padding: 4px 0; }
}

/* ==================================================================
   MARKETPLACE (v30) - website storefront: sell grid, offer window
   with the back arrow, sell picker price step. Same design glass as
   the trade screen; rarity-tinted tiles, gold price pills.
   ================================================================== */

.mkbal {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px; border-radius: 999px;
	font: 700 14px "Inter", sans-serif; color: var(--gold2);
	background: rgba(247, 179, 43, .09); border: 1px solid rgba(247, 179, 43, .35);
	box-shadow: inset 0 0 18px -12px var(--gold);
}
.mgrid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
	gap: 10px; min-height: 40px;
}

/* storefront tile = pickable offer */
.mktile {
	position: relative; text-align: left; color: var(--ink); cursor: pointer;
	padding: 9px 11px; font: inherit;
	background: linear-gradient(180deg, var(--card2), var(--card) 60%);
	border: 1px solid var(--line); border-left: 3px solid var(--r0); border-radius: 10px;
	transition: transform .12s, box-shadow .12s, border-color .12s;
}
.mktile:hover {
	transform: translateY(-2px); border-color: rgba(247, 179, 43, .5);
	box-shadow: 0 12px 30px -16px var(--gold);
}
.mktile .nm {
	display: block; max-width: 60%;
	font-weight: 700; font-size: 12.5px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mktile .sec {
	display: block; color: var(--dim); font-size: 10.5px;
	letter-spacing: .5px; text-transform: uppercase; margin-top: 2px;
}
.mktile .mkby { display: block; color: var(--dim); font-size: 11px; margin-top: 6px; }
.mkpricepill {
	margin-left: auto; flex: none;
	font: 700 11px "Inter", sans-serif; color: var(--gold2);
	background: rgba(247, 179, 43, .12); border: 1px solid rgba(247, 179, 43, .4);
	padding: 3px 8px; border-radius: 999px;
	box-shadow: 0 0 14px -4px rgba(247, 179, 43, .5);
}
.mktile .mkbought {
	margin-left: auto; flex: none;
	font: 700 10px "Inter", sans-serif; letter-spacing: 1.5px; color: var(--green);
	border: 1px solid rgba(63, 198, 104, .5); padding: 3px 8px; border-radius: 999px;
}
.mktile.sold { filter: grayscale(.55) brightness(.8); }
.mktile.sold:hover { transform: none; box-shadow: none; }

/* offer window card - deep glass with a rarity frame */
.mkcard {
	position: relative; overflow: hidden;
	max-width: 460px; margin: 6px auto 0;
	padding: 22px 24px; text-align: center;
	border-radius: 14px;
	background:
		radial-gradient(70% 90% at 22% 8%, rgba(255, 255, 255, .08), transparent 65%),
		radial-gradient(60% 60% at 85% 100%, rgba(75, 105, 255, .10), transparent 70%),
		linear-gradient(180deg, var(--card2), var(--card) 70%);
	border: 1px solid var(--line); border-left: 3px solid var(--r0);
	box-shadow: 0 22px 50px -28px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.mkcard.rr0 { border-left-color: var(--r0); }
.mkcard.rr1 { border-left-color: var(--r1); box-shadow: inset 0 0 30px -18px var(--r1); }
.mkcard.rr2 { border-left-color: var(--r2); box-shadow: inset 0 0 32px -16px var(--r2); }
.mkcard.rr3 { border-left-color: var(--r3); box-shadow: inset 0 0 34px -14px var(--r3); }
.mkcard.rr4 { border-left-color: var(--r4); box-shadow: inset 0 0 40px -12px var(--r4); }
.mkbig {
	font: 800 24px/1.2 "Oswald", "Inter", sans-serif; letter-spacing: .5px;
	margin-bottom: 4px;
}
.mksec {
	display: inline-block; color: var(--dim); font: 600 11px "Inter", sans-serif;
	letter-spacing: 1.5px; text-transform: uppercase;
	padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px;
	margin-bottom: 16px;
}
.mkprice { margin-bottom: 8px; }
.mkprice span, .mkcmp span {
	display: block; color: var(--dim); font: 600 10px "Inter", sans-serif;
	letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 2px;
}
.mkprice b {
	font: 800 34px/1 "Oswald", "Inter", sans-serif; color: var(--gold2);
	text-shadow: 0 0 26px rgba(255, 206, 84, .35);
}
.mkprice b::before { content: '\25c6 '; font-size: 18px; color: var(--gold); vertical-align: 4px; }
.mkcmp { margin-bottom: 14px; }
.mkcmp b { color: var(--ink); font-weight: 700; }
.mkseller { color: var(--ink); font-size: 13px; margin-bottom: 3px; }

/* the round back-arrow */
.mkrarw {
	width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
	border: 1px solid var(--line); background: var(--bg2); color: var(--ink);
	font-size: 19px; line-height: 1; padding: 0;
	transition: transform .12s, border-color .12s, color .12s;
}
.mkrarw:hover {
	transform: translateX(-2px); border-color: var(--gold); color: var(--gold2);
	box-shadow: 0 0 18px -6px rgba(247, 179, 43, .5);
}

/* sell price step */
.mkpricebox { display: flex; gap: 10px; margin: 12px 0 10px; }
.mkpricebox input {
	flex: 1; height: 44px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--bg2); color: var(--ink);
	padding: 0 14px; font: 700 15px "Inter", sans-serif;
	-moz-appearance: textfield;
}
.mkpricebox input::-webkit-outer-spin-button,
.mkpricebox input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mkpricebox input:focus {
	outline: none; border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(247, 179, 43, .14);
}
#mk-pfilter {
	width: 100%; height: 42px; margin-top: 8px; border-radius: 10px;
	border: 1px solid var(--line); background: var(--bg2); color: var(--ink);
	padding: 0 14px; font: 600 14px "Inter", sans-serif;
}
#mk-pfilter:focus {
	outline: none; border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(247, 179, 43, .14);
}

/* toast */
#mk-toast {
	position: fixed; left: 50%; bottom: 26px; z-index: 99;
	transform: translate(-50%, 12px);
	background: var(--card2); color: var(--ink);
	border: 1px solid var(--line); border-radius: 10px;
	padding: 10px 18px; font-size: 13px; font-weight: 600;
	box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .8);
	opacity: 0; visibility: hidden;
	transition: opacity .18s, transform .18s, visibility .18s;
}
#mk-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
#mk-toast.good { border-color: rgba(63, 198, 104, .5); }
#mk-toast.bad  { border-color: rgba(235, 75, 75, .6); color: #ffb6b6; }

/* instant sell step - green dashed strip inside the price box */
.mkinstant {
	display: flex; align-items: center; gap: 12px;
	margin: 12px 0 10px; padding: 10px 14px;
	border: 1px dashed rgba(63, 198, 104, .45);
	background: rgba(63, 198, 104, .06);
	border-radius: 10px;
}
.mkinstant .mkinf { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.mkinstant .mkinf b { color: #3fc668; font: 800 17px "Oswald", sans-serif; }
.mkinstant .mkinf span { color: var(--dim); font-size: 11.5px; }

@media (max-width: 700px) {
	.mgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ==================================================================
   DAILY WHEEL (v32) - one free 24h spin, 8 equally likely wedges.
   ================================================================== */

.dywrap {
	display: flex; gap: 30px; align-items: center; justify-content: center;
	flex-wrap: wrap; margin-top: 8px;
}
.dywheelbox {
	position: relative;
	width: 320px; height: 320px; flex: none;
	margin-top: 8px;
}
.dypointer {
	position: absolute; top: -14px; left: 50%; z-index: 5;
	transform: translateX(-50%);
	width: 0; height: 0;
	border-left: 12px solid transparent; border-right: 12px solid transparent;
	border-top: 18px solid var(--gold2);
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .65));
}
.dywheel {
	position: absolute; inset: 0;
	border-radius: 50%;
	border: 7px solid rgba(255, 255, 255, .09);
	box-shadow:
		inset 0 0 60px rgba(0, 0, 0, .55),
		0 24px 60px -22px rgba(0, 0, 0, .85),
		0 0 40px -12px rgba(247, 179, 43, .35);
	transition: transform 4.2s cubic-bezier(.16, .85, .3, 1);
}
.dywheel.locked { filter: grayscale(.85) brightness(.72); }
.dylbl {
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%) rotate(var(--a)) translate(0, -114px);
	font: 800 11.5px "Inter", sans-serif; letter-spacing: .4px;
	white-space: pre-line; text-align: center; line-height: 1.15;
	pointer-events: none;
}
.dylbl.ongold  { color: #221a06; }
.dylbl.offdark { color: #f4d78a; }
.dyhub {
	position: absolute; left: 50%; top: 50%; z-index: 4;
	transform: translate(-50%, -50%);
	width: 96px; height: 96px; border-radius: 50%;
	cursor: pointer; padding: 0;
	border: 3px solid rgba(255, 255, 255, .16);
	background: radial-gradient(circle at 30% 25%, #ffe9a8, #f7b32b 55%, #b47c12);
	color: #221a06;
	font: 800 15px "Oswald", "Inter", sans-serif; letter-spacing: 1px;
	box-shadow: 0 12px 32px -8px rgba(247, 179, 43, .55), inset 0 2px 6px rgba(255, 255, 255, .35);
	transition: transform .12s, box-shadow .12s;
}
.dyhub:not(:disabled):hover { transform: translate(-50%, -50%) scale(1.05); }
.dyhub:disabled { cursor: not-allowed; }
.dyhub.soon { filter: grayscale(.6) brightness(.85); }

.dypanel { flex: 1 1 260px; max-width: 380px; }
.dyresult {
	border: 1px dashed rgba(247, 179, 43, .5);
	background: rgba(247, 179, 43, .07);
	border-radius: 12px; padding: 12px 16px; margin-bottom: 10px;
}
.dyresult b { display: block; font: 800 26px/1.15 "Oswald", "Inter", sans-serif; color: var(--gold2); text-shadow: 0 0 26px rgba(255, 206, 84, .35); }
.dyresult p { margin: 6px 0 0; color: var(--ink); font-size: 13px; }
.dychips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dychips span {
	font: 700 11px "Inter", sans-serif; color: #f4d78a;
	border: 1px solid var(--line); background: var(--card2);
	padding: 4px 10px; border-radius: 999px;
}
.dysub { color: var(--dim); font-size: 12px; margin-top: 10px; }

@media (max-width: 640px) {
	.dywheelbox { width: 280px; height: 280px; }
	.dylbl { transform: translate(-50%, -50%) rotate(var(--a)) translate(0, -99px); }
	.dyhub { width: 84px; height: 84px; }
}

/* ==================================================================
   START BONUS (v35) - one-time welcome gift window on the Daily tab.
   ================================================================== */

.sbwrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px; flex-wrap: wrap;
}
.sbleft { flex: 1 1 260px; }
.sbleft h2 { margin: 0 0 6px; }
.sbleft .dysub { margin-top: 0; max-width: 460px; line-height: 1.5; }
.sbleft .dysub b { color: var(--gold2); }
.sbright {
	display: flex; flex-direction: column; align-items: flex-end;
	gap: 8px; flex: none;
}
#sb-claim {
	padding: 11px 22px; font-size: 14px; font-weight: 800;
	background: linear-gradient(180deg, #ffca57, #f0a416);
	color: #221a06; border: none;
	box-shadow: 0 10px 26px -10px rgba(247, 179, 43, .6);
	white-space: nowrap;
}
#sb-claim:hover { filter: brightness(1.06); }
#sb-note {
	margin: 0; max-width: 260px; text-align: right;
	color: var(--dim); font-size: 12.5px; line-height: 1.45;
}

@media (max-width: 640px) {
	.sbwrap { flex-direction: column; align-items: stretch; }
	.sbright { align-items: stretch; }
	#sb-claim { width: 100%; white-space: normal; }
	#sb-note { max-width: none; text-align: center; }
}

/* ==================================================================
   BATTLEPASS (v36) - the long 50-level reward path, HDR glass look.
   ================================================================== */

.bphero {
	position: relative; overflow: hidden;
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; flex-wrap: wrap; padding: 22px 24px;
	background:
		radial-gradient(1200px 220px at 8% -40%, rgba(247, 179, 43, .16), transparent 70%),
		radial-gradient(900px 200px at 100% 0%, rgba(75, 105, 255, .12), transparent 70%),
		var(--card2);
}
.bptag {
	display: inline-block; margin-bottom: 10px; padding: 3px 10px;
	border-radius: 999px; border: 1px solid rgba(247, 179, 43, .45);
	background: rgba(247, 179, 43, .08);
	font: 700 10px "Inter", sans-serif; letter-spacing: 3px; color: var(--gold2);
}
.bplvlrow { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.bplvl-num {
	font: 800 54px/1 "Oswald", "Inter", sans-serif;
	background: linear-gradient(180deg, #ffdf8e, #f7b32b 60%, #b47c12);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	filter: drop-shadow(0 0 22px rgba(247, 179, 43, .35));
}
.bplvl-max { font: 700 16px "Oswald", "Inter", sans-serif; color: var(--dim); }

.bpbar {
	position: relative; overflow: hidden;
	width: min(420px, 100%); height: 13px; border-radius: 999px;
	background: #10141d; border: 1px solid var(--line);
}
.bpbar i {
	position: absolute; inset: 0; width: var(--p, 0%);
	border-radius: 999px;
	background: linear-gradient(90deg, #b47c12, #f7b32b 55%, #ffe9a8);
	box-shadow: 0 0 18px rgba(247, 179, 43, .45);
	transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.bpbar i::after {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%);
	animation: bpshine 2.6s linear infinite;
}
@keyframes bpshine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.bpsub { color: var(--dim); font-size: 13px; margin: 10px 0 0; }
.bpdim { font-weight: 600; }
.bphero-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.bpartement {
	display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
	padding: 14px 16px; border-radius: 14px;
	border: 1px solid var(--line); background: #ffffff05;
	transition: border-color .3s, box-shadow .3s;
}
.bpartement.on {
	border-color: rgba(247, 179, 43, .6);
	box-shadow: 0 0 34px -10px rgba(247, 179, 43, .5), inset 0 0 18px rgba(247, 179, 43, .07);
}
.bpend-tag { font: 700 10px "Inter", sans-serif; letter-spacing: 2.5px; color: var(--dim); }
.bpend-what { font: 800 17px "Oswald", "Inter", sans-serif; color: var(--ink); }
.bpcta {
	padding: 12px 26px; border-radius: 999px; border: none; cursor: pointer;
	font: 800 14px "Inter", sans-serif; letter-spacing: .5px; color: #221a06;
	background: linear-gradient(180deg, #ffca57, #f0a416);
	box-shadow: 0 12px 30px -10px rgba(247, 179, 43, .65);
	transition: transform .12s, filter .12s;
}
.bpcta:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); }
.bpcta:disabled { filter: grayscale(.85) brightness(.7); cursor: not-allowed; }

.bpchiprow { display: flex; gap: 8px; align-items: center; }
.bpchiprow .chip { font-weight: 700; }

/* ---------- the long path ---------- */
.bprailbox { padding-bottom: 18px; }
.bprailhead {
	display: flex; align-items: center; justify-content: space-between;
	gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.bprail-title {
	font: 800 13px "Oswald", "Inter", sans-serif; letter-spacing: 2px;
	color: var(--gold2);
}
.bprail-hint { font-size: 11.5px; color: var(--dim); }

.bprail { position: relative; }
.bptrack {
	position: relative; overflow-x: auto; overflow-y: hidden;
	display: flex; gap: 26px; align-items: flex-start;
	padding: 6px 40px 4px; cursor: grab;
	scrollbar-width: none; -webkit-overflow-scrolling: touch;
	user-select: none;
}
.bptrack::-webkit-scrollbar { display: none; }
.bptrack.grabbing { cursor: grabbing; }

/* the grey full line + the gold progress line through ring centers */
.bpline, .bpfill {
	position: absolute; top: 62px; height: 4px; border-radius: 4px;
	transform: translateY(-50%); pointer-events: none;
}
.bpline { left: 20px; right: 20px; background: #ffffff14; }
.bpfill {
	left: 20px; width: 0%; z-index: 1;
	background: linear-gradient(90deg, #b47c12, #f7b32b 60%, #ffe9a8);
	box-shadow: 0 0 16px rgba(247, 179, 43, .55);
	transition: width 1s cubic-bezier(.2, .8, .2, 1);
}

.bpnode {
	position: relative; z-index: 2;
	flex: none; width: 92px; padding: 0; border: none; background: none;
	display: flex; flex-direction: column; align-items: center; gap: 7px;
	font: inherit; color: inherit; cursor: default;
}
.bpn-lvl {
	position: relative; z-index: 2; margin-top: 24px;
	width: 64px; height: 64px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #12161f; border: 2px solid var(--line);
	font: 800 18px "Oswald", "Inter", sans-serif; color: var(--ink);
	transition: transform .18s, box-shadow .18s, border-color .18s;
}
.bpnode:hover .bpn-lvl { transform: translateY(-2px); }
.bpn-ico {
	position: absolute; top: 14px; right: 14px; z-index: 3;
	width: 26px; height: 26px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: #1a2029; border: 1px solid var(--line);
	font: 700 12px "Inter", sans-serif; font-style: normal; color: var(--dim);
}
.bpn-rwd {
	max-width: 92px; padding: 3px 9px; border-radius: 999px;
	border: 1px solid var(--line); background: #ffffff08;
	font: 700 10.5px "Inter", sans-serif; color: var(--dim);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* locked mystery */
.bpnode.st-locked { opacity: .5; }
.bpnode.st-locked .bpn-lvl { border-style: dashed; color: var(--dim); }

/* claimed: gold filled */
.bpnode.st-claimed .bpn-lvl {
	background: linear-gradient(180deg, #ffdf8e, #f7b32b);
	color: #221a06; border-color: rgba(255, 223, 142, .7);
	box-shadow: 0 0 22px -6px rgba(247, 179, 43, .65);
}
.bpnode.st-claimed .bpn-ico { color: #221a06; border-color: rgba(255, 223, 142, .55); background: #f7b32b; }
.bpnode.st-claimed .bpn-rwd { color: #f4d78a; border-color: rgba(247, 179, 43, .45); background: rgba(247, 179, 43, .1); }

/* waiting: claimable - bright + pulsing */
.bpnode.st-waiting { cursor: pointer; }
.bpnode.st-waiting .bpn-lvl {
	border-color: rgba(247, 179, 43, .95);
	animation: bppulse 1.6s ease-in-out infinite;
}
.bpnode.st-waiting .bpn-rwd { color: var(--gold2); border-color: rgba(247, 179, 43, .6); }
.bpnode.st-waiting:hover .bpn-ico { background: #f7b32b; color: #221a06; }
@keyframes bppulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(247, 179, 43, .55), 0 0 20px -4px rgba(247, 179, 43, .6); }
	50%      { box-shadow: 0 0 0 9px rgba(247, 179, 43, 0), 0 0 30px -2px rgba(247, 179, 43, .8); }
}

/* where you are right now */
.bpnode.st-here .bpn-lvl {
	border-color: #ffffffcc;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .08), 0 0 26px -4px rgba(255, 255, 255, .4);
}
.bpnode.st-here.st-waiting .bpn-lvl { animation: bppulse 1.6s ease-in-out infinite; }

/* the crown (level 50) */
.bpnode.st-max .bpn-lvl { border-color: transparent; }
.bpnode.st-max.st-locked .bpn-lvl {
	box-shadow: 0 0 30px -6px rgba(247, 179, 43, .5);
}

/* claim burst ring */
.bpn-burst {
	position: absolute; left: 50%; top: 56px; z-index: 4;
	width: 70px; height: 70px; margin: -35px 0 0 -35px;
	border-radius: 50%; pointer-events: none; opacity: 0;
	border: 3px solid #ffdf8e;
}
.bpn-burst.go { animation: bpburst .9s ease-out forwards; }
@keyframes bpburst {
	0%   { opacity: .95; transform: scale(.7); }
	100% { opacity: 0; transform: scale(2.4); }
}

@media (max-width: 640px) {
	.bphero-right { align-items: stretch; width: 100%; }
	.bpartement { align-items: stretch; }
	.bpend-what { text-align: left; }
	.bpcta { width: 100%; }
	.bprail { margin: 0 -18px; }
	.bptrack { gap: 16px; padding: 6px 18px 4px; }
	.bpnode { width: 74px; }
	.bpn-lvl { margin-top: 18px; width: 54px; height: 54px; font-size: 15px; }
	.bpline, .bpfill { top: 51px; }
	.bpn-ico { top: 8px; right: 12px; width: 20px; height: 20px; font-size: 10px; }
	.bpn-rwd { max-width: 74px; font-size: 9.5px; }
	.bpn-burst { top: 45px; }
}

/* ==================================================================
   LIVE SERVER WIDGET (homepage) + animated agent mascot
   ================================================================== */
.livewrap { margin: 30px 0 6px; overflow: hidden; }

.livescene {
	display: flex; align-items: center; gap: 26px;
	background:
		radial-gradient(420px 240px at 18% 80%, rgba(75, 105, 255, .16), transparent 70%),
		radial-gradient(360px 220px at 78% 0%, rgba(247, 179, 43, .09), transparent 65%),
		linear-gradient(120deg, #171d2a, #1c2434 60%, #1a2130);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 26px 28px;
	position: relative;
	min-height: 370px;
}
.livescene::before {   /* faint scan grid behind the scene */
	content: "";
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
	background-size: 34px 34px;
	pointer-events: none;
	mask-image: radial-gradient(70% 90% at 30% 60%, #000, transparent);
	-webkit-mask-image: radial-gradient(70% 90% at 30% 60%, #000, transparent);
}

/* the agent stage - drawn CS2-style operator holding an AK */
.agentscene { flex: none; width: 215px; height: 333px; position: relative; z-index: 1; }
.agentscene svg {
	width: 100%; height: 100%; overflow: visible;
	filter: drop-shadow(0 12px 14px rgba(0, 0, 0, .5));
}

/* breathing bob - whole figure */
.ag-bob {
	transform-box: fill-box; transform-origin: 50% 100%;
	animation: agbob 3.4s ease-in-out infinite;
}
@keyframes agbob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-4px); }
}

/* subtle head motion while inspecting */
.ag-head {
	transform-box: fill-box; transform-origin: 50% 100%;
	animation: aghead 5.2s ease-in-out infinite;
}
@keyframes aghead {
	0%, 100% { transform: rotate(0deg); }
	40%      { transform: rotate(-1.6deg); }
	62%      { transform: rotate(1.2deg); }
}

/* THE INSPECT: gun + hands flip around like the CS2 inspect anim
   (hold ready -> lift to face -> flip over -> settle back) */
.ag-inspect {
	transform-box: fill-box; transform-origin: 50% 50%;
	animation: aginspect 7s ease-in-out infinite;
}
@keyframes aginspect {
	0%, 14%  { transform: rotate(0deg) translateY(0); }
	22%      { transform: rotate(-30deg) translateY(-10px); }
	34%      { transform: rotate(-100deg) translateY(-13px); }
	46%      { transform: rotate(-188deg) translateY(-6px); }
	58%      { transform: rotate(-266deg) translateY(-11px); }
	68%      { transform: rotate(-360deg) translateY(0); }
	84%, 100% { transform: rotate(0deg) translateY(0); }
}

/* ground shadow under the agent, synced with the bob */
.ag-shadowflat {
	position: absolute; z-index: 0;
	left: 50%; bottom: 2px;
	width: 130px; height: 20px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 68%);
	animation: agshadow 3.4s ease-in-out infinite;
}
@keyframes agshadow {
	0%, 100% { opacity: .6; transform: translateX(-50%) scale(1); }
	50%      { opacity: .4; transform: translateX(-50%) scale(.94); }
}

/* --- click: throw the AK + wave --- */
#ag-arm-wave, #ag-hand-l, #ag-gun-ground { opacity: 0; }
.agentscene { cursor: pointer; }

/* gun flies out of his hands, arcs over to the ground on his left side */
.agentscene.waving #ag-gun {
	animation: agthrow .85s ease-in-out forwards;
}
@keyframes agthrow {
	0%   { transform: translate(0, 0) rotate(0deg); }
	30%  { transform: translate(-12px, 18px) rotate(-55deg); }
	60%  { transform: translate(-36px, 78px) rotate(-120deg); }
	100% { transform: translate(-52px, 138px) rotate(-170deg); }
}

/* raised arm waving hello */
.agentscene.waving #ag-arm-r { opacity: 0; }
.agentscene.waving #ag-arm-wave {
	opacity: 1;
	transform-box: fill-box; transform-origin: 0% 100%;
	animation: agwave .8s ease-in-out 2;
}
.agentscene.thrown #ag-arm-wave {
	opacity: 1;
	transform-box: fill-box; transform-origin: 0% 100%;
}
@keyframes agwave {
	0%, 100% { transform: rotate(0deg); }
	25%      { transform: rotate(-16deg); }
	50%      { transform: rotate(12deg); }
	75%      { transform: rotate(-14deg); }
}

/* gun rests on the ground, left hand hangs free */
.agentscene.thrown #ag-gun { display: none; }
.agentscene.thrown #ag-gun-ground { opacity: 1; transition: opacity .3s; }
.agentscene.thrown #ag-hand-l { opacity: 1; }

/* info column */
.liveinfo { flex: 1; position: relative; z-index: 1; min-width: 0; }
.livehead {
	display: flex; align-items: center; gap: 12px;
	margin-bottom: 12px;
}
.livehead h2 { font-size: 20px; }

.livestate {
	font: 700 11px/1 "Oswald", sans-serif;
	letter-spacing: 2.5px;
	padding: 6px 11px;
	border-radius: 999px;
	color: #07210f;
	background: var(--green);
	box-shadow: 0 0 18px -4px rgba(63, 198, 104, .8);
	animation: liveblink 2.4s ease-in-out infinite;
}
@keyframes liveblink {
	0%, 100% { opacity: 1; }
	50%      { opacity: .72; }
}
.livewrap.is-offline .livestate {
	animation: none;
	color: var(--dim);
	background: #2a3140;
	box-shadow: none;
}

.liverow {
	display: flex; align-items: center; gap: 14px;
	padding: 9px 0;
	border-bottom: 1px dashed rgba(44, 54, 80, .7);
	font-size: 14px;
}
.liverow:last-of-type { border-bottom: 0; }
.liverow span { width: 58px; flex: none; color: var(--dim); text-transform: uppercase; font-size: 11px; letter-spacing: 1.5px; }
.liverow b { font-size: 15px; }

.livenote { margin-top: 14px; color: var(--dim); font-size: 13px; }

/* offline: gray out the mascot */
.livewrap.is-offline .agentscene { filter: grayscale(.85) brightness(.6); }
.livewrap.is-offline .agentscene svg { opacity: .55; }

@media (max-width: 640px) {
	.livescene { flex-direction: column; padding: 22px 18px; gap: 6px; }
	.agentscene { width: 175px; height: 271px; }
	.livewrap.is-offline .agentscene { opacity: .4; }
}

/* ================================================================== */
/* homepage unbox ticker - thin scrolling strip under the live widget */
/* ================================================================== */
.unboxbar {
	display: flex; align-items: center; gap: 0;
	border: 1px solid var(--line); border-top: none;
	border-radius: 0 0 14px 14px;
	margin: -8px 0 22px;
	background: #0e121b;
	overflow: hidden;
}
.livewrap + .unboxbar { margin-top: -18px; }
.unboxlabel {
	flex: none;
	padding: 8px 14px;
	font: 700 10.5px/1 "Oswald", sans-serif;
	letter-spacing: 2px;
	color: var(--gold2);
	background: #181d2c;
	border-right: 1px solid var(--line);
}
.unboxclip { overflow: hidden; flex: 1; min-width: 0; }
.unboxtrack {
	display: flex; align-items: center; gap: 28px;
	padding: 8px 0;
	width: max-content;
	animation: unboxscroll 38s linear infinite;
}
.unboxbar:hover .unboxtrack { animation-play-state: paused; }
@keyframes unboxscroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
.unboxitem {
	flex: none;
	color: var(--dim);
	font-size: 13px;
	white-space: nowrap;
}
.unboxitem b { color: var(--ink); font-weight: 600; }
.unboxitem .gold { color: var(--gold2); font-weight: 700; }
.unboxval {
	color: var(--green);
	font-size: 11.5px;
	font-weight: 700;
	margin-left: 4px;
}

/* ================================================================== */
/* case battles - lobby form + lists + the 1v1 arena                  */
/* ================================================================== */

/* --- lobby: create form --- */
.battleform { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.bfcases { display: flex; gap: 10px; flex-wrap: wrap; }
.bfcase, .bfround {
	display: flex; flex-direction: column; gap: 2px;
	padding: 10px 14px;
	border: 1px solid var(--line); border-radius: 10px;
	background: #12172300;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}
.bfcase { min-width: 150px; }
.bfcase span, .bfround span { color: var(--dim); font-size: 12px; }
.bfcase:has(input:checked), .bfround:has(input:checked) {
	border-color: var(--gold);
	background: #221d0d;
}
.bfcase input, .bfround input { position: absolute; opacity: 0; pointer-events: none; }
.bfrounds { display: flex; gap: 10px; flex-wrap: wrap; }

/* --- lobby: open + history lists --- */
.battles-list { grid-template-columns: 1fr; gap: 10px; display: grid; }
.opencard, .minecard {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	padding: 14px 16px;
	border: 1px solid var(--line); border-left: 3px solid var(--gold);
	border-radius: 10px;
	background: #121723;
	color: inherit; text-decoration: none;
}
.minecard { border-left-color: var(--r0); }
.minecard.bw { border-left-color: var(--green); background: #0e1b12; }
.minecard.bl { border-left-color: var(--red); }
.minecard.ba { border-left-color: var(--dim); opacity: .75; }
.btag {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font: 700 10.5px/1.2 "Oswald", sans-serif;
	letter-spacing: 1.5px;
	background: #1c2230; color: var(--dim);
}
.btag.bw { background: #12301c; color: var(--green); }
.btag.bl { background: #331414; color: var(--red); }
.btag.ba { background: #22262b; color: var(--dim); }

/* --- the arena --- */
.battlearena { padding: 22px 22px 18px; }
.bacols {
	display: grid;
	grid-template-columns: 1fr 64px 1fr;
	gap: 10px;
	align-items: start;
}
.bacol {
	min-height: 240px;
	border: 1px solid var(--line); border-radius: 12px;
	background: #10141d;
	padding: 12px 14px;
	display: flex; flex-direction: column; gap: 8px;
}
.bacol.right { text-align: right; }
.bacol.right .baitems { justify-content: flex-end; }
.baname {
	display: flex; align-items: center; gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--line);
	font-size: 15px;
}
.bacol.right .baname { flex-direction: row-reverse; }
.baname .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.d1 { background: #4b69ff; box-shadow: 0 0 8px #4b69ff88; }
.d2 { background: #eb4b4b; box-shadow: 0 0 8px #eb4b4b88; }
.batag { color: var(--dim); font-size: 11.5px; letter-spacing: 1px; }
.baitems {
	display: flex; flex-wrap: wrap; gap: 8px;
	align-content: flex-start;
	min-height: 96px;
	flex: 1;
}
.bacard {
	flex: 1 1 130px;
	max-width: 170px;
	padding: 9px 11px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--r0);
	border-radius: 8px;
	background: #161b28;
	display: flex; flex-direction: column; gap: 2px;
}
.bacard.r1 { border-left-color: var(--r1); }
.bacard.r2 { border-left-color: var(--r2); }
.bacard.r3 { border-left-color: var(--r3); }
.bacard.r4 { border-left-color: var(--r4); box-shadow: 0 0 22px -8px #e4ae3966; }
.bac-r { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.bacard.r0 .bac-r { color: var(--r0); } .bacard.r1 .bac-r { color: var(--r1); }
.bacard.r2 .bac-r { color: var(--r2); } .bacard.r3 .bac-r { color: var(--r3); }
.bacard.r4 .bac-r { color: var(--r4); }
.bac-n { font-size: 13.5px; line-height: 1.25; color: var(--ink); }
.bac-s { font-size: 11px; color: var(--dim); }
.bac-v { font-size: 11.5px; color: var(--gold2); font-weight: 700; }
.bacard.fresh { animation: bacardin .5s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes bacardin {
	from { transform: translateY(-14px) scale(.82); opacity: 0; }
	to   { transform: none; opacity: 1; }
}
.batotal {
	padding-top: 8px;
	border-top: 1px solid var(--line);
	color: var(--dim); font-size: 12.5px;
}
.batotal b { color: var(--gold2); font-size: 15px; }
.bavs {
	align-self: center;
	font: 700 17px/1 "Oswald", sans-serif;
	color: var(--dim);
	letter-spacing: 1px;
	padding: 10px 0;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #0e121b;
	text-align: center;
}
.babanner {
	margin-top: 14px;
	padding: 14px 18px;
	border-radius: 10px;
	text-align: center;
	font: 700 16px/1.3 "Oswald", sans-serif;
	letter-spacing: .5px;
}
.babanner.bawin  { background: #12301c; border: 1px solid #1f5c33; color: var(--green); }
.babanner.balose { background: #331414; border: 1px solid #5c1f1f; color: var(--red); }
.babanner.babort { background: #1c2230; border: 1px solid #2c3546; color: var(--dim); }
.bafoot {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	margin-top: 14px;
}

@media (max-width: 720px) {
	.bacols { grid-template-columns: 1fr; }
	.bavs { justify-self: center; }
	.unboxlabel { letter-spacing: 1px; font-size: 9.5px; }
}

/* ================================================================== */
/* player profile card + activity feed (the new dashboard)            */
/* ================================================================== */
.profcard {
	border-left: 3px solid var(--r0);
	border-radius: 14px;
	padding: 20px 24px 16px;
}
.profcard.r1 { border-left-color: var(--r1); }
.profcard.r2 { border-left-color: var(--r2); }
.profcard.r3 { border-left-color: var(--r3); }
.profcard.r4 { border-left-color: var(--r4); box-shadow: 0 0 40px -18px #e4ae3966; }
.profhead {
	display: flex; align-items: center; gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--line);
}
.profava {
	width: 64px; height: 64px; flex: none;
	border-radius: 12px;
	background: linear-gradient(160deg, #1c2230, #10141d);
	border: 1px solid var(--line);
	display: flex; align-items: center; justify-content: center;
	font-size: 30px;
}
.profid { flex: 1; min-width: 0; }
.profsteam { color: var(--dim); font-size: 12.5px; margin-top: 3px; }
.profsteam code { font-size: 11.5px; }
.youtag {
	display: inline-block; vertical-align: 2px;
	margin-left: 6px; padding: 2px 8px;
	border-radius: 999px;
	background: #12301c; color: var(--green);
	font: 700 10px/1.2 "Oswald", sans-serif; letter-spacing: 1.5px;
}
.profrank { text-align: right; }
.rankmedal {
	display: block;
	font: 700 30px/1 "Oswald", sans-serif;
	color: var(--gold2);
}
.ranklab { color: var(--dim); font-size: 11px; letter-spacing: 1.5px; }

/* best unbox banner */
.bestbox {
	display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
	margin-top: 14px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--gold);
	border-radius: 10px;
	background: #181d2c;
}
.besttag {
	font: 700 10px/1 "Oswald", sans-serif;
	letter-spacing: 2px;
	color: var(--gold2);
}
.bestname { font-size: 15px; }
.bestworth { color: var(--gold2); font-weight: 700; font-size: 13.5px; }
.bestwhen { color: var(--dim); font-size: 12px; margin-left: auto; }

/* stat strip */
.profstats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin-top: 14px;
}
.pstat {
	padding: 10px 12px;
	border: 1px solid var(--line); border-radius: 10px;
	background: #10141d;
	text-align: center;
}
.pstat b {
	display: block;
	font-family: "Oswald"; font-size: 19px;
	color: var(--ink); margin-bottom: 2px;
}
.pstat span { color: var(--dim); font-size: 11.5px; }

/* activity feed */
.feedlist { display: flex; flex-direction: column; }
.feedrow {
	display: flex; align-items: center; gap: 12px;
	padding: 9px 10px;
	border-bottom: 1px solid #1a2030;
}
.feedrow:last-child { border-bottom: none; }
.feedrow:hover { background: #141926; }
.feicon { flex: none; width: 22px; text-align: center; font-size: 15px; }
.fetext {
	flex: 1; min-width: 0;
	color: var(--dim); font-size: 13.5px;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fetext b { color: var(--ink); font-weight: 600; }
.feworth { color: var(--gold2); font-weight: 700; margin-left: 8px; }
.fedelta {
	flex: none; width: 84px; text-align: right;
	font-size: 13px;
}
.fedelta.up { color: var(--green); font-weight: 700; }
.fedelta.dn { color: var(--red); font-weight: 700; }
.fedate {
	flex: none; width: 92px; text-align: right;
	color: var(--dim); font-size: 12px;
}
@media (max-width: 640px) {
	.fedate { display: none; }
	.profhead { flex-wrap: wrap; }
	.bestwhen { margin-left: 0; width: 100%; }
}

/* ================================================================== */
/* settings page                                                      */
/* ================================================================== */
.setform {
	display: flex; flex-direction: column; gap: 10px;
	max-width: 420px;
	margin-top: 12px;
}
.setform input {
	padding: 11px 14px;
	border: 1px solid var(--line); border-radius: 10px;
	background: #10141d;
	color: var(--ink);
	font-size: 14px;
	outline: none;
}
.setform input:focus { border-color: var(--blue); }
.setform .btn { align-self: flex-start; }

/* ================================================================== */
/* social - bell dropdown, friends strip, settings lists              */
/* ================================================================== */

/* the bell in the nav */
.bellwrap { position: relative; }
.chip.bell {
	position: relative;
	cursor: pointer;
	background: none;
	border: 1px solid var(--line);
	padding: 6px 10px;
	font-size: 15px;
	line-height: 1;
}
.chip.bell:hover { border-color: var(--blue); }
.belldot {
	display: none;
	position: absolute;
	top: -4px; right: -4px;
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--red);
	border: 2px solid var(--bg, #0b0e14);
	box-shadow: 0 0 6px rgba(255, 60, 60, .8);
}
.bellwrap { --bg: #0b0e14; }
.belldrop {
	display: none;
	position: absolute;
	right: 0; top: calc(100% + 8px);
	width: 320px;
	max-height: 420px;
	background: #10141d;
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
	z-index: 90;
	overflow: hidden;
}
.belldrop.open { display: block; }
.bellhead {
	padding: 10px 14px 8px;
	font-family: 'Oswald', sans-serif;
	font-size: 12px;
	letter-spacing: 2px;
	color: var(--dim);
	border-bottom: 1px solid var(--line);
}
.belllist { overflow-y: auto; max-height: 360px; }
.bellempty {
	padding: 22px 16px;
	color: var(--dim);
	font-size: 13px;
	text-align: center;
	line-height: 1.7;
}
.notifrow {
	display: flex;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(255, 255, 255, .04);
	font-size: 13px;
	align-items: flex-start;
}
.notifrow.new { background: rgba(46, 134, 255, .07); }
.notifrow:last-child { border-bottom: none; }
.notificon { font-size: 16px; line-height: 1.2; }
.notifbody { flex: 1; color: var(--ink); line-height: 1.5; word-break: break-word; }
.notifwhen {
	display: block;
	color: var(--dim);
	font-size: 11px;
	margin-top: 2px;
}
.notifacts { display: inline-flex; gap: 6px; margin-left: 6px; }

/* small social action buttons (bell + settings) */
.socbtn {
	padding: 3px 10px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #171d29;
	color: var(--ink);
	font-size: 11.5px;
	cursor: pointer;
	white-space: nowrap;
}
.socbtn:hover { border-color: var(--blue); }
.socbtn.ok { border-color: rgba(70, 200, 120, .5); color: #6ee7a0; }
.socbtn.ok:hover { border-color: #46c878; }

/* settings: friends + blocked panels */
.socwrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 28px;
}
.soclist { display: flex; flex-direction: column; gap: 6px; }
.socrow {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: #10141d;
	font-size: 13.5px;
}
.socrow a:hover { color: var(--blue) !important; }
.socdot {
	width: 9px; height: 9px;
	border-radius: 50%;
	background: #4a5568;
	flex: none;
}
.socdot.on {
	background: #46c878;
	box-shadow: 0 0 7px rgba(70, 200, 120, .8);
}

/* homepage: friends-online strip */
.frendstrip {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	padding: 10px 16px;
}
.frendstrip[hidden] { display: none; }
.frendlabel {
	font-family: 'Oswald', sans-serif;
	font-size: 12px;
	letter-spacing: 2px;
	color: var(--dim);
	flex: none;
}
.frendchips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.frendchip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #10141d;
	color: var(--ink);
	font-size: 13px;
	text-decoration: none;
}
.frendchip:hover { border-color: #46c878; color: #6ee7a0; }
.frendlink { color: var(--dim); font-size: 12px; text-decoration: none; flex: none; }
.frendlink:hover { color: var(--blue); }

@media (max-width: 640px) {
	.socwrap { grid-template-columns: 1fr; }
	.belldrop { width: 290px; }
}

/* ---------- battlepass v3: daily mission cards ---------- */
#bp-missions { padding-bottom: 16px; }
.bpmisrow {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 12px;
}
.bpmis {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #10141d;
	transition: border-color .2s, box-shadow .2s;
}
.bpmis.st-ready {
	border-color: #f0a416;
	box-shadow: 0 0 0 1px rgba(247, 179, 43, .25), 0 10px 34px -14px rgba(247, 179, 43, .55);
	animation: bpmispulse 2.2s ease-in-out infinite;
}
@keyframes bpmispulse {
	0%, 100% { box-shadow: 0 0 0 1px rgba(247, 179, 43, .25), 0 10px 34px -14px rgba(247, 179, 43, .55); }
	50%      { box-shadow: 0 0 0 1px rgba(247, 179, 43, .5), 0 10px 40px -12px rgba(247, 179, 43, .8); }
}
.bpmis.st-claimed { opacity: .62; }
.bpmis.st-claimed .bpmis-bar i { filter: grayscale(1); }
.bpmis-top { display: flex; align-items: center; gap: 10px; }
.bpmis-ico { font-size: 22px; flex: none; filter: drop-shadow(0 0 6px rgba(247, 179, 43, .35)); }
.bpmis-desc { font-size: 14px; font-weight: 700; color: var(--ink); }
.bpmis-bar {
	position: relative; overflow: hidden;
	height: 10px; border-radius: 999px;
	background: #0b0e15; border: 1px solid var(--line);
}
.bpmis-bar i {
	position: absolute; inset: 0; width: var(--p, 0%);
	border-radius: 999px;
	background: linear-gradient(90deg, #b47c12, #f7b32b 55%, #ffe9a8);
	box-shadow: 0 0 14px rgba(247, 179, 43, .4);
	transition: width .8s cubic-bezier(.2, .8, .2, 1);
}
.bpmis-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bpmis-prog { color: var(--dim); font-size: 12.5px; font-weight: 700; }
.bpmis-xp {
	color: var(--gold2);
	font-size: 12.5px;
	font-weight: 800;
	white-space: nowrap;
}
.bpmis-claim {
	width: 100%;
	padding: 9px 18px;
	font-size: 13px;
	box-shadow: 0 8px 22px -10px rgba(247, 179, 43, .65);
}
.bpmis-check {
	color: #46c878;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .5px;
}

@media (max-width: 1000px) {
	.bpmisrow { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
	.bpmisrow { grid-template-columns: 1fr; }
}
