/* DuAmigo web: values from the design language tokens (Design language v1, dark theme). */

/* Fonts are served from our own site, not from Google, so visitors' addresses never go to Google.
   "latin" holds ç, ö, ü and ı; "latin-ext" holds ğ, ş and İ. */
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-500-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: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/chakra-petch-500-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: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-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: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/chakra-petch-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: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-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: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/chakra-petch-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: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/ibm-plex-sans-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: "IBM Plex Sans"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/ibm-plex-sans-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; }

:root {
    --bg: #0b0f14;
    --surface: #111821;
    --surface-2: #18212c;
    --line: #263241;
    --line-strong: #56687e;
    --ink: #e6edf3;
    --ink-soft: #c9d4e0;
    --ink-muted: #9aa8b8;
    --accent: #b8f34a;
    --on-accent: #0b0f14;
    --shadow-ready: 0 0 0 1px #b8f34a, 0 0 24px rgba(184, 243, 74, 0.35);

    --font-display: "Chakra Petch", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-pill: 999px;

    --page-width: 1120px;
    --gutter: clamp(16px, 4vw, 24px);
    --section-gap: clamp(48px, 6vw, 80px);

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 22px;
}

a { color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p { margin: 0; }

.page { max-width: var(--page-width); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Small capital heading above a group (token "label"). */
.eyebrow {
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}
.eyebrow--muted { color: var(--ink-muted); }

.muted { color: var(--ink-muted); }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.site-logo { display: flex; align-items: center; min-height: 44px; }

.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.lang-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 44px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-muted);
    text-decoration: none;
}
.lang-switch a[aria-current] { background: var(--accent); color: var(--on-accent); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 4vw, 56px); padding-top: clamp(16px, 4vw, 56px); }
.hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.hero__title { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.1; }
.hero__lead { max-width: 520px; font-size: 17px; line-height: 26px; color: var(--ink-soft); }
.hero__games { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }

/* Game cards */
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.5vw, 16px); }
.game-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; }
.game-card__cover {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--line);
}
.game-card__cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-card__cover--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--bg); }
/* The "no-art frame" for games without a cover yet. */
.game-card__cover--none { display: flex; align-items: center; justify-content: center; color: var(--line-strong); }
.game-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.game-card__name { font-size: 15px; line-height: 20px; font-weight: 600; }
.game-card__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.check { display: flex; align-items: center; gap: 6px; }
.check svg { color: var(--accent); flex: none; }

/* Panels */
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }

/* Example match */
.example { flex: 1 1 380px; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.example__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.example__when { font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.slot { border-radius: var(--radius-lg); background: var(--bg); padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-ready); }
.tag {
    align-self: flex-start;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    border-radius: var(--radius-sm);
}
.tag--you { color: var(--on-accent); background: var(--accent); padding: 2px 7px; }
.tag--partner { color: var(--accent); border: 1px solid var(--accent); padding: 1px 6px; }
.slot__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar {
    width: 42px;
    height: 42px;
    flex: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
}
.avatar--you { border: 2px solid var(--accent); color: var(--accent); }
.avatar--partner { border: 2px solid var(--line-strong); background: var(--surface-2); }
.slot__name { display: flex; flex-direction: column; min-width: 0; }
.slot__name strong { font-weight: 600; font-size: 15px; line-height: 20px; }
.slot__name span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.ready {
    font-family: var(--font-display);
    font-size: 12px;
    line-height: 16px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--on-accent);
    background: var(--accent);
    border-radius: var(--radius-md);
    padding: 6px 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 5px 10px;
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-soft);
}
.note { display: flex; gap: 8px; align-items: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.note svg { flex: none; }

/* Sections */
.section { padding-top: var(--section-gap); }
.section__head { display: flex; flex-direction: column; gap: 8px; }
.section__title { font-size: 28px; line-height: 32px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.step { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.step__number { font-family: var(--font-display); font-size: 32px; line-height: 32px; font-weight: 700; color: var(--accent); }
.step__title { font-size: 20px; line-height: 24px; }

.safety { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.safety__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.safety__list { flex: 2 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 24px; }
.safety__item { display: flex; gap: 14px; align-items: flex-start; }
.safety__icon {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.safety__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.safety__text strong { font-weight: 600; }

.cta { padding: clamp(24px, 4vw, 40px) 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

/* Primary button (token "button": capitals, 52px tall). */
.button {
    margin-top: 8px;
    width: 100%;
    max-width: 320px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--accent);
    color: var(--on-accent);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    line-height: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Footer */
.site-footer { margin-top: var(--section-gap); border-top: 1px solid var(--line); }
.site-footer__inner { padding-top: 24px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
.site-footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; line-height: 18px; }
.footer-nav a { display: flex; align-items: center; min-height: 44px; color: var(--ink-muted); }
.site-footer__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* Simple message pages (errors). */
.message { padding-top: var(--section-gap); display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
