/* CSGuessr V33.7 starter themes + homepage cleanup.
   UI/theme presentation only. */

/* The previous fixed side rails were noise, not decoration. Remove them completely. */
.v336-ambient-rail{display:none!important}

/* Announcement: close control sits immediately LEFT of the announcement copy. */
.site-announcement{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:10px!important;
  padding-left:18px!important;
  padding-right:18px!important;
  text-align:left!important;
}
.site-announcement>i{display:none!important}
.site-announcement>button{
  position:static!important;
  order:1!important;
  flex:0 0 auto!important;
  transform:none!important;
  width:28px!important;
  height:28px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #ffffff20!important;
  border-radius:8px!important;
  background:#070b0e8c!important;
  color:#9eabb3!important;
  line-height:1!important;
}
.site-announcement>span{
  order:2!important;
  flex:0 1 auto!important;
  max-width:min(1120px,calc(100vw - 90px))!important;
  margin:0!important;
  line-height:1.45!important;
}
.site-announcement>button:hover{color:#fff!important;border-color:#ffffff3a!important;background:#11181d!important}

/* Account row: Progress Hub | Login/Sign out | Tradeups. */
.page-home .v33-home-account-tools{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
}
.page-home .v33-home-account-tools>.v18-mini-tools{display:contents!important}
.page-home .v33-home-account-tools>.v18-mini-tools>[data-v18-home="progress"]{order:1!important}
.page-home .v33-home-account-tools>.v18-home-auth{order:2!important;display:flex!important}
.page-home .v33-home-account-tools>.v18-mini-tools>[data-v18-home="trade"]{order:3!important}
.page-home .v33-home-account-tools>.v18-home-auth>button,
.page-home .v33-home-account-tools>.v18-mini-tools>button{width:100%!important;min-height:74px!important;margin:0!important}

/* Guaranteed Leaderboard icon. No generated-raster dependency. */
.v33-nav-icon[data-v33-icon="leaderboard"]{
  position:relative!important;
  overflow:hidden!important;
  background-color:#101820!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23f6c945' d='M13 25 20 12l12 9 12-9 7 13-5 13H18z'/%3E%3Cpath fill='none' stroke='%23fff1ae' stroke-width='3' stroke-linejoin='round' d='M13 25 20 12l12 9 12-9 7 13-5 13H18z'/%3E%3Cpath fill='%23d8e5eb' d='M17 44h9v12h-9zM28 39h9v17h-9zM39 47h9v9h-9z'/%3E%3Cpath fill='%23f6c945' d='M12 57h40v3H12z'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:82% 82%!important;
  filter:none!important;
  opacity:1!important;
}
.v33-nav-icon[data-v33-icon="leaderboard"]>svg,
.v33-nav-icon[data-v33-icon="leaderboard"]>.v33-nav-raster{display:none!important;visibility:hidden!important}
.home-tools .v33-nav-icon[data-v33-icon="leaderboard"]{background-size:88% 88%!important}
.side-menu .v33-nav-icon[data-v33-icon="leaderboard"]{background-size:78% 78%!important}

/* Main-menu quick theme switcher. */
.v337-theme-switcher{
  order:55!important;
  width:min(1120px,100%);
  margin:0 auto 14px;
  display:grid;
  grid-template-columns:minmax(150px,.7fr) minmax(0,2.3fr) auto;
  align-items:center;
  gap:10px;
  padding:10px;
  border:1px solid #ffffff12;
  border-radius:14px;
  background:linear-gradient(180deg,#111a20e8,#0a1015e8);
  box-shadow:0 14px 38px #0004,inset 0 1px #ffffff06;
}
.v337-theme-title{padding:0 10px;text-align:left}
.v337-theme-title span,.v337-theme-title b{display:block}
.v337-theme-title span{color:var(--yellow,#f6c945);font-size:7px;font-weight:950;letter-spacing:.16em}
.v337-theme-title b{margin-top:4px;color:#e5ecef;font:800 15px/1 var(--font-display);text-transform:uppercase}
.v337-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.v337-theme-option{
  --starter-scene:none;
  position:relative;
  overflow:hidden;
  min-height:54px;
  padding:9px 11px;
  border:1px solid #3b4851;
  border-radius:10px;
  background:#0b1116;
  color:#dce5e9;
  cursor:pointer;
  text-align:left;
}
.v337-theme-option:before{content:"";position:absolute;inset:0;background-image:linear-gradient(90deg,#05080bcf,#05080b48),var(--starter-scene);background-size:cover;background-position:center;opacity:.78}
.v337-theme-option>*{position:relative;z-index:1;display:block}
.v337-theme-option b{font-size:10px;text-transform:uppercase}
.v337-theme-option small{margin-top:4px;color:#94a2aa;font-size:7px}
.v337-theme-option[data-theme="theme-void"]{--starter-scene:url('/v33-theme-scenes/void.svg')}
.v337-theme-option[data-theme="theme-chrome"]{--starter-scene:url('/v33-theme-scenes/chrome.svg')}
.v337-theme-option[data-theme="theme-lan-night"]{--starter-scene:url('/v33-theme-scenes/lan-night.svg')}
.v337-theme-option:hover,.v337-theme-option.active{border-color:var(--yellow,#f6c945);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--yellow,#f6c945) 24%,transparent),0 8px 24px #0004}
.v337-theme-option.active:after{content:"ACTIVE";position:absolute;z-index:2;top:6px;right:7px;color:var(--yellow,#f6c945);font-size:6px;font-weight:950;letter-spacing:.12em}
.v337-all-themes{min-width:104px;height:54px;border:1px solid #ffffff1b;border-radius:10px;background:#111a20;color:#aeb9bf;cursor:pointer;font-size:8px;font-weight:900}
.v337-all-themes:hover{color:#fff;border-color:#ffffff32;background:#172128}

/* Internal legacy fallback is no longer presented as a fourth free choice. */
.v14-theme-card[data-theme-card="theme-default"]{display:none!important}
.v14-theme-card[data-theme-card="theme-void"],
.v14-theme-card[data-theme-card="theme-chrome"],
.v14-theme-card[data-theme-card="theme-lan-night"]{position:relative}
.v14-theme-card[data-theme-card="theme-void"]:after,
.v14-theme-card[data-theme-card="theme-chrome"]:after,
.v14-theme-card[data-theme-card="theme-lan-night"]:after{
  content:"FREE STARTER";
  position:absolute;
  top:10px;
  right:10px;
  z-index:4;
  border:1px solid #f6c9457a;
  border-radius:999px;
  padding:4px 7px;
  background:#0a0e11d9;
  color:#f6c945;
  font-size:6px;
  font-weight:950;
  letter-spacing:.12em;
}

/* First-visit starter selector, injected into the proper V33 intro. */
.v337-intro-theme-picker{margin:24px 0 4px;text-align:left}
.v337-intro-theme-picker>header span,.v337-intro-theme-picker>header b{display:block}
.v337-intro-theme-picker>header span{color:var(--yellow,#f6c945);font-size:8px;font-weight:950;letter-spacing:.16em}
.v337-intro-theme-picker>header b{margin-top:6px;color:#f2f6f7;font:800 20px/1 var(--font-display);text-transform:uppercase}
.v337-intro-theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:12px}
.v337-intro-theme-grid .v337-theme-option{min-height:92px;padding:14px}
.v337-intro-theme-grid .v337-theme-option b{font-size:13px}
.v337-intro-theme-grid .v337-theme-option small{max-width:150px;font-size:8px;line-height:1.35}
.v337-intro-theme-grid .v337-theme-option.active:after{content:"SELECTED"}

/* One-time selector shown to existing users who already dismissed the older intro. */
.v337-starter-gate{position:fixed;inset:0;z-index:300100;display:grid;place-items:center;padding:24px;background:#030609ed;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.v337-starter-panel{width:min(920px,100%);border:1px solid #ffffff1c;border-radius:22px;padding:clamp(24px,4vw,44px);background:linear-gradient(145deg,#10171d,#070b0f);box-shadow:0 45px 150px #000e}
.v337-starter-panel>span{color:#f6c945;font-size:8px;font-weight:950;letter-spacing:.17em}
.v337-starter-panel h2{margin:10px 0 8px;color:#f3f6f7;font:800 clamp(38px,6vw,68px)/.86 var(--font-display);text-transform:uppercase}
.v337-starter-panel>p{max-width:650px;color:#8f9ba3;font-size:11px;line-height:1.6}
.v337-starter-panel .v337-intro-theme-grid{margin:24px 0}
.v337-enter{width:100%;height:52px;border:0;border-radius:10px;background:#f6c945;color:#12100a;cursor:pointer;font-size:10px;font-weight:950;letter-spacing:.05em}

@media(max-width:800px){
  .page-home .v33-home-account-tools{grid-template-columns:1fr!important}
  .page-home .v33-home-account-tools>.v18-mini-tools>[data-v18-home="progress"]{order:1!important}
  .page-home .v33-home-account-tools>.v18-home-auth{order:2!important}
  .page-home .v33-home-account-tools>.v18-mini-tools>[data-v18-home="trade"]{order:3!important}
  .v337-theme-switcher{grid-template-columns:1fr!important}
  .v337-theme-title{padding:3px 2px}
  .v337-all-themes{width:100%}
}
@media(max-width:560px){
  .site-announcement{gap:7px!important;padding-left:8px!important;padding-right:8px!important}
  .site-announcement>span{max-width:calc(100vw - 58px)!important;font-size:8px!important}
  .site-announcement>button{width:26px!important;height:26px!important}
  .v337-theme-options,.v337-intro-theme-grid{grid-template-columns:1fr!important}
  .v337-intro-theme-grid .v337-theme-option{min-height:68px}
}
