:root {
    --wood: url('../images/wood_header.png');
    --stadium: url('../images/stadium_bg.png');
    --accent: #efc315;
    --text: #f2f2f2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto Condensed', sans-serif;
    color: var(--text);
    background: #050505;
    overflow-x: hidden;
}

.site-header {
    position: relative;
    z-index: 40;
}

.top-strip {
    position: relative;
    min-height: 52px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.5)), var(--wood);
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.domain-name {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 2vw, 3.6rem);
    line-height: 1;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.opening-status {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 2px dashed rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #4bb62a 0%, #2b9318 100%);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 1vw, 2.2rem);
    line-height: 1;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.38);
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #88ff45;
    box-shadow: 0 0 7px #88ff45;
}

.opening-status.is-open {
    background: linear-gradient(180deg, #4bb62a 0%, #2b9318 100%);
}

.opening-status.is-open .status-dot {
    background: #88ff45;
    box-shadow: 0 0 7px #88ff45;
}

.opening-status.is-closed {
    background: linear-gradient(180deg, #6b7280 0%, #4b5563 100%);
}

.opening-status.is-closed .status-dot {
    background: #d1d5db;
    box-shadow: 0 0 7px rgba(209, 213, 219, 0.9);
}

.opening-status.is-private {
    background: linear-gradient(180deg, #b7791f 0%, #975a16 100%);
}

.opening-status.is-private .status-dot {
    background: #ffd66b;
    box-shadow: 0 0 7px rgba(255, 214, 107, 0.95);
}

.main-nav {
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.85)), var(--wood);
    background-size: cover;
    background-position: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
}

.main-nav li {
    flex: 1 1 0;
    min-width: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.72);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.4vw, 5px);
    padding: 10px clamp(6px, 0.7vw, 10px);
    text-decoration: none;
    color: #f0f0f0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(0.9rem, 0.95vw, 1.25rem);
    line-height: 1;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.72);
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    border-bottom-color: var(--accent);
}

.hero {
    position: relative;
    min-height: calc(100vh - 120px);
}

.page-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    isolation: isolate;
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-bg {
    z-index: -2;
    background: var(--stadium) center center / cover no-repeat;
}

.hero-overlay {
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 44%, rgba(0, 0, 0, 0.34) 100%),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.44) 0%, rgba(0, 0, 0, 0.1) 27%, rgba(0, 0, 0, 0.26) 100%);
}

.hero-inner {
    position: relative;
    width: 100%;
    height: calc(100vh - 120px);
    min-height: 600px;
    max-height: 700px;
    padding: clamp(26px, 3.2vh, 40px) clamp(12px, 2.2vw, 28px) 18px;
}

.hero-logo {
    text-align: center;
    position: relative;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.subtitle-wrap {
    position: relative;
    width: fit-content;
}

.hero-logo h1 {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(4.6rem, 5.8vw, 9.8rem);
    line-height: 0.95;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #f4f4f4;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.8);
}

.hero-logo .accent {
    color: var(--accent);
}

.hero-logo .suffix {
    color: #f4f4f4;
}

.subtitle {
    margin: 10px 0 0;
    padding: 0 22px 7px;
    border-bottom: 3px solid var(--accent);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.9rem, 2vw, 3.3rem);
    line-height: 1;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.82);
}

.hero-scene {
    position: absolute;
    inset: 0;
}

.beer-mug {
    position: absolute;
    left: clamp(110px, 9vw, 220px);
    bottom: clamp(60px, 8vh, 110px);
    width: clamp(290px, 22vw, 420px);
    height: auto;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.48));
}

.chalkboard {
    position: absolute;
    right: clamp(100px, 12vw, 220px);
    bottom: clamp(280px, 35vh, 400px);
    width: clamp(280px, 20vw, 380px);
    aspect-ratio: 3 / 2;
    z-index: 5;
    transform: rotate(4deg);
    background: url('../images/chalkboard.png') center center / contain no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Caveat', cursive;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.chalk-title {
    display: block;
    margin-top: 2px;
    font-size: clamp(2.1rem, 1.6vw, 3rem);
    line-height: 1;
    white-space: nowrap;
}

.chalk-price {
    display: block;
    margin-top: 1px;
    font-size: clamp(2.8rem, 2.2vw, 4.2rem);
    line-height: 0.9;
    white-space: nowrap;
}

.matches-wrap {
    position: static;
}

.matches-box {
    position: relative;
    margin-top: 40px;
    width: clamp(420px, 36vw, 620px);
    padding: 10px 14px 9px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.66));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
    z-index: 4;
}

.view-all-matches {
    display: block;
    text-align: center;
    color: #ffca28;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
}
.view-all-matches:hover {
    color: #fff;
}

.matches-box h2 {
    margin: 0 0 6px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 1.45vw, 2.7rem);
    line-height: 1;
    font-weight: 600;
}

.match-row {
    display: block;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.match-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.match-meta {
    display: block;
    margin-bottom: 3px;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.35rem, 0.95vw, 1.7rem);
    line-height: 1.05;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.93);
}

.match-opponent {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.5rem, 1.05vw, 1.95rem);
    line-height: 1.08;
    font-weight: 600;
    color: #f2f2f2;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.match-tip-link {
    color: #ffca28;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 700;
}

.match-tip-link:hover {
    color: #ffffff;
}

.ball {
    position: absolute;
    right: clamp(60px, 8vw, 180px);
    bottom: clamp(60px, 8vh, 110px);
    width: clamp(280px, 23vw, 410px);
    z-index: 2;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.64));
}

.facebook-btn {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: clamp(420px, 37vw, 620px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    text-decoration: none;
    color: #f3f3f3;
    background: linear-gradient(to bottom, #2f5ca6, #1f468a);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.42);
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 1.25vw, 2.3rem);
    line-height: 1;
    z-index: 10;
}

.fb-icon {
    font-family: Arial, sans-serif;
    font-size: 1.08em;
    font-weight: 700;
}

.main-footer {
    margin: 0;
    padding: 10px 12px;
    text-align: center;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
}

.main-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.main-footer a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* Gallery Page */
.gallery-page {
    padding: 30px 20px 60px;
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.gallery-page .container {
    width: 100%;
    max-width: 1200px;
}

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

.gallery-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.gallery-open-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.gallery-item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-open-btn:hover img,
.gallery-open-btn:focus-visible img {
    transform: scale(1.03);
}

.gallery-item figcaption {
    padding: 8px 10px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.2;
}

.gallery-empty {
    margin: 10px auto 0;
    max-width: 620px;
    text-align: center;
    padding: 22px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.5);
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

body.lightbox-open {
    overflow: hidden;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox-content {
    position: relative;
    width: min(1200px, 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.gallery-lightbox-figure {
    margin: 0;
    max-width: 100%;
}

.gallery-lightbox-figure img {
    display: block;
    max-width: min(92vw, 1100px);
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.gallery-lightbox-figure figcaption {
    margin-top: 10px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.4rem, 2vw, 2rem);
    color: rgba(255, 255, 255, 0.95);
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-close {
    top: -12px;
    right: -12px;
    width: 42px;
    height: 42px;
    font-size: 2rem;
    line-height: 1;
}

.gallery-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 3.2rem;
    line-height: 1;
}

.gallery-lightbox-nav.prev {
    left: -72px;
}

.gallery-lightbox-nav.next {
    right: -72px;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-counter {
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.92);
}

/* Menu Page */
.menu-page {
    padding: 30px 20px 60px; /* Reduced top padding */
    min-height: calc(100vh - 120px);
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.menu-page .container {
    width: 100%;
    max-width: 1000px;
}

.menu-board-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 15px; /* Reduced gap between chalkboard and items */
}

.menu-chalkboard {
    width: clamp(500px, 64vw, 780px);
    aspect-ratio: 3 / 2;
    background: url('../images/chalkboard.png') 50% 51% / 148% auto no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-2deg);
    padding: 0 56px;
}

.menu-title {
    font-family: 'Caveat', cursive;
    font-size: clamp(2.2rem, 3.4vw, 3.2rem);
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0;
    transform: rotate(-2deg);
    text-align: center;
    line-height: 1;
    white-space: nowrap;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px 40px;
}

.menu-category {
    margin-bottom: 0;
    padding: 18px 22px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.7));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.category-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    text-transform: uppercase;
    color: #fff;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 15px;
    padding-bottom: 8px;
    text-align: center;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 10px;
    font-family: 'Caveat', cursive;
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.item-name {
    flex-shrink: 0;
}

.item-dots {
    flex-grow: 1;
    border-bottom: 2px dotted rgba(255,255,255,0.3);
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.item-price {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--accent);
}

.menu-footer-note {
    position: relative;
    z-index: 2;
    margin-top: 50px;
    text-align: center;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* Tips Page */
.tips-page {
    padding: 30px 20px 80px;
    min-height: calc(100vh - 120px);
}

.tips-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.tips-nickname-card,
.match-tip-card,
.leaderboard-card,
.empty-tips-card {
    padding: 22px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.7));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
    margin-bottom: 25px;
}

.tips-page h2 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
    padding-left: 5px;
}

.tips-nickname-card h2 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 8px;
    padding-left: 0;
}

.tips-nickname-card .form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
}

.tips-nickname-card .form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #fff;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.1rem;
}

.tips-nickname-card .form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.tips-nickname-card .help-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-style: italic;
}

.match-tip-card {
    padding: 15px 20px;
}

.match-tip-meta {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.match-tip-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.team-name {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.team-name.home {
    text-align: right;
}

.team-name.away {
    text-align: left;
}

.tip-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-inputs input {
    width: 55px;
    height: 55px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    background: #111;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--accent);
}

.tip-inputs input:focus {
    outline: none;
    border-color: var(--accent);
}

.tip-inputs .separator {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.tips-submit-wrap {
    text-align: center;
    margin-top: 40px;
}

.btn-submit-tips {
    padding: 15px 45px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-submit-tips:hover {
    background: #fff;
    transform: scale(1.05);
}

.leaderboard-title {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    text-align: center;
    margin-bottom: 20px !important;
}

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

.leaderboard-table-wrap th {
    text-align: left;
    font-family: 'Oswald', sans-serif;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table-wrap td {
    padding: 12px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table-wrap .rank-col {
    width: 30px;
    color: rgba(255, 255, 255, 0.4);
}

.leaderboard-table-wrap .name-col {
    font-weight: 600;
    font-size: 1.1rem;
}

.leaderboard-table-wrap .points-col span {
    background: var(--accent);
    color: #000;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.95rem;
}

.text-right {
    text-align: right;
}

.empty-table {
    text-align: center;
    padding: 30px !important;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.scoring-rules {
    margin-top: 35px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.scoring-rules h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.scoring-rules ul {
    padding-left: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.scoring-rules li {
    margin-bottom: 5px;
}

.rules-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-weight: 600;
}

.alert-success {
    background: rgba(75, 182, 42, 0.2);
    border: 1px solid #4bb62a;
    color: #88ff45;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
}

.empty-tips-card {
    text-align: center;
    padding: 50px 30px;
}

.empty-tips-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.empty-tips-card a {
    color: var(--accent);
    text-decoration: underline;
}

@media (max-width: 991px) {
    .tips-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .match-tip-row {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    .team-name.home, .team-name.away {
        text-align: center;
    }
    .tip-inputs {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 12px;
    }

    .gallery-lightbox {
        padding: 14px;
    }

    .gallery-lightbox-content {
        width: 100%;
    }

    .gallery-lightbox-figure img {
        max-width: 100%;
        max-height: 70vh;
    }

    .gallery-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 2.6rem;
    }

    .gallery-lightbox-nav.prev {
        left: 6px;
    }

    .gallery-lightbox-nav.next {
        right: 6px;
    }

    .gallery-lightbox-close {
        right: 4px;
        top: -4px;
    }

    .gallery-lightbox-counter {
        bottom: -30px;
        font-size: 1.3rem;
    }

    .menu-board-wrap {
        margin-bottom: 25px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 1199px) {
    .hero-inner {
        min-height: 620px;
        max-height: none;
        height: 650px;
    }

    .hero-logo h1 {
        font-size: clamp(4rem, 6.2vw, 7.8rem);
    }

    .subtitle {
        font-size: clamp(1.8rem, 2.3vw, 3rem);
    }

    .hero-scene {
        inset: 0;
    }

    .beer-mug {
        left: clamp(70px, 9vw, 140px);
        bottom: clamp(60px, 8vh, 110px);
        width: clamp(250px, 26vw, 340px);
    }

    .chalkboard {
        right: 40px;
        bottom: 240px;
        width: clamp(260px, 28vw, 340px);
        transform: rotate(4deg);
    }

    .matches-box {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin-top: 20px;
    }

    .matches-box h2 {
        font-size: clamp(1.9rem, 2vw, 2.5rem);
    }

    .match-meta {
        font-size: clamp(1.3rem, 1.3vw, 1.6rem);
    }

    .match-opponent {
        font-size: clamp(1.4rem, 1.45vw, 1.8rem);
    }

    .ball {
        right: 42px;
        bottom: 74px;
        width: clamp(240px, 24vw, 320px);
    }

    .facebook-btn {
        width: clamp(360px, 44vw, 500px);
        font-size: clamp(1.55rem, 1.55vw, 2rem);
    }
}

@media (max-width: 860px) {
    .top-strip {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }

    .opening-status {
        position: static;
        transform: none;
        font-size: 1.7rem;
    }

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .main-nav a {
        font-size: 2.2rem;
        padding: 11px 8px;
    }

    .hero-inner {
        height: auto;
        min-height: auto;
        max-height: none;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .subtitle-wrap {
        width: min(94vw, 560px);
        margin: 0 auto;
    }

    .hero-logo h1 {
        white-space: normal;
        font-size: clamp(4rem, 10vw, 6.4rem);
        line-height: 0.98;
    }

    .subtitle {
        font-size: clamp(2rem, 5.2vw, 3rem);
    }

    .hero-scene {
        position: relative;
        inset: auto;
        margin-top: 18px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
        width: 100%;
    }

    .menu-chalkboard {
        width: min(340px, 92vw);
        transform: rotate(-1deg);
        padding: 0 40px;
        background-size: 162% auto;
        background-position: 50% 51%;
    }

    .menu-title {
        font-size: clamp(2rem, 8vw, 2.7rem);
        line-height: 1;
        white-space: nowrap;
    }

    .beer-mug {
        display: none;
    }

    .hero-scene .chalkboard {
        display: none;
    }

    .chalk-title {
        font-size: clamp(2.5rem, 8.4vw, 3.2rem);
    }

    .chalk-price {
        font-size: clamp(3rem, 10.4vw, 4.2rem);
        line-height: 0.86;
        white-space: nowrap;
    }

    .matches-wrap {
        display: block;
        width: min(92vw, 520px);
    }

    .matches-box {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin: 16px auto 0;
        padding: 12px 12px 10px;
    }

    .matches-box h2 {
        margin-bottom: 8px;
        font-size: clamp(1.75rem, 5.6vw, 2.3rem);
        letter-spacing: 0.3px;
        text-transform: none;
    }

    .matches-list {
        text-align: center;
    }

    .match-row {
        text-align: center;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .match-meta {
        font-size: clamp(1.4rem, 3.5vw, 1.9rem);
        text-align: center;
        margin-bottom: 4px;
    }

    .match-opponent {
        font-size: clamp(1.55rem, 4.2vw, 2.2rem);
        text-align: center;
    }

    .match-tip-link {
        display: inline-block;
        margin: 6px 0 0;
    }

    .view-all-matches {
        margin-top: 12px;
        padding-top: 8px;
    }

    .facebook-btn {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        width: 100%;
        margin-top: 10px;
        gap: 8px;
        padding: 8px 10px;
        font-size: clamp(1.2rem, 4.4vw, 1.8rem);
        line-height: 1.05;
        white-space: nowrap;
        text-align: center;
    }

    .fb-icon {
        font-size: 0.95em;
        flex: 0 0 auto;
    }

    .ball {
        position: relative;
        right: auto;
        bottom: auto;
        width: min(250px, 64vw);
        order: 1;
    }
}

@media (max-width: 540px) {
    .gallery-page {
        padding: 20px 12px 40px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-nav ul {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .main-nav a {
        font-size: 1.9rem;
    }

    .matches-box h2 {
        font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    }

    .match-meta {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .match-opponent {
        font-size: clamp(1.45rem, 5.8vw, 2rem);
    }

    .chalkboard {
        width: min(320px, 90vw);
        margin-top: 2px;
        background-size: 168% auto;
        background-position: 50% 51%;
    }

    .chalk-title {
        font-size: clamp(2.2rem, 8.6vw, 2.8rem);
    }

    .chalk-price {
        font-size: clamp(2.7rem, 10vw, 3.6rem);
    }

    .menu-chalkboard {
        width: min(320px, 90vw);
        background-size: 168% auto;
    }

    .menu-title {
        font-size: clamp(1.8rem, 8.1vw, 2.4rem);
    }

    .facebook-btn {
        font-size: clamp(1.1rem, 4.9vw, 1.45rem);
    }
}
