/* Playground Phase 4 · Information Architecture only.
   Product goal: orientation -> action -> competition. No final Brand Direction. */

html[data-gpb-polish="1"] #app>main[data-gpb-play-shell="1"]{
  --play-ia-panel:var(--gpb-ui-panel,#0f1217);
  --play-ia-surface:var(--gpb-ui-surface,#11151b);
  --play-ia-line:var(--gpb-ui-line,rgba(201,209,220,.12));
  --play-ia-text:var(--gpb-ui-text,#e7ebf0);
  --play-ia-muted:var(--gpb-ui-muted,#939ca9);
  --play-ia-data:var(--gpb-ui-data,#c9d1dc);
}

/* Overview = round orientation + two game entry points. */
html[data-gpb-polish="1"] .v7007g6-overview-hero .v7007g3c-hero-top{
  grid-template-columns:minmax(0,1fr) minmax(420px,500px)!important;
  gap:28px!important;
}
html[data-gpb-polish="1"] .v7007g6-overview-hero .v7007g3b-race-context{
  width:100%!important;
}
html[data-gpb-polish="1"] .v7007g6-overview-hero .v7007g3c-hero-bottom{
  display:grid!important;
  grid-template-columns:minmax(180px,1fr) auto!important;
  gap:8px!important;
  padding-top:16px!important;
}
html[data-gpb-polish="1"] #app>main>.v7007g3b-admin-game-hero.v7007g3c-hero>.v7007g3b-hero-head{grid-template-columns:minmax(0,1fr) minmax(320px,460px)!important;align-items:stretch!important}
html[data-gpb-polish="1"] #app>main>.v7007g3b-admin-game-hero.v7007g3c-hero .v7007g3b-hero-copy{display:flex!important;flex-direction:column;gap:10px!important;max-width:none!important;min-width:0}
html[data-gpb-polish="1"] #app>main>.v7007g3b-admin-game-hero.v7007g3c-hero .v7007g3b-hero-copy>.v7007g6-header-summary{display:block!important;width:100%;margin-top:auto!important;padding-top:6px!important;border-top:0!important}
html[data-gpb-polish="1"] .v7007g3c-hero-brand{display:flex;align-items:center;gap:12px}
html[data-gpb-polish="1"] .v7007g3c-hero-brand img{flex:0 0 auto;width:52px;height:52px;border-radius:14px;object-fit:contain}
html[data-gpb-polish="1"] .v7007g3c-hero-brand strong{color:#fff;font-size:17px;font-weight:900;line-height:.98;letter-spacing:-.04em}
html[data-gpb-polish="1"] .v7007g3c-hero-brand em{color:var(--play-brand-competition);font-style:normal}
html[data-gpb-polish="1"] .v7007g6-overview-round{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,132px));
  gap:8px;
}
html[data-gpb-polish="1"] .v7007g6-overview-round-stat{
  display:grid;
  justify-items:center;
  align-content:center;
  gap:6px;
  min-width:0;
  padding:12px 14px;
  border:1px solid var(--play-ia-line);
  border-radius:10px;
  background:rgba(12,14,18,.28);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  text-align:center;
}
html[data-gpb-polish="1"] .v7007g6-overview-round-stat.is-round{--kpi-accent:var(--play-brand-competition)}
html[data-gpb-polish="1"] .v7007g6-overview-round-stat.is-grid{--kpi-accent:var(--play-brand-grid)}
html[data-gpb-polish="1"] .v7007g6-overview-round-stat.is-prediction{--kpi-accent:var(--play-brand-prediction)}
html[data-gpb-polish="1"] .v7007g6-overview-round-stat small{
  color:var(--play-ia-muted);
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
}
html[data-gpb-polish="1"] .v7007g6-overview-round-stat b{
  color:var(--kpi-accent);
  font-size:28px;
  font-weight:850;
  line-height:1;
  letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}
html[data-gpb-polish="1"] .v7007g6-overview-round-stat span{
  max-width:100%;
  overflow:hidden;
  color:var(--play-ia-muted);
  font-size:10px;
  white-space:nowrap;
  text-overflow:ellipsis;
}
html[data-gpb-polish="1"] .v7007g3c-hero-side{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;gap:10px;align-self:stretch;min-width:0}
html[data-gpb-polish="1"] .v7007g3c-hero-side>.v7007g3c-primary{align-self:end;justify-self:end;justify-content:center;width:calc((100% - 9px)/2)}
html[data-gpb-polish="1"] .v7007g6-overview{
  display:grid!important;
  gap:14px!important;
}
html[data-gpb-polish="1"] .v7007g6-overview-games{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:14px!important;
}
html[data-gpb-polish="1"] .v7007g6-overview-games .v7007g3c-game{
  min-height:240px!important;
}
html[data-gpb-polish="1"] .v7007g6-game-stats{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
html[data-gpb-polish="1"] .v7007g6-game-stats>span{
  display:grid;
  gap:4px;
  padding:10px 11px;
  border:1px solid var(--play-ia-line);
  border-radius:9px;
  background:var(--play-ia-surface);
}
html[data-gpb-polish="1"] .v7007g6-game-stats small{
  color:var(--play-ia-muted);
  font-size:8px;
  font-weight:850;
  letter-spacing:.08em;
}
html[data-gpb-polish="1"] .v7007g6-game-stats b{
  color:var(--play-ia-data);
  font-size:18px;
  font-variant-numeric:tabular-nums;
}

/* Game landings = orientation in header, action in Playzone. */
html[data-gpb-polish="1"] .v7007g6-header-summary .v7007g3b-admin-game-meta{
  grid-template-columns:minmax(0,1fr)!important;
}
html[data-gpb-polish="1"] .v7007g6-header-summary .v7007g3b-admin-game-meta>span{
  max-width:430px;
}
html[data-gpb-polish="1"] .v7007g3b-game-page{
  gap:14px!important;
}
html[data-gpb-polish="1"] .v7007g6-play-zone{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"copy stats" "action stats";
  gap:18px 28px!important;
  align-items:center;
  min-height:176px;
  padding:20px 22px!important;
  border:1px solid var(--play-ia-line)!important;
  border-radius:14px!important;
  background:var(--play-ia-panel)!important;
  box-shadow:none!important;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-copy{
  grid-area:copy;
  min-width:0;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-kicker{
  display:flex;
  align-items:center;
  gap:9px;
}
html[data-gpb-polish="1"] .v7007g6-play-zone h2{
  margin:7px 0 0!important;
  color:var(--play-ia-text)!important;
  font-size:24px!important;
  line-height:1.1!important;
  letter-spacing:-.025em!important;
}
html[data-gpb-polish="1"] .v7007g6-play-zone p{
  margin:6px 0 0!important;
  max-width:680px;
  color:var(--play-ia-muted)!important;
  font-size:12px!important;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats{
  grid-area:stats;
  display:grid;
  grid-template-columns:repeat(2,minmax(94px,1fr));
  gap:8px;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats>span{
  display:grid;
  gap:3px;
  min-width:96px;
  padding:11px 12px;
  border:1px solid var(--play-ia-line);
  border-radius:10px;
  background:var(--play-ia-surface);
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats small{
  color:var(--play-ia-muted);
  font-size:8px;
  font-weight:850;
  letter-spacing:.08em;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats b{
  color:var(--play-ia-data);
  font-size:20px;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats em{
  color:var(--play-ia-muted);
  font-size:8px;
  font-style:normal;
}
html[data-gpb-polish="1"] .v7007g6-play-cta{
  grid-area:action;
  justify-self:start;
  min-width:220px;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-loading{
  min-height:176px!important;
}
html[data-gpb-polish="1"] .v7007g3b-competition-grid{
  grid-template-columns:minmax(0,2fr) minmax(290px,1fr)!important;
  gap:14px!important;
}
html[data-gpb-polish="1"] .v7007g3b-ranking{grid-column:1!important}
html[data-gpb-polish="1"] .v7007g3b-records{grid-column:2!important}
html[data-gpb-polish="1"] .v7007g3b-record-list{
  grid-template-columns:1fr!important;
  gap:8px!important;
}
html[data-gpb-polish="1"] .v7007g3b-record{
  min-height:96px!important;
}

/* Ranking = one control bar, not a second navigation system. */
html[data-gpb-polish="1"] .v7007g6-ranking-controls{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  padding:12px!important;
}
html[data-gpb-polish="1"] .v7007g6-ranking-controls label>span{
  font-size:8px!important;
}
html[data-gpb-polish="1"] .v7007g4-dimensions{
  display:none!important;
}

@media(max-width:960px){
  html[data-gpb-polish="1"] .v7007g6-overview-hero .v7007g3c-hero-top{
    grid-template-columns:1fr!important;
  }
  html[data-gpb-polish="1"] .v7007g3b-competition-grid{
    grid-template-columns:1fr!important;
  }
  html[data-gpb-polish="1"] .v7007g3b-ranking,
  html[data-gpb-polish="1"] .v7007g3b-records{
    grid-column:1!important;
  }
}
@media(max-width:720px){
  html[data-gpb-polish="1"] .v7007g6-overview-round{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  html[data-gpb-polish="1"] .v7007g6-overview-games,
  html[data-gpb-polish="1"] .v7007g6-ranking-controls{
    grid-template-columns:1fr!important;
  }
  html[data-gpb-polish="1"] .v7007g6-play-zone{
    grid-template-columns:1fr;
    grid-template-areas:"copy" "stats" "action";
    padding:16px!important;
  }
  html[data-gpb-polish="1"] .v7007g6-play-zone-stats{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  html[data-gpb-polish="1"] .v7007g6-play-cta{
    width:100%;
    min-width:0;
  }
}

/* Play-zone KPIs: one clear number per box, game accent. */
html[data-gpb-polish="1"] .v7007g6-play-zone-stats>span{
  justify-items:center;
  align-content:center;
  gap:6px;
  min-width:132px;
  padding:14px 16px;
  text-align:center;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats small{
  font-size:9px;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats b{
  color:var(--play-brand-accent,var(--play-ia-data));
  font-size:32px;
  font-weight:850;
  letter-spacing:-.02em;
}
html[data-gpb-polish="1"] .v7007g6-play-zone-stats em{
  font-size:10px;
}

/* Small confirmation after a finished Grid-Quiz run (reuses the tie dialog). */
.v7007g6-run-done .v7007d2r1-tie-dialog{
  width:min(340px,calc(100vw - 32px));
  padding:22px;
  text-align:center;
}
.v7007g6-run-done-head{
  margin:-22px -22px 0;
  padding:22px 22px 18px;
  border-bottom:1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(90deg,rgba(9,11,15,.9) 0%,rgba(9,11,15,.66) 50%,rgba(9,11,15,.3) 100%),
    linear-gradient(180deg,rgba(9,11,15,0) 0%,rgba(9,11,15,.55) 100%),
    url("./grid-quiz-hero-bg.webp?v=2") center/cover no-repeat,
    #0f1217;
}
.v7007g6-run-done h3{
  margin:6px 0 0;
  font-size:22px;
}
.v7007g6-run-done .eyebrow{
  color:var(--play-brand-accent,var(--gpb-ui-muted));
}
.v7007g6-run-done-stats{
  display:flex;
  justify-content:center;
  gap:8px;
  margin:18px 0;
}
.v7007g6-run-done-stats>span{
  display:grid;
  flex:1;
  gap:4px;
  padding:12px 6px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:10px;
  background:rgba(255,255,255,.03);
}
.v7007g6-run-done-stats b{
  font-size:24px;
  line-height:1;
  font-variant-numeric:tabular-nums;
}
.v7007g6-run-done-stats>span:first-child b{
  color:var(--play-brand-accent,#ff8a3d);
}
.v7007g6-run-done-stats small{
  color:var(--gpb-ui-muted,#9aa3ad);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.v7007g6-run-done button{
  width:100%;
}

/* Play zone: fixed anchors – text top-left, KPI column fixed, same on every game. */
@media(min-width:721px){
  html[data-gpb-polish="1"] .v7007g6-play-zone{
    grid-template-columns:minmax(0,1fr) 288px;
    grid-template-rows:auto 1fr;
    align-items:start;
    min-height:182px;
  }
  html[data-gpb-polish="1"] .v7007g6-play-zone-copy{align-self:start}
  html[data-gpb-polish="1"] .v7007g6-play-zone-kicker{min-height:22px}
  html[data-gpb-polish="1"] .v7007g6-play-cta{align-self:end}
  html[data-gpb-polish="1"] .v7007g6-play-zone-stats{
    grid-template-columns:repeat(2,140px);
    align-self:center;
  }
  html[data-gpb-polish="1"] .v7007g6-play-zone-stats>span{
    width:140px;
    min-width:0;
    height:104px;
    box-sizing:border-box;
  }
  html[data-gpb-polish="1"] .v7007g6-play-zone-stats em{
    max-width:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
  }
}
@media(max-width:900px){html[data-gpb-polish="1"] #app>main>.v7007g3b-admin-game-hero.v7007g3c-hero>.v7007g3b-hero-head{grid-template-columns:1fr!important}}
@media(max-width:760px){html[data-gpb-polish="1"] .v7007g3c-hero-side>.v7007g3c-primary{width:100%}}
