/* Aze Online website. Same look as the in-game hub: dark translucent panels,
   gold titles, white rounded borders, AdvoCut pixel font on buttons. */

@font-face {
    font-family: AdvoCut;
    src: url('/fonts/advocut-webfont.woff') format('woff');
    font-display: swap;
}

:root {
    --bg: #0b0d0b;
    --bg-soft: #141814;
    --panel: rgb(10 12 10 / 72%);
    --panel-solid: #121512;
    --line: rgb(255 255 255 / 14%);
    --border: #fff;
    --gold: #fcda5c;
    --gold-deep: #c9a23a;
    --text: #ece9e1;
    --muted: #a9a49a;
    --danger: #ff6b6b;
    --ok: #7ddc7d;
    --radius: 10px;
    --pixel: AdvoCut, 'Courier New', monospace;
    --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --header-h: 64px;
    --gutter: 16px;
    --max: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1,
h2,
h3 {
    margin: 0 0 0.5em;
    color: var(--gold);
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 0 rgb(0 0 0 / 55%);
}

h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.4rem, 3.6vw, 2rem);
}

h3 {
    font-size: 1.15rem;
}

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.section {
    padding: 56px 0;
}

.section-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.section-title h2 {
    margin: 0;
}

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

.hidden {
    display: none !important;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgb(8 10 8 / 88%);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .container {
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand img {
    height: 44px;
    width: auto;
}

.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.nav a {
    padding: 8px 12px;
    color: var(--text);
    font-family: var(--pixel);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
    color: var(--gold);
    background: rgb(255 255 255 / 6%);
}

.nav .nav-play {
    color: #1b1503;
    background: var(--gold);
}

.nav .nav-play:hover {
    color: #1b1503;
    background: #ffe78a;
}

.header-tools {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.lang-switch {
    padding: 6px 8px;
    color: var(--text);
    font-family: var(--pixel);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentcolor;
}

@media (width <= 860px) {
    .menu-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 10px var(--gutter) 18px;
        background: rgb(8 10 8 / 97%);
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.2s ease;
    }

    .nav.open {
        transform: translateY(0);
    }

    .nav a {
        padding: 12px;
        font-size: 1.05rem;
    }
}

/* ---------- Buttons & panels ---------- */

.btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 22px;
    color: #eee;
    font-family: var(--pixel);
    font-size: 1rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    background: rgb(255 255 255 / 10%);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
    text-decoration: none;
    background: rgb(255 255 255 / 18%);
    border-color: var(--gold);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-gold {
    color: #1b1503;
    background: var(--gold);
    border-color: var(--gold);
}

.btn-gold:hover {
    background: #ffe78a;
}

.btn-lg {
    min-height: 58px;
    padding: 14px 34px;
    font-size: 1.25rem;
}

.btn-block {
    width: 100%;
}

.panel {
    background: var(--panel);
    border: 2px solid rgb(255 255 255 / 85%);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
}

.panel-pad {
    padding: 22px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: min(78vh, 720px);
    padding: 48px var(--gutter) 64px;
    text-align: center;
    background: var(--bg);
    overflow: hidden;
}

/* The screenshot is 1290x840 at its real size: capped to that width and the
   hero is never taller, so "cover" only ever shrinks it. Pixel art scaled up
   looks smeared, so it is never enlarged. */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    max-width: 1290px;
    margin: 0 auto;
    background: url('/img/hero.webp') center / cover no-repeat;
    image-rendering: pixelated;
}

@media (width > 1290px) {
    .hero::before {
        mask-image: linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
    }
}

.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 140px;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: min(560px, 86vw);
    height: auto;
    filter: drop-shadow(0 8px 18px rgb(0 0 0 / 70%));
}

.hero-tagline {
    max-width: 640px;
    margin: 18px auto 28px;
    font-size: clamp(1.05rem, 2.6vw, 1.3rem);
    text-shadow: 0 2px 6px rgb(0 0 0 / 80%);
}

.hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hero-note {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (width <= 600px) {
    .hero {
        min-height: 70vh;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 340px;
    }
}

/* ---------- Features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 16px;
}

.feature {
    padding: 20px;
}

.feature-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.feature h3 {
    margin-top: 12px;
}

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

/* ---------- Screenshots ---------- */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 12px;
}

.gallery button {
    padding: 0;
    background: none;
    border: 2px solid rgb(255 255 255 / 60%);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
}

.gallery img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery button:hover img {
    transform: scale(1.04);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    background: rgb(0 0 0 / 88%);
    cursor: zoom-out;
}

.lightbox img {
    max-height: 90vh;
    border: 2px solid #fff;
    border-radius: var(--radius);
}

/* ---------- News ---------- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 16px;
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    color: var(--text);
    text-decoration: none;
}

.news-card:hover {
    text-decoration: none;
    border-color: var(--gold);
}

.news-date {
    color: var(--muted);
    font-family: var(--pixel);
    font-size: 0.85rem;
}

.news-card h3 {
    margin: 6px 0 10px;
}

.news-card p {
    margin: 0 0 14px;
    color: var(--muted);
}

.news-card .read-more {
    margin-top: auto;
    color: var(--gold);
    font-family: var(--pixel);
}

.article {
    padding: 24px;
    margin-bottom: 18px;
}

.article-body ul {
    padding-left: 1.2em;
}

.article-body li {
    margin: 4px 0;
}

.article-body figure {
    margin: 16px 0;
}

.article-body img {
    max-width: min(100%, 420px);
    border-radius: 8px;
}

/* ---------- Community ---------- */

.community {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px;
}

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

/* ---------- Page header (inner pages) ---------- */

.page-hero {
    padding: 56px 0 28px;
    background:
        linear-gradient(to bottom, rgb(11 13 11 / 55%), var(--bg)),
        linear-gradient(to right, var(--bg), transparent 20%, transparent 80%, var(--bg)),
        url('/img/hero.webp') center / auto no-repeat var(--bg);
    image-rendering: pixelated;
    border-bottom: 1px solid var(--line);
}

.page-hero p {
    margin: 0;
    color: var(--muted);
}

/* ---------- Forms ---------- */

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 460px;
    margin: 0 auto;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.field label {
    color: var(--muted);
    font-size: 0.9rem;
}

.field input,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: #2b2b2b;
    font-family: inherit;
    font-size: 1rem;
    background: #e6cfa1;
    border: none;
    border-radius: 6px;
}

.divider {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.message {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.message.error {
    color: var(--danger);
}

.message.ok {
    color: var(--ok);
}

.google-slot {
    display: flex;
    flex-direction: row;
    justify-content: center;
    min-height: 44px;
}

/* ---------- Account ---------- */

.account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (width >= 900px) {
    .account-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
}

.kv {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    margin: 0;
}

.kv dt {
    color: var(--muted);
}

.kv dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* ---------- Store ---------- */

.store-bar {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 18px;
}

.store-bar .field {
    flex: 1 1 240px;
    margin: 0;
}

.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 16px;
}

/* Pack card: the pack art (which already shows the Azura amount) fills the
   top, then the name, the description, the price and the button. */
.pack {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    text-align: center;
}

.pack-art {
    width: 100%;
    height: auto;
    aspect-ratio: 562 / 485;
    object-fit: contain;
    background: #0d100d;
    border-bottom: 1px solid var(--line);
}

.pack-badge {
    align-self: center;
    margin: 0 0 10px;
    padding: 4px 12px;
    color: #1b1503;
    font-family: var(--pixel);
    font-size: 0.8rem;
    background: var(--gold);
    border-radius: 999px;
}

.pack-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.pack h3 {
    margin: 0 0 6px;
}

.pack p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.pack .price {
    margin: auto 0 12px;
    font-size: 1.45rem;
    font-weight: 800;
}

.pack .btn {
    width: 100%;
}

.notice {
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    background: rgb(255 255 255 / 4%);
}

/* ---------- Footer ---------- */

.site-footer {
    margin-top: 40px;
    padding: 36px 0 24px;
    background: #070807;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 24px;
}

.footer-grid h4 {
    margin: 0 0 10px;
    color: var(--gold);
    font-family: var(--pixel);
    font-weight: 400;
}

.footer-grid ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid li {
    margin: 6px 0;
}

.footer-grid a {
    color: var(--muted);
}

.footer-grid a:hover {
    color: var(--gold);
}

.copyright {
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.spinner {
    width: 28px;
    height: 28px;
    margin: 24px auto;
    border: 3px solid rgb(255 255 255 / 20%);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Legal pages ---------- */

.legal h3 {
    margin-top: 26px;
}

.legal p,
.legal li {
    color: var(--text);
}

/* ---------- In-app browser banner (Messenger, Facebook…) ---------- */

.inapp-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px var(--gutter);
    text-align: center;
    background: #2a2208;
    border-bottom: 2px solid var(--gold);
}

.inapp-banner p {
    margin: 0;
    max-width: 560px;
}

/* "Mobile? Try our app" under the hero buttons. */
.hero-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 18px;
    padding: 10px 16px;
    background: rgb(0 0 0 / 45%);
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: var(--radius);
}

.hero-mobile span {
    font-family: var(--pixel);
    color: var(--gold);
}

.btn-sm {
    min-height: 38px;
    padding: 6px 16px;
    font-size: 0.92rem;
}

/* Pixel art screenshots stay crisp when scaled (and when zooming on a phone). */
.gallery img,
.lightbox img {
    image-rendering: pixelated;
}
