:root {
    --primary-orange: #a74700;
    --text-dark: #1a1a1a;
    --card-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #faf7ef;
    color: var(--text-dark);
    -webkit-tap-highlight-color: transparent;
}

/* --- Header Section --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fffaf1;
    border-bottom: 1px solid #eaddc6;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-orange);
}

.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    border-radius: 2px;
}

/* --- Dropdown Menu Panel --- */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    width: 230px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    padding: 4px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f6f6f6;
    transition: background 0.2s;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:active {
    background-color: #f9f9f9;
}

/* --- Section Header Titles --- */
.section-header {
    text-align: center;
    margin: 40px 0 20px;
}

.section-header h2 {
    color: var(--primary-orange);
    font-size: 32px;
    font-weight: 800;
}

.section-header p {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    margin-top: -2px;
}

/* --- Game Rates List --- */
.rates-list {
    max-width: 450px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rate-card {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f3f3f3;
}

.rate-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 16px;
}

.arrow-icon {
    color: var(--primary-orange);
    font-size: 18px;
}

.rate-right {
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 16px;
}

/* --- Available Games Section --- */
.games-list {
    max-width: 450px;
    margin: 0 auto;
    padding: 0 15px 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-card {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f3f3f3;
}

.game-details h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
}

.game-number {
    font-size: 15px;
    color: #444;
    margin: 4px 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.game-chart-link {
    color: #865416;
    font-size: 12px;
    text-decoration: none;
    border-bottom: 1px dashed #865416;
    font-weight: 600;
    display: inline-block;
}

/* --- Footer Section --- */
footer {
    background-color: #f3e9d5;
    color: #422819;
    text-align: center;
    padding: 45px 20px 35px;
    position: relative;
}

.footer-logo-container {
    margin: 0 auto 25px;
    max-width: 100px;
}

.footer-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.age-warning {
    font-size: 14px;
    margin-bottom: 25px;
    padding: 0 10px;
    line-height: 1.5;
    font-weight: 500;
}

.company-address {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.footer-desc {
    max-width: 65ch;
    margin-inline: auto;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.95;
    padding: 0 5px;
    text-align: center;
}

.footer-divider {
    border: none;
    border-top: 1px solid #d5c1a4;
    margin-bottom: 20px;
}

.copyright {
    font-size: 14px;
    font-weight: 500;
}


[hidden] {
    display: none !important;
}

a:focus-visible,
button:focus-visible,
.gallery-track:focus-visible,
.home-faq summary:focus-visible {
    outline: 3px solid #176647;
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 101;
    left: 1rem;
    top: 1rem;
    padding: .6rem 1rem;
    background: #fff;
    color: #171711;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: clamp(1rem, 4vw, 1.4rem);
    text-decoration: none;
}

.menu-icon {
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

header:has(.menu-icon[hidden]) {
    flex-wrap: wrap;
}

.menu-icon[hidden] + .dropdown-menu {
    position: static;
    flex-flow: row wrap;
    width: auto;
    box-shadow: none;
}


.header-logo-img,
.footer-logo-img {
    object-fit: contain;
    mix-blend-mode: multiply;
}

.promo {
    width: calc(100% - 2rem);
    max-width: 1120px;
    margin: clamp(1rem, 3vw, 2rem) auto;
    border: 1px solid #e8e2d5;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.promo-visual {
    display: block;
}

.promo-visual img,
.promo-image {
    display: block;
    width: 100%;
    height: auto;
}

.promo-copy {
    padding: .85rem clamp(.85rem, 3vw, 1.5rem);
    border-top: 1px solid #eee7da;
}

.promo h1,
.promo h2 {
    color: #703500;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    line-height: 1.3;
}

.promo-copy p {
    margin-top: .35rem;
    font-size: .9rem;
    color: #564b3e;
}

.promo-copy p a,
.home-faq a {
    color: #166542;
}

.promo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: .55rem;
}

.promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .55rem .95rem;
    border: 1px solid #166542;
    border-radius: 9px;
    background: #166542;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.promo-button-secondary {
    background: transparent;
    color: #166542;
}

.promo-button:hover {
    background: #104c33;
    color: #fff;
}

.home-guide,
.promo-gallery {
    width: calc(100% - 2rem);
    max-width: 1120px;
    margin: clamp(1rem, 3vw, 2rem) auto;
}

.home-guide {
    padding: .95rem clamp(.9rem, 3vw, 1.5rem);
    border-inline-start: 3px solid #166542;
    border-radius: 10px;
    background: #fffdf8;
}

.home-guide h2 {
    color: #703500;
    font-size: clamp(1rem, 3vw, 1.25rem);
    line-height: 1.35;
}

.home-guide p {
    max-width: 65ch;
    margin-top: .4rem;
    color: #564b3e;
    font-size: .875rem;
    line-height: 1.55;
}

.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .75rem;
}

.gallery-controls button {
    min-height: 44px;
    padding: .45rem .8rem;
    border: 1px solid #dacdb8;
    border-radius: 9px;
    background: #fff;
    color: #703500;
    font-size: .875rem;
    font-weight: 700;
    cursor: pointer;
}

.gallery-controls button[aria-pressed="true"] {
    background: #166542;
    border-color: #166542;
    color: #fff;
}

.gallery-track {
    position: relative;
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scrollbar-color: #ae8f65 #faf7ef;
    scroll-snap-type: x mandatory;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    width: 100%;
    margin: 0;
    scroll-snap-align: start;
}

.gallery-slide .promo-image {
    aspect-ratio: 1440 / 683;
    object-fit: contain;
    background: #fff;
}

.result-section,
.home-faq {
    scroll-margin-top: 85px;
}

.result-section .section-header {
    margin-inline: 1rem;
}

.result-section h2 {
    font-size: clamp(1.25rem, 4vw, 2rem);
}

.result-section .games-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    max-width: 1120px;
    padding: 0 0 1rem;
    width: calc(100% - 2rem);
}

.result-refresh {
    margin-top: .65rem;
    cursor: pointer;
}

.result-refresh:disabled {
    opacity: .65;
    cursor: wait;
}

.home-faq {
    width: calc(100% - 2rem);
    max-width: 760px;
    margin: 2rem auto 2.5rem;
}

.home-faq h2 {
    margin-bottom: .65rem;
    color: #703500;
    font-size: clamp(1.15rem, 3vw, 1.5rem);
}

.home-faq details {
    margin-bottom: .5rem;
    padding: 0 1rem;
    background: #fff;
    border: 1px solid #e8e2d5;
    border-radius: 10px;
}

.home-faq summary {
    padding: .75rem 0;
    font-weight: 600;
    cursor: pointer;
}

.home-faq details p {
    padding-bottom: .85rem;
    font-size: .9rem;
    color: #564b3e;
}
