/* GameDeck, redesign for Quantum accounts (30 Nov 2026).
   Different from the original (dark cards) and from the Clickstream version (light editorial serif):
   cool bright portal, cobalt and sunflower, Archivo headings, mosaic header, tiles and tables. */

:root {
  --bg: #f3f5fa;
  --card: #ffffff;
  --ink: #101630;
  --ink-2: #4a5270;
  --line: #dfe4ef;
  --brand: #2343d6;
  --brand-ink: #ffffff;
  --sun: #ffc531;
  --deep: #0e1533;
  --deep-ink: #e8ecf8;
  --r: 14px;
  --head: "Archivo", "Segoe UI", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
:root:lang(ar) { --head: "Cairo", "Segoe UI", Tahoma, sans-serif; --body: "Cairo", "Segoe UI", Tahoma, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.q-shell { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* bar */
.q-bar { position: sticky; top: 0; z-index: 20; background: var(--brand); color: var(--brand-ink); }
.q-bar-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.q-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -.01em; white-space: nowrap; }
.q-logo i { width: 30px; height: 30px; border-radius: 8px; background: var(--sun); display: grid; place-items: center; color: var(--ink); font-style: normal; font-size: 16px; transform: rotate(-6deg); }
.q-menu { display: flex; gap: 4px; margin-inline-start: auto; }
.q-menu a { text-decoration: none; font-weight: 600; padding: 7px 12px; border-radius: 999px; }
.q-menu a:hover { background: rgba(255,255,255,.14); }
.q-menu a[aria-current] { background: var(--card); color: var(--brand); }
.q-lang { position: relative; }
.q-lang summary { list-style: none; cursor: pointer; font-weight: 700; padding: 6px 12px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 999px; }
.q-lang summary::-webkit-details-marker { display: none; }
.q-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); list-style: none; background: var(--card); color: var(--ink); border-radius: 10px; box-shadow: 0 10px 30px rgba(16,22,48,.18); padding: 6px; min-width: 150px; }
.q-lang li a { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; }
.q-lang li a:hover, .q-lang li a[aria-current] { background: var(--bg); font-weight: 700; }

/* mosaic header */
.q-top { padding-block: 28px 10px; }
.q-hello { font-family: var(--head); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; max-width: 22ch; text-wrap: balance; }
.q-hello-sub { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.q-mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 22px; }
.q-tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; text-decoration: none; background: var(--deep); color: #fff; }
.q-tile img { width: 100%; height: 100%; object-fit: cover; }
.q-tile-big { grid-row: span 2; min-height: 380px; }
.q-tile-big img { position: absolute; inset: 0; }
.q-tile-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(to top, rgba(8,12,30,.85), rgba(8,12,30,0)); }
.q-tile-cap b { display: block; font-family: var(--head); font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
.q-chip { display: inline-block; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.q-tile-small { aspect-ratio: 16 / 10; }
.q-tile-small img { position: absolute; inset: 0; }
.q-tile-small .q-tile-cap b { font-size: 18px; }
.q-perks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.q-perk { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px 8px 10px; text-decoration: none; font-size: 15px; }
.q-perk::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.q-perk b { font-weight: 700; }

/* sections */
.q-sec { padding-block: 40px; }
.q-sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.q-sec h2 { font-family: var(--head); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.015em; line-height: 1.15; }
.q-sec-sub { color: var(--ink-2); margin-top: 4px; }
.q-all { font-weight: 700; color: var(--brand); text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--sun); }

/* games rail */
.q-rail { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.q-game { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; text-decoration: none; height: 100%; }
.q-game img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; filter: saturate(.8); }
.q-game-name { display: block; font-weight: 700; margin-top: 8px; line-height: 1.25; }
.q-game-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.q-play { background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }

/* article cards */
.q-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.q-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.q-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.q-kind { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
:root:lang(ar) .q-kind { letter-spacing: 0; }
.q-card h3 { font-family: var(--head); font-size: 20px; line-height: 1.25; }
.q-card h3 a { text-decoration: none; }
.q-card h3 a:hover { color: var(--brand); }
.q-card p { color: var(--ink-2); font-size: 16px; }
.q-go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--brand); text-decoration: none; }
.q-go::after { content: " \203A"; }
.q-card picture, .q-video-frame picture { display: block; }
.q-card-wide { grid-column: span 2; flex-direction: row; }
.q-card-wide picture { flex: 0 0 52%; }
.q-card-wide img { width: 100%; height: 100%; aspect-ratio: auto; }
.q-card-wide h3 { font-size: 24px; }

/* videos */
.q-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.q-video { display: block; text-decoration: none; }
.q-video-frame { position: relative; display: block; border-radius: var(--r); overflow: hidden; }
.q-video-frame img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.q-video-frame::after { content: ""; position: absolute; inset-inline-start: 14px; bottom: 14px; width: 0; height: 0; border-block: 9px solid transparent; border-inline-start: 15px solid #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.q-dur { position: absolute; inset-inline-end: 10px; bottom: 10px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.q-video b { display: block; font-family: var(--head); font-size: 18px; line-height: 1.3; margin-top: 10px; }
.q-video small { color: var(--ink-2); font-size: 14px; }

/* reviews table */
.q-rated { background: var(--deep); color: var(--deep-ink); }
.q-rated .q-sec-sub { color: #aeb6d3; }
.q-rated .q-all { color: var(--sun); }
.q-table { width: 100%; border-collapse: collapse; }
.q-table th { text-align: start; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #aeb6d3; font-weight: 700; padding: 0 12px 10px; }
:root:lang(ar) .q-table th { letter-spacing: 0; }
.q-table td { padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.q-table td:first-child { font-weight: 700; font-family: var(--head); white-space: nowrap; }
.q-table a { color: var(--sun); font-weight: 700; text-decoration: none; white-space: nowrap; }
.q-score { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.q-stars { --fill: 0%; font-size: 17px; letter-spacing: 2px; background: linear-gradient(90deg, var(--sun) var(--fill), rgba(255,255,255,.25) var(--fill)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir="rtl"] .q-stars { background: linear-gradient(270deg, var(--sun) var(--fill), rgba(255,255,255,.25) var(--fill)); -webkit-background-clip: text; background-clip: text; }
.q-stars::before { content: "\2605\2605\2605\2605\2605"; }
.q-note { margin-top: 14px; font-size: 14px; color: #aeb6d3; }

/* footer */
.q-foot { background: #e7ebf5; color: var(--ink-2); font-size: 15px; padding-block: 40px 26px; }
.q-foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.q-foot .q-logo { color: var(--ink); margin-bottom: 8px; }
.q-foot h4 { color: var(--ink); font-size: 15px; margin-bottom: 8px; }
.q-foot ul { list-style: none; display: grid; gap: 4px; }
.q-foot a { text-decoration: none; }
.q-foot a:hover { color: var(--brand); }
.q-legal { margin-top: 26px; padding-top: 16px; border-top: 1px solid #cfd6e6; font-size: 13px; display: grid; gap: 2px; }
.todo { background: #fde68a; color: #1d1b18; padding: 0 4px; border-radius: 3px; }

@media (max-width: 900px) {
  .q-menu { display: none; }
  .q-bar-in { justify-content: space-between; }
  .q-tabs { display: flex; }
  .q-mosaic { grid-template-columns: 1fr; }
  .q-tile-big { grid-row: auto; min-height: 300px; }
  .q-rail { grid-template-columns: repeat(3, 1fr); }
  .q-cards, .q-videos { grid-template-columns: 1fr; }
  .q-card-wide { grid-column: auto; flex-direction: column; }
  .q-card-wide picture { flex: none; }
  .q-card-wide img { width: 100%; aspect-ratio: 3 / 2; }
  .q-table thead { display: none; }
  .q-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .q-table td { border: 0; padding: 2px 0; }
  .q-table td:nth-child(3) { grid-column: 1 / -1; color: #c9cfe6; }
  .q-table td:nth-child(4) { grid-column: 1 / -1; }
  .q-foot-grid { grid-template-columns: 1fr 1fr; }
  .q-foot-grid > div:first-child { grid-column: 1 / -1; }
}
/* phone tab row under the bar */
.q-tabs { display: none; gap: 6px; overflow-x: auto; padding: 8px 20px; background: #1b37c0; }
.q-tabs a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.q-tabs a[aria-current] { background: #fff; color: var(--brand); }
@media (max-width: 900px) { .q-tabs { display: flex; } }
@media (max-width: 520px) { .q-rail { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
