@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('../../vendor/fonts/cairo-arabic-wght-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url('../../vendor/fonts/cairo-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --primary: #0f766e; --primary-600: #0d655e; --primary-50: #ecfdf8;
  --accent: #f59e0b; --accent-50: #fff7e6;
  --ink: #1f2937; --ink-2: #4b5563; --ink-3: #6b7280;
  --line: #e5e7eb; --bg: #f6f7f9; --card: #ffffff;
  --danger: #dc2626; --ok: #16a34a;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-lg: 0 10px 30px rgba(16,24,40,.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { vertical-align: middle; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .bar { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--primary), #14b8a6); color: #fff; display: grid; place-items: center; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); line-height: 1.2; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; flex-wrap: wrap; align-items: center; }
.nav a, .nav button { color: var(--ink-2); padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover, .nav a.active, .nav button:hover { background: var(--primary-50); color: var(--primary); text-decoration: none; }
@media (max-width: 720px) { .nav .lbl { display: none; } .brand small { display: none; } .nav a, .nav button { padding: 6px 7px; } .brand { font-size: 16px; white-space: nowrap; } .site-header .bar { gap: 6px; } .nav { flex-wrap: nowrap; } }

/* Hero */
.hero { text-align: center; padding: 44px 0 18px; }
.hero .kicker { display: inline-flex; gap: 6px; align-items: center; background: var(--accent-50); color: #92400e; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); margin: 10px 0 8px; font-weight: 900; }
.hero h1 span { color: var(--primary); }
.hero p { color: var(--ink-2); font-size: 18px; margin: 0 auto; max-width: 720px; }

.section-title { font-size: 21px; font-weight: 800; margin: 26px 0 0; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 18px 0 30px; }
.game-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; color: var(--ink); display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; position: relative; }
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.game-card .art { height: 120px; display: grid; place-items: center; color: #fff; }
.game-card .art svg { width: 56px; height: 56px; }
.game-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game-card h3 { margin: 0; font-size: 18px; font-weight: 800; }
.game-card p { margin: 0; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.game-card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.tag { font-size: 12px; font-weight: 700; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; color: var(--ink-2); }
.game-card.soon { opacity: .6; pointer-events: none; }
.game-card .badge { position: absolute; top: 12px; inset-inline-end: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }

/* Panels & forms */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: 0; border-radius: 11px; padding: 10px 20px; font-weight: 800; cursor: pointer; font-size: 15px; transition: background .15s, transform .05s; }
.btn:hover { background: var(--primary-600); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg); }
.btn.accent { background: var(--accent); color: #1f1300; }
.btn.accent:hover { background: #d97706; }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 6px 12px; font-size: 14px; border-radius: 9px; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--ink-2); display: inline-grid; place-items: center; }
.icon-btn:hover { background: #e5e7eb; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-weight: 700; font-size: 14px; }
.field small { color: var(--ink-3); font-size: 12.5px; }
.input, select.input { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; width: 100%; }
.input:focus { outline: 2px solid var(--primary); outline-offset: -1px; border-color: transparent; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 700; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--primary); box-shadow: var(--shadow); }

/* Profile & donation */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 10px 0 48px; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; justify-content: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; object-fit: cover; }
.pc-name { font-size: 21px; font-weight: 900; }
.pc-role { color: var(--ink-2); font-weight: 600; margin-top: -8px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.social { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--brand, var(--ink-2)); border: 1px solid var(--line); transition: transform .15s; }
.social:hover { transform: translateY(-2px); background: #fff; }
.donation-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: linear-gradient(180deg, #fff, var(--accent-50)); }
.donation-card h2 { margin: 0; font-size: 20px; }
.donation-card p { margin: 0; color: var(--ink-2); max-width: 520px; }
.don-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; }
.don-ic.big { width: 58px; height: 58px; }
.accounts { display: grid; gap: 10px; margin-top: 14px; }
.account { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.acc-head { display: flex; align-items: center; gap: 6px; }
.acc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-row b { flex: 1; word-break: break-all; }
.acc-qr { display: grid; justify-items: center; gap: 4px; }
.acc-qr img { width: 160px; height: 160px; }

/* Dialog */
dialog.modal { border: 0; border-radius: 18px; padding: 0; width: min(560px, 100% - 24px); box-shadow: var(--shadow-lg); max-height: 90vh; }
dialog.modal::backdrop { background: rgba(15, 23, 42, .5); }
.modal-body { padding: 22px; }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; font-size: 19px; flex: 1; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* Toast */
.toasts { position: fixed; bottom: 18px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: min(560px, 92vw); animation: tin .2s; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* Game page */
.game-page { padding: 22px 0 56px; }
.game-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.game-head .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.game-head h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 900; }
.game-head p { margin: 0; color: var(--ink-3); }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 6px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; color: var(--ink-3); font-size: 14px; }
.site-footer .row { justify-content: space-between; }

@media print {
  .site-header, .site-footer, .no-print, .toasts { display: none !important; }
  body { background: #fff; }
}
.swatch { display: inline-block; width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; border: 1px solid rgba(0,0,0,.15); }
