:root {
    --yellow: #ffd414;
    --ink: #070707;
    --blue: #00a9dc;
    --primary: #00a9dc;
    --green: #43d777;
    --orange: #ff741f;
    --paper: #fffdf7;
    --muted: #5c5c5c;
    --line: 4px solid var(--ink);
    --shadow: 10px 12px 0 var(--ink);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: #f3f3f3;
    color: var(--ink);
    font-family: "Arial Rounded MT Bold", "Arial Black", "Trebuchet MS", Arial, sans-serif;
}

button,
input,
select {
    font: inherit;
}

.app-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100vw, 430px);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh;
    margin: 0 auto;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 26%, #fff17c 0 8%, transparent 9%),
        linear-gradient(172deg, var(--yellow) 0 22%, var(--paper) 22.2% 100%);
    border: 5px solid var(--primary);
    padding: env(safe-area-inset-top) 18px 108px;
}

.app-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    background: url("../img/fondo.jpg") center / cover no-repeat;
    transition: opacity 0.2s ease;
}

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

.topbar {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    flex: 0 0 auto;
    min-height: clamp(82px, 14vh, 104px);
    margin: 0 -18px;
    padding: 8px 18px 12px;
    border-radius: 0 0 24px 24px;
}

.app-shell[data-view="welcome"] .topbar {
    background: var(--yellow);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08);
}

.brand {
    display: grid;
    place-items: center;
    line-height: 1;
}

.brand strong {
    color: #10a6d3;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    font-weight: 1000;
    text-shadow:
        2px 3px 0 rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(0, 0, 0, 0.3);
    letter-spacing: 0;
    white-space: nowrap;
}

.brand span {
    display: block;
    margin-top: 6px;
    font-size: 1.55rem;
    font-weight: 1000;
    text-shadow:
        2px 2px 0 rgba(255, 255, 255, 0.95),
        0 1px 0 rgba(0, 0, 0, 0.22);
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 2.2rem;
    line-height: 1;
    font-family: Arial, sans-serif;
    font-weight: 900;
    cursor: pointer;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.9);
}

.gear {
    font-size: 1.65rem;
    line-height: 1;
}

.back {
    font-size: 2.05rem;
    transform: scaleX(0.78);
}

.screen {
    display: none;
}

.screen.active {
    display: block;
    flex: 1 1 auto;
}

#welcomeScreen.active {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    align-content: stretch;
    gap: clamp(12px, 2.2vh, 22px);
    flex: 1 1 0;
    min-height: 0;
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

#homeScreen.active {
    display: grid;
    grid-template-rows: minmax(150px, 0.95fr) minmax(318px, 1.55fr);
    gap: clamp(14px, 3vh, 28px);
    min-height: 0;
}

.count-card,
.sponsor-card,
.tile,
.match-card,
.group-card,
.stadium-card,
.info-panel,
.empty-state {
    background: rgba(255, 255, 255, 0.95);
    border: var(--line);
    border-radius: 24px;
    min-width: 0;
}

.count-card {
    display: grid;
    place-items: center;
    text-align: center;
    padding: clamp(12px, 2.2vh, 18px) 14px;
    font-family: "Fredoka", "Arial Rounded MT Bold", "Arial Black", Arial, sans-serif;
    row-gap: clamp(2px, 0.7vh, 8px);
}

.count-card > span {
    font-size: 40px;
    font-weight: 700;
    text-shadow:
        4px 4px 0 white,
        -4px 0 0 white,
        0 4px 0 white,
        0 -3px 0 white;
}

#shortCount{
    line-height: 0.85;
    color: #e3f124;
}

.count-card strong {
    display: block;
    font-size: 70px;
    line-height: 0.7;
    font-weight: 700;
    color: white;
    -webkit-text-stroke: 7px var(--ink);
    paint-order: stroke fill;
    text-shadow:
        4px 5px 0 rgba(0, 0, 0, 0.24),
        0 0 1px var(--ink);
    letter-spacing: 0;
    white-space: nowrap;
}

.count-card .count-unit,
.count-card .count-number.yellow {
    color: var(--yellow);
}

.count-card .count-number,
.count-card .count-unit {
    font-size: inherit;
    line-height: inherit;
    text-shadow: inherit;
}

.hero-count {
    min-height: 0;
    align-self: stretch;
}

.mini-count {
    min-height: 0;
    margin-bottom: 0;
    align-self: stretch;
}

.welcome-brand {
    display: grid;
    justify-items: center;
    margin-top: clamp(4px, 1.5vh, 14px);
    margin-bottom: -8px;
}

.welcome-brand img {
    display: block;
    width: min(100%, 380px);
    height: clamp(54px, 10vh, 80px);
    object-fit: contain;
}

.welcome-brand strong {
    display: none;
    color: #08a7d2;
    font-size: clamp(3rem, 14vw, 4.65rem);
    font-weight: 1000;
    line-height: 0.9;
    white-space: nowrap;
}

.edition-label {
    justify-self: start;
    padding: 7px 12px 6px;
    border: 0;
    background: var(--primary);
    color: white;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(0.92rem, 4.15vw, 1.2rem);
    font-weight: 1000;
    line-height: 1;
    text-shadow: none;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.headline-count {
    display: grid;
    align-content: center;
    gap: clamp(4px, 0.9vh, 8px);
    min-width: 0;
    font-family: "Anton", Impact, Haettenschweiler, "Arial Black", sans-serif;
    color: #000;
    text-transform: uppercase;
}

.headline-count[hidden] {
    display: none;
}

.app-shell.is-loading-settings .headline-count,
.app-shell.is-loading-settings .welcome-feature {
    visibility: hidden;
}

.headline-count > strong {
    display: block;
    font-weight: 1000;
    line-height: 0.86;
    letter-spacing: 0;
    white-space: nowrap;
}

.headline-count > strong {
    font-size: 24vw;
}

.welcome-feature {
    display: grid;
    align-content: center;
    gap: 12px;
    min-width: 0;
    min-height: 0;
}

.welcome-feature[hidden] {
    display: none;
}

.welcome-feature img {
    display: block;
    width: 100%;
    max-height: 48vh;
    object-fit: cover;
    border: 4px solid #000;
}

.welcome-feature h2 {
    margin: 0;
    font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
    font-size: clamp(2rem, 11vw, 3.3rem);
    font-weight: 1000;
    line-height: 0.9;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
}

.welcome-feature h2[hidden] {
    display: none;
}

.welcome-feature p {
    margin: 0;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.15;
    text-align: left;
    text-transform: uppercase;
}

.sponsor-card {
    display: grid;
    place-items: center;
    min-height: 0;
    aspect-ratio: 1250 / 917;
    height: auto;
    margin: 0;
    overflow: hidden;
    background: #1b8d3a;
    border: 0;
    border-radius: 0;
}

.sponsor-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.big-action,
.tile {
    width: 100%;
    cursor: pointer;
}

.big-action {
    min-height: 70px;
    height: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--primary);
    box-shadow: none;
    color: white;
    font-size: clamp(2rem, 10vw, 2.65rem);
    font-weight: 1000;
    line-height: 1;
    text-shadow: none;
}

.home-actions {
    display: grid;
    gap: clamp(12px, 2.5vh, 24px);
    min-height: 0;
}

.tile {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-columns: clamp(58px, 20vw, 90px) 1fr;
    align-items: center;
    padding: clamp(8px, 1.7vh, 10px) clamp(16px, 5vw, 22px);
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
}

.tile span:last-child {
    font-size: clamp(2rem, 10vw, 3rem);
    font-weight: 1000;
}

.tile-icon {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
    text-align: left;
    filter: drop-shadow(2px 3px 0 white);
}

.green {
    background: var(--green);
}

.blue {
    background: #2db8ee;
}

.orange {
    background: var(--orange);
}

.fixture-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 12;
    width: min(100vw, 430px);
    display: grid;
    gap: 0;
    margin: 0;
    padding: calc(env(safe-area-inset-top) + 10px) 0 0;
    background: #fff;
    border-left: 5px solid var(--primary);
    border-right: 5px solid var(--primary);
    border-top: 5px solid var(--primary);
    transform: translateX(-50%);
}

.fixture-header img {
    display: block;
    width: calc(100% - 36px);
    max-width: 360px;
    height: 58px;
    margin: 0 18px;
    object-fit: contain;
    object-position: left center;
}

.fixture-titlebar {
    display: grid;
    place-items: center;
    min-height: 22px;
    margin-top: 4px;
    background: #00a9dc;
    color: #ffffff;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 0.82rem;
    font-weight: 1000;
    text-align: center;
    text-transform: uppercase;
    width: min(94vw, 404px);
    margin: 0 auto;
    font-weight: 900;
    margin-top: -5px;
}

.date-strip {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 90px);
    left: 0px;
    z-index: 12;
    width: min(100vw, 430px);
    display: flex;
    gap: 7px;
    margin: 0;
    padding: 15px 18px 19px;
    overflow-x: auto;
    scrollbar-width: none;
    background: #fff;
    border-left: 5px solid var(--primary);
    border-right: 5px solid var(--primary);
    cursor: grab;
    user-select: none;
}

.date-strip.is-dragging {
    cursor: grabbing;
}

.app-shell[data-view="matches"] {
    padding-bottom: 96px;
    background: #fff;
    overflow: visible;
}

.app-shell[data-view="matches"] #matchesScreen {
    padding-top: calc(env(safe-area-inset-top) + 140px);
}

.app-shell[data-view="matches"]::before {
    opacity: 0;
}

.app-shell[data-view="matches"] .topbar {
    display: none;
}

.date-strip::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 22px;
    padding: 4px 10px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    background: #fff;
    color: #000;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 0.78rem;
    font-weight: 1000;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.filter-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.match-list,
.group-grid,
.stadium-list {
    display: grid;
    gap: 28px;
}

.app-shell[data-view="matches"] .match-list {
    gap: 20px;
    padding: 0 1px 18px;
}

.app-shell[data-view="groups"] {
    padding-bottom: 96px;
    background: #fff;
}

.app-shell[data-view="stadiums"] {
    padding-bottom: 96px;
    background: #fff;
    overflow: visible;
}

.app-shell[data-view="info"] {
    padding-bottom: 96px;
    background: #fff;
}

.app-shell[data-view="groups"]::before {
    opacity: 0;
}

.app-shell[data-view="stadiums"]::before {
    opacity: 0;
}

.app-shell[data-view="info"]::before {
    opacity: 0;
}

.app-shell[data-view="groups"] .topbar {
    display: none;
}

.app-shell[data-view="stadiums"] .topbar {
    display: none;
}

.app-shell[data-view="info"] .topbar {
    display: none;
}

#groupsScreen.active {
    display: grid;
    gap: 18px;
}

.groups-newspaper-head {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 12;
    width: min(100vw, 430px);
    display: grid;
    gap: 0;
    padding: calc(env(safe-area-inset-top) + 10px) 0 0;
    background: #fff;
    border-left: 5px solid var(--primary);
    border-right: 5px solid var(--primary);
    border-top: 5px solid var(--primary);
    transform: translateX(-50%);
}

.groups-newspaper-head img {
    display: block;
    width: calc(100% - 36px);
    max-width: 360px;
    height: 58px;
    margin: 0 18px;
    object-fit: contain;
    object-position: left center;
}

.groups-newspaper-head div {
    display: grid;
    place-items: center;
    min-height: 22px;
    width: min(94vw, 404px);
    margin: -5px auto 0;
    background: var(--primary);
    color: #fff;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 0.82rem;
    font-weight: 1000;
    line-height: 1;
    text-transform: uppercase;
}

.app-shell[data-view="groups"] #groupsScreen {
    padding-top: calc(env(safe-area-inset-top) + 100px);
}

.app-shell[data-view="stadiums"] #stadiumsScreen {
    padding-top: calc(env(safe-area-inset-top) + 100px);
}

.app-shell[data-view="info"] #infoScreen {
    padding-top: calc(env(safe-area-inset-top) + 100px);
}

.fixture-list-heading {
    margin: 4px 0 -8px;
    color: #111;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(1.2rem, 5.4vw, 1.55rem);
    font-weight: 1000;
    line-height: 1;
    text-transform: uppercase;
}

.date-fixture-group {
    display: grid;
    gap: 12px;
    padding: 0 1px 8px;
}

.date-fixture-heading {
    margin: 2px 0 8px;
    padding: 4px 6px 5px;
    border-bottom: 0;
    background: var(--primary);
    color: #fff;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 22px;
    font-weight: 1000;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.date-fixture-heading-sticky {
    position: sticky;
    top: calc(env(safe-area-inset-top) + 145px);
    z-index: 8;
}

.date-match-row {
    display: grid;
    gap: 2px;
    padding: 8px 0 10px 8px;
    border-bottom: 1px solid #d7d7d7;
    color: #111;
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.date-match-row strong {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(1.08rem, 5vw, 1.45rem);
    font-weight: 1000;
    line-height: 0.98;
    letter-spacing: 0;
    text-transform: uppercase;
}

.date-match-row span,
.date-match-row p {
    margin: 0;
    font-size: clamp(0.92rem, 4.2vw, 1.05rem);
    line-height: 1.12;
}

.date-match-row span {
    font-weight: 1000;
}

.date-match-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 122px;
    padding: 14px 44px 14px 16px;
    border-radius: 18px;
    color: #050505;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.date-match-card.color-1 {
    background: #19e95f;
}

.date-match-card.color-2 {
    background: #16d4ef;
}

.date-card-flags {
    display: grid;
    gap: 10px;
    justify-items: center;
}

.date-card-flags .badge {
    width: 62px;
    height: 42px;
}

.date-card-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.date-card-main strong {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 24px;
    font-weight: 1000;
    line-height: 0.95;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

.date-card-main span,
.date-card-main p {
    margin: 0;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-weight: 1000;
    line-height: 1;
}

.date-card-main span {
    font-size: 16px;
}

.date-card-main p {
   font-weight: 400;
    font-size: 12px;
}

.date-card-id {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 1000;
    line-height: 1;
}

.group-heading {
    width: fit-content;
    margin: 20px 0 12px;
    color: var(--ink);
    font-size: clamp(2.35rem, 12vw, 2.75rem);
    font-weight: 1000;
    border-bottom: 8px solid var(--blue);
    line-height: 1;
}

.group-heading.blue-title {
    color: var(--blue);
}

.standings-group {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 14px 18px 15px;
    border-radius: 12px;
    color: #050505;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.standings-group:nth-child(odd) {
    background: #19e95f;
}

.standings-group:nth-child(even) {
    background: #c7f5ff;
}

.standings-group h2 {
    margin: 0;
    padding-bottom: 7px;
    border-bottom: 4px solid #111;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(2.45rem, 12vw, 3.45rem);
    font-weight: 1000;
    line-height: 0.92;
    text-transform: uppercase;
}

.standings-table {
    display: grid;
}

.standings-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px 34px 34px;
    align-items: center;
    min-height: 44px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.55);
    color: #111;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-weight: 1000;
}

.standings-row:last-child {
    border-bottom: 0;
}

.standings-head {
    min-height: 28px;
    color: var(--primary);
    border-bottom-color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.82rem, 3.8vw, 1rem);
    text-transform: uppercase;
}

.standings-row > span:not(.standings-team) {
    text-align: center;
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.standings-team .badge {
    width: 38px;
    height: 26px;
    flex: 0 0 auto;
}

.standings-team strong {
    min-width: 0;
    overflow-wrap: break-word;
    font-size: 16px;
    line-height: 0.98;
    text-transform: uppercase;
}

.standings-row > span:not(.standings-team) {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
}

.standings-head > span:not(.standings-team) {
    font-size: inherit;
}

.match-card {
    position: relative;
    display: grid;
    gap: 10px;
    min-height: 0;
    padding: 14px 16px 20px;
    border: 0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.17);
}

.match-card.color-1 {
    background: #19e95f;
}

.match-card.color-2 {
    background: #16d4ef;
}

.match-card.color-3 {
    background: #ff0a82;
}

.match-card.color-4 {
    background: #c600f2;
}

.match-card.color-5 {
    background: #f3ff00;
}

.match-card.color-3 .match-id,
.match-card.color-4 .match-id,
.match-card.color-5 .match-id,
.match-card.color-3 .match-place span,
.match-card.color-4 .match-place span,
.match-card.color-5 .match-place span {
    color: rgba(0, 0, 0, 0.72);
}

.match-id {
    position: absolute;
    right: 10px;
    bottom: 8px;
    color: #6f6f6f;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 0.72rem;
    font-weight: 1000;
    line-height: 1;
}

.match-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 3px solid #111;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(1rem, 4.5vw, 1.18rem);
    font-weight: 1000;
    line-height: 1;
}

.match-card-head strong,
.match-card-head span {
    white-space: nowrap;
}

.match-card-head span {
    color: #044153;
}

.match-teams {
    display: grid;
    gap: 8px;
    padding: 2px 0 8px;
    border-bottom: 3px solid #111;
}

.fixture-team {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    align-items: center;
    justify-items: start;
    gap: 10px;
    min-width: 0;
}

.fixture-team strong {
    min-width: 0;
    color: #070707;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(1.45rem, 7vw, 2rem);
    font-weight: 1000;
    line-height: 0.95;
    text-align: left;
    text-transform: uppercase;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.badge {
    width: 46px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid #666;
    border-radius: 0;
    overflow: hidden;
    background: white;
    font-size: 0.75rem;
    font-weight: 1000;
}

.badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-place {
    display: grid;
    gap: 3px;
    color: #111;
    font-family: Arial, "Helvetica Neue", sans-serif;
    text-align: left;
    text-transform: none;
}

.match-place strong {
    font-size: clamp(1rem, 4.8vw, 1.22rem);
    font-weight: 1000;
    line-height: 1.05;
}

.match-place span {
    color: #5d6570;
    font-size: clamp(0.86rem, 3.8vw, 1rem);
    font-weight: 900;
    line-height: 1.05;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin: 10px 0 18px;
}

.section-title h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1;
}

.section-title span {
    color: var(--muted);
    font-weight: 1000;
}

.group-card,
.stadium-card,
.info-panel,
.empty-state {
    padding: 18px;
}

.info-panel {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.install-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title title"
        "text button";
    align-items: center;
    gap: 12px;
    padding: 14px 14px 14px 18px;
    border: 2px solid var(--primary);
    border-left-width: 8px;
    border-radius: 12px;
    background: linear-gradient(120deg, #d9f6ff, #f5fcff);
    box-shadow: 0 5px 14px rgba(0, 169, 220, 0.18);
}

.install-panel[hidden] {
    display: none;
}

.install-panel div {
    display: contents;
}

.install-panel strong {
    grid-area: title;
    font-family: Arial, "Helvetica Neue", sans-serif;
    color: #007da4;
    font-size: 1rem;
    font-weight: 1000;
    line-height: 1;
    text-transform: uppercase;
}

.install-panel span {
    grid-area: text;
    color: #23404b;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.18;
}

.install-panel button {
    grid-area: button;
    border: 2px solid #007da4;
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--primary);
    color: #fff;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 0.78rem;
    font-weight: 1000;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 3px 0 #007da4;
}

.install-panel button[hidden] {
    display: none;
}

.info-block {
    display: grid;
    gap: 10px;
    padding: 18px 16px;
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #18d4ee;
    color: #050505;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.info-block h2 {
    margin: 0;
    padding-bottom: 0;
    border-bottom: 0;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(1.32rem, 6.1vw, 1.72rem);
    font-weight: 1000;
    line-height: 0.9;
    text-transform: uppercase;
}

.info-block dl {
    display: grid;
    margin: 0;
}

.info-block dl > div {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
    gap: 10px;
    min-height: 34px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.24);
    align-items: center;
}

.info-block dl > div:last-child {
    border-bottom: 0;
}

.info-block dt,
.info-block dd {
    margin: 0;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-weight: 1000;
    line-height: 1.05;
    text-transform: uppercase;
}

.info-block dt {
    color: rgba(0, 0, 0, 0.62);
    font-size: clamp(0.8rem, 3.4vw, 0.94rem);
}

.info-block dd {
    color: #111;
    font-size: clamp(0.92rem, 4vw, 1.14rem);
    text-align: right;
}

.info-block p {
    margin: 0;
    color: #111;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(1rem, 4.5vw, 1.18rem);
    font-weight: 800;
    line-height: 1.18;
}

.info-block a {
    color: #174cff;
}

.info-note {
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.24);
    color: rgba(0, 0, 0, 0.68) !important;
    font-size: clamp(0.82rem, 3.7vw, 0.95rem) !important;
    font-weight: 1000 !important;
}

.info-block:first-child {
    position: relative;
    padding: 22px 20px 24px;
    background:
        radial-gradient(ellipse at 16% 12%, rgba(255, 255, 255, 0.18), transparent 38%),
        linear-gradient(112deg, #153771 0 55%, #061c55 55% 100%);
    color: #fff;
    border-radius: 24px;
}

.info-block:first-child::after {
    content: "";
    position: absolute;
    inset: 0 28% 0 auto;
    width: 38%;
    pointer-events: none;
    background: linear-gradient(102deg, transparent 0 20%, rgba(255, 255, 255, 0.08) 21% 100%);
}

.info-block:first-child h2,
.info-block:first-child dl {
    position: relative;
    z-index: 1;
}

.info-block:first-child h2 {
    color: #fff;
    font-size: clamp(1.45rem, 6.9vw, 2rem);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

.info-block:first-child dl > div {
    border-bottom-color: rgba(150, 211, 242, 0.45);
}

.info-block:first-child dt {
    color: #8acbe8;
    font-size: clamp(0.86rem, 4.1vw, 1.12rem);
}

.info-block:first-child dd {
    color: #fff;
    font-size: clamp(0.95rem, 4.6vw, 1.28rem);
    line-height: 0.98;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.info-block:nth-of-type(2) {
    background: linear-gradient(105deg, #ff028f, #c713aa);
}

.info-block:nth-of-type(3) {
    background: linear-gradient(105deg, #1be85d, #18d4ee);
}

.info-block:nth-of-type(4) {
    background: #fff;
    border: 3px solid #111;
    box-shadow: none;
}

.info-block:nth-of-type(5) {
    background: #f4f4f4;
    border: 3px solid #111;
    box-shadow: none;
}

.info-block:nth-of-type(n + 2):not(:nth-of-type(4)):not(:nth-of-type(5)) h2 {
    color: #000;
}

.stadium-card {
    display: grid;
    gap: 10px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.stadium-photo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 18px;
}

.stadium-sticky-info {
    position: sticky;
    top: calc(env(safe-area-inset-top) + 80px);
    z-index: 7;
    display: grid;
    gap: 10px;
    padding: 0px;
    background: #fff;
}

.stadium-kicker {
    display: flex;
    justify-content: space-between;
    gap: 0px;
    color: #6a6a6a;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 10px;
    font-weight: 100;
    line-height: .5;
    text-transform: uppercase;
}

.stadium-kicker span:last-child {
    color: var(--primary);
    text-align: right;
}

.group-card h2,
.stadium-card h2 {
    margin: 0;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: clamp(2rem, 9vw, 2.85rem);
    font-weight: 1000;
    line-height: 0.95;
    text-transform: uppercase;
}

.stadium-card h2 {
    padding-bottom: 8px;
    border-bottom: 6px solid #111;
    font-size: 38px;
    line-height: 0.9;
}

.stadium-location {
    margin: 0;
    padding-bottom: 0px;
    color: #5a5a5a;
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 800;
}

.stadium-match-list {
    display: grid;
}

.stadium-match-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    align-items: center;
    gap: 8px;
    min-height: 72px;
    margin-bottom: 9px;
    padding: 11px 10px 11px 12px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    font-family: Arial, "Helvetica Neue", sans-serif;
}

.stadium-match-card.color-1 {
    background: #19e95f;
}

.stadium-match-card.color-2 {
    background: #16d4ef;
}

.stadium-match-card.color-3 {
    background: #ff0a82;
}

.stadium-match-card.color-4 {
    background: #c600f2;
}

.stadium-match-card.color-5 {
    background: #f3ff00;
}

.stadium-match-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.stadium-match-copy strong {
    font-size: clamp(1rem, 4.6vw, 1.2rem);
    font-weight: 1000;
    line-height: 1.02;
    text-transform: uppercase;
}

.stadium-match-meta,
.stadium-match-date {
    display: block;
    font-family: Arial, "Helvetica Neue", sans-serif;
    line-height: 1.05;
}

.stadium-match-meta {
    font-size: clamp(0.72rem, 3.25vw, 0.86rem);
    font-weight: 1000;
    text-transform: uppercase;
}

.stadium-match-date {
    margin-top: 3px;
    font-size: clamp(0.84rem, 3.75vw, 1rem);
    font-weight: 1000;
    text-transform: uppercase;
}

.stadium-match-flags {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 6px;
}

.stadium-match-flags .badge {
    width: 41px;
    height: 29px;
    border-radius: 5px;
}

.team-pill {
    display: inline-flex;
    margin: 0 8px 8px 0;
    padding: 8px 10px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--yellow);
    font-weight: 1000;
}

.empty-state p {
    margin: 8px 0 0;
    color: #242424;
    font-family: Arial, sans-serif;
    font-weight: 700;
    line-height: 1.35;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 5;
    width: min(100vw, 430px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    transform: translateX(-50%);
    background: white;
    border-left: 5px solid var(--primary);
    border-right: 5px solid var(--primary);
    border-bottom: 5px solid var(--primary);
    padding: 10px 4px calc(10px + env(safe-area-inset-bottom));
}

.app-shell[data-view="welcome"] {
    height: 100vh;
    padding: env(safe-area-inset-top) clamp(18px, 4.7vw, 28px) clamp(18px, 3vh, 28px);
    background: #fff;
}

.app-shell[data-view="welcome"]::before {
    opacity: 0;
}

.app-shell[data-view="welcome"] .topbar {
    display: none;
}

.app-shell[data-view="welcome"] .bottom-nav {
    display: none;
}

.app-shell[data-view="welcome"] {
    height: 100svh;
    height: 100dvh;
    padding-bottom: max(env(safe-area-inset-bottom), 12px);
}

.app-shell[data-view="home"] {
    height: 100vh;
    padding-bottom: 92px;
}

.bottom-nav button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-width: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
    font-size: clamp(0.75rem, 3.7vw, 1rem);
    font-weight: 1000;
    cursor: pointer;
}

.bottom-nav img {
    width: 54px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.bottom-nav button.active {
    color: var(--blue);
    background: rgba(0, 169, 220, 0.14);
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.bottom-nav button.active img {
    filter: none;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    z-index: 20;
    width: min(360px, calc(100vw - 32px));
    padding: 12px 14px;
    border: 3px solid var(--ink);
    border-radius: 14px;
    background: var(--ink);
    color: white;
    font-family: Arial, sans-serif;
    font-weight: 700;
    text-align: center;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 360px) {
    .app-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .match-card {
        padding: 10px;
    }

    .badge {
        width: 42px;
        height: 31px;
    }

    .fixture-team {
        grid-template-columns: 46px minmax(0, 1fr);
    }
}
