/* Mekina site styles. Studio pages use the quiet shell; each app page themes
   itself with its own "room" through the body.theme-* tokens below. */

@font-face { font-family: Outfit; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/QGYvz_MVcBeNP4NJtEtq-bd35b518eb.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: Outfit; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/assets/QGYvz_MVcBeNP4NJuktqQ4E-6c9b141778.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/Inter-Regular_latin-JLQMKCHE-d25db777cd.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/Inter-Regular_latin-ext-VZDUGU3Q-fbfe881608.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/Inter-Medium_latin-Y3IVPL46-f3197ccdc1.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/Inter-Bold_latin-UCM45LQF-73df5100c5.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #151515;
  --muted: #5a5960;
  --line: #e7e5ec;
  --paper: #ffffff;
  --mist: #f6f5f9;
  --orange: #ed9439;
  --orange-ink: #a85a0b;
  --focus: #9945dd;
  --display: Outfit, Inter, system-ui, sans-serif;
  --text: Inter, system-ui, -apple-system, sans-serif;
  --page: min(1160px, calc(100% - 48px));
  --radius-lg: 28px;
  --radius-md: 16px;
  /* The active room: overridden per app. */
  --room-bg: var(--paper);
  --room-ink: var(--ink);
  --room-muted: var(--muted);
  --room-accent: var(--orange);
  --room-accent-ink: #ffffff;
  --room-link: var(--orange-ink);
  --room-panel: var(--mist);
  --room-line: var(--line);
}
.theme-abseq {
  --room-bg: #fbf7ff;
  --room-accent: #a21cc4;
  --room-link: #8a14a8;
  --room-panel: #f3e9fb;
  --room-line: #eadcf5;
}
.theme-free-kick-fever {
  --room-bg: #13241f;
  --room-ink: #faf0d4;
  --room-muted: #c9c3a8;
  --room-accent: #f0b43c;
  --room-accent-ink: #13241f;
  --room-link: #f0b43c;
  --room-panel: #1b322b;
  --room-line: #2c4a3f;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--room-bg); color: var(--room-ink); font: 17px/1.6 var(--text); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--room-link); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 0.4em; }
h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; }
h3 { font-size: 23px; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.theme-free-kick-fever :focus-visible { outline-color: var(--room-accent); }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { top: 12px; }
.wrap { width: var(--page); margin-inline: auto; }
.lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--room-muted); max-width: 34em; }

/* Studio header */
.site-header { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.site-nav { width: var(--page); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand img { width: 104px; height: auto; }
.site-links { display: flex; align-items: center; gap: 28px; font-family: var(--display); font-weight: 500; font-size: 17px; }
.site-links > a, .apps-menu summary { color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--orange); }
.apps-menu { position: relative; }
.apps-menu summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.apps-menu summary::-webkit-details-marker { display: none; }
.apps-menu summary::after { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.apps-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.apps-dropdown { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 340px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 18px 50px rgb(21 21 21 / 0.12); padding: 8px; display: grid; }
.apps-dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.apps-dropdown a:hover, .apps-dropdown a[aria-current="page"] { background: var(--mist); }
.apps-dropdown img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.apps-dropdown span { display: grid; line-height: 1.3; }
.apps-dropdown small { font-family: var(--text); font-weight: 400; color: var(--muted); font-size: 14px; }
.menu-button { display: none; }

/* App bar: the doorway into an app's room */
.app-bar { background: var(--room-bg); border-bottom: 1px solid var(--room-line); position: sticky; top: 0; z-index: 15; }
.theme-free-kick-fever .app-bar { background: #0f1d19; }
.app-bar-inner { width: var(--page); margin: auto; display: flex; align-items: center; gap: 24px; min-height: 64px; }
.app-id { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); color: var(--room-ink); text-decoration: none; white-space: nowrap; }
.app-id img { width: 36px; height: 36px; border-radius: 9px; }
.app-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.app-tabs a { padding: 8px 12px; border-radius: 999px; color: var(--room-muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.app-tabs a:hover { color: var(--room-ink); }
.app-tabs a[aria-current="page"] { background: var(--room-panel); color: var(--room-ink); }
.app-cta, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border-radius: 999px; background: var(--room-accent); color: var(--room-accent-ink); font: 600 16px var(--display); text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; }
.app-cta.is-soon { background: transparent; color: var(--room-muted); border: 1px solid var(--room-line); font-weight: 500; }
.button.secondary { background: transparent; color: var(--room-ink); border: 1.5px solid var(--room-line); }
.theme-studio .button { background: var(--orange); color: #fff; }

/* Home */
.home-intro { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.home-intro h1 { max-width: 12em; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: clamp(56px, 8vw, 110px); }
.door { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 620px; display: grid; grid-template-rows: auto 1fr; padding: clamp(28px, 4vw, 44px); text-decoration: none; isolation: isolate; }
.door h2 { font-size: clamp(34px, 3.6vw, 48px); margin-bottom: 10px; }
.door p { max-width: 24em; }
.door .meta { font-size: 15px; opacity: 0.8; }
.door-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.door-art { align-self: end; justify-self: center; margin-top: 28px; }
.door-abseq { background: linear-gradient(160deg, #fbf7ff 0%, #f1e3fb 100%); color: var(--ink); }
.door-abseq a { color: #8a14a8; }
.door-abseq .button { background: #a21cc4; color: #fff; }
.door-free-kick-fever { background: #13241f; color: #faf0d4; }
.door-free-kick-fever .button { background: #f0b43c; color: #13241f; }
.door-free-kick-fever .button.secondary { background: transparent; color: #faf0d4; border-color: #3c5c4f; }
.door-abseq .button.secondary { background: transparent; color: var(--ink); border-color: #dcc6ee; }
.door-mark { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 20px; }
.device { width: min(250px, 62vw); border-radius: 38px; border: 8px solid #101010; background: #101010; overflow: hidden; box-shadow: 0 30px 60px rgb(0 0 0 / 0.22); }
.device img, .device video { width: 100%; aspect-ratio: 1179 / 2556; object-fit: cover; }
.device.tilt-left { transform: rotate(-4deg); }
.device.tilt-right { transform: rotate(4deg); }
.studio-note { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }

/* App overview pages */
.app-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: clamp(48px, 8vw, 100px) 0; }
.app-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.app-hero .platforms { color: var(--room-muted); font-size: 15px; margin-top: 16px; }
.hero-art { display: flex; justify-content: center; gap: 0; }
.hero-art .device + .device { margin-left: -60px; margin-top: 70px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--room-line); }
.feature.flip .feature-text { order: 2; }
.feature-text { max-width: 30em; }
.feature-text p { color: var(--room-muted); font-size: 19px; }
.feature .device { justify-self: center; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 8px 0 clamp(48px, 7vw, 90px); }
.fact { background: var(--room-panel); border-radius: var(--radius-md); padding: 22px; }
.fact strong { display: block; font: 700 clamp(30px, 3.4vw, 42px)/1 var(--display); color: var(--room-accent); margin-bottom: 8px; }
.theme-abseq .fact strong { color: var(--room-link); }
.fact span { color: var(--room-muted); font-size: 16px; }
.more { padding: clamp(40px, 6vw, 80px) 0; border-top: 1px solid var(--room-line); }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 28px; margin-top: 28px; }
.more-grid h3 { font-size: 20px; margin-bottom: 6px; }
.more-grid p { color: var(--room-muted); font-size: 16px; margin: 0; }
.closing { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--room-line); }
.closing .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Free Kick Fever: one signature, the game's VHS channel stripe on its hero. */
.theme-free-kick-fever .app-hero h1 { color: #faf0d4; text-shadow: 3px 0 0 rgb(255 77 58 / 0.55), -3px 0 0 rgb(80 170 255 / 0.35); }
.tape-label { display: inline-block; background: #f6efd6; color: #13241f; font: 600 15px var(--display); padding: 6px 14px; border-radius: 4px; border-left: 6px solid #ff4d3a; margin-bottom: 22px; }
.how-to { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 28px 0 0; }
.how-to li { background: var(--room-panel); border-radius: var(--radius-md); padding: 22px; color: var(--room-muted); font-size: 16px; }
.how-to li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--room-accent); color: var(--room-accent-ink); font: 700 17px var(--display); margin-bottom: 12px; }
.how-to strong { display: block; color: var(--room-ink); font: 600 19px var(--display); margin-bottom: 4px; }

/* Documents: help, policies */
.doc-head { width: min(760px, calc(100% - 48px)); margin-inline: auto; padding: clamp(44px, 7vw, 88px) 0 24px; }
.doc-head h1 { font-size: clamp(38px, 5.5vw, 64px); }
.doc-head .lede { margin: 0; }
.prose { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding-bottom: clamp(56px, 8vw, 110px); overflow-wrap: break-word; }
.prose a { overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--room-ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li > p { margin: 0 0 0.4em; }
.prose figure { margin: 1.2em 0 1.6em; }
.prose figure img { border-radius: var(--radius-md); width: 100%; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--room-line); padding: 8px 10px; vertical-align: top; }
.prose.legal { font-size: 16px; }
.prose.legal p strong:only-child { font-family: var(--display); font-size: 19px; }
.note { background: var(--room-panel); border-radius: var(--radius-md); padding: 18px 20px; font-size: 16px; margin: 0 0 1.4em; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Support and contact */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: clamp(44px, 7vw, 88px) 0; align-items: start; }
.faq details { border-top: 1px solid var(--room-line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--room-line); }
.faq summary { cursor: pointer; font: 600 18px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--room-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { color: var(--room-muted); margin: 10px 0 0; font-size: 16px; }
.app-picks { display: grid; gap: 12px; margin-top: 24px; }
.app-pick { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); text-decoration: none; color: var(--ink); }
.app-pick:hover { background: var(--mist); }
.app-pick img { width: 48px; height: 48px; border-radius: 12px; }
.app-pick span { display: grid; line-height: 1.35; }
.app-pick small { color: var(--muted); font-size: 15px; }
.form { display: grid; gap: 6px; background: var(--room-panel); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }
.form h2 { font-size: 28px; margin-bottom: 10px; }
.form label { font-weight: 500; font-size: 15px; margin-top: 8px; }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.theme-free-kick-fever .form input, .theme-free-kick-fever .form textarea, .theme-free-kick-fever .form select { border-color: #3c5c4f; }
.form button { margin-top: 14px; justify-self: start; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--room-accent); color: var(--room-accent-ink); font: 600 17px var(--display); cursor: pointer; }
.theme-studio .form button { background: var(--ink); color: #fff; }
.form button:disabled { opacity: 0.6; cursor: progress; }
.form-status { margin: 8px 0 0; font-weight: 500; }
.form-status:empty { display: none; }
.form-note { font-size: 14px; color: var(--room-muted); margin: 4px 0 0; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #151515; color: #d8d6de; padding: 64px 0 28px; }
.footer-inner { width: var(--page); margin: auto; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.site-footer h2 { font: 600 15px var(--display); color: #fff; margin: 0 0 12px; letter-spacing: 0; }
.site-footer a { display: block; color: #d8d6de; text-decoration: none; padding: 5px 0; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand img { width: 94px; filter: brightness(0) invert(1); opacity: 0.92; margin-bottom: 12px; }
.footer-brand p { font-size: 15px; max-width: 22em; }
.social { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.copyright { width: var(--page); margin: 44px auto 0; font-size: 14px; color: #9a98a3; }

/* 404 */
.lost { padding: clamp(64px, 12vw, 160px) 0; }

@media (max-width: 960px) {
  .doors, .app-hero, .feature, .split, .studio-note { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .door { min-height: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .more-grid, .how-to { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .app-bar-inner { flex-wrap: wrap; gap: 8px 16px; padding: 10px 0; }
  .app-tabs { order: 3; flex-basis: 100%; }
  .app-cta { margin-left: auto; min-height: 40px; padding: 8px 16px; font-size: 15px; }
}
@media (max-width: 640px) {
  :root { --page: calc(100% - 32px); }
  body { font-size: 16px; }
  .site-nav { min-height: 68px; flex-wrap: wrap; }
  .brand img { width: 86px; }
  .menu-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: 500 16px var(--display); color: var(--ink); }
  .site-links { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 12px; }
  .js .site-links:not(.is-open) { display: none; }
  .site-links > a, .apps-menu summary { padding: 12px 0; border-top: 1px solid var(--line); }
  .apps-dropdown { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; }
  .more-grid, .how-to, .facts { grid-template-columns: 1fr; }
  .app-bar .app-cta.is-soon { display: none; }
  .hero-art .device { width: 190px; }
  .hero-art .device + .device { margin-left: -50px; margin-top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
