/* Earnly Arcade premium visual pass
   Layered after arcade.css so the pass is easy to tune or remove. */

:root{
  --bg:#07101f;
  --panel:#101b2d;
  --panel-2:#15243a;
  --border:#294765;
  --text:#f8fbff;
  --muted:#9fb1c9;
  --blue:#2f8cff;
  --green:#17d66b;
  --green-dark:#079449;
  --gold:#ffc14d;
  --red:#ff5c6c;
  --premium-cyan:#55dcff;
  --premium-purple:#8b5cf6;
  --premium-shadow:0 20px 55px rgba(0,0,0,.34);
  --premium-soft-shadow:0 12px 30px rgba(0,0,0,.22);
}

html{
  background:#07101f;
}

body{
  position:relative;
  overflow-x:hidden;
  background:
    radial-gradient(circle at 12% -5%,rgba(47,140,255,.19),transparent 28rem),
    radial-gradient(circle at 95% 12%,rgba(139,92,246,.10),transparent 24rem),
    linear-gradient(180deg,#081321 0%,#07101f 52%,#050b15 100%);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",Arial,sans-serif;
  font-synthesis:none;
}

body::before{
  content:"";
  position:fixed;
  z-index:-1;
  inset:-20vh -25vw auto;
  height:55vh;
  pointer-events:none;
  background:
    radial-gradient(circle at 35% 35%,rgba(76,201,240,.10),transparent 28%),
    radial-gradient(circle at 70% 10%,rgba(47,140,255,.12),transparent 34%);
  filter:blur(20px);
}

.container{
  position:relative;
}

h1,h2,h3,strong{
  text-rendering:optimizeLegibility;
}

.page-header h1,
.games-hero h1,
.rewards-hero h1,
.profile-hero h1,
.missions-hero h1{
  letter-spacing:-.045em;
  text-wrap:balance;
}

.page-header p,
.games-hero p,
.rewards-hero p{
  color:#a8b7cb;
}

.topbar,
.rewards-topbar{
  position:relative;
  z-index:2;
}

.brand,
.rewards-brand{
  color:#f7fbff;
  text-shadow:0 1px 16px rgba(85,220,255,.12);
}

.balance-chip,
.rewards-top-actions>a,
.rewards-top-actions>span{
  border-color:rgba(92,141,190,.34);
  background:linear-gradient(180deg,rgba(20,36,58,.92),rgba(11,23,40,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 22px rgba(0,0,0,.15);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.card,
.profile-edit-card,
.profile-section,
.profile-achievement-card,
.missions-detail-card{
  border-color:rgba(81,129,176,.34);
  background:
    linear-gradient(145deg,rgba(24,41,65,.96),rgba(11,23,39,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    var(--premium-soft-shadow);
}

button,.button{
  border:1px solid rgba(115,184,255,.18);
  background:linear-gradient(135deg,#3196ff 0%,#4a67ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.16),
    0 10px 24px rgba(34,104,255,.20);
  transition:transform 130ms ease,filter 130ms ease,box-shadow 130ms ease,border-color 130ms ease;
}

button:hover,.button:hover{
  filter:brightness(1.055);
  border-color:rgba(140,205,255,.32);
}

button:active,.button:active{
  transform:translateY(1px) scale(.985);
}

.green{
  border-color:rgba(73,255,159,.24);
  background:linear-gradient(135deg,#19d56d,#08a84f);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 10px 25px rgba(12,180,89,.18);
}

.secondary{
  border-color:rgba(111,142,181,.30);
  background:linear-gradient(180deg,#263850,#1c2a3d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 18px rgba(0,0,0,.15);
}

.ghost{
  border-color:rgba(91,142,190,.34);
  background:rgba(13,28,47,.55);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.claimed-button{
  background:linear-gradient(145deg,rgba(10,83,49,.80),rgba(7,48,31,.92));
  border-color:rgba(41,228,122,.42);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.progress-button{
  background:linear-gradient(180deg,#182840,#111d30);
  border-color:rgba(89,130,171,.42);
}

.challenge-progress,
.xp-bar,
.reward-ad-track{
  background:#07101d;
  border-color:rgba(65,104,145,.42);
  box-shadow:inset 0 2px 8px rgba(0,0,0,.28);
}

.challenge-progress>span,
.xp-bar>span{
  background:linear-gradient(90deg,#1be078 0%,#4ad8d8 48%,#3297ff 100%);
  box-shadow:0 0 16px rgba(55,207,255,.25);
}

/* Home */
.home-dashboard{
  background:
    radial-gradient(circle at 8% 0%,rgba(27,151,255,.24),transparent 30rem),
    radial-gradient(circle at 92% 15%,rgba(28,220,126,.08),transparent 26rem),
    linear-gradient(180deg,#071423,#06101d 58%,#040a13);
}

.home-container{
  padding-inline:18px;
}

.home-hero{
  margin:2px 0 18px;
  padding:13px 44px 13px 3px;
  text-align:left;
}

.home-hero-icon{
  border-radius:18px;
  box-shadow:
    0 14px 30px rgba(0,0,0,.25),
    0 0 28px rgba(51,132,255,.19);
}

.home-eyebrow{
  color:#65ddff;
  font-weight:900;
  letter-spacing:.16em;
  text-shadow:0 0 20px rgba(101,221,255,.16);
}

.home-hero h1{
  margin-top:4px;
  color:#fff;
  font-size:clamp(30px,8vw,40px);
  line-height:1.02;
  letter-spacing:-.052em;
}

.home-info-button{
  border-color:rgba(83,185,229,.45);
  background:linear-gradient(180deg,rgba(15,39,60,.96),rgba(7,24,40,.96));
  color:#62e3ff;
  box-shadow:0 8px 20px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.06);
}

.home-primary-play{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(71,255,151,.42);
  background:
    radial-gradient(circle at 10% 0%,rgba(108,255,170,.21),transparent 32%),
    linear-gradient(120deg,#08a94f 0%,#11bd58 48%,#089648 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 18px 38px rgba(4,133,65,.24);
}

.home-primary-play::after{
  content:"";
  position:absolute;
  inset:-60% auto -60% -20%;
  width:34%;
  transform:rotate(18deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
  pointer-events:none;
}

.home-primary-play strong{
  letter-spacing:-.025em;
}

.home-section-heading{
  color:#83dfff;
  font-weight:900;
  letter-spacing:.14em;
  text-shadow:0 0 18px rgba(83,214,255,.11);
}

.home-overview,
.home-panel,
.home-dashboard .continue-card,
.home-account-shortcut,
.home-install-banner,
.home-transfer-banner{
  border-color:rgba(61,115,163,.42);
  background:
    linear-gradient(145deg,rgba(20,38,62,.97),rgba(8,22,38,.97));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 16px 38px rgba(0,0,0,.22);
}

.home-dashboard .continue-card{
  position:relative;
  overflow:hidden;
}

.home-dashboard .continue-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(#52ddff,#387cff);
  box-shadow:0 0 16px rgba(66,190,255,.42);
}

.home-action-icon{
  background:linear-gradient(145deg,#13283f,#0c192a);
  border-color:rgba(80,139,190,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.home-row-button{
  box-shadow:0 9px 22px rgba(41,109,255,.18);
}

.home-metric{
  transition:background 150ms ease,transform 150ms ease;
}

.home-metric:active{
  transform:scale(.99);
}

.home-metric strong{
  letter-spacing:-.045em;
  text-shadow:0 3px 18px rgba(255,255,255,.035);
}

.home-metric-link{
  color:#62dcff;
  font-weight:900;
}

.home-count-pill{
  border-color:rgba(77,131,178,.42);
  background:#0c192a;
  color:#e9f4ff;
}

.home-divider{
  border-color:rgba(78,117,154,.23);
}

/* Games catalog */
.games-dashboard{
  background:
    radial-gradient(circle at 50% -8%,rgba(53,133,255,.19),transparent 31rem),
    radial-gradient(circle at 0% 42%,rgba(139,92,246,.08),transparent 24rem),
    #07101f;
}

.games-eyebrow,
.rewards-eyebrow,
.rewards-kicker,
.profile-eyebrow,
.missions-eyebrow,
.section-kicker{
  color:#64ddff;
  letter-spacing:.16em;
  text-shadow:0 0 18px rgba(100,221,255,.14);
}

.games-hero h1{
  font-size:clamp(34px,9vw,44px);
}

.games-start-here,
.games-mission-strip,
.game-browser-tools{
  border-color:rgba(71,126,181,.38);
  background:linear-gradient(145deg,rgba(18,35,58,.94),rgba(9,22,38,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 12px 30px rgba(0,0,0,.16);
}

.game-search-wrap{
  border-color:rgba(72,124,174,.40)!important;
  background:#0c1829!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.game-search-wrap input{
  color:#f7fbff!important;
}

.game-search-wrap input::placeholder{
  color:#8094ad;
}

.game-filter{
  border-color:rgba(78,122,164,.36);
  background:linear-gradient(180deg,#17263c,#101b2d);
  color:#c8d6e7;
  box-shadow:none;
}

.game-filter.active{
  border-color:rgba(92,174,255,.65);
  background:linear-gradient(135deg,#2b8dff,#415dff);
  color:#fff;
  box-shadow:0 8px 22px rgba(44,112,255,.22);
}

.compact-game,
.game-card{
  position:relative;
  overflow:hidden;
  border-color:rgba(68,120,169,.42);
  background:
    radial-gradient(circle at 10% 0%,rgba(69,151,255,.07),transparent 32%),
    linear-gradient(145deg,rgba(21,40,65,.98),rgba(8,21,37,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 15px 34px rgba(0,0,0,.21);
}

.compact-game::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,#50dfff,#6f63ff);
  opacity:.85;
}

.play-pill,
.meta-pill,
.game-stat-badge{
  border-color:rgba(73,126,176,.40);
  background:#0c1828;
  color:#ddebfb;
}

.game-status{
  border-color:rgba(73,121,167,.40);
  background:#0d1a2c;
}

.game-status.running{
  border-color:rgba(32,222,116,.44);
  background:rgba(7,58,35,.88);
  color:#7dffb0;
}

/* Rewards */
.rewards-dashboard{
  background:
    radial-gradient(circle at 50% -6%,rgba(50,135,255,.20),transparent 30rem),
    radial-gradient(circle at 100% 30%,rgba(27,217,124,.065),transparent 25rem),
    #07101f;
}

.rewards-brand{
  text-decoration:none;
  font-weight:900;
}

.rewards-hero{
  text-align:left;
}

.rewards-hero h1{
  font-size:clamp(34px,9vw,44px);
}

.rewards-balance-card{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(74,141,207,.48);
  background:
    radial-gradient(circle at 78% 8%,rgba(91,93,255,.16),transparent 31%),
    linear-gradient(145deg,#193254,#0d1b30 74%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    var(--premium-shadow);
}

.rewards-balance-card::after{
  content:"";
  position:absolute;
  right:-58px;
  top:-62px;
  width:150px;
  height:150px;
  border-radius:50%;
  background:rgba(67,173,255,.09);
  filter:blur(2px);
  pointer-events:none;
}

.rewards-balance-card>div:first-child strong{
  letter-spacing:-.055em;
  text-shadow:0 7px 28px rgba(0,0,0,.24);
}

.prototype-badge,
.rewards-status-pill{
  border-color:rgba(255,187,51,.56);
  background:rgba(71,49,4,.76);
  color:#ffdc78;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.reward-protection-card{
  border-color:rgba(64,128,179,.38);
  background:linear-gradient(145deg,#142942,#0b1a2d);
  box-shadow:var(--premium-soft-shadow);
}

.reward-protection-card.ready{
  border-color:rgba(32,217,110,.40);
  background:linear-gradient(145deg,rgba(10,74,45,.72),rgba(8,38,29,.90));
}

.rewards-basic-item,
.rewards-option{
  border-color:rgba(66,117,164,.40);
  background:linear-gradient(145deg,#16283f,#0d1a2c);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.rewards-readiness{
  overflow:hidden;
  border:1px solid rgba(70,119,163,.38);
  border-radius:18px;
  background:linear-gradient(145deg,#13243a,#0a1728);
  box-shadow:var(--premium-soft-shadow);
}

.rewards-readiness-row{
  border-color:rgba(72,111,148,.23);
}

.rewards-readiness-row.ready>span{
  background:rgba(8,87,48,.75);
  color:#68f5a0;
  box-shadow:0 0 18px rgba(28,208,104,.08);
}

.rewards-footnote{
  border-color:rgba(65,111,153,.34);
  background:rgba(10,23,39,.74);
}

/* Profile / missions / settings / account */
.profile-dashboard,
.missions-dashboard{
  background:
    radial-gradient(circle at 50% -10%,rgba(56,139,255,.19),transparent 31rem),
    #07101f;
}

.profile-hero,
.missions-weekly-card,
.missions-player-strip,
.profile-shortcuts a,
.profile-key-stats>div,
.profile-secondary-stats>div{
  border-color:rgba(66,118,166,.38);
  background:linear-gradient(145deg,#162a43,#0c1a2d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 10px 26px rgba(0,0,0,.16);
}

.profile-avatar,
.profile-settings-link{
  border-color:rgba(82,140,191,.38);
  background:linear-gradient(145deg,#17304d,#0d1d31);
}

.setting-row,
.account-status,
.cloud-auto-row,
.account-tool-block{
  border-color:rgba(70,119,164,.34)!important;
}

/* Game surfaces */
canvas,
.game-guide-surface,
.memory-grid.game-guide-surface{
  border-color:rgba(107,153,198,.58)!important;
  background:#101d30;
  box-shadow:
    0 18px 40px rgba(0,0,0,.24),
    0 0 0 1px rgba(255,255,255,.018);
}

.game-guide-step{
  border-color:rgba(62,111,157,.40);
  background:linear-gradient(145deg,#13253b,#0d192b);
}

.game-guide-overlay,
.snake-board-overlay{
  background:rgba(5,13,24,.68);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}

.game-result-dialog,
dialog{
  border-color:rgba(83,137,187,.52);
  background:
    radial-gradient(circle at 50% 0%,rgba(62,142,255,.12),transparent 38%),
    linear-gradient(145deg,#172b45,#0c192b);
  box-shadow:0 30px 90px rgba(0,0,0,.60);
}

.result-main{
  border-color:rgba(75,131,183,.35);
  background:linear-gradient(145deg,#10243b,#091728);
}

/* Navigation chrome */
.bottom-nav{
  border-top:1px solid rgba(73,123,169,.34)!important;
  background:rgba(5,14,26,.90)!important;
  box-shadow:0 -14px 34px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.025);
  backdrop-filter:blur(22px) saturate(135%);
  -webkit-backdrop-filter:blur(22px) saturate(135%);
}

.bottom-nav-item{
  color:#91a4bb!important;
  transition:color 140ms ease,transform 140ms ease,background 140ms ease;
}

.bottom-nav-item.active{
  color:#f7fbff!important;
}

.bottom-nav-item.active::after{
  background:linear-gradient(90deg,#2e91ff,#57dfff)!important;
  box-shadow:0 0 16px rgba(61,169,255,.45);
}

.bottom-nav-item.active .bottom-nav-icon{
  filter:drop-shadow(0 0 8px rgba(73,176,255,.25));
}

.desktop-nav{
  border-color:rgba(74,125,174,.32)!important;
  background:rgba(10,24,41,.72)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 10px 28px rgba(0,0,0,.16);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.desktop-nav-item{
  color:#9db0c7!important;
}

.desktop-nav-item.active{
  color:#fff!important;
  background:linear-gradient(135deg,rgba(47,140,255,.30),rgba(85,220,255,.10))!important;
  border-color:rgba(82,169,241,.40)!important;
}

/* Fine polish */
.history-item{
  border-color:rgba(71,109,145,.24);
}

.status-line,
.reward-option,
.meta-pill{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

input,textarea,select{
  color:#f7fbff;
  background:#0b1829;
  border-color:rgba(74,126,176,.44);
}

input::placeholder,
textarea::placeholder{
  color:#7388a3;
}

::selection{
  background:rgba(65,151,255,.35);
  color:#fff;
}

@media (hover:hover){
  .compact-game,
  .home-panel,
  .home-dashboard .continue-card,
  .rewards-basic-item,
  .rewards-option,
  .profile-shortcuts a{
    transition:transform 160ms ease,border-color 160ms ease,box-shadow 160ms ease;
  }

  .compact-game:hover,
  .rewards-basic-item:hover,
  .rewards-option:hover,
  .profile-shortcuts a:hover{
    transform:translateY(-2px);
    border-color:rgba(83,156,220,.54);
    box-shadow:0 18px 40px rgba(0,0,0,.24);
  }
}

@media(max-width:390px){
  .home-container,
  .games-dashboard .container,
  .rewards-container,
  .profile-container,
  .missions-container{
    padding-inline:14px;
  }

  .home-hero h1,
  .games-hero h1,
  .rewards-hero h1{
    letter-spacing:-.042em;
  }
}

@media(prefers-reduced-motion:reduce){
  *{
    scroll-behavior:auto!important;
    transition-duration:.01ms!important;
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
  }
}


/* Premium pass v2 — arcade depth + mobile polish */

/* Make the product feel more like a native arcade dashboard without
   changing any existing game/reward behavior. */
body{
  min-height:100dvh;
}

.home-dashboard::after,
.games-dashboard::after,
.rewards-dashboard::after,
.profile-dashboard::after,
.missions-dashboard::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  pointer-events:none;
  opacity:.18;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);
  background-size:28px 28px;
  -webkit-mask-image:linear-gradient(to bottom,black,transparent 72%);
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}

/* Home hero */
.home-hero{
  border:1px solid rgba(93,161,224,.22);
  border-radius:24px;
  background:
    radial-gradient(circle at 12% 0%,rgba(85,220,255,.12),transparent 34%),
    linear-gradient(145deg,rgba(18,38,63,.76),rgba(8,19,34,.55));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 16px 34px rgba(0,0,0,.18);
}

.home-hero-icon{
  transform:translateZ(0);
}

.home-hero-copy{
  min-width:0;
}

.home-hero h1{
  text-shadow:0 8px 30px rgba(0,0,0,.24);
}

.home-primary-play{
  min-height:82px;
  border-radius:22px;
}

.home-primary-play-icon{
  display:grid;
  place-items:center;
  min-width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:15px;
  background:rgba(3,57,31,.34);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10);
}

.home-primary-play b{
  padding:8px 11px;
  border-radius:12px;
  background:rgba(0,0,0,.14);
  white-space:nowrap;
}

@keyframes earnly-premium-sheen{
  0%,72%{ transform:translateX(-170%) rotate(18deg); }
  100%{ transform:translateX(520%) rotate(18deg); }
}

.home-primary-play::after{
  animation:earnly-premium-sheen 5.8s ease-in-out infinite;
}

/* Make the balance / level section read like two premium stat cards */
.home-overview{
  padding:0;
  overflow:hidden;
}

.home-overview>.home-metric{
  padding:18px 17px 16px;
  background:
    radial-gradient(circle at 90% 0%,rgba(65,159,255,.11),transparent 45%),
    linear-gradient(145deg,rgba(19,38,62,.94),rgba(10,22,38,.94));
}

.home-overview>.home-metric:first-child{
  background:
    radial-gradient(circle at 90% 0%,rgba(255,193,77,.11),transparent 44%),
    linear-gradient(145deg,rgba(28,40,58,.97),rgba(11,23,39,.96));
}

.home-overview>.home-metric:first-child strong{
  color:#ffd66b;
  text-shadow:0 0 24px rgba(255,193,77,.12);
}

.home-overview>.home-metric:nth-child(2) strong{
  color:#8ee8ff;
  text-shadow:0 0 22px rgba(85,220,255,.12);
}

.home-metric-label{
  font-size:12px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:#92a8c2;
}

.home-progress-row{
  padding:15px 17px 17px;
  background:rgba(5,15,27,.52);
}

.home-xp-bar{
  height:9px;
}

.home-panel,
.home-dashboard .continue-card,
.home-account-shortcut{
  border-radius:20px;
}

.home-action-row{
  min-height:64px;
}

.home-action-icon{
  display:grid;
  place-items:center;
  width:45px;
  height:45px;
  flex:0 0 45px;
  border:1px solid rgba(88,148,202,.34);
  border-radius:14px;
  font-size:22px;
}

.home-row-button,
.home-challenge-button{
  min-height:44px;
  border-radius:13px;
  font-weight:900;
}

.daily-mission-row.claimed{
  opacity:.78;
}

.home-progress-tile{
  border:1px solid rgba(68,121,169,.38);
  background:linear-gradient(145deg,rgba(20,39,63,.96),rgba(9,22,38,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 12px 28px rgba(0,0,0,.16);
}

/* Games catalog */
.games-simple-note{
  border:1px solid rgba(70,125,177,.34);
  border-radius:16px;
  background:rgba(9,24,42,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.catalog-tile{
  border-radius:22px;
}

.catalog-tile.recommended-game{
  border-color:rgba(80,179,255,.55);
  background:
    radial-gradient(circle at 90% 0%,rgba(86,221,255,.11),transparent 36%),
    radial-gradient(circle at 5% 0%,rgba(79,139,255,.10),transparent 34%),
    linear-gradient(145deg,rgba(23,45,73,.99),rgba(8,22,39,.99));
}

.game-icon-bubble{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  flex:0 0 46px;
  border:1px solid rgba(93,154,211,.38);
  border-radius:15px;
  background:
    radial-gradient(circle at 35% 20%,rgba(93,211,255,.15),transparent 40%),
    linear-gradient(145deg,#172e4a,#0d1c30);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 9px 20px rgba(0,0,0,.16);
  font-size:23px;
}

.game-recommended-badge{
  border:1px solid rgba(89,207,255,.34);
  background:rgba(13,66,91,.52);
  color:#91ebff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.favorite-button{
  min-width:42px;
  min-height:42px;
  border-radius:13px;
}

.game-play-button{
  min-height:48px;
  border-radius:14px;
  font-size:16px;
  font-weight:900;
}

.compact-game .reward-rule{
  color:#a8bad0;
  line-height:1.45;
}

/* Game screen chrome */
.game-header,
.game-shell,
.game-card,
.game-guide-surface{
  border-radius:20px;
}

canvas{
  border-radius:18px;
}

.game-result-dialog{
  border-radius:24px;
}

/* Rewards */
.rewards-balance-card{
  border-radius:24px;
}

.rewards-balance-card strong{
  color:#ffd66b;
}

.rewards-option,
.rewards-basic-item{
  border-radius:18px;
}

/* Native-feeling navigation and touch sizes */
.bottom-nav{
  padding-bottom:max(8px,env(safe-area-inset-bottom));
}

.bottom-nav-item{
  min-height:54px;
  border-radius:14px;
}

.bottom-nav-item.active{
  background:linear-gradient(180deg,rgba(47,140,255,.12),rgba(47,140,255,.035));
}

button,
.button,
a.home-row-button,
a.quick-game{
  -webkit-tap-highlight-color:transparent;
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:2px solid #62ddff;
  outline-offset:3px;
}

/* Prevent dense desktop-style spacing on iPhone-sized screens */
@media(max-width:600px){
  .home-container,
  .games-dashboard .container,
  .rewards-container,
  .profile-container,
  .missions-container{
    padding-bottom:calc(92px + env(safe-area-inset-bottom));
  }

  .home-hero{
    margin-top:4px;
    padding:12px 42px 12px 10px;
  }

  .home-primary-play{
    min-height:78px;
    padding-inline:14px;
  }

  .home-primary-play-copy small{
    line-height:1.25;
  }

  .home-section{
    margin-top:16px;
  }

  .compact-catalog-grid{
    gap:13px;
  }

  .catalog-tile{
    padding:15px;
  }

  .game-title-row{
    gap:10px;
  }
}

@media(max-width:360px){
  .home-primary-play b{
    padding:7px 8px;
    font-size:13px;
  }

  .home-primary-play-copy small{
    font-size:11px;
  }

  .game-title-actions{
    gap:6px;
  }
}


/* Premium pass v3 — iPhone safe area + compact missions */

/* Keep scrolled content from showing through the iPhone status-bar area
   when Earnly is launched from the Home Screen. */
@supports (padding-top: env(safe-area-inset-top)){
  html::after{
    content:"";
    position:fixed;
    z-index:9998;
    top:0;
    left:0;
    right:0;
    height:calc(env(safe-area-inset-top) + 3px);
    pointer-events:none;
    background:
      linear-gradient(180deg,rgba(7,20,35,.995) 0%,rgba(7,18,32,.97) 72%,rgba(7,18,32,.90) 100%);
  }
}

/* Premium v2 intentionally made primary actions larger.
   Daily missions should stay compact so the Home screen scans quickly. */
.daily-mission-row{
  padding-bottom:8px;
}

.daily-mission-row .home-action-row{
  min-height:0;
  padding:10px 12px 7px;
}

.daily-mission-row .home-action-icon{
  width:40px;
  height:40px;
  flex-basis:40px;
  border-radius:12px;
  font-size:20px;
}

.daily-mission-row .home-action-copy strong{
  font-size:14px;
}

.daily-mission-row .home-action-copy span{
  font-size:10px;
  line-height:1.3;
}

.daily-mission-row .home-challenge-progress{
  margin:0 12px 7px;
}

.daily-mission-row .home-challenge-button{
  min-height:32px;
  margin:0 12px;
  padding:6px 10px;
  border-radius:10px;
  font-size:10px;
}

.daily-mission-row .home-count-pill{
  padding:5px 8px;
}

@media(max-width:390px){
  .daily-mission-row .home-action-row{
    gap:8px;
  }
}


/* Premium pass v4 — home finishing pass */

/* Keep the Continue Playing heading visually separate from its card. */
.home-dashboard .continue-card{
  overflow:visible;
  border:0;
  background:transparent;
  box-shadow:none;
}

.continue-card .home-section-heading{
  position:relative;
  z-index:1;
  margin:0 2px 9px;
  padding:0;
}

/* Compact daily missions: button and progress should not make each row feel
   like a full-size card. */
.daily-mission-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:0 8px;
  padding:8px 12px 9px;
}

.daily-mission-row .home-action-row{
  grid-column:1 / -1;
  padding:0 0 7px;
}

.daily-mission-row .home-challenge-progress{
  grid-column:1;
  align-self:center;
  margin:0;
}

.daily-mission-row .home-challenge-button{
  grid-column:2;
  align-self:center;
  min-height:32px;
  margin:0;
  padding:6px 10px;
  white-space:nowrap;
}

.daily-mission-row + .daily-mission-row{
  border-top:1px solid rgba(148,163,184,.14)!important;
}

@media(max-width:390px){
  .daily-mission-row{
    padding-inline:10px;
  }
  .daily-mission-row .home-challenge-button{
    padding-inline:9px;
  }
}


/* Premium pass v5 — Games catalog refinement */

/* The Games screen should feel like a fast arcade browser, not a stack of
   oversized cards. Keep controls obvious while fitting more choices on screen. */
.games-dashboard .games-hero{
  margin-bottom:10px;
  text-align:center;
}

.games-dashboard .games-hero p{
  max-width:390px;
  margin-inline:auto;
}

.games-dashboard .games-simple-note{
  border:0;
  background:transparent;
  box-shadow:none;
}

.games-dashboard .games-simple-note>span,
.games-dashboard .games-simple-note details{
  border:1px solid rgba(76,126,174,.34);
  border-radius:999px;
  background:rgba(12,27,46,.72);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.games-dashboard .games-simple-note details{
  padding:6px 10px;
}

.games-dashboard .games-simple-note details summary{
  line-height:1;
}

.games-dashboard .games-start-here:not(.games-mission-strip){
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  column-gap:12px;
  text-align:left;
  border-radius:16px;
  background:
    linear-gradient(145deg,rgba(15,32,53,.88),rgba(8,20,35,.82));
}

.games-dashboard .games-start-here:not(.games-mission-strip) strong{
  white-space:nowrap;
}

.games-dashboard .games-start-here:not(.games-mission-strip) span{
  min-width:0;
}

.games-dashboard .games-mission-strip{
  border-radius:16px;
}

.games-dashboard .game-browser-tools{
  border-radius:20px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 14px 34px rgba(0,0,0,.18);
}

.games-dashboard .game-search-wrap{
  border-radius:16px!important;
  background:
    radial-gradient(circle at 8% 0%,rgba(71,155,255,.08),transparent 36%),
    #0b1829!important;
}

.games-dashboard .game-filter{
  transition:transform 120ms ease,background 120ms ease,border-color 120ms ease;
}

.games-dashboard .game-filter:active{
  transform:scale(.96);
}

.games-dashboard #games .catalog-tile{
  border-radius:20px!important;
}

.games-dashboard #games .game-title-row{
  min-width:0;
}

.games-dashboard #games .game-name-wrap{
  min-width:0;
}

.games-dashboard #games .game-recommended-badge{
  flex:0 0 auto;
  margin:0!important;
  padding:3px 7px!important;
  border-radius:999px;
  border-color:rgba(50,211,139,.32);
  background:rgba(14,84,61,.48);
  color:#9ff4c7;
  font-size:9px!important;
  line-height:1.2!important;
  white-space:nowrap;
}

.games-dashboard #games .game-best{
  border:1px solid rgba(245,158,11,.15);
  border-radius:999px;
  background:linear-gradient(90deg,rgba(245,158,11,.13),rgba(245,158,11,.05));
  color:#ffdc72;
  padding:4px 8px;
}

.games-dashboard #games .favorite-button{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.games-dashboard #games .play-pill{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

/* iPhone catalog: title on top, description below, score + play side-by-side.
   This removes the empty dedicated Play row and makes the list scan faster. */
@media(max-width:700px){
  body.games-dashboard .games-hero{
    margin:2px 0 8px!important;
  }

  body.games-dashboard .games-hero h1{
    font-size:31px!important;
    margin:2px 0 4px!important;
  }

  body.games-dashboard .games-simple-note{
    margin:5px 0 6px!important;
  }

  body.games-dashboard .games-start-here:not(.games-mission-strip){
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    margin:5px 0 7px!important;
    padding:7px 10px!important;
  }

  body.games-dashboard .games-start-here:not(.games-mission-strip) strong{
    font-size:11px!important;
  }

  body.games-dashboard .games-start-here:not(.games-mission-strip) span{
    font-size:9.5px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.games-dashboard .game-browser-tools{
    margin:7px 0 9px!important;
    padding:8px!important;
  }

  body.games-dashboard .game-search-wrap{
    min-height:44px!important;
    margin-bottom:7px!important;
    padding:6px 11px!important;
  }

  body.games-dashboard .game-search-wrap input{
    min-height:36px!important;
    font-size:15px!important;
  }

  body.games-dashboard .game-filter-row{
    gap:6px!important;
    margin-top:4px!important;
  }

  body.games-dashboard .game-filter{
    min-height:34px!important;
    padding:6px 10px!important;
    font-size:9.5px!important;
  }

  body.games-dashboard #games{
    gap:9px!important;
  }

  body.games-dashboard #games .catalog-tile{
    display:grid!important;
    height:auto!important;
    min-height:112px!important;
    padding:10px 12px 10px 16px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
    grid-template-areas:
      "title title"
      "rule rule"
      "best play"!important;
    column-gap:8px!important;
    row-gap:6px!important;
  }

  body.games-dashboard #games .catalog-tile:has(.game-recommended-badge){
    height:auto!important;
    padding-top:10px!important;
  }

  body.games-dashboard #games .catalog-tile:has(.status-line){
    height:auto!important;
    grid-template-rows:auto auto auto auto!important;
    grid-template-areas:
      "title title"
      "rule rule"
      "best play"
      "status status"!important;
  }

  body.games-dashboard #games .catalog-tile:has(.game-recommended-badge):has(.status-line){
    height:auto!important;
    padding-top:10px!important;
  }

  body.games-dashboard #games .game-title-row{
    grid-area:title!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    width:100%!important;
    min-height:38px!important;
    gap:8px!important;
  }

  body.games-dashboard #games .game-name-wrap{
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    flex:1 1 auto!important;
    min-width:0!important;
    height:auto!important;
  }

  body.games-dashboard #games .game-icon-bubble{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    border-radius:12px!important;
    font-size:21px!important;
  }

  body.games-dashboard #games .game-name-wrap h2{
    min-width:0!important;
    margin:0!important;
    font-size:16.5px!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.games-dashboard #games .game-recommended-badge{
    position:static!important;
    transform:none!important;
    top:auto!important;
    left:auto!important;
    font-size:8.5px!important;
    padding:3px 6px!important;
  }

  body.games-dashboard #games .game-title-actions{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    flex:0 0 auto!important;
  }

  body.games-dashboard #games .favorite-button{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    min-height:32px!important;
    padding:0!important;
    border-radius:10px!important;
    font-size:18px!important;
  }

  body.games-dashboard #games .play-pill{
    height:32px!important;
    min-height:32px!important;
    padding:0 9px!important;
    font-size:9.5px!important;
  }

  body.games-dashboard #games .reward-rule{
    grid-area:rule!important;
    padding:0 0 0 46px!important;
    margin:0!important;
    max-width:none!important;
    min-height:0!important;
    font-size:10.5px!important;
    line-height:1.25!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  body.games-dashboard #games .game-best{
    grid-area:best!important;
    justify-self:start!important;
    align-self:center!important;
    margin:0 0 0 46px!important;
    padding:3px 7px!important;
    min-height:0!important;
    font-size:9px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }

  body.games-dashboard #games .game-play-button{
    grid-area:play!important;
    justify-self:end!important;
    align-self:center!important;
    width:108px!important;
    min-width:108px!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0 12px!important;
    border-radius:13px!important;
    font-size:13px!important;
  }

  body.games-dashboard #games .catalog-tile:has(.status-line) .game-play-button{
    width:150px!important;
    min-width:150px!important;
    min-height:40px!important;
    height:40px!important;
    font-size:10.5px!important;
  }

  body.games-dashboard #games .status-line{
    grid-area:status!important;
    justify-self:stretch!important;
    margin:0 0 0 46px!important;
    padding:4px 8px!important;
    font-size:8.5px!important;
    line-height:1.2!important;
    text-align:left!important;
  }
}

@media(max-width:390px){
  body.games-dashboard #games .game-recommended-badge{
    display:none!important;
  }

  body.games-dashboard #games .game-play-button{
    width:102px!important;
    min-width:102px!important;
  }

  body.games-dashboard #games .play-pill{
    padding-inline:8px!important;
  }
}


/* Premium pass v6 — explicit compact game footer */

.games-dashboard #games .game-card-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}

.games-dashboard #games .game-card-footer .game-best{
  margin:0!important;
}

.games-dashboard #games .game-card-footer .game-play-button{
  margin:0!important;
}

@media(max-width:700px){
  body.games-dashboard #games .catalog-tile{
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
    padding:11px 12px 11px 16px!important;
    gap:7px!important;
  }

  body.games-dashboard #games .catalog-tile:has(.game-recommended-badge),
  body.games-dashboard #games .catalog-tile:has(.status-line),
  body.games-dashboard #games .catalog-tile:has(.game-recommended-badge):has(.status-line){
    height:auto!important;
    min-height:0!important;
    padding-top:11px!important;
  }

  body.games-dashboard #games .game-title-row{
    width:100%!important;
    min-height:38px!important;
    margin:0!important;
  }

  body.games-dashboard #games .reward-rule{
    width:100%!important;
    padding:0 0 0 46px!important;
    margin:0!important;
    min-height:0!important;
    line-height:1.25!important;
  }

  body.games-dashboard #games .game-card-footer{
    width:100%!important;
    padding-left:46px!important;
    min-height:40px!important;
  }

  body.games-dashboard #games .game-card-footer .game-best{
    flex:0 1 auto!important;
    justify-self:auto!important;
    min-width:0!important;
    max-width:calc(100% - 118px)!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    font-size:9px!important;
    padding:3px 7px!important;
  }

  body.games-dashboard #games .game-card-footer .game-play-button{
    flex:0 0 108px!important;
    width:108px!important;
    min-width:108px!important;
    height:40px!important;
    min-height:40px!important;
    justify-self:auto!important;
    align-self:auto!important;
    margin:0!important;
  }

  body.games-dashboard #games .catalog-tile:has(.status-line) .game-card-footer .game-play-button{
    flex-basis:145px!important;
    width:145px!important;
    min-width:145px!important;
  }

  body.games-dashboard #games .status-line{
    width:calc(100% - 46px)!important;
    margin:0 0 0 46px!important;
  }
}

@media(max-width:390px){
  body.games-dashboard #games .game-card-footer{
    padding-left:0!important;
  }

  body.games-dashboard #games .reward-rule{
    padding-left:0!important;
  }

  body.games-dashboard #games .game-card-footer .game-best{
    max-width:calc(100% - 108px)!important;
  }
}


/* Premium pass v7 — final Games alignment */

.games-dashboard #games .game-card-footer.no-best{
  justify-content:flex-end;
}

.games-dashboard #games .game-card-footer.no-best .game-play-button{
  margin-left:auto!important;
}

@media(max-width:700px){
  body.games-dashboard .games-start-here:not(.games-mission-strip) span{
    white-space:normal!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
}


/* Premium pass v8 — Rewards real-value roadmap */

.reward-vision-card{
  position:relative;
  overflow:hidden;
  margin:16px 0;
  padding:18px;
  border:1px solid rgba(255,193,77,.34);
  border-radius:22px;
  background:
    radial-gradient(circle at 92% 0%,rgba(255,193,77,.12),transparent 34%),
    radial-gradient(circle at 0% 100%,rgba(47,140,255,.10),transparent 34%),
    linear-gradient(145deg,rgba(24,39,61,.98),rgba(9,21,37,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 18px 42px rgba(0,0,0,.24);
  text-align:left;
}

.reward-vision-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(110deg,rgba(255,255,255,.025),transparent 42%);
}

.reward-vision-head{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
}

.reward-vision-icon{
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border:1px solid rgba(255,193,77,.30);
  border-radius:15px;
  background:linear-gradient(145deg,rgba(104,74,18,.55),rgba(35,25,10,.38));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 8px 20px rgba(0,0,0,.16);
  font-size:23px;
}

.reward-vision-head h2{
  margin:3px 0 0;
  font-size:19px;
  line-height:1.15;
  letter-spacing:-.025em;
}

.reward-vision-copy{
  position:relative;
  z-index:1;
  margin:14px 0;
  color:#aebfd2;
  font-size:12px;
  line-height:1.5;
}

.reward-funding-strip{
  position:relative;
  z-index:1;
  display:grid;
  gap:5px;
  margin:0 0 13px;
  padding:12px 13px;
  border:1px solid rgba(73,167,230,.26);
  border-radius:16px;
  background:linear-gradient(145deg,rgba(10,43,65,.68),rgba(8,25,42,.75));
}

.reward-funding-strip>span{
  color:#6ee7ff;
  font-size:10px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.reward-funding-strip strong{
  color:#fff;
  font-size:13px;
  line-height:1.3;
}

.reward-funding-strip small{
  color:#8fa3bb;
  font-size:9.5px;
  line-height:1.4;
}

.reward-future-options{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}

.reward-future-option{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px 9px;
  align-items:center;
  padding:12px;
  border:1px solid rgba(79,132,181,.34);
  border-radius:17px;
  background:linear-gradient(145deg,rgba(20,40,64,.94),rgba(9,22,38,.94));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.reward-future-option>span{
  grid-row:1 / 3;
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  border-radius:12px;
  background:#0c1b2e;
  border:1px solid rgba(81,137,187,.30);
  font-size:21px;
}

.reward-future-option div{
  min-width:0;
}

.reward-future-option strong{
  display:block;
  font-size:12px;
  color:#f8fbff;
}

.reward-future-option small{
  display:block;
  margin-top:2px;
  color:#93a7bf;
  font-size:9px;
  line-height:1.3;
}

.reward-future-option>b{
  grid-column:2;
  width:max-content;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(255,193,77,.10);
  border:1px solid rgba(255,193,77,.18);
  color:#ffd86d;
  font-size:8px;
  letter-spacing:.07em;
}

.rewards-dashboard .rewards-balance-card p{
  max-width:420px;
}

.rewards-dashboard .rewards-readiness-row>span{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

@media(max-width:600px){
  .reward-vision-card{
    padding:15px;
    border-radius:20px;
  }

  .reward-vision-head{
    grid-template-columns:auto minmax(0,1fr);
  }

  .reward-vision-head .rewards-status-pill{
    grid-column:1 / -1;
    justify-self:start;
    margin-left:57px;
  }

  .reward-future-options{
    grid-template-columns:1fr;
  }
}


/* Premium pass v10 — Profile player hub */

.profile-dashboard .profile-hero{
  position:relative;
  overflow:hidden;
  padding:16px;
  border-radius:22px;
  background:
    radial-gradient(circle at 88% 0%,rgba(79,158,255,.14),transparent 34%),
    radial-gradient(circle at 0% 100%,rgba(85,220,255,.06),transparent 30%),
    linear-gradient(145deg,rgba(22,43,69,.98),rgba(9,22,38,.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 18px 40px rgba(0,0,0,.22);
}

.profile-dashboard .profile-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.025),transparent 42%);
}

.profile-dashboard .profile-eyebrow{
  position:relative;
  z-index:1;
  color:#67dfff;
  letter-spacing:.16em;
}

.profile-dashboard .profile-hero-row{
  position:relative;
  z-index:1;
  margin-top:9px;
}

.profile-dashboard .profile-hero .profile-avatar{
  width:52px;
  height:52px;
  border-radius:17px;
  border-color:rgba(88,160,220,.42);
  background:
    radial-gradient(circle at 35% 20%,rgba(92,211,255,.15),transparent 40%),
    linear-gradient(145deg,#17304c,#0c1a2d);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05),0 10px 24px rgba(0,0,0,.18);
  font-size:26px;
}

.profile-dashboard .profile-hero-copy h1{
  font-size:26px;
  letter-spacing:-.04em;
}

.profile-dashboard .profile-level-line{
  margin-top:4px;
  color:#9eb2c9;
  font-size:10.5px;
}

.profile-dashboard .profile-settings-link{
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(145deg,#162b44,#0b192b);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.profile-dashboard .profile-xp-line{
  position:relative;
  z-index:1;
  margin-top:13px;
  font-size:10px;
}

.profile-dashboard .profile-hero .xp-bar{
  position:relative;
  z-index:1;
  height:8px;
  margin-top:6px;
}

.profile-dashboard .profile-edit-card{
  border-radius:16px;
  background:rgba(12,27,46,.70);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.profile-dashboard .profile-edit-card summary{
  font-size:11px;
}

.profile-dashboard .profile-key-stats{
  gap:8px;
  margin:12px 0 10px;
}

.profile-dashboard .profile-key-stats>div{
  min-width:0;
  padding:12px 7px 11px;
  border-radius:15px;
  background:
    radial-gradient(circle at 70% 0%,rgba(73,157,255,.08),transparent 44%),
    linear-gradient(145deg,rgba(19,38,61,.96),rgba(10,23,39,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 9px 20px rgba(0,0,0,.12);
}

.profile-dashboard .profile-key-stats>div:nth-child(2){
  background:
    radial-gradient(circle at 70% 0%,rgba(255,193,77,.10),transparent 44%),
    linear-gradient(145deg,rgba(28,39,57,.97),rgba(10,23,39,.96));
}

.profile-dashboard .profile-key-stats strong{
  font-size:19px;
  letter-spacing:-.035em;
}

.profile-dashboard .profile-key-stats>div:nth-child(2) strong{
  color:#ffd66b;
}

.profile-dashboard .profile-key-stats span{
  margin-top:3px;
  font-size:8px;
  line-height:1.2;
}

.profile-dashboard .profile-secondary-stats{
  gap:7px;
  margin-bottom:13px;
}

.profile-dashboard .profile-secondary-stats>div{
  min-height:38px;
  padding:9px 11px;
  border-radius:12px;
  background:linear-gradient(145deg,rgba(13,29,49,.90),rgba(8,20,35,.92));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

.profile-dashboard .profile-secondary-stats span{
  font-size:8.5px;
}

.profile-dashboard .profile-secondary-stats strong{
  font-size:9.5px;
  color:#eaf4ff;
}

.profile-dashboard .profile-section,
.profile-dashboard .profile-achievement-card{
  border-radius:17px;
}

.profile-dashboard .profile-section-head h2{
  font-size:13px;
}

.profile-dashboard .profile-section-head a,
.profile-dashboard .profile-achievement-card a{
  color:#65dcff;
  font-weight:850;
}

.profile-dashboard .profile-favorites .quick-game{
  min-height:40px;
  border-radius:12px;
  background:linear-gradient(145deg,#172a42,#0e1d31);
  border-color:rgba(74,129,180,.38);
  box-shadow:none;
}

.profile-dashboard .profile-achievement-card{
  padding:13px;
  background:
    radial-gradient(circle at 88% 0%,rgba(255,193,77,.08),transparent 36%),
    linear-gradient(145deg,rgba(22,39,61,.96),rgba(10,22,38,.96));
}

.profile-dashboard .profile-achievement-card strong{
  font-size:11px;
}

.profile-dashboard .profile-shortcuts{
  gap:8px;
  margin-top:11px;
}

.profile-dashboard .profile-shortcuts a{
  min-height:62px;
  padding:11px;
  border-radius:15px;
  background:
    radial-gradient(circle at 85% 0%,rgba(67,151,255,.07),transparent 40%),
    linear-gradient(145deg,rgba(19,38,61,.96),rgba(9,22,38,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 8px 20px rgba(0,0,0,.12);
}

.profile-dashboard .profile-shortcuts a>span{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  border:1px solid rgba(77,133,183,.34);
  border-radius:11px;
  background:#0d1b2d;
  font-size:19px;
}

.profile-dashboard .profile-shortcuts strong{
  font-size:10px;
}

.profile-dashboard .profile-shortcuts small{
  margin-top:2px;
  font-size:8px;
}

@media(max-width:600px){
  .profile-dashboard .profile-container{
    padding-inline:14px;
  }

  .profile-dashboard .profile-hero{
    margin-top:2px;
    padding:14px;
  }

  .profile-dashboard .profile-key-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .profile-dashboard .profile-key-stats>div{
    min-height:66px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .profile-dashboard .profile-shortcuts a{
    min-height:60px;
  }
}


/* Premium pass v11 — Missions challenge board */

.missions-dashboard .missions-hero{
  margin:2px 0 12px;
  text-align:left;
}

.missions-dashboard .missions-hero h1{
  margin:4px 0 4px;
  font-size:clamp(30px,8vw,40px);
  line-height:1.04;
  letter-spacing:-.045em;
}

.missions-dashboard .missions-hero p{
  max-width:430px;
  color:#a5b5c9;
  font-size:11px;
  line-height:1.45;
}

.missions-dashboard .missions-player-strip{
  position:relative;
  overflow:hidden;
  padding:12px 13px;
  border-radius:17px;
  border-color:rgba(75,132,186,.40);
  background:
    radial-gradient(circle at 90% 0%,rgba(74,157,255,.10),transparent 38%),
    linear-gradient(145deg,rgba(20,39,63,.96),rgba(9,22,38,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 11px 26px rgba(0,0,0,.16);
}

.missions-dashboard .missions-player-strip strong{
  font-size:11px;
}

.missions-dashboard .missions-player-strip span{
  font-size:9px;
}

.missions-dashboard .missions-player-strip .xp-bar{
  height:7px;
}

.missions-dashboard .missions-weekly-card{
  position:relative;
  overflow:hidden;
  margin-bottom:12px;
  padding:14px;
  border-radius:20px;
  border-color:rgba(80,145,205,.46);
  background:
    radial-gradient(circle at 92% 2%,rgba(67,153,255,.13),transparent 34%),
    radial-gradient(circle at 0% 100%,rgba(139,92,246,.07),transparent 32%),
    linear-gradient(145deg,rgba(22,43,69,.98),rgba(9,22,38,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04),0 16px 38px rgba(0,0,0,.20);
}

.missions-dashboard .missions-weekly-head h2{
  font-size:15px;
  letter-spacing:-.02em;
}

.missions-dashboard .missions-weekly-head span{
  margin-top:3px;
  font-size:9px;
}

.missions-dashboard .missions-weekly-head>strong{
  min-width:46px;
  padding:6px 9px;
  border-color:rgba(94,163,225,.40);
  background:rgba(11,28,48,.72);
  color:#dff4ff;
  font-size:10px;
  text-align:center;
}

.missions-dashboard .mission-list{
  gap:8px;
  margin-top:11px;
}

.missions-dashboard .mission-card{
  position:relative;
  overflow:hidden;
  padding:11px 12px;
  border:1px solid rgba(73,126,176,.34);
  border-radius:14px;
  background:
    linear-gradient(145deg,rgba(17,34,56,.94),rgba(9,22,38,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.missions-dashboard .mission-card.playable::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(#55dcff,#4777ff);
}

.missions-dashboard .mission-card.complete{
  border-color:rgba(39,204,116,.34);
  background:
    radial-gradient(circle at 90% 0%,rgba(31,214,118,.08),transparent 36%),
    linear-gradient(145deg,rgba(14,43,42,.88),rgba(8,25,35,.94));
}

.missions-dashboard .mission-head{
  align-items:center;
}

.missions-dashboard .mission-title{
  color:#f7fbff;
  font-size:11.5px;
  font-weight:900;
}

.missions-dashboard .mission-reward{
  padding:4px 7px;
  border:1px solid rgba(255,193,77,.20);
  border-radius:999px;
  background:rgba(255,193,77,.08);
  color:#ffd66b;
  font-size:9px;
  font-weight:900;
}

.missions-dashboard .mission-description{
  margin:4px 0 7px;
  color:#9fb1c7;
  font-size:9.5px;
  line-height:1.4;
}

.missions-dashboard .mission-progress-row{
  margin-bottom:5px;
  color:#8fa4bc;
  font-size:8.5px;
}

.missions-dashboard .mission-progress{
  height:7px;
  border:1px solid rgba(67,108,150,.36);
  background:#07111e;
  box-shadow:inset 0 2px 8px rgba(0,0,0,.28);
}

.missions-dashboard .mission-progress>span{
  background:linear-gradient(90deg,#22d879,#52d7dc,#3c8cff);
  box-shadow:0 0 14px rgba(73,202,255,.20);
}

.missions-dashboard .mission-card button{
  min-height:38px;
  margin-top:8px;
  padding:8px 10px;
  border-radius:12px;
  font-size:9.5px;
  font-weight:900;
}

.missions-dashboard .missions-highlights{
  gap:7px;
  margin-bottom:12px;
}

.missions-dashboard .missions-highlights>div{
  min-height:58px;
  padding:9px 6px;
  border-radius:13px;
  border-color:rgba(69,119,166,.34);
  background:
    radial-gradient(circle at 78% 0%,rgba(67,151,255,.07),transparent 42%),
    linear-gradient(145deg,rgba(18,35,57,.94),rgba(9,21,36,.96));
}

.missions-dashboard .missions-highlights strong{
  font-size:16px;
}

.missions-dashboard .missions-highlights span{
  margin-top:3px;
  font-size:7.5px;
}

.missions-dashboard .missions-detail-card{
  border-radius:17px;
  border-color:rgba(70,121,168,.34);
  background:linear-gradient(145deg,rgba(17,34,56,.94),rgba(9,22,38,.95));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.missions-dashboard .missions-detail-card summary{
  padding:12px 0;
  font-size:10.5px;
}

.missions-dashboard .streak-step{
  border-radius:12px;
  border-color:rgba(72,122,168,.34);
  background:#0d1c2f;
}

.missions-dashboard .streak-step.reached{
  border-color:rgba(255,152,65,.38);
  background:linear-gradient(145deg,rgba(81,39,16,.62),rgba(26,27,34,.86));
}

.missions-dashboard .streak-reward,
.missions-dashboard .game-stat-row{
  border:1px solid rgba(67,115,160,.30);
  background:rgba(10,25,43,.76);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

.missions-dashboard .streak-reward.ready{
  border-color:rgba(36,205,117,.38);
  background:rgba(8,58,38,.50);
}

@media(max-width:600px){
  .missions-dashboard .missions-container{
    padding-inline:14px;
  }

  .missions-dashboard .missions-weekly-card{
    padding:12px;
  }

  .missions-dashboard .missions-highlights{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}


/* Premium pass v12 — Profile bottom-nav clearance */

/* The fixed iPhone tab bar must never cover the final Profile shortcuts. */
@media(max-width:700px){
  body.profile-dashboard.has-app-nav .profile-container{
    padding-bottom:max(176px,calc(142px + env(safe-area-inset-bottom)))!important;
  }

  body.profile-dashboard .profile-shortcuts{
    margin-bottom:18px!important;
  }

  body.profile-dashboard .profile-shortcuts a{
    scroll-margin-bottom:140px;
  }
}


/* Premium pass v13 — Missions clearance + Snake game screen */

/* Give long expandable Missions sections enough real scroll room above the
   fixed iPhone tab bar. */
@media(max-width:700px){
  body.missions-dashboard.has-app-nav .missions-container{
    padding-bottom:max(184px,calc(148px + env(safe-area-inset-bottom)))!important;
  }

  body.missions-dashboard .missions-detail-card:last-of-type{
    margin-bottom:22px!important;
    scroll-margin-bottom:145px;
  }
}

/* Snake should feel like a focused arcade game, not another dashboard page. */
body.snake-page{
  min-height:100dvh;
  background:
    radial-gradient(circle at 50% -6%,rgba(34,197,94,.15),transparent 25rem),
    radial-gradient(circle at 100% 38%,rgba(47,140,255,.07),transparent 24rem),
    linear-gradient(180deg,#07131f,#061019 65%,#040a11);
}

body.snake-page .container{
  width:min(100%,500px);
}

body.snake-page .topbar{
  position:relative;
  z-index:2;
}

body.snake-page .brand,
body.snake-page .balance-chip{
  border-color:rgba(75,132,180,.30);
  background:rgba(10,25,42,.74);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

body.snake-page .snake-header{
  position:relative;
  overflow:hidden;
  margin:4px 0 8px!important;
  padding:12px;
  border:1px solid rgba(54,151,103,.36);
  border-radius:18px;
  background:
    radial-gradient(circle at 8% 0%,rgba(54,222,125,.10),transparent 34%),
    linear-gradient(145deg,rgba(17,38,54,.96),rgba(7,23,31,.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 14px 32px rgba(0,0,0,.20);
}

body.snake-page .snake-header::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(112deg,rgba(255,255,255,.02),transparent 44%);
}

body.snake-page .game-title-status-row,
body.snake-page .snake-stats{
  position:relative;
  z-index:1;
}

body.snake-page .game-title-status-row h1{
  color:#f5fff8;
  letter-spacing:-.04em;
  text-shadow:0 8px 24px rgba(0,0,0,.20);
}

body.snake-page .game-status{
  border:1px solid rgba(91,139,180,.38);
  background:#0b1a2b;
  color:#b8c9dc;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

body.snake-page .game-status.running{
  border-color:rgba(48,224,124,.44);
  background:rgba(8,73,43,.72);
  color:#89f7b6;
  box-shadow:0 0 18px rgba(42,207,112,.10);
}

body.snake-page .game-status.over{
  border-color:rgba(255,92,108,.34);
  background:rgba(82,25,34,.72);
  color:#ffb5be;
}

body.snake-page .snake-stats{
  gap:7px!important;
}

body.snake-page .snake-stats>span{
  border:1px solid rgba(64,117,158,.34);
  background:linear-gradient(145deg,rgba(16,35,55,.96),rgba(8,22,37,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

body.snake-page .snake-stats>span:nth-child(2){
  border-color:rgba(255,193,77,.26);
  background:
    radial-gradient(circle at 80% 0%,rgba(255,193,77,.09),transparent 42%),
    linear-gradient(145deg,rgba(29,39,51,.97),rgba(10,23,37,.96));
}

body.snake-page .snake-stats small{
  color:#8098af;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

body.snake-page .snake-stats>span:nth-child(2) strong{
  color:#ffd86b;
  text-shadow:0 0 16px rgba(255,193,77,.10);
}

body.snake-page #startButton{
  border-color:rgba(56,218,126,.34);
  background:linear-gradient(135deg,#18c865,#07984a);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 10px 24px rgba(9,151,73,.16);
  color:#fff;
}

body.snake-page #startButton:disabled{
  opacity:1;
  border-color:rgba(77,129,169,.30);
  background:linear-gradient(145deg,#15263a,#0d1a2b);
  color:#9fb2c7;
  box-shadow:none;
}

body.snake-page canvas#game{
  display:block;
  width:min(100%,400px);
  aspect-ratio:1;
  margin-inline:auto;
  border:2px solid rgba(65,213,127,.30)!important;
  border-radius:21px!important;
  background-color:#07150f;
  background-image:
    linear-gradient(rgba(67,160,98,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(67,160,98,.045) 1px,transparent 1px),
    radial-gradient(circle at 50% 45%,rgba(24,100,57,.17),transparent 62%);
  background-size:20px 20px,20px 20px,100% 100%;
  box-shadow:
    inset 0 0 40px rgba(0,0,0,.20),
    0 18px 38px rgba(0,0,0,.28),
    0 0 0 1px rgba(62,230,130,.07)!important;
}

body.snake-page .game-guide-overlay{
  border-radius:18px;
  background:
    radial-gradient(circle at 50% 0%,rgba(34,197,94,.10),transparent 40%),
    linear-gradient(180deg,rgba(7,24,26,.94),rgba(6,18,27,.985));
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

body.snake-page .snake-start-callout{
  border-color:#64e994;
  background:linear-gradient(135deg,#19b95d,#0c8e45);
  box-shadow:
    0 0 0 5px rgba(34,197,94,.10),
    0 12px 26px rgba(0,0,0,.26);
}

body.snake-page .snake-overlay-howto>div{
  border-color:rgba(68,124,165,.35);
  background:rgba(8,25,40,.88);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}

body.snake-page .snake-overlay-howto b{
  background:linear-gradient(135deg,#25c86b,#2788e8);
}

body.snake-page .desktop-controls .game-control{
  border-color:rgba(70,124,171,.40);
  background:linear-gradient(145deg,#1b3048,#101d30);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

body.snake-page>a.button.secondary.wide,
body.snake-page .container>a.button.secondary.wide{
  border-color:rgba(69,117,159,.32);
  background:rgba(11,26,44,.68);
  box-shadow:none;
  color:#aebfd2;
}

@media(max-width:700px){
  body.snake-page .container{
    padding-inline:12px!important;
    padding-bottom:max(34px,env(safe-area-inset-bottom))!important;
  }

  body.snake-page .snake-header{
    padding:10px!important;
  }

  body.snake-page .game-title-status-row h1{
    font-size:21px!important;
  }

  body.snake-page .snake-stats>span{
    min-height:46px!important;
  }

  body.snake-page canvas#game{
    width:min(100%,400px)!important;
    max-height:min(53vh,400px)!important;
  }

  body.snake-page .desktop-controls{
    display:none!important;
  }
}


/* Premium pass v14 — Snake active-run focus */

/* Keep Snake clear of the iPhone status bar. The older compact-HUD rule
   forced an 8px top inset and could place the Games/balance row under the
   clock when launched as a Home Screen app. */
@media(max-width:700px){
  body.snake-page .container{
    padding-top:max(14px,calc(env(safe-area-inset-top) + 8px))!important;
  }

  /* During a live run the player already knows the rules. Remove the two
     instruction rows so the board becomes the visual focus and sits higher. */
  body.snake-page.snake-game-active .game-start-summary,
  body.snake-page.snake-game-active .game-guide-strip{
    display:none!important;
  }

  body.snake-page.snake-game-active .snake-header{
    margin-bottom:7px!important;
  }

  body.snake-page.snake-game-active .game-guide-surface-wrap{
    margin-top:7px!important;
  }

  body.snake-page.snake-game-active canvas#game{
    max-height:min(62vh,400px)!important;
  }
}
