/* DB10 Launcher: a Steam-style look (dark slate blues, blue accents, green Play button). */
:root {
  --top: #171a21; --bg: #1b2838; --bg2: #16202d; --panel: #2a475e; --panel2: #213244; --line: #3d4f63;
  --ink: #c7d5e0; --ink2: #8f98a0; --white: #ffffff; --blue: #66c0f4; --blue2: #1a9fff;
  --green1: #75b022; --green2: #588a1b; --install1: #47bfff; --install2: #1a44c2;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 14px/1.45 "Segoe UI", "Motiva Sans", Arial, sans-serif; overflow: hidden; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
img { display: block; }

/* top bar */
.top { display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 20px; background: var(--top); flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }
nav { display: flex; gap: 4px; }
nav button { background: none; border: 0; padding: 8px 12px; color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: .06em; border-bottom: 3px solid transparent; }
nav button:hover { color: var(--white); }
nav button.on { color: var(--blue); border-bottom-color: var(--blue); }
.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue2); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.spacer { flex: 1; }
.pill { border: 0; border-radius: 3px; padding: 6px 12px; background: var(--green2); color: #fff; font-weight: 600; }
.account { display: flex; align-items: center; gap: 8px; background: #2a3a4d; border: 0; border-radius: 3px; padding: 4px 12px 4px 4px; color: var(--ink); }
.account:hover { background: #3d556e; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 3px; background: linear-gradient(135deg, #1a9fff, #7b2fff); color: #fff; font-weight: 800; }

main { flex: 1; min-height: 0; position: relative; }
.tab { position: absolute; inset: 0; display: none; }
.tab.on { display: flex; }

/* store */
#store { overflow-y: auto; background: linear-gradient(180deg, #1b2838 0, #1b2838 50%, #16202d 100%); }
.store-inner { width: min(980px, 100%); margin: 0 auto; padding: 22px 20px 60px; }
.shelf { margin: 22px 0 10px; color: var(--white); font-size: 14px; font-weight: 400; letter-spacing: .08em; }
.hero { display: grid; grid-template-columns: 1.85fr 1fr; height: 360px; box-shadow: 0 0 10px rgba(0,0,0,.6); cursor: pointer; background: #0f1922; }
.hero .shot { background-size: cover; background-position: center; }
.hero .info { display: flex; flex-direction: column; padding: 18px; background: linear-gradient(180deg, #0f1922 0%, #152535 100%); }
.hero h3 { margin: 0 0 8px; color: var(--white); font-size: 26px; font-weight: 400; }
.hero p { margin: 0 0 12px; color: var(--ink); }
.hero .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.tag { padding: 2px 8px; border-radius: 2px; background: rgba(103,193,245,.2); color: var(--blue); font-size: 12px; }
.price { align-self: flex-end; margin-top: 12px; padding: 4px 10px; background: #4c6b22; color: #beee11; font-size: 15px; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.dots i { width: 15px; height: 9px; border-radius: 2px; background: hsla(202,60%,100%,.2); cursor: pointer; }
.dots i.on { background: hsla(202,60%,100%,.45); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.cap { background: #16202d; box-shadow: 0 0 6px rgba(0,0,0,.4); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cap:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.6); }
.cap .shot { aspect-ratio: 16 / 9; background-size: cover; background-position: center; }
.cap .meta { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.cap .meta b { color: var(--white); font-weight: 400; font-size: 15px; flex: 1; }
.cap .meta small { color: var(--ink2); }

/* store page */
.back { background: none; border: 0; color: var(--blue); padding: 0; margin-bottom: 10px; }
.page-title { margin: 0 0 4px; color: var(--white); font-size: 30px; font-weight: 400; }
.page-genre { color: var(--ink2); margin-bottom: 14px; }
.page-top { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.page-top .shot { aspect-ratio: 16 / 9; background-size: cover; background-position: center; box-shadow: 0 0 10px rgba(0,0,0,.6); }
.page-side img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.page-side p { margin: 10px 0; }
.buybox { margin: 18px 0; padding: 16px 18px; display: flex; align-items: center; gap: 12px; background: linear-gradient(-60deg, rgba(226,244,255,.3) 5%, rgba(84,107,115,.2) 95%); border-radius: 4px; }
.buybox h4 { flex: 1; margin: 0; color: var(--white); font-size: 20px; font-weight: 400; }
.cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 16px; }
.box { background: rgba(0,0,0,.2); padding: 14px 16px; border-radius: 3px; }
.box h5 { margin: 0 0 8px; color: var(--white); font-size: 13px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.box ul { margin: 0; padding-left: 18px; }
.news-item { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.news-item small { color: var(--blue); display: block; }

/* buttons */
.btn { border: 0; border-radius: 2px; padding: 9px 22px; font-size: 15px; color: #fff; background: rgba(103,193,245,.2); }
.btn:hover { background: var(--blue2); }
.btn.play { background: linear-gradient(90deg, var(--green1) 5%, var(--green2) 95%); font-size: 20px; padding: 12px 36px; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 10px; }
.btn.play:hover { background: linear-gradient(90deg, #8ed629 5%, #6aa621 95%); }
.btn.install { background: linear-gradient(90deg, var(--install1) 5%, var(--install2) 95%); font-size: 20px; padding: 12px 36px; text-transform: uppercase; font-weight: 600; letter-spacing: .04em; }
.btn.install:hover { background: linear-gradient(90deg, #66ccff 5%, #2f5fe0 95%); }
.btn.dark { background: #3d4450; } .btn.dark:hover { background: #4f5866; }
.btn:disabled { opacity: .55; cursor: default; }

/* library */
#library { background: var(--bg2); }
.side { width: 280px; flex: 0 0 280px; display: flex; flex-direction: column; background: #1e2329; border-right: 1px solid #0e1116; }
.side-home { padding: 12px 16px; background: #23262e; color: var(--white); font-weight: 700; letter-spacing: .08em; font-size: 12px; }
#lib-search { margin: 10px 12px; padding: 7px 10px; border: 1px solid #0e1116; background: #2b2f38; color: var(--ink); border-radius: 3px; outline: none; }
.side-title { padding: 6px 16px; color: var(--ink2); font-size: 12px; letter-spacing: .06em; }
#lib-list { list-style: none; margin: 0; padding: 0 0 10px; overflow-y: auto; }
#lib-list li { display: flex; align-items: center; gap: 10px; padding: 5px 16px; color: #8d929a; cursor: pointer; }
#lib-list li img { width: 22px; height: 22px; border-radius: 3px; opacity: .55; }
#lib-list li.installed { color: var(--ink); } #lib-list li.installed img { opacity: 1; }
#lib-list li:hover { background: #3d4450; color: #fff; }
#lib-list li.on { background: #3e5d7e; color: #fff; }
#lib-list li .run { margin-left: auto; color: var(--green1); font-size: 11px; }
.game { flex: 1; min-width: 0; overflow-y: auto; }
.game-hero { position: relative; height: 340px; background-size: cover; background-position: center; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,32,45,0) 40%, rgba(22,32,45,1) 100%); }
.game-hero h1 { position: absolute; left: 28px; bottom: 22px; z-index: 1; margin: 0; color: #fff; font-size: 44px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.8); }
.actionbar { display: flex; align-items: center; gap: 18px; padding: 14px 28px; background: rgba(23,26,33,.85); }
.stat { color: var(--ink2); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.stat b { display: block; color: var(--ink); font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.subtabs { display: flex; gap: 2px; padding: 0 28px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.subtabs button { background: none; border: 0; padding: 10px 14px; color: var(--ink2); border-bottom: 2px solid transparent; }
.subtabs button.on { color: #fff; border-bottom-color: var(--blue); }
.subpane { padding: 18px 28px 40px; }
.mod { display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin-bottom: 8px; background: rgba(0,0,0,.2); border-radius: 3px; }
.mod div { flex: 1; } .mod b { color: #fff; font-weight: 400; } .mod small { display: block; color: var(--ink2); }
.switch { width: 44px; height: 24px; border-radius: 12px; border: 0; background: #3d4450; position: relative; flex: 0 0 44px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #c7d5e0; transition: left .15s; }
.switch[aria-checked="true"] { background: var(--green2); } .switch[aria-checked="true"]::after { left: 23px; background: #fff; }
.muted { color: var(--ink2); }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.keys kbd { background: #3d4450; border-radius: 3px; padding: 0 6px; color: #fff; font: 12px Consolas, monospace; text-align: center; }

/* friends */
#friends { overflow-y: auto; }
.friends-inner { width: min(760px, 100%); margin: 0 auto; padding: 26px 20px 60px; }
.panel { background: rgba(0,0,0,.2); border-radius: 4px; padding: 18px 20px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 12px; color: #fff; font-weight: 400; font-size: 18px; }
.field { display: grid; gap: 4px; margin-bottom: 10px; }
.field input, .addrow input { padding: 9px 10px; border: 1px solid #000; border-radius: 3px; background: #32353c; color: #fff; outline: none; }
.field input:focus, .addrow input:focus { border-color: var(--blue2); }
.addrow { display: flex; gap: 8px; }
.addrow input { flex: 1; }
.err { color: #ff6b6b; min-height: 20px; margin: 6px 0 0; }
.friend { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 3px; }
.friend:hover { background: rgba(255,255,255,.05); }
.friend .avatar { width: 36px; height: 36px; position: relative; }
.friend .who { flex: 1; } .friend .who b { display: block; font-weight: 400; color: var(--ink2); }
.friend.online .who b { color: #6dcff6; } .friend.ingame .who b { color: #90ba3c; }
.friend .who small { color: var(--ink2); } .friend.ingame .who small { color: #90ba3c; } .friend.online .who small { color: #6dcff6; }
.friend .avatar::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg); background: #555; }
.friend.online .avatar::after { background: #6dcff6; } .friend.ingame .avatar::after { background: #90ba3c; }
.friend button { padding: 5px 12px; font-size: 13px; }

/* downloads bar */
.downloads { display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 20px; background: var(--top); color: var(--ink2); font-size: 12px; flex: 0 0 auto; }
.dl-bar { flex: 0 0 240px; height: 6px; background: #2a3440; border-radius: 3px; overflow: hidden; }
.dl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--install1), var(--blue2)); transition: width .2s; }
.ver { margin-left: auto; }
.toast { position: fixed; right: 20px; bottom: 46px; max-width: 360px; padding: 12px 16px; background: linear-gradient(135deg, #2a475e, #1b2838); color: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.6); border-left: 3px solid var(--blue); border-radius: 3px; }
::-webkit-scrollbar { width: 12px; } ::-webkit-scrollbar-thumb { background: #3d4450; border: 3px solid var(--bg2); border-radius: 6px; } ::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 1000px) { .hero, .page-top, .cols { grid-template-columns: 1fr; } .hero { height: auto; } .hero .shot { aspect-ratio: 16 / 9; } }
.badge[hidden], .toast[hidden], .pill[hidden] { display: none !important; }

.shelfrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .shelfrow .shelf { margin-right: auto; }
.filters { display: flex; gap: 4px; flex-wrap: wrap; } .filters button { border: 0; border-radius: 2px; padding: 4px 10px; background: rgba(103,193,245,.12); color: var(--blue); font-size: 12px; }
.filters button.on { background: var(--blue2); color: #fff; }
#store-sort { background: #2a3a4d; color: var(--ink); border: 0; border-radius: 2px; padding: 5px 8px; }
.cap .meta img { width: 22px; height: 22px; border-radius: 4px; }
.soon { padding: 3px 8px; background: #6b4b10; color: #ffd27a; font-size: 12px; border-radius: 2px; }
.cap.soon-cap .shot { filter: grayscale(.4) brightness(.8); }
.side-home { border: 0; text-align: left; width: 100%; cursor: pointer; } .side-home.on { background: #3e5d7e; }
.home { padding: 22px 28px 40px; } .home h3 { color: #fff; font-weight: 400; letter-spacing: .06em; font-size: 14px; margin: 18px 0 10px; }
.row { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.tile { flex: 0 0 220px; background: #16202d; cursor: pointer; box-shadow: 0 0 6px rgba(0,0,0,.4); }
.tile .shot { aspect-ratio: 16/9; background-size: cover; background-position: center; }
.tile div.t { padding: 8px 10px; color: #fff; font-size: 13px; } .tile small { display: block; color: var(--ink2); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.badge-card { background: rgba(0,0,0,.25); border-radius: 4px; padding: 12px; text-align: center; } .badge-card .b { font-size: 30px; }
.badge-card.off { opacity: .35; filter: grayscale(1); } .badge-card b { display: block; color: #fff; font-weight: 400; } .badge-card small { color: var(--ink2); }
.stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 10px; }
.review { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); } .review b { color: #fff; font-weight: 400; }
.thumbs button { font-size: 20px; padding: 6px 14px; } .thumbs button.on { background: var(--blue2); }
textarea.rev { width: 100%; min-height: 60px; margin: 8px 0; background: #32353c; color: #fff; border: 1px solid #000; border-radius: 3px; padding: 8px; font: inherit; }
.invite-toast button { margin: 8px 6px 0 0; padding: 6px 14px; font-size: 13px; }

/* ===== 1.2 refresh: softer glassy look, rounded cards, brand blue→violet accent ===== */
:root { --top: rgba(10,14,24,.82); --bg: #0e1522; --bg2: #0c121d; --line: rgba(255,255,255,.08); --ink: #d4dde8; --ink2: #8b97a8; --blue: #6cc4ff; --blue2: #3b82f6; --violet: #8b5cf6; --card: #141d2c; --r: 12px; --a1: 59,130,246; --a2: 139,92,246; }
body { font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, Arial, sans-serif; background: radial-gradient(1200px 600px at 85% -10%, rgba(var(--a2),.16), transparent 60%), radial-gradient(900px 500px at -10% 10%, rgba(var(--a1),.14), transparent 60%), var(--bg); }
.top { height: 60px; background: var(--top); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand span { background: linear-gradient(90deg, #fff, #b9d8ff); -webkit-background-clip: text; color: transparent; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 4px 14px rgba(var(--a1),.35); }
nav { gap: 6px; }
nav button { border: 0; border-radius: 999px; padding: 7px 15px; font-size: 13px; letter-spacing: .08em; color: var(--ink2); transition: background .15s, color .15s; }
nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
nav button.on { color: #fff; background: linear-gradient(135deg, rgba(var(--a1),.35), rgba(var(--a2),.35)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.account { border-radius: 999px; background: rgba(255,255,255,.06); padding: 4px 14px 4px 4px; box-shadow: inset 0 0 0 1px var(--line); }
.account .avatar, .avatar { border-radius: 50%; background: linear-gradient(135deg, var(--blue2), var(--violet)); }
.pill { border-radius: 999px; background: linear-gradient(90deg, #22c55e, #16a34a); }
#store, #friends, #profile, #community { background: transparent; overflow-y: auto; }
.store-inner { width: min(1120px, 100%); padding: 26px 28px 70px; }
.shelf { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink2); }
/* hero: full-bleed picture with the text over it */
.hero { position: relative; display: block; height: 400px; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px var(--line); }
.hero .shot { position: absolute; inset: 0; transition: transform 6s ease; }
.hero:hover .shot { transform: scale(1.04); }
.hero .info { position: absolute; inset: 0 auto 0 0; width: min(460px, 60%); padding: 34px 32px; justify-content: flex-end; background: linear-gradient(90deg, rgba(8,12,20,.92) 0%, rgba(8,12,20,.7) 60%, transparent 100%); }
.hero h3 { font-size: 36px; font-weight: 700; letter-spacing: -.01em; }
.hero p { color: #c3cfdd; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero .tags { margin-top: 10px; }
.price { align-self: flex-start; border-radius: 6px; background: rgba(34,197,94,.18); color: #7ee2a0; font-weight: 600; font-size: 13px; }
.tag { border-radius: 999px; padding: 2px 10px; background: rgba(108,196,255,.12); color: var(--blue); }
.dots i { width: 8px; height: 8px; border-radius: 50%; transition: width .2s; } .dots i.on { width: 22px; border-radius: 4px; background: var(--blue); }
.grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cap { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .18s, box-shadow .18s; }
.cap .shot { transition: transform .35s; }
.cap:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(108,196,255,.45), 0 16px 34px rgba(0,0,0,.55); }
.cap:hover .shot { transform: scale(1.05); }
.cap .shot { position: relative; z-index: 0; }
.cap .meta { position: relative; z-index: 1; background: var(--card); flex-wrap: wrap; }
.cap .meta b { font-weight: 600; }
.cap .meta small { width: 100%; order: 3; padding-left: 30px; margin-top: -4px; }
.filters button { border-radius: 999px; padding: 5px 12px; background: rgba(255,255,255,.05); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.filters button.on { background: linear-gradient(135deg, var(--blue2), var(--violet)); box-shadow: none; }
#store-sort, select { background: rgba(255,255,255,.06); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; outline: none; }
select option { background: #141d2c; }
/* store page */
.page-title { font-size: 34px; font-weight: 700; }
.page-top .shot, .page-side img { border-radius: var(--r); }
.buybox { border-radius: 14px; background: linear-gradient(120deg, rgba(var(--a1),.18), rgba(var(--a2),.14)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.box, .panel { background: rgba(255,255,255,.035); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.box h5 { border-bottom-color: var(--line); color: var(--ink2); font-weight: 700; letter-spacing: .12em; font-size: 11px; }
/* buttons */
.btn { border-radius: 8px; transition: filter .15s, transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.play { background: linear-gradient(135deg, #22c55e, #15803d); border-radius: 10px; box-shadow: 0 8px 22px rgba(34,197,94,.3); }
.btn.play:hover { background: linear-gradient(135deg, #34d870, #16a34a); }
.btn.install { background: linear-gradient(135deg, var(--blue2), var(--violet)); border-radius: 10px; box-shadow: 0 8px 22px rgba(var(--a1),.3); }
.btn.install:hover { background: linear-gradient(135deg, #5b9bff, #9f7aff); }
.btn.dark { background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line); } .btn.dark:hover { background: rgba(255,255,255,.13); }
.btn.small, .btn.play.small, .btn.install.small { font-size: 14px; padding: 8px 18px; text-transform: none; letter-spacing: 0; }
/* library */
#library { background: transparent; }
.side { background: rgba(8,12,20,.55); border-right: 1px solid var(--line); backdrop-filter: blur(10px); }
.side-home { margin: 10px 10px 0; width: calc(100% - 20px); border-radius: 8px; background: rgba(255,255,255,.05); }
.side-home.on { background: linear-gradient(135deg, rgba(var(--a1),.35), rgba(var(--a2),.35)); }
#lib-search { border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
#lib-list { padding: 0 8px 10px; }
#lib-list li { border-radius: 8px; padding: 6px 10px; margin-bottom: 1px; }
#lib-list li img { border-radius: 6px; }
#lib-list li:hover { background: rgba(255,255,255,.06); }
#lib-list li.on { background: linear-gradient(135deg, rgba(var(--a1),.3), rgba(var(--a2),.25)); }
.game-hero { height: 380px; }
.game-hero::after { background: linear-gradient(180deg, rgba(12,18,29,0) 35%, rgba(12,18,29,.85) 80%, var(--bg2) 100%); }
.game-hero h1 { font-size: 50px; letter-spacing: -.02em; }
.actionbar { margin: -8px 24px 0; position: relative; z-index: 2; border-radius: 14px; background: rgba(20,29,44,.85); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 0 0 0 1px var(--line); }
.subtabs { border-bottom-color: var(--line); }
.subtabs button { border-radius: 8px 8px 0 0; }
.mod { border-radius: 10px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--line); }
.switch[aria-checked="true"] { background: linear-gradient(135deg, #22c55e, #15803d); }
.tile { border-radius: var(--r); overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .18s, box-shadow .18s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(108,196,255,.45), 0 12px 26px rgba(0,0,0,.5); }
.home h3 { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink2); }
/* friends / profile */
.field input, .addrow input, textarea.rev { border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.05); }
.friend { border-radius: 10px; }
.badge-card { border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s; }
.badge-card:not(.off):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(108,196,255,.4); }
/* footer + toast */
.downloads { background: var(--top); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
.dl-bar i { background: linear-gradient(90deg, var(--blue2), var(--violet)); }
.toast { border-radius: 12px; border-left: 0; background: rgba(20,29,44,.95); backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0,0,0,.6), inset 0 0 0 1px rgba(108,196,255,.3); animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.toast .btn { margin-left: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-color: transparent; background-clip: padding-box; }
.tab.on { animation: fade .2s ease; } @keyframes fade { from { opacity: 0; } }

/* ===== community ===== */
.comm-inner { width: min(1120px, 100%); margin: 0 auto; padding: 26px 28px 70px; }
.comm-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.comm-head > div { flex: 1; } .comm-head h2 { margin: 0; color: #fff; font-size: 30px; font-weight: 700; } .comm-head p { margin: 4px 0 0; }
kbd { background: rgba(255,255,255,.1); border-radius: 4px; padding: 0 6px; color: #fff; font: 12px Consolas, monospace; }
.feed { columns: 3 300px; column-gap: 18px; }
.post { break-inside: avoid; margin-bottom: 18px; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.post .pic { width: 100%; height: auto; background: #0a0f18; cursor: zoom-in; }
.pbody { padding: 12px 14px; } .pbody p { margin: 0 0 10px; color: #e6edf5; user-select: text; white-space: pre-wrap; word-wrap: break-word; }
.pmeta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .pmeta b { color: #fff; font-weight: 600; } .pmeta small { color: var(--ink2); }
.pmeta .tag { cursor: pointer; font-size: 11px; }
.avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.ico { border: 0; background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px 11px; color: var(--ink2); }
.ico:hover { background: rgba(255,255,255,.12); color: #fff; }
.ico.like.on { color: #ff5d8f; background: rgba(255,93,143,.15); }
.composer h3 { margin-bottom: 10px; }
.pick { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding: 2px 2px 8px; }
.pick img { height: 72px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: .75; box-shadow: 0 0 0 1px var(--line); flex: 0 0 auto; }
.pick img:hover, .pick img.on { opacity: 1; box-shadow: 0 0 0 2px var(--blue); }
.pick label, .pick button { flex: 0 0 auto; }
.preview { position: relative; } .preview img { max-width: 100%; max-height: 340px; border-radius: 10px; margin-top: 8px; }
.preview .x { position: absolute; top: 16px; left: 8px; border: 0; border-radius: 50%; width: 28px; height: 28px; background: rgba(0,0,0,.7); color: #fff; }
.composer .addrow { align-items: center; }
.empty { text-align: center; padding: 60px 0; column-span: all; } .empty .big { font-size: 46px; } .empty b { color: #fff; font-size: 18px; font-weight: 600; }
.lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(4,7,12,.9); backdrop-filter: blur(6px); cursor: zoom-out; animation: fade .15s; }
.lightbox img { max-width: 94vw; max-height: 92vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.7); }

/* ===== 1.3: avatars, profiles, settings, themes, chat, leaderboards, big screen ===== */
.avatar { overflow: hidden; flex: 0 0 auto; cursor: pointer; }
.friend .avatar { overflow: visible; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
#me-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
[data-profile] { cursor: pointer; } b[data-profile]:hover { text-decoration: underline; }
.modal-wrap { cursor: default; }
.modal { width: min(520px, 92vw); background: var(--card); border-radius: 18px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); animation: pop .2s ease; }
.modal h2 { margin: 0 0 4px; color: #fff; font-size: 24px; } .modal .bio { margin: 18px 0; color: #e6edf5; user-select: text; }
.toast-input { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.07); color: #fff; outline: none; margin-right: 6px; }
.invite-toast select { margin-right: 6px; }
.admin-box { margin: -4px 0 18px; box-shadow: inset 0 0 0 1px rgba(250,204,21,.35); } .admin-box h5 { color: #facc15; }
.btn.on { background: rgba(var(--a1),.4); }
/* settings */
.set-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row > b { width: 130px; color: #fff; font-weight: 600; }
.set-row input:not([type=file]) { flex: 1; min-width: 150px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.05); color: #fff; outline: none; }
.set-row input:focus { border-color: rgb(var(--a1)); }
details.danger { margin-top: 14px; } details.danger summary { color: #f87171; cursor: pointer; }
.danger-btn { background: #b91c1c; } .danger-btn:hover { background: #dc2626; }
.themes { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.theme-chip { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 6px 14px 6px 6px; background: rgba(255,255,255,.05); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.theme-chip i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.theme-chip.on { box-shadow: inset 0 0 0 2px rgb(var(--a1)); color: #fff; }
/* leaderboard */
.board-title { color: #fff; font-weight: 600; font-size: 16px; margin: 4px 0 10px; }
.board { display: grid; gap: 4px; max-width: 620px; margin-bottom: 16px; }
.brow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.035); }
.brow.me { background: rgba(var(--a1),.18); box-shadow: inset 0 0 0 1px rgba(var(--a1),.45); }
.brow .rank { width: 28px; text-align: center; color: var(--ink2); font-weight: 700; } .brow b { color: #fff; font-weight: 600; } .brow .score { color: #fff; font-variant-numeric: tabular-nums; }
/* friends chat */
.chat-btn { position: relative; padding: 5px 10px; font-size: 13px; } .chat-btn .badge { position: absolute; top: -6px; right: -6px; }
#chat { position: fixed; right: 18px; bottom: 46px; width: 340px; height: min(480px, 70vh); z-index: 40; display: flex; flex-direction: column; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); animation: pop .2s ease; }
#chat[hidden] { display: none; }
#chat header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(var(--a1),.18); } #chat header b { color: #fff; }
#chat .msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; user-select: text; }
.msg { max-width: 80%; align-self: flex-start; } .msg p { margin: 0; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.08); color: #fff; word-wrap: break-word; white-space: pre-wrap; }
.msg.mine { align-self: flex-end; text-align: right; } .msg.mine p { background: linear-gradient(135deg, rgb(var(--a1)), rgb(var(--a2))); border-radius: 14px 14px 4px 14px; text-align: left; }
.msg small { color: var(--ink2); font-size: 10px; padding: 0 4px; }
#chat form { display: flex; gap: 6px; padding: 10px; border-top: 1px solid var(--line); }
#chat form input { flex: 1; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff; outline: none; }
.top .badge { margin-left: 4px; }
/* big-screen mode */
#big { position: fixed; inset: 0; z-index: 60; background: #05080e; overflow: hidden; display: flex; flex-direction: column; color: #fff; animation: fade .3s; }
#big[hidden] { display: none; }
.big-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(28px) brightness(.45) saturate(1.2); transition: background-image .4s; }
.big-top, .big-info, .big-row, .big-help { position: relative; }
.big-top { display: flex; align-items: center; gap: 14px; padding: 26px 48px; font-size: 20px; } .big-top img { width: 40px; height: 40px; border-radius: 10px; } .big-top b { font-size: 24px; letter-spacing: .08em; }
#big-clock { font-variant-numeric: tabular-nums; opacity: .85; }
.big-info { padding: 6vh 48px 0; flex: 1; } .big-info h1 { font-size: clamp(40px, 6vw, 84px); margin: 0; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0,0,0,.6); }
.big-info p { font-size: 24px; margin: 8px 0 6px; opacity: .9; } .big-info .muted { font-size: 18px; margin-bottom: 22px; } .big-info .btn.play { font-size: 26px; padding: 16px 48px; }
.big-row { display: flex; gap: 22px; overflow-x: auto; padding: 30px 48px 20px; scrollbar-width: none; } .big-row::-webkit-scrollbar { display: none; }
.big-tile { flex: 0 0 300px; aspect-ratio: 16/9; border-radius: 16px; background-size: cover; background-position: center; position: relative; cursor: pointer; opacity: .6; transform: scale(.92); transition: transform .2s, opacity .2s, box-shadow .2s; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.big-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; border-radius: 0 0 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 18px; font-weight: 600; }
.big-tile.on { opacity: 1; transform: scale(1.06); box-shadow: 0 0 0 4px #fff, 0 20px 50px rgba(0,0,0,.6); }
.big-help { padding: 0 48px 26px; opacity: .6; font-size: 16px; }
.big-btn { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; padding: 5px 12px; } .big-btn:hover { background: rgba(255,255,255,.14); }

/* 1.4: weekly challenge, activity, creator submissions, download controls */
.challenge { display: flex; align-items: center; gap: 16px; margin: 14px 0 6px; padding: 14px 18px; border-radius: 12px; background: linear-gradient(110deg, rgba(var(--a1), .22), rgba(var(--a2), .18)); border: 1px solid rgba(var(--a1), .35); }
.challenge[hidden] { display: none; }
.ch-icon { font-size: 34px; }
.ch-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-text small { letter-spacing: .12em; font-size: 11px; color: rgb(var(--a1)); font-weight: 700; }
.ch-text b { font-size: 17px; color: #fff; }
.ch-done { color: #4ade80; font-weight: 700; white-space: nowrap; }
.act { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.act span:not(.avatar) { flex: 1; }
.act b { color: #fff; cursor: pointer; }
.act small { color: #7d8ba1; white-space: nowrap; }
.submit-cta { display: flex; align-items: center; gap: 16px; margin: 22px 0 8px; padding: 16px 18px; border-radius: 12px; background: var(--card); border: 1px dashed rgba(var(--a1), .45); }
.submit-cta > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.submit-cta b { color: #fff; font-size: 16px; }
.modal.submit { width: min(560px, 94vw); max-height: 90vh; overflow: auto; }
.modal.submit textarea, .modal.submit select, .modal.submit input[type=file] { width: 100%; box-sizing: border-box; background: rgba(0,0,0,.3); color: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 8px; font: inherit; }
#dl-ctl { margin-left: 10px; padding: 3px 10px; font-size: 12px; }
#dl-ctl[hidden] { display: none; }
@media (max-width: 700px) { .challenge, .submit-cta { flex-wrap: wrap; } }

/* DB10 on the web (site/app): no downloads bar, a link to the launcher, and a phone layout */
.get-app { display: none; }
.web .get-app { display: inline-block; margin-left: 10px; padding: 7px 14px; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--a1)), rgb(var(--a2))); color: #fff; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.web .downloads, .web #open-shots, .web #big-btn { display: none !important; }
@media (max-width: 760px) {
  header.top { flex-wrap: wrap; gap: 6px; padding: 8px 10px; height: auto; }
  header.top nav { order: 3; width: 100%; overflow-x: auto; display: flex; gap: 2px; }
  header.top nav button { padding: 7px 10px; font-size: 12px; flex: none; }
  .store-inner, main > section { padding-left: 12px !important; padding-right: 12px !important; }
  .hero { height: 220px !important; } .hero h1, .hero h2 { font-size: 26px !important; }
  .grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .page-top, .cols { grid-template-columns: 1fr !important; display: grid; }
  #library { flex-direction: column; } #library aside, #lib-list { width: 100% !important; max-height: 180px; }
  .actionbar { flex-wrap: wrap; } .panel, .box { padding: 14px; }
  .addrow { flex-wrap: wrap; } .modal { padding: 16px; }
  .shelfrow { flex-wrap: wrap; }
  .hero .info p { display: none; } .hero .info { max-width: none !important; }
  .comm-head { flex-wrap: wrap; gap: 10px; } .comm-head > * { min-width: 0; }
}

/* ----- rewards: points, daily quests, the points shop and profile looks ----- */
.pts-pill { white-space: nowrap; background: rgba(245,197,66,.14); color: #f5c542; font-weight: 700; cursor: pointer; }
.rew-head { display: flex; align-items: center; gap: 20px; }
.rew-pts { display: grid; justify-items: center; font-size: 26px; color: #f5c542; padding: 6px 18px; border-radius: 12px; background: rgba(245,197,66,.1); }
.rew-pts b { font-size: 30px; } .rew-pts small { font-size: 12px; color: var(--ink2); }
.qg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #fff; font-size: 17px; }
.qg-head img { width: 36px; height: 36px; border-radius: 8px; }
.quest { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); margin-bottom: 8px; }
.quest.ready { background: rgba(108,196,255,.1); box-shadow: inset 0 0 0 1px rgba(108,196,255,.35); }
.quest.claimed { opacity: .55; }
.q-text { flex: 1; display: grid; gap: 5px; } .q-text b { color: #fff; font-weight: 600; } .q-text small { color: var(--ink2); }
.q-bar { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.q-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue2), var(--blue)); }
.q-pts { color: #f5c542; font-weight: 700; white-space: nowrap; } .q-pts.done { color: #8fd18f; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }
.shop-item { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; }
.shop-item.on { box-shadow: inset 0 0 0 2px var(--blue); }
.shop-item b { color: #fff; font-weight: 600; }
.si-prev { height: 64px; display: grid; place-items: center; width: 100%; }
.ban-prev { width: 100%; height: 56px; border-radius: 8px; }
.ptitle { display: inline-block; padding: 2px 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(245,197,66,.25), rgba(139,92,246,.25)); color: #ffe7a3; font-size: 12px; font-weight: 700; letter-spacing: .04em; vertical-align: middle; }
.prof-head { display: flex; align-items: center; gap: 16px; border-radius: 12px; padding: 14px; margin: -6px; }
.prof-head[class*="banner-"] { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.prof-head[class*="banner-"] .muted { color: rgba(255,255,255,.85); }
/* frames (on every avatar) */
.avatar.fr { border-radius: 50%; }
.frame-silver { box-shadow: 0 0 0 2px #d9dee6, 0 0 0 4px #7c8592; }
.frame-gold { box-shadow: 0 0 0 2px #ffd866, 0 0 0 4px #b8860b, 0 0 10px rgba(255,200,60,.6); }
.frame-toxic { box-shadow: 0 0 0 2px #9dff3a, 0 0 12px #6aff00; }
.frame-neon { box-shadow: 0 0 0 2px #ff3df2, 0 0 0 4px #3de1ff, 0 0 14px #ff3df2; }
.frame-ice { box-shadow: 0 0 0 2px #e6fbff, 0 0 0 4px #67d4ff, 0 0 12px #9fe8ff; }
.frame-fire { animation: fr-fire 1.2s ease-in-out infinite alternate; }
.frame-rainbow { animation: fr-rainbow 3s linear infinite; }
.frame-royal { box-shadow: 0 0 0 2px #ffd866, 0 0 0 5px #6b21a8, 0 0 0 6px #ffd866, 0 0 16px rgba(139,92,246,.8); }
@keyframes fr-fire { from { box-shadow: 0 0 0 2px #ffb020, 0 0 8px 2px #ff5a00; } to { box-shadow: 0 0 0 3px #ffd34d, 0 0 16px 4px #ff2a00; } }
@keyframes fr-rainbow { 0% { box-shadow: 0 0 0 3px #ff4d4d, 0 0 10px #ff4d4d; } 25% { box-shadow: 0 0 0 3px #ffd34d, 0 0 10px #ffd34d; } 50% { box-shadow: 0 0 0 3px #4dff88, 0 0 10px #4dff88; } 75% { box-shadow: 0 0 0 3px #4dc3ff, 0 0 10px #4dc3ff; } 100% { box-shadow: 0 0 0 3px #ff4dff, 0 0 10px #ff4dff; } }
/* banners (profile header) */
.banner-sunset { background: linear-gradient(120deg, #ff7e5f, #feb47b 55%, #ff5e62); }
.banner-ocean { background: linear-gradient(120deg, #0f4c81, #1fa2ff 60%, #12d8fa); }
.banner-forest { background: linear-gradient(120deg, #134e2a, #2f8f46 60%, #a8e063); }
.banner-carbon { background: repeating-linear-gradient(45deg, #1c1f26 0 6px, #262a33 6px 12px); }
.banner-desert { background: linear-gradient(170deg, #f6d365, #e0a35a 55%, #a0522d); }
.banner-space { background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.8) 0 1px, transparent 2px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.7) 0 1px, transparent 2px), radial-gradient(circle at 45% 80%, rgba(255,255,255,.6) 0 1px, transparent 2px), radial-gradient(circle at 85% 20%, rgba(255,255,255,.8) 0 1px, transparent 2px), linear-gradient(135deg, #0b0c2a, #2b1055 60%, #0b0c2a); background-size: 90px 90px, 120px 120px, 70px 70px, 150px 150px, 100% 100%; }
.banner-synthwave { background: linear-gradient(180deg, #2b0b4d, #8a1fa0 50%, #ff6a3d 50.5%, #ff2d95); }
.banner-aurora { background: linear-gradient(120deg, #06283d, #0f9b8e 35%, #7b2fff 70%, #06283d); background-size: 300% 100%; animation: aurora 10s ease-in-out infinite alternate; }
@keyframes aurora { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
/* name colours */
.color-cyan { color: #4de1ff !important; } .color-pink { color: #ff7ad9 !important; } .color-lime { color: #a6ff4d !important; } .color-gold { color: #ffd34d !important; text-shadow: 0 0 8px rgba(255,200,60,.45); }
.color-flame { background: linear-gradient(90deg, #ffd34d, #ff5a00, #ff2a6d); -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.color-rainbow { background: linear-gradient(90deg, #ff4d4d, #ffd34d, #4dff88, #4dc3ff, #ff4dff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: aurora 4s linear infinite alternate; }
/* library covers: portrait, like a shelf of boxes */
.tile.cv { flex: 0 0 172px; } .tile.cv .shot { aspect-ratio: 2 / 3; }
.gift-row { display: flex; flex-wrap: wrap; gap: 8px; } .gift-row .btn { display: inline-flex; align-items: center; gap: 8px; }
/* rarities */
.rar { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.r-common { color: #b8c2cc; } .r-rare { color: #4da3ff; } .r-epic { color: #b66dff; } .r-legendary { color: #ffb020; } .r-mythic { background: linear-gradient(90deg, #ff4d6d, #ffd34d, #4dffb8, #4dc3ff, #c44dff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-item.rb-rare { box-shadow: inset 0 -3px 0 #4da3ff; } .shop-item.rb-epic { box-shadow: inset 0 -3px 0 #b66dff; background: linear-gradient(180deg, rgba(182,109,255,.06), rgba(255,255,255,.03)); }
.shop-item.rb-legendary { box-shadow: inset 0 -3px 0 #ffb020, 0 0 18px rgba(255,176,32,.12); background: linear-gradient(180deg, rgba(255,176,32,.08), rgba(255,255,255,.03)); }
.shop-item.rb-mythic { box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 0 22px rgba(196,77,255,.25); background: linear-gradient(160deg, rgba(255,77,109,.12), rgba(77,195,255,.1), rgba(196,77,255,.14)); }
.shop-item.on { outline: 2px solid var(--blue); }
.ana-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important; margin-bottom: 16px; }
.ana-chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; }
.ana-chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; cursor: pointer; position: relative; padding-bottom: 18px; }
.ana-chart .bar i { background: var(--blue2); border-radius: 4px 4px 0 0; min-height: 2px; } .ana-chart .bar s { background: rgba(255,255,255,.18); }
.ana-chart .bar.on i { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.ana-chart small { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.ana-t { width: 100%; border-collapse: collapse; font-size: 14px; } .ana-t th { text-align: left; color: var(--ink2); font-weight: 600; padding: 6px; } .ana-t td { padding: 6px; border-top: 1px solid var(--line); }
.ana-in { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: #fff; margin-bottom: 10px; }
.ana-log { max-height: 520px; overflow: auto; font-size: 13px; line-height: 1.9; } .ana-log small { color: var(--ink2); margin-right: 6px; }
/* spectate / remote play */
.sp-wrap { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.sp-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(10,14,24,.95); border-bottom: 1px solid var(--line); color: #fff; }
.sp-wrap video { flex: 1; min-height: 0; width: 100%; object-fit: contain; background: #000; outline: none; }
.danger-btn { background: #e5484d; color: #fff; }
