/* ---------- the signed-in player's home: a full website around the game ---------- */
body.signed #menu .menu-wrap, body.signed #menu .keys, body.signed #menu .lp-top, body.signed #menu .menu-bg { display: none; }
.dashpage {
  position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; color: var(--text);
  background: radial-gradient(900px 600px at 85% -10%, var(--t-glow), transparent 60%), radial-gradient(1000px 700px at -10% 0%, rgba(124,92,255,.22), transparent 60%), radial-gradient(800px 600px at 50% 120%, rgba(56,189,248,.14), transparent 60%), linear-gradient(180deg, #222328, var(--t-bg));
  animation: dpIn .35s ease;
}
.dashpage .btn.primary { background: var(--t-a); border-color: var(--t-a); color: #120a03; }
.dashpage .eyebrow { color: var(--t-a); }
@keyframes dpIn { from { opacity: 0; } }

/* top bar */
.dp-top { display: flex; align-items: center; gap: 14px; padding: 10px max(18px, env(safe-area-inset-right, 0px)) 10px max(18px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--t-line); background: rgba(0,0,0,.35); position: relative; z-index: 3; }
.dp-logo { font-family: var(--display); font-size: 22px; text-transform: uppercase; letter-spacing: .02em; flex: none; background: linear-gradient(90deg, var(--text), var(--t-a)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dp-search { flex: 1; max-width: 360px; margin-inline: auto; }
.dp-search input { width: 100%; padding: 9px 14px 9px 36px; border-radius: 999px; border: 1px solid var(--t-line); background: rgba(255,255,255,.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath fill='%238f9a8e' d='M10 3a7 7 0 1 0 4.2 12.6l5.1 5.1 1.4-1.4-5.1-5.1A7 7 0 0 0 10 3Zm0 2a5 5 0 1 1 0 10 5 5 0 0 1 0-10Z'/%3E%3C/svg%3E") no-repeat 12px 50%; font-size: 14px; outline: none; transition: border-color .15s, background-color .15s; }
.dp-search input:focus { border-color: var(--t-a); background-color: rgba(255,255,255,.08); }
.dp-user { display: flex; align-items: center; gap: 8px; flex: none; }
.dp-icon { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--t-line); background: rgba(255,255,255,.04); color: var(--dim); cursor: pointer; transition: color .15s, background .15s; }
.dp-icon:hover { color: var(--text); background: rgba(255,255,255,.08); }
.dp-icon .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--t-a); display: none; box-shadow: 0 0 0 2px var(--t-bg); }
#dp-daily.ready { color: var(--t-a); animation: wiggle 2.4s ease-in-out infinite; }
#dp-daily.ready .dot { display: block; }
@keyframes wiggle { 0%, 80%, 100% { transform: none; } 84% { transform: rotate(-12deg); } 88% { transform: rotate(10deg); } 92% { transform: rotate(-6deg); } }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e5484d; color: #fff; font: 700 11px/18px var(--body); text-align: center; }
.dp-icon .badge { position: absolute; }
.dp-gems { display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid rgba(91,227,255,.35); background: linear-gradient(180deg, rgba(91,227,255,.14), rgba(91,227,255,.04)); color: #c9f6ff; font: 700 15px var(--body); cursor: pointer; font-variant-numeric: tabular-nums; transition: transform .15s; }
.dp-gems:hover { transform: translateY(-1px); }
.dp-gems.pop { animation: gemPop .6s ease; }
@keyframes gemPop { 30% { transform: scale(1.18); box-shadow: 0 0 24px rgba(91,227,255,.6); } }
.dp-me { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--t-line); background: rgba(255,255,255,.04); cursor: pointer; text-align: left; }
.dp-me canvas { width: 36px; height: 36px; flex: none; }
.dp-me-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dp-me-t #dp-name { font-weight: 700; font-size: 14px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-me-l { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.xpbar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.xpbar i { position: absolute; inset: 0 auto 0 0; display: block; border-radius: 4px; background: linear-gradient(90deg, var(--t-a), #ffd34d); transition: width .6s ease; }
.xpbar.mini { width: 54px; height: 4px; }
.xpbar.gem i { background: linear-gradient(90deg, #1d93c4, #5be3ff); }
.gem-ic { flex: none; filter: drop-shadow(0 0 4px rgba(91,227,255,.45)); }
.gem-amt { display: inline-flex; align-items: center; gap: 5px; color: #c9f6ff; font-variant-numeric: tabular-nums; }
.gem-amt.big { font-size: 26px; font-family: var(--display); }
.gem-amt.big b { font-weight: 400; }

/* body: side navigation + page */
.dp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.dp-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--t-line); background: rgba(0,0,0,.18); }
.dp-nav button { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; color: var(--dim); font: 600 15px var(--body); cursor: pointer; transition: background .15s, color .15s; }
.dp-nav svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.dp-nav button:hover { background: rgba(255,255,255,.05); color: var(--text); }
.dp-nav button[aria-selected="true"] { background: linear-gradient(180deg, color-mix(in srgb, var(--t-a) 92%, #fff), var(--t-a)); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.22), 0 4px 14px var(--t-glow); }
.dp-nav button[aria-selected="true"] svg { fill: #fff; }
.dp-nav button[aria-selected="true"]::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--t-a); }
.dp-nav .badge { margin-left: auto; }
.dp-nav button[data-dp="account"] { margin-top: auto; }
.dp-main { overflow-y: auto; padding: 24px clamp(16px, 3.5vw, 40px) 48px; scroll-behavior: smooth; }
#dp-page { max-width: 1120px; margin-inline: auto; }
.dp-sec { display: flex; flex-direction: column; gap: 16px; animation: secIn .3s ease; }
@keyframes secIn { from { opacity: 0; transform: translateY(8px); } }
.dp-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dp-h { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.6vw, 38px); margin: 0; line-height: 1.05; }
.dp-card { background: linear-gradient(180deg, rgba(150,140,255,.10), rgba(150,140,255,.02) 50%, transparent), var(--t-card); border: 1px solid rgba(150,140,255,.16); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 14px 40px rgba(5,6,25,.45), inset 0 1px 0 rgba(255,255,255,.07); }
.dp-card h3 { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0; text-transform: none; }
.dp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dp-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.dp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dim { color: var(--dim); }
.empty-big { padding: 34px 16px; text-align: center; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 12px; border: 1px dashed var(--t-line); border-radius: 14px; }
.dp-news { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-radius: 12px; background: var(--t-a2); border: 1px solid var(--t-line); font-size: 14px; }
.dp-news strong { color: var(--t-a); }
.dp-banner { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 18px; border-radius: 14px; font-size: 14px; }
.dp-banner strong { font-family: var(--display); font-weight: 800; font-size: 20px; }
.dp-banner.ev { background: linear-gradient(90deg, rgba(91,227,255,.22), rgba(91,227,255,.04)); border: 1px solid rgba(91,227,255,.35); }
.dp-banner.sale { background: linear-gradient(90deg, rgba(255,107,44,.25), rgba(255,107,44,.04)); border: 1px solid rgba(255,107,44,.4); }

/* home hero */
.dp-hero { position: relative; min-height: 260px; border-radius: 18px; overflow: hidden; border: 1px solid var(--t-line); background: #000; }
.dp-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dp-hero-txt { position: relative; z-index: 1; padding: 28px clamp(18px, 3vw, 34px); display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.dp-hero-h { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.02; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.dp-hero-lvl { display: grid; grid-template-columns: auto auto minmax(80px, 1fr) auto; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; max-width: 420px; }
.dp-hero-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dp-hero-acts .ghost { background: rgba(0,0,0,.35); }
/* build 66: the big green Play button and colourful action tiles (playful, like Roblox) */
.btn.play-btn { min-width: 150px; font-size: 20px; color: #fff; border: 0; background: linear-gradient(180deg, #3ee088, #1fb85a); text-shadow: 0 2px 0 rgba(0,0,0,.25); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 8px 26px rgba(34,197,94,.35); animation: glow 2.6s ease-in-out infinite; }
.btn.play-btn::before { content: '▶'; margin-right: 10px; font-size: .8em; }
.btn.play-btn:hover { filter: brightness(1.08); }
@keyframes glow { 50% { box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 8px 40px rgba(34,197,94,.55); } }
.lvl-b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: linear-gradient(135deg, var(--t-a, #ff6b2c), #ffd34d); color: #160b02; font: 800 12px var(--body); transform: rotate(-4deg); }
.player .lvl-b { min-width: 20px; height: 18px; font-size: 10.5px; margin-right: 6px; vertical-align: 1px; background: linear-gradient(135deg, #ff6b2c, #ffd34d); }

/* friends strip */
.fr-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.fr-dot { flex: none; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; color: var(--text); padding: 0; }
.fr-dot .fn { font-size: 12.5px; font-weight: 600; max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-dot .fs { font-size: 11px; color: var(--dim); }
.fr-dot.on .fs { color: #43d17a; }
.fr-dot.add .plus { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--t-line); font-size: 26px; color: var(--dim); transition: border-color .15s, color .15s; }
.fr-dot.add:hover .plus { border-color: var(--t-a); color: var(--t-a); }
.fr-av { position: relative; display: inline-flex; flex: none; }
.fr-av .dot { position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #43d17a; box-shadow: 0 0 0 3px var(--t-bg2); }
canvas.av { display: block; flex: none; }

/* daily + featured */
.daily { display: flex; align-items: center; gap: 12px; }
.daily div:last-child { display: flex; flex-direction: column; }
.daily-gem { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle, rgba(91,227,255,.25), transparent 70%); animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-4px); } }

/* rooms and stats */
.dp-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .dp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dp-act { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--t-card); border: 1px solid var(--t-line); border-radius: 14px; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.dp-act:hover:not(:disabled) { border-color: var(--t-a); transform: translateY(-2px); }
.dp-act strong { font-size: 18px; }
.dp-act span { color: var(--dim); font-size: 14px; }
.dp-act.primary { background: linear-gradient(135deg, var(--t-a), color-mix(in srgb, var(--t-a) 70%, #000)); border-color: var(--t-a); color: #140903; }
.dp-act.primary span { color: rgba(20,9,3,.75); }
.dp-rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dp-rooms li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--t-line); border-radius: 10px; animation: secIn .25s ease; }
.dp-rooms li.empty { justify-content: center; color: var(--dim); font-size: 14px; background: none; border-style: dashed; padding: 18px; }
.dp-rooms .rc { font-family: var(--display); letter-spacing: .06em; color: var(--t-a); }
.dp-rooms .rh { font-weight: 600; }
.dp-rooms .rm { color: var(--dim); font-size: 13px; flex: 1; }
.dp-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.dp-stats li { display: flex; flex-direction: column; gap: 4px; }
.dp-stats strong { font-family: var(--display); font-weight: 800; font-size: 28px; color: var(--t-a); line-height: 1; font-variant-numeric: tabular-nums; }
.dp-stats span { color: var(--dim); font-size: 13px; }
.dp-stats.big { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.dp-stats.big li { background: var(--t-card); border: 1px solid var(--t-line); border-radius: 14px; padding: 16px; }
.dp-stats.big strong { font-size: 34px; }

/* tabs */
.seg-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--t-line); overflow-x: auto; scrollbar-width: none; }
.seg-tabs button { flex: none; padding: 8px 14px; border-radius: 9px; border: 0; background: none; color: var(--dim); font: 600 14px var(--body); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg-tabs button:hover { color: var(--text); }
.seg-tabs button[aria-selected="true"] { background: var(--t-a); color: #120a03; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* shop items */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.item-grid.wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.item-grid.small { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.item-card { --rc: #8b8f9d; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px; border-radius: 14px; border: 1px solid var(--t-line); background: linear-gradient(180deg, color-mix(in srgb, var(--rc) 14%, transparent), transparent 55%), var(--t-card); color: var(--text); font: inherit; cursor: pointer; text-align: center; transition: transform .15s, border-color .15s, box-shadow .15s; overflow: hidden; }
.item-card:hover { transform: translateY(-3px); border-color: var(--rc); box-shadow: 0 10px 30px -12px var(--rc); }
.item-card.r-r { --rc: #4cc9f0; } .item-card.r-e { --rc: #b26bff; } .item-card.r-l { --rc: #ffc93d; } .item-card.r-s { --rc: #ff4f8b; }
.item-card.r-l::after { content: ''; position: absolute; inset: -40% -60%; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%); animation: shine 4s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.item-card.on { border-color: var(--t-a); box-shadow: inset 0 0 0 2px var(--t-a); }
.item-card.on::before { content: '✓'; position: absolute; top: 8px; right: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--t-a); color: #120a03; font-weight: 800; font-size: 13px; z-index: 3; box-shadow: 0 0 0 3px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.4); } /* build 67: drawn above the picture (it used to hide behind banner previews) */
.item-card.owned { opacity: .72; }
.item-card.big { padding: 18px; }
.ic-prev { min-height: 84px; display: grid; place-items: center; }
.ic-prev.none { width: 84px; height: 84px; border-radius: 50%; border: 2px dashed var(--t-line); color: var(--dim); font-size: 28px; }
.ic-prev .nm.big { font-family: var(--display); font-size: 20px; padding: 26px 4px; }
.ttl-prev { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--rc); color: var(--rc); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-block: 24px; }
.ic-r { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rc); }
.ic-name { font-weight: 700; font-size: 15px; line-height: 1.2; }
.ic-desc { font-size: 12px; color: var(--dim); }
.ic-price { margin-top: 2px; font-size: 15px; }
.ic-price .own { color: #43d17a; font-size: 13px; } .ic-price .soon { color: var(--dim); font-size: 13px; }
.ic-price.poor .gem-amt { color: #ff8a8a; }
.ic-lim { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 6px; background: #ff4f8b; color: #fff; font-size: 10.5px; font-weight: 700; }
.shop-bal { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; }
.theme-sw { width: 120px; height: 72px; border-radius: 10px; border: 1px solid var(--t-line); position: relative; overflow: hidden; }
.theme-sw::after { content: ''; position: absolute; left: 14px; bottom: 12px; width: 46px; height: 8px; border-radius: 4px; background: var(--sa); box-shadow: 0 -14px 0 -1px rgba(255,255,255,.2), 54px 0 0 -2px rgba(255,255,255,.12); }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.theme-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--t-line); background: rgba(255,255,255,.03); color: var(--text); font: 600 14px var(--body); cursor: pointer; transition: border-color .15s; }
.theme-pick:hover { border-color: var(--t-a); }
.theme-pick.on { border-color: var(--t-a); box-shadow: inset 0 0 0 2px var(--t-a); }
.theme-pick.locked .theme-sw { filter: grayscale(.6) brightness(.7); }

/* profile + wardrobe */
.prof { display: flex; flex-direction: column; gap: 14px; }
.prof-banner { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: 18px; border: 1px solid var(--t-line); background: radial-gradient(400px 200px at 0 0, var(--t-glow), transparent), linear-gradient(135deg, var(--t-bg2), var(--t-bg)); flex-wrap: wrap; }
.prof-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prof-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prof-title { margin: 0; color: #ffd34d; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.prof-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.prof-dlg { max-width: 640px; width: calc(100% - 24px); max-height: calc(100% - 24px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.prof-dlg .dp-stats.big li { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.prof-dlg .dp-stats strong { color: var(--accent); }
.rainbow { background: linear-gradient(90deg, #ff5a5f, #ffd34d, #6bdc6b, #5ab4ff, #b26bff, #ff5a5f) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: rb 3s linear infinite; }
@keyframes rb { to { background-position: 200% 0; } }
.cls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.cls-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 12px; border: 1px solid var(--t-line); background: rgba(255,255,255,.03); font-size: 13px; font-weight: 600; }
.cls-chip.locked canvas { filter: grayscale(1) brightness(.6); }
.cls-chip .lock { position: absolute; top: 6px; right: 6px; font-size: 10px; padding: 1px 6px; border-radius: 6px; background: rgba(0,0,0,.6); color: var(--dim); }
.locker { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.locker-prev { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; border-radius: 18px; border: 1px solid var(--t-line); background: radial-gradient(circle at 50% 35%, var(--t-glow), transparent 70%), var(--t-card); }
.locker-prev canvas { width: 220px; height: 220px; cursor: crosshair; }
.locker-items { display: flex; flex-direction: column; gap: 12px; }

/* friends */
.fr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fr-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--t-line); background: var(--t-card); }
.fr-list li.on { border-color: rgba(67,209,122,.35); }
.fr-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fr-name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.fr-name .lvl-b { min-width: 20px; height: 18px; font-size: 10.5px; }
.fr-st { font-size: 13px; color: var(--dim); }
li.on .fr-st { color: #43d17a; }
.fr-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fr-acts .btn { position: relative; }
.fr-acts .badge { position: absolute; top: -7px; right: -7px; }
.field-in { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }

/* private messages */
.dm { position: absolute; right: 16px; bottom: 16px; z-index: 6; width: min(380px, calc(100% - 32px)); height: min(520px, calc(100% - 100px)); display: flex; flex-direction: column; border-radius: 16px; border: 1px solid var(--t-line); background: rgba(15,15,17,.97); box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: secIn .2s ease; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--t-line); }
.dm-who { display: flex; flex-direction: column; flex: 1; min-width: 0; font-weight: 700; line-height: 1.2; }
.dm-who .dim { font-weight: 400; font-size: 12px; }
.dm-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.dm-msg { align-self: flex-start; max-width: 80%; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: rgba(255,255,255,.07); display: flex; flex-direction: column; animation: secIn .2s ease; }
.dm-msg.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--t-a); color: #120a03; }
.dm-x { white-space: pre-wrap; word-break: break-word; font-size: 14px; }
.dm-t { font-size: 10.5px; opacity: .6; align-self: flex-end; }
.dm-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--t-line); }
.dm-foot input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); }

/* leaderboard */
.top-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.top-rows li.empty { text-align: center; color: var(--dim); padding: 24px; }
.top-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--t-line); background: var(--t-card); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: transform .15s, border-color .15s; }
.top-row:hover { transform: translateX(3px); border-color: var(--t-a); }
.top-row .rk { width: 28px; font-family: var(--display); font-size: 18px; color: var(--dim); text-align: center; }
.top-row .nm { font-weight: 700; }
.top-row .tv { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
.podium.p1 .top-row { border-color: #ffc93d; background: linear-gradient(90deg, rgba(255,201,61,.18), transparent 60%), var(--t-card); }
.podium.p2 .top-row { border-color: #cfd0d6; background: linear-gradient(90deg, rgba(207,208,214,.14), transparent 60%), var(--t-card); }
.podium.p3 .top-row { border-color: #c98a4b; background: linear-gradient(90deg, rgba(201,138,75,.16), transparent 60%), var(--t-card); }
.podium.p1 .rk { color: #ffc93d; } .podium.p2 .rk { color: #cfd0d6; } .podium.p3 .rk { color: #c98a4b; }

/* account settings */
.sw-row, .acc-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--t-line); }
.sw-row:first-of-type, .acc-row:first-of-type { border-top: 0; }
.sw-row > span, .acc-row > span { display: flex; flex-direction: column; gap: 2px; }
.sw-row .dim, .acc-row .dim { font-size: 13px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 26px; border-radius: 13px; position: relative; cursor: pointer; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch:checked { background: var(--t-a); }
.switch:checked::after { transform: translateX(20px); }
.danger-card { border-color: rgba(229,72,77,.35); }
.btn.danger { background: linear-gradient(180deg, #ff6b6b, var(--danger)); border-color: transparent; color: #fff; }
#form-fields { display: flex; flex-direction: column; gap: 10px; }
#form-dlg .settings-dlg, #rep-dlg .settings-dlg { display: flex; flex-direction: column; gap: 12px; max-width: 440px; }

/* in game: gems from a cleared wave */
.gem-pop { position: fixed; left: 50%; top: 42%; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(8,20,26,.88); border: 1px solid rgba(91,227,255,.45); color: #c9f6ff; font-weight: 700; pointer-events: none; animation: gemUp 3.2s ease forwards; box-shadow: 0 0 30px rgba(91,227,255,.25); }
.gem-pop b { font-size: 20px; font-family: var(--display); font-weight: 800; }
.gem-pop span { font-size: 13px; color: #9fdcec; }
@keyframes gemUp { 0% { opacity: 0; transform: translate(-50%, 14px) scale(.9); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -18px); } }
.toast.gem { border-color: rgba(91,227,255,.5); color: #c9f6ff; }
.toast.dm { border-color: rgba(255,255,255,.3); }

/* class picker: roles, locks, who picked what */
.cls-role { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.class-card { position: relative; }
.class-top { position: relative; }
.cls-tag { margin-left: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.cls-tag:empty { display: none; }
.cls-tag.lock { background: rgba(0,0,0,.5); color: #c9f6ff; border: 1px solid rgba(91,227,255,.35); }
.cls-tag.lock span { color: var(--dim); }
.cls-tag.try { background: rgba(245,197,66,.15); color: var(--gold); border: 1px solid rgba(245,197,66,.35); }
.class-card.locked .class-preview { filter: grayscale(.85) brightness(.6); }
.class-card.locked .class-name { color: var(--dim); }
.cls-team { display: flex; gap: 3px; min-height: 8px; }
.cls-team i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6); }
.class-card[aria-checked="true"] .class-preview { box-shadow: 0 0 0 2px var(--accent), 0 0 18px rgba(255,107,44,.35); }
.class-card[aria-checked="true"]::after { content: '✓'; position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 12px; box-shadow: 0 0 0 3px var(--bg); }
.cd-lock { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 10px; background: rgba(91,227,255,.07); border: 1px solid rgba(91,227,255,.3); font-size: 13px; }
.cd-lock .dim { flex-basis: 100%; }
.menu-promo { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: linear-gradient(120deg, rgba(91,227,255,.14), rgba(91,227,255,.03)); border: 1px solid rgba(91,227,255,.3); }
.menu-promo > div:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.menu-promo strong { font-size: 14px; color: #dff9ff; }
.menu-promo span { font-size: 12.5px; color: #9fcfdc; line-height: 1.35; }
.mp-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(91,227,255,.12); }
.menu-promo .btn { flex: none; border-color: rgba(91,227,255,.45); color: #dff9ff; }

/* quests, level road, achievements */
.q-list { display: flex; flex-direction: column; gap: 8px; }
.q-special { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.q-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--t-line); background: rgba(255,255,255,.03); }
.q-row.done { border-color: var(--t-a); background: var(--t-a2); }
.q-row.claimed { opacity: .55; }
.q-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 19px; }
.q-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.q-mid strong { font-size: 14px; }
.q-mid .dim { font-size: 12px; }
.q-rew { display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; }
.q-ok { color: #43d17a; font-weight: 700; font-size: 13px; }
.gem-amt.sm { font-size: 12px; }
.road { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scroll-behavior: smooth; scrollbar-width: thin; }
.road-n { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--t-line); background: rgba(255,255,255,.03); text-align: center; }
.road-n.big { width: 96px; background: linear-gradient(180deg, rgba(255,201,61,.14), transparent), rgba(255,255,255,.03); border-color: rgba(255,201,61,.35); }
.road-n.got { opacity: .45; }
.road-n.next { border-color: var(--t-a); box-shadow: 0 0 0 2px var(--t-a); opacity: 1; }
.road-l { font-family: var(--display); font-size: 18px; }
.road-it { font-size: 11.5px; font-weight: 700; color: #ffc93d; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ach { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--t-line); background: rgba(255,255,255,.03); }
.ach.ready { border-color: var(--t-a); background: var(--t-a2); }
.ach.got .ach-ic { background: linear-gradient(135deg, #ffd34d, #ff8a3d); }
.ach:not(.got):not(.ready) .ach-ic { filter: grayscale(1); opacity: .5; }
.ach-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 17px; }
.ach-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ach-m strong { font-size: 14px; }
.ach-m .dim { font-size: 12px; }
.ach-m .xpbar { height: 5px; }

/* shop: owned filters, sale tags, the purchase window */
.seg-tabs button { display: inline-flex; align-items: center; gap: 6px; }
.tab-c { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); }
.seg-tabs button[aria-selected="true"] .tab-c { background: rgba(0,0,0,.18); color: #120a03; }
.tab-sale { font-size: 11px; font-weight: 800; padding: 1px 5px; border-radius: 6px; background: #ff4f8b; color: #fff; }
.shop-own { margin-top: -4px; }
.item-card.on-sale { border-color: rgba(255,79,139,.55); }
.ic-sale { position: absolute; top: 8px; right: 8px; padding: 2px 7px; border-radius: 6px; background: #ff4f8b; color: #fff; font-size: 11.5px; font-weight: 800; }
.ic-was { color: var(--dim); font-size: 12px; margin-right: 6px; text-decoration-thickness: 2px; text-decoration-color: #ff4f8b; }
.ic-price { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.confirm > .buy-dlg { width: min(580px, calc(100vw - 24px)); max-width: none; max-height: calc(100% - 24px); overflow-y: auto; }
.buy-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; align-items: start; }
.buy-prev .item-card, .buy-prev .item-card:hover { width: 100%; cursor: default; transform: none; }
.buy-info { display: flex; flex-direction: column; gap: 8px; }
.buy-info h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; }
.buy-info p { margin: 0; font-size: 13.5px; }
.buy-r { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #8b8f9d; }
.buy-r.r-r { color: #4cc9f0; } .buy-r.r-e { color: #b26bff; } .buy-r.r-l { color: #ffc93d; } .buy-r.r-s { color: #ff4f8b; }
.buy-rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.buy-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; font-size: 14px; border-top: 1px solid var(--line); }
.buy-row:first-child { border-top: 0; }
.buy-row.bad .gem-amt { color: #ff8a8a; }
.buy-price { display: inline-flex; align-items: center; }
.buy-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.buy-acts .btn.big { display: inline-flex; align-items: center; gap: 6px; flex: 1; justify-content: center; }
.buy-dlg.bought { animation: bought .6s ease; box-shadow: 0 0 0 2px #5be3ff, 0 0 60px rgba(91,227,255,.35); }
@keyframes bought { 30% { transform: scale(1.03); } }
@media (max-width: 520px) { .buy-body { grid-template-columns: minmax(0, 1fr); } .buy-prev { max-width: 200px; margin-inline: auto; } }

/* phones and small windows: bottom tab bar like an app */
.phone-only { display: none; }
.prof-head-acts { display: flex; flex-wrap: wrap; gap: 8px; }
body.signed .build { z-index: 41; }
@media (max-width: 880px), (max-height: 520px) { .build { display: none; } }
.set-build { margin: 4px 0 0; font-size: 12px; color: var(--dim); text-align: center; }
@media (max-width: 880px) {
  .phone-only { display: inline-flex; }
  .dp-nav button[data-dp="top"], .dp-nav button[data-dp="account"] { display: none; }
  .dp-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .dp-nav { order: 2; flex-direction: row; justify-content: space-around; gap: 0; padding: 4px 4px max(4px, env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid var(--t-line); background: rgba(0,0,0,.55); }
  .dp-nav button { flex: 1; flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 10.5px; border-radius: 8px; min-width: 0; }
  .dp-nav button span:not(.badge) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .dp-nav button[aria-selected="true"]::before { left: 25%; right: 25%; top: -4px; bottom: auto; width: auto; height: 3px; }
  .dp-nav button[data-dp="account"] { margin-top: 0; }
  .dp-nav .badge { position: absolute; top: 0; right: calc(50% - 22px); }
  .dp-search { display: none; }
  .dp-me-t { display: none; }
  .dp-me { padding: 2px; }
  .dp-top { gap: 8px; }
  .dp-user { margin-left: auto; }
  .dp-user { gap: 6px; }
  .dp-user .dp-icon { width: 34px; height: 34px; }
  .dp-actions, .dp-cols, .dp-grid3 { grid-template-columns: minmax(0, 1fr); }
  .dp-main { padding: 16px 14px 24px; }
  .locker { grid-template-columns: minmax(0, 1fr); }
  .locker-prev { position: static; }
  .dm { inset: 0; width: auto; height: auto; border-radius: 0; }
  .dp-hero { min-height: 230px; }
  .fr-list li { flex-wrap: wrap; }
  .fr-acts { flex-basis: 100%; justify-content: flex-start; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .dp-top { padding-block: 6px; } .dp-logo { font-size: 17px; }
  .dp-icon { width: 32px; height: 32px; }
  .dp-me canvas { width: 30px; height: 30px; }
  .dp-hero { min-height: 190px; } .dp-hero-txt { padding: 16px 18px; gap: 8px; }
  .dp-hero-h { font-size: 26px; }
  .dp-nav button { padding: 3px 2px; } .dp-nav svg { width: 17px; height: 17px; }
  .dp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dp-act { padding: 12px; } .dp-act strong { font-size: 15px; } .dp-act span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dashpage *, .gem-pop { animation: none !important; transition: none !important; }
}
.ic-lim { max-width: calc(100% - 74px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* daily challenge */
.daily-ch { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; background: linear-gradient(135deg, rgba(255,138,61,.14), transparent 60%), var(--t-card); }
.daily-ch h3 { margin: 2px 0 6px; font-size: 19px; }
.daily-ch .dim { margin: 0 0 12px; font-size: 13px; line-height: 1.45; }
.daily-ch .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dc-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dc-top li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; font-size: 13px; }
.dc-top li.me { outline: 1px solid var(--t-acc, #ff8a3d); }
.dc-top li.empty { display: block; color: var(--t-dim, #8c8f9d); background: none; }
.dc-top .rk { font-weight: 700; color: var(--t-dim, #8c8f9d); }
.dc-top .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-top .tv { font-variant-numeric: tabular-nums; font-weight: 600; }
.gem-btn { display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 700px) { .daily-ch { grid-template-columns: 1fr; } }

/* recent players */
.fr-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.fr-tx .dim { font-size: 12px; }
.fr-acts { display: flex; gap: 6px; margin-left: auto; flex: none; }

/* pets */
.pet-cv { display: block; margin: auto; }

/* season pass */
.sp-body { display: flex; flex-direction: column; gap: 14px; }
.sp-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--t-line); background: linear-gradient(120deg, rgba(90,160,255,.16), transparent 55%), var(--t-card); }
.sp-prog { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px; }
.sp-tier { width: 58px; height: 58px; flex: none; display: grid; place-items: center; font: 700 28px var(--display); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6fb2ff, #1f4f9a); color: #fff; box-shadow: 0 0 0 3px rgba(111,178,255,.25); }
.sp-pt { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.sp-pt .dim { font-size: 12.5px; }
.sp-left { font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.07); }
.sp-prem { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255,211,77,.35); background: linear-gradient(120deg, rgba(255,211,77,.16), rgba(255,138,61,.06) 60%, transparent), var(--t-card); }
.sp-prem > div { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 220px; }
.sp-prem strong { font-size: 17px; color: #ffd34d; }
.sp-prem .dim { font-size: 13px; line-height: 1.45; }
.btn.poor { opacity: .75; }
.sp-track { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 12px; scroll-behavior: smooth; scrollbar-width: thin; }
.sp-col { flex: none; width: 92px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.sp-col.sp-lab { position: sticky; left: 0; z-index: 2; padding-right: 4px; }
.sp-lab span { display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.sp-tn { height: 26px; display: grid; place-items: center; font-weight: 800; font-size: 13px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--dim); }
.sp-col.done .sp-tn { background: rgba(111,178,255,.22); color: #cfe4ff; }
.sp-col.next .sp-tn { outline: 2px solid #6fb2ff; color: #fff; }
.sp-cell { position: relative; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--t-line); background: var(--t-card); color: var(--text); font: 600 12px var(--body); cursor: default; }
.sp-cell .sp-ic { height: 50px; display: grid; place-items: center; }
.sp-cell .sp-n { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-cell .sp-ttl { font-size: 11px; font-style: italic; text-align: center; line-height: 1.2; }
.sp-cell.r-r { border-color: rgba(90,180,255,.45); } .sp-cell.r-e { border-color: rgba(176,122,216,.55); } .sp-cell.r-l { border-color: rgba(255,211,77,.6); }
.sp-cell.ready { cursor: pointer; border-color: #43d17a; box-shadow: 0 0 0 2px rgba(67,209,122,.25), 0 0 18px rgba(67,209,122,.25); animation: spReady 1.6s ease-in-out infinite; }
.sp-cell.ready:hover { background: rgba(67,209,122,.12); }
.sp-cell.got { opacity: .55; }
.sp-cell.lock, .sp-cell.future { opacity: .7; }
.sp-cell.lock { filter: grayscale(.6); }
.sp-st { position: absolute; top: 4px; right: 6px; font-size: 12px; }
@keyframes spReady { 50% { box-shadow: 0 0 0 2px rgba(67,209,122,.4), 0 0 26px rgba(67,209,122,.4); } }
@media (prefers-reduced-motion: reduce) { .sp-cell.ready { animation: none; } }
@media (max-width: 600px) { .sp-col { width: 78px; } .sp-cell { height: 96px; } }

/* notifications */
.dp-icon { position: relative; }
.dp-icon .badge { position: absolute; top: -3px; right: -3px; }
.bell-pop { position: fixed; top: 60px; right: 16px; width: min(360px, calc(100vw - 32px)); max-height: min(70vh, 520px); display: flex; flex-direction: column; border-radius: 14px; border: 1px solid var(--t-line); background: #17181a; box-shadow: 0 20px 50px rgba(0,0,0,.5); z-index: 60; overflow: hidden; }
.bell-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--t-line); }
.bell-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.bell-list li.empty { padding: 18px; text-align: center; color: var(--dim); font-size: 13px; }
.bell-row { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text); font: 500 13px var(--body); cursor: pointer; }
.bell-row:hover { background: rgba(255,255,255,.05); }
.bell-list li.new .bell-row { background: rgba(255,138,61,.08); }
.bell-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.07); font-size: 13px; }
.bell-row div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bell-row span { color: #bfc1c8; font-size: 12.5px; overflow-wrap: anywhere; }
.bell-row small { color: var(--dim); font-size: 11px; }
@media (max-width: 880px) { .dp-nav button[data-dp="season"] { display: none; } .bell-pop { top: 56px; right: 8px; } } /* build 67: friends in the phone bar (season is on the home page and in quests) */
@media (max-width: 400px) {
  #dp-daily { display: none; }
  .dp-logo { font-size: 18px; }
  .dp-top { padding-inline: 10px; }
  .dp-gems { padding-inline: 8px; }
}

/* profile banners */
.prof-banner { position: relative; overflow: hidden; }
.prof-banner > :not(.ban-bg) { position: relative; z-index: 1; }
.ban-bg { position: absolute; inset: 0; z-index: 0; }
.ban-bg, .ban-prev { background: linear-gradient(135deg, var(--b1), var(--b2)); }
.ban-prev { width: 100%; height: 70px; border-radius: 10px; }
.ban-pines { background-image: linear-gradient(135deg, var(--b1), var(--b2)), radial-gradient(circle at 20% 120%, rgba(0,0,0,.35) 0 30%, transparent 31%); background-blend-mode: normal; }
.ban-pines::after, .ban-drips::after, .ban-flakes::after, .ban-flames::after, .ban-grid::after, .ban-rays::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.ban-prev { position: relative; overflow: hidden; }
.ban-pines::after { background: repeating-linear-gradient(60deg, transparent 0 22px, rgba(0,0,0,.18) 22px 26px), repeating-linear-gradient(-60deg, transparent 0 22px, rgba(0,0,0,.18) 22px 26px); }
.ban-drips::after { background: repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 6px, transparent 6px 30px); mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); }
.ban-flakes::after { background-image: radial-gradient(rgba(255,255,255,.55) 1.2px, transparent 1.6px), radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px); background-size: 26px 26px, 17px 17px; background-position: 0 0, 9px 11px; }
.ban-flames::after { background: radial-gradient(40px 60px at 15% 110%, rgba(255,210,90,.45), transparent), radial-gradient(50px 70px at 45% 115%, rgba(255,150,60,.4), transparent), radial-gradient(40px 60px at 80% 110%, rgba(255,210,90,.45), transparent); }
.ban-grid::after { background-image: linear-gradient(rgba(61,242,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(61,242,255,.25) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(0deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(0deg, #000, transparent 80%); }
.ban-rays::after { background: repeating-conic-gradient(from 0deg at 15% 50%, rgba(255,255,255,.14) 0 8deg, transparent 8deg 20deg); }
.ban-bg::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.1)); }
.prof-bio { margin: 6px 0 0; font-size: 14px; line-height: 1.45; max-width: 520px; overflow-wrap: anywhere; color: #e9e3d3; }
.prof-show { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.show-ach { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid rgba(255,211,77,.35); background: rgba(255,211,77,.08); font-size: 13px; }
.show-ach .ach-ic { color: #ffd34d; }
.show-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.show-pick .chip-opt { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--t-line); background: rgba(255,255,255,.04); color: var(--text); font: 600 13px var(--body); cursor: pointer; }
.show-pick .chip-opt[aria-pressed="true"] { border-color: #ffd34d; background: rgba(255,211,77,.14); }
.bio-in { width: 100%; resize: vertical; min-height: 54px; font: 14px var(--body); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--t-line); background: rgba(0,0,0,.25); color: var(--text); }

.self-start { align-self: flex-start; }
/* build 33: hero buttons in a tidy grid, and the "what's on" card */
.dp-hero-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.dp-hero-acts .play-btn { grid-column: 1 / -1; }
.dp-whatsnew { gap: 14px; }
.wn-live { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.wn-ev { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--t-line); background: rgba(255,255,255,.03); }
.wn-ev strong { font-size: 14px; } .wn-t { font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }
.wn-ev.gem { border-color: rgba(91,227,255,.35); } .wn-ev.sale { border-color: rgba(255,107,44,.4); } .wn-ev.on strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #43d17a; margin-right: 7px; vertical-align: 1px; }
.wn-ev.none { color: var(--dim); }
.wn-new { display: flex; flex-direction: column; gap: 6px; }
.wn-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--dim); }
.ic-prev { grid-template-columns: minmax(0, 1fr); width: 100%; }
.ic-prev > .ban-prev { justify-self: stretch; width: auto; min-width: 120px; height: 72px; }
.q-headx { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }


.streak-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sc-d { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 8px; border: 1px solid var(--t-line); background: rgba(255,255,255,.02); font-size: 11px; min-width: 0; }
.sc-d .sc-n { color: var(--dim); font-size: 10px; white-space: nowrap; } .sc-d b { font-size: 12px; }
.sc-d.got { background: rgba(91,227,255,.1); border-color: rgba(91,227,255,.35); opacity: .75; }
.sc-d.now { border-color: var(--t-a); box-shadow: 0 0 0 1px var(--t-a) inset; }
.sc-d.big { background: linear-gradient(180deg, rgba(255,211,77,.14), transparent); }

/* season track: arrows, faded edges, no browser scrollbar */
.sp-wrap { position: relative; }
.sx { scrollbar-width: none; scroll-behavior: smooth; cursor: grab; }
.sx::-webkit-scrollbar { display: none; }
.sx.drag { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.sp-wrap::after { content: ''; position: absolute; top: 0; right: 0; bottom: 6px; width: 56px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--t-bg, #101012)); transition: opacity .2s; }
.sp-wrap.at-r::after { opacity: 0; }
.sp-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--t-line); background: rgba(15,15,17,.92); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.45); transition: opacity .2s, background .15s; }
.sp-arrow:hover { background: rgba(35,36,41,.95); }
.sp-arrow.l { left: 6px; } .sp-arrow.r { right: 6px; }
.sp-wrap.at-l .sp-arrow.l, .sp-wrap.at-r .sp-arrow.r { opacity: 0; pointer-events: none; }
@media (hover: none) { .sp-arrow { width: 32px; height: 32px; font-size: 18px; } }
.sp-col.sp-lab { background: #121214; box-shadow: -10px 0 0 #121214, 10px 0 0 #121214; z-index: 4; }

/* sliding tab rows */
.seg-wrap { margin: 0; }
.seg-wrap::after { bottom: 0; width: 44px; border-radius: 0 12px 12px 0; }
.seg-wrap .sp-arrow { width: 30px; height: 30px; font-size: 18px; }
.seg-wrap .sp-arrow.l { left: 4px; } .seg-wrap .sp-arrow.r { right: 4px; }
.seg-wrap .seg-tabs { scroll-snap-type: x proximity; }
.seg-wrap .seg-tabs button { scroll-snap-align: start; }
@media (hover: none) { .seg-wrap .sp-arrow { display: none; } }

/* trying on a theme */
.thm-pv { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 12px; width: min(520px, calc(100vw - 24px));
  padding: 10px 12px; border-radius: 16px; border: 1px solid var(--t-a); background: color-mix(in srgb, var(--t-bg, #101012) 92%, transparent); box-shadow: 0 14px 40px rgba(0,0,0,.5), 0 0 0 4px color-mix(in srgb, var(--t-a) 18%, transparent); animation: pvIn .3s cubic-bezier(.2,.8,.2,1) both; }
.thm-pv[hidden] { display: none; }
@keyframes pvIn { from { opacity: 0; transform: translate(-50%, 14px); } }
.thm-pv-sw { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.thm-pv-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.thm-pv-t strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thm-pv-a { display: flex; gap: 6px; flex: none; }
@media (min-width: 900px) { .thm-pv { bottom: 22px; } }
.thm-pv-sw::after { left: 8px; bottom: 8px; width: 20px; height: 5px; box-shadow: none; }
.dp-legal { justify-content: flex-start; font-size: 14px; gap: 6px 16px; }

/* refreshing a page in place: no entrance animations */
.soft, .soft * { animation: none !important; }

/* PvP league card */
.pv-rank { display: flex; gap: 14px; align-items: center; }
.pv-badge { flex: 0 0 auto; width: 74px; height: 74px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--lc) 45%, transparent), rgba(0,0,0,.35)); border: 2px solid var(--lc); box-shadow: 0 0 18px color-mix(in srgb, var(--lc) 35%, transparent); }
.pv-badge strong { font: 700 15px/1 var(--display, 'Montserrat', sans-serif); color: #fff; }
.pv-badge span { font-weight: 700; color: var(--lc); margin-top: 3px; }
.pv-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
/* clans, badges, class levels */
.clan-t.big { font-size: 15px; }
.clan-head .clan-title { display: flex; gap: 10px; align-items: baseline; }
.clan-head .clan-title strong { font: 700 24px/1.2 var(--display, 'Montserrat', sans-serif); }
.clan-meta { color: var(--dim, #9598a5); font-size: 13px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.clan-form, .clan-inv { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.clan-form input, .clan-inv input, .clan-wrap textarea, .clan-wrap input[placeholder] { flex: 1; min-width: 140px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.25); color: inherit; font: inherit; }
.clan-wrap textarea { width: 100%; resize: vertical; margin-bottom: 6px; }
.clan-mem, .clan-req { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.clan-mem li, .clan-req li, .clan-invrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.clan-mem li .top-row { flex: 1; min-width: 220px; }
.clan-mem li.on .tv { color: #7ee08a; }
.role { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); }
.role.r-l { background: rgba(255,210,63,.18); color: #ffd23f; } .role.r-o { background: rgba(76,201,240,.16); color: #8fdcff; }
.cl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.bdg { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); opacity: .45; filter: grayscale(1); }
.bdg.on { opacity: 1; filter: none; border-color: rgba(255,210,63,.35); background: rgba(255,210,63,.06); }
.bdg .bi { font-size: 22px; } .bdg small { color: var(--dim, #9598a5); font-size: 11.5px; }
.cls-chip .cl-lv { font-size: 11px; font-weight: 700; color: #ffd23f; }
.cl-bar { width: 80%; height: 4px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; } .cl-bar i { display: block; height: 100%; background: #ffd23f; }
.voice-open { display: flex; justify-content: flex-start; align-items: center; gap: 8px; text-align: left; margin: 6px 0; }
.voice-open input[type="checkbox"] { width: 42px; height: 24px; flex: 0 0 auto; margin: 0; min-height: 0; padding: 0; order: 2; }
.voice-open span { flex: 1; }
@media (max-width: 480px) { .dp-nav button span { font-size: 10px; letter-spacing: -.1px; white-space: nowrap; } .dp-nav button { padding-left: 2px; padding-right: 2px; min-width: 0; } }
/* season pass: the row names on the left of the track */
.sp-col.sp-lab { width: 86px; gap: 8px; }
.sp-tn.sp-tn-l { background: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.sp-rl { position: relative; height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px 4px; border-radius: 12px; text-align: center; overflow: hidden; border: 1px solid var(--t-line); }
.sp-rl::before { content: ''; position: absolute; inset: 0; opacity: .9; pointer-events: none; }
.sp-rl > * { position: relative; }
.sp-rl-ic { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
.sp-rl-ic svg { width: 20px; height: 20px; fill: currentColor; }
.sp-rl strong { font-size: 13px; line-height: 1.1; }
.sp-rl small { font-size: 10px; font-weight: 700; letter-spacing: .04em; opacity: .85; }
.sp-rl.free { color: #d9f5e3; border-color: rgba(67,209,122,.35); }
.sp-rl.free::before { background: linear-gradient(160deg, rgba(67,209,122,.22), rgba(67,209,122,.04) 70%); }
.sp-rl.free .sp-rl-ic { background: rgba(67,209,122,.2); color: #6fe39b; box-shadow: 0 0 0 1px rgba(67,209,122,.35); }
.sp-rl.prem { color: #ffe9a6; border-color: rgba(255,211,77,.45); }
.sp-rl.prem::before { background: linear-gradient(160deg, rgba(255,211,77,.28), rgba(255,140,40,.06) 75%); }
.sp-rl.prem .sp-rl-ic { background: linear-gradient(145deg, #ffe08a, #f0a92b); color: #3a2604; box-shadow: 0 2px 10px rgba(255,190,60,.45); }
.sp-rl.prem:not(.on) small::before { content: '🔒 '; }
.sp-rl.prem.on { box-shadow: 0 0 0 1px rgba(255,211,77,.35), 0 0 18px rgba(255,190,60,.18); }
.sp-rl.prem.on small { color: #8ff0b4; }
@media (max-width: 600px) { .sp-col.sp-lab { width: 68px; } .sp-rl small { font-size: 9px; white-space: nowrap; } .sp-rl { height: 96px; padding: 6px 2px; } .sp-rl-ic { width: 28px; height: 28px; } .sp-rl-ic svg { width: 16px; height: 16px; } .sp-rl strong { font-size: 12px; } }
.sp-wrap:has(.sp-track) .sp-arrow.l { left: 104px; }
@media (max-width: 600px) { .sp-wrap:has(.sp-track) .sp-arrow.l { left: 80px; } }
/* notification choices: quiet hours */
.qh-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; }
.qh-sel { appearance: none; -webkit-appearance: none; padding: 8px 30px 8px 12px; border-radius: 10px; border: 1px solid var(--t-line); background: var(--t-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--text); font: inherit; font-weight: 600; min-height: 40px; }
.qh-sel:disabled { opacity: .45; }
/* build 66: two shop cards side by side on phones, like an app store */
@media (max-width: 560px) { .item-grid, .item-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .item-grid .item-card { padding: 12px 10px; } }
/* ===== build 67: the signed-in home ===== */
.home-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 2px -4px; }
.home-h h3 { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: 0; text-transform: none; }
.home-fr-sec { display: flex; flex-direction: column; gap: 10px; }
.fr-strip.big { gap: 16px; padding: 4px 2px 6px; }
.fr-strip.big .fr-dot { width: 82px; }
.fr-strip.big .fr-dot canvas, .fr-strip.big .fr-dot .plus { width: 68px; height: 68px; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.fr-strip.big .fr-dot canvas { background: linear-gradient(160deg, #575964, #303237); border: 3px solid rgba(150,140,255,.35); }
.fr-strip.big .fr-dot.on canvas { border-color: #34d97a; }
.fr-strip.big .fr-dot .plus { border: 3px dashed rgba(150,140,255,.45); background: rgba(150,140,255,.08); font-size: 30px; }
.dp-hero { min-height: 220px; border-radius: 26px; border: 1px solid rgba(150,140,255,.2); box-shadow: 0 18px 50px rgba(5,6,25,.55); }
.mode-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.mode-tile { appearance: none; position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; color: #fff; background: #303237; box-shadow: 0 12px 30px rgba(5,6,25,.5), inset 0 -4px 0 rgba(0,0,0,.25); transition: transform .15s, box-shadow .15s; }
.mode-tile:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 18px 40px rgba(5,6,25,.6), inset 0 -4px 0 rgba(0,0,0,.25); }
.mode-tile:active { transform: translateY(1px); }
.mode-tile .mt-art { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.mode-tile .mt-cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.mode-tile .mt-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, var(--mt1), var(--mt2)); opacity: .78; mix-blend-mode: normal; }
.mode-tile .mt-ic { position: absolute; z-index: 1; right: 12px; bottom: 8px; font-size: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.4)); }
.mode-tile .mt-tx { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; background: linear-gradient(180deg, var(--mt2), color-mix(in srgb, var(--mt2) 70%, #000)); }
.mode-tile .mt-tx strong { font-family: var(--display); font-weight: 800; font-size: 19px; }
.mode-tile .mt-tx span { font-size: 13px; opacity: .9; font-weight: 700; }
.mode-tile.m-green { --mt1: rgba(110,240,170,.5); --mt2: #169a52; }
.mode-tile.m-purple { --mt1: rgba(190,150,255,.5); --mt2: #6a3fd6; }
.mode-tile.m-teal { --mt1: rgba(110,240,230,.5); --mt2: #0f8f86; }
.mode-tile.m-orange { --mt1: rgba(255,190,120,.5); --mt2: #d9561a; }
.mode-tile.m-gold { --mt1: rgba(255,230,140,.55); --mt2: #b9880c; }
@media (max-width: 560px) { .mode-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mode-tile .mt-tx strong { font-size: 16px; } .mode-tile .mt-tx span { font-size: 11.5px; } .mode-tile .mt-ic { font-size: 32px; } .fr-strip.big .fr-dot { width: 70px; } .fr-strip.big .fr-dot canvas, .fr-strip.big .fr-dot .plus { width: 58px; height: 58px; } .dp-hero { min-height: 170px; } }
@media (prefers-reduced-motion: reduce) { .mode-tile { transition: none; } }
/* build 67: the hero gets colour, the selected menu item a clean highlight; phones get an app-style bottom bar */
.dp-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(100deg, rgba(76,60,190,.85), rgba(64,66,73,.55) 45%, rgba(18,18,20,0) 75%); }
.dp-hero-txt { z-index: 2; }
.dp-nav button[aria-selected="true"]::before { display: none; }
.dp-logo { background: linear-gradient(90deg, #fff, #ffb36b 55%, #ff6b2c); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.dp-top { background: linear-gradient(180deg, rgba(48,49,55,.85), rgba(28,29,33,.7)); border-bottom-color: rgba(150,140,255,.16); }
@media (max-width: 880px) {
  .dp-nav { background: linear-gradient(180deg, rgba(40,41,46,.92), rgba(24,25,27,.98)); border-top-color: rgba(150,140,255,.18); }
  .dp-nav button[aria-selected="true"] { background: none; box-shadow: none; color: #fff; }
  .dp-nav button[aria-selected="true"] svg { fill: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--t-a) 85%, #fff), var(--t-a)); border-radius: 999px; padding: 4px 16px; box-sizing: content-box; box-shadow: 0 4px 12px var(--t-glow); }
  .dp-nav button svg { padding: 4px 16px; box-sizing: content-box; }
}

/* ===== build 67: the luck wheel ===== */
/* home card: a small turning wheel and one button */
.spin-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: center; }
.spin-card .wheel { width: 132px; height: 132px; display: block; cursor: pointer; animation: spinIdle 40s linear infinite; }
.spin-card.ready .wheel { animation-duration: 12s; }
.spin-t { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.spin-t h3 { margin: 0; font-family: var(--display); font-size: 19px; text-transform: none; letter-spacing: 0; }
.spin-t .dim { margin: 0 0 4px; font-size: 13px; line-height: 1.45; }
@keyframes spinIdle { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .spin-card { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; } .spin-card .wheel { width: 96px; height: 96px; } .spin-t h3 { font-size: 16px; } }
/* the wheel's own screen */
body.spin-open { overflow: hidden; }
.spin-scr {
  position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; color: var(--text);
  padding: max(10px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: var(--sky) repeat-x left bottom / 600px 140px, var(--pat), var(--bg); overflow-y: auto; overscroll-behavior: contain;
  animation: spinScrIn .22s ease-out;
}
.spin-scr.out { opacity: 0; transform: scale(.98); transition: opacity .18s, transform .18s; }
@keyframes spinScrIn { from { opacity: 0; transform: scale(1.02); } }
.spin-top { width: min(560px, 100%); display: flex; align-items: center; gap: 10px; padding: 6px 0 4px; }
.spin-h { margin: 0; font-family: var(--display); font-weight: 800; font-size: 24px; flex: 1; }
.spin-chip { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--accent); font-weight: 800; font-size: 13px; white-space: nowrap; }
.spin-x { appearance: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--text); font-size: 18px; cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.spin-x:active { transform: scale(.94); }
.spin-stage { --ws: 360px; position: relative; width: var(--ws); height: var(--ws); margin: auto 0 0; flex: none; }
.spin-wheel { width: 100%; height: 100%; display: block; border-radius: 50%; box-shadow: 0 0 0 6px var(--panel), 0 18px 50px rgba(0,0,0,.5); }
.spin-ptr { position: absolute; left: 50%; top: -14px; width: 34px; height: 44px; margin-left: -17px; transform-origin: 50% 20%; z-index: 2;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 45%, 50% 100%, 0 45%); filter: drop-shadow(0 3px 0 rgba(0,0,0,.35)); }
.spin-ptr.tick { animation: ptrTick .12s ease-out; }
@keyframes ptrTick { 40% { transform: rotate(-16deg); } }
.spin-hub { appearance: none; position: absolute; left: 50%; top: 50%; width: 27%; height: 27%; transform: translate(-50%, -50%); border-radius: 50%; border: 5px solid var(--panel); background: var(--accent); color: var(--accent-ink);
  font: 900 clamp(13px, calc(var(--ws) / 22), 22px) var(--display); letter-spacing: .04em; cursor: pointer; box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), 0 6px 18px rgba(0,0,0,.4); transition: transform .1s; z-index: 2; }
.spin-hub:active:not(:disabled) { transform: translate(-50%, -50%) scale(.94); }
.spin-hub:disabled { cursor: default; filter: saturate(.6); }
.spin-foot { width: min(560px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 22px 0 auto; }
.spin-foot > .btn { width: min(360px, 100%); font-size: 18px; }
.spin-note { margin: 0; font-size: 13px; text-align: center; }
.spin-prizes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 2px 0 0; }
.sp-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--panel); border: 0; box-shadow: inset 0 -3px 0 var(--sc, var(--line)); font-size: 13px; }
.sp-chip i { font-style: normal; }
.spin-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }
.spin-res { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); animation: spinScrIn .2s ease-out; }
.spin-box { width: min(340px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 24px 22px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.spin-ic { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; align-content: center; gap: 4px; background: var(--panel-2); box-shadow: inset 0 -5px 0 rgba(0,0,0,.25); animation: spinPop .5s cubic-bezier(.2,1.5,.4,1); }
.spin-ic i { font-style: normal; font-size: 40px; line-height: 1; }
.spin-ic b { font: 800 22px var(--display); }
.spin-ic.gem { background: color-mix(in srgb, #5be3ff 18%, var(--panel-2)); } .spin-ic.xp { background: color-mix(in srgb, #ffd34d 18%, var(--panel-2)); } .spin-ic.item { background: color-mix(in srgb, #c084fc 20%, var(--panel-2)); }
.spin-it { font: 700 14px var(--display); padding: 0 8px; }
.spin-box h3 { margin: 0; font-family: var(--display); font-size: 20px; text-transform: none; letter-spacing: 0; }
.spin-bal { display: inline-flex; align-items: center; gap: 5px; margin: 0; color: var(--dim); }
.spin-acts { justify-content: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
@keyframes spinPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
/* phones held sideways: wheel on the left, buttons on the right */
@media (max-height: 520px) and (orientation: landscape) {
  .spin-scr { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 24px; align-items: center; justify-items: center; }
  .spin-top { grid-column: 1 / -1; width: 100%; }
  .spin-stage { margin: 0; grid-row: 2; }
  .spin-foot { margin: 0; grid-row: 2; grid-column: 2; }
  .spin-prizes { display: none; }
  .spin-h { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .spin-card .wheel, .spin-scr, .spin-ic, .spin-ptr.tick, .spin-res { animation: none; } }
.spin-gems { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, #5be3ff 14%, var(--panel-2)); color: #c9f6ff; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .spin-h { font-size: 20px; } .spin-chip { display: none; } }
/* build 68: group chats */
.grp-av { display: flex; flex: none; width: 52px; }
.grp-av canvas { width: 28px; height: 28px; border-radius: 50%; margin-left: -10px; box-shadow: 0 0 0 2px var(--panel); background: var(--panel-2); }
.grp-av canvas:first-child { margin-left: 0; }
.grp-row { cursor: pointer; border-radius: 12px; }
.grp-row .fr-tx strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-row .fr-tx .dim { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: hover) { .grp-row:hover { background: var(--panel-2); } }
.dm-n { display: block; font-size: 11.5px; font-weight: 800; color: var(--accent); margin-bottom: 1px; }
.dm-sys { align-self: center; margin: 4px 0; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); color: var(--dim); font-size: 12px; text-align: center; }
.grp-new { display: flex; flex-direction: column; gap: 10px; }
.grp-pick { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 40vh; overflow-y: auto; }
.grp-pick li, .grp-pick label { display: flex; align-items: center; gap: 10px; }
.grp-pick label { flex: 1; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.grp-pick label:hover { background: var(--panel-2); }
.grp-pick input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.grp-pick canvas { width: 28px; height: 28px; flex: none; }
.grp-add { width: 100%; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg); color: var(--text); font: 600 15px var(--body); }
.grp-dlg .confirm-card { max-width: 420px; }
.grp-dlg .row { justify-content: space-between; }
/* build 68: clan invites with a clear state */
.clan-inv { display: flex; gap: 8px; align-items: center; }
.clan-inv input { flex: 1; min-width: 0; }
.clan-fr, .clan-pend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.clan-fr li { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 10px; }
.clan-fr li .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clan-fr canvas { width: 28px; height: 28px; flex: none; }
.clan-pend li { font-size: 13px; color: var(--dim); }

/* build 73: the row a badge points at */
.fr-list li.unread { box-shadow: inset 3px 0 0 var(--accent); background: rgba(255,255,255,.05); }
.seg-tabs .badge { margin-left: 6px; }

/* ---------- build 75: class mastery ---------- */
button.cls-chip { font: inherit; color: inherit; cursor: pointer; }
.cls-chip.sel { outline: 2px solid var(--accent, #ff6b2c); outline-offset: 1px; }
.cl-mast { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; color: #ffd34d; }
.cl-mast .ic { width: 12px; height: 12px; }
.cl-mast.full { color: #1a1204; background: #ffd34d; padding: 1px 6px; border-radius: 999px; }
.mast-det { margin-top: 12px; }
.mast-box { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,211,77,.3); }
.mast-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mast-h .ic { width: 18px; height: 18px; color: #ffd34d; }
.mast-h strong { flex: 1; }
.mast-h span { font-weight: 800; color: #ffd34d; }
.mast-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mast-list li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; }
.mast-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; grid-column: 1; }
.mast-top b { font-variant-numeric: tabular-nums; color: var(--dim, #9a9ca5); font-weight: 700; }
.mast-bar { grid-column: 1; height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.mast-bar i { display: block; height: 100%; background: #ffd34d; }
.mast-gem { grid-column: 2; grid-row: 1 / span 2; display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: 13px; }
.mast-list li.ok .mast-top b { color: #43d17a; }
.mast-list li.ok .mast-bar i { background: #43d17a; }
.mast-list li.ok .mast-gem { opacity: .5; }
.mast-rw { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.mast-rw .ic { width: 15px; height: 15px; color: #ffd34d; flex: none; }
/* build 75.1: what kind of item a season reward is */
.sp-cat { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: .65; line-height: 1.1; }

/* ---------- build 76: on a PC the pages fill the whole screen (same numbers as deskWide() in dash.js) ---------- */
@media (min-width: 1100px) and (min-height: 560px) {
  .dp-main { padding: 18px 24px 20px; }
  .dp-main:has(.dp-sec.dk) { overflow: hidden; }
  #dp-page { max-width: none; height: 100%; }
  .dp-sec.dk { height: 100%; min-height: 0; gap: 14px; }
  .dp-sec.dk > * { flex: none; }
  .dp-sec.dk > .dk-cols { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: repeat(var(--dk-n, 2), minmax(0, 1fr)); gap: 16px; }
  .dp-sec.dk > .dk-cols.dk-home { grid-template-columns: minmax(0, 1.35fr) repeat(calc(var(--dk-n, 2) - 1), minmax(0, 1fr)); }
  .dk-col { min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 14px; padding: 0 4px 4px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
  .dk-col > * { flex: none; }
  /* the home page's left column: a shorter hero and the ways to play three to a row */
  .dk-col .dp-hero { min-height: 200px; }
  .dk-col .dp-hero-txt { padding: 20px 24px; gap: 10px; max-width: 62%; }
  .dk-col .dp-hero-h { font-size: clamp(26px, 2.2vw, 36px); }
  .dk-col .mode-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dk-col .mode-tile { border-radius: 18px; }
  .dk-col .mode-tile .mt-art { aspect-ratio: 16 / 6; }
  .dk-col .mode-tile .mt-tx { padding: 9px 12px 11px; }
  .dk-col .mode-tile .mt-tx strong { font-size: 16px; }
  .dk-col .mode-tile .mt-tx span { font-size: 12px; }
  /* the season page: progress and the premium card side by side, the reward track across the whole width */
  .dp-sec.dk .sp-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
  .dp-sec.dk .sp-body > .sp-wrap, .dp-sec.dk .sp-body > .note, .dp-sec.dk .sp-body:not(:has(> .sp-prem)) > .sp-top { grid-column: 1 / -1; }
  /* pages that are one big list: the list takes the rest of the screen and scrolls inside its box */
  .dp-sec.dk-fill { overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
  .dp-sec.dk-fill > .dk-grow { flex: 1 1 0; min-height: 0; align-content: start; grid-auto-rows: max-content; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; padding-right: 4px; }
}
