/* The site's own pages (home, privacy). Every game has its own styles. */

:root {
    --bg: #141d2b;
    --surface: #1e2a3a;
    --surface-raised: #26364a;
    --text: #eef2f4;
    --text-muted: #a9b6bf;
    --accent: #ffd23f;
    --accent-text: #1e2a3a;
    --link: #a4f0ff;
    --border: rgba(255, 255, 255, .1);
    /* Trebuchet MS has no Armenian letters: those come from the fonts after it. */
    --font: "Trebuchet MS", "Segoe UI", "Noto Sans Armenian", Sylfaen, Arial, sans-serif;
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font: 16px/1.6 var(--font);
    color: var(--text);
    background: var(--bg);
}

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

.site-header,
main,
.site-footer {
    max-width: 1040px;
    margin: 0 auto;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    padding-bottom: 8px;
}

.lang-switch {
    display: flex;
    padding: 3px;
    background: var(--surface);
    border-radius: 999px;
}

.lang-switch a {
    min-width: 44px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-muted);
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
}

.lang-switch a[aria-current="page"] {
    color: var(--accent-text);
    background: var(--accent);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}

.logo__name {
    font-size: 22px;
    font-weight: bold;
}

/* Hero */

.hero {
    padding: 32px 0 16px;
}

.hero__title {
    margin: 0 0 12px;
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.1;
    color: var(--accent);
}

.hero__text {
    max-width: 600px;
    margin: 0;
    font-size: 18px;
    color: var(--text-muted);
}

.section-title {
    margin: 40px 0 16px;
    font-size: 24px;
}

/* Games */

.games__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.games__grid > li {
    display: flex;
}

.game-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform .15s ease, border-color .15s ease;
}

.game-card:not(.game-card--soon):hover {
    transform: translateY(-3px);
    border-color: rgba(255, 210, 63, .5);
}

.game-card__cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.game-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 20px 20px;
}

.game-card__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.25;
}

.game-card__title a {
    color: var(--text);
    text-decoration: none;
}

.game-card__text {
    margin: 0 0 14px;
    color: var(--text-muted);
}

.game-card--soon {
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 24px;
    text-align: center;
    background: transparent;
    border: 2px dashed var(--border);
}

.game-card__soon-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.tag {
    padding: 2px 10px;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-muted);
    background: var(--surface-raised);
    border-radius: 999px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: auto;
    padding: 0 24px;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-text);
    text-decoration: none;
    background: var(--accent);
    border-radius: 999px;
}

.button:hover {
    filter: brightness(1.08);
}

/* Install help */

.install > p {
    max-width: 640px;
    margin: 0 0 16px;
    color: var(--text-muted);
}

.install__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.install__step {
    padding: 16px 20px;
    background: var(--surface);
    border-radius: var(--radius);
}

.install__step h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: var(--accent);
}

.install__step p {
    margin: 0;
    color: var(--text-muted);
}

/* Footer */

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 48px;
    padding-top: 24px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    font-size: 14px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* Text pages (privacy) */

.text-page {
    max-width: 720px;
}

.text-page h1 {
    margin: 24px 0 4px;
    color: var(--accent);
    line-height: 1.2;
}

.text-page h2 {
    margin-top: 32px;
    font-size: 20px;
    color: var(--accent);
}

.text-page .updated {
    margin-top: 0;
    color: var(--text-muted);
}

.lead {
    font-size: 18px;
}

.benefits {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.benefits li {
    margin-bottom: 6px;
}

.benefits span {
    display: inline-block;
    width: 28px;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 8px;
}

.toc a {
    padding: 6px 14px;
    font-weight: bold;
    text-decoration: none;
    background: var(--surface);
    border-radius: 999px;
}

.guide {
    scroll-margin-top: 16px;
}

.guide h3 {
    margin: 20px 0 8px;
    font-size: 17px;
}

.steps {
    margin: 0;
    padding-left: 24px;
}

.steps li {
    margin-bottom: 10px;
    padding-left: 4px;
}

.note {
    padding: 12px 16px;
    color: var(--text-muted);
    background: var(--surface);
    border-radius: 12px;
}

.inline-icon {
    width: 22px;
    height: 22px;
    vertical-align: -5px;
}

.more-link {
    display: inline-block;
    margin-top: 16px;
    font-weight: bold;
}
