/*
Theme Name: Aviatorjáték
Description: Magyar crash játékkalauz, játékkatalógus és saját, virtuális pontos szorzógyakorló.
Version: 1.6.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aviatorjatek
*/

@font-face {
    font-family: "DM Sans";
    src: url("assets/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "DM Sans";
    src: url("assets/dm-sans-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
    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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("assets/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
    font-family: "Barlow Condensed";
    src: url("assets/barlow-condensed-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    --ink: #17222b;
    --subtle: #525c62;
    --paper: #f7f3ec;
    --white: #fffdf9;
    --line: #ded5c9;
    --accent: #8b322d;
    --accent-dark: #692322;
    --deck: #1b2b38;
    --warm: #e9b88c;
    --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    --body: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body.aj-site {
    background: var(--paper);
    color: var(--ink);
    font: 400 1rem/1.6 var(--body);
    margin: 0;
    overflow-wrap: break-word;
}
a { color: var(--accent-dark); text-underline-offset: .22em; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
h1, h2, h3 {
    font: 700 1em/1.02 var(--display);
    margin: 0 0 .38em;
}
h1 { font-size: clamp(3.2rem, 6.2vw, 5.65rem); }
h2 { font-size: clamp(2.05rem, 4.2vw, 3.3rem); }
h3 { font-size: 1.9rem; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid #a14436; outline-offset: 4px; }
.site-wrap { width: min(100% - 64px, 1240px); margin-inline: auto; }
.skip-link {
    position: fixed;
    z-index: 100000;
    inset: 12px auto auto 12px;
    padding: 10px 16px;
    background: var(--white);
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: .88rem; color: var(--subtle); }

.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-row { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font: 700 1.9rem/1 var(--display);
    letter-spacing: .025em;
    white-space: nowrap;
}
.site-brand strong { color: var(--accent); }
.site-brand small { font-size: .56em; letter-spacing: .01em; margin-left: 2px; }
.brand-sign { position: relative; width: 25px; height: 25px; border: 1px solid var(--accent); transform: rotate(-12deg); flex: 0 0 25px; }
.brand-sign::before, .brand-sign::after {
    content: "";
    position: absolute;
    inset: 12px 4px auto;
    height: 2px;
    background: var(--accent);
    transform: rotate(-42deg);
}
.brand-sign::after { inset: 8px 6px auto auto; width: 7px; transform: rotate(43deg); }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(10px, 2vw, 26px); }
.site-nav a { color: var(--ink); font-size: .95rem; font-weight: 620; text-decoration: none; }
.site-nav a:is(:hover, [aria-current="page"]) { text-decoration: underline; }
.site-nav .header-action {
    padding: 8px 15px;
    border: 1px solid var(--accent);
    color: var(--accent-dark);
    text-decoration: none;
}
.site-nav .header-action:is(:hover, [aria-current="page"]) { background: var(--accent); color: var(--white); text-decoration: none; }
.nav-toggle { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button, .nav-toggle, .quiet-button {
    font: 700 .94rem/1.3 var(--body);
    cursor: pointer;
}
.button {
    display: inline-flex;
    padding: 12px 17px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    text-decoration: none;
    border: 1px solid transparent;
}
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: var(--accent-dark); color: var(--white); }
.button-secondary { background: var(--white); color: var(--ink); border-color: #bdb4a8; }
.button-secondary:hover { background: #f2e9de; color: var(--ink); }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: var(--warm); color: var(--ink); }
.button-ghost { color: var(--white); border-color: #81919c; }
.button-ghost:hover { background: #314451; color: var(--white); }
.button:disabled, select:disabled, input:disabled, .quiet-button:disabled { opacity: .54; cursor: default; }
.quiet-link { font-weight: 690; }
.link-arrow {
    display: inline-block;
    position: relative;
    width: .62em;
    height: .62em;
    margin-inline-start: .5em;
    flex-shrink: 0;
    vertical-align: .11em;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
}
.link-arrow::after {
    content: "";
    position: absolute;
    left: .015em;
    bottom: 0;
    width: .77em;
    height: 1.5px;
    background: currentColor;
    transform: rotate(-45deg);
    transform-origin: left center;
}
.quiet-button { border: 0; color: var(--accent-dark); background: transparent; text-decoration: underline; text-underline-offset: .22em; min-height: 44px; padding: 6px; }

.hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(32px, 6vw, 76px);
    align-items: center;
    gap: clamp(24px, 5vw, 64px);
}
.hero h1 {
    font-size: clamp(4rem, 7.6vw, 7rem);
    line-height: .9;
    letter-spacing: -.025em;
    margin: 0 0 .24em;
}
.hero h1 em { display: block; color: var(--accent); font-style: normal; }
.hero-copy p, .lead {
    max-width: 58ch;
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: var(--subtle);
}
.hero-copy p { margin-bottom: 1.45rem; }
.hero-photo {
    height: clamp(310px, 37vw, 500px);
    margin: 0;
    background: var(--deck);
    border: 1px solid #38474d;
    position: relative;
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; }
.hero-photo::after { content: ""; position: absolute; pointer-events: none; inset: 9px; border: 1px solid rgba(255,255,255,.31); }

.home-section { padding-block: clamp(36px, 5.8vw, 72px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.section-heading h2 { margin-bottom: 4px; }
.section-heading p { margin: 0; color: var(--subtle); }
.section-heading > a { margin-bottom: 5px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.game-card, .guide-card {
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.game-card { border-top: 3px solid var(--accent); }
.game-card[data-game-group="step"] { border-top-color: #785924; }
.game-card[data-game-group="drop"] { border-top-color: #35606c; }
.game-card[data-game-group="tiles"] { border-top-color: #4e6857; }
.game-card[data-game-group="landing"] { border-top-color: #5b577f; }
.game-card-art { margin-bottom: 14px; background: var(--deck); }
.game-card-art img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.game-card h3 a, .guide-card h3 a { color: var(--ink); text-decoration: none; }
.game-card h3 a:hover, .guide-card h3 a:hover { text-decoration: underline; }
.game-card p, .guide-card p { color: var(--subtle); font-size: .94rem; }
.game-card > a, .guide-card > a { align-self: start; margin-top: auto; }
.game-card-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; color: var(--subtle); font-size: .8rem; }
.game-card-top span:first-child { font-weight: 750; }
.game-type { font-size: .76rem; border-bottom: 1px solid var(--line); }
.practice-promo { background: var(--deck); color: var(--white); padding-block: clamp(34px, 5vw, 60px); }
.promo-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 7vw, 90px); align-items: center; }
.promo-layout p { color: #e2dcd2; max-width: 55ch; }
.promo-example { border: 1px solid #78838a; background: #223442; padding: 17px 22px; font-variant-numeric: tabular-nums; }
.promo-example div { display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: space-between; align-items: baseline; padding-block: 9px; }
.promo-example div + div { border-top: 1px solid #66737b; }
.promo-example strong { color: var(--warm); font-size: 1.15rem; }
.home-editorial { padding-bottom: 48px; }

.inner-page { padding-bottom: clamp(44px, 7vw, 88px); min-height: 60vh; }
.breadcrumbs { display: flex; gap: 6px 9px; flex-wrap: wrap; align-items: baseline; color: var(--subtle); margin-block: 24px; font-size: .88rem; }
.breadcrumbs > * + *::before { content: "›"; display: inline-block; color: var(--subtle); margin-right: 9px; }
.page-heading { padding-block: 18px clamp(22px, 4vw, 42px); }
.page-heading h1 { max-width: 19ch; margin-bottom: .18em; }
.page-heading .lead { margin-bottom: 0; }
.page-label { color: var(--accent-dark); font-size: .9rem; font-weight: 650; margin-bottom: .6rem; }
.prose { max-width: 76ch; font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); margin: 1em 0 .35em; }
.prose h3 { font-size: 1.7rem; }
.prose li + li { margin-top: .42em; }
.prose img { display: block; }
.page-prose { margin-top: 34px; }
.page-prose > :first-child { margin-top: 0; }
.page-next { margin-top: 24px; }
.source-panel { max-width: 76ch; padding: 20px; margin-top: 32px; border: 1px solid var(--line); background: var(--white); }
.source-panel h2, .demo-panel h2 { font-size: 2rem; }
.source-panel ul { padding-left: 21px; margin: 0; }
.source-panel li + li { margin-top: 6px; }
.demo-panel { background: var(--white); padding: clamp(16px, 3vw, 29px); border: 1px solid var(--line); }
.demo-panel p { color: var(--subtle); }
.slots-demo { margin-block: 16px; min-width: 0; }
.slots-demo iframe { max-width: 100%; }
.slots-demo .slotslaunch-embed--manual { min-height: 0 !important; }

.catalog-controls, .calc-inputs { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: 12px 20px; }
.catalog-controls {
    grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr));
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--white);
}
.catalog-results {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-block: 5px;
}
.catalog-status { margin: 0; color: var(--subtle); }
.catalog-results .button { min-height: 40px; padding-block: 6px; }
.empty-game { padding: 16px; border-inline-start: 3px solid var(--accent); background: #efe8dc; }
label { font-size: .9rem; font-weight: 690; }
label input, label select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 45px;
    margin-top: 6px;
    padding: 8px 11px;
    border: 1px solid #bdb4a8;
    background: var(--white);
    color: var(--ink);
    font: 500 1rem/1.3 var(--body);
    border-radius: 0;
}
.data-scroll {
    max-width: 100%;
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--line);
}
.data-scroll table { width: 100%; border-collapse: collapse; min-width: 595px; font-size: .94rem; }
.data-scroll caption { text-align: left; padding: 12px 16px; font-weight: 750; }
.data-scroll :is(th, td) { text-align: left; padding: 10px 13px; border-top: 1px solid var(--line); vertical-align: top; }
.data-scroll thead { background: var(--deck); color: var(--white); }
.data-scroll tbody tr:nth-child(even) { background: #f5efe6; }
.compare-game { display: flex; align-items: center; gap: 10px; }
.compare-game img { width: 58px; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.practice-shell, .calculator-shell { padding: clamp(16px, 3vw, 28px); background: var(--white); border: 1px solid var(--line); }
.practice-shell h2, .calculator-shell h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.practice-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 14px; }
.instrument {
    display: flex;
    min-height: 295px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 4vw, 44px);
    color: var(--white);
    background:
        repeating-linear-gradient(0deg, #ffffff09 0, #ffffff09 1px, transparent 1px, transparent 45px),
        repeating-linear-gradient(90deg, #ffffff09 0, #ffffff09 1px, transparent 1px, transparent 45px),
        var(--deck);
}
.instrument-value { display: grid; gap: 7px; }
.instrument-value strong { font: 700 clamp(4.4rem, 11vw, 8.1rem)/.95 var(--display); color: var(--warm); }
.instrument[data-state="stopped"] .instrument-value strong { color: #f0aaa2; }
.instrument[data-state="closed"] .instrument-value strong { color: #bde1c3; }
.instrument-track { height: 8px; background: #50606b; margin-top: 26px; }
.instrument-track span { display: block; height: 100%; width: 0; background: var(--warm); }
.practice-actions, .calc-inputs { min-inline-size: 0; margin: 0; padding: 14px; border: 1px solid var(--line); background: var(--paper); }
.practice-actions { display: grid; align-content: center; gap: 9px; }
.practice-actions legend { padding-inline: 5px; font-weight: 750; }
.practice-actions .balance { margin: 0 0 3px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.practice-actions .balance strong { font-size: 1.2rem; }
.tool-status { margin: 14px 0 0; background: #f0e8da; border-inline-start: 3px solid var(--accent); padding: 11px 13px; }
.practice-history { margin-top: 16px; }
.calc-inputs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.calc-result { margin-bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-result > div { padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.calc-result dt { color: var(--subtle); font-size: .88rem; }
.calc-result dd { margin: 4px 0 0; font: 700 2rem/1.15 var(--display); font-variant-numeric: tabular-nums; }

.site-footer { color: #ede9df; background: #151f28; padding-block: 38px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1fr; gap: 18px 24px; }
.site-footer .site-brand { color: var(--white); margin-bottom: 8px; }
.site-footer .site-brand strong { color: var(--warm); }
.site-footer a, .site-footer a:hover { color: var(--white); }
.site-footer p { margin-bottom: 0; font-size: .9rem; }
.footer-links { display: grid; align-content: start; justify-items: start; gap: 6px; }

@media (max-width: 1020px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
    .header-row { flex-wrap: wrap; min-height: 65px; padding-block: 9px; gap: 8px 14px; }
    .menu-ready .nav-toggle { display: inline-flex; background: var(--white); color: var(--ink); border: 1px solid var(--line); padding: 9px 14px; }
    .site-nav { flex-basis: 100%; gap: 4px; align-items: start; flex-direction: column; }
    .site-nav a { padding: 6px 0; }
    .menu-ready .site-nav:not(.is-open) { display: none; }
}
@media (max-width: 820px) {
    .site-wrap { width: min(100% - 38px, 1240px); }
    .hero { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
    .hero h1 { font-size: clamp(3.9rem, 12vw, 6.15rem); }
    .hero-photo { height: clamp(220px, 58vw, 460px); }
    .promo-layout, .practice-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .site-wrap { width: calc(100% - 30px); }
    .card-grid, .footer-grid, .catalog-controls, .calc-inputs, .calc-result { grid-template-columns: minmax(0, 1fr); }
    .game-card, .guide-card { padding: 16px; }
    .hero h1 { font-size: clamp(3.45rem, 12vw, 4.3rem); }
    .hero-photo { height: 220px; }
    .instrument { min-height: 200px; }
}

.demo-card h2 { font-size: 1.92rem; }
.demo-card h2 a { color: var(--ink); text-decoration: none; }
.demo-card h2 a:hover { text-decoration: underline; }
.slots-demo-status:empty { display: none; }
.slots-demo-status { margin: 9px 0; }
.game-demo-panel { scroll-margin-top: 22px; }
.slots-player {
    --slots-height: clamp(420px, 66vh, 650px);
    --slots-height: clamp(420px, 66dvh, 650px);
    background: var(--deck);
    border: 1px solid var(--line);
    margin-top: 13px;
}
.slots-fullscreen {
    display: flex;
    margin: 8px 8px 8px auto;
}
.slots-player:not(.is-playing) .slots-fullscreen { display: none; }
.slots-player-poster, .game-demo-cover {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--deck);
}
.slots-player-poster { height: var(--slots-height); }
.slots-player-poster img { display: block; width: min(100%, 820px); height: 100%; object-fit: contain; }
.game-demo-cover { margin-block: 14px; }
.game-demo-cover img { display: block; width: min(100%, 620px); height: auto; }
.slots-player-frame iframe {
    display: block;
    width: 100%;
    height: var(--slots-height);
    border: 0;
}
.slots-player:fullscreen {
    display: flex;
    flex-direction: column;
    border: 0;
    margin: 0;
}
.slots-player:fullscreen .slots-player-frame { flex: 1; min-height: 0; }
.slots-player:fullscreen iframe { height: 100%; }

.catalog-inline-filter {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 9px;
}
.catalog-inline-filter input {
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 0;
    accent-color: var(--accent);
}
.catalog-demo-player {
    margin-bottom: 18px;
    scroll-margin-top: 22px;
}
.catalog-demo-header, .demo-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.catalog-demo-header h2 { margin: 0; }
.catalog-demo-detail { margin: 12px 0 0; }
.demo-card-actions { justify-content: flex-start; margin-top: auto; }
@media (max-width: 520px) {
    .catalog-demo-header .button { min-height: 42px; }
}
