/* GameRoch website — Trending, Themes, Settings, More (r19 candidate). Website only.
   Every rule starts with #gr-complete[data-host=app][data-platform=web] (the website's copy of the app's screens), and the
   screens' own website classes (.gr-tr.is-web, .gr-thw, .gr-setw, .gr-appmore.is-web), so the phone app cannot change.
   Colours come from the theme's own variables; sizes follow the shell's container (gr-shell). */

/* ===================================================================== TRENDING ===================================================================== */
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web{--trc:#ff4d4d;display:block;max-width:none}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web[data-tab=week]{--trc:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web[data-tab=liked]{--trc:#e0356b}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web[data-tab=rated]{--trc:#e0a21c}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web > *{grid-column:auto}
/* the title and its line, compact */
#gr-complete[data-host=app][data-platform=web] .gr-trw-head{margin:0 0 10px}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-tr-title h1{font:800 clamp(26px,2.4cqw,32px)/1.1 'Outfit',sans-serif;letter-spacing:-.025em}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-tr-sub{margin:2px 0 0;font-size:14.5px}
/* the filter row: the four tabs, and what the chosen one ranks by */
#gr-complete[data-host=app][data-platform=web] .gr-trw-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:0 0 14px}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-tr-tabs{margin-bottom:0}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-tr-tab:focus-visible{outline:2px solid var(--app-blue);outline-offset:2px}
#gr-complete[data-host=app][data-platform=web] .gr-trw-unit{display:flex;flex-direction:column;gap:1px;min-width:0;margin:0;color:var(--app-muted);font:500 12.5px/1.35 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-trw-unit > span:first-child{color:var(--app-ink);font-weight:600}
@container gr-shell (min-width: 621px) {
  #gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-tr-tabs{flex-wrap:nowrap;flex:none}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-unit{flex:1 1 260px;padding-inline-start:18px;border-inline-start:1px solid var(--app-line)}
}
/* while the page for a newly chosen tab is being drawn, the old list steps back */
#gr-complete[data-host=app][data-platform=web] .gr-trw-panel[aria-busy=true]{opacity:.45;pointer-events:none}

/* ---- the top three: fixed-size portrait frames, never a poster ---- */
#gr-complete[data-host=app][data-platform=web] .gr-trw-feat{--art:84px;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:0 0 20px}
#gr-complete[data-host=app][data-platform=web] .gr-trw-card{--art-w:var(--art);position:relative;isolation:isolate;display:grid;grid-template-columns:var(--art-w) minmax(0,1fr);
  align-items:start;gap:16px;min-width:0;padding:14px;overflow:hidden;border-radius:22px;border:1px solid var(--app-line);
  background:linear-gradient(160deg,color-mix(in srgb,var(--trc) 7%,var(--app-panel)),var(--app-panel) 60%);box-shadow:0 18px 40px -32px rgba(14,24,48,.55)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead{--art-w:calc(var(--art) * 1.4)}
/* the game's own art, blurred, lights its card */
#gr-complete[data-host=app][data-platform=web] .gr-trw-glow{position:absolute;inset:-30px;z-index:-1;background-size:cover;background-position:center;filter:blur(44px) saturate(1.3);opacity:.16;pointer-events:none}
#gr-complete[data-host=app][data-platform=web][data-tone=dark] .gr-trw-glow{opacity:.22}
#gr-complete[data-host=app][data-platform=web] .gr-trw-art{position:relative;inset:auto;z-index:auto;display:block;width:var(--art-w);height:auto;min-height:0;aspect-ratio:3/4;flex:none;margin:0;padding:0;border:0;
  border-radius:16px;overflow:hidden;background:var(--app-line);box-shadow:0 10px 22px -14px rgba(14,24,48,.6)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-art img{display:block;width:100%;height:100%;object-fit:cover}
#gr-complete[data-host=app][data-platform=web] .gr-trw-body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0;align-self:stretch}
#gr-complete[data-host=app][data-platform=web] .gr-trw-kick{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin:0;color:var(--app-muted);font:600 12.5px/1.2 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-trw-kick .gr-newgame{margin:0}
#gr-complete[data-host=app][data-platform=web] .gr-trw-rank{display:inline-grid;place-items:center;min-width:34px;height:24px;padding:0 8px;border-radius:999px;
  background:linear-gradient(150deg,#ffe08a,#e0a21c);color:#3b2700;font:800 13px/1 'Outfit',sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-card[data-rank="2"] .gr-trw-rank{background:linear-gradient(150deg,#f1f4f8,#b9c3d1);color:#232e3c}
#gr-complete[data-host=app][data-platform=web] .gr-trw-card[data-rank="3"] .gr-trw-rank{background:linear-gradient(150deg,#f6c7a2,#c7773f);color:#3a1a05}
#gr-complete[data-host=app][data-platform=web] .gr-trw-title{margin:0;max-width:100%;font:800 19px/1.15 'Outfit',sans-serif;letter-spacing:-.015em;color:var(--app-ink)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead .gr-trw-title{font-size:clamp(20px,1.9cqw,26px)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-name{display:inline-block;max-width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:6px;background:none;color:inherit;
  font:inherit;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-shadow:none}
/* R20: a game's name on Trending wraps rather than being cut ("Chess Realm 3D" lost its end at 768) */
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-trw-name{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}
#gr-complete[data-host=app][data-platform=web] .gr-trw-name:hover{background:none;text-decoration:underline;text-underline-offset:3px}
/* the tab's one figure, with its timeframe */
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric .gr-tr-fig{gap:6px;color:var(--app-ink);font:700 14px/1.25 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric .gr-tr-fig svg{width:15px;height:15px;color:var(--trc)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric .gr-tr-fig.is-star svg{color:#e0a21c;fill:#f5b301}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric .gr-tr-fig.is-star b{font:800 17px/1 'Outfit',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric small{color:var(--app-muted);font:500 12.5px/1.3 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric.is-none .gr-tr-fig{color:var(--app-muted);font-weight:500}
/* Play, Explore, Favourite */
#gr-complete[data-host=app][data-platform=web] .gr-trw-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:auto;padding-top:4px}
#gr-complete[data-host=app][data-platform=web] :is(.gr-trw-play,.gr-trw-explore){display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;min-height:38px;padding:0 16px;
  border-radius:999px;font:700 14px/1 'DM Sans',sans-serif;white-space:nowrap;box-shadow:none}
#gr-complete[data-host=app][data-platform=web] .gr-trw-play{border:0;background:var(--app-blue);color:var(--gr-on,#fff)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-play svg{width:15px;height:15px;fill:currentColor}
#gr-complete[data-host=app][data-platform=web] .gr-trw-play:hover:not(:disabled){background:color-mix(in srgb,var(--app-blue) 86%,#000)}
#gr-complete[data-host=app][data-platform=web] :is(.gr-trw-play.is-line,.gr-trw-play.is-rate,.gr-trw-explore){border:1px solid var(--app-line);background:var(--app-panel);color:var(--app-ink)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-play.is-rate svg{color:#e0a21c;fill:#f5b301}
#gr-complete[data-host=app][data-platform=web] :is(.gr-trw-play.is-line,.gr-trw-play.is-rate,.gr-trw-explore):hover{border-color:var(--app-blue);background:var(--app-panel);color:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-fav{display:inline-grid;place-items:center;width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;
  border:1px solid var(--app-line);background:var(--app-panel);color:var(--app-ink);box-shadow:none}
#gr-complete[data-host=app][data-platform=web] .gr-trw-fav svg{width:17px;height:17px}
#gr-complete[data-host=app][data-platform=web] .gr-trw-fav:hover{border-color:var(--app-blue);color:var(--app-blue);background:var(--app-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-fav[aria-pressed=true]{border-color:transparent;background:color-mix(in srgb,var(--app-blue) 14%,var(--app-panel));color:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-fav[aria-pressed=true] svg{fill:currentColor}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web :is(.gr-trw-play,.gr-trw-explore,.gr-trw-fav,.gr-trw-name,.gr-trw-art,.gr-tr-thumb):focus-visible{outline:2px solid var(--app-blue);outline-offset:2px}

/* a tablet: #1 across, #2 and #3 side by side under it */
@container gr-shell (min-width: 621px) {
  #gr-complete[data-host=app][data-platform=web] .gr-trw-feat{--art:96px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead{grid-column:1 / -1}
}
/* a computer: #1 on the left, #2 and #3 stacked beside it — the whole three in under 340px, so the list starts on the first screen */
@container gr-shell (min-width: 1100px) {
  #gr-complete[data-host=app][data-platform=web] .gr-trw-feat{--art:96px;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-auto-rows:auto}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead{grid-column:1;grid-row:span 2;--art-w:172px;align-items:center;padding:18px;gap:22px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead .gr-trw-body{justify-content:center;gap:9px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead .gr-trw-acts{margin-top:6px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead .gr-trw-metric .gr-tr-fig{font-size:15.5px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card:not(.is-lead){align-items:center}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card:not(.is-lead) .gr-trw-body{justify-content:center}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card:not(.is-lead) .gr-trw-acts{margin-top:2px}
  /* #2 and #3: the figure and its second part on one line, so every tab's cards are the art's height */
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card:not(.is-lead) .gr-trw-body{gap:5px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card:not(.is-lead) .gr-trw-metric{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card:not(.is-lead) .gr-trw-title{font-size:18px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card{padding:13px 14px}
}
@container gr-shell (min-width: 1360px) {
  #gr-complete[data-host=app][data-platform=web] .gr-trw-feat{--art:100px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead{--art-w:204px}
}

/* ---- the rest of the chart: one aligned list (place, art, name, the figure, the actions) ---- */
#gr-complete[data-host=app][data-platform=web] .gr-trw-list{margin:0 0 18px;padding:14px 16px 6px;border-radius:22px;border:1px solid var(--app-line);background:var(--app-panel);
  box-shadow:0 18px 40px -34px rgba(14,24,48,.5)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-listhead{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;padding:2px 4px 8px;border-bottom:1px solid var(--app-line)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-listhead h2{margin:0;color:var(--app-ink);font:800 18px/1.2 'Outfit',sans-serif;letter-spacing:-.01em}
#gr-complete[data-host=app][data-platform=web] .gr-trw-listhead > span{color:var(--app-muted);font:500 13px/1.3 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-trw-rows{display:block;column-count:auto;margin:0;padding:0;list-style:none}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-trw-rows > li.gr-trw-row{display:grid;grid-template-columns:22px 48px minmax(0,1fr) auto;
  grid-template-areas:"place art what acts" "place art metric acts";align-items:center;column-gap:12px;row-gap:2px;padding:10px 2px;border-bottom:1px solid var(--app-line);break-inside:auto}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-trw-rows > li.gr-trw-row:last-child{border-bottom:0}
#gr-complete[data-host=app][data-platform=web] .gr-trw-place{grid-area:place;color:var(--app-muted);font:800 18px/1 'Outfit',sans-serif;text-align:center}
#gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-trw-thumb{grid-area:art;width:48px;height:64px;min-height:0;border-radius:11px;box-shadow:0 6px 14px -10px rgba(14,24,48,.6)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-what{grid-area:what;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;align-self:end}
#gr-complete[data-host=app][data-platform=web] .gr-trw-what .gr-trw-name > b{font:700 16px/1.2 'Outfit',sans-serif;color:var(--app-ink)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-what small{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:var(--app-muted);font:500 12.5px/1.25 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-trw-row > .gr-trw-metric{grid-area:metric;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 8px;align-self:start}
#gr-complete[data-host=app][data-platform=web] .gr-trw-row > .gr-trw-metric .gr-tr-fig{font-size:13px}
#gr-complete[data-host=app][data-platform=web] .gr-trw-row > .gr-trw-acts{grid-area:acts;flex-wrap:nowrap;margin:0;padding:0}
/* a phone's row: Play and Favourite (the name opens the game's page) */
#gr-complete[data-host=app][data-platform=web] .gr-trw-acts.is-row .gr-trw-explore{display:none}
@container gr-shell (max-width: 620px) {
  #gr-complete[data-host=app][data-platform=web] .gr-trw-feat{--art:68px;gap:10px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card{gap:12px;padding:12px;border-radius:20px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead{--art-w:96px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-body{gap:4px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-title{font-size:17px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card.is-lead .gr-trw-title{font-size:20px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card :is(.gr-trw-play,.gr-trw-explore){height:36px;min-height:36px;padding:0 13px;font-size:13.5px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-card .gr-trw-fav{width:36px;height:36px;min-height:36px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-acts{gap:6px}
  /* a row's Play is the round button (its name says Play) */
  #gr-complete[data-host=app][data-platform=web] .gr-trw-acts.is-row .gr-trw-play:not(.is-line):not(.is-rate){width:40px;height:40px;min-height:40px;padding:0;font-size:0;gap:0}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-acts.is-row .gr-trw-play:not(.is-line):not(.is-rate) svg{width:16px;height:16px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-acts.is-row .gr-trw-fav{width:40px;height:40px;min-height:40px}
}
@container gr-shell (min-width: 621px) {
  #gr-complete[data-host=app][data-platform=web] .gr-trw-list{padding:16px 20px 8px}
  #gr-complete[data-host=app][data-platform=web] .gr-tr.is-web .gr-trw-rows > li.gr-trw-row{grid-template-columns:30px 48px minmax(0,1fr) minmax(170px,240px) auto;
    grid-template-areas:"place art what metric acts";column-gap:16px;padding:10px 4px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-what{align-self:center}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-row > .gr-trw-metric{flex-direction:column;align-items:flex-start;align-self:center;gap:2px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-row > .gr-trw-metric .gr-tr-fig{font-size:14px}
  #gr-complete[data-host=app][data-platform=web] .gr-trw-place{font-size:20px}
}
@container gr-shell (min-width: 900px) {
  #gr-complete[data-host=app][data-platform=web] .gr-trw-acts.is-row .gr-trw-explore{display:inline-flex}
}
/* the games with nothing for this tab yet: the same list, quieter */
#gr-complete[data-host=app][data-platform=web] .gr-trw-list.is-rest{margin-top:0;background:color-mix(in srgb,var(--app-panel) 55%,transparent);box-shadow:none}
#gr-complete[data-host=app][data-platform=web] .gr-trw-list.is-rest .gr-tr-rest-h{color:var(--app-ink)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-list.is-rest .gr-trw-thumb{opacity:.85}
/* a tab with no game ranked yet keeps the top three's room, so nothing below jumps */
#gr-complete[data-host=app][data-platform=web] .gr-trw-empty{justify-content:center;min-height:180px;margin:0 0 20px;padding:24px 16px;border-radius:22px;border:1px dashed var(--app-line);background:var(--app-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-empty svg{color:var(--trc)}
#gr-complete[data-host=app][data-platform=web] .gr-trw-empty span{color:var(--app-muted);font:500 14px/1.4 'DM Sans',sans-serif}
@container gr-shell (min-width: 1100px) { #gr-complete[data-host=app][data-platform=web] .gr-trw-empty{min-height:300px} }
/* reading: the same shapes, empty */
#gr-complete[data-host=app][data-platform=web] .gr-trw-feat.is-skel i,#gr-complete[data-host=app][data-platform=web] .gr-trw-list.is-skel i{display:block;border-radius:22px;
  background:linear-gradient(90deg,var(--app-line),color-mix(in srgb,var(--app-line) 40%,var(--app-panel)),var(--app-line));background-size:200% 100%}
#gr-complete[data-host=app][data-platform=web] .gr-trw-feat.is-skel i{height:140px}
#gr-complete[data-host=app][data-platform=web] .gr-trw-list.is-skel{display:grid;gap:10px;padding:16px}
#gr-complete[data-host=app][data-platform=web] .gr-trw-list.is-skel i{height:56px;border-radius:14px}
@container gr-shell (min-width: 1100px) {
  #gr-complete[data-host=app][data-platform=web] .gr-trw-feat.is-skel i.is-lead{grid-row:span 2;height:auto;min-height:300px}
}
@media (prefers-reduced-motion: no-preference) {
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) :is(.gr-trw-feat.is-skel i,.gr-trw-list.is-skel i){animation:gr-trw-shine 1.4s linear infinite}
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-trw-panel{transition:opacity .15s ease}
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-trw-art img{transition:transform .25s ease}
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-trw-art:hover img{transform:scale(1.04)}
}
@keyframes gr-trw-shine{from{background-position:100% 0}to{background-position:-100% 0}}

/* ===================================================================== SWITCHES (Themes' motion, Settings) ===================================================================== */
#gr-complete[data-host=app][data-platform=web] input.gr-switch{-webkit-appearance:none;appearance:none;position:relative;flex:none;width:46px;height:28px;min-height:0;margin:0;border-radius:999px;
  border:0;background:color-mix(in srgb,var(--app-muted) 38%,var(--app-line));cursor:pointer;box-shadow:inset 0 1px 2px rgba(0,0,0,.12)}
#gr-complete[data-host=app][data-platform=web] input.gr-switch::before{content:'';position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:#fff;
  box-shadow:0 2px 5px rgba(0,0,0,.25)}
#gr-complete[data-host=app][data-platform=web] input.gr-switch:checked{background:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] input.gr-switch:checked::before{inset-inline-start:21px}
#gr-complete[data-host=app][data-platform=web] input.gr-switch:focus-visible{outline:2px solid var(--app-blue);outline-offset:3px}
#gr-complete[data-host=app][data-platform=web] input.gr-switch:disabled{opacity:.45;cursor:not-allowed}
@media (prefers-reduced-motion: no-preference) {
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) input.gr-switch{transition:background-color .18s ease}
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) input.gr-switch::before{transition:inset-inline-start .18s ease}
}

/* ===================================================================== THEMES ===================================================================== */
#gr-complete[data-host=app][data-platform=web] .gr-main > .gr-thw{max-width:1600px}
#gr-complete[data-host=app][data-platform=web] .gr-thw{display:flex;flex-direction:column;gap:22px;padding-bottom:12px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-head h1{margin:0;font:800 clamp(26px,2.4cqw,32px)/1.1 'Outfit',sans-serif;letter-spacing:-.025em;color:var(--app-ink)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-head p{margin:4px 0 0;color:var(--app-muted);font:500 14.5px/1.4 'DM Sans',sans-serif}
/* the preview, said once at the top of the page, with the way back (the site-wide bar is not needed here) */
#gr-complete[data-host=app][data-platform=web][data-approute=themes] .gr-preview-bar{display:none!important}
#gr-complete[data-host=app][data-platform=web] .gr-thw-banner{position:sticky;top:calc(var(--gr-header-h,68px) + 10px);z-index:6;display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;
  padding:12px 14px;border-radius:18px;border:1px solid color-mix(in srgb,var(--app-blue) 40%,var(--app-line));background:color-mix(in srgb,var(--app-blue) 10%,var(--app-panel));
  box-shadow:0 16px 34px -24px rgba(14,24,48,.6)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-banner-ico{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:var(--app-blue);color:var(--gr-on,#fff)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-banner-ico svg{width:19px;height:19px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-banner-t{display:flex;flex-direction:column;gap:2px;flex:1 1 260px;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-thw-banner-t b{color:var(--app-ink);font:700 15.5px/1.25 'Outfit',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-banner-t small{color:var(--app-muted);font:500 13px/1.35 'DM Sans',sans-serif}
/* the collection, counted with the free themes */
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum{display:grid;gap:12px;padding:18px 20px;border-radius:24px;border:1px solid var(--app-line);
  background:linear-gradient(180deg,color-mix(in srgb,#7c4dff 8%,var(--app-panel)),var(--app-panel) 140px);box-shadow:0 18px 40px -30px rgba(14,24,48,.5)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-top{display:flex;align-items:center;gap:14px;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-ico{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:14px;color:#fff;
  background:linear-gradient(150deg,#a184ff,#7c4dff);box-shadow:0 8px 16px -10px #7c4dff}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-ico svg{width:22px;height:22px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-t{flex:1;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-t h2{margin:0;color:var(--app-ink);font:800 19px/1.15 'Outfit',sans-serif;letter-spacing:-.015em}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-t p{margin:3px 0 0;color:var(--app-muted);font:500 13.5px/1.35 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-n{flex:none;color:var(--app-ink);font:800 30px/1 'Outfit',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-n small{color:var(--app-muted);font-size:17px;font-weight:700}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-bar{display:block;height:8px;border-radius:999px;background:color-mix(in srgb,var(--app-line) 80%,transparent);overflow:hidden}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#a184ff,#7c4dff)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-rar{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-rar li{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--app-line);
  background:var(--app-panel);color:var(--app-ink);font:600 13px/1 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-rar li b{font-weight:800}
#gr-complete[data-host=app][data-platform=web] :is(.gr-thw-sum-rar li,.gr-thw-rar) i{width:9px;height:9px;border-radius:50%;background:var(--rc,#9aa6b8)}
#gr-complete[data-host=app][data-platform=web] [data-r=free]{--rc:#17b26a}
#gr-complete[data-host=app][data-platform=web] [data-r=common]{--rc:#8a96a8}
#gr-complete[data-host=app][data-platform=web] [data-r=rare]{--rc:#2f8cf0}
#gr-complete[data-host=app][data-platform=web] [data-r=epic]{--rc:#9b5cf6}
#gr-complete[data-host=app][data-platform=web] [data-r=legendary]{--rc:#e0a21c}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-note{display:flex;align-items:flex-start;gap:8px;margin:0;color:var(--app-muted);font:500 13px/1.45 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sum-note svg{flex:none;width:16px;height:16px;margin-top:1px}
/* a section: its name, its line, how many are yours */
#gr-complete[data-host=app][data-platform=web] .gr-thw-sec{display:flex;flex-direction:column;gap:12px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sec-head h2{margin:0;color:var(--app-ink);font:800 20px/1.2 'Outfit',sans-serif;letter-spacing:-.015em}
#gr-complete[data-host=app][data-platform=web] .gr-thw-sec-head p{margin:2px 0 0;color:var(--app-muted);font:500 13.5px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-count{flex:none;padding:5px 10px;border-radius:999px;background:var(--gr-tint);color:var(--app-ink);font:700 12.5px/1 'DM Sans',sans-serif}
/* one grid, one card */
#gr-complete[data-host=app][data-platform=web] .gr-thw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-grid.is-free{grid-template-columns:minmax(0,1fr)}
@container gr-shell (min-width: 621px) {
  #gr-complete[data-host=app][data-platform=web] .gr-thw-grid,#gr-complete[data-host=app][data-platform=web] .gr-thw-grid.is-free{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
}
@container gr-shell (min-width: 1240px) {
  #gr-complete[data-host=app][data-platform=web] .gr-thw-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
}
#gr-complete[data-host=app][data-platform=web] .gr-thw-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:8px;border-radius:20px;border:1px solid var(--app-line);
  background:var(--app-panel);box-shadow:0 14px 30px -28px rgba(14,24,48,.6)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-card.is-current{border-color:var(--app-blue);box-shadow:0 0 0 1px var(--app-blue),0 14px 30px -24px color-mix(in srgb,var(--app-blue) 60%,transparent)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-card.is-previewing{border-color:var(--app-blue);box-shadow:0 0 0 2px var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-card.is-world[data-r=legendary]{border-color:color-mix(in srgb,#e0a21c 55%,var(--app-line))}
#gr-complete[data-host=app][data-platform=web] .gr-thw-card.is-world[data-r=epic]{border-color:color-mix(in srgb,#9b5cf6 40%,var(--app-line))}
#gr-complete[data-host=app][data-platform=web] .gr-thw-meta{display:flex;flex-direction:column;gap:6px;flex:1;padding:10px 6px 4px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-thw-top h3{margin:0;min-width:0;color:var(--app-ink);font:700 15.5px/1.25 'Outfit',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-line,#gr-complete[data-host=app][data-platform=web] .gr-thw-note{margin:0;color:var(--app-muted);font:500 13px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-rar{display:inline-flex;align-items:center;gap:6px;margin:0;color:var(--app-muted);font:600 12.5px/1.2 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-req{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0;color:var(--app-muted);font:500 12px/1.3 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-req .gr-req{opacity:.9}
/* the state, on every card */
#gr-complete[data-host=app][data-platform=web] .gr-thw-state{display:inline-flex;align-items:center;gap:4px;flex:none;height:22px;padding:0 8px;border-radius:999px;font:700 11.5px/1 'DM Sans',sans-serif;white-space:nowrap}
#gr-complete[data-host=app][data-platform=web] .gr-thw-state svg{width:12px;height:12px;stroke-width:2.6}
#gr-complete[data-host=app][data-platform=web] .gr-thw-state.is-current{background:var(--app-blue);color:var(--gr-on,#fff)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-state.is-free,#gr-complete[data-host=app][data-platform=web] .gr-thw-state.is-mine{background:color-mix(in srgb,#17b26a 15%,var(--app-panel));color:#0b7a46}
#gr-complete[data-host=app][data-platform=web][data-tone=dark] :is(.gr-thw-state.is-free,.gr-thw-state.is-mine){color:#5ee29d}
#gr-complete[data-host=app][data-platform=web] .gr-thw-state.is-preview{background:color-mix(in srgb,var(--app-blue) 16%,var(--app-panel));color:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-state.is-locked{background:color-mix(in srgb,var(--app-muted) 13%,var(--app-panel));color:var(--app-muted)}
/* the one action: Use / Preview / Exit preview */
#gr-complete[data-host=app][data-platform=web] .gr-thw-act{display:inline-flex;align-items:center;justify-content:center;gap:6px;align-self:stretch;height:38px;min-height:38px;margin-top:auto;padding:0 14px;
  border-radius:999px;border:1px solid var(--app-line);background:var(--app-panel);color:var(--app-ink);font:700 13.5px/1 'DM Sans',sans-serif;box-shadow:none}
#gr-complete[data-host=app][data-platform=web] .gr-thw-act svg{width:16px;height:16px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-act:hover{border-color:var(--app-blue);color:var(--app-blue);background:var(--app-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-act:is(.is-primary,.is-on){border-color:transparent;background:var(--app-blue);color:var(--gr-on,#fff)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-act:is(.is-primary,.is-on):hover{background:color-mix(in srgb,var(--app-blue) 86%,#000);color:var(--gr-on,#fff)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-banner .gr-thw-act{align-self:center;margin:0}
#gr-complete[data-host=app][data-platform=web] .gr-thw-note{margin-top:auto;padding-top:2px}
#gr-complete[data-host=app][data-platform=web] :is(.gr-thw-act,.gr-thw-motion input):focus-visible{outline:2px solid var(--app-blue);outline-offset:2px}

/* ---- the little page: top bar, a game card with its art, Play, a chip, lines of text — in the theme's own colours ---- */
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv{position:relative;display:flex;flex-direction:column;gap:7%;aspect-ratio:16/10;padding:0 0 8%;overflow:hidden;border-radius:14px;
  border:1px solid var(--pv-line);background:var(--pv-decor,none),var(--pv-bg);background-color:var(--pv-bg);container-type:inline-size}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv i,#gr-complete[data-host=app][data-platform=web] .gr-thw-pv b{display:block;font-style:normal}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-bar{display:flex;align-items:center;gap:6%;height:14%;padding:0 6%;background:var(--pv-panel);border-bottom:1px solid var(--pv-line)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-bar .is-logo{width:18%;height:28%;border-radius:99px;background:linear-gradient(90deg,var(--pv-ink) 55%,var(--pv-accent) 55%)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-bar .is-find{flex:1;height:44%;border-radius:99px;border:1px solid var(--pv-line);background:var(--pv-bg)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-bar .is-me{width:7%;aspect-ratio:1;border-radius:50%;background:linear-gradient(150deg,var(--pv-hero2),var(--pv-hero))}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-main{display:flex;gap:5%;flex:1;min-height:0;padding:0 6%}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-card{display:flex;gap:6%;flex:1 1 66%;min-width:0;padding:4%;border-radius:9px;border:1px solid var(--pv-line);background:var(--pv-panel);
  box-shadow:0 4px 10px -8px rgba(0,0,0,.45)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-card .is-art{flex:none;width:36%;height:100%;border-radius:6px;background:linear-gradient(150deg,var(--pv-hero2),var(--pv-hero))}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-text{display:flex;flex-direction:column;justify-content:center;gap:10%;flex:1;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-text .is-h{width:86%;height:9cqw;max-height:12px;border-radius:99px;background:var(--pv-ink)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-text .is-l{width:62%;height:5cqw;max-height:7px;border-radius:99px;background:var(--pv-sub);opacity:.7}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-row{display:flex;align-items:center;gap:7%}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-row .is-btn{display:grid;place-items:center;height:12cqw;max-height:22px;padding:0 9%;border-radius:99px;background:var(--pv-accent);color:var(--pv-on);
  font:800 clamp(7px,6cqw,11px)/1 'DM Sans',sans-serif;letter-spacing:.01em;white-space:nowrap}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-row .is-chip{width:24%;height:9cqw;max-height:16px;border-radius:99px;background:var(--pv-tint);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--pv-accent) 35%,transparent)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-side{display:flex;flex-direction:column;gap:8%;flex:0 0 26%}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-side i{flex:1;border-radius:8px;border:1px solid var(--pv-line);background:var(--pv-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-side i:first-child{background:linear-gradient(var(--pv-tint),var(--pv-tint)) 14% 30%/56% 18% no-repeat,var(--pv-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-pv-side i:last-child{background:linear-gradient(var(--pv-sub),var(--pv-sub)) 14% 34%/62% 12% no-repeat,linear-gradient(var(--pv-line),var(--pv-line)) 14% 66%/42% 10% no-repeat,var(--pv-panel)}
/* a phone: the free looks as rows, picture beside the words */
@container gr-shell (max-width: 620px) {
  #gr-complete[data-host=app][data-platform=web] .gr-thw-grid.is-free .gr-thw-card{display:grid;grid-template-columns:44% minmax(0,1fr);align-items:center;gap:4px}
  #gr-complete[data-host=app][data-platform=web] .gr-thw-sum{padding:16px}
  #gr-complete[data-host=app][data-platform=web] .gr-thw-meta{padding:8px 4px 2px}
  #gr-complete[data-host=app][data-platform=web] .gr-thw-top{flex-direction:column;gap:5px}
}
/* motion: the one setting this page keeps */
#gr-complete[data-host=app][data-platform=web] .gr-thw-motion{display:flex;align-items:center;gap:14px;max-width:720px;padding:14px 16px;border-radius:20px;border:1px solid var(--app-line);background:var(--app-panel);cursor:pointer}
#gr-complete[data-host=app][data-platform=web] .gr-thw-motion-ico{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:12px;background:var(--gr-tint);color:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-motion-ico svg{width:19px;height:19px}
#gr-complete[data-host=app][data-platform=web] .gr-thw-motion-t{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-thw-motion-t b{color:var(--app-ink);font:700 15px/1.25 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-thw-motion-t small{color:var(--app-muted);font:500 13px/1.4 'DM Sans',sans-serif}
@media (prefers-reduced-motion: no-preference) {
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-thw-card{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-thw-card:hover{transform:translateY(-2px)}
}

/* ===================================================================== SETTINGS ===================================================================== */
/* R20: the page's own width (the site's 1600px), two balanced columns from a laptop up, one column below; every card the
   same build — header, then rows on one grid (icon · words · control) — so edges, controls and baselines line up across
   the page. No fixed heights: a card is as tall as its rows, and the two cards of a row end level. */
#gr-complete[data-host=app][data-platform=web] .gr-main > .gr-setw{max-width:1600px}
#gr-complete[data-host=app][data-platform=web] .gr-main > .gr-topline:has(+ .gr-setw){max-width:1600px}
#gr-complete[data-host=app][data-platform=web] .gr-setw{display:flex;flex-direction:column;gap:16px;margin-top:4px}
#gr-complete[data-host=app][data-platform=web] .gr-setw-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch}
@container gr-shell (min-width: 960px) {
  #gr-complete[data-host=app][data-platform=web] .gr-setw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
}
#gr-complete[data-host=app][data-platform=web] .gr-setw-card{--sc:var(--app-blue);display:flex;flex-direction:column;min-width:0;padding:16px 20px 4px;border-radius:24px;border:1px solid var(--app-line);
  background:linear-gradient(180deg,color-mix(in srgb,var(--sc) 6%,var(--app-panel)),var(--app-panel) 120px);box-shadow:0 18px 40px -32px rgba(14,24,48,.5)}
#gr-complete[data-host=app][data-platform=web] .gr-setw-card[data-group=play]{--sc:#7c4dff}
#gr-complete[data-host=app][data-platform=web] .gr-setw-card[data-group=account]{--sc:#17a36b}
#gr-complete[data-host=app][data-platform=web] .gr-setw-card[data-group=legal]{--sc:#64748b}
#gr-complete[data-host=app][data-platform=web] .gr-setw-card.is-danger{--sc:#dc2f45;border-color:color-mix(in srgb,#dc2f45 28%,var(--app-line))}
#gr-complete[data-host=app][data-platform=web] .gr-setw-head{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:12px;padding-bottom:12px}
#gr-complete[data-host=app][data-platform=web] .gr-setw-hico{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#fff;
  background:linear-gradient(150deg,color-mix(in srgb,var(--sc) 70%,#fff),var(--sc));box-shadow:0 8px 16px -10px var(--sc)}
#gr-complete[data-host=app][data-platform=web] .gr-setw-hico svg{width:20px;height:20px}
#gr-complete[data-host=app][data-platform=web] .gr-setw-head h2{margin:0;color:var(--app-ink);font:800 19px/1.2 'Outfit',sans-serif;letter-spacing:-.015em}
#gr-complete[data-host=app][data-platform=web] .gr-setw-head p{margin:2px 0 0;color:var(--app-muted);font:500 13.5px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-setw-rows{display:flex;flex-direction:column;flex:1}
/* a row: its icon, its name and line, its control — the icon column is the header's, so icons and titles share one edge */
#gr-complete[data-host=app][data-platform=web] .gr-setw-row{position:relative;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:4px 12px;min-height:68px;padding:12px 0;
  border-top:1px solid var(--app-line)}
#gr-complete[data-host=app][data-platform=web] .gr-setw-ico{display:grid;place-items:center;justify-self:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--sc) 11%,var(--app-panel));color:var(--sc)}
#gr-complete[data-host=app][data-platform=web] .gr-setw-ico svg{width:17px;height:17px}
#gr-complete[data-host=app][data-platform=web] .gr-setw-t{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:62ch}
#gr-complete[data-host=app][data-platform=web] .gr-setw-t b{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;color:var(--app-ink);font:700 15.5px/1.35 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-setw-t small{display:block;color:var(--app-muted);font:500 13.5px/1.45 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-setw-scope{display:inline-flex;align-items:center;height:20px;padding:0 8px;border-radius:999px;background:color-mix(in srgb,#7c4dff 13%,var(--app-panel));
  color:color-mix(in srgb,#7c4dff 80%,var(--app-ink));font:700 11.5px/1 'DM Sans',sans-serif;font-style:normal;white-space:nowrap}
#gr-complete[data-host=app][data-platform=web][data-tone=dark] .gr-setw-scope{color:#c4b0ff}
#gr-complete[data-host=app][data-platform=web] .gr-setw-ctl{display:flex;align-items:center;justify-content:flex-end;gap:10px;justify-self:end}
#gr-complete[data-host=app][data-platform=web] .gr-setw-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;min-height:38px;padding:0 15px;border-radius:999px;
  border:1px solid var(--app-line);background:var(--app-panel);color:var(--app-ink);font:700 13.5px/1 'DM Sans',sans-serif;white-space:nowrap;text-decoration:none;box-shadow:none}
#gr-complete[data-host=app][data-platform=web] .gr-setw-btn svg{width:14px;height:14px}
#gr-complete[data-host=app][data-platform=web] .gr-setw-btn:hover:not(:disabled){border-color:var(--app-blue);color:var(--app-blue);background:var(--app-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-setw-btn:disabled{opacity:.55;cursor:not-allowed}
#gr-complete[data-host=app][data-platform=web] .gr-setw-btn:focus-visible{outline:2px solid var(--app-blue);outline-offset:2px}
#gr-complete[data-host=app][data-platform=web] .gr-setw-row.is-danger .gr-setw-btn{border-color:color-mix(in srgb,#dc2f45 45%,var(--app-line));color:#c62038}
#gr-complete[data-host=app][data-platform=web][data-tone=dark] .gr-setw-row.is-danger .gr-setw-btn{color:#ff8a98}
#gr-complete[data-host=app][data-platform=web] .gr-setw-row.is-danger .gr-setw-btn:hover{background:#dc2f45;border-color:#dc2f45;color:#fff}
#gr-complete[data-host=app][data-platform=web] .gr-setw-row.is-off .gr-setw-ico{filter:grayscale(1);opacity:.7}
/* a state, not a control (offline play) */
#gr-complete[data-host=app][data-platform=web] .gr-setw-status{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:999px;background:color-mix(in srgb,var(--app-muted) 12%,var(--app-panel));
  color:var(--app-muted);font:700 12.5px/1 'DM Sans',sans-serif;white-space:nowrap}
/* the theme in use, as a swatch */
#gr-complete[data-host=app][data-platform=web] .gr-setw-swatch{display:inline-flex;vertical-align:-3px;gap:2px;width:30px;height:16px;margin-inline-end:7px;padding:2px;border-radius:5px;background:var(--sw-bg);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
#gr-complete[data-host=app][data-platform=web] .gr-setw-swatch i{flex:1;border-radius:3px;background:var(--sw-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-setw-swatch i:last-child{background:var(--sw-accent)}
#gr-complete[data-host=app][data-platform=web][data-tone=dark] .gr-setw-swatch{box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}
/* a switch's row: the whole row is its label; On / Off beside it, and "Saved" once changed */
#gr-complete[data-host=app][data-platform=web] .gr-setw-row.is-toggle{cursor:pointer}
#gr-complete[data-host=app][data-platform=web] .gr-setw-row.is-toggle.is-locked{cursor:default}
#gr-complete[data-host=app][data-platform=web] .gr-setw-val{min-width:24px;color:var(--app-muted);font:700 13px/1 'DM Sans',sans-serif;text-align:end}
#gr-complete[data-host=app][data-platform=web] .gr-setw-saved{grid-column:2 / -1;display:none;align-items:center;gap:5px;color:#0b7a46;font:700 12.5px/1 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web][data-tone=dark] .gr-setw-saved{color:#5ee29d}
#gr-complete[data-host=app][data-platform=web] .gr-setw-saved.is-shown{display:inline-flex}
#gr-complete[data-host=app][data-platform=web] .gr-setw-saved svg{width:14px;height:14px;stroke-width:2.8}
@media (prefers-reduced-motion: no-preference) {
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-setw-saved.is-shown{animation:gr-setw-in .25s ease both}
}
@keyframes gr-setw-in{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}
/* signing out and deletion: a card of its own across the page; on a computer its two rows side by side */
@container gr-shell (min-width: 960px) {
  #gr-complete[data-host=app][data-platform=web] .gr-setw-card.is-danger .gr-setw-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
  #gr-complete[data-host=app][data-platform=web] .gr-setw-card.is-danger .gr-setw-row:nth-child(2){padding-inline-start:20px;border-inline-start:1px solid var(--app-line);margin-inline-start:-20px}
}
/* the blocked players' panel, when there is one, sits with the cards */
#gr-complete[data-host=app][data-platform=web] .gr-setw > .gr-panel{margin:0;border-radius:24px}
/* a phone: one column; a long control drops under its words, on the words' edge */
@container gr-shell (max-width: 620px) {
  #gr-complete[data-host=app][data-platform=web] .gr-setw-card{padding:14px 14px 4px;border-radius:20px}
  #gr-complete[data-host=app][data-platform=web] .gr-setw-head,#gr-complete[data-host=app][data-platform=web] .gr-setw-row{grid-template-columns:36px minmax(0,1fr) auto;column-gap:10px}
  #gr-complete[data-host=app][data-platform=web] .gr-setw-hico{width:36px;height:36px;border-radius:12px}
  #gr-complete[data-host=app][data-platform=web] .gr-setw-head{grid-template-columns:36px minmax(0,1fr)}
  #gr-complete[data-host=app][data-platform=web] .gr-setw-row:not(.is-toggle){grid-template-columns:36px minmax(0,1fr)}
  #gr-complete[data-host=app][data-platform=web] .gr-setw-row:not(.is-toggle) .gr-setw-ctl{grid-column:2;justify-self:start;margin-top:4px}
  #gr-complete[data-host=app][data-platform=web] .gr-setw-t b{font-size:15px}
}

/* ===================================================================== MORE ===================================================================== */
#gr-complete[data-host=app][data-platform=web] .gr-main > .gr-appmore.gr-morew{max-width:1600px}  /* R20: the page width, as Settings (was 1180px: a 300px empty strip at 1920) */
#gr-complete[data-host=app][data-platform=web] .gr-morew{display:flex;flex-direction:column;gap:22px}
#gr-complete[data-host=app][data-platform=web] .gr-morew-head h1{margin:0;font:800 clamp(26px,2.4cqw,32px)/1.1 'Outfit',sans-serif;letter-spacing:-.025em;color:var(--app-ink)}
#gr-complete[data-host=app][data-platform=web] .gr-morew-head p{margin:4px 0 0;color:var(--app-muted);font:500 14.5px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-morew-group{display:flex;flex-direction:column;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-morew .gr-appmore-sub{margin:0 2px 10px}
#gr-complete[data-host=app][data-platform=web] .gr-morew-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
#gr-complete[data-host=app][data-platform=web] .gr-morew-pair{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}
@container gr-shell (min-width: 621px) {
  #gr-complete[data-host=app][data-platform=web] .gr-morew-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@container gr-shell (min-width: 1100px) {
  #gr-complete[data-host=app][data-platform=web] .gr-morew-group:not(.gr-morew-pair *) > .gr-morew-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  #gr-complete[data-host=app][data-platform=web] .gr-morew-pair{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
  #gr-complete[data-host=app][data-platform=web] .gr-morew-pair .gr-morew-grid{gap:14px}
}
/* a card: the place's icon, its name, what it is for, a figure when there is one */
#gr-complete[data-host=app][data-platform=web] .gr-appmore.gr-morew :is(a,button).gr-morew-card{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:14px;width:100%;
  min-height:84px;margin:0;padding:16px;border-radius:20px;border:1px solid var(--app-line);background:var(--app-panel);color:var(--app-ink);text-align:start;text-decoration:none;
  box-shadow:0 14px 30px -28px rgba(14,24,48,.6);font:inherit}
#gr-complete[data-host=app][data-platform=web] .gr-morew .gr-morew-card > svg{width:18px;height:18px;color:var(--app-muted)}
#gr-complete[data-host=app][data-platform=web] .gr-morew .gr-morew-card:hover{border-color:color-mix(in srgb,var(--app-blue) 45%,var(--app-line));background:var(--app-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-morew .gr-morew-card:hover > svg{color:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-morew .gr-morew-card:focus-visible{outline:2px solid var(--app-blue);outline-offset:2px}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico{--mc:var(--app-blue);display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#fff;
  background:linear-gradient(150deg,color-mix(in srgb,var(--mc) 68%,#fff),var(--mc));box-shadow:0 8px 16px -10px var(--mc)}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico svg{width:21px;height:21px}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico[data-tone=pink]{--mc:#e0356b}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico[data-tone=gold]{--mc:#e0a21c}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico[data-tone=blue]{--mc:#2f6fed}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico[data-tone=green]{--mc:#17a36b}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico[data-tone=violet]{--mc:#7c4dff}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico[data-tone=teal]{--mc:#0e9aa7}
#gr-complete[data-host=app][data-platform=web] .gr-morew-ico[data-tone=about]{--mc:#64748b}
#gr-complete[data-host=app][data-platform=web] .gr-morew-t{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-morew-t b{color:var(--app-ink);font:700 16px/1.25 'Outfit',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-morew-t small{color:var(--app-muted);font:500 13.5px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-morew-status{display:inline-flex;align-items:center;height:22px;margin-top:3px;padding:0 9px;border-radius:999px;
  background:var(--gr-tint);color:var(--app-ink);font:700 12px/1 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-morew .gr-getapp{margin:0;border-radius:20px}
@media (prefers-reduced-motion: no-preference) {
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-morew .gr-morew-card{transition:transform .16s ease,border-color .16s ease}
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-morew .gr-morew-card:hover{transform:translateY(-2px)}
}
/* "Use this theme" is a calm tinted button; the strong blue is kept for the one preview being ended */
#gr-complete[data-host=app][data-platform=web] .gr-thw-act.is-primary{background:color-mix(in srgb,var(--app-blue) 13%,var(--app-panel));color:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-thw-act.is-primary:hover{background:var(--app-blue);color:var(--gr-on,#fff)}

/* ===================================================================== LANGUAGE ===================================================================== */
/* R20: the page's whole width; the language in use and the search on one line above one grid of tiles. The tile in
   use is filled, with a tick and "In use"; keyboard focus is an ink ring outside the tile, never the fill. */
#gr-complete[data-host=app][data-platform=web] .gr-main > .gr-langw{max-width:1600px}
#gr-complete[data-host=app][data-platform=web] .gr-main > .gr-topline:has(+ .gr-langw){max-width:1600px}
#gr-complete[data-host=app][data-platform=web] .gr-langw{display:flex;flex-direction:column;gap:16px;margin-top:4px}
#gr-complete[data-host=app][data-platform=web] :is(.gr-langw-card,.gr-langw-quiz){min-width:0;border-radius:24px;border:1px solid var(--app-line);background:var(--app-panel);
  box-shadow:0 18px 40px -32px rgba(14,24,48,.5)}
#gr-complete[data-host=app][data-platform=web] .gr-langw-card{padding:18px 20px 16px;background:linear-gradient(180deg,color-mix(in srgb,var(--app-blue) 5%,var(--app-panel)),var(--app-panel) 120px)}
#gr-complete[data-host=app][data-platform=web] .gr-langw-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px}
#gr-complete[data-host=app][data-platform=web] .gr-langw-cur{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:12px;min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-langw-ico{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;color:#fff;
  background:linear-gradient(150deg,color-mix(in srgb,var(--app-blue) 70%,#fff),var(--app-blue));box-shadow:0 8px 16px -10px var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-langw-ico.is-quiz{--q:#7c4dff;background:linear-gradient(150deg,color-mix(in srgb,var(--q) 70%,#fff),var(--q));box-shadow:0 8px 16px -10px var(--q)}
#gr-complete[data-host=app][data-platform=web] .gr-langw-ico svg{width:20px;height:20px}
#gr-complete[data-host=app][data-platform=web] :is(.gr-langw-cur,.gr-langw-qt) h2{margin:0;color:var(--app-ink);font:800 19px/1.2 'Outfit',sans-serif;letter-spacing:-.015em}
#gr-complete[data-host=app][data-platform=web] .gr-langw-cur p{margin:2px 0 0;color:var(--app-muted);font:500 14px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-langw-curname{color:var(--app-ink);font-weight:700}
/* the search */
#gr-complete[data-host=app][data-platform=web] .gr-langw-search{position:relative;display:flex;align-items:center;flex:0 1 360px;min-width:min(100%,240px);margin:0}
#gr-complete[data-host=app][data-platform=web] .gr-langw-search > svg{position:absolute;inset-inline-start:14px;width:17px;height:17px;color:var(--app-muted);pointer-events:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-search input{width:100%;height:44px;min-height:44px;margin:0;padding:0 14px;padding-inline-start:40px;border-radius:999px;border:1px solid var(--app-line);
  background:var(--app-bg,var(--app-panel));color:var(--app-ink);font:500 15px/1 'DM Sans',sans-serif;box-shadow:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-search input:focus-visible{outline:2px solid var(--app-blue);outline-offset:2px;border-color:var(--app-blue)}
#gr-complete[data-host=app][data-platform=web] .gr-langw-count{min-height:0;margin:10px 0 0;color:var(--app-muted);font:600 13px/1.3 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-langw-count:empty{display:none}
/* the grid */
#gr-complete[data-host=app][data-platform=web] .gr-langw-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:10px;margin:14px 0 0;padding:0;list-style:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-grid > li{display:flex;min-width:0;margin:0}
#gr-complete[data-host=app][data-platform=web] .gr-langw-grid > li[hidden]{display:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;width:100%;min-height:66px;height:auto;
  margin:0;padding:11px 14px;border-radius:16px;border:1px solid var(--app-line);background:var(--app-panel);color:var(--app-ink);text-align:start;box-shadow:none;font:inherit;cursor:pointer}
#gr-complete[data-host=app][data-platform=web] .gr-langw-tile:hover{border-color:color-mix(in srgb,var(--app-blue) 50%,var(--app-line));background:color-mix(in srgb,var(--app-blue) 4%,var(--app-panel))}
#gr-complete[data-host=app][data-platform=web] .gr-langw-name{display:block;max-width:100%;color:var(--app-ink);font:700 16.5px/1.3 'DM Sans',system-ui,sans-serif;overflow-wrap:anywhere;unicode-bidi:isolate;text-align:left}
:root[dir=rtl] #gr-complete[data-host=app][data-platform=web] .gr-langw-name{text-align:right}
#gr-complete[data-host=app][data-platform=web] .gr-langw-en{color:var(--app-muted);font:500 13px/1.3 'DM Sans',sans-serif;overflow-wrap:anywhere}
#gr-complete[data-host=app][data-platform=web] .gr-langw-part{color:#a15c00;font:700 12px/1.2 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web][data-tone=dark] .gr-langw-part{color:#ffc46b}
/* the one in use: filled, bordered, ticked and named "In use" — it does not rely on colour alone */
#gr-complete[data-host=app][data-platform=web] .gr-langw-tile.is-on{padding-inline-end:84px;border:2px solid var(--app-blue);padding-block:10px;padding-inline-start:13px;
  background:color-mix(in srgb,var(--app-blue) 10%,var(--app-panel))}
#gr-complete[data-host=app][data-platform=web] .gr-langw-on{position:absolute;top:50%;inset-inline-end:10px;transform:translateY(-50%);display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px 0 7px;
  border-radius:999px;background:var(--app-blue);color:var(--gr-on,#fff);font:700 12px/1 'DM Sans',sans-serif;white-space:nowrap}
#gr-complete[data-host=app][data-platform=web] .gr-langw-on svg{width:13px;height:13px;stroke-width:3}
/* keyboard focus: a ring in the ink colour, outside the tile — separate from the blue of the one in use */
#gr-complete[data-host=app][data-platform=web] .gr-langw-tile:focus{outline:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-tile:focus-visible{outline:3px solid var(--app-ink);outline-offset:3px}
#gr-complete[data-host=app][data-platform=web] .gr-langw-none{display:flex;align-items:center;gap:8px;margin:14px 0 0;padding:16px;border-radius:16px;border:1px dashed var(--app-line);color:var(--app-muted);font:500 14px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-langw-none[hidden]{display:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-none svg{flex:none;width:18px;height:18px}
#gr-complete[data-host=app][data-platform=web] .gr-langw-err{display:flex;align-items:flex-start;gap:8px;margin:12px 0 0;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,#dc2f45 9%,var(--app-panel));
  color:var(--app-ink);font:500 13.5px/1.4 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-langw-err svg{flex:none;width:16px;height:16px;margin-top:2px;color:#dc2f45}
/* what changes and what does not */
#gr-complete[data-host=app][data-platform=web] .gr-langw-facts{display:flex;flex-wrap:wrap;gap:8px 24px;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--app-line);list-style:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-facts li{display:flex;align-items:flex-start;gap:8px;flex:1 1 300px;max-width:62ch;margin:0;color:var(--app-muted);font:500 13.5px/1.45 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-langw-facts svg{flex:none;width:16px;height:16px;margin-top:2px;color:var(--app-blue)}
/* Quiz Nova's own question language */
#gr-complete[data-host=app][data-platform=web] .gr-langw-quiz{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:6px 12px;padding:16px 20px}
#gr-complete[data-host=app][data-platform=web] .gr-langw-qt{min-width:0}
#gr-complete[data-host=app][data-platform=web] .gr-langw-qt p{max-width:62ch;margin:2px 0 0;color:var(--app-muted);font:500 13.5px/1.45 'DM Sans',sans-serif}
#gr-complete[data-host=app][data-platform=web] .gr-langw-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;min-height:38px;padding:0 15px;border-radius:999px;
  border:1px solid var(--app-line);background:var(--app-panel);color:var(--app-ink);font:700 13.5px/1 'DM Sans',sans-serif;white-space:nowrap;box-shadow:none}
#gr-complete[data-host=app][data-platform=web] .gr-langw-btn svg{width:14px;height:14px}
:root[dir=rtl] #gr-complete[data-host=app][data-platform=web] .gr-langw-btn svg{transform:scaleX(-1)}
#gr-complete[data-host=app][data-platform=web] .gr-langw-btn:hover{border-color:var(--app-blue);color:var(--app-blue);background:var(--app-panel)}
#gr-complete[data-host=app][data-platform=web] .gr-langw-btn:focus-visible{outline:2px solid var(--app-blue);outline-offset:2px}
@container gr-shell (max-width: 620px) {
  #gr-complete[data-host=app][data-platform=web] .gr-langw-card{padding:14px 14px 14px;border-radius:20px}
  #gr-complete[data-host=app][data-platform=web] .gr-langw-search{flex:1 1 100%}
  #gr-complete[data-host=app][data-platform=web] .gr-langw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  #gr-complete[data-host=app][data-platform=web] .gr-langw-tile{min-height:62px;padding:10px 12px}
  #gr-complete[data-host=app][data-platform=web] .gr-langw-tile.is-on{padding:9px 11px 30px}
  #gr-complete[data-host=app][data-platform=web] .gr-langw-on{top:auto;bottom:7px;inset-inline-start:10px;inset-inline-end:auto;transform:none;height:20px;font-size:11.5px}
  #gr-complete[data-host=app][data-platform=web] .gr-langw-quiz{grid-template-columns:36px minmax(0,1fr);padding:14px;border-radius:20px}
  #gr-complete[data-host=app][data-platform=web] .gr-langw-quiz .gr-langw-btn{grid-column:2;justify-self:start;margin-top:4px}
}
@media (prefers-reduced-motion: no-preference) {
  #gr-complete[data-host=app][data-platform=web]:not([data-motion=off]) .gr-langw-tile{transition:border-color .15s ease,background-color .15s ease}
}

/* ===================================================================== B5 corrective pass (14 Nov 2026) ===================================================================== */
/* Games > New this month: the arrows hide when every card fits (js/app/games.js paintReleases); an end arrow is disabled */
#gr-complete[data-host=app][data-platform=web] .gr-grel-arrows[hidden]{display:none}
/* Themes: a card that receives the focus after its last control went away (an applied free look) shows where it is */
#gr-complete[data-host=app][data-platform=web] .gr-thw-card[tabindex="-1"]:focus{outline:none}
#gr-complete[data-host=app][data-platform=web] .gr-thw-card[tabindex="-1"]:focus-visible{outline:2px solid var(--app-blue);outline-offset:3px}
/* Today's quiz standings on a phone (GR36). The row was rank · face · name over "n of 4 challenges" · points in one line,
   and at 320px a big score left the name a few pixels: "Mr…", and "challenges" broke letter by letter. Two causes: the list
   kept the browser's 40px list indent on a phone (the wide page's columns already reset it), and the name shared its line
   with the points. On a phone the name now takes the whole width of its line and the completion and the points share the
   line under it; on the narrowest phones (320) the points take a line of their own under the completion, so neither is
   ever squeezed. Nothing is cut but a really long name, whose full text stays in the row (and its title). The wide page
   (three columns) keeps its own row. */
#gr-complete[data-host=app][data-platform=web] .nxq-rank-list{margin:0;padding:0;list-style:none}
@container gr-shell (max-width:620px){
  #gr-complete[data-host=app][data-platform=web] .nxq-brow{grid-template-columns:28px auto minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;row-gap:0;column-gap:10px;align-items:center}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow > .nxq-brow-rank,
  #gr-complete[data-host=app][data-platform=web] .nxq-brow > :nth-child(2){grid-row:1 / 5;align-self:center}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow > .nxq-brow-rank{grid-column:1}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow > :nth-child(2){grid-column:2}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow-who{display:contents}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow-who > .nxq-brow-you{grid-column:3 / 5;grid-row:1}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow-who > span{grid-column:3 / 5;grid-row:2;min-width:0;font-size:15px;font-weight:700;line-height:1.3}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow-who small{grid-column:3;grid-row:3;min-width:0;margin-top:1px;line-height:1.3;overflow-wrap:normal;word-break:normal;hyphens:none}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow-pts{grid-column:4;grid-row:3;align-self:center;white-space:nowrap}
}
@container gr-shell (max-width:380px){
  #gr-complete[data-host=app][data-platform=web] .nxq-brow-who small{grid-column:3 / 5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #gr-complete[data-host=app][data-platform=web] .nxq-brow-pts{grid-column:3 / 5;grid-row:4;justify-items:start;margin-top:2px}
}

/* TRENDING ALIGNMENT (owner brief, 15 Nov 2026 §7): the second figure keeps its line (blank when there is none), a real
 * zero is said quietly, figures use even digit widths, and the actions start on one line in every row. */
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric small{min-height:1.3em}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric small.is-blank{visibility:hidden}
#gr-complete[data-host=app][data-platform=web] .gr-trw-zero{color:var(--app-muted);font-weight:500}
#gr-complete[data-host=app][data-platform=web] .gr-trw-metric,#gr-complete[data-host=app][data-platform=web] .gr-trw-metric *{font-variant-numeric:tabular-nums}
#gr-complete[data-host=app][data-platform=web] .gr-trw-card:not(.is-lead) .gr-trw-body{justify-content:center}
#gr-complete[data-host=app][data-platform=web] .gr-trw-acts{flex-wrap:nowrap}
@container gr-shell (max-width: 520px){#gr-complete[data-host=app][data-platform=web] .gr-trw-acts{flex-wrap:wrap}}
/* QA, 15 Nov 2026: the #2 and #3 cards put both figures on one line while #1 and the rows used two — every card uses two */
#gr-complete[data-host=app][data-platform=web] .gr-trw-card:is(.is-lead,:not(.is-lead)) .gr-trw-metric{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;gap:3px}
