/* Codera Mini Games: one collection, three distinct game identities. */
.apps-page { background:#f4f5f2; }
.apps-page .desktop-nav a[href$="/mini-games"] { color:var(--accent); }
.apps-page .desktop-nav a[href$="/mini-games"]::after { content:"";position:absolute;left:50%;bottom:2px;width:18px;height:2px;background:var(--accent);transform:translateX(-50%); }
.hub-intro { display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.88fr);gap:clamp(30px,5vw,80px);align-items:center;padding:74px 0 76px; }
.hub-intro-copy { position:relative;min-width:0; }
.hub-kicker { color:#4b59dc;display:flex;gap:12px;align-items:center;font:700 11px/1.5 var(--mono);letter-spacing:.09em;text-transform:uppercase;margin:0 0 25px; }
.hub-kicker::before { content:"";width:28px;height:2px;background:#4b59dc;border-radius:2px; }
.hub-intro h1 { margin:0;font-weight:790;letter-spacing:-.075em;font-size:clamp(56px,6vw,87px);line-height:.99; }
.hub-intro h1 span { color:#4b59dc; }
.hub-lead { max-width:530px;margin:29px 0 0;font-size:18px;line-height:1.66;color:#565c65; }
.hub-quick { display:flex;flex-wrap:wrap;gap:9px;margin:26px 0 25px; }
.hub-quick span { border:1px solid #d9dad9;background:#f9faf7;border-radius:99px;padding:8px 12px;color:#454d58;font:700 10px var(--mono);text-transform:uppercase;letter-spacing:.04em; }
.hub-discover { display:inline-flex;align-items:center;gap:10px;font-weight:750;padding:10px 0;color:#2535b7; }
.hub-discover svg { width:19px;height:19px;transition:transform .2s; }
.hub-discover:hover svg { transform:translateY(4px); }
.hub-discover:focus-visible,.hub-action:focus-visible { outline:3px solid #4b59dc;outline-offset:4px; }

/* Three large, real launcher icons; the Codera hero structure stays intact. */
.hub-hero-scene { position:relative;height:410px;min-width:0;border-radius:36px;overflow:hidden;background:radial-gradient(ellipse at 75% 35%,#2d365b 0,transparent 58%),#10152d;box-shadow:0 24px 50px #12203e1c;isolation:isolate; }
.hub-hero-scene::before { content:"";position:absolute;width:365px;height:365px;border:1px solid #afcfff26;border-radius:50%;top:19px;left:42%;box-shadow:0 0 0 48px #afcfff08,0 0 0 96px #afcfff04; }
.hub-hero-icons { position:absolute;inset:0;pointer-events:none; }
.hub-hero-icon { position:absolute;width:clamp(116px,12vw,160px);height:auto;border-radius:28px;box-shadow:0 18px 32px #0006;border:2px solid #ffffff24;object-fit:cover; }
.hub-hero-icon--stacksy { left:8%;top:33%;transform:rotate(-11deg); }
.hub-hero-icon--linkly { left:44%;top:9%;transform:rotate(9deg); }
.hub-hero-icon--blinksy { right:7%;bottom:12%;transform:rotate(-6deg); }
.hub-scene-tag { position:absolute;bottom:24px;left:27px;color:#afcfff;font:600 10px var(--mono);letter-spacing:.14em;text-transform:uppercase; }

/* One collection with equal cards and full, uncropped gameplay images. */
.hub-collection { padding:0 0 84px; }
.hub-collection-top { display:flex;justify-content:space-between;align-items:end;gap:24px;padding:0 0 22px;border-bottom:1px solid #d4d7d8;margin-bottom:23px; }
.hub-collection-top h2 { font-size:clamp(26px,3vw,36px);font-weight:730;letter-spacing:-.045em;margin:0; }
.hub-collection-top span { font:650 11px var(--mono);color:#667078;white-space:nowrap; }
.hub-section-kicker { color:#4b59dc;font:700 11px/1.6 var(--mono);letter-spacing:.11em;margin:0 0 10px; }
.hub-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.hub-game { display:flex;flex-direction:column;border-radius:29px;border:1px solid #dcdfe1;background:#fff;overflow:hidden;min-width:0;box-shadow:0 15px 28px #101b2909; }
.hub-visual { height:400px;position:relative;overflow:hidden;isolation:isolate;display:grid;place-items:center;background:var(--game-panel); }
.hub-visual::before { content:"";position:absolute;width:230px;height:230px;border-radius:50%;top:-112px;right:-30px;background:var(--game-halo); }
.hub-visual::after { content:"";position:absolute;width:215px;height:215px;border-radius:50%;bottom:-150px;left:-25px;background:var(--game-halo);opacity:.55; }
.hub-app-icon { position:absolute;top:22px;left:20px;width:52px;height:52px;object-fit:cover;border-radius:14px;box-shadow:0 9px 18px #0002;z-index:2; }
.hub-web-pill { position:absolute;top:28px;right:20px;z-index:2;padding:8px 10px;border-radius:999px;border:1px solid var(--game-pill-border);background:var(--game-pill);color:var(--game-pill-ink);font:750 9px var(--mono);letter-spacing:.035em; }
.hub-phone { position:relative;z-index:1;height:314px;width:145px;box-sizing:content-box;border:7px solid var(--game-frame);border-radius:24px;overflow:hidden;box-shadow:0 18px 30px #0003;transform:translate(8px,18px) rotate(var(--game-angle));background:var(--game-panel); }
.hub-phone img { display:block;width:100%;height:100%;object-fit:contain; }
.hub-caption { position:absolute;left:20px;bottom:17px;z-index:2;font:600 9px var(--mono);text-transform:uppercase;letter-spacing:.10em;color:var(--game-caption); }
.hub-card-content { display:flex;flex:1;flex-direction:column;padding:26px 23px 27px; }
.hub-game-title { display:flex;align-items:center;gap:10px;justify-content:space-between; }
.hub-game-title h3 { font-size:33px;letter-spacing:-.055em;line-height:1;margin:0;font-weight:800; }
.hub-meta { flex:none;color:#56616b;font:700 10px var(--mono);letter-spacing:.05em;border:1px solid #d9ddde;padding:8px 10px;border-radius:80px; }
.hub-game-description { font-size:14px;line-height:1.67;color:#59616a;max-width:48ch;margin:16px 0 19px; }
.hub-feature-list { list-style:none;margin:0 0 24px;padding:0;display:flex;flex-wrap:wrap;gap:7px; }
.hub-feature-list li { font-size:11px;font-weight:700;color:#46505e;padding:8px 10px;background:#f4f5f6;border-radius:9px; }
.hub-game-actions { display:flex;flex-direction:column;align-items:stretch;gap:9px;margin-top:auto; }
.hub-action { min-height:51px;display:flex;align-items:center;justify-content:center;gap:8px;padding:12px 16px;border-radius:13px;font-size:14px;font-weight:750;line-height:1.3;text-align:center;transition:transform .16s ease,box-shadow .16s ease; }
.hub-action svg { width:19px;height:19px;flex:none; }
.hub-action:hover { transform:translateY(-2px); }
.hub-action-primary { color:var(--game-button-ink);background:var(--game-accent);box-shadow:0 8px 16px #0000000f; }
.hub-action-secondary { color:#1b2731;background:#f0f2f2;border:1px solid #e1e5e5; }
.hub-footnote { margin:13px 0 0;color:#778089;font-size:11px;line-height:1.65; }

/* Each current palette is declared once. */
.hub-game--stacksy {
  --game-accent:#a7f3d0;--game-button-ink:#10152d;--game-panel:#10152d;
  --game-halo:#afcfff14;--game-frame:#080d1e;--game-angle:-4deg;
  --game-pill:#1b2543ed;--game-pill-border:#afcfff40;--game-pill-ink:#eaf5ff;--game-caption:#afcfff;
}
.hub-game--stacksy .hub-visual { background:radial-gradient(ellipse at 80% 10%,#263753,#10152d 78%); }
.hub-game--linkly {
  --game-accent:#163d3b;--game-button-ink:#ffffff;--game-panel:#f0faf4;
  --game-halo:#ddf1e7;--game-frame:#163d3b;--game-angle:4deg;
  --game-pill:#fffffff0;--game-pill-border:#bfded1;--game-pill-ink:#163d3b;--game-caption:#3d6258;
}
.hub-game--linkly .hub-visual { background:linear-gradient(145deg,#f0faf4,#ddf1e7); }
.hub-game--linkly .hub-visual::after { background:#466ae622; }
.hub-game--blinksy {
  --game-accent:#7059e8;--game-button-ink:#ffffff;--game-panel:#fff7eb;
  --game-halo:#ffb84d29;--game-frame:#31254f;--game-angle:-3deg;
  --game-pill:#fffffff0;--game-pill-border:#7059e833;--game-pill-ink:#31254f;--game-caption:#594a75;
}
.hub-game--blinksy .hub-visual { background:radial-gradient(ellipse at 82% 9%,#ffebca,#fff7eb 76%); }
.hub-game--blinksy .hub-visual::after { background:#7059e824; }

.hub-info-strip { border-top:1px solid #dedfdf;padding:59px 0 83px;display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:80px; }
.hub-info-strip h2 { font-size:clamp(30px,3.6vw,48px);font-weight:750;line-height:1.09;letter-spacing:-.05em;margin:0 0 18px; }
.hub-info-strip>div>p { color:#5c646c;line-height:1.7;font-size:15px;margin:0; }
.hub-steps { display:grid;gap:0; }
.hub-step { display:grid;grid-template-columns:40px minmax(0,1fr);align-items:start;gap:16px;padding:16px 0;border-bottom:1px solid #d6dadb; }
.hub-step:first-child { border-top:1px solid #d6dadb; }
.hub-step strong { display:grid;place-items:center;width:37px;height:37px;background:#e9ebfa;color:#4b59dc;border-radius:11px;font:800 13px var(--mono); }
.hub-step p { margin:0;line-height:1.58;color:#37414e;font-size:14px; }
.hub-step p b { font-weight:760; }
.hub-disclaimer { border:1px solid #dae0e3;border-radius:18px;padding:16px 19px;background:#fff;color:#646d79;font-size:12px;line-height:1.68;margin-bottom:75px; }
.hub-disclaimer strong { color:#1e2b35; }
.hub-checksum { margin:12px 0 0;font-size:12px; }
.hub-checksum a { color:#3d4bc9;font-weight:730;text-decoration:underline;text-underline-offset:3px; }
.hub-checksum a:hover { color:#1d2aa4; }

@media(max-width:1050px) {
  .hub-intro { grid-template-columns:minmax(0,1fr) minmax(280px,.7fr);gap:30px; }
  .hub-hero-scene { height:350px; }
  .hub-grid { grid-template-columns:1fr; }
  .hub-game { display:grid;grid-template-columns:minmax(240px,.88fr) minmax(0,1.12fr); }
  .hub-visual { height:auto;min-height:400px; }
  .hub-card-content { justify-content:center;padding:29px 30px; }
  .hub-game-actions { margin-top:0; }
}
@media(max-width:760px) {
  .hub-intro { grid-template-columns:1fr;padding:45px 0 54px; }
  .hub-hero-scene { height:270px; }
  .hub-hero-scene::before { left:49%;top:-42px; }
  .hub-hero-icon { width:clamp(92px,24vw,130px);border-radius:24px; }
  .hub-hero-icon--stacksy { left:11%;top:31%; }
  .hub-hero-icon--linkly { left:42%;top:8%; }
  .hub-hero-icon--blinksy { right:10%;bottom:13%; }
  .hub-game { display:flex; }
  .hub-visual { height:400px;min-height:0; }
  .hub-card-content { padding:25px 23px 27px; }
  .hub-info-strip { grid-template-columns:1fr;gap:27px;padding:50px 0 35px; }
}
@media(max-width:500px) {
  .hub-intro h1 { font-size:clamp(44px,12vw,63px); }
  .hub-lead { font-size:16px; }
  .hub-intro { padding-top:43px; }
  .hub-hero-scene { height:235px; }
  .hub-hero-icon { width:clamp(82px,25vw,112px);border-radius:22px; }
  .hub-hero-icon--stacksy { left:8%;top:30%; }
  .hub-hero-icon--linkly { left:39%;top:8%; }
  .hub-hero-icon--blinksy { right:7%;bottom:10%; }
  .hub-scene-tag { bottom:15px;left:18px;font-size:9px; }
  .hub-collection { padding-bottom:56px; }
  .hub-collection-top { align-items:start; }
  .hub-collection-top span { padding-top:5px; }
  .hub-grid { gap:18px; }
  .hub-visual { height:370px; }
  .hub-phone { height:286px;width:132px;transform:translate(8px,14px) rotate(var(--game-angle));border-width:6px; }
  .hub-app-icon { width:48px;height:48px;left:18px;top:20px;border-radius:13px; }
  .hub-web-pill { top:26px;right:17px;font-size:9px; }
  .hub-caption { left:18px;bottom:15px; }
  .hub-card-content { padding:25px 21px 27px; }
  .hub-game-title h3 { font-size:32px; }
  .hub-info-strip h2 { font-size:34px; }
}
@media(max-width:360px) {
  .hub-hero-scene { height:212px; }
  .hub-collection-top { flex-direction:column;gap:4px; }
  .hub-game-title { gap:6px; }
  .hub-meta { font-size:9px;padding:6px 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .hub-discover svg,.hub-action { transition:none; }
}
