/* Fonts: self-hosted Google Fonts, latin + latin-ext. */
@font-face{font-family:'Figtree';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/figtree-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Figtree';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/figtree-400-latin.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}
@font-face{font-family:'Figtree';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/figtree-600-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Figtree';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/figtree-600-latin.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}
@font-face{font-family:'Figtree';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/figtree-700-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Figtree';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/figtree-700-latin.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}
@font-face{font-family:'Michroma';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/michroma-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Michroma';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/michroma-400-latin.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}
@font-face{font-family:'Saira Extra Condensed';font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/saira-extra-condensed-800-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Saira Extra Condensed';font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/saira-extra-condensed-800-latin.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}

/* Magedia Games. Colours come from the studio logo: black ground, white MAGEDIA, orange GAMES. */
:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --surface-2: #121214;
  --line: #26262A;
  --line-2: #3A3A40;
  --fg: #F4F2EE;
  --fg-2: #B4B2AD;
  --fg-3: #8E8C88;
  --orange: #FF8A1A;
  --orange-hover: #FFA347;
  --cyan: #3FE0F0;
  --ww: #FF4F1F;
  --tc-bg: #2A140C;
  --tc-line: #4A2416;
  --tc-accent: #E07A3F;
  --tc-fg: #D9B8A4;
  --display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
  --wordmark: 'Michroma', 'Arial', sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); }
a:hover { color: var(--orange-hover); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--orange); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 11, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid #222226; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.wordmark { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.wordmark .m { font-family: var(--wordmark); font-size: 16px; letter-spacing: 0.08em; color: var(--fg); }
.wordmark .g { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: 0.04em; color: var(--orange); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav a { color: var(--fg); text-decoration: none; }
.nav a:hover { color: var(--orange); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 720px) {
  .menu-btn { display: flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid #222226; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid #1C1C20; font-size: 17px; }
  .nav a.btn { margin-top: 12px; justify-content: center; border-bottom: 1.5px solid var(--line-2); }
}

/* Buttons and store badges */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-fill { background: var(--orange); color: var(--bg); }
.btn-fill:hover { background: var(--orange-hover); color: var(--bg); }
.btn-line { border: 1.5px solid var(--line-2); color: var(--fg); font-weight: 600; }
.btn-line:hover { border-color: var(--fg); color: var(--fg); }
.btn-sm { height: 40px; padding: 0 16px; }
.btn-dark { background: var(--bg); color: var(--fg); }
.btn-dark:hover { color: var(--fg); background: #222; }
.btn-tc { background: var(--tc-accent); color: var(--tc-bg); }
.btn-tc:hover { color: var(--tc-bg); background: #EB8D57; }

.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; height: 48px; padding: 0 16px; border-radius: 10px; background: #000; border: 1px solid #A6A6A6; color: #fff; text-decoration: none; line-height: 1.1; transition: border-color .15s; }
.badge:hover { border-color: var(--fg); color: #fff; }
.badge small { font-size: 12px; }
.badge b { font-size: 18px; font-weight: 600; }
.badge-soon { display: inline-flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 10px; border: 1.5px dashed var(--line-2); color: var(--fg-3); font-size: 14px; font-weight: 600; }
/* On a phone, show the store for that phone only */
.is-ios .store-play, .is-android .store-apple { display: none; }

/* Scattered controller symbols, as around the logo */
.sym { position: absolute; pointer-events: none; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-block: 72px 80px; }
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-family: var(--wordmark); font-size: 13px; letter-spacing: 0.2em; color: var(--orange); text-transform: uppercase; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8vw, 108px); line-height: 0.92; letter-spacing: 0.01em; text-transform: uppercase; }
.hero h1 span { color: var(--orange); }
.lead { max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.tiles { flex: 1 1 340px; min-width: 0; max-width: 460px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.tile:hover { color: var(--fg); }
.tile img { width: 100%; aspect-ratio: 1; border-radius: 22%; transition: transform .15s; }
.tile:hover img { transform: translateY(-3px); }
.tile em { font-style: normal; color: var(--tc-accent); font-weight: 700; }

/* Facts */
.facts { border-top: 1px solid #222226; border-bottom: 1px solid #222226; }
.facts .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 48px; padding-block: 24px; }
.fact { display: flex; align-items: baseline; gap: 10px; }
.fact b { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1.1; color: var(--orange); font-variant-numeric: tabular-nums; }
.fact span { color: var(--fg-2); font-size: 15px; }

/* Sections */
.section .wrap { padding-block: 88px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; text-transform: uppercase; }
.muted { color: var(--fg-3); font-size: 15px; }

/* Game cards */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card { flex: 1 1 520px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: border-color .15s; }
.card:hover { border-color: #44444C; }
.card-head { display: flex; align-items: center; gap: 18px; }
.card-head img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.card-head div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.chip { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bg); padding: 3px 10px; border-radius: 999px; }
.card h3 { font-size: 26px; line-height: 1.15; font-weight: 700; }
.card p { color: var(--fg-2); }
.card-media { height: 260px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card-media img { width: 100%; height: 260px; object-fit: cover; object-position: center 40%; border-radius: 14px; }
.card-media.one { grid-template-columns: minmax(0, 1fr); }
.card-media.one img { object-position: left center; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.more { margin-left: auto; color: var(--fg); font-weight: 600; font-size: 15px; }
.more:hover { color: var(--orange); }

.card-featured { flex-basis: 100%; padding: 0; overflow: hidden; flex-direction: row; flex-wrap: wrap; gap: 0; }
.card-featured .card-body { flex: 1 1 420px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.poster { flex: 1.4 1 480px; min-width: 0; min-height: 340px; background: var(--ww); position: relative; display: flex; align-items: center; justify-content: center; padding: 32px; }
.poster img { width: 70%; max-width: 380px; }

.card-soon { flex-basis: 100%; background: var(--tc-bg); border-color: var(--tc-line); flex-direction: row; flex-wrap: wrap; align-items: center; gap: 24px; }
.card-soon:hover { border-color: #6A3420; }
.card-soon > img { width: 88px; height: 88px; border-radius: 20px; flex: none; }
.card-soon .card-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-soon p { color: var(--tc-fg); max-width: 36em; }

/* About */
.about { background: var(--surface-2); border-top: 1px solid #222226; }
.about .wrap { flex-direction: row; flex-wrap: wrap; gap: 48px 72px; }
.about-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about-text p { color: var(--fg-2); max-width: 32em; }
.about .h2 { font-size: clamp(40px, 4.5vw, 64px); }
.points { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.point { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.point h3 { font-size: 19px; }
.point p { color: var(--fg-3); font-size: 15px; }

/* Partners */
.partners { background: var(--orange); color: var(--bg); }
.partners .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: 72px; }
.partners .h2 { font-size: clamp(40px, 4.5vw, 64px); }
.partners-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.partners-text p { font-size: 18px; max-width: 34em; }
.partners-contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.partners-contact a.mail { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--bg); overflow-wrap: anywhere; }

/* Footer */
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-block: 48px; font-size: 14px; color: var(--fg-3); }
.footer .wordmark .m { font-size: 14px; }
.footer .wordmark .g { font-size: 21px; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--fg-2); }
.footer nav a:hover { color: var(--fg); }

/* Game page */
.game-hero { background: var(--ww); color: var(--bg); position: relative; overflow: hidden; }
.game-hero a { color: var(--bg); }
.game-hero a.badge, .game-hero a.badge:hover { color: #fff; }
.game-hero .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 56px 64px; }
.game-hero-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.back { font-size: 14px; font-weight: 600; }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.title-row img { width: clamp(88px, 10vw, 128px); height: clamp(88px, 10vw, 128px); border-radius: 22%; box-shadow: 0 0 0 3px var(--bg); flex: none; }
.title-row h1 { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 7vw, 96px); line-height: 0.9; text-transform: uppercase; }
.title-row p { font-size: clamp(17px, 1.6vw, 21px); font-weight: 600; }
.game-hero .badge { height: 56px; padding: 0 20px; }
.game-hero .badge b { font-size: 20px; }
.facts-box { flex: 1 1 340px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--bg); border-radius: 18px; overflow: hidden; }
.facts-box div { padding: 16px 20px; }
.facts-box div:nth-child(odd) { border-right: 2px solid var(--bg); }
.facts-box div:nth-child(-n+2) { border-bottom: 2px solid var(--bg); }
.facts-box dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.facts-box dd { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.3; }
.trailer { width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; background: var(--ww); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.trailer img { width: 34%; max-width: 360px; }
.game-about { flex-direction: row !important; flex-wrap: wrap; gap: 48px 72px !important; }
.game-about-text { flex: 1.2 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.game-about-text p { color: var(--fg-2); max-width: 34em; }
.game-about .h2 { font-size: clamp(40px, 4vw, 56px); }
.features { flex: 1 1 380px; min-width: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features li { display: flex; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.features li svg { flex: none; }
.features span span { color: var(--fg-2); }
.info { background: var(--surface-2); border-top: 1px solid #222226; }
.info .wrap { padding-block: 56px; gap: 20px; }
.label { font-size: 15px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.info dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 32px; }
.info dt { font-size: 13px; color: var(--fg-3); }
.info dd { margin: 0; font-weight: 600; }
.related { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.related a { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; color: var(--fg); text-decoration: none; transition: border-color .15s; }
.related a:hover { border-color: #44444C; color: var(--fg); }
.related img { width: 64px; height: 64px; border-radius: 15px; flex: none; }
.related span { display: flex; flex-direction: column; }
.related small { color: var(--fg-3); font-size: 14px; }

/* 404 */
.notfound .wrap { padding-block: 120px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .badge, .card, .tile img, .related a { transition: none; }
  .btn:hover, .tile:hover img { transform: none; }
}
