
:root{
  --bg:#1f2328;
  --surface:#282d33;
  --surface-2:#30363d;
  --surface-3:#363d45;
  --border:#3c434b;
  --border-soft:#343a41;
  --text:#f4f5f6;
  --muted:#a6adb5;
  --muted-2:#7f8790;
  --blue:#00a2ff;
  --blue-hover:#149ee6;
  --green:#57b982;
  --red:#e06464;
  --yellow:#d3aa4a;
  --max:1180px;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
button,input,textarea,select{font:inherit}
button,a{ -webkit-tap-highlight-color:transparent }
button{cursor:pointer}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
[hidden]{display:none!important}

.container{width:min(var(--max),calc(100% - 32px));margin:0 auto}

/* top navigation */
.topbar{
  height:64px;
  border-bottom:1px solid var(--border);
  background:var(--bg);
  position:sticky;
  top:0;
  z-index:60;
}
.topbar-inner{
  height:100%;
  display:flex;
  align-items:center;
  gap:26px;
}
.brand{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:16px;
  font-weight:800;
  flex:0 0 auto;
}
.brand-logo{
  width:34px;height:34px;
  display:grid;place-items:center;
  overflow:hidden;
  border-radius:7px;
  padding:5px;
  background:#fff;
}
.brand-logo img{width:100%;height:100%;object-fit:contain}

.main-nav{display:flex;align-items:stretch;height:100%;gap:2px}
.main-nav a{
  height:100%;
  display:flex;
  align-items:center;
  padding:0 13px;
  color:#bcc2c9;
  font-size:14px;
  font-weight:650;
  position:relative;
}
.main-nav a:hover{color:#fff;background:rgba(255,255,255,.025)}
.main-nav a.active{color:#fff}
.main-nav a.active::after{
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:0;
  height:3px;
  border-radius:2px 2px 0 0;
  background:var(--blue);
}

.nav-spacer{flex:1}
.nav-account{position:relative}
.account-button{
  border:0;
  background:transparent;
  color:#fff;
  padding:7px 8px;
  border-radius:7px;
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:700;
  max-width:200px;
}
.account-button:hover,.account-button.open{background:var(--surface)}
.nav-avatar,.avatar{
  overflow:hidden;
  display:grid;
  place-items:center;
  color:white;
  background:#3b82c4;
  font-weight:800;
  flex:0 0 auto;
}
.nav-avatar{width:30px;height:30px;border-radius:50%;font-size:12px}
.nav-avatar img,.avatar img{width:100%;height:100%;object-fit:cover}
.account-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:13px;
}
.chevron{color:#848d96;font-size:11px}

.account-dropdown{
  position:absolute;
  top:45px;right:0;
  width:240px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:9px;
  box-shadow:0 14px 34px rgba(0,0,0,.28);
  padding:7px;
}
.account-dropdown-header{
  display:flex;align-items:center;gap:10px;
  padding:10px 9px 12px;
  border-bottom:1px solid var(--border-soft);
  margin-bottom:5px;
}
.dropdown-avatar{width:38px;height:38px;border-radius:50%}
.account-dropdown-header strong{font-size:13px;display:block}
.account-dropdown-header span{font-size:11px;color:var(--muted);display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px}
.account-dropdown a,.account-dropdown button{
  width:100%;
  border:0;
  background:transparent;
  color:#e6e8eb;
  text-align:left;
  padding:10px 10px;
  border-radius:6px;
  font-size:13px;
  display:flex;justify-content:space-between;align-items:center;
}
.account-dropdown a:hover,.account-dropdown button:hover{background:var(--surface-2)}
.account-dropdown .danger{color:#ef8e8e}
.account-dropdown hr{border:0;border-top:1px solid var(--border-soft);margin:5px 0}
.account-dropdown small{color:var(--muted-2)}

.mobile-toggle{display:none;border:0;background:transparent;color:#fff;font-size:21px}
.mobile-nav{display:none}

/* reusable layout */
.page{padding:42px 0 64px}
.page-narrow{max-width:880px;margin:0 auto}
.page-heading{margin-bottom:28px}
.page-heading h1{margin:0;font-size:36px;letter-spacing:-.035em}
.page-heading p{margin:9px 0 0;color:var(--muted);font-size:15px;line-height:1.55;max-width:700px}
.eyebrow{color:var(--muted);font-size:12px;font-weight:700;margin-bottom:7px}

.panel{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
}
.panel-pad{padding:20px}
.section-title{margin:0 0 12px;font-size:16px}
.divider{height:1px;background:var(--border-soft);margin:18px 0}

.button{
  border:0;border-radius:7px;padding:10px 15px;
  font-weight:700;font-size:14px;
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
}
.button-primary{background:var(--blue);color:white}
.button-primary:hover{background:var(--blue-hover)}
.button-secondary{background:var(--surface-2);color:white;border:1px solid var(--border)}
.button-secondary:hover{background:var(--surface-3)}
.button-quiet{background:transparent;color:#d5d9dd;border:1px solid var(--border)}
.button-quiet:hover{background:var(--surface-2)}
.button-danger{background:transparent;color:#ef9696;border:1px solid #594044}
.button-danger:hover{background:#382b2e}
.button:disabled{opacity:.45;cursor:not-allowed}

.input,.textarea,.select{
  width:100%;
  background:#20252a;
  border:1px solid var(--border);
  color:#fff;
  border-radius:7px;
  outline:none;
}
.input,.select{height:42px;padding:0 11px}
.textarea{padding:11px;resize:vertical;min-height:110px;line-height:1.45}
.input:focus,.textarea:focus,.select:focus{border-color:#5e94b5;box-shadow:0 0 0 2px rgba(0,162,255,.12)}
.label{display:block;font-size:12px;color:#c8cdd2;font-weight:700;margin-bottom:7px}
.form-group{margin-bottom:14px}
.help{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.45}
.row{display:flex;gap:10px;align-items:center}
.row-wrap{display:flex;gap:9px;align-items:center;flex-wrap:wrap}

/* cards / grids */
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.stat{
  padding:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:9px;
}
.stat strong{display:block;font-size:22px}
.stat span{font-size:11px;color:var(--muted);margin-top:4px;display:block}

.list{border-top:1px solid var(--border)}
.list-row{
  min-height:74px;
  display:grid;
  align-items:center;
  border-bottom:1px solid var(--border);
  padding:10px 2px;
}
.empty{padding:24px;color:var(--muted);text-align:center}

/* game */
.game-page{max-width:920px;margin:0 auto}
.game-head{
  display:flex;justify-content:space-between;gap:20px;align-items:flex-end;
  border-bottom:1px solid var(--border);padding-bottom:18px;
}
.game-mode{display:flex;gap:8px;align-items:center}
.game-mode span{font-size:12px;color:var(--muted)}
.game-mode strong{font-size:16px}
.game-stats{display:flex;gap:24px}
.game-stats div{display:grid;gap:2px;text-align:right}
.game-stats span{font-size:10px;color:var(--muted)}
.game-stats strong{font-size:15px}
.target-wrap{padding:42px 0 30px}
.target-label{font-size:12px;color:var(--muted);margin-bottom:12px}
.target{font-size:clamp(32px,5vw,50px);line-height:1.25;letter-spacing:-.035em;font-weight:760}
.target .done{color:#747d85}
.target .current{text-decoration:underline;text-decoration-color:var(--blue);text-underline-offset:6px}
.target .future{color:#687079}
.sentence-prediction{margin-top:17px;color:#8f98a1;font-size:12px}
.arena{padding:20px}
.guess-label{font-size:12px;color:var(--muted)}
.guess-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:end}
.guess{margin-top:5px;font-size:clamp(35px,6vw,56px);font-weight:780;white-space:nowrap;overflow:hidden}
.guess-prefix{color:var(--blue);text-decoration:underline;text-underline-offset:7px}
.guess-ai{color:#89929b}
.guess-correct{color:var(--green)}
.word-count{text-align:right;color:var(--muted);font-size:11px}
.word-count strong{display:block;color:#fff;font-size:18px}
.type-line{
  display:flex;align-items:center;gap:8px;
  border-top:1px solid var(--border);
  margin-top:17px;padding-top:14px;
}
.cursor{width:7px;height:20px;background:var(--blue);border-radius:2px;animation:blink 1s infinite}
@keyframes blink{50%{opacity:.2}}
.typed{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:700}
.key-help{margin-left:auto;color:#818b94;font-size:11px}
.message{min-height:19px;margin-top:11px;color:#9fa7af;font-size:12px}
.message.good{color:#72c496}.message.bad{color:#e48787}
.progress{height:6px;background:#383e45;margin-top:17px;border-radius:999px;overflow:hidden}
.progress i{display:block;height:100%;width:0;background:var(--blue);border-radius:999px;transition:.25s}
.game-actions{
  display:flex;justify-content:space-between;gap:15px;align-items:center;
  border-bottom:1px solid var(--border);padding:17px 0;
}
.game-actions p{margin:0;color:var(--muted);font-size:12px}
.prediction-details{margin-top:12px}
.prediction-details summary{cursor:pointer;color:#929aa3;font-size:12px;padding:8px 0}
.prediction-item{display:flex;justify-content:space-between;gap:10px;padding:7px 0;color:#aab1b8;font-size:12px}
.results{
  margin-top:22px;padding:22px;
  border:1px solid var(--border);border-radius:10px;background:var(--surface)
}
.results h2{margin:0;font-size:24px}
.result-score{font-size:42px;font-weight:800;margin:8px 0}
.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.result-box{padding:12px;background:#24292f;border:1px solid var(--border);border-radius:8px;text-align:center}
.result-box strong{display:block}.result-box span{color:var(--muted);font-size:10px}

/* profile */
.profile-layout{display:grid;grid-template-columns:210px 1fr;gap:24px}
.profile-avatar-large{
  width:170px;height:170px;border-radius:12px;
  display:grid;place-items:center;font-size:56px;background:#3b82c4;color:#fff;font-weight:800;overflow:hidden
}
.profile-avatar-large img{width:100%;height:100%;object-fit:cover}
.profile-side .button{width:170px;margin-top:9px}
.badges{display:flex;gap:7px;flex-wrap:wrap}
.badge{
  width:38px;height:38px;border:1px solid var(--border);
  border-radius:8px;display:grid;place-items:center;background:#24292f
}
.tag-row{display:flex;gap:7px;flex-wrap:wrap}
.tag{
  border:1px solid var(--border);background:#24292f;color:#cfd4d9;
  border-radius:999px;padding:7px 10px;font-size:12px
}
.tag.selected{border-color:var(--blue);color:white}

/* friends */
.friend-row{grid-template-columns:minmax(0,1fr) auto}
.person{display:flex;align-items:center;gap:11px;min-width:0}
.person .avatar{width:42px;height:42px;border-radius:50%;font-size:13px}
.person-copy{min-width:0}
.person-copy strong{display:block;font-size:14px}
.person-copy span{display:block;color:var(--muted);font-size:11px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.friend-actions{display:flex;gap:7px}

/* prediction lab */
.mapping{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.mapping b{color:var(--blue)}
.suggestion-row{grid-template-columns:minmax(0,1fr) auto}
.vote{display:flex;align-items:center;gap:7px}
.vote button{width:34px;height:31px;padding:0}
.vote span{font-size:11px;color:var(--muted)}

/* account auth */
.auth-wrap{max-width:480px;margin:0 auto}
.tabs{display:flex;border-bottom:1px solid var(--border);margin-bottom:18px}
.tab{
  border:0;background:none;color:#9da5ad;padding:11px 14px;
  border-bottom:2px solid transparent;font-weight:700
}
.tab.active{color:#fff;border-bottom-color:var(--blue)}
.security-note{font-size:11px;color:#858e96;line-height:1.5;margin-top:15px}

/* switch account modal */
.modal-backdrop{
  position:fixed;inset:0;z-index:100;
  background:rgba(10,12,14,.72);
  display:grid;place-items:center;padding:18px
}
.modal{
  width:min(480px,100%);
  max-height:80vh;overflow:auto;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 18px 50px rgba(0,0,0,.35)
}
.modal-head{
  height:54px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;
  border-bottom:1px solid var(--border)
}
.modal-head h2{font-size:16px;margin:0}
.modal-close{border:0;background:none;color:#aaa;font-size:22px}
.modal-body{padding:14px}
.switch-account-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:10px;border-radius:7px
}
.switch-account-row:hover{background:var(--surface-2)}
.switch-account-row.current{background:#242c34}
.switch-left{display:flex;align-items:center;gap:10px}
.switch-left .avatar{width:38px;height:38px;border-radius:50%}
.switch-copy strong{display:block;font-size:13px}
.switch-copy span{display:block;color:var(--muted);font-size:10px;margin-top:2px}

/* toast */
.toast{
  position:fixed;left:50%;bottom:24px;z-index:150;
  transform:translate(-50%,14px);
  opacity:0;pointer-events:none;
  padding:10px 14px;border-radius:7px;
  color:white;background:#11161b;border:1px solid #3d454d;
  transition:.2s;font-size:13px
}
.toast.show{opacity:1;transform:translate(-50%,0)}

.footer{
  border-top:1px solid var(--border);
  padding:25px 0 34px;margin-top:54px;
  color:#727b84;font-size:11px
}
.footer-inner{display:flex;justify-content:space-between;gap:20px}

/* mobile */
@media(max-width:820px){
  .main-nav{display:none}
  .mobile-toggle{display:block}
  .topbar-inner{gap:12px}
  .mobile-nav{
    position:fixed;top:64px;left:0;right:0;z-index:59;
    background:var(--surface);border-bottom:1px solid var(--border);padding:7px 16px
  }
  .mobile-nav.open{display:grid}
  .mobile-nav a{padding:11px;border-radius:6px;color:#d6dade;font-size:14px}
  .mobile-nav a:hover{background:var(--surface-2)}
  .home{padding-top:52px}
  .grid-2,.grid-3{grid-template-columns:1fr}
  .profile-layout{grid-template-columns:1fr}
  .profile-side{display:grid;justify-items:start}
  .game-head{align-items:flex-start;flex-direction:column}
  .game-stats{width:100%;justify-content:space-between;gap:8px}
  .game-stats div{text-align:left}
}
@media(max-width:560px){
  .container{width:min(100% - 20px,var(--max))}
  .account-name,.chevron{display:none}
  .hero h1{font-size:42px}
  .hero p{font-size:15px}
  .game-stats{display:grid;grid-template-columns:1fr 1fr}
  .game-actions{align-items:flex-start;display:grid}
  .result-grid{grid-template-columns:1fr}
  .friend-row{grid-template-columns:1fr}
  .friend-actions{margin-left:53px}
  .footer-inner{display:grid}
}


/* user background system */
:root{
  --user-bg:#1f2328;
  --user-bg-image:none;
  --bg-dim:.64;
}
body{
  background-color:var(--user-bg);
  background-image:
    linear-gradient(rgba(15,18,22,var(--bg-dim)),rgba(15,18,22,var(--bg-dim))),
    var(--user-bg-image);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}
body.has-solid-bg{
  background-image:none;
}
body.has-photo-bg .topbar{
  background:rgba(31,35,40,.94);
}
body.has-photo-bg .footer{
  background:rgba(31,35,40,.92);
}

/* settings appearance controls */
.appearance-preview{
  height:150px;
  border:1px solid var(--border);
  border-radius:9px;
  overflow:hidden;
  position:relative;
  background-color:var(--preview-color,#1f2328);
  background-image:
    linear-gradient(rgba(15,18,22,var(--preview-dim,.64)),rgba(15,18,22,var(--preview-dim,.64))),
    var(--preview-image,none);
  background-size:cover;
  background-position:center;
}
.appearance-preview::after{
  content:"AutoType";
  position:absolute;
  left:18px;
  bottom:16px;
  color:white;
  font-size:20px;
  font-weight:800;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}
.background-choice-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.background-choice{
  border:1px solid var(--border);
  background:#24292f;
  color:#d7dce1;
  border-radius:7px;
  padding:9px 12px;
  font-weight:700;
}
.background-choice.active{
  border-color:var(--blue);
  box-shadow:0 0 0 1px rgba(0,162,255,.16);
}
.color-line{
  display:grid;
  grid-template-columns:48px 1fr;
  align-items:center;
  gap:10px;
}
.color-line input[type="color"]{
  width:48px;
  height:42px;
  border:1px solid var(--border);
  border-radius:7px;
  background:#24292f;
  padding:3px;
}
.range-line{
  display:grid;
  grid-template-columns:1fr 46px;
  gap:12px;
  align-items:center;
}
.range-line input[type="range"]{width:100%}

@media(max-width:560px){
  body{background-attachment:scroll}
}


/* automatic contrast mode */
body.theme-light{
  --surface:rgba(255,255,255,.94);
  --surface-2:#eef1f4;
  --surface-3:#e5e9ed;
  --border:#d4d9de;
  --border-soft:#e1e5e9;
  --text:#171a1d;
  --muted:#616972;
  --muted-2:#7b838c;
  color:var(--text);
}
body.theme-light .topbar{
  background:rgba(250,251,252,.96);
  border-bottom-color:#d7dce1;
}
body.theme-light.has-photo-bg .topbar{
  background:rgba(250,251,252,.93);
}
body.theme-light .brand,
body.theme-light .main-nav a.active,
body.theme-light .account-button,
body.theme-light .mobile-toggle{
  color:#171a1d;
}
body.theme-light .main-nav a{color:#5d6670}
body.theme-light .main-nav a:hover{
  color:#171a1d;
  background:rgba(0,0,0,.035);
}
body.theme-light .account-button:hover,
body.theme-light .account-button.open{
  background:#eceff2;
}
body.theme-light .account-dropdown{
  background:#fff;
  border-color:#d8dde2;
  box-shadow:0 14px 34px rgba(0,0,0,.14);
}
body.theme-light .account-dropdown-header{border-bottom-color:#e2e6ea}
body.theme-light .account-dropdown a,
body.theme-light .account-dropdown button{color:#24292e}
body.theme-light .account-dropdown a:hover,
body.theme-light .account-dropdown button:hover{background:#f1f3f5}
body.theme-light .account-dropdown small,
body.theme-light .chevron{color:#7a838c}

body.theme-light .hero h1,
body.theme-light .page-heading h1,
body.theme-light .target,
body.theme-light .game-mode strong,
body.theme-light .game-stats strong,
body.theme-light .stat strong,
body.theme-light .section-title,
body.theme-light .person-copy strong,
body.theme-light .switch-copy strong{
  color:#171a1d;
}
body.theme-light .hero p,
body.theme-light .page-heading p,
body.theme-light .eyebrow,
body.theme-light .game-mode span,
body.theme-light .game-stats span,
body.theme-light .target-label,
body.theme-light .sentence-prediction,
body.theme-light .game-actions p,
body.theme-light .footer,
body.theme-light .help,
body.theme-light .person-copy span{
  color:#626b74;
}

body.theme-light .panel,
body.theme-light .results,
body.theme-light .stat,
body.theme-light .modal{
  background:rgba(255,255,255,.94);
  border-color:#d3d8dd;
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}
body.theme-light .preview-head,
body.theme-light .game-head,
body.theme-light .game-actions,
body.theme-light .type-line,
body.theme-light .footer,
body.theme-light .list,
body.theme-light .list-row{
  border-color:#d7dce1;
}
body.theme-light .preview-word .preview-ai,
body.theme-light .guess-ai,
body.theme-light .target .future{
  color:#8a929a;
}
body.theme-light .preview-caption,
body.theme-light .message,
body.theme-light .prediction-details summary,
body.theme-light .prediction-item{
  color:#5f6871;
}
body.theme-light .button-secondary,
body.theme-light .button-quiet,
body.theme-light .background-choice,
body.theme-light .tag,
body.theme-light .result-box{
  background:#eef1f4;
  border-color:#d5dadd;
  color:#20252a;
}
body.theme-light .button-secondary:hover,
body.theme-light .button-quiet:hover{
  background:#e4e8ec;
}
body.theme-light .input,
body.theme-light .textarea,
body.theme-light .select{
  background:#fff;
  border-color:#ccd2d8;
  color:#171a1d;
}
body.theme-light .arena{
  background:rgba(255,255,255,.94);
}
body.theme-light .progress{
  background:#dde2e7;
}
body.theme-light .key-help,
body.theme-light .word-count{
  color:#6f7881;
}
body.theme-light .footer{
  background:transparent;
}
body.theme-light.has-photo-bg .footer{
  background:rgba(250,251,252,.9);
}
body.theme-light .mobile-nav{
  background:#fff;
  border-bottom-color:#d7dce1;
}
body.theme-light .mobile-nav a{color:#333940}
body.theme-light .mobile-nav a:hover{background:#f0f2f4}

/* Settings preview text follows detected contrast too */
.appearance-preview.preview-light::after{
  color:#171a1d;
  text-shadow:0 1px 8px rgba(255,255,255,.45);
}
.appearance-preview:not(.preview-light)::after{
  color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,.5);
}


/* account security + friend requests */
.nav-badge{
  min-width:17px;height:17px;padding:0 4px;
  display:grid;place-items:center;margin-left:6px;
  border-radius:999px;background:var(--red);color:#fff;
  font-size:9px;font-weight:800
}
.password-rules{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.password-rules span{
  padding:5px 7px;border-radius:999px;background:#24292f;border:1px solid var(--border);
  color:#858e97;font-size:10px;line-height:1
}
.password-rules span::before{content:"○";margin-right:4px}
.password-rules span.ok{
  color:#82c99f;border-color:rgba(87,185,130,.35);background:rgba(87,185,130,.08)
}
.password-rules span.ok::before{content:"✓"}
.section-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.request-count{
  min-width:24px;height:24px;border-radius:999px;display:grid;place-items:center;padding:0 7px;
  background:var(--surface-2);color:#dce1e6;font-size:11px;font-weight:800
}
.request-subhead{
  padding:13px 2px 8px;color:var(--muted);font-size:11px;font-weight:800;
  text-transform:uppercase;letter-spacing:.05em
}
.request-state{color:var(--muted);font-size:11px}
.security-summary{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:12px 0}
.security-question-display{
  padding:11px 12px;margin:0 0 14px;border-left:3px solid var(--blue);
  background:#24292f;color:#d9dde2;font-size:13px;border-radius:0 7px 7px 0
}
.danger-zone{margin-top:22px;border-top:1px solid var(--border);padding-top:14px}
.danger-zone summary{cursor:pointer;color:#e58b8b;font-weight:750;font-size:13px}
.danger-zone-body{
  margin-top:14px;padding:14px;border:1px solid #5a3b3f;border-radius:8px;
  background:rgba(127,49,57,.08)
}
body.theme-light .password-rules span{background:#f0f2f4;border-color:#d6dbe0;color:#737b84}
body.theme-light .password-rules span.ok{background:#eef8f2;color:#3f805c}
body.theme-light .security-question-display{background:#f0f3f5;color:#30363c}
body.theme-light .danger-zone-body{background:#fff5f5}


/* feature restoration audit */
.nav-more{
  height:100%;
  position:relative;
}
.nav-more summary{
  list-style:none;
  height:100%;
  display:flex;
  align-items:center;
  padding:0 13px;
  color:#bcc2c9;
  font-size:14px;
  font-weight:650;
  cursor:pointer;
  position:relative;
}
.nav-more summary::-webkit-details-marker{display:none}
.nav-more summary::after{
  content:"▾";
  font-size:9px;
  margin-left:6px;
  color:#858d96;
}
.nav-more summary:hover,
.nav-more summary.active,
.nav-more[open] summary{
  color:#fff;
  background:rgba(255,255,255,.025);
}
.nav-more summary.active::before{
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:0;height:3px;
  background:var(--blue);
  border-radius:2px 2px 0 0;
}
.nav-more-menu{
  position:absolute;
  top:58px;
  left:0;
  min-width:190px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  box-shadow:0 14px 34px rgba(0,0,0,.24);
  z-index:70;
}
.main-nav .nav-more-menu a{
  height:auto;
  min-height:38px;
  padding:9px 10px;
  border-radius:5px;
}
.main-nav .nav-more-menu a.active::after{display:none}
.main-nav .nav-more-menu a.active{background:var(--surface-2)}

.combo-badge{
  width:max-content;
  margin-bottom:12px;
  padding:5px 8px;
  border-radius:999px;
  background:rgba(0,162,255,.10);
  border:1px solid rgba(0,162,255,.25);
  color:#72caff;
  font-size:11px;
  font-weight:800;
}
.achievement-unlocks{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 16px;
  padding:12px;
  border:1px solid rgba(87,185,130,.30);
  border-radius:8px;
  background:rgba(87,185,130,.07);
}
.achievement-unlocks>strong{
  width:100%;
  font-size:11px;
  color:#82c99f;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.achievement-unlocks a{
  display:flex;align-items:center;gap:6px;
  color:#e7ebef;
  font-size:13px;
  font-weight:700;
}






.xp-bar{
  width:100%;height:8px;background:#383e45;border-radius:999px;overflow:hidden;margin:10px 0 7px
}
.xp-bar i{display:block;height:100%;background:var(--blue);border-radius:999px}
.text-link{color:#75caff;font-size:12px;font-weight:700}

.achievement-overview{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:20px;
}
.achievement-page-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.achievement-full{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:14px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.achievement-full.locked{opacity:.66}
.achievement-full-icon{
  width:52px;height:52px;
  display:grid;place-items:center;
  border-radius:9px;
  background:var(--surface-2);
  font-size:20px;font-weight:800;
}
.achievement-full-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.achievement-full-head h2{font-size:16px;margin:0}
.achievement-full-head span{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:800}
.achievement-full.unlocked .achievement-full-head span{color:#82c99f}
.achievement-full p{font-size:12px;line-height:1.5;color:var(--muted);margin:7px 0 12px}
.achievement-progress{height:6px;background:#393f46;border-radius:999px;overflow:hidden}
.achievement-progress i{display:block;height:100%;background:var(--blue);border-radius:999px}
.achievement-full small{display:block;margin-top:7px;color:var(--muted);font-size:10px}

.stats-page-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.metric-list{display:grid}
.metric-list>div{
  display:flex;justify-content:space-between;gap:18px;align-items:center;
  min-height:48px;border-bottom:1px solid var(--border-soft)
}
.metric-list>div:last-child{border-bottom:0}
.metric-list span{color:var(--muted);font-size:12px}
.metric-list strong{font-size:13px}

.leaderboard-list{display:grid}
.leaderboard-row{
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  border-bottom:1px solid var(--border-soft);
}
.leaderboard-row:last-child{border-bottom:0}
.leaderboard-row.me{
  background:rgba(0,162,255,.07);
  margin:0 -8px;
  padding:0 8px;
  border-radius:6px;
}
.rank{color:var(--muted);font-weight:800;font-size:12px;text-align:center}
.leader-person{display:flex;align-items:center;gap:10px;min-width:0}
.leader-person .avatar{width:34px;height:34px;border-radius:50%;font-size:11px}
.leader-person span span{min-width:0}
.leader-person strong{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.leader-person small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.leader-score{font-size:14px}

.how-steps{
  display:grid;
  gap:0;
  border-top:1px solid var(--border);
}
.how-steps article{
  display:grid;
  grid-template-columns:48px 1fr;
  gap:16px;
  padding:20px 0;
  border-bottom:1px solid var(--border);
}
.how-steps article>span{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:var(--surface-2);
  color:#cdd2d7;
  font-weight:800;
}
.how-steps h2{margin:0 0 6px;font-size:17px}
.how-steps p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.how-copy{font-size:13px;line-height:1.7}
.help-mode-list{display:grid}
.help-mode-list>div{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:18px;
  padding:12px 0;
  border-bottom:1px solid var(--border-soft);
}
.help-mode-list>div:last-child{border-bottom:0}
.help-mode-list strong{font-size:13px}
.help-mode-list span{color:var(--muted);font-size:12px;line-height:1.45}

.reduced-motion *,
.animations-off *{
  scroll-behavior:auto!important;
}
.reduced-motion *{
  animation-duration:.001ms!important;
  animation-iteration-count:1!important;
  transition-duration:.001ms!important;
}
.animations-off .cursor{animation:none!important;opacity:1}

body.theme-light .nav-more summary{color:#5d6670}
body.theme-light .nav-more summary:hover,
body.theme-light .nav-more summary.active,
body.theme-light .nav-more[open] summary{color:#171a1d;background:rgba(0,0,0,.035)}
body.theme-light .nav-more-menu{
  background:#fff;
  border-color:#d8dde2;
  box-shadow:0 14px 34px rgba(0,0,0,.14)
}
body.theme-light .main-nav .nav-more-menu a{color:#333940}
body.theme-light .main-nav .nav-more-menu a:hover,
body.theme-light .main-nav .nav-more-menu a.active{background:#f0f2f4}
body.theme-light .achievement-full,
body.theme-light .achievement-full-icon{
  background:rgba(255,255,255,.94);
  border-color:#d3d8dd;
}
body.theme-light .achievement-full-icon{background:#eef1f4}
body.theme-light .achievement-progress,
body.theme-light .xp-bar{background:#dfe4e8}
body.theme-light .leaderboard-row.me{background:rgba(0,162,255,.08)}
body.theme-light .combo-badge{color:#147bad}

@media(max-width:900px){
  .achievement-page-grid{grid-template-columns:1fr}
  .stats-page-grid{grid-template-columns:repeat(2,1fr)}
  .leaderboard-columns{grid-template-columns:1fr}
}
@media(max-width:820px){
  .nav-more{display:none}
}
@media(max-width:560px){
  .achievement-overview{grid-template-columns:1fr}
  .stats-page-grid{grid-template-columns:1fr 1fr}
  .help-mode-list>div{grid-template-columns:1fr;gap:4px}
}


/* economy shop tournaments */
:root{
  --cursor-color:#00a2ff;
  --prediction-ai:#89929b;
}
.cursor{background:var(--cursor-color)!important}
.guess-ai{color:var(--prediction-ai)!important}
body[data-cursor-effect="pulse"] .cursor{
  box-shadow:0 0 0 0 color-mix(in srgb,var(--cursor-color) 45%,transparent);
  animation:cursorPulse 1.1s infinite
}
body[data-cursor-effect="glow"] .cursor{
  box-shadow:0 0 14px var(--cursor-color)
}
@keyframes cursorPulse{
  50%{box-shadow:0 0 0 7px transparent}
}
body[data-result-effect="burst"] .results:not([hidden]){
  animation:resultBurst .45s ease both
}
@keyframes resultBurst{
  0%{transform:scale(.96);opacity:.4}
  65%{transform:scale(1.015)}
  100%{transform:scale(1);opacity:1}
}

.nav-currency{
  display:flex;gap:4px;align-items:center
}
.nav-currency a{
  min-height:34px;
  display:flex;align-items:center;gap:5px;
  padding:0 9px;border-radius:7px;
  color:#d7dce1;background:var(--surface);
  border:1px solid var(--border);
  font-size:11px;font-weight:800
}
.account-wallet-row{
  display:flex;justify-content:space-between;gap:8px;
  padding:8px 10px;margin:0 0 5px;
  border-bottom:1px solid var(--border-soft);
  color:var(--muted);font-size:10px;font-weight:750
}

.shop-heading,.tournament-hero{
  display:flex;justify-content:space-between;gap:28px;align-items:flex-end;
  margin-bottom:28px
}
.shop-heading h1,.tournament-hero h1{margin:0;font-size:38px;letter-spacing:-.035em}
.shop-heading p,.tournament-hero p{max-width:650px;margin:8px 0 0;color:var(--muted);line-height:1.55}
.wallet-card,.tournament-wallet{
  display:flex;gap:18px;padding:14px 16px;
  border:1px solid var(--border);border-radius:10px;background:var(--surface)
}
.wallet-card>div{display:grid;gap:3px;text-align:right}
.wallet-card span,.tournament-wallet span{font-size:10px;color:var(--muted);text-transform:uppercase;font-weight:750}
.wallet-card strong,.tournament-wallet strong{font-size:20px}
.tournament-wallet{display:grid;gap:5px;text-align:right}




.shop-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}
.shop-tabs button{
  border:1px solid var(--border);background:var(--surface);color:#c5cbd1;
  border-radius:999px;padding:8px 11px;font-size:11px;font-weight:750
}
.shop-tabs button.active{border-color:var(--blue);color:#fff;background:rgba(0,162,255,.10)}
.shop-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:12px
}
.shop-item{
  min-width:0;border:1px solid var(--border);border-radius:10px;
  background:var(--surface);overflow:hidden
}
.shop-item.equipped{border-color:rgba(0,162,255,.55)}
.shop-item-preview{
  height:130px;display:grid;place-items:center;
  background:#20252a;border-bottom:1px solid var(--border)
}
.shop-item-meta{padding:13px 14px 5px}
.shop-item-meta span{font-size:9px;color:var(--muted);text-transform:uppercase;font-weight:800}
.shop-item-meta h3{margin:5px 0 0;font-size:16px}
.shop-item-action{padding:10px 14px 14px}
.shop-item-action .button{width:100%}

.shop-mini-frame{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:#3b82c4;color:#fff;font-weight:800;
  box-shadow:0 0 0 3px var(--frame)
}
.shop-mini-cursor{width:8px;height:58px;border-radius:3px;box-shadow:0 0 14px currentColor}
.shop-mini-word{font-size:23px;font-weight:800}
.shop-mini-word b{color:var(--blue)}
.shop-mini-title{font-size:16px;font-weight:800}
.shop-mini-result{
  padding:12px 18px;border:1px solid rgba(0,162,255,.4);border-radius:7px;
  background:rgba(0,162,255,.08);color:#70caff;font-weight:900
}

.coin-pack-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}
.coin-pack-grid article{
  padding:16px;border:1px solid var(--border);border-radius:9px;background:#24292f;
  display:grid;gap:5px
}
.coin-pack-grid strong{font-size:23px}
.coin-pack-grid span{font-size:10px;color:var(--muted);text-transform:uppercase}
.coin-pack-grid b{margin:5px 0;font-size:14px}
.prototype-pill,.status-pill{
  padding:6px 8px;border-radius:999px;
  background:var(--surface-2);color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase
}
.shop-safety-note{margin-top:13px}

.tournament-policy{
  display:flex;gap:10px;align-items:center;
  padding:12px 14px;margin-bottom:18px;
  border:1px solid rgba(87,185,130,.28);
  background:rgba(87,185,130,.06);border-radius:9px
}
.tournament-policy strong{color:#82c99f;font-size:12px;white-space:nowrap}
.tournament-policy span{font-size:11px;color:var(--muted)}
.tournament-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tournament-card{
  border:1px solid var(--border);border-radius:10px;background:var(--surface);
  padding:18px;display:flex;flex-direction:column;min-height:310px
}
.tournament-card.registered{border-color:rgba(87,185,130,.4)}
.tournament-card-top{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800}
.tournament-card h2{margin:20px 0 8px;font-size:20px}
.tournament-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.tournament-prizes{
  display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:auto;padding-top:20px
}
.tournament-prizes div{padding:9px;background:#24292f;border-radius:7px}
.tournament-prizes span{display:block;font-size:8px;color:var(--muted);text-transform:uppercase}
.tournament-prizes strong{display:block;margin-top:4px;font-size:11px}
.tournament-card-action{margin-top:14px}
.tournament-card-action .button{width:100%}
.tournament-registration-list{display:grid}
.tournament-registration{
  min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;
  border-bottom:1px solid var(--border-soft)
}
.tournament-registration:last-child{border-bottom:0}
.tournament-registration strong{display:block;font-size:13px}
.tournament-registration span{display:block;font-size:10px;color:var(--muted);margin-top:3px}

.profile-banner-display{
  min-height:150px;margin-bottom:26px;padding:28px;
  border:1px solid var(--border);border-radius:12px;
  display:flex;justify-content:space-between;align-items:flex-end;gap:20px
}
.profile-banner-display h1{margin:4px 0;font-size:38px}
.profile-banner-display p{margin:0;color:#d7dde2;font-size:13px}
.profile-equipped-title{font-size:11px;color:#fff;text-transform:uppercase;font-weight:800;letter-spacing:.06em}
.profile-wallet{display:flex;gap:7px;flex-wrap:wrap}
.profile-wallet span{padding:7px 9px;border-radius:999px;background:rgba(0,0,0,.22);font-size:10px;font-weight:800}
.cosmetic-loadout{display:grid;grid-template-columns:1fr 1fr}
.cosmetic-loadout div{padding:10px 0;border-bottom:1px solid var(--border-soft)}
.cosmetic-loadout span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase}
.cosmetic-loadout strong{display:block;margin-top:4px;font-size:12px}

.reward-result strong{color:#e1b84e}
.daily-claim{
  margin-top:12px;padding-top:12px;border-top:1px solid var(--border-soft);
  display:flex;align-items:center;justify-content:space-between;gap:12px
}
.daily-claim span{font-size:11px;color:var(--muted)}

body.theme-light .shop-item-preview,
body.theme-light .coin-pack-grid article,
body.theme-light .tournament-prizes div{background:#eef1f4}
body.theme-light .profile-banner-display p{color:rgba(255,255,255,.9)}
body.theme-light .nav-currency a{background:#fff;color:#333;border-color:#d7dce1}

@media(max-width:980px){
  .shop-grid{grid-template-columns:repeat(2,1fr)}
  .tournament-grid{grid-template-columns:1fr}
}
@media(max-width:820px){
  .nav-currency{display:none}
  
  
}
@media(max-width:620px){
  .shop-heading,.tournament-hero{display:grid}
  .wallet-card,.tournament-wallet{justify-self:start}
  .shop-grid,.coin-pack-grid{grid-template-columns:1fr}
  .cosmetic-loadout{grid-template-columns:1fr}
  .profile-banner-display{display:grid}
}


/* crates inventory developer */
.developer-badge{
  display:inline-flex;align-items:center;width:max-content;
  padding:5px 7px;border-radius:999px;background:rgba(183,121,255,.13);
  border:1px solid rgba(183,121,255,.32);color:#cda9ff;font-size:9px;font-weight:900;text-transform:uppercase
}
.dev-wallet-tag{background:rgba(183,121,255,.24)!important;color:#e0c8ff!important}
.crate-section{margin:30px 0}
.crate-key-balance{padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:12px}
.crate-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.crate-card{padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}
.crate-card h3{margin:12px 0 5px}.crate-card p{min-height:38px;margin:0;color:var(--muted);font-size:11px;line-height:1.5}
.crate-art{height:116px;position:relative;display:grid;place-items:center;overflow:hidden;border-radius:8px;background:#1d2228}
.crate-box{z-index:2;width:74px;height:64px;display:grid;place-items:center;border-radius:8px;background:linear-gradient(145deg,#303a44,#1c2228);border:1px solid #4a5560;color:#d9e2e9;font-weight:900;letter-spacing:.06em;box-shadow:0 15px 28px rgba(0,0,0,.28)}
.crate-glow{position:absolute;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,rgba(0,162,255,.18),transparent 65%)}
.crate-odds{display:flex;flex-wrap:wrap;gap:5px;margin:12px 0}
.crate-odds span{font-size:8px;color:var(--muted);display:flex;align-items:center;gap:4px}.crate-odds i{width:6px;height:6px;border-radius:50%;background:var(--rarity)}
.crate-card .button{width:100%}
.crate-opening{padding:18px;margin:18px 0 30px}
.crate-opening-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.crate-opening-head h2{margin:4px 0 0}
.crate-reel-window{height:150px;margin:18px 0;position:relative;overflow:hidden;background:#171b20;border:1px solid var(--border);border-radius:9px}
.crate-reel-window::before,.crate-reel-window::after{content:"";position:absolute;top:0;bottom:0;width:80px;z-index:3;pointer-events:none}.crate-reel-window::before{left:0;background:linear-gradient(90deg,#171b20,transparent)}.crate-reel-window::after{right:0;background:linear-gradient(-90deg,#171b20,transparent)}
.crate-pointer{position:absolute;left:50%;top:0;bottom:0;width:2px;background:#fff;z-index:5;box-shadow:0 0 12px rgba(255,255,255,.7)}
.crate-pointer::before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);border-left:7px solid transparent;border-right:7px solid transparent;border-top:10px solid #fff}
.crate-reel{height:100%;display:flex;gap:10px;align-items:center;width:max-content;padding:0 0 0 10px;will-change:transform}
.crate-reel-item{width:144px;height:112px;flex:0 0 144px;padding:11px;border-radius:7px;border-top:4px solid var(--rarity);background:#252b31;display:flex;flex-direction:column;justify-content:center;gap:5px;box-shadow:0 7px 16px rgba(0,0,0,.18)}
.crate-reel-item span{font-size:8px;color:var(--rarity);text-transform:uppercase;font-weight:900}.crate-reel-item strong{font-size:13px}.crate-reel-item small{font-size:9px;color:var(--muted)}
.crate-opening-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.crate-reveal{display:grid;place-items:center;margin:10px 0 16px}.crate-reveal-card{min-width:250px;padding:16px;text-align:center;border:1px solid var(--rarity);border-radius:9px;background:color-mix(in srgb,var(--rarity) 7%,var(--surface));box-shadow:0 0 24px color-mix(in srgb,var(--rarity) 18%,transparent)}.crate-reveal-card span{display:block;color:var(--rarity);font-size:9px;font-weight:900;text-transform:uppercase}.crate-reveal-card strong{display:block;margin:5px 0;font-size:20px}.crate-reveal-card small{color:var(--muted)}
.inventory-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0}.inventory-tabs button{border:1px solid var(--border);background:var(--surface-2);color:var(--muted);border-radius:999px;padding:7px 9px;font-size:10px;font-weight:750}.inventory-tabs button.active{border-color:var(--blue);color:#fff}
.inventory-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.inventory-item{padding:11px;border:1px solid var(--border);border-radius:8px;background:#24292f;display:grid;gap:8px}.inventory-item.equipped{border-color:rgba(0,162,255,.5)}.inventory-preview{height:70px;display:grid;place-items:center}.inventory-item>div:nth-child(2) span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase}.inventory-item>div:nth-child(2) strong{display:block;margin-top:3px;font-size:12px}.inventory-item .button{width:100%;font-size:11px;padding:8px}
.inventory-frame{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#3b82c4;color:#fff;box-shadow:0 0 0 3px var(--frame)}.inventory-cursor{width:7px;height:48px;border-radius:3px}.inventory-word{font-size:17px;font-weight:800}.inventory-word b{color:var(--blue)}.inventory-text-preview{font-size:12px;font-weight:800;text-align:center}
.developer-panel{margin-top:14px;border-color:rgba(183,121,255,.35)!important}.developer-controls{margin-top:12px}.developer-controls .form-group{max-width:280px}
body.theme-light .crate-art,.theme-light .crate-reel-window{background:#e9edf0}.theme-light .crate-reel-window::before{background:linear-gradient(90deg,#e9edf0,transparent)}.theme-light .crate-reel-window::after{background:linear-gradient(-90deg,#e9edf0,transparent)}.theme-light .crate-reel-item,.theme-light .inventory-item{background:#f0f2f4}
@media(max-width:900px){.crate-grid,.inventory-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.crate-grid,.inventory-grid{grid-template-columns:1fr}}

body[data-result-effect="snap"] .results:not([hidden]){animation:resultSnap .28s ease both}
@keyframes resultSnap{0%{transform:translateY(8px);opacity:0}100%{transform:none;opacity:1}}
body[data-result-effect="neon"] .results:not([hidden]){animation:neonResult .7s ease both;box-shadow:0 0 0 1px #b178ff,0 0 34px rgba(177,120,255,.24)}
@keyframes neonResult{0%{filter:brightness(2);transform:scale(.97)}60%{filter:brightness(1.15);transform:scale(1.01)}100%{filter:none;transform:none}}


/* ==========================================================
   Shop / crate polish: five-tier rarity + actual FX previews
   ========================================================== */
:root{
  --trail-color:#00a2ff;
}
.rarity-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:22px 0 12px;
}
.rarity-legend span{
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px 8px;
  border:1px solid color-mix(in srgb,var(--rarity) 52%,var(--border));
  border-radius:999px;
  color:var(--muted);
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
}
.rarity-legend i{
  width:7px;height:7px;border-radius:50%;background:var(--rarity)
}

/* Every cosmetic card visibly carries its rarity. */
.shop-item,
.inventory-item{
  border:2px solid var(--rarity,var(--border)) !important;
  box-shadow:inset 0 3px 0 color-mix(in srgb,var(--rarity,var(--border)) 70%,transparent);
}
.shop-item.equipped,
.inventory-item.equipped{
  box-shadow:
    inset 0 3px 0 var(--rarity),
    0 0 0 1px color-mix(in srgb,var(--rarity) 35%,transparent),
    0 8px 22px rgba(0,0,0,.14);
}
.shop-item-meta>span,
.inventory-item>div:nth-child(2)>span{
  color:var(--rarity,var(--muted)) !important;
}
.crate-reel-item{
  border:2px solid var(--rarity) !important;
  border-top-width:5px !important;
}
.crate-reel.is-spinning{
  filter:blur(.55px);
}
.crate-pointer{
  animation:cratePointerPulse .45s ease-in-out infinite alternate
}
@keyframes cratePointerPulse{
  to{box-shadow:0 0 18px rgba(255,255,255,.95)}
}

/* Shop previews show the thing itself rather than an abstract label. */
.shop-profile-banner-preview{
  width:84%;height:76px;border-radius:8px;padding:12px;
  display:flex;flex-direction:column;justify-content:flex-end;
  border:1px solid rgba(255,255,255,.18);
  color:#fff;text-shadow:0 1px 8px rgba(0,0,0,.45)
}
.shop-profile-banner-preview small{font-size:8px;opacity:.75}
.shop-profile-banner-preview strong{font-size:16px}
.shop-title-preview,.inventory-title-preview{
  display:grid;gap:5px;text-align:center
}
.shop-title-preview small,.inventory-title-preview small{
  color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.08em
}
.shop-title-preview strong{font-size:17px}
.inventory-title-preview strong{font-size:12px}

.shop-fx-stage,.inventory-fx-row{
  display:flex;align-items:center;gap:9px
}
.shop-fx-stage span,.inventory-fx-row b{
  color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px
}
.shop-mini-cursor,.inventory-cursor,.profile-demo-cursor{
  display:block;width:7px;height:46px;border-radius:3px;flex:0 0 auto
}
.fx-pulse{
  animation:previewCursorPulse .85s ease-in-out infinite alternate
}
.fx-glow{
  box-shadow:0 0 15px var(--demo-color)
}
@keyframes previewCursorPulse{
  from{opacity:.45;box-shadow:0 0 0 0 color-mix(in srgb,var(--demo-color) 40%,transparent)}
  to{opacity:1;box-shadow:0 0 0 7px transparent}
}

.shop-mini-result,.inventory-result,.profile-result-demo{
  padding:10px 13px;border:1px solid var(--border);border-radius:7px;
  font-weight:900;font-size:11px;letter-spacing:.04em
}
.result-demo-snap{animation:previewSnap .9s ease infinite}
.result-demo-burst{animation:previewBurst 1.25s ease infinite}
.result-demo-neon{
  border-color:#b178ff !important;
  color:#dcc8ff;
  animation:previewNeon 1.2s ease-in-out infinite alternate
}
@keyframes previewSnap{0%,55%{transform:none}65%{transform:translateY(-5px)}80%,100%{transform:none}}
@keyframes previewBurst{0%,58%{transform:scale(1);box-shadow:none}72%{transform:scale(1.08);box-shadow:0 0 20px rgba(0,162,255,.32)}100%{transform:scale(1)}}
@keyframes previewNeon{from{box-shadow:0 0 5px rgba(177,120,255,.12)}to{box-shadow:0 0 22px rgba(177,120,255,.45)}}

/* Typing Trails replace the old shop background cosmetics. */
.shop-trail-preview,.inventory-trail,.profile-trail-demo{
  position:relative;
  width:116px;height:44px;
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:16px;font-weight:850;
  overflow:hidden
}
.shop-trail-preview b,.inventory-trail b{z-index:3}
.shop-trail-preview i,.inventory-trail i,.profile-trail-demo i{
  position:absolute;
  left:58%;
  top:50%;
  width:7px;height:7px;
  border-radius:50%;
  background:var(--demo-color);
  opacity:.85;
  animation:trailPreview .9s linear infinite
}
.shop-trail-preview i:nth-of-type(2),.inventory-trail i:nth-of-type(2),.profile-trail-demo i:nth-of-type(2){animation-delay:.16s}
.shop-trail-preview i:nth-of-type(3),.inventory-trail i:nth-of-type(3),.profile-trail-demo i:nth-of-type(3){animation-delay:.32s}
.shop-trail-preview i:nth-of-type(4),.profile-trail-demo i:nth-of-type(4){animation-delay:.48s}
.trail-demo-comet i{width:11px;height:4px;border-radius:5px}
.trail-demo-gold i{box-shadow:0 0 10px var(--demo-color)}
.trail-demo-echo i{opacity:.45}
@keyframes trailPreview{
  from{transform:translate(0,-50%) scale(1);opacity:.9}
  to{transform:translate(-62px,-50%) scale(.25);opacity:0}
}

/* Actual equipped trail during gameplay. */
.type-line{position:relative}
.typing-trail{
  position:absolute;
  left:9px;
  top:50%;
  width:75px;height:36px;
  pointer-events:none;
  overflow:visible;
  z-index:0
}
.type-line>.cursor,.type-line>.typed,.type-line>.key-help{position:relative;z-index:2}
.trail-particle{
  position:absolute;
  left:8px;top:50%;
  width:7px;height:7px;border-radius:50%;
  background:var(--trail-color);
  box-shadow:0 0 10px color-mix(in srgb,var(--trail-color) 55%,transparent);
  animation:typingTrailParticle .72s ease-out var(--trail-delay) forwards
}
.trail-particle.trail-velocity{width:14px;height:3px;border-radius:4px}
.trail-particle.trail-comet{width:10px;height:5px}
.trail-particle.trail-gold{width:5px;height:5px;box-shadow:0 0 14px var(--trail-color)}
.trail-particle.trail-echo{opacity:.55}
@keyframes typingTrailParticle{
  from{transform:translate(0,-50%) scale(1);opacity:.95}
  to{transform:translate(var(--trail-x),calc(-50% + var(--trail-y))) scale(.15);opacity:0}
}

.inventory-banner-preview{
  width:88%;height:50px;border-radius:6px;padding:7px;
  display:flex;align-items:flex-end;color:#fff;font-size:10px;font-weight:800;
  text-shadow:0 1px 6px rgba(0,0,0,.55)
}

.profile-loadout-live{
  grid-column:1/-1;
  padding:15px;
  display:grid;
  grid-template-columns:1fr auto;
  gap:15px;
  align-items:center;
  margin-bottom:9px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#20252a
}
.profile-game-fx-preview{
  min-height:54px;
  position:relative;
  display:flex;align-items:center;gap:0;
  font-size:24px;font-weight:850;overflow:hidden
}
.profile-game-fx-preview b{color:var(--blue);font-style:normal}
.profile-game-fx-preview em{font-style:normal}
.profile-demo-cursor{height:34px;margin-right:8px}
.profile-trail-demo{
  position:absolute;left:0;top:4px;width:95px;height:45px;pointer-events:none
}
.loadout-name{
  padding:10px 0;border-bottom:1px solid var(--border-soft)
}
.developer-balance-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.developer-balance-grid .form-group{max-width:none!important}

@media(max-width:700px){
  .developer-balance-grid{grid-template-columns:1fr}
  .profile-loadout-live{grid-template-columns:1fr}
}


/* ==========================================================
   PLATFORM REVAMP — unified page language
   ========================================================== */
body{min-width:0}
.page,.platform-home{padding-top:36px}
.platform-page-heading{
  display:flex;align-items:flex-end;justify-content:space-between;gap:28px;
  margin:0 0 24px;padding:0 0 22px;border-bottom:1px solid var(--border)
}
.platform-page-heading h1{margin:3px 0 0;font-size:clamp(30px,4vw,46px);line-height:1.06;letter-spacing:-.045em}
.platform-page-heading p{max-width:680px;margin:9px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.section-kicker{display:block;color:var(--muted);font-size:10px;line-height:1;font-weight:850;letter-spacing:.09em;margin-bottom:7px}
.platform-section{
  background:color-mix(in srgb,var(--surface) 95%,transparent);
  border:1px solid var(--border);border-radius:11px;padding:20px;
  box-shadow:0 10px 24px rgba(0,0,0,.08)
}
.platform-section+.platform-section{margin-top:14px}
.platform-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:15px}
.platform-section-head h2{margin:0;font-size:18px;letter-spacing:-.02em}
.platform-section-head>a{color:#83ceff;font-size:12px;font-weight:750}
.section-note{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.compact-section{padding:18px}

/* Home now behaves like a game dashboard rather than a landing-page template. */
.platform-home{padding-bottom:62px}
.home-command-shelf{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(390px,.95fr);gap:42px;
  align-items:center;min-height:470px;padding:54px 46px;margin-bottom:22px;
  background:color-mix(in srgb,var(--surface) 94%,transparent);
  border:1px solid var(--border);border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.12)
}
.home-command-copy h1{margin:8px 0 0;font-size:clamp(46px,5.6vw,70px);line-height:1.02;letter-spacing:-.058em;max-width:680px}
.home-command-copy>p{max-width:600px;margin:19px 0 0;color:var(--muted);font-size:16px;line-height:1.6}
.home-mini-stats{display:flex;gap:0;margin-top:28px;border-top:1px solid var(--border);padding-top:16px}
.home-mini-stats div{min-width:110px;padding-right:24px}
.home-mini-stats div+div{border-left:1px solid var(--border);padding-left:24px}
.home-mini-stats span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:800;letter-spacing:.06em}
.home-mini-stats strong{display:block;margin-top:4px;font-size:18px}
.home-game-preview{min-width:0;border:1px solid var(--border);border-radius:11px;background:#20252a;overflow:hidden}
.home-game-preview-head{display:flex;justify-content:space-between;align-items:center;padding:12px 15px;border-bottom:1px solid #343b43;color:#8f98a1;font-size:9px;font-weight:850;letter-spacing:.06em}
.home-target-sample{padding:20px 20px 0;color:#818a93;font-size:11px}
.home-target-sample strong{color:#d8dde2}
.home-game-preview .preview-word{padding:22px 20px 8px;font-size:clamp(44px,5vw,66px)}
.home-game-preview .preview-caption{padding:0 20px 22px;margin:0;min-height:59px}
.home-preview-keys{display:flex;gap:8px;align-items:center;padding:11px 15px;border-top:1px solid #343b43;color:#747e87;font-size:8px;font-weight:850;letter-spacing:.05em}
.home-preview-keys b{color:#4e5861}
.home-mode-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.home-mode-card{min-height:142px;padding:16px;border:1px solid var(--border);border-radius:9px;background:#24292f;display:flex;flex-direction:column}
.home-mode-card:hover{background:#2a3036;border-color:#4a535d}
.home-mode-card.featured{border-color:rgba(0,162,255,.42);background:linear-gradient(145deg,rgba(0,162,255,.08),#24292f 55%)}
.home-mode-card>span{color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.09em}
.home-mode-card strong{font-size:17px;margin-top:8px}
.home-mode-card p{color:var(--muted);font-size:11px;line-height:1.45;margin:6px 0 12px}
.home-mode-card b{margin-top:auto;color:#8fd2ff;font-size:11px}
.home-dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.home-progress-line{display:flex;justify-content:space-between;color:var(--muted);font-size:10px}
.metric-row-3{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:14px}
.metric-row-3 div{padding:10px;border:1px solid var(--border-soft);border-radius:7px;background:#24292f}
.metric-row-3 span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;font-weight:800}
.metric-row-3 strong{display:block;margin-top:4px;font-size:14px}
.home-wallet{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.home-wallet div{padding:12px;border:1px solid var(--border-soft);border-radius:8px;background:#24292f;text-align:center}
.home-wallet span{display:block;color:#e3b94e;font-size:13px}.home-wallet div:nth-child(2) span{color:#75caff}.home-wallet div:nth-child(3) span{color:#b99cff}
.home-wallet strong{display:block;font-size:17px;margin:3px 0}.home-wallet small{color:var(--muted);font-size:8px;text-transform:uppercase}
.home-feature-link{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:15px}
.home-feature-link h2{margin:3px 0;font-size:17px}.home-feature-link p{margin:0;color:var(--muted);font-size:11px}
.feature-icon{width:42px;height:42px;border:1px solid var(--border);border-radius:9px;background:#24292f;display:grid;place-items:center;color:#7bcaff;font-size:18px}

/* Play mode selection */
.play-mode-page{max-width:1000px}
.mode-heading{margin-bottom:20px}
.mode-card-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.mode-tile{min-height:180px;padding:19px;border:1px solid var(--border);border-radius:10px;background:var(--surface);display:grid;grid-template-columns:36px 1fr;grid-template-rows:1fr auto;column-gap:12px}
.mode-tile:hover{background:var(--surface-2);border-color:#4a535d}
.mode-tile.primary-mode{border-color:rgba(0,162,255,.42)}.mode-tile.evil-mode{border-color:rgba(177,120,255,.3)}
.mode-number{grid-row:1/3;color:#707983;font-size:10px;font-weight:850}
.mode-tile small{color:var(--muted);font-size:8px;font-weight:850;letter-spacing:.08em}
.mode-tile h2{margin:6px 0 4px;font-size:22px}.mode-tile p{margin:0;color:var(--muted);font-size:12px;line-height:1.5;max-width:320px}
.mode-tile>b{grid-column:2;color:#8fd2ff;font-size:11px;align-self:end;margin-top:16px}
.special-mode-strip{display:grid;grid-template-columns:repeat(4,1fr);margin-top:12px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface)}
.special-mode-strip a{padding:14px;border-right:1px solid var(--border)}.special-mode-strip a:last-child{border-right:0}.special-mode-strip a:hover{background:var(--surface-2)}
.special-mode-strip span{display:block;color:var(--muted);font-size:8px;font-weight:850}.special-mode-strip strong{display:block;font-size:13px;margin:4px 0}.special-mode-strip small{color:var(--muted);font-size:9px}

/* Create */
.create-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:12px;max-width:1000px;margin:0 auto}.create-sentence-input{min-height:180px;font-size:16px}.create-preview-panel{display:flex;flex-direction:column;justify-content:center;min-height:330px}.create-preview-panel h2{margin:0 0 14px}.custom-target-preview{font-size:26px;line-height:1.35;letter-spacing:-.025em;min-height:80px;word-break:break-word}.create-preview-rule{height:1px;background:var(--border);margin:24px 0}.create-preview-panel>strong{font-size:17px}.create-preview-panel>p{color:var(--muted);font-size:12px;line-height:1.5}

/* Social / Prediction Lab */
.social-metrics,.lab-metrics,.leaderboard-self{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.social-metrics>div,.lab-metrics>div,.leaderboard-self>div{padding:13px 15px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}.social-metrics span,.lab-metrics span,.leaderboard-self span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;font-weight:850}.social-metrics strong,.lab-metrics strong,.leaderboard-self strong{display:block;margin-top:3px;font-size:18px}
.social-grid,.lab-layout{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.social-search-list{margin-top:12px}.lab-input{min-height:160px}.lab-actions{margin-top:12px}

/* Mechanic guide */
.mechanic-demo{margin-bottom:14px}.mechanic-demo-flow{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;gap:10px;align-items:center}.mechanic-demo-flow>div{padding:13px;border:1px solid var(--border-soft);border-radius:8px;background:#24292f;text-align:center}.mechanic-demo-flow small{display:block;color:var(--muted);font-size:7px;font-weight:850;letter-spacing:.07em}.mechanic-demo-flow strong{display:block;margin-top:5px;font-size:18px}.mechanic-demo-flow strong i{color:var(--blue);font-style:normal}.mechanic-demo-flow>b{color:#66717b}

/* Settings */
.settings-page{max-width:980px;margin:0 auto}.settings-index{position:sticky;top:64px;z-index:20;display:flex;gap:5px;padding:10px 0;margin-bottom:10px;background:color-mix(in srgb,var(--user-bg) 92%,transparent);backdrop-filter:blur(8px)}.settings-index a{padding:7px 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:750}.settings-index a:hover{color:var(--text)}.settings-card{scroll-margin-top:125px}.settings-card+.divider{margin:12px 0}

/* Profile cleanup */
.profile-edit-disclosure>summary,.developer-panel>summary,.future-commerce>summary{list-style:none;cursor:pointer;font-weight:800}.profile-edit-disclosure>summary::-webkit-details-marker,.developer-panel>summary::-webkit-details-marker,.future-commerce>summary::-webkit-details-marker{display:none}.profile-edit-disclosure>summary::after,.future-commerce>summary::after{content:"+";float:right;color:var(--muted)}.profile-edit-disclosure[open]>summary::after,.future-commerce[open]>summary::after{content:"−"}.profile-edit-body,.developer-body,.future-commerce-body{padding-top:18px}.developer-panel{margin-top:14px}.developer-panel>summary{display:flex;justify-content:space-between;align-items:center}.profile-layout{align-items:start}.profile-side{position:sticky;top:88px}.profile-side .button{width:170px}.cosmetic-loadout{gap:0}.inventory-tabs{margin-top:10px}

/* Account */
.account-page{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,470px);gap:60px;align-items:center;min-height:calc(100vh - 190px)}.account-intro{max-width:620px}.account-intro h1{font-size:clamp(42px,5vw,64px);line-height:1.03;letter-spacing:-.052em;margin:7px 0 15px}.account-intro>p{color:var(--muted);font-size:15px;line-height:1.6}.account-benefits{margin-top:28px;border-top:1px solid var(--border)}.account-benefits div{display:grid;grid-template-columns:120px 1fr;padding:13px 0;border-bottom:1px solid var(--border)}.account-benefits strong{font-size:12px}.account-benefits span{color:var(--muted);font-size:11px}.auth-wrap{max-width:none;margin:0}.auth-card{padding:24px}

/* Tournaments / Shop hierarchy */
.tournament-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:0 0 12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);overflow:hidden}.tournament-flow div{padding:13px;border-right:1px solid var(--border);display:grid;grid-template-columns:24px 1fr;column-gap:7px}.tournament-flow div:last-child{border-right:0}.tournament-flow span{grid-row:1/3;width:22px;height:22px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;color:var(--muted);font-size:8px;font-weight:850}.tournament-flow strong{font-size:11px}.tournament-flow small{color:var(--muted);font-size:8px;margin-top:2px}.crate-section{margin-bottom:12px}.shop-catalog-section{margin-top:12px}.future-commerce{margin-top:12px}.future-commerce>summary{display:flex;justify-content:space-between}.future-commerce>summary span{color:var(--muted);font-size:9px;font-weight:700}

/* Wallet in top nav is functional again. */
.nav-currency{display:flex;gap:4px;align-items:center}.nav-currency a{height:32px;display:flex;align-items:center;gap:4px;padding:0 8px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);font-size:10px;font-weight:800}.nav-currency a span{color:#d9b652}.nav-currency a:nth-child(2) span{color:#75caff}.nav-currency a:nth-child(3) span{color:#b99cff}

/* Light-mode equivalents */
body.theme-light .platform-section,body.theme-light .home-command-shelf,body.theme-light .social-metrics>div,body.theme-light .lab-metrics>div,body.theme-light .leaderboard-self>div{background:rgba(255,255,255,.94);box-shadow:0 10px 24px rgba(0,0,0,.06)}
body.theme-light .home-game-preview{background:#fff;border-color:#d4d9de}body.theme-light .home-game-preview-head,body.theme-light .home-preview-keys{border-color:#dbe0e5}body.theme-light .home-target-sample strong{color:#2a3036}body.theme-light .home-mode-card,body.theme-light .metric-row-3 div,body.theme-light .home-wallet div,body.theme-light .mechanic-demo-flow>div{background:#f4f6f8}body.theme-light .settings-index{background:rgba(244,245,247,.92)}body.theme-light .nav-currency a{background:#fff;color:#2a3036;border-color:#d6dce1}

@media(max-width:1000px){.home-command-shelf{grid-template-columns:1fr;padding:38px}.home-game-preview{max-width:650px}.home-mode-grid{grid-template-columns:1fr 1fr}.account-page{grid-template-columns:1fr;gap:28px;min-height:0}.account-intro{max-width:760px}.profile-side{position:static}}
@media(max-width:820px){.platform-page-heading{align-items:flex-start;flex-direction:column}.home-dashboard-grid,.social-grid,.lab-layout,.create-layout{grid-template-columns:1fr}.special-mode-strip{grid-template-columns:1fr 1fr}.tournament-flow{grid-template-columns:1fr 1fr}.tournament-flow div:nth-child(2){border-right:0}.tournament-flow div:nth-child(-n+2){border-bottom:1px solid var(--border)}.nav-currency{display:none}.mechanic-demo-flow{grid-template-columns:1fr}.mechanic-demo-flow>b{transform:rotate(90deg);text-align:center}.settings-index{top:62px;overflow-x:auto}}
@media(max-width:580px){.home-command-shelf{padding:28px 20px}.home-command-copy h1{font-size:42px}.home-mode-grid,.home-dashboard-grid,.metric-row-3,.home-wallet,.mode-card-grid,.social-metrics,.lab-metrics,.leaderboard-self{grid-template-columns:1fr}.home-feature-link{grid-template-columns:auto 1fr}.home-feature-link .button{grid-column:1/-1}.special-mode-strip,.tournament-flow{grid-template-columns:1fr}.special-mode-strip a{border-right:0;border-bottom:1px solid var(--border)}.tournament-flow div{border-right:0;border-bottom:1px solid var(--border)!important}.tournament-flow div:last-child{border-bottom:0!important}.account-benefits div{grid-template-columns:1fr;gap:3px}.settings-index{padding-bottom:8px}.profile-banner-display{padding:20px}}


/* ==========================================================
   FINAL STORE + TOURNAMENT + ADMIN PASS
   ========================================================== */
.home-announcement{
  max-width:1040px;
  margin:0 auto 14px;
  padding:10px 14px;
  display:flex;
  gap:10px;
  align-items:center;
  border:1px solid rgba(0,162,255,.35);
  border-radius:8px;
  background:rgba(0,162,255,.08);
}
.home-announcement strong{font-size:10px;color:#78ccff;text-transform:uppercase;letter-spacing:.06em}
.home-announcement span{font-size:12px;color:#dbe3e9}

/* Shop */
.shop-page{max-width:1180px}
.shop-page-head{
  display:flex;
  justify-content:space-between;
  gap:28px;
  align-items:flex-end;
  margin-bottom:18px;
}
.shop-page-head h1{font-size:42px;margin:0;letter-spacing:-.045em}
.shop-page-head p{margin:8px 0 0;color:var(--muted);max-width:610px}
.shop-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.shop-wallet-strip{
  display:flex;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface);
}
.shop-wallet-strip>div{
  min-width:92px;
  padding:9px 12px;
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:6px;
  border-right:1px solid var(--border);
}
.shop-wallet-strip>div:last-child{border-right:0}
.shop-wallet-strip span{grid-row:1/3;color:#e5b94b}
.shop-wallet-strip>div:nth-child(2) span{color:#6fc9ff}
.shop-wallet-strip>div:nth-child(3) span{color:#b69cff}
.shop-wallet-strip strong{font-size:14px}
.shop-wallet-strip small{font-size:8px;color:var(--muted);text-transform:uppercase}

.shop-crate-zone,
.crate-opening,
.shop-market,
.future-commerce{
  border:1px solid var(--border);
  border-radius:11px;
  background:rgba(37,42,48,.96);
}
.shop-crate-zone{padding:18px;margin-bottom:14px}
.shop-section-heading{
  display:flex;justify-content:space-between;gap:20px;align-items:flex-end;margin-bottom:14px
}
.shop-section-heading h2,.shop-market h2{font-size:19px;margin:2px 0 0}
.shop-section-heading p,.shop-market p{font-size:11px;color:var(--muted);margin:5px 0 0}
.crate-key-balance{
  padding:8px 10px;border:1px solid #4a414f;border-radius:7px;background:#27242c;
  color:#c8b8ef;font-size:10px;white-space:nowrap
}
.crate-grid{grid-template-columns:repeat(3,1fr);gap:10px}
.crate-card{
  position:relative;
  min-height:245px;
  padding:16px;
  overflow:hidden;
  border:1px solid #3d444c;
  background:linear-gradient(160deg,#272d34,#20252a);
}
.crate-card::after{
  content:"";
  position:absolute;inset:auto -40px -70px auto;width:150px;height:150px;
  border-radius:50%;background:rgba(0,162,255,.07);filter:blur(8px)
}
.crate-card h3{font-size:16px;margin:10px 0 6px}
.crate-card p{font-size:10px;min-height:32px}
.crate-art{height:74px}
.crate-box{width:56px;height:48px;border-radius:8px;font-size:15px}
.crate-odds{gap:5px;margin-top:10px}
.crate-odds span{font-size:8px;padding:4px 5px}
.crate-card .button{margin-top:12px;width:100%}

.crate-opening{margin:0 0 14px;padding:18px}
.crate-opening-head{margin-bottom:14px}
.crate-machine{
  padding:12px;
  border-radius:10px;
  background:#191d21;
  border:1px solid #343a41;
  box-shadow:inset 0 0 30px rgba(0,0,0,.25)
}
.crate-reel-window{height:132px}
.crate-reel-item{height:106px;margin-top:11px;border-radius:8px}
.crate-opening-actions{padding-top:14px}
.crate-opening-actions>span{font-size:10px;color:var(--muted)}

.shop-market{
  display:grid;
  grid-template-columns:205px minmax(0,1fr);
  overflow:hidden;
  margin-bottom:14px;
}
.shop-market-sidebar{
  padding:18px;
  border-right:1px solid var(--border);
  background:#22272d;
}
.shop-market-sidebar h2{margin:3px 0 5px}
.shop-tabs{
  display:grid;
  gap:4px;
  margin:18px 0;
}
.shop-tabs button{
  width:100%;
  border-radius:6px;
  padding:9px 10px;
  text-align:left;
  border:0;
  background:transparent;
  color:#9fa7af;
}
.shop-tabs button:hover{background:#2b3138;color:#fff}
.shop-tabs button.active{
  background:#303840;
  border:0;
  color:#fff;
  box-shadow:inset 3px 0 0 var(--blue);
}
.shop-rarity-key{display:grid;gap:6px;border-top:1px solid var(--border);padding-top:13px}
.shop-rarity-key span{
  color:var(--muted);
  font-size:9px;
  display:flex;align-items:center;gap:7px
}
.shop-rarity-key span::before{
  content:"";width:8px;height:8px;border-radius:2px;background:var(--rarity)
}
.shop-market-content{padding:18px;min-width:0}
.shop-market-head{
  display:flex;justify-content:space-between;align-items:flex-end;gap:15px;margin-bottom:13px
}
.shop-market-head a{font-size:10px;color:#7ccaff;font-weight:750}
.shop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.shop-item{
  position:relative;
  min-width:0;
  border-width:1px!important;
  border-radius:9px;
  overflow:hidden;
  background:#242a30;
  box-shadow:none!important;
}
.shop-item::before{
  content:"";
  position:absolute;left:0;right:0;top:0;height:3px;background:var(--rarity);z-index:4
}
.shop-item-rarity{
  position:absolute;right:8px;top:9px;z-index:5;
  padding:3px 5px;border-radius:4px;background:rgba(10,12,14,.72);
  color:var(--rarity);font-size:7px;font-weight:900;text-transform:uppercase;letter-spacing:.04em
}
.shop-item-preview{
  height:112px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(145deg,#1d2227,#262c32)
}
.shop-item-body{
  min-height:65px;
  display:flex;justify-content:space-between;gap:8px;align-items:flex-start;
  padding:10px 11px 5px
}
.shop-item-meta{padding:0;min-width:0}
.shop-item-meta span{font-size:7px!important;color:var(--muted)!important}
.shop-item-meta h3{
  margin:3px 0 0;
  font-size:13px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.shop-item-state{
  flex:0 0 auto;color:var(--rarity);font-size:9px;font-weight:800;padding-top:2px
}
.shop-item-action{padding:6px 11px 11px}
.shop-item-action .button{min-height:34px;padding:7px 9px;font-size:10px}

.future-commerce{margin-top:0}
.future-commerce>summary{padding:12px 15px}
.future-commerce-body{padding:0 15px 15px}

/* Tournaments */
.tournament-hero-actions{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tournament-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tournament-card{
  min-height:300px;
  border-radius:10px;
  background:linear-gradient(160deg,#292f35,#22272d);
}
.tournament-card.status-scheduled{opacity:.8}
.tournament-card.status-closed{opacity:.62}
.tournament-status{color:#72c496!important}
.status-scheduled .tournament-status{color:#e0b65b!important}
.status-closed .tournament-status{color:#949ca5!important}
.tournament-title-prize{
  margin-top:9px;padding:8px;border-radius:6px;background:#24292f;
  color:#aab2bb;font-size:9px
}
.tournament-empty{grid-column:1/-1}

/* Admin console */
.admin-page{max-width:1180px}
.admin-head{
  display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px
}
.admin-head h1{margin:0;font-size:40px;letter-spacing:-.04em}
.admin-head p{margin:7px 0 0;color:var(--muted)}
.admin-metrics{
  display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px
}
.admin-metrics>div{
  padding:14px;border:1px solid var(--border);border-radius:8px;background:var(--surface)
}
.admin-metrics span{display:block;color:var(--muted);font-size:8px;text-transform:uppercase;font-weight:800}
.admin-metrics strong{display:block;margin-top:5px;font-size:20px}
.admin-tabs{
  display:flex;gap:4px;flex-wrap:wrap;position:sticky;top:72px;z-index:20;
  margin-bottom:12px;padding:6px;border:1px solid var(--border);border-radius:8px;background:#20252a
}
.admin-tabs a{padding:7px 10px;border-radius:5px;color:#aab2ba;font-size:10px;font-weight:750}
.admin-tabs a:hover{background:#30363d;color:#fff}
.admin-section{
  scroll-margin-top:125px;
  padding:18px;margin-bottom:12px;
  border:1px solid var(--border);border-radius:10px;background:var(--surface)
}
.admin-section-head{
  display:flex;justify-content:space-between;gap:18px;align-items:flex-end;margin-bottom:14px
}
.admin-section-head h2{margin:2px 0 0;font-size:19px}
.admin-section-head p{margin:4px 0 0;color:var(--muted);font-size:10px}
.admin-search{max-width:260px}
.admin-tournament-form{
  margin-bottom:14px;padding:14px;border:1px solid #42505b;border-radius:8px;background:#22282e
}
.admin-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.admin-tournament-list,.admin-player-list,.admin-suggestion-list{display:grid;gap:7px}
.admin-tournament-row,.admin-player-row,.admin-suggestion-row{
  border:1px solid var(--border);border-radius:8px;background:#242a30;padding:11px
}
.admin-tournament-row,.admin-suggestion-row{
  display:flex;align-items:center;justify-content:space-between;gap:12px
}
.admin-tournament-row strong,.admin-suggestion-row strong{display:block;font-size:12px}
.admin-tournament-row small,.admin-suggestion-row small{display:block;color:var(--muted);font-size:9px;margin-top:3px}
.admin-status{
  display:inline-block;padding:3px 5px;margin-bottom:5px;border-radius:4px;
  background:#30363c;color:#9da5ad;font-size:7px;text-transform:uppercase;font-weight:900
}
.admin-status.status-open{color:#74c797}
.admin-status.status-scheduled{color:#d8af55}
.admin-row-actions{display:flex;gap:5px;flex-wrap:wrap}
.admin-row-actions .button{padding:7px 9px;font-size:9px}
.admin-player-row{
  display:grid;grid-template-columns:minmax(180px,1fr) minmax(330px,1.4fr) auto;gap:10px;align-items:center
}
.admin-player-main{display:flex;align-items:center;gap:10px;min-width:0}
.admin-player-main .avatar{width:36px;height:36px;border-radius:50%}
.admin-player-main strong{font-size:12px}
.admin-player-main small{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.developer-mini{font-size:6px;padding:2px 4px;border-radius:3px;background:#725f28;color:#ffe18b}
.admin-balance-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.admin-balance-fields label{color:var(--muted);font-size:7px;text-transform:uppercase;font-weight:800}
.admin-balance-fields input{
  width:100%;margin-top:3px;padding:6px 7px;border:1px solid var(--border);border-radius:5px;
  background:#1f2429;color:#fff;font-size:10px
}
.admin-check{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:11px;margin:8px 0 13px}
.admin-denied{text-align:center;padding:50px}
.admin-denied h1{margin:0 0 8px}
.admin-denied p{color:var(--muted)}

body.theme-light .shop-crate-zone,
body.theme-light .crate-opening,
body.theme-light .shop-market,
body.theme-light .future-commerce,
body.theme-light .admin-section,
body.theme-light .admin-metrics>div{background:rgba(255,255,255,.94)}
body.theme-light .shop-market-sidebar,
body.theme-light .shop-item,
body.theme-light .admin-tournament-row,
body.theme-light .admin-player-row,
body.theme-light .admin-suggestion-row,
body.theme-light .admin-tournament-form{background:#f1f3f5}
body.theme-light .shop-item-preview{background:linear-gradient(145deg,#eef1f4,#e3e7ea)}
body.theme-light .admin-tabs{background:#f2f4f6}

@media(max-width:980px){
  .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-player-row{grid-template-columns:1fr}
  .admin-balance-fields{max-width:500px}
}
@media(max-width:820px){
  .shop-page-head,.shop-section-heading,.admin-head,.admin-section-head{display:grid;align-items:start}
  .shop-head-actions,.tournament-hero-actions{justify-content:start}
  .shop-market{grid-template-columns:1fr}
  .shop-market-sidebar{border-right:0;border-bottom:1px solid var(--border)}
  .shop-tabs{grid-template-columns:repeat(3,1fr)}
  .crate-grid,.tournament-grid{grid-template-columns:1fr}
  .admin-metrics{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .shop-wallet-strip{width:100%}
  .shop-wallet-strip>div{min-width:0;flex:1}
  .shop-grid{grid-template-columns:1fr}
  .shop-tabs{grid-template-columns:1fr 1fr}
  .admin-metrics,.admin-form-grid,.admin-balance-fields{grid-template-columns:1fr}
}


.admin-tournament-expanded{display:grid!important;gap:10px}
.admin-tournament-summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px
}
.admin-entrant-list{
  display:grid;
  gap:5px;
  padding-top:9px;
  border-top:1px solid var(--border-soft)
}
.admin-entrant-list>div{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:7px 8px;border-radius:6px;background:#20252a
}
.admin-entrant-list>div>span{display:flex;align-items:center;gap:8px;min-width:0}
.admin-entrant-list .avatar{width:27px;height:27px;border-radius:50%;font-size:9px}
.admin-entrant-list strong{font-size:10px}
.admin-entrant-list small{color:var(--muted);font-size:8px;text-transform:uppercase}
.admin-entrant-list .button{font-size:8px;padding:6px 8px}
body.theme-light .admin-entrant-list>div{background:#e9edf0}
@media(max-width:700px){
  .admin-tournament-summary{display:grid}
  .admin-entrant-list>div{display:grid}
}
\n\n/* smart prediction overlap */\n.guess-ai-correct{\n  color:var(--success,#55b982);\n  text-decoration:underline;\n  text-decoration-thickness:2px;\n  text-underline-offset:7px;\n  text-decoration-color:color-mix(in srgb,var(--success,#55b982) 55%,transparent);\n}\nbody.theme-light .guess-ai-correct{color:#2e8b5d}\n\n.preview-ai-correct{color:var(--success,#55b982);text-decoration:underline;text-underline-offset:8px;text-decoration-color:color-mix(in srgb,var(--success,#55b982) 55%,transparent)}\nbody.theme-light .preview-ai-correct{color:#2e8b5d}\n

/* ==========================================================
   SHOP V3 — focused, collection-led store
   ========================================================== */
:root{
  --arena-background:var(--surface);
  --arena-border:var(--border);
  --arena-accent:#00a2ff;
}
.arena{
  position:relative;
  overflow:hidden;
  background:var(--arena-background)!important;
  border-color:var(--arena-border)!important;
}
.arena::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transition:opacity .2s ease;
}
body[data-arena-effect="terminal"] .arena::before{
  opacity:.65;
  background:repeating-linear-gradient(180deg,rgba(88,198,255,.035) 0 1px,transparent 1px 4px);
}
body[data-arena-effect="arcade"] .arena::before{
  opacity:.45;
  background:linear-gradient(90deg,transparent 0 48%,rgba(196,145,255,.05) 48% 52%,transparent 52%);
}
body[data-arena-effect="void"] .arena::before{
  opacity:1;
  background:radial-gradient(circle at 88% 10%,rgba(227,185,78,.08),transparent 28%);
}
.arena .progress i{background:var(--arena-accent)!important}

.shop-v3{max-width:1120px}
.shop-v3-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
  margin-bottom:18px;
}
.shop-v3-head h1{margin:0;font-size:42px;letter-spacing:-.045em}
.shop-v3-head p{margin:8px 0 0;max-width:610px;color:var(--muted)}
.shop-v3-wallet{
  display:flex;
  border:1px solid var(--border);
  border-radius:9px;
  overflow:hidden;
  background:var(--surface);
}
.shop-wallet-item{
  min-width:90px;
  min-height:50px;
  padding:7px 11px;
  border:0;
  border-right:1px solid var(--border);
  background:transparent;
  color:var(--text);
  display:grid;
  grid-template-columns:auto 1fr;
  column-gap:6px;
  text-align:left;
  align-content:center;
}
.shop-wallet-item:last-child{border-right:0}
.shop-wallet-item>span{grid-row:1/3;color:#e3b94e}
.shop-wallet-item:nth-child(2)>span{color:#75caff}
.shop-wallet-item:nth-child(3)>span{color:#8a939d}
.shop-wallet-item strong{font-size:13px}
.shop-wallet-item small{font-size:8px;text-transform:uppercase;color:var(--muted)}
button.shop-wallet-item{cursor:pointer}
button.shop-wallet-item:hover{background:var(--surface-2)}

.shop-v3-tabs{
  display:flex;
  gap:2px;
  margin-bottom:14px;
  padding:4px;
  width:max-content;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
}
.shop-v3-tabs button{
  min-width:105px;
  border:0;
  border-radius:5px;
  background:transparent;
  color:var(--muted);
  padding:9px 13px;
  font-size:11px;
  font-weight:800;
}
.shop-v3-tabs button.active{background:var(--surface-2);color:var(--text)}
.shop-v3-tabs button span{
  margin-left:5px;
  padding:2px 5px;
  border-radius:999px;
  background:#3a3347;
  color:#c8b5ef;
  font-size:8px;
}

.shop-view{display:grid;gap:14px}
.shop-v3-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-top:4px;
}
.shop-v3-section-head h2{margin:2px 0 0;font-size:19px}
.shop-v3-section-head p,.shop-v3-section-head>span{margin:4px 0 0;color:var(--muted);font-size:10px}
.shop-v3-section-head>a,.shop-text-button{
  border:0;background:transparent;padding:0;
  color:#75caff;font-size:10px;font-weight:800
}

.featured-collection-card{
  min-height:300px;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--collection-accent) 50%,var(--border));
  border-radius:12px;
  background:var(--surface);
}
.collection-art{
  min-height:230px;
  display:grid;
  place-items:center;
  background:var(--collection-bg);
  position:relative;
  overflow:hidden;
}
.collection-art::after{
  content:"";
  position:absolute;
  width:220px;height:220px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:50%;
  transform:translate(45%,45%)
}
.collection-profile-card{
  width:70%;
  min-height:135px;
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  border-radius:12px;
  background:rgba(12,15,19,.68);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:0 18px 42px rgba(0,0,0,.26);
  color:#fff;
  z-index:2;
}
.collection-profile-card>span{color:var(--collection-accent);font-size:9px;font-weight:900;text-transform:uppercase}
.collection-profile-card>strong{font-size:25px;margin-top:5px}
.collection-profile-card>small{margin-top:6px;color:#c3cbd2;font-size:10px;line-height:1.45}
.collection-copy{padding:30px;display:flex;flex-direction:column;justify-content:center}
.collection-copy h2{margin:5px 0 7px;font-size:27px}
.collection-copy p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.collection-items{display:flex;flex-wrap:wrap;gap:5px;margin:15px 0}
.collection-items span{
  padding:5px 7px;border:1px solid var(--border);border-radius:999px;
  color:#aeb5bc;font-size:8px
}
.collection-footer{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto
}
.collection-footer small{color:var(--muted);font-size:9px}

.collection-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.collection-card{
  display:grid;
  grid-template-columns:145px 1fr;
  min-height:190px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--collection-accent) 45%,var(--border));
  border-radius:10px;
  background:var(--surface);
}
.collection-card .collection-art{min-height:190px}
.collection-card .collection-profile-card{width:76%;min-height:100px;padding:11px;border-radius:8px}
.collection-card .collection-profile-card>strong{font-size:15px}
.collection-card .collection-profile-card>small{display:none}
.collection-card .collection-copy{padding:16px}
.collection-card .collection-copy h2{font-size:17px}
.collection-card .collection-copy p{font-size:10px}
.collection-card .collection-items{margin:9px 0}
.collection-card .collection-items span:nth-child(n+4){display:none}
.collection-card .button{font-size:9px;padding:7px 9px}

.popular-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.cosmetic-family-tabs{
  display:flex;gap:6px;flex-wrap:wrap;
  padding-bottom:2px
}
.cosmetic-family-tabs button{
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--surface);
  color:var(--muted);
  padding:7px 10px;
  font-size:9px;font-weight:800
}
.cosmetic-family-tabs button.active{
  border-color:var(--blue);
  color:#fff;
  background:rgba(0,162,255,.09)
}
.shop-v3-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.shop-v3-item{box-shadow:none!important}

.shop-arena-preview{
  width:82%;
  height:76px;
  padding:10px;
  border:1px solid;
  border-radius:8px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  box-shadow:inset 0 0 24px rgba(0,0,0,.12);
}
.shop-arena-preview small{font-size:7px;color:var(--arena-accent);font-weight:900}
.shop-arena-preview strong{font-size:11px;margin:2px 0 5px}
.shop-arena-preview>span{font-size:17px;font-weight:900;color:var(--blue)}
.shop-arena-preview>span>span{color:#9da7b0}

.shop-v3-crate-opening{
  margin-top:0!important;
  background:var(--surface);
}
.coin-pack-modal{max-width:620px}
.coin-pack-modal .coin-pack-grid{margin-top:13px}

.profile-arena-demo{
  min-height:72px;
  padding:12px;
  border:1px solid var(--profile-arena-border);
  border-radius:8px;
  background:var(--profile-arena);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.profile-arena-demo small{font-size:7px;color:var(--muted)}
.profile-arena-demo strong{font-size:11px;margin-top:3px}
.inventory-arena-preview{
  width:88%;height:54px;padding:8px;border:1px solid;border-radius:6px;
  display:flex;flex-direction:column;justify-content:flex-end
}
.inventory-arena-preview small{font-size:6px;color:var(--muted)}
.inventory-arena-preview strong{font-size:9px}

body.theme-light .shop-v3-wallet,
body.theme-light .shop-v3-tabs,
body.theme-light .featured-collection-card,
body.theme-light .collection-card{background:#fff}
body.theme-light .shop-wallet-item{color:#20252a}
body.theme-light .collection-items span{color:#606870}

@media(max-width:900px){
  .featured-collection-card{grid-template-columns:1fr}
  .collection-grid{grid-template-columns:1fr}
  .shop-v3-grid,.popular-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:650px){
  .shop-v3-head{display:grid;align-items:start}
  .shop-v3-wallet{width:100%}
  .shop-wallet-item{min-width:0;flex:1}
  .shop-v3-tabs{width:100%}
  .shop-v3-tabs button{min-width:0;flex:1}
  .collection-card{grid-template-columns:1fr}
  .collection-card .collection-art{min-height:135px}
  .shop-v3-grid,.popular-grid{grid-template-columns:1fr}
}


/* Crate modal + rotating collection previews */
body.crate-modal-open{overflow:hidden}
.crate-modal-backdrop{
  position:fixed!important;
  inset:0;
  z-index:220;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(8,10,12,.78);
}
.crate-modal-backdrop[hidden]{display:none!important}
.crate-modal{
  width:min(900px,calc(100vw - 36px));
  max-height:min(680px,calc(100vh - 48px));
  overflow:auto;
  margin:0!important;
  background:#252a30!important;
  border:1px solid #454d55!important;
  border-radius:13px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.48)!important;
}
.crate-modal .crate-machine{margin-top:4px}
.crate-modal .crate-reel-window{height:142px}

.collection-preview-cycle{
  width:100%;height:100%;min-height:inherit;
  display:grid;place-items:center;
  position:relative;z-index:2;
}
.collection-preview-item{
  width:100%;height:100%;min-height:inherit;
  display:grid;place-items:center;
  position:relative;
}
.collection-preview-item>.shop-profile-banner-preview,
.collection-preview-item>.shop-arena-preview{width:70%;max-width:310px}
.collection-preview-item>.shop-title-preview,
.collection-preview-item>.shop-fx-stage,
.collection-preview-item>.shop-trail-preview,
.collection-preview-item>.shop-mini-word,
.collection-preview-item>.shop-mini-result,
.collection-preview-item>.shop-mini-frame{transform:scale(1.25)}
.collection-preview-caption{
  position:absolute;left:13px;right:13px;bottom:11px;
  padding:7px 9px;border-radius:7px;
  background:rgba(10,12,15,.74);backdrop-filter:blur(4px);
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  color:#fff
}
.collection-preview-caption span{font-size:7px;color:#aeb8c1;text-transform:uppercase;font-weight:800}
.collection-preview-caption strong{font-size:10px}
.collection-preview-cycle.preview-swap .collection-preview-item{animation:collectionPreviewSwap .28s ease both}
@keyframes collectionPreviewSwap{from{opacity:.25;transform:translateY(5px)}to{opacity:1;transform:none}}
.collection-price-line{
  min-height:24px;margin:-2px 0 10px;
  display:flex;align-items:center;gap:7px;flex-wrap:wrap
}
.collection-price-line strong{font-size:13px;color:#f1f3f5}
.collection-price-line s{font-size:10px;color:#7f8992}
.collection-price-line em{font-style:normal;font-size:8px;color:#75c995;text-transform:uppercase;font-weight:800}

.tournament-prizes{grid-template-columns:repeat(4,1fr)!important}
body.theme-light .crate-modal{background:#fff!important;border-color:#d4d9de!important}
body.theme-light .collection-price-line strong{color:#20252a}
@media(max-width:700px){
  .crate-modal-backdrop{padding:10px}
  .crate-modal{width:100%;max-height:calc(100vh - 20px)}
  .tournament-prizes{grid-template-columns:1fr 1fr!important}
}


/* coin store restore */
.shop-wallet-coins{
  cursor:pointer;
}
.shop-wallet-coins:hover{
  background:rgba(227,185,78,.08);
}
.shop-wallet-coins small{
  color:#d3b563;
}

.coin-store-backdrop{
  position:fixed;
  inset:0;
  z-index:120;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(7,9,12,.72);
  backdrop-filter:blur(5px);
}
.coin-store-backdrop[hidden]{display:none!important}
body.coin-store-open{overflow:hidden}

.coin-store-modal{
  width:min(760px,100%);
  max-height:min(760px,90vh);
  overflow:auto;
  border:1px solid #4a4f56;
  border-radius:12px;
  background:#20252a;
  box-shadow:0 28px 80px rgba(0,0,0,.46);
}
.coin-store-modal .modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border-bottom:1px solid var(--border);
}
.coin-store-modal .modal-head h2{
  margin:2px 0 0;
  font-size:22px;
}
.coin-store-modal .modal-body{
  padding:20px;
}
.coin-store-current{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
  padding:11px 13px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#252b31;
}
.coin-store-current span{
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
  font-weight:800;
}
.coin-store-current strong{
  color:#e3b94e;
  font-size:16px;
}
.coin-store-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.coin-store-grid article{
  position:relative;
  min-height:220px;
  padding:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid var(--border);
  border-radius:10px;
  background:linear-gradient(155deg,#2a3036,#22272c);
}
.coin-store-grid article.featured-pack{
  border-color:rgba(227,185,78,.48);
  box-shadow:inset 0 3px 0 rgba(227,185,78,.65);
}
.pack-badge{
  position:absolute;
  top:9px;
  right:9px;
  padding:4px 6px;
  border-radius:999px;
  background:rgba(227,185,78,.12);
  color:#e3b94e;
  font-size:7px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.coin-stack{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  margin-bottom:5px;
  border-radius:50%;
  background:rgba(227,185,78,.1);
  border:1px solid rgba(227,185,78,.3);
  color:#e3b94e;
  font-size:24px;
}
.coin-store-grid article>strong{
  font-size:25px;
}
.coin-store-grid article>span{
  color:var(--muted);
  font-size:9px;
  text-transform:uppercase;
  font-weight:800;
}
.coin-store-grid article>b{
  margin:6px 0 8px;
  font-size:14px;
}
.coin-store-grid .button{
  width:100%;
}
.coin-store-note{
  display:grid;
  gap:4px;
  margin-top:14px;
  padding:11px 13px;
  border:1px solid rgba(87,185,130,.24);
  border-radius:8px;
  background:rgba(87,185,130,.05);
}
.coin-store-note strong{
  color:#87caa2;
  font-size:10px;
}
.coin-store-note span{
  color:var(--muted);
  font-size:10px;
  line-height:1.45;
}

body.theme-light .coin-store-modal{
  background:#fff;
  border-color:#d6dbe0;
}
body.theme-light .coin-store-current,
body.theme-light .coin-store-grid article{
  background:#f2f4f6;
}

@media(max-width:700px){
  .coin-store-grid{grid-template-columns:1fr}
  .coin-store-grid article{min-height:160px}
}

/* ==========================================================
   Equipped strip + payment cleanup
   ========================================================== */
.equipped-strip{
  margin:0 0 16px;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--surface);
}
.equipped-strip-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.equipped-strip-head strong{
  font-size:12px;
  letter-spacing:-.01em;
}
.equipped-strip-head a{
  color:#83ceff;
  font-size:10px;
  font-weight:800;
}
.equipped-strip-grid{
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:6px;
}
.equipped-slot{
  min-width:0;
  padding:8px 9px;
  border:1px solid var(--border-soft);
  border-radius:7px;
  background:var(--surface-2);
}
.equipped-slot span{
  display:block;
  color:var(--muted);
  font-size:7px;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.equipped-slot strong{
  display:block;
  overflow:hidden;
  margin-top:3px;
  font-size:10px;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.profile-top-loadout{
  margin:-10px 0 18px;
}
.profile-top-loadout .cosmetic-loadout{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0 14px;
}
.profile-top-loadout .profile-loadout-live{
  grid-column:1/-1;
  margin:0 0 8px;
}
.profile-top-loadout .cosmetic-loadout>div:not(.profile-loadout-live){
  padding:8px 0;
}
.profile-top-loadout .profile-loadout-live div{
  border-bottom:0;
  padding:0;
}
.profile-top-loadout .loadout-name{
  min-width:0;
}
.profile-top-loadout .loadout-name strong{
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.payment-mode-badge{
  width:max-content;
  margin:0 0 10px auto;
  padding:4px 7px;
  border:1px solid rgba(227,185,78,.35);
  border-radius:999px;
  color:#e3b94e;
  font-size:8px;
  font-weight:900;
  letter-spacing:.06em;
}
.payment-status-line{
  min-height:18px;
  margin-top:10px;
  color:var(--muted);
  font-size:10px;
  text-align:center;
}
.coin-store-rule{
  margin:5px 0 0;
  color:var(--muted);
  font-size:9px;
  text-align:center;
}
.coin-store-grid .empty{
  grid-column:1/-1;
}
body.theme-light .equipped-strip{
  background:#fff;
}
body.theme-light .equipped-slot{
  background:#f2f4f6;
}

@media(max-width:1000px){
  .equipped-strip-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:700px){
  .equipped-strip-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-top-loadout .cosmetic-loadout{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================
   Purchase history + payment admin
   ========================================================== */
.purchase-history-list,
.admin-payment-list{
  display:grid;
  gap:8px;
}
.purchase-history-row,
.admin-payment-row{
  display:grid;
  align-items:center;
  gap:14px;
  padding:12px 13px;
  border:1px solid var(--border-soft);
  border-radius:9px;
  background:var(--surface-2);
}
.purchase-history-row{
  grid-template-columns:minmax(0,1fr) auto;
}
.purchase-history-main,
.purchase-history-meta,
.admin-payment-main,
.admin-payment-state{
  display:grid;
  gap:3px;
}
.purchase-history-main strong,
.admin-payment-main strong{
  font-size:11px;
}
.purchase-history-main span,
.admin-payment-main span,
.admin-payment-main small,
.purchase-history-meta small,
.admin-payment-state small{
  color:var(--muted);
  font-size:9px;
}
.purchase-history-meta,
.admin-payment-state{
  justify-items:end;
  text-align:right;
}
.purchase-status{
  width:max-content;
  padding:4px 7px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.purchase-status.status-paid,
.purchase-status.status-dispute_won{
  border-color:rgba(85,185,130,.35);
  color:#55b982;
}
.purchase-status.status-partially_refunded{
  border-color:rgba(227,185,78,.35);
  color:#e3b94e;
}
.purchase-status.status-refunded{
  border-color:rgba(74,169,255,.35);
  color:#4aa9ff;
}
.purchase-status.status-disputed,
.purchase-status.status-dispute_lost,
.purchase-status.status-failed{
  border-color:rgba(210,92,92,.38);
  color:#dc7373;
}
.payment-debt-notice{
  margin:0 0 10px;
  padding:9px 11px;
  border:1px solid rgba(227,185,78,.3);
  border-radius:8px;
  color:#e3b94e;
  background:rgba(227,185,78,.06);
  font-size:9px;
  font-weight:800;
}
.admin-payment-row{
  grid-template-columns:minmax(0,1.5fr) minmax(150px,.7fr) auto;
}
.admin-payment-main{
  min-width:0;
}
.admin-payment-state{
  justify-items:start;
  text-align:left;
}
body.theme-light .purchase-history-row,
body.theme-light .admin-payment-row{
  background:#f4f6f8;
}

@media(max-width:760px){
  .purchase-history-row,
  .admin-payment-row{
    grid-template-columns:1fr;
  }
  .purchase-history-meta,
  .admin-payment-state{
    justify-items:start;
    text-align:left;
  }
}


/* ==========================================================
   Verified competitive results
   ========================================================== */
.result-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-bottom:6px;
}
.result-heading h2{
  margin:0;
}
.verified-result{
  padding:4px 8px;
  border:1px solid rgba(85,185,130,.38);
  border-radius:999px;
  color:#55b982;
  background:rgba(85,185,130,.07);
  font-size:8px;
  font-weight:900;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.tournament-score{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 10px;
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--muted);
  font-size:9px;
}
.tournament-score strong{
  color:var(--text);
  font-size:11px;
}
.admin-entrant-list small{
  text-transform:capitalize;
}


/* ==========================================================
   Level matchmaking + tournament standings
   ========================================================== */
.quick-match-card{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) auto minmax(220px,.9fr);
  align-items:center;
  gap:18px;
  margin-bottom:14px;
  padding:16px 18px;
  border:1px solid rgba(74,169,255,.28);
  border-radius:12px;
  background:
    linear-gradient(135deg,rgba(74,169,255,.08),transparent 55%),
    var(--surface);
}
.quick-match-copy h2{
  margin:2px 0 4px;
  font-size:20px;
}
.quick-match-copy p{
  margin:0;
  color:var(--muted);
  font-size:10px;
}
.quick-match-level{
  display:grid;
  gap:3px;
  min-width:90px;
  text-align:center;
}
.quick-match-level span{
  color:var(--muted);
  font-size:8px;
  font-weight:850;
  text-transform:uppercase;
}
.quick-match-level strong{
  font-size:18px;
}
.quick-match-action{
  display:grid;
  grid-template-columns:auto auto;
  align-items:center;
  justify-content:end;
  gap:7px;
}
.quick-match-action>span{
  grid-column:1/-1;
  min-height:14px;
  color:var(--muted);
  font-size:9px;
  text-align:right;
}
.match-result{
  margin:12px 0;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:9px;
  background:var(--surface-2);
  text-align:center;
}
.match-result strong{
  display:block;
  font-size:15px;
}
.match-result span{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
}
.tournament-standings{
  display:grid;
  gap:8px;
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid var(--border-soft);
}
.tournament-winner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 10px;
  border:1px solid rgba(227,185,78,.28);
  border-radius:8px;
  background:rgba(227,185,78,.05);
}
.tournament-winner span{
  color:#e3b94e;
  font-size:8px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.05em;
}
.tournament-winner strong{
  font-size:11px;
}
.tournament-standings-list{
  display:grid;
  gap:5px;
}
.tournament-standings-list>div{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:7px 8px;
  border-radius:7px;
  background:var(--surface-2);
}
.tournament-standings-list span{
  color:var(--muted);
  font-size:8px;
  font-weight:900;
}
.tournament-standings-list strong,
.tournament-standings-list b{
  font-size:9px;
}
body.theme-light .quick-match-card,
body.theme-light .match-result{
  background:#fff;
}
body.theme-light .tournament-standings-list>div{
  background:#f3f5f7;
}
@media(max-width:800px){
  .quick-match-card{
    grid-template-columns:1fr auto;
  }
  .quick-match-action{
    grid-column:1/-1;
    justify-content:start;
  }
  .quick-match-action>span{
    text-align:left;
  }
}
@media(max-width:520px){
  .quick-match-card{
    grid-template-columns:1fr;
  }
  .quick-match-level{
    text-align:left;
  }
}

/* Friends beta notice: visible without interfering with live announcements. */
.friends-beta-banner{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin:12px 0 16px;padding:12px 16px;
  background:var(--surface);color:var(--text);
  border:1px solid var(--border);border-left:4px solid var(--blue);
  border-radius:9px;font-size:13px;line-height:1.5;
}
.friends-beta-banner strong{font-size:11px;letter-spacing:.09em;white-space:nowrap;color:var(--blue)}
.friends-beta-banner span{flex:1;min-width:210px;color:var(--muted)}


/* Friends-beta feedback shortcut in the persistent header */
.header-feedback-link{
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
  padding:8px 12px;border:1px solid rgba(0,162,255,.48);border-radius:8px;
  background:rgba(0,162,255,.11);color:#bfe6ff;font-weight:800;font-size:13px;
  white-space:nowrap;
}
.header-feedback-link:hover,.header-feedback-link.active{background:var(--blue);color:#fff}
body.theme-light .header-feedback-link{color:#116ea2;border-color:#86bdd9;background:#edf8ff}
body.theme-light .header-feedback-link:hover,body.theme-light .header-feedback-link.active{background:#116ea2;color:#fff}
@media(min-width:821px) and (max-width:1160px){
  .topbar-inner{gap:12px}
  .main-nav a{padding:0 8px;font-size:12px}
  .topbar-inner .nav-currency{display:none!important}
}
@media(max-width:560px){.header-feedback-link{font-size:11px;padding:8px 9px}}
.feedback-page{max-width:920px}
.feedback-copy{color:var(--muted);font-size:14px;line-height:1.6}
.feedback-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(220px,1fr);gap:16px}
.feedback-card{padding:24px}
.feedback-card h2{margin:0 0 14px;font-size:20px}
.feedback-card .form-group{margin-bottom:18px}
.feedback-card button{min-width:155px}
.feedback-guidance{padding:24px}
.feedback-guidance h3{margin:0 0 10px}
.feedback-guidance p{color:var(--muted);line-height:1.55;font-size:13px}
.feedback-message{min-height:165px}
.feedback-status{margin:12px 0;color:var(--muted);font-size:13px;line-height:1.5}
.feedback-success{border:1px solid var(--border);border-left:3px solid var(--green);border-radius:8px;padding:18px;background:var(--surface-2)}
.feedback-success h2{margin:0 0 8px}
.admin-feedback-list{display:grid;gap:12px}
.admin-feedback-item{background:var(--surface);border:1px solid var(--border);border-radius:9px;padding:16px;display:grid;gap:12px}
.admin-feedback-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px 12px}
.admin-feedback-meta strong{font-size:13px}
.admin-feedback-meta small{font-size:11px;color:var(--muted)}
.admin-feedback-message{font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.admin-feedback-control{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);width:max-content}
.admin-feedback-control .select{min-width:145px}
@media(max-width:720px){.feedback-layout{grid-template-columns:1fr}.feedback-card,.feedback-guidance{padding:18px}}


/* Keep feedback as a native header control on every beta page. */
.topbar-inner .header-feedback-link{
  flex-shrink:0;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:7px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  transition:background .15s,border-color .15s;
}
.topbar-inner .header-feedback-link:hover,
.topbar-inner .header-feedback-link.active{
  background:var(--surface-3);
  border-color:var(--blue);
  color:var(--text);
}
body.theme-light .topbar-inner .header-feedback-link{
  background:#f1f3f5;color:#333940;border-color:#d7dce1;
}
body.theme-light .topbar-inner .header-feedback-link:hover{
  background:#e9f4fb;color:#171a1d;border-color:#5e94b5;
}
.player-profile-link{color:inherit;text-decoration:none}
.player-profile-link:hover strong{color:var(--blue);text-decoration:underline}
.player-page{max-width:1000px}
.player-hero{display:flex;align-items:center;gap:25px;margin-top:18px;padding:25px}
.player-large-avatar{width:120px;height:120px;border-radius:19px;display:grid;place-items:center;flex:0 0 auto;background:var(--surface-3);font-size:48px;font-weight:850;overflow:hidden}
.player-large-avatar img{width:100%;height:100%;object-fit:cover}
.player-heading h1{font-size:32px;margin:5px 0}
.player-handle{font-size:13px;color:var(--muted);margin:0 0 8px}
.player-bio{font-size:14px;color:var(--text);line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-width:650px}
.player-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.player-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.player-metrics>div{border:1px solid var(--border);background:var(--surface-2);padding:15px;border-radius:8px}
.player-metrics span{display:block;color:var(--muted);font-size:11px}
.player-metrics strong{display:block;margin-top:7px;font-size:19px}
.player-achievements{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.player-achievement{display:flex;gap:12px;align-items:center;border:1px solid var(--border);background:var(--surface-2);padding:14px;border-radius:8px}
.player-achievement>strong{font-size:23px;color:var(--blue)}
.player-achievement b,.player-achievement small{display:block}
.player-achievement b{font-size:13px}
.player-achievement small{color:var(--muted);font-size:11px;margin-top:4px;line-height:1.5}
#playerReportPanel form{max-width:620px}
@media(max-width:820px){
  .header-feedback-link{display:none!important}
  .player-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .player-hero{flex-direction:column;align-items:flex-start}
  .player-heading h1{font-size:27px}
  .player-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Friends-only Messages / moderated chat */
.chat-page{max-width:1170px}
.chat-page-caption{margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--muted)}
.chat-layout{display:grid;grid-template-columns:minmax(200px,290px) minmax(0,1fr);gap:14px;min-height:560px;margin-top:16px}
.chat-sidebar,.chat-panel{min-width:0}
.chat-sidebar{display:flex;flex-direction:column;gap:12px;overflow:hidden}
.chat-sidebar .platform-section-head{margin-bottom:4px}
.chat-friends{display:grid;align-content:start;gap:6px;max-height:390px;overflow:auto}
.chat-friend{
  width:100%;display:flex;flex-direction:column;gap:4px;text-align:left;
  border:1px solid var(--border);background:var(--surface-2);color:var(--text);
  padding:11px 12px;border-radius:8px;font:inherit;cursor:pointer
}
.chat-friend:hover,.chat-friend.selected{border-color:var(--blue);background:var(--surface-3)}
.chat-friend strong{font-size:13px;overflow-wrap:anywhere}
.chat-friend small{font-size:11px;color:var(--muted)}
.chat-blocked{border-top:1px solid var(--border);padding-top:12px;margin-top:auto}
.chat-blocked>summary{font-size:12px;font-weight:700;color:var(--muted);cursor:pointer}
.chat-blocked-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0}
.chat-blocked-row span{font-size:12px;overflow-wrap:anywhere}
.chat-blocked-row button{font-size:11px;padding:6px 10px}
.chat-panel{display:flex;flex-direction:column;min-height:560px;padding:0;overflow:hidden}
.chat-conversation-header{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  min-height:71px;border-bottom:1px solid var(--border);padding:14px 16px
}
.chat-conversation-header strong{display:block;font-size:15px}
.chat-conversation-header small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.chat-history{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;overflow:auto;min-height:240px;max-height:480px;padding:19px 17px}
.chat-bubble{max-width:83%;min-width:75px;border-radius:11px;padding:11px 13px;overflow-wrap:anywhere;background:var(--surface-2);border:1px solid var(--border)}
.chat-bubble.own{align-self:flex-end;background:rgba(0,162,255,.12);border-color:rgba(0,162,255,.35)}
.chat-bubble.incoming{align-self:flex-start}
.chat-bubble p{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-bubble-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:8px}
.chat-bubble-meta small{color:var(--muted);font-size:10px}
.chat-report-trigger{background:transparent;border:0;cursor:pointer;color:var(--muted);font-size:10px;padding:2px 4px;text-decoration:underline}
.chat-report-trigger:hover{color:var(--red)}
.chat-compose{border-top:1px solid var(--border);padding:14px 16px 12px}
.chat-compose-row{display:flex;align-items:flex-end;gap:9px}
.chat-compose-row .textarea{min-height:58px;max-height:130px;resize:vertical;flex:1}
.chat-compose-row .button{min-height:42px}
.chat-compose .help{margin:9px 0 0}
.chat-report-dialog{
  border:1px solid var(--border);background:var(--surface);
  color:var(--text);border-radius:12px;padding:23px;
  width:min(480px,calc(100vw - 30px));max-height:90vh;overflow:auto;
  box-shadow:0 24px 70px rgba(0,0,0,.5);
}
.chat-report-dialog::backdrop{background:rgba(0,0,0,.7)}
.chat-report-dialog h2{margin:0 0 12px;font-size:21px}
.chat-report-dialog .textarea{min-height:100px}
.chat-report-close{position:absolute;right:14px;top:10px;border:0;background:transparent;color:var(--muted);font-size:24px;cursor:pointer}
body.theme-light .chat-bubble.own{background:#e7f5ff;color:#172c3c}
body.theme-light .chat-report-dialog{background:#fff;color:#171a1d}
@media(max-width:760px){
  .chat-layout{grid-template-columns:1fr;min-height:0}
  .chat-sidebar{max-height:240px;overflow:auto}
  .chat-friends{display:flex;overflow:auto;gap:8px}
  .chat-friend{min-width:150px;max-width:220px}
  .chat-panel{min-height:450px}
  .chat-history{max-height:45vh}
}
@media(max-width:480px){.chat-bubble{max-width:95%}.chat-compose-row{flex-direction:column;align-items:stretch}.chat-compose-row button{align-self:flex-end}}


/* Navigation hotfix: preserve the Messages link on desktops, and keep the mobile menu usable on smaller screens. */
@media (min-width:821px) and (max-width:1020px){
  .main-nav{display:none}
  .mobile-toggle{display:block}
  .topbar-inner{gap:12px}
  .mobile-nav{
    position:fixed;top:64px;left:0;right:0;z-index:59;
    background:var(--surface);border-bottom:1px solid var(--border);
    padding:7px 16px;
  }
  .mobile-nav.open{display:grid}
  .mobile-nav a{padding:11px;border-radius:6px;color:#d6dade;font-size:14px}
  .mobile-nav a:hover{background:var(--surface-2)}
}
@media (max-width:1020px){
  .mobile-nav{max-height:calc(100vh - 64px);overflow-y:auto}
}


/* Always-visible Messages action, independent of the navigation menu. */
.topbar-inner .header-messages-link{
  display:inline-flex!important;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;
  min-height:35px;padding:7px 12px;border:1px solid var(--border);border-radius:7px;
  background:var(--surface-2);color:var(--text);font-size:12px;font-weight:750;
  white-space:nowrap;text-decoration:none;
}
.topbar-inner .header-messages-link:hover,
.topbar-inner .header-messages-link.active{
  border-color:var(--blue);background:var(--surface-3);color:var(--text);
}
body.theme-light .topbar-inner .header-messages-link{
  background:#f1f3f5;border-color:#d7dce1;color:#333940;
}
body.theme-light .topbar-inner .header-messages-link:hover,
body.theme-light .topbar-inner .header-messages-link.active{
  background:#e9f4fb;border-color:#5e94b5;color:#171a1d;
}
/* Avoid squeezing the main desktop navigation into a 1024–1250px header. */
@media (min-width:821px) and (max-width:1250px){
  .main-nav{display:none}
  .mobile-toggle{display:block}
  .topbar-inner{gap:12px}
  .nav-currency{display:none!important}
  .mobile-nav{
    position:fixed;top:64px;left:0;right:0;z-index:59;
    background:var(--surface);border-bottom:1px solid var(--border);
    padding:7px 16px;
  }
  .mobile-nav.open{display:grid}
  .mobile-nav a{padding:11px;border-radius:6px;color:#d6dade;font-size:14px}
  .mobile-nav a:hover{background:var(--surface-2)}
}
@media(max-width:600px){
  .topbar-inner{gap:9px}
  .nav-account .account-name,.nav-account .chevron{display:none}
}
@media(max-width:420px){
  .topbar-inner .header-messages-link{min-width:36px;padding:7px 9px}
  .header-messages-text{display:none}
}


/* Plinko: free arcade score mode; no coin or wallet interactions. */
.plinko-page{max-width:1180px}
.plinko-intro{display:flex;align-items:center;justify-content:space-between;gap:20px}
.plinko-overview{display:flex;align-items:center;gap:14px;padding:15px 20px;margin-bottom:14px}
.plinko-overview-mark{display:grid;place-items:center;flex:0 0 auto;width:46px;height:46px;font-size:25px;color:#c6ecff;background:#223e51;border:1px solid #356684;border-radius:10px}
.plinko-overview strong{font-size:14px}
.plinko-overview p{font-size:12px;color:var(--muted);margin:6px 0 0;line-height:1.5}
.plinko-overview p strong{font-size:inherit}
.plinko-arcade-flag{margin-left:auto;color:#9bd4f6;font-size:10px;letter-spacing:.08em;font-weight:850;white-space:nowrap}
.plinko-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.72fr);gap:16px;align-items:start}
.plinko-cabinet{background:#101820;border:1px solid #344756;border-radius:12px;padding:12px;box-shadow:0 16px 34px rgba(0,0,0,.16)}
.plinko-cabinet-top{display:flex;align-items:center;justify-content:space-between;gap:15px;color:#8bb4ca;font-size:10px;font-weight:850;letter-spacing:.09em;padding:5px 7px 12px}
.plinko-live-label{color:#85ccae;white-space:nowrap}
.plinko-live-label i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#64c99e;margin-right:5px}
#plinkoBoard{display:block;width:100%;height:auto;aspect-ratio:720/750;border-radius:7px;touch-action:manipulation;cursor:crosshair}
.plinko-board-help{color:#93a6b5;font-size:11px;text-align:center;line-height:1.5;margin:10px 2px 4px}
.plinko-sidebar{display:grid;gap:14px}
.plinko-sidebar .platform-section{margin:0}
.plinko-main-score{border:1px solid var(--border);border-radius:8px;background:var(--surface-2);padding:17px;text-align:center}
.plinko-main-score strong{display:block;color:var(--text);font-size:clamp(34px,4vw,48px);font-variant-numeric:tabular-nums;line-height:1.1}
.plinko-main-score span{display:block;margin-top:5px;color:var(--muted);font-size:10px;letter-spacing:.11em;font-weight:850}
.plinko-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}
.plinko-stat-grid>div{padding:12px 10px;background:var(--surface-2);border:1px solid var(--border);border-radius:8px}
.plinko-stat-grid span{display:block;color:var(--muted);font-size:11px}
.plinko-stat-grid strong{display:block;margin-top:5px;color:var(--text);font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}
.plinko-status{min-height:38px;font-size:12px;line-height:1.5;color:var(--muted);margin:15px 0 0}
.plinko-control-label{display:flex;justify-content:space-between;gap:8px;font-weight:700;font-size:13px;margin-bottom:14px}
.plinko-control-label span{font-size:10px;color:var(--muted);font-weight:700}
#plinkoAim{width:100%;accent-color:var(--blue);cursor:pointer;min-height:28px}
.plinko-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:16px}
.plinko-actions .button{font-size:13px;padding:12px 10px}
.plinko-actions .button:disabled{opacity:.55;cursor:not-allowed}
.plinko-controls .help{font-size:11px;line-height:1.55;margin-top:13px}
.plinko-tips h2{margin:0 0 12px;font-size:16px}
.plinko-tips p{font-size:12px;line-height:1.6;color:var(--muted);margin:0 0 10px}
.plinko-tips p:last-child{margin-bottom:0}
.plinko-live-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1020px){.home-mode-grid:has(.home-mode-card.plinko-tile){grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:930px){.plinko-layout{grid-template-columns:1fr}.plinko-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.plinko-tips{grid-column:1/-1}}
@media(max-width:600px){.plinko-sidebar{grid-template-columns:1fr}.plinko-tips{grid-column:auto}.plinko-intro{display:block}.plinko-intro>a{margin-top:12px}.plinko-overview{align-items:flex-start}.plinko-arcade-flag{display:none}.plinko-cabinet{padding:6px}.plinko-cabinet-top{font-size:8px;padding:6px 6px 9px}}
body.theme-light .plinko-overview-mark{background:#e6f4ff;color:#1877af;border-color:#a4d6ee}


/* Plinko's Play menu tile fills the row rather than leaving an empty cell. */
.mode-tile.plinko-mode{
  grid-column:1/-1;
  min-height:145px;
  border-color:rgba(72,170,219,.4);
  background:linear-gradient(112deg,rgba(0,162,255,.09),var(--surface) 55%);
}
.mode-tile.plinko-mode:hover{background:var(--surface-2);border-color:var(--blue)}
.home-mode-card.plinko-tile{border-color:rgba(72,170,219,.42);background:linear-gradient(135deg,rgba(0,162,255,.1),#24292f 65%)}
.home-mode-card.plinko-tile:hover{border-color:var(--blue)}
body.theme-light .mode-tile.plinko-mode{background:linear-gradient(112deg,#e9f6fc,var(--surface) 65%)}
body.theme-light .home-mode-card.plinko-tile{background:linear-gradient(112deg,#e9f6fc,#fff 70%)}


/* Developer display-role management; labels have no permission implications. */
.admin-badge-roles{display:grid;gap:9px;margin-top:17px}
.admin-badge-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;border:1px solid var(--border);background:var(--surface-2);border-radius:8px;padding:12px}
.admin-badge-row>.help{margin:0 auto 0 0}
.admin-role-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;min-width:0}
.admin-role-control-group{display:grid;grid-template-columns:minmax(100px,1fr) auto;gap:8px;align-items:end}
.admin-role-control-group>label{grid-column:1/-1;color:var(--muted);font-size:11px;font-weight:700}
.admin-role-control-group .select{min-width:0;width:100%}
.admin-role-control-group .button{white-space:nowrap;font-size:11px;padding:10px}
.admin-assigned-badges{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}
.user-role-badge,.admin-assigned-badge{
  --badge-color:#4ba6d8;
  display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;
  padding:6px 10px;background:color-mix(in srgb,var(--badge-color) 18%,var(--surface));
  border:1px solid var(--badge-color);border-radius:6px;
  color:var(--text);font-size:11px;font-weight:800;line-height:1;
}
.admin-assigned-badge{cursor:pointer;font-family:inherit}
.admin-assigned-badge:hover{background:color-mix(in srgb,var(--badge-color) 32%,var(--surface))}
.public-role-badges{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}
.public-role-badges:empty{display:none}
#myProfileBadges{margin-bottom:9px}
#roles #createRoleForm{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
#roles #createRoleForm .label{display:grid;gap:7px}
#roles #newRoleName{min-width:220px}
#roles #newRoleColor{border:1px solid var(--border);border-radius:6px;background:transparent;height:37px;width:64px;padding:2px}
#myWalletAdmin .admin-form-grid{max-width:850px;align-items:end}
#myWalletAdmin .admin-form-grid .label{display:grid;gap:9px;color:var(--muted)}
#myWalletAdmin .admin-form-grid .button{white-space:nowrap}
@media(max-width:1080px){.admin-role-controls{grid-template-columns:1fr}}
@media(max-width:540px){.admin-role-control-group{grid-template-columns:1fr}.admin-role-control-group>.button{width:100%}}


/* Role rows span the entire Player Manager so controls never overlap the wallet editor. */
.admin-player-row{grid-template-columns:minmax(180px,1fr) minmax(280px,1.3fr)}
.admin-player-row>.admin-role-controls,.admin-player-row>.admin-row-actions{grid-column:1/-1}
@media(max-width:980px){.admin-player-row{grid-template-columns:1fr}}
/* Respect truly hidden role-dependent sections regardless of section display styles. */
[data-developer-only][hidden],#myWalletAdmin[hidden],#myWalletTab[hidden]{display:none!important}


/* Personalization and readability (independent of game cosmetics). */
:root{--ui-zoom:100%}
html{zoom:var(--ui-zoom)}
.profile-rename-panel{
  border:1px solid var(--border);border-radius:9px;padding:15px;
  margin:14px 0;background:var(--surface-2)
}
.profile-rename-controls{display:flex;align-items:center;gap:9px;margin-top:8px}
.profile-rename-controls .input{min-width:0;flex:1}
.profile-rename-controls .button{flex:0 0 auto}
.profile-rename-panel .help{line-height:1.6}
.profile-accent-editor{margin-top:14px}
.profile-accent-choices{display:flex;align-items:center;gap:12px;margin-top:8px}
.profile-accent-choices input[type=color]{
  width:58px;height:42px;padding:3px;border-radius:8px;
  background:var(--surface-2);border:1px solid var(--border);cursor:pointer
}
.profile-accent-swatch{
  --profile-accent:#4ba6d8;
  display:inline-flex;align-items:center;
  border:1px solid var(--profile-accent);
  background:color-mix(in srgb,var(--profile-accent) 18%,var(--surface));
  border-radius:7px;padding:11px 14px;font-size:12px;font-weight:800
}
.profile-banner-display{border:2px solid var(--border)}
.player-hero{--profile-accent:#4ba6d8;border:2px solid var(--profile-accent)}
.player-hero .player-large-avatar{border:2px solid var(--profile-accent)}
body.high-contrast{
  --text:#ffffff;--muted:#e2e8f0;--muted-2:#c5d0dc;
  --bg:#0d1117;--surface:#151c25;--surface-2:#202a35;
  --surface-3:#2a3745;--border:#bbc7d2;--border-soft:#8091a1;
  --blue:#7bd0ff;--blue-hover:#4bb9f5;
  color:var(--text)
}
body.theme-light.high-contrast{
  --text:#080d15;--muted:#253548;--muted-2:#3b4b5e;
  --bg:#ffffff;--surface:#ffffff;--surface-2:#f1f5f9;
  --surface-3:#e3edf6;--border:#364658;--border-soft:#6b7c8c;
  --blue:#005e98;--blue-hover:#0078bb;
}
body.high-contrast :focus-visible{
  outline:3px solid var(--blue)!important;outline-offset:3px!important
}
body.high-contrast .help,body.high-contrast .eyebrow,body.high-contrast .label{
  color:var(--muted)
}
@media(max-width:600px){
  .profile-rename-controls{flex-direction:column;align-items:stretch}
  .profile-rename-controls .button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}


/* Profile highlights, typing shortcuts and social notifications */
.header-notifications-link{
  position:relative;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;
  min-height:36px;padding:7px 11px;flex:0 0 auto;
  border:1px solid var(--border);background:var(--surface-2);border-radius:7px;
  font-size:12px;font-weight:750;color:var(--text);text-decoration:none;
}
.header-notifications-link:hover,.header-notifications-link.active{
  border-color:var(--blue);background:var(--surface-3);color:var(--text)
}
.nav-notifications-count{
  position:absolute;right:-6px;top:-7px;min-width:18px;height:18px;
  padding:2px 4px;background:#126aa0;color:#fff;border-radius:100px;
  display:grid;place-items:center;font-size:10px;font-weight:850;line-height:1
}
.nav-notifications-count[hidden]{display:none!important}
.notification-list{display:grid;gap:10px}
.notification-row{
  display:flex;align-items:center;justify-content:space-between;gap:15px;
  border:1px solid var(--border);border-radius:9px;background:var(--surface-2);
  padding:14px 16px
}
.notification-row>div{min-width:0}
.notification-row strong,.notification-row span{display:block}
.notification-row strong{font-size:13px;overflow-wrap:anywhere}
.notification-row span{font-size:12px;color:var(--muted);margin-top:6px}
.notification-row .button{flex-shrink:0}
.profile-showcase-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.showcase-option{display:flex;align-items:center;gap:10px;border:1px solid var(--border);border-radius:8px;padding:12px;font-size:12px;background:var(--surface-2);cursor:pointer}
.showcase-option:has(input:checked){border-color:var(--blue);background:var(--surface-3)}
.showcase-option input{accent-color:var(--blue)}
.player-status{
  margin:9px 0;color:var(--text);
  border-left:3px solid var(--blue);
  background:var(--surface-2);padding:8px 11px;border-radius:4px;
  font-size:13px;line-height:1.55;overflow-wrap:anywhere
}
.spotlight-award{border-color:var(--blue);background:var(--surface-2)}
.shortcut-settings{margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}
.shortcut-settings h3{margin:0 0 8px;font-size:16px}
.shortcut-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:15px}
.shortcut-settings-grid .label{display:grid;gap:9px}
.shortcut-settings-grid .select{width:100%;min-width:0}
@media(min-width:820px) and (max-width:1320px){.header-notifications-text{display:none}}
@media(max-width:640px){
  .header-notifications-text{display:none}
  .header-notifications-link{padding:7px 9px}
  .shortcut-settings-grid,.profile-showcase-options{grid-template-columns:1fr}
  .notification-row{flex-direction:column;align-items:stretch}
  .notification-row .button{align-self:flex-start}
}


/* Native touch-keyboard entry for iOS and Android typing rounds. */
.mobile-game-controls{display:none}
.mobile-game-controls[hidden]{display:none!important}
@media(max-width:820px),(pointer:coarse){
  .mobile-game-controls{
    display:grid;gap:9px;margin-top:16px;padding:15px;
    border:1px solid var(--border);border-radius:10px;
    background:var(--surface-2)
  }
  .mobile-game-controls>label{
    color:var(--text);font-weight:750;font-size:13px
  }
  .mobile-start-button{width:100%;min-height:46px;font-size:15px}
  .mobile-typing-input{
    width:100%;height:49px;min-height:49px;border:2px solid var(--border);
    border-radius:9px;background:var(--surface);color:var(--text);
    padding:12px;font-size:16px!important;
    caret-color:var(--blue);-webkit-appearance:none;appearance:none;
    touch-action:manipulation;opacity:1;pointer-events:auto
  }
  .mobile-typing-input:focus{
    border-color:var(--blue);outline:3px solid color-mix(in srgb,var(--blue) 25%,transparent);
    outline-offset:1px
  }
  .mobile-typing-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .mobile-typing-actions .button{min-height:46px;font-size:13px;padding:10px}
  .mobile-game-controls .help{line-height:1.55;font-size:11px;margin:2px 0 0}
  #gameArea .arena{scroll-margin-top:85px}
  .key-help{display:none}
  .game-head{gap:13px}
  .target-wrap{padding:24px 0 18px}
  .arena{padding:14px}
  .guess{font-size:clamp(29px,8vw,46px)}
}
.score-explainer{
  margin-top:13px;border:1px solid var(--border);
  border-radius:9px;background:var(--surface-2);overflow:hidden
}
.score-explainer summary{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:13px 15px;cursor:pointer;font-size:12px;
  color:var(--text);font-weight:750;list-style:none
}
.score-explainer summary::-webkit-details-marker{display:none}
.score-explainer summary span{color:var(--blue)}
.score-explainer summary strong{font-size:11px;color:var(--muted);font-weight:650}
.score-explainer[open] summary{border-bottom:1px solid var(--border)}
.score-explainer-body{padding:14px 16px;font-size:12px;line-height:1.65;color:var(--muted)}
.score-explainer-body>p{margin:0 0 12px}
.score-explainer-body>p:last-child{margin-bottom:0}
.score-table{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0}
.score-table>span{
  background:var(--surface);border:1px solid var(--border);border-radius:6px;
  padding:9px;font-size:11px;color:var(--muted);
  display:flex;align-items:center;justify-content:space-between;gap:5px
}
.score-table strong{font-size:14px;color:var(--text)}
.result-score-caption{margin-top:0;margin-bottom:15px}
@media(max-width:600px){
  .score-explainer summary{align-items:flex-start;flex-direction:column}
  .score-table{grid-template-columns:repeat(2,1fr)}
}


/* A discoverable directory replaces an overwhelming More menu. */
.explore-page .platform-page-heading p{color:var(--muted);margin-top:10px;max-width:740px;line-height:1.6}
.explore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-top:20px}
.explore-grid .platform-section{min-width:0}
.explore-links{display:grid;gap:8px}
.explore-links a{
  display:flex;flex-direction:column;gap:5px;padding:12px 13px;border:1px solid var(--border);
  border-radius:8px;background:var(--surface-2);font-size:13px;font-weight:760;color:var(--text);
  text-decoration:none;transition:background .15s,border-color .15s
}
.explore-links a:hover,.explore-links a:focus-visible{
  background:var(--surface-3);border-color:var(--blue);color:var(--text)
}
.explore-links a span{font-size:11px;line-height:1.5;color:var(--muted);font-weight:450}
.how-score-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:12px 0}
.how-score-examples div{
  display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 4px;
  border:1px solid var(--border);border-radius:7px;background:var(--surface-2)
}
.how-score-examples span{font-size:10px;color:var(--muted)}
.how-score-examples strong{font-size:19px;color:var(--text)}
@media(max-width:730px){.explore-grid{grid-template-columns:1fr}}
@media(max-width:400px){.how-score-examples{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* Daily Mix — dashboard-sized rotating skill cards. Uses existing AutoType palette. */
.daily-mix-section{margin-bottom:14px}
.daily-mix-play-promo{
  margin-top:16px;padding:20px;
  background:var(--surface);border:1px solid var(--border);border-radius:11px
}
.daily-mix-heading{align-items:center;margin-bottom:14px}
.daily-mix-heading h2{font-size:18px}
.daily-mix-summary{
  display:inline-flex;align-items:center;justify-content:center;
  padding:7px 11px;min-height:29px;border:1px solid var(--border);
  border-radius:6px;background:var(--surface-2);
  font-size:10px;font-weight:800;letter-spacing:.04em;
  color:#a7d8f5;white-space:nowrap
}
.daily-mix-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;align-items:stretch
}
.daily-mix-card{
  display:flex;flex-direction:column;min-width:0;min-height:148px;
  padding:14px 15px;
  background:#24292f;border:1px solid var(--border);
  border-radius:9px;color:var(--text);
  text-decoration:none;
  transition:background .15s ease,border-color .15s ease,transform .15s ease
}
.daily-mix-card:hover,.daily-mix-card:focus-visible{
  background:var(--surface-2);border-color:#607586;transform:translateY(-1px)
}
.daily-mix-card:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.daily-mix-card.is-complete{border-color:rgba(87,185,130,.38)}
.daily-mix-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.daily-mix-slot{
  font-size:9px;font-weight:850;letter-spacing:.09em;color:var(--muted);
  white-space:nowrap
}
.daily-mix-state{
  font-size:9px;font-weight:800;letter-spacing:.05em;color:var(--muted-2);
  white-space:nowrap
}
.daily-mix-card.is-complete .daily-mix-state{color:#91d3a9}
.daily-mix-title{display:block;margin:13px 0 5px;font-size:16px;font-weight:800;letter-spacing:-.025em}
.daily-mix-description{
  display:block;margin-bottom:14px;color:var(--muted);font-size:11px;line-height:1.5
}
.daily-mix-action{
  display:block;margin-top:auto;font-size:11px;font-weight:800;color:#8bd2ff
}
.daily-mix-footnote{
  margin:11px 0 0;color:var(--muted-2);font-size:10px;line-height:1.45
}
.daily-mix-result{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:14px 0;padding:12px 14px;
  border:1px solid rgba(87,185,130,.4);border-radius:8px;background:#24312e
}
.daily-mix-result strong{font-size:13px;color:#a2ddba}
.daily-mix-result span{color:var(--muted);font-size:12px}
.daily-mix-result a{color:#9bd7ff;font-weight:750}
.hero-actions{flex-wrap:wrap}
@media(max-width:850px){
  .daily-mix-grid{grid-template-columns:1fr}
  .daily-mix-card{min-height:0;padding:12px 14px}
  .daily-mix-card-top{gap:12px}
  .daily-mix-title{margin-top:8px}
  .daily-mix-description{margin-bottom:8px}
}
@media(max-width:560px){
  .daily-mix-heading{align-items:flex-start;gap:9px}
  .daily-mix-summary{font-size:9px}
  .daily-mix-play-promo{padding:16px}
}


/* AutoType shop Daily Drop: compact featured item rotation. */
.shop-daily-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 24px;margin-bottom:22px;background:linear-gradient(115deg,#253746,#292d39 65%,#262b34);border:1px solid #415768;border-radius:11px}
.shop-daily-banner .section-kicker{color:#93cde9}
.shop-daily-banner h2{font-size:25px;letter-spacing:-.03em;margin:5px 0 7px}
.shop-daily-banner p{font-size:12px;line-height:1.55;color:#bac5ce;max-width:620px;margin:0}
.shop-daily-timer{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:175px;padding:12px 15px;border:1px solid #50616e;border-radius:9px;background:rgba(0,0,0,.17)}
.shop-daily-timer span{font-size:9px;font-weight:850;letter-spacing:.09em;color:#b3c3ce}
.shop-daily-timer strong{font-size:25px;letter-spacing:.015em;font-weight:850;font-variant-numeric:tabular-nums;color:#fff;margin:4px 0}
.shop-daily-timer small{font-size:10px;color:#b5c0cb}
.shop-daily-grid{margin-bottom:24px}
.shop-rotation-note{font-size:11px;color:var(--muted);line-height:1.5;margin:15px 0}
@media(max-width:670px){.shop-daily-banner{padding:16px;flex-direction:column;align-items:stretch}.shop-daily-timer{flex-direction:row;flex-wrap:wrap;gap:8px;min-width:0;justify-content:space-between}.shop-daily-timer strong{font-size:21px;margin:0}}


/* Limited daily shop: permanent ownership lives in the player profile. */
.shop-v3-tabs .shop-locker-link{
  display:inline-flex;align-items:center;justify-content:center;
  margin-left:auto;padding:10px 15px;font-size:12px;font-weight:750;
  color:#9ed9ff;text-decoration:none
}
.shop-v3-tabs .shop-locker-link:hover,.shop-v3-tabs .shop-locker-link:focus-visible{color:#fff;text-decoration:underline}
.shop-stock-note{font-size:11px;color:var(--muted);font-weight:650}
.shop-rotation-note a{color:#93d5ff;font-weight:750}
@media(max-width:680px){
  .shop-v3-tabs .shop-locker-link{padding:11px 8px;font-size:11px}
  .shop-stock-note{font-size:10px}
}


/* Profile inventory: folded by default, automatically opens for #inventory links. */
.inventory-accordion{margin-top:12px}
.inventory-accordion-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:2px 0}
.inventory-accordion-summary::-webkit-details-marker{display:none}
.inventory-accordion-summary>span:first-child{display:flex;flex-direction:column;gap:5px}
.inventory-accordion-summary strong{font-size:17px;color:var(--text);letter-spacing:-.02em}
.inventory-accordion-summary small{font-size:11px;color:var(--muted);font-weight:500}
.inventory-accordion-arrow{color:#9bcaff;font-size:21px;transition:transform .15s}
.inventory-accordion[open] .inventory-accordion-arrow{transform:rotate(180deg)}
.inventory-accordion-summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.inventory-accordion-body{margin-top:17px;border-top:1px solid var(--border);padding-top:15px}
.inventory-quicklinks{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;font-size:11px;color:var(--muted)}
@media(max-width:580px){.inventory-quicklinks{flex-direction:column;align-items:flex-start}.inventory-accordion-summary strong{font-size:15px}}


/* Guaranteed, fixed-content cosmetic supply packs. */
.fixed-pack-card{border-color:color-mix(in srgb,var(--rarity) 37%,var(--border));}
.fixed-pack-art{
  display:grid;place-items:center;min-height:110px;
  background:linear-gradient(155deg,#26343c,#242930);border:1px solid var(--border);
  border-radius:8px;margin-bottom:11px;padding:12px;overflow:hidden
}
.fixed-pack-art>div{max-width:100%;width:100%}
.fixed-pack-label{font-size:9px;font-weight:850;letter-spacing:.07em;color:#a8d8be}
.fixed-pack-contents{margin-top:auto;margin-bottom:11px;padding:9px;border:1px solid var(--border);border-radius:7px;background:var(--surface-2)}
.fixed-pack-contents span,.fixed-pack-contents small{display:block;font-size:10px;color:var(--muted)}
.fixed-pack-contents strong{display:block;margin:4px 0;font-size:13px}
.shop-fixed-pack-note{color:var(--muted);font-size:11px;line-height:1.5;margin:0 0 13px}


/* Distinct themed, free-to-earn cosmetic surprise drops. */
.crate-free-label{
  display:inline-block;margin-bottom:8px;
  font-size:9px;letter-spacing:.07em;font-weight:850;color:#a5d6b9
}
.crate-pool-note{margin-top:9px;font-size:10px;line-height:1.55;color:var(--muted)}
.crate-theme-neon_nights_crate .crate-art{
  background:radial-gradient(circle at 20% 20%,rgba(67,237,204,.3),transparent 39%),
             linear-gradient(140deg,#143c47,#123460 55%,#3d2759);
  border:1px solid rgba(87,215,193,.29)
}
.crate-theme-cosmic_crate .crate-art{
  background:radial-gradient(circle at 80% 12%,rgba(222,194,255,.4),transparent 28%),
             linear-gradient(130deg,#0f182c,#202a65 55%,#3a244f);
  border:1px solid rgba(173,155,251,.32)
}
.crate-theme-color_shuffle_crate .crate-art{
  background:linear-gradient(135deg,#164d4e,#257da1 45%,#793e80 100%);
  border:1px solid rgba(127,203,245,.35)
}
.crate-theme-neon_nights_crate .crate-box,
.crate-theme-cosmic_crate .crate-box,
.crate-theme-color_shuffle_crate .crate-box{
  background:rgba(18,25,39,.5);color:#f5f7ff;
  font-size:21px;box-shadow:0 2px 25px rgba(0,0,0,.1)
}
.crate-theme-neon_nights_crate,.crate-theme-cosmic_crate,.crate-theme-color_shuffle_crate{
  border-color:rgba(119,150,190,.46)
}


/* Shared verified-round progress across all four free, mode-themed crates. */
.crate-rounds-panel{
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  padding:16px 19px;margin:12px 0 18px;
  background:#253039;border:1px solid #465967;border-radius:10px
}
.crate-rounds-copy{display:flex;flex-direction:column;gap:5px}
.crate-rounds-copy strong{font-size:22px;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.crate-rounds-copy small{font-size:11px;color:var(--muted);line-height:1.4}
.crate-rounds-meter{width:39%;display:flex;flex-direction:column;gap:6px}
.crate-rounds-meter progress{
  display:block;width:100%;height:10px;appearance:none;-webkit-appearance:none;
  border:0;border-radius:8px;overflow:hidden;background:#17212b
}
.crate-rounds-meter progress::-webkit-progress-bar{background:#17212b;border-radius:8px}
.crate-rounds-meter progress::-webkit-progress-value{background:linear-gradient(90deg,#238fc9,#72d9d1);border-radius:8px}
.crate-rounds-meter progress::-moz-progress-bar{background:linear-gradient(90deg,#238fc9,#72d9d1);border-radius:8px}
.crate-rounds-meter span{font-size:10px;color:var(--muted);text-align:right}
.crate-grid-separator{
  grid-column:1/-1;
  margin:10px 0 0;
  padding-top:13px;border-top:1px solid var(--border);
  font-size:11px;font-weight:850;letter-spacing:.1em;color:#9bd7ef
}
.crate-play-mode{
  display:inline-block;margin-top:10px;font-size:11px;font-weight:800;
  text-decoration:none;color:#92d6ff
}
.crate-play-mode:hover,.crate-play-mode:focus-visible{text-decoration:underline}
.crate-theme-evil_glitch_crate .crate-art{
  background:radial-gradient(circle at 20% 75%,rgba(241,86,157,.25),transparent 38%),
             linear-gradient(130deg,#241b36,#45204b 65%,#122b37);
  border:1px solid rgba(213,111,194,.4)
}
.crate-theme-evil_glitch_crate .crate-box{background:rgba(24,18,36,.45);font-size:21px;color:#f4ebff}
@media(max-width:760px){
  .crate-rounds-panel{flex-direction:column;align-items:stretch;gap:12px;padding:14px}
  .crate-rounds-meter{width:100%}
  .crate-rounds-meter span{text-align:left}
}


/* Separate mode-specific free crate progress, never a shared rounds wallet. */
.crate-rounds-panel{align-items:flex-start}
.crate-rounds-copy{flex:1;min-width:190px}
.crate-rounds-copy strong{font-size:17px}
.crate-mode-progress-grid{flex:2;min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.crate-mode-progress-item{display:flex;flex-direction:column;gap:6px;padding:12px;background:rgba(0,0,0,.16);border:1px solid var(--border);border-radius:8px;min-width:0}
.crate-mode-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.crate-mode-progress-head strong{font-size:12px;font-weight:800}
.crate-mode-progress-head span{font-size:10px;color:#96d5ef}
.crate-mode-progress-amount{font-size:17px;font-weight:850;font-variant-numeric:tabular-nums}
.crate-mode-progress-amount small,.crate-mode-progress-item>small{font-size:10px;color:var(--muted);font-weight:500}
.crate-mode-progress-item progress,.crate-card-round-progress progress{display:block;width:100%;height:7px;appearance:none;-webkit-appearance:none;border:0;border-radius:5px;overflow:hidden;background:#16202a}
.crate-mode-progress-item progress::-webkit-progress-bar,.crate-card-round-progress progress::-webkit-progress-bar{background:#16202a;border-radius:5px}
.crate-mode-progress-item progress::-webkit-progress-value,.crate-card-round-progress progress::-webkit-progress-value{background:#6abfd9;border-radius:5px}
.crate-mode-progress-item progress::-moz-progress-bar,.crate-card-round-progress progress::-moz-progress-bar{background:#6abfd9;border-radius:5px}
.crate-card-round-progress{display:flex;flex-direction:column;gap:7px;margin:11px 0 4px;padding:10px;border-radius:7px;border:1px solid var(--border);background:rgba(0,0,0,.12)}
.crate-card-round-progress strong{font-size:11px;color:#b5e7f8;font-variant-numeric:tabular-nums}
@media(max-width:760px){.crate-mode-progress-grid{width:100%;flex:none}}
@media(max-width:440px){.crate-mode-progress-grid{grid-template-columns:1fr 1fr}.crate-mode-progress-item{padding:9px}.crate-mode-progress-amount{font-size:15px}}


/* Beta UI polish: calm, grouped navigation instead of a full-screen link dump. */
.mobile-nav-scrim{display:none}
.footer-inner{align-items:center;flex-wrap:wrap}
.footer a{color:var(--muted);text-decoration:none}
.footer a:hover,.footer a:focus-visible{color:var(--text);text-decoration:underline}
.footer-links{display:flex;align-items:center;gap:15px;flex-wrap:wrap}
.footer-beta{display:inline-block;border:1px solid var(--border);border-radius:4px;padding:2px 6px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.06em}
@media(max-width:820px){
  .mobile-nav-scrim:not([hidden]){display:block;position:fixed;inset:0;background:rgba(4,9,14,.66);z-index:125}
  .mobile-nav{
    display:block;position:fixed;top:0;bottom:0;left:auto;right:0;z-index:126;
    width:min(360px,92vw);max-width:100%;height:100dvh;max-height:100dvh;
    padding:0 17px 22px;overflow-y:auto;overscroll-behavior:contain;
    border:0;border-left:1px solid var(--border);background:var(--surface);
    box-shadow:-18px 0 48px rgba(0,0,0,.28);
    transform:translateX(105%);visibility:hidden;pointer-events:none;
    transition:transform .2s ease,visibility .2s ease
  }
  .mobile-nav.open{display:block;transform:translateX(0);visibility:visible;pointer-events:auto}
  .mobile-nav-header{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;
    gap:15px;z-index:1;padding:17px 0 13px;border-bottom:1px solid var(--border);background:var(--surface)}
  .mobile-nav-header strong{display:block;font-size:19px;letter-spacing:-.03em}
  .mobile-nav-header span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
  .mobile-nav-close{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;
    border:1px solid var(--border);border-radius:9px;background:var(--surface-2);color:var(--text);font-size:25px;cursor:pointer}
  .mobile-nav-primary{display:grid;gap:2px;padding:13px 0}
  .mobile-nav a{display:flex;align-items:center;min-height:43px;padding:10px 13px;
    color:var(--text);font-size:14px;font-weight:650;text-decoration:none;border-radius:8px}
  .mobile-nav a.active,.mobile-nav a[aria-current="page"]{
    background:color-mix(in srgb,var(--blue) 13%,var(--surface));color:var(--text);box-shadow:inset 3px 0 var(--blue)}
  .mobile-nav a:hover,.mobile-nav a:focus-visible{background:var(--surface-3)}
  .mobile-nav-group{border-top:1px solid var(--border)}
  .mobile-nav-group summary{display:flex;align-items:center;justify-content:space-between;gap:15px;
    min-height:51px;padding:12px 8px;list-style:none;cursor:pointer;color:var(--text);
    font-size:13px;font-weight:750}
  .mobile-nav-group summary::-webkit-details-marker{display:none}
  .mobile-nav-group summary span{color:var(--muted);font-size:11px;font-weight:600}
  .mobile-nav-group summary::after{content:"⌄";color:var(--muted);margin-left:auto;transition:transform .15s}
  .mobile-nav-group[open] summary::after{transform:rotate(180deg)}
  .mobile-nav-links{display:grid;gap:2px;padding:0 0 12px 8px}
  .mobile-nav-bottom{padding:19px 8px 10px;border-top:1px solid var(--border);font-size:11px;color:var(--muted)}
  body.mobile-nav-open{overflow:hidden}
  .mobile-toggle{min-width:43px;min-height:43px;border:1px solid var(--border);
    border-radius:9px;display:grid;place-items:center;background:var(--surface-2);
    cursor:pointer;font-size:20px}
  .topbar-inner{gap:8px}
  .account-button{min-height:43px}
  .header-messages-link{min-width:39px}
  .footer{margin-top:26px;padding:22px 0}
  .footer-inner{gap:10px}
}
@media(max-width:390px){
  .topbar-inner{gap:5px}
  .brand{font-size:16px}
  .nav-avatar{width:27px;height:27px}
}
@media(prefers-reduced-motion:reduce){
  .mobile-nav{transition:none}
}

/* Phone gameplay: keep the target and predictions above the virtual keyboard. */
.mobile-round-stage{min-width:0}
@media(max-width:820px),(pointer:coarse){
  #gameArea{min-width:0}
  #gameArea .game-stats{display:flex;flex-wrap:wrap;gap:8px 15px}
  #gameArea .game-stats div{text-align:center}
  #gameArea .target-wrap{min-width:0}
  #gameArea .target{font-size:clamp(23px,5.5vw,38px);line-height:1.32;overflow-wrap:anywhere}
  #gameArea .arena{min-width:0}
  #gameArea .mobile-game-controls{padding:12px;gap:8px}
  #gameArea .mobile-game-controls .help{font-size:11px}
  #gameArea .mobile-typing-input{font-size:16px!important}
  #gameArea .guess{min-width:0;font-size:clamp(26px,7.5vw,43px);text-overflow:ellipsis}
  #gameArea .word-count{flex:0 0 auto}
  .mobile-keyboard-active .mobile-round-stage{
    position:fixed;top:var(--mobile-vv-top,0px);left:0;right:0;z-index:150;
    height:var(--mobile-vv-height,55dvh);max-height:var(--mobile-vv-height,55dvh);
    box-sizing:border-box;padding:8px 12px env(safe-area-inset-bottom,0px);
    display:flex;flex-direction:column;gap:7px;overflow:hidden;
    background:var(--bg);border-bottom:1px solid var(--border)
  }
  .mobile-keyboard-active #gameArea .game-head,
  .mobile-keyboard-active #gameArea .sentence-prediction{display:none}
  .mobile-keyboard-active #gameArea .target-wrap{
    flex:0 0 auto;padding:5px 0 8px;border-bottom:1px solid var(--border)}
  .mobile-keyboard-active #gameArea .target-label{font-size:10px;margin-bottom:5px}
  .mobile-keyboard-active #gameArea .target{
    display:block;white-space:nowrap;overflow-x:auto;overflow-y:hidden;
    overflow-wrap:normal;font-size:clamp(19px,5.5vw,25px);
    scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .mobile-keyboard-active #gameArea .target::-webkit-scrollbar{display:none}
  .mobile-keyboard-active #gameArea .arena{
    flex:1;min-height:0;padding:7px 9px 9px;
    display:flex;flex-direction:column;justify-content:space-between;gap:4px;
    overflow:hidden;border:1px solid var(--border)}
  .mobile-keyboard-active #gameArea .guess{font-size:clamp(24px,7vw,34px);line-height:1.1}
  .mobile-keyboard-active #gameArea .guess-row{gap:8px}
  .mobile-keyboard-active #gameArea .guess-label{font-size:10px}
  .mobile-keyboard-active #gameArea .word-count strong{font-size:14px}
  .mobile-keyboard-active #gameArea .type-line{margin-top:4px;padding-top:5px;min-height:24px}
  .mobile-keyboard-active #gameArea .mobile-game-controls{
    display:grid;gap:5px;flex:0 0 auto;margin:1px 0 0;padding:5px;
    border:0;background:transparent}
  .mobile-keyboard-active #gameArea .mobile-game-controls>label,
  .mobile-keyboard-active #gameArea .mobile-start-button,
  .mobile-keyboard-active #gameArea .mobile-game-controls .help,
  .mobile-keyboard-active #gameArea .message,
  .mobile-keyboard-active #gameArea .progress{display:none}
  .mobile-keyboard-active #gameArea .mobile-typing-input{
    display:block;height:41px;min-height:41px;padding:8px 11px;border-width:1px}
  .mobile-keyboard-active #gameArea .mobile-typing-actions{gap:7px}
  .mobile-keyboard-active #gameArea .mobile-typing-actions .button{min-height:37px;padding:7px;font-size:12px}
}


/* Consistent small-screen spacing and touch targets throughout the beta. */
@media(max-width:820px){
  .page{padding-top:25px;padding-bottom:40px}
  .footer-inner{justify-content:flex-start}
  .platform-page-heading{gap:14px}
  .platform-section-head{flex-wrap:wrap}
  .button{min-height:41px}
  input.input,textarea.textarea,select.select{font-size:16px}
  body.mobile-keyboard-active{overflow:hidden;overscroll-behavior:none}
}
@media(max-width:560px){
  .page-heading h1,.platform-page-heading h1{font-size:clamp(28px,8vw,35px);line-height:1.1}
  .page-heading p,.platform-page-heading p{font-size:13px;line-height:1.55}
  .footer-links{gap:12px}
  .footer-beta{vertical-align:middle}
}


/* Always leave a clear way out of the compact keyboard viewport. */
.mobile-keyboard-close{display:none}
@media(max-width:820px),(pointer:coarse){
  .mobile-keyboard-active .mobile-round-stage{position:fixed}
  .mobile-keyboard-active .mobile-keyboard-close{
    display:block;position:absolute;top:7px;right:12px;z-index:3;
    min-width:55px;min-height:32px;padding:5px 10px;
    border:1px solid var(--border);border-radius:7px;
    background:var(--surface-2);color:var(--text);font-weight:750;font-size:12px
  }
  .mobile-keyboard-active #gameArea .target-label{padding-right:70px}
}
