/* English Lab · Game zone look for the Games list (hero, filters, featured tiles, compact units).
   Same night-purple + stars as the home page; filled controls, no bordered pills. Loaded after games.css. */
#games .g-hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, #4A2C7D 0%, #301D50 55%, #24153D 100%); }
#games .g-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 70%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 46% 14%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 82%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 78% 30%, #CFE9FF 50%, transparent 51%), radial-gradient(1px 1px at 90% 64%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 6% 88%, #fff 50%, transparent 51%); }
#games .g-hero .wrap.g-hero-in { position: relative; display: grid !important; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; align-items: center; padding-block: 44px 40px !important; }
@media (max-width: 760px) { #games .g-hero .wrap.g-hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 32px 28px !important; } #games .g-hero-art { display: none; } }
#games .g-hero-txt { display: grid; gap: 14px; min-width: 0; }

/* Filters: filled segmented tracks */
#games .g-hero .chips { display: inline-flex; flex-wrap: wrap; gap: 4px; background: rgba(255, 255, 255, .09); border-radius: 16px; padding: 5px; justify-self: start; max-width: 100%; }
#games .g-hero .chips button { border: 0; background: transparent; color: #E8DDF7; border-radius: 12px; padding: 9px 14px; font-size: 15px; min-height: 42px; }
#games .g-hero .chips button:hover { background: rgba(255, 255, 255, .1); }
#games .g-hero .chips button[aria-pressed="true"] { background: #A8D8FF; color: #301D50; box-shadow: 0 4px 14px rgba(168, 216, 255, .4); }
#games .g-hero .chips.lv button { min-width: 52px; }

/* Globi floating in its own little orbit */
#games .g-hero-art { position: relative; height: 260px; display: grid; place-items: center; }
#games .g-orbit { position: absolute; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(201, 168, 225, .35) 0%, rgba(201, 168, 225, 0) 70%); }
#games .g-orbit::after { content: ""; position: absolute; inset: 22px -30px; border: 3px solid rgba(168, 216, 255, .6); border-radius: 50%; transform: rotate(-18deg); }
#games .g-globi { position: relative; width: 170px; height: 170px; animation: g-bob 3.2s ease-in-out infinite; }
#games .g-float { position: absolute; width: 50px; height: 50px; border-radius: 16px; background: #FFFFFF; display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 24px rgba(10, 4, 24, .35); animation: g-bob 4s ease-in-out infinite; }
#games .g-float.f1 { top: 12px; left: 12%; animation-delay: -1s; transform: rotate(-8deg); }
#games .g-float.f2 { top: 26px; right: 6%; animation-delay: -2s; }
#games .g-float.f3 { bottom: 18px; left: 4%; animation-delay: -.5s; }
#games .g-float.f4 { bottom: 8px; right: 14%; animation-delay: -3s; background: #CFE9FF; }
@keyframes g-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Zones */
#games .content .wrap { gap: 34px !important; }
#games .zone { display: grid; gap: 14px; }
#games .zone-head { display: grid; gap: 2px; }
#games .zone-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
#games .zone-head h3 { margin: 0; font-family: var(--f-display, inherit); font-size: clamp(26px, 4vw, 34px); line-height: 1.05; }
#games .zone-head p { margin: 0; color: var(--muted); font-size: 15px; }

/* Featured tiles (challenges, special games) */
#games .feat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { #games .feat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { #games .feat-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; margin: 0 -2px; scrollbar-width: none; } #games .feat-row::-webkit-scrollbar { display: none; } #games .feat { scroll-snap-align: start; } }
#games .feat { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; border: 0; border-radius: 22px; padding: 14px; cursor: pointer;
  background: linear-gradient(135deg, #3B2366 0%, #2A1747 100%); color: #FFFFFF; box-shadow: 0 12px 26px rgba(42, 23, 71, .22); transition: transform .18s, box-shadow .18s; font: inherit; }
#games .feat:hover { transform: translateY(-3px); box-shadow: 0 18px 32px rgba(42, 23, 71, .3); }
#games .feat:focus-visible { outline: 3px solid #A8D8FF; outline-offset: 3px; }
#games .ft-art { width: 96px; height: 80px; border-radius: 16px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; overflow: hidden; }
#games .ft-art > * { transform: scale(.9); }
#games .ft-tx { display: grid; gap: 3px; min-width: 0; }
#games .ft-k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A8D8FF; }
#games .ft-tx b { font-family: var(--f-game); font-size: 19px; line-height: 1.15; }
#games .ft-tx small { color: #CDB8EC; font-size: 13px; }
#games .ft-best { position: absolute; top: 10px; right: 12px; color: #A8D8FF; font-size: 13px; letter-spacing: 1px; }
#games .z-special .feat { background: linear-gradient(135deg, #FFFFFF 0%, #F4EEFB 100%); color: var(--ink); box-shadow: 0 2px 0 var(--line), 0 10px 24px rgba(48, 29, 80, .08); }
#games .z-special .ft-art { background: #FFE9C2; }
#games .z-special .f-charades .ft-art { background: #E4D2F5; }
#games .z-special .ft-k { color: var(--accent); }
#games .z-special .ft-tx small { color: var(--muted); }
#games .feat .m-charades i { color: #301D50; }

/* Units: compact cards, one small button per game */
#games .units2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { #games .units2 { grid-template-columns: minmax(0, 1fr); } }
#games .u2 { position: relative; display: grid; gap: 12px; background: var(--surface); border-radius: 20px; padding: 16px 16px 18px; box-shadow: 0 2px 0 var(--line), 0 8px 20px rgba(48, 29, 80, .06); overflow: hidden; }
#games .u2-head { display: flex; gap: 12px; align-items: flex-start; }
#games .u2-n { flex: none; width: 38px; height: 38px; border-radius: 12px; background: #301D50; color: #A8D8FF; display: grid; place-items: center; font-family: var(--f-game); font-weight: 700; font-size: 17px; }
#games .u2-t { flex: 1; min-width: 0; }
#games .u2-t h4 { margin: 0; font-family: var(--f-game); font-size: 19px; line-height: 1.2; }
#games .u2-t p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
#games .u2-games { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }

#games .gchip { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; border: 0; border-radius: 14px; background: #F6F1FC; padding: 9px 10px; cursor: pointer; font: inherit; color: var(--ink); min-height: 54px; transition: background .15s, transform .15s; }
#games .gchip:hover { background: #EEE4FA; transform: translateY(-1px); }
#games .gchip:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#games .gc-ic { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); display: grid; place-items: center; font-size: 19px; }
#games .gc-tx { display: grid; min-width: 0; }
#games .gc-tx b { font-family: var(--f-game); font-size: 15px; line-height: 1.15; }
#games .gc-tx small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#games .gchip .gs { grid-column: 2; font-size: 11px; color: #4A9BE0; letter-spacing: 1px; }
#games .gchip .gs span { color: var(--line); }
#games .gchip.t-maze { background: #2E1A4F; color: #FFFFFF; }
#games .gchip.t-maze .gc-ic { background: rgba(255, 255, 255, .12); }
#games .gchip.t-maze small { color: #CDB8EC; }
#games .gchip.t-maze:hover { background: #3B2366; }
#games .u2-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: #F1ECF7; }
#games .u2-prog i { display: block; height: 100%; background: #A8D8FF; }
@media (prefers-reduced-motion: reduce) { #games .g-globi, #games .g-float { animation: none; } #games .feat, #games .gchip { transition: none; } }
@media (max-width: 480px) {
  #games .u2-games { grid-template-columns: repeat(var(--m, 3), minmax(0, 1fr)); gap: 6px; }
  #games .gchip { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; justify-items: center; text-align: center; padding: 8px 4px; row-gap: 3px; }
  #games .gc-ic { grid-row: auto; }
  #games .gc-tx b { font-size: 13px; }
  #games .gc-tx small { display: none; }
  #games .gchip .gs { grid-column: auto; }
}

/* ---- v3: store-style dark cards in sideways rows, brand fonts, less space ---- */
#games { --f-game: var(--f-body, "Chubbo", "Segoe UI", sans-serif); }
#games .g-hero .wrap.g-hero-in { padding-block: 28px 26px !important; gap: 16px; }
#games .g-hero h1 { font-size: clamp(34px, 5.5vw, 52px); }
#games .g-hero-art { height: 200px; }
#games .g-globi { width: 140px; height: 140px; }
#games .g-orbit { width: 200px; height: 200px; }
#games .content .wrap { gap: 26px !important; padding-block: 28px 56px !important; }
#games .zone { gap: 10px; }
#games .zone-head h3 { font-size: clamp(24px, 3.4vw, 30px); }
#games .zone-head p { font-size: 14px; }
#games .rail { position: relative; }
#games .rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; scrollbar-color: #9C88C2 #EEE4FA; }
#games .rail-track::-webkit-scrollbar { height: 8px; }
#games .rail-track::-webkit-scrollbar-track { background: #EEE4FA; border-radius: 4px; }
#games .rail-track::-webkit-scrollbar-thumb { background: #9C88C2; border-radius: 4px; }
@media (max-width: 600px) { #games .rail-track { grid-auto-columns: 74%; } }
#games .rail-btn { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #2A1747; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(42, 23, 71, .35); display: grid; place-items: center; }
#games .rail-btn.prev { left: -14px; }
#games .rail-btn.next { right: -14px; }
#games .rail-btn:hover { background: #4A2C7D; }
@media (hover: none), (max-width: 600px) { #games .rail-btn { display: none; } }
#games .gc2 { position: relative; scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr; border: 0; padding: 0; text-align: left; border-radius: 18px; overflow: hidden; cursor: pointer; background: #24153D; color: #fff; box-shadow: 0 10px 22px rgba(42, 23, 71, .25); transition: transform .18s, box-shadow .18s; font: inherit; }
#games .gc2:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(42, 23, 71, .35); }
#games .gc2:focus-visible { outline: 3px solid #A8D8FF; outline-offset: 3px; }
#games .gc2-art { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #2E1A4F; }
#games .gc2-art svg { display: block; width: 100%; height: 100%; }
#games .gc2-fallback { display: grid; place-items: center; height: 100%; }
#games .gc2-body { display: grid; gap: 4px; padding: 12px 14px 16px; align-content: start; }
#games .gc2-k { font-family: var(--f-body); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A8D8FF; }
#games .gc2-title { font-family: var(--f-display, "Tanker", sans-serif); font-weight: 400; font-size: 23px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
#games .gc2-best { position: absolute; top: 10px; right: 10px; background: rgba(36, 21, 61, .8); color: #A8D8FF; border-radius: 10px; padding: 2px 8px; font-size: 12px; letter-spacing: 1px; }
@media (prefers-reduced-motion: reduce) { #games .gc2 { transition: none; } }
#games .content .wrap > *, #games .zone, #games .rail { min-width: 0; max-width: 100%; }

/* ---- v4 hero: compact text + fan of game cards; filters in a light bar below ---- */
#games .g-hero .wrap.g-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); padding-block: 30px 30px !important; }
#games .g-hero-txt { gap: 10px; }
#games .g-hero-txt p { max-width: 46ch; }
#games .g-hero-art { position: relative; height: 190px; }
#games .g-fan { position: absolute; top: 18px; width: 200px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 4px solid #fff; box-shadow: 0 16px 30px rgba(10, 4, 24, .45); transition: transform .25s; }
#games .g-fan svg { display: block; width: 100%; height: 100%; }
#games .g-fan.f0 { left: 0; transform: rotate(-9deg) translateY(14px); z-index: 1; }
#games .g-fan.f1 { left: 50%; margin-left: -100px; transform: rotate(-1deg); z-index: 3; }
#games .g-fan.f2 { right: 0; transform: rotate(8deg) translateY(16px); z-index: 2; }
#games .g-hero-art:hover .g-fan.f0 { transform: rotate(-12deg) translate(-8px, 10px); }
#games .g-hero-art:hover .g-fan.f2 { transform: rotate(11deg) translate(8px, 12px); }
@media (max-width: 760px) { #games .g-hero .wrap.g-hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 24px 22px !important; } #games .g-hero-art { display: none; } }
#games .g-filterbar { background: #FFFFFF; border-bottom: 1px solid #EEE4FA; box-shadow: 0 6px 16px rgba(48, 29, 80, .05); }
#games .g-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; padding-block: 14px; }
#games .g-filterbar .pick { margin: 0; gap: 6px; }
#games .g-filterbar .pick-label { color: var(--muted); }
#games .g-filterbar .chips { display: inline-flex; flex-wrap: wrap; gap: 4px; background: #F1ECF7; border-radius: 14px; padding: 4px; }
#games .g-filterbar .chips button { border: 0; background: transparent; color: var(--ink); border-radius: 10px; padding: 8px 14px; font-size: 15px; font-weight: 600; min-height: 40px; cursor: pointer; }
#games .g-filterbar .chips button:hover { background: #E4D2F5; }
#games .g-filterbar .chips button[aria-pressed="true"] { background: #2A1747; color: #FFFFFF; box-shadow: none; }
#games .g-filterbar .chips.lv button { min-width: 48px; }
#games .g-filterbar .testlink { color: var(--accent); align-self: center; margin-left: auto; font-size: 14px; }
@media (max-width: 600px) { #games .g-filterbar .testlink { margin-left: 0; } #games .g-filterbar .chips button { padding: 8px 11px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { #games .g-fan { transition: none; } }
@media (max-width: 600px) {
  #games .g-filters { gap: 10px; padding-block: 10px; }
  #games .g-filterbar .pick { width: 100%; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; }
  #games .g-filterbar .pick-label { min-width: 0; }
  #games .g-filterbar .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; justify-self: stretch; }
  #games .g-filterbar .chips::-webkit-scrollbar { display: none; }
  #games .g-filterbar .chips button { flex: none; }
  #games .g-filterbar .testlink { font-size: 13px; }
}

/* ---- v5 hero art: Globi with illustrated game tiles around him ---- */
#games .g-hero-art { height: 210px; display: grid; place-items: center; }
#games .g-hero-art .g-orbit { position: absolute; width: 190px; height: 190px; left: 50%; top: 50%; margin: -95px 0 0 -95px; }
#games .g-hero-art .g-globi { position: relative; width: 136px; height: 136px; z-index: 2; }
#games .g-tile { position: absolute; width: 92px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 3px solid #fff; box-shadow: 0 10px 22px rgba(10, 4, 24, .45); animation: g-bob 4s ease-in-out infinite; z-index: 1; }
#games .g-tile svg { display: block; width: 100%; height: 100%; }
#games .g-tile.t0 { top: 6px; left: 6%; transform: rotate(-8deg); animation-delay: -1s; }
#games .g-tile.t1 { top: 14px; right: 4%; transform: rotate(7deg); animation-delay: -2s; }
#games .g-tile.t2 { bottom: 6px; left: 2%; transform: rotate(6deg); animation-delay: -.5s; }
#games .g-tile.t3 { bottom: 10px; right: 8%; transform: rotate(-6deg); animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) { #games .g-tile { animation: none; } }