@font-face {
    font-family: 'Arena Roboto';
    src: url('/arena/home/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Arena Roboto';
    src: url('/arena/home/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --ink: #171c25;
    --paper: #fff;
    --line: #dce2ed;
    --muted: #586171;
    --blue: #2866b0;
    --forest: #163454;
    --header-accent: #174a39;
}

body { font-family: 'Arena Roboto', Arial, sans-serif; }
.site-width { width: min(calc(100% - 60px), 1460px); margin-inline: auto; }
.site-header { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid #e8ecf1; }
.header-layout {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: clamp(15px,2.2vw,32px);
}
.site-brand { display: flex; align-items: center; gap: 12px; width: fit-content; text-decoration: none; line-height: 1.35; letter-spacing: .045em; }
.site-brand img { flex: none; }
.site-header .site-brand { gap: 10px; letter-spacing: 0; }
.site-header .site-brand img { padding: 7px; border-radius: 8px; background: #eaf2ee; }
.site-header .site-brand strong, .site-header .site-brand small { display: block; }
.site-header .site-brand strong { font-size: 17px; }
.site-header .site-brand small { color: var(--muted); font-size: 12px; }
.desktop-links { display: flex; justify-content: center; gap: clamp(10px,1.6vw,24px); }
.desktop-links a { color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; }
.desktop-links a:hover, .desktop-links a:focus-visible { color: var(--header-accent); text-decoration: underline; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-search, .header-cart { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.header-search:hover { background: #eef5f1; }
.header-cart { padding: 0 12px; border-color: transparent; background: var(--header-accent); color: #fff; font-weight: 700; }
.header-cart:hover, .cart-action:hover { background: #22674f; }
.header-cart img { filter: brightness(0) invert(1); }
.header-cart b { display: grid; min-width: 19px; height: 19px; place-items: center; padding-inline: 3px; border-radius: 12px; background: #ebf5ef; color: var(--header-accent); font-size: 11px; }
.header-cart b[hidden], .test-cart [hidden], .map-tooltip[hidden], .match-order[hidden] { display: none; }
.mobile-menu { display: none; }

.test-cart { width: min(100% - 24px,540px); max-height: 90vh; padding: clamp(17px,4vw,26px); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.test-cart::backdrop { background: #0d191d9c; }
.test-cart-head, .test-cart-total, .test-cart-items li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.test-cart-head h2, .test-cart-head form { margin: 0; }
.test-cart-note { margin: 12px 0 18px; padding: 10px 12px; border-radius: 6px; background: #eef5f1; color: var(--header-accent); font-size: 14px; }
.test-cart-match, .test-cart-total { font-weight: 700; }
.test-cart-items { margin: 8px 0 12px; padding: 0; list-style: none; }
.test-cart-items li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.test-cart-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 10px; }
.test-cart-fields label { display: grid; gap: 5px; font-size: 14px; }
.test-cart-fields input { width: 100%; min-height: 44px; padding: 6px 10px; border: 1px solid #aab6c2; border-radius: 6px; }
.test-fill { margin: 5px 0; }
.test-cart-brands { display: block; width: min(195px,100%); height: auto; margin: 8px 0 12px; }
.test-cart-consent { display: block; margin: 6px 0 14px; font-size: 14px; }
.test-cart-consent input { width: 16px; height: 16px; vertical-align: middle; }
.test-cart-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.cart-payment-feedback { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #d7e2ec; border-radius: 8px; background: #f2f6fa; color: #263747; }
.cart-payment-feedback[data-state="failed"] { border-color: #ebc7bf; background: #fff4f1; color: #76281f; }
.cart-payment-feedback strong { display: block; }
.cart-payment-feedback p { margin: 4px 0 0; }
.cart-action, .cart-secondary { min-height: 44px; padding: 5px 12px; border: 1px solid transparent; border-radius: 6px; background: var(--header-accent); color: #fff; font-weight: 700; }
.cart-action:disabled, .cart-secondary:disabled { opacity: .58; cursor: wait; }
.cart-secondary { background: #fff; border-color: #aab6c2; color: var(--ink); }
.cart-secondary:hover { background: #f2f4f5; }
.test-cart-status { margin-bottom: 0; color: #9d3123; }
.test-cart-status:empty { display: none; }

.arena-map { position: relative; }
.arena-map .map-sector[data-sector] > path { fill: #a9d8b8 !important; }
.arena-map .map-sector[data-sector]:is(:hover,:focus-visible,.is-preview) > path { fill: #68bc89 !important; }
.arena-map .map-sector[data-sector]:focus-visible > path { stroke: var(--header-accent); stroke-width: 4; }
.sector.is-preview { border-color: #78b793; background: #eaf5ee; }
.map-tooltip { position: absolute; z-index: 1; display: grid; gap: 3px; max-width: calc(100% - 8px); padding: 9px 12px; border: 1px solid #cedfd4; border-radius: 7px; background: #fff; box-shadow: 0 5px 18px #173b2c25; color: var(--ink); font-size: 13px; line-height: 1.25; pointer-events: none; }
.map-tooltip strong { color: var(--header-accent); font-size: 14px; }
.map-tooltip span:empty { display: none; }
.map-legend { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend span::before { content: ''; width: 12px; height: 12px; border-radius: 3px; background: #a9d8b8; }
.map-legend span + span::before { background: #bebebe; }

.seat-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.seat-dialog > :not(.seat-rows) { flex: none; }
.seat-dialog [data-dialog-status] { margin-block: 9px; }
.seat-dialog [data-dialog-status]:empty { margin: 0; }
.seat-dialog .seat-rows { flex: 1 1 auto; min-height: 0; min-width: 0; overscroll-behavior: contain; }
.match-order { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 14px; margin-top: 12px; padding: 9px 12px; border: 1px solid #d1e3d8; border-radius: 9px; background: #f0f8f2; }
.match-order-info { display: grid; gap: 3px; font-size: 14px; }
.match-order-info > span { display: flex; flex-wrap: wrap; column-gap: 9px; color: #40564a; font-size: 13px; }
.match-order-info b { white-space: nowrap; color: var(--ink); }
.match-order--page { position: fixed; z-index: 3; right: max(12px,calc((100vw - 1240px) / 2)); bottom: max(12px,env(safe-area-inset-bottom)); left: auto; grid-template-columns: minmax(0,1fr) auto auto; width: min(460px,100% - 24px); margin: 0; box-shadow: 0 4px 22px #173b2c28; }
body:has(.seat-dialog[open],.test-cart[open]) .match-order--page { visibility: hidden; }
body:has(.match-order--page:not([hidden])) { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
.match-order-details summary { padding: 10px 2px; cursor: pointer; color: var(--header-accent); font-size: 13px; font-weight: 700; }
.match-order-list { position: absolute; inset: auto 0 calc(100% + 8px); max-height: min(42vh,320px); overflow: auto; padding: 12px; border: 1px solid #d1e3d8; border-radius: 9px; background: #fff; box-shadow: 0 4px 22px #173b2c28; font-size: 13px; }
.match-order-list h3, .match-order-list ul { margin: 0; }
.match-order-list ul { padding: 0; list-style: none; }
.match-order-list li { display: flex; justify-content: space-between; align-items: center; gap: 6px; border-bottom: 1px solid var(--line); }
.seat-dialog .match-order-details { grid-column: 1 / -1; grid-row: 2; border-top: 1px solid #d1e3d8; }
.seat-dialog .match-order-details summary { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 2px; list-style: none; }
.seat-dialog .match-order-details summary::-webkit-details-marker { display: none; }
.seat-dialog .match-order-details summary::after { content: ''; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.seat-dialog .match-order-details[open] summary::after { transform: rotate(225deg); }
.seat-dialog .match-order-list { position: static; max-height: min(26vh,180px); padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: none; overscroll-behavior: contain; }
.seat-dialog .match-order-list li { padding-block: 2px; }

.stadium-banner { position: relative; min-height: clamp(245px,26vw,370px); background: #6e8493; }
.stadium-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.stadium-controls { position: relative; padding: clamp(23px,3vw,44px) 22px; }
.stadium-tools { width: min(100%,540px); }
.arena-search { display: flex; width: min(100%,620px); min-height: 54px; padding-left: 18px; border: 1px solid var(--line); border-radius: 6px; background: #fff; overflow: hidden; }
.arena-search:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.arena-search input { min-width: 0; flex: 1; padding: 0 8px 0 10px; border: 0; color: var(--ink); outline: 0; }
.arena-search button { display: grid; flex: 0 0 56px; place-items: center; border: 0; background: #fff; }
.arena-search button:hover { background: #eef5ff; }
.stadium-links { display: flex; justify-content: flex-start; gap: 8px; margin-top: 12px; }
.stadium-links a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 7px 13px; border: 1px solid #ffffff55; border-radius: 6px; background: #10212de8; color: #fff; font-size: 14px; text-align: center; line-height: 1.2; }
.stadium-links a:hover { background: #233d56; text-decoration: none; }
.stadium-links img { flex: none; filter: brightness(0) invert(1); }
.stadium-links a:focus-visible { outline-color: #9dcaff; }

.featured { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,1fr); gap: clamp(12px,1.5vw,22px); margin-top: 18px; }
.featured a:focus-visible { outline-color: var(--header-accent); }
.featured-match, .featured-upcoming { min-width: 0; padding: clamp(18px,2.25vw,33px); border: 1px solid #dce7df; border-radius: 10px; }
.featured-match { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; column-gap: clamp(12px,1.7vw,26px); background: linear-gradient(112deg,#f5faf7,#e3f0e8); }
.featured-match:only-child { grid-column: 1 / -1; }
.featured-match > :not(.featured-crests) { grid-column: 1; }
.featured-label { margin: 0; color: var(--header-accent); font-size: 13px; font-weight: 700; }
.featured-match h2 { margin: 7px 0 5px; font-size: clamp(26px,3.15vw,46px); line-height: 1.1; }
.featured-match time { color: #425750; font-size: 16px; }
.featured-crests { display: flex; grid-column: 2; grid-row: 1 / span 4; align-self: center; gap: 8px; }
.featured-crests span { display: grid; place-items: center; width: clamp(43px,5vw,68px); aspect-ratio: 1; border: 1px solid #d3e2d8; border-radius: 50%; background: #fff; }
.featured-crests img { width: 69%; height: 69%; object-fit: contain; }
.featured-action { display: inline-grid; justify-self: start; place-items: center; min-height: 44px; margin-top: 15px; padding: 0 17px; border-radius: 6px; background: var(--header-accent); color: #fff; font-weight: 700; text-decoration: none; }
.featured-action:hover { background: #22674f; }
.featured-upcoming { background: #fff; }
.featured-upcoming h2 { margin: 0 0 5px; color: var(--header-accent); font-size: 13px; }
.featured-upcoming ul { margin: 0; padding: 0; list-style: none; }
.featured-upcoming li + li { border-top: 1px solid #e5ece7; }
.featured-upcoming a { display: grid; grid-template-columns: minmax(0,1fr) auto 9px; align-items: center; gap: 10px; min-height: 44px; padding: 8px 6px; border-radius: 4px; text-decoration: none; }
.featured-upcoming a:hover { background: #edf6f0; }
.featured-upcoming a::after { content: ''; justify-self: center; width: 6px; height: 6px; border: solid var(--header-accent); border-width: 1px 1px 0 0; transform: rotate(45deg); }
.featured-upcoming strong { font-size: 14px; line-height: 1.2; }
.featured-upcoming time { color: #425750; font-size: 12px; white-space: nowrap; }

.poster-section { padding-block: 30px 44px; scroll-margin-top: 16px; }
.poster-section > h1, .press-heading h2 { margin: 27px 0 22px; font-size: clamp(20px,2.25vw,30px); line-height: 1.18; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.poster-section > h1:first-child { margin-top: 7px; }
.poster-section > .arena-search { margin-bottom: 20px; }
.poster-filter > summary { display: none; }
.poster-filter nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 3px clamp(8px,1.35vw,19px); }
.poster-filter a { display: grid; place-items: center; min-height: 42px; padding: 0 4px; color: var(--muted); font-size: 13px; letter-spacing: .035em; text-decoration: none; text-transform: uppercase; border-bottom: 2px solid transparent; }
.poster-filter a[aria-current], .poster-filter a:hover { color: var(--blue); border-color: var(--blue); }
.poster-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 31px clamp(14px,2.1vw,29px); }
.poster-card { min-width: 0; }
.poster-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; outline-offset: 5px; }
.poster-art {
    display: grid;
    align-content: space-between;
    aspect-ratio: 408 / 580;
    min-height: 180px;
    padding: 15px 8px 18px;
    border-radius: 3px;
    background: linear-gradient(145deg,#102b1e,#3b7652);
    color: #fff;
    text-align: center;
    text-shadow: 0 1px 3px #0b2114;
}
.poster-art--photo { background: linear-gradient(#10261bf0,#163a278c 52%,#0c2017e6),url('/arena/home/poster.jpg') center / cover; }
.poster-sport { font-size: 12px; line-height: 1.1; text-transform: uppercase; letter-spacing: .13em; }
.poster-date { font-size: clamp(13px,1.2vw,17px); font-weight: 700; letter-spacing: .015em; }
.poster-teams { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 4px; }
.poster-teams > span { min-width: 0; display: grid; justify-items: center; align-content: end; gap: 5px; font-size: clamp(10px,.86vw,14px); line-height: 1.12; }
.poster-teams img { width: clamp(33px,4.3vw,65px); height: clamp(33px,4.3vw,65px); object-fit: contain; filter: drop-shadow(0 2px 4px #15271c); }
.poster-caption { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; }
.poster-caption h2 { margin: 0; min-height: 2.4em; font-size: clamp(15px,1.35vw,19px); line-height: 1.2; }
.poster-league { padding-top: 7px; color: var(--muted); font-size: 13px; }
.poster-caption time { margin-bottom: 5px; font-size: 14px; }
.poster-action { display: inline-flex; align-items: center; min-height: 42px; margin-top: auto; padding: 0 13px; border: 1px solid var(--blue); border-radius: 6px; color: var(--blue); font-size: 13px; font-weight: 700; white-space: nowrap; }
.poster-link:hover .poster-action { background: #eff6ff; }
.poster-empty { grid-column: 1 / -1; margin: 4px 0 20px; color: var(--muted); }

.press-section { padding-block: 10px 45px; }
.press-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.press-heading a { color: var(--blue); font-size: 14px; }
.press-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.press-card { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; text-decoration: none; }
.press-card:hover { border-color: var(--blue); }
.press-card img { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 4px; object-fit: cover; }
.press-card span { display: grid; gap: 6px; }
.press-card time { color: var(--muted); font-size: 12px; }
.press-card strong { font-size: 14px; line-height: 1.3; }

.site-footer { background: #f1f3f9; border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.15fr; gap: 26px; padding: 36px 0 42px; }
.footer-layout h2 { margin: 4px 0 12px; font-size: 15px; }
.footer-layout a:not(.site-brand) { display: block; margin: 7px 0; font-size: 13px; color: var(--muted); text-decoration: none; }
.footer-layout a:hover { text-decoration: underline; }
.footer-brand p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.match-head { background: #eef3fa; color: var(--ink); border-bottom: 1px solid var(--line); padding: 28px 0 34px; }
.match-head h1,.editorial h1 { font-size: clamp(30px,4.1vw,58px); letter-spacing: -.035em; overflow-wrap: anywhere; }
.match-head .back,.editorial .back,.text-button { color: var(--blue); }
.editorial-date { color: var(--muted); }
.editorial-notice { padding: 10px 13px; border-radius: 7px; background: #eef5f1; color: var(--header-accent); }
.editorial-photo { display: block; width: min(100%,720px); height: auto; margin-block: 18px; border-radius: 8px; }
.editorial-content { max-width: 78ch; margin: 22px 0; line-height: 1.55; overflow-wrap: anywhere; }
.editorial-content h2,.editorial-content h3,.editorial-content h4 { margin: 1.25em 0 .35em; line-height: 1.25; }
.editorial-content p { max-width: 100%; font-size: 16px; }
.editorial-content img { display: block; max-width: 100%; height: auto; margin-block: 12px; border-radius: 6px; }
.editorial-content a { color: var(--blue); }
.editorial-content table { display: block; max-width: 100%; overflow: auto; }
.editorial-content details { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.editorial-content summary { cursor: pointer; font-weight: 700; }
.editorial-news { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(270px,100%),1fr)); gap: 12px; padding: 0; margin: 24px 0 0; list-style: none; }
.editorial-news .press-card { height: 100%; }
.match-description { margin-top: 30px; }
:focus-visible { outline-color: var(--blue); }

@media (max-width: 1000px) {
    .site-width { width: calc(100% - 44px); }
    .poster-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .stadium-controls { padding-inline: 14px; }
}
@media (max-width: 900px) {
    .header-layout { grid-template-columns: minmax(0,1fr) auto; min-height: 65px; }
    .desktop-links { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu > summary { display: grid; min-width: 42px; min-height: 44px; place-items: center; cursor: pointer; list-style: none; }
    .mobile-menu > summary::-webkit-details-marker { display: none; }
    .menu-icon { display: block; width: 20px; height: 14px; border-block: 2px solid var(--header-accent); position: relative; }
    .menu-icon::after { position: absolute; top: 4px; left: 0; right: 0; height: 2px; content: ''; background: var(--header-accent); }
    .mobile-menu nav { position: absolute; right: 18px; top: calc(100% - 4px); display: grid; min-width: 185px; gap: 0; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 8px 25px #12315722; }
    .mobile-menu nav a { padding: 11px; color: var(--ink); font-size: 14px; text-decoration: none; }
}
@media (max-width: 720px) {
    .site-width { width: calc(100% - 36px); }
    .header-layout { gap: 5px; }
    .site-header .site-brand { gap: 6px; }
    .site-header .site-brand img { width: 30px; height: 30px; padding: 5px; }
    .site-header .site-brand strong { font-size: 13px; line-height: 1.15; }
    .site-header .site-brand small { font-size: 11px; }
    .header-actions { gap: 2px; }
    .header-cart { position: relative; padding-inline: 8px; }
    .header-cart > span { display: none; }
    .header-cart b { position: absolute; top: 1px; right: 1px; }
    .stadium-banner { min-height: 208px; }
    .stadium-photo { object-position: 62% center; }
    .stadium-controls { padding: 18px 0; }
    .arena-search { min-height: 44px; padding-left: 10px; }
    .arena-search button { flex-basis: 48px; }
    .stadium-links { gap: 6px; margin-top: 9px; }
    .stadium-links a { flex: 1 1 auto; padding-inline: 6px; font-size: 12px; }
    .stadium-links img { width: 14px; height: 14px; }
    .featured { grid-template-columns: minmax(0,1fr); margin-top: 14px; }
    .featured-match, .featured-upcoming { padding: 16px; }
    .featured-match > :not(.featured-label,.featured-crests) { grid-column: 1 / -1; }
    .featured-label { align-self: center; }
    .featured-crests { grid-row: 1; gap: 5px; }
    .featured-crests span { width: 36px; }
    .featured-upcoming a { gap: 7px; padding-inline: 0 3px; }
    .poster-section { padding-block: 22px 28px; }
    .poster-filter > summary { display: flex; align-items: center; gap: 9px; min-height: 42px; font-size: 13px; text-transform: uppercase; cursor: pointer; }
    .poster-filter nav { column-gap: 11px; }
    .poster-section > h1,.press-heading h2 { margin: 19px 0 16px; }
    .poster-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 12px; }
    .poster-art { padding: 11px 5px 12px; min-height: 145px; }
    .poster-caption { padding-top: 9px; gap: 4px; }
    .poster-caption h2 { min-height: 2.4em; }
    .poster-action { padding-inline: 10px; }
    .press-grid { display: flex; margin-inline: -3px; padding: 3px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; }
    .press-card { flex: 0 0 min(290px,84%); scroll-snap-align: start; }
    .footer-layout { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; padding-block: 25px 32px; }
}
@media (max-width: 420px) {
    .match-order { gap: 7px; padding: 8px; }
    .match-order .cart-action { padding-inline: 8px; font-size: 13px; }
    .match-order-details summary { list-style: none; }
    .match-order-details summary::-webkit-details-marker { display: none; }
    .poster-grid { grid-template-columns: 1fr; }
    .poster-card { width: min(100%, 306px); margin-inline: auto; }
    .poster-art { aspect-ratio: 408 / 525; padding: 22px 16px 24px; }
    .poster-date { font-size: 17px; }
    .poster-teams > span { font-size: 14px; }
    .poster-teams img { width: 58px; height: 58px; }
    .poster-caption h2 { min-height: auto; }
}
