* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    background-color: #f5f5f5;
    color: #222;
}

body {
    display: flex;
    flex-direction: column;
}


/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;

    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: 250px;
    height: auto;
    display: block;
}

.logo p {
    color: #222222;
    line-height: 1;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #222222;
    font-weight: 500;
}

.main-nav a:hover,
.footer-column a:hover {
    color: #d52b1e;
}

.header-user-info {
    color: #444444;
    font-size: 0.95rem;
}

.account-link {
    color: #d52b1e !important;
    font-weight: 700 !important;
}

.login-button {
    background-color: #d52b1e;
    color: #ffffff !important;
    border: 2px solid #d52b1e;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
}

.login-button:hover {
    background-color: #ffffff;
    color: #d52b1e !important;
}

.mobile-menu-toggle,
.burger-button {
    display: none;
}

.burger-button {
    width: 44px;
    height: 44px;
    border: 2px solid #d52b1e;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background-color: #ffffff;
}

.burger-button span {
    width: 22px;
    height: 3px;
    display: block;
    background-color: #d52b1e;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    padding-top: 120px;
}

.hero {
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
}


/* FOOTER */

footer {
    background-color: #1e1e1e;
    color: #ffffff;
    margin-top: auto;
    padding: 3rem 2rem 2rem;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 2rem;

    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 5rem;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 240px;
    text-align: left;
}

.footer-column h3 {
    margin-bottom: 1rem;
}

.footer-column p {
    margin-bottom: 0.15rem;
}

.footer-column p:last-child {
    margin-bottom: 0;
}

.footer-column p,
.footer-column a {
    color: #cccccc;
    text-decoration: none;
    line-height: 1.8;
}

.footer-copyright {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    color: #999999;
    font-size: 0.9rem;
}


/* HEADER + FOOTER RESPONSIVE */

@media (max-width: 768px) {
    .header-container {
        padding: 0.85rem 1rem;
        align-items: center;
    }

    .logo {
        gap: 0.5rem;
        font-size: 1rem;
    }

    .logo img {
        width: 165px;
    }

    .logo p {
        padding-left: 0.1rem;
        font-size: 1rem;
        font-weight: 800;
    }

    .burger-button {
        display: flex;
        flex-shrink: 0;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        background-color: #ffffff;
        border-bottom: 1px solid #dddddd;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
    }

    .main-nav a,
    .main-nav .header-user-info {
        width: 100%;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid #eeeeee;
    }

    .main-nav .login-button {
        margin: 1rem;
        width: calc(100% - 2rem);
        text-align: center;
    }

    .mobile-menu-toggle:checked ~ .main-nav {
        display: flex;
    }

    .mobile-menu-toggle:checked + .burger-button span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-toggle:checked + .burger-button span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle:checked + .burger-button span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    main {
        padding-top: 105px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    footer {
        padding: 2.5rem 1.25rem 1.75rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-column {
        width: 100%;
        min-width: 0;
    }

    .footer-copyright {
        justify-content: flex-start;
        text-align: left;
    }
}



/* LOGIN FORM */

.auth-page,
.login-required {
    min-height: 50vh;
    align-items: center;
}

.auth-card,
.login-required {
    width: 100%;
    max-width: 520px;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1.5rem;
    background-color: #f2f2f2;
    border-radius: 6px;
    padding: 0.35rem;
}

.auth-tab {
    border: none;
    background: transparent;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-tab.active {
    background-color: #d52b1e;
    color: #ffffff;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-weight: 500;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #d52b1e;
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.12);
}

.checkbox-label {
    flex-direction: row !important;
    align-items: center;
    gap: 0.6rem !important;
    font-weight: 400 !important;
}

.form-error {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background-color: #ffe8e5;
    color: #9e1f16;
    border-radius: 10px;
    font-weight: 500;
}

.login-required {
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.login-required h1 {
    margin-bottom: 0.5rem;
}

.account-card h1 {
    margin-bottom: 1.5rem;
}

.account-card h2 {
    margin-top: 0.5rem;
    font-size: 1.25rem;
}

.form-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 0.75rem 0;
}

.form-hint {
    margin-top: -0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.form-success {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background-color: #e8f7ec;
    color: #1f7a3a;
    border-radius: 10px;
    font-weight: 500;
}

.password-field {
    position: relative;
    display: block;
    width: 100%;
}

.auth-form .password-field input[type="password"],
.auth-form .password-field input[type="text"] {
    padding-right: 3.2rem;
}

.password-toggle-button {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    transform: translateY(-50%);

    width: 2.1rem;
    height: 2.1rem;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 999px;
    background-color: transparent;
    color: #666666;

    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease;
}

.password-field:hover .password-toggle-button,
.password-field:focus-within .password-toggle-button,
.password-field.is-visible .password-toggle-button {
    opacity: 1;
}

.password-toggle-button:hover,
.password-toggle-button:focus {
    background-color: #f2f2f2;
    color: #d52b1e;
    outline: none;
}

.password-toggle-button svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    fill: currentColor;
}

.password-toggle-icon-visible {
    display: none;
}

.password-toggle-button.is-visible .password-toggle-icon-hidden {
    display: none;
}

.password-toggle-button.is-visible .password-toggle-icon-visible {
    display: inline-flex;
}


/* TIPP ALLGEMEIN */

.tips-main {
    align-items: flex-start;
}

.tips-page {
    width: 100%;
    max-width: 1200px;
}

.tips-page h1 {
    margin-bottom: 1.5rem;
}

.tips-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.user-total-points {
    display: flex;
    gap: 0.6rem;
    min-width: 220px;
    padding: 0.7rem;
    background-color: #ffffff;
    border: 2px solid #d52b1e;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.user-total-points span {
    display: block;
    color: #666666;
    font-size: 1.6rem;
    font-weight: 600;
}

.user-total-points strong {
    display: block;
    font-size: 1.6rem;
    color: #d52b1e;
}

.tips-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tips-tab {
    border: 1px solid #d52b1e;
    background-color: #ffffff;
    color: #d52b1e;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.tips-tab.active {
    background-color: #d52b1e;
    color: #ffffff;
}

.tips-tab-content {
    display: none;
}

.tips-tab-content.active {
    display: block;
}

.tips-message {
    display: none;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-weight: 600;
}

.tips-message.active {
    display: block;
}

.tips-message.success {
    background-color: #e8f7ec;
    color: #1f7a3a;
}

.tips-message.error {
    background-color: #ffe8e5;
    color: #9e1f16;
}

.tips-save-bar {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: none;
    gap: 0.75rem;
    z-index: 1200;
}

.tips-save-bar.active {
    display: flex;
}

.save-button,
.cancel-button {
    border: none;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.save-button {
    background-color: #1f9d55;
}

.cancel-button {
    background-color: #d52b1e;
}

.save-button:disabled,
.cancel-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-home {
    justify-content: flex-end;
    text-align: right;
}

.team-away {
    justify-content: flex-start;
    text-align: right;
}

.team-name {
    font-weight: 600;
}

.team-flag {
    width: 38px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.team-flag.small {
    width: 28px;
}

.tip-input {
    width: 70px;
    padding: 0.7rem;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.tip-input:focus {
    outline: none;
    border-color: #d52b1e;
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.12);
}

.tip-input:disabled {
    background-color: #eeeeee;
    cursor: not-allowed;
}

.tip-input.tip-correct {
    background-color: #e8f7ec;
    border-color: #1f9d55;
    color: #1f7a3a;
}

.tip-input.tip-difference {
    background-color: #fff6d6;
    border-color: #d6a700;
    color: #8a6d00;
}

.tip-input.tip-wrong {
    background-color: #ffe8e5;
    border-color: #d52b1e;
    color: #9e1f16;
}

.tip-points,
.group-tip-points {
    font-weight: 800;
}

.tip-points {
    min-width: 70px;
    text-align: center;
    color: #1f9d55;
    font-size: 1.1rem;
}

.tip-points-zero,
.group-tip-points.tip-points-zero {
    color: #d52b1e;
}

.tip-points-one,
.group-tip-points.tip-points-one {
    color: #e67e22;
}

.tip-points-two,
.group-tip-points.tip-points-two {
    color: #d6a700;
}

.tip-points-three,
.group-tip-points.tip-points-three {
    color: #45b36b;
}

.tip-points-four,
.group-tip-points.tip-points-four {
    color: #1f7a3a;
}

@media (max-width: 768px) {
    .tips-main {
        padding: 1rem;
        padding-top: 105px;
    }

    .tips-page h1 {
        margin-bottom: 0;
        font-size: 1.8rem;
    }

    .tips-page-header {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }

    .user-total-points {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .user-total-points span,
    .user-total-points strong {
        font-size: 1.25rem;
    }

    .tips-tabs {
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .tips-tab {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }

    .tips-save-bar {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        justify-content: center;
    }

    .tips-save-bar .save-button,
    .tips-save-bar .cancel-button {
        flex: 1;
        padding: 0.8rem 1rem;
    }
}


/* TIPPS TAB 1 ALLE SPIELE */

.match-date-heading {
    margin: 2rem 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #222;
}

.match-date-heading:first-of-type {
    margin-top: 0;
}

.match-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.match-row {
    display: grid;
    grid-template-columns: 1fr 70px 90px 70px 1fr 80px;
    gap: 1rem;
    align-items: center;
}

.match-row-responsive {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px;
    gap: 0.85rem 1rem;
    align-items: center;
}

.match-team-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 40px;
    gap: 0.75rem;
    align-items: center;
}

.match-team-line-home {
    grid-column: 1;
    grid-row: 1;
}

.match-team-line-away {
    grid-column: 1;
    grid-row: 2;
}

.match-team-result {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    font-size: 1.15rem;
    font-weight: 800;
}

.match-row-responsive .tip-points {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
}

.match-result {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.match-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
    color: #666;
    font-size: 0.9rem;
}

.match-locked {
    color: #d52b1e;
    font-weight: 600;
}

.match-points-mobile {
    display: none;
}

@media (max-width: 768px) {
    .match-date-heading {
        margin: 1.4rem 0 0.65rem;
        font-size: 1.1rem;
    }

    .match-card {
        padding: 0.7rem;
        border-radius: 12px;
        margin-bottom: 0.75rem;
		display: flex;
        flex-direction: column;
        align-items: center;
    }

    .match-row {
        display: grid;
        grid-template-columns: minmax(80px, 130px) 28px 46px 32px;
        gap: 0.4rem;
        align-items: center;
        text-align: left;
    }

    .match-row .team,
    .match-row .team-home,
    .match-row .team-away,
    .match-row .match-result {
        display: contents;
    }

    .match-row .team-home .team-name {
        grid-column: 1;
        grid-row: 1;
    }

    .match-row .team-home .team-flag {
        grid-column: 2;
        grid-row: 1;
    }

    .match-row .tip-input[data-side="home"] {
        grid-column: 3;
        grid-row: 1;
    }

    .match-row .match-result span:nth-child(1) {
        grid-column: 4;
        grid-row: 1;
    }

    .match-row .match-result span:nth-child(2) {
        display: none;
    }

    .match-row .match-result span:nth-child(3) {
        grid-column: 4;
        grid-row: 2;
    }

    .match-row .team-away .team-name {
        grid-column: 1;
        grid-row: 2;
    }

    .match-row .team-away .team-flag {
        grid-column: 2;
        grid-row: 2;
    }

    .match-row .tip-input[data-side="away"] {
        grid-column: 3;
        grid-row: 2;
    }

    .match-row .team-name {
        display: -webkit-box;
        min-width: 80px;
        max-width: 130px;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
        line-height: 1.15;
        font-size: 0.85rem;
        font-weight: 700;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .match-row .team-flag {
        width: 28px;
    }

    .match-row .tip-input {
        width: 46px;
        min-width: 0;
        margin: 0;
        padding: 0.42rem 0.2rem;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    .match-row .match-result span {
        text-align: center;
        font-size: 0.9rem;
        font-weight: 800;
    }

    .match-row > .tip-points {
        display: none;
    }

    .match-meta {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.35rem 0.65rem;
        margin-top: 0.6rem;
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .match-meta span {
        max-width: 130px;
        white-space: normal;
        overflow-wrap: normal;
        word-break: normal;
    }

    .match-meta .match-locked {
        max-width: none;
    }

    .match-points-mobile {
        display: inline;
        font-weight: 800;
    }
}


/* TIPPS TAB 2 GRUPPEN */

.group-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.group-card h2 {
    margin-bottom: 1.5rem;
}

.group-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: flex-start;
}

.group-matches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-match {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 1rem;
    background-color: #fafafa;
}

.group-match-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 700;
}

.group-match-locked {
    margin-bottom: 0.75rem;
    color: #d52b1e;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 20px;
}

.group-team-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) 70px 50px;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.65rem;
}

.group-team-row:last-child {
    margin-bottom: 0;
}

.group-team-name {
    font-weight: 600;
}

.group-result {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.group-table-wrap {
    position: sticky;
    top: 130px;
    align-self: flex-start;
    width: 100%;
    max-width: 100%;
}

.group-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.9rem;
}

.group-table tr {
    height: 58px;
}

.group-table th,
.group-table td {
    height: 58px;
    min-height: 58px;
    padding: 0.45rem;
    border-bottom: none;
    text-align: center;
    vertical-align: middle;
    overflow: hidden;
    box-shadow: inset 0 -1px 0 #e5e5e5;
}

.group-table th:first-child,
.group-table td:first-child {
    text-align: left;
}

.group-table th:not(:first-child),
.group-table td:not(:first-child) {
    width: 42px;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.group-table-team {
    height: 58px;
    min-height: 58px;
    max-height: 58px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    overflow: hidden;
}

.group-table-team span {
    display: -webkit-box;
    max-width: 125px;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1000px) {
    .group-layout {
        grid-template-columns: 1fr;
    }

    .group-table-wrap {
        position: static;
    }
}

@media (max-width: 768px) {
    .group-card {
        padding: 0.8rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .group-card h2 {
        margin-bottom: 0.9rem;
        font-size: 1.25rem;
    }

    .group-layout {
        gap: 1rem;
    }

    .group-matches {
        gap: 0.75rem;
    }

    .group-match {
        padding: 0.7rem;
        border-radius: 10px;
    }

    .group-match-meta {
        gap: 0.5rem;
        margin-bottom: 0.55rem;
        font-size: 0.75rem;
    }

    .group-match-datetime {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
    }

    .group-match-locked {
        margin-right: 0;
        margin-bottom: 0;
        font-size: 0.75rem;
    }

    .group-team-row {
        grid-template-columns: max-content minmax(0, 1fr) 46px 32px;
        gap: 0.4rem;
        margin-bottom: 0.45rem;
    }

    .group-team-name {
		display: block;
		max-width: 100px;
		white-space: normal;
		overflow-wrap: normal;
		word-break: normal;
		line-height: 1.15;
		font-size: 0.85rem;
		font-weight: 600;
		overflow: hidden;
	}

    .group-team-row .team-flag {
        width: 28px;
    }

    .group-team-row .tip-input {
        width: 46px;
        padding: 0.42rem 0.2rem;
        border-radius: 8px;
        font-size: 0.9rem;
    }

    .group-result {
        font-size: 0.9rem;
    }

    .group-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .group-table {
        table-layout: fixed;
        font-size: 0.82rem;
    }

    .group-table tr {
        height: 40px;
    }

    .group-table th,
    .group-table td {
        height: 40px;
        min-height: 40px;
        padding: 0.25rem 0.4rem;
        white-space: nowrap;
    }
	
    .group-table th:first-child {
		width: 130px;
	}

    .group-table th:first-child,
    .group-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 2;
        min-width: 130px;
        background-color: #ffffff;
    }

    .group-table th:first-child {
        z-index: 3;
    }

    .group-table-team {
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        gap: 0.35rem;
        overflow: hidden;
    }

    .group-table-team span {
        max-width: 112px;
        white-space: normal;
        line-height: 1.15;
        font-size: 0.78rem;
    }

    .group-table-team .team-flag.small {
        flex-shrink: 0;
        width: 22px;
    }
}


/* TIPPS TAB 3 TURNIERBAUM */

.bracket-page {
    width: 100%;
}

.bracket-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}


/* Bracket Grid */

.bracket-grid {
    --bracket-card-height: 180px;
    --bracket-card-gap: 1rem;
    --bracket-column-gap: 1rem;
    --bracket-title-height: 2.4rem;
    --bracket-body-height: calc((8 * var(--bracket-card-height)) + (7 * var(--bracket-card-gap)));
    --bracket-line-color: #d52b1e;
    --bracket-line-width: 3px;

    position: relative;
    width: 100%;

    display: grid;
    grid-template-columns: repeat(9, minmax(82px, 1fr));
    gap: var(--bracket-column-gap);
    align-items: start;

    padding-top: var(--bracket-title-height);
	padding-bottom: 20px;
}

.bracket-stage {
    position: relative;
    min-height: var(--bracket-body-height);
    z-index: 2;
}

.bracket-stage-body {
    min-height: var(--bracket-body-height);
    display: flex;
    flex-direction: column;
}

.bracket-stage-8 .bracket-stage-body {
    justify-content: flex-start;
    gap: var(--bracket-card-gap);
}

.bracket-stage-4 .bracket-stage-body,
.bracket-stage-2 .bracket-stage-body,
.bracket-stage-1 .bracket-stage-body {
    justify-content: space-around;
}

.bracket-stage-final {
    min-height: var(--bracket-body-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10rem;
}

.bracket-column-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.35rem);

    min-height: var(--bracket-title-height);
    display: flex;
    align-items: flex-end;
    justify-content: center;

    font-size: 0.85rem;
    font-weight: 700;
    color: #222222;
    text-align: center;
    white-space: nowrap;
}

.bracket-final-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 240px;
}

.bracket-final-box {
	justify-content: flex-end;
}

.bracket-place3-box {
	justify-content: flex-start;
}

.bracket-final-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    color: #222222;
}

.bracket-match {
    position: relative;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: var(--bracket-card-height);
    background-color: #ffffff;
    border-radius: 10px;
    padding: 0.55rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    z-index: 3;
    cursor: pointer;
}

.bracket-match:hover {
    outline: 2px solid #d52b1e;
}

.bracket-match-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888888;
    font-weight: 600;
    cursor: default;
}

.bracket-match-empty:hover {
    outline: none;
}

.bracket-match-head {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    color: #666666;
    line-height: 1.2;
}

.bracket-match-points {
    margin-left: 0.35rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.bracket-team-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0.2rem 0.25rem;
    min-height: 2.65rem;
    padding: 0.25rem;
    border-radius: 6px;
    background-color: #f7f7f7;
    margin-bottom: 0.25rem;
}

.bracket-team-row:last-child {
    margin-bottom: 0;
}

.bracket-team-flag {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;

    width: 18px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.bracket-team-name {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;

    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
}

.bracket-team-placeholder {
    grid-column: 1 / span 2;
    grid-row: 1;
    justify-self: start;

    max-width: 100%;
    text-align: left;
}

.bracket-tip-value {
    grid-column: 1;
    grid-row: 2;
    justify-self: stretch;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 22px;
    padding: 0.1rem 0.25rem;

    border-radius: 6px;
    background-color: #eeeeee;
    color: #333333;

    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
}

.bracket-tip-value.tip-correct {
    background-color: #e8f7ec;
    color: #1f7a3a;
}

.bracket-tip-value.tip-difference {
    background-color: #fff6d6;
    color: #8a6d00;
}

.bracket-tip-value.tip-wrong {
    background-color: #ffe8e5;
    color: #9e1f16;
}

.bracket-score {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 22px;

    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 1200px) {
    .bracket-grid {
        --bracket-card-height: 180px;
        --bracket-card-gap: 0.75rem;
        --bracket-column-gap: 0.8rem;
    }

    .bracket-match {
        padding: 0.45rem;
    }

    .bracket-match-head {
        gap: 0.15rem;
        font-size: 0.65rem;
    }

    .bracket-team-name {
        font-size: 0.72rem;
    }

    .bracket-tip-value {
        min-width: 23px;
        min-height: 21px;
        font-size: 0.72rem;
    }

    .bracket-score {
        min-width: 21px;
        font-size: 0.78rem;
    }

    .bracket-column-title,
    .bracket-final-title {
        font-size: 0.78rem;
    }
	
	.bracket-column-first-title {
		left: 15px;	
	}
}

@media (max-width: 980px) {
    .bracket-page {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bracket-grid {
        min-width: 1050px;
    }
}


/* Bracket Modal */

.bracket-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
}

.bracket-modal.active {
    display: block;
}

.bracket-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
}

.bracket-modal-dialog {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.bracket-modal-panel {
    width: min(720px, calc(100vw - 2rem));
}

.bracket-modal-card {
    position: relative;
    width: 100%;
    min-height: 30vh;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem 4.25rem;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.bracket-modal-close {
    position: absolute;
    top: 0.75rem;
    right: calc(54px + 1rem);
    z-index: 5;

    border: none;
    background: transparent;
    color: #333333;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.bracket-modal.is-last .bracket-modal-close {
    right: 1rem;
}

.bracket-modal-close:hover {
    color: #d52b1e;
}

.bracket-modal-side {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54px;
    border: none;
    background-color: #eeeeee;
    color: #333333;
    cursor: pointer;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;
}

.bracket-modal-side span {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
}

.bracket-modal-side:hover {
    background-color: #e0e0e0;
    color: #d52b1e;
}

.bracket-modal-side-left {
    left: 0;
    border-radius: 16px 0 0 16px;
}

.bracket-modal-side-right {
    right: 0;
    border-radius: 0 16px 16px 0;
}

.bracket-modal-side.is-placeholder {
    opacity: 0;
    pointer-events: none;
}

.bracket-modal-tip-input {
    padding: 0.7rem;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
}

.bracket-modal-tip-input:focus {
    outline: none;
    border-color: #d52b1e;
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.12);
}

.bracket-modal-tip-input:disabled {
    background-color: #eeeeee;
    cursor: not-allowed;
}

.bracket-modal-tip-input.tip-correct {
    background-color: #e8f7ec;
    border-color: #1f9d55;
    color: #1f7a3a;
}

.bracket-modal-tip-input.tip-difference {
    background-color: #fff6d6;
    border-color: #d6a700;
    color: #8a6d00;
}

.bracket-modal-tip-input.tip-wrong {
    background-color: #ffe8e5;
    border-color: #d52b1e;
    color: #9e1f16;
}

.bracket-modal-tip-input.tip-correct:disabled,
.bracket-modal-tip-input.tip-difference:disabled,
.bracket-modal-tip-input.tip-wrong:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.bracket-modal-status-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.bracket-modal-status-line .group-tip-points {
    font-weight: 800;
}

.bracket-modal-footer {
    min-height: 46px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.bracket-modal-info {
    min-height: 1.4rem;
    color: #666666;
    font-size: 0.9rem;
    font-weight: 600;
}

.bracket-modal-info.warning {
    color: #d52b1e;
}

.bracket-modal-info.success {
    color: #1f7a3a;
}

.bracket-modal-actions {
    visibility: hidden;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.bracket-modal-actions.active {
    visibility: visible;
}

.bracket-match-meta {
    width: 90%;
}

html.bracket-modal-scroll-lock,
body.bracket-modal-scroll-lock {
    overflow: hidden;
}

body.bracket-modal-scroll-lock {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
}

.bracket-modal {
    overscroll-behavior: contain;
}

.bracket-modal-dialog {
    overflow-y: auto;
    overscroll-behavior: contain;
}

@media (max-width: 980px) {
    .bracket-modal-panel {
        width: min(680px, calc(100vw - 3rem));
    }

    .bracket-modal-card {
		min-height: 40vh;
        padding: 1.5rem 3.5rem;
    }

    .bracket-modal-side {
        width: 42px;
    }

    .bracket-modal-side span {
        font-size: 2.4rem;
    }

    .bracket-modal-close {
        right: calc(42px + 1rem);
    }

    .bracket-modal.is-last .bracket-modal-close {
        right: 1rem;
    }
}

@media (max-width: 600px) {
    .bracket-modal-panel {
        width: calc(100vw - 5rem);
    }

    .bracket-modal-card {
		min-height: 45vh;
        padding: 1.25rem 2.75rem 0.75rem;
    }

    .bracket-modal-side {
        width: 34px;
    }

    .bracket-modal-side span {
        font-size: 2rem;
    }

    .bracket-modal-close {
        right: calc(34px + 0.75rem);
    }

    .bracket-modal.is-last .bracket-modal-close {
        right: 0.75rem;
    }

    .bracket-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .bracket-modal-actions {
        width: 100%;
    }

    .bracket-modal-actions .save-button,
    .bracket-modal-actions .cancel-button {
        flex: 1;
    }
}


/* ADMIN ALLGEMEIN - DESKTOP */

.admin-tabs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-tabs-toolbar .tips-tabs {
    margin-bottom: 0;
}

.admin-api-sync-button,
.admin-log-download-button {
    display: none;

    background-color: #1f7a3a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.admin-api-sync-button.active,
.admin-log-download-button.active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-api-sync-button:hover,
.admin-log-download-button:hover {
    background-color: #ffffff;
    color: #1f7a3a;
    outline: 2px solid #1f7a3a;
}

.admin-api-sync-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ADMIN ALLGEMEIN - MOBIL */

@media (max-width: 768px) {
    .admin-tabs-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-tabs-toolbar .tips-tabs {
        width: 100%;
    }

    .admin-api-sync-button,
    .admin-log-download-button {
        width: 100%;
    }
}


/* ADMIN TAB 1 ERGEBNISSE - DESKTOP */

.admin-result-row {
    grid-template-columns: 1fr 70px 40px 70px 1fr;
}

.result-input {
    width: 70px;
    padding: 0.6rem;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.result-input:focus {
    outline: none;
    border-color: #d52b1e;
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.12);
}

.result-input:disabled {
    background-color: #eeeeee;
    color: #888888;
    cursor: not-allowed;
}

.admin-result-separator {
    min-width: auto;
    font-size: 1.4rem;
    font-weight: 800;
}

.match-finished {
    color: #1f7a3a;
    font-weight: 700;
}

.match-open {
    color: #d52b1e;
    font-weight: 700;
}

.admin-kickoff-field {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-kickoff-field span {
    font-weight: 700;
}

.kickoff-input {
    min-width: 190px;
    padding: 0.45rem 0.6rem;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font: inherit;
}

/* ADMIN TAB 1 ERGEBNISSE - MOBIL */

@media (max-width: 768px) {
    .admin-result-row {
        grid-template-columns: 1fr 58px 24px 58px 1fr;
        gap: 0.55rem;
    }

    .result-input {
        width: 58px;
        padding: 0.5rem;
        font-size: 0.95rem;
    }

    .admin-result-separator {
        font-size: 1.2rem;
    }
}

@media (max-width: 560px) {
    .admin-result-row {
        grid-template-columns: 1fr 52px 20px 52px 1fr;
        gap: 0.4rem;
    }

    .result-input {
        width: 52px;
        padding: 0.45rem;
        font-size: 0.9rem;
    }
}

/* ADMIN TAB 1 Dropdowns */

.ko-team-select {
    width: 100%;
    max-width: 220px;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 10px;
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: #222222;
}

.ko-team-select:focus {
    outline: none;
    border-color: #d52b1e;
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.12);
}

.admin-ko-result-row .team {
    min-width: 0;
}

.admin-ko-result-row .team-home {
    justify-content: flex-end;
}

.admin-ko-result-row .team-away {
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .ko-team-select {
        max-width: 160px;
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

@media (max-width: 560px) {
    .admin-ko-result-row {
        grid-template-columns: 1fr 52px 20px 52px 1fr;
    }

    .ko-team-select {
        max-width: 120px;
        font-size: 0.78rem;
    }
}


/* ADMIN TAB 2 AUSWERTUNG - DESKTOP */

.admin-ranking-page h2 {
    margin-bottom: 1.5rem;
}

.ranking-card {
    width: 100%;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 1rem;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.ranking-table th {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 700;
}

.ranking-table td {
    font-weight: 600;
}

.ranking-table th:first-child,
.ranking-table td:first-child {
    width: 100px;
    text-align: center;
}

.ranking-table th:last-child,
.ranking-table td:last-child {
    width: 120px;
    text-align: right;
}

.ranking-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-ranking-table .ranking-email-link {
    color: inherit;
    text-decoration: none;
}

.admin-ranking-table .ranking-email-link:hover {
    color: #d52b1e;
    text-decoration: underline;
}

/* ADMIN TAB 2 AUSWERTUNG - MOBIL */

@media (max-width: 768px) {
    .ranking-card {
        padding: 1rem;
        overflow-x: auto;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 0.8rem;
    }
}


/* ADMIN TAB 3 LOGS - DESKTOP */

.admin-api-log-page h2 {
    margin-bottom: 1.5rem;
}

.admin-api-log-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.admin-api-log-output {
    max-height: 650px;
    overflow: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #222222;
}

/* ADMIN TAB 3 LOGS - MOBIL */

@media (max-width: 768px) {
    .admin-api-log-card {
        padding: 1rem;
    }

    .admin-api-log-output {
        max-height: 520px;
        font-size: 0.78rem;
    }
}


/* USER RANGLISTE */

.ranking-main {
    flex: 1;
}

.ranking-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.ranking-page h1 {
    margin-bottom: 2rem;
}

.current-user-rank {
    background-color: #e8f7ec;
}

.current-user-rank td {
    color: #1f7a3a;
    font-weight: 800;
}

.rank-scroll-button {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 50;

    display: none;

    background-color: #1f7a3a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.25rem;
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    --rank-scroll-button-bottom: 2rem;
    bottom: var(--rank-scroll-button-bottom);
}

.rank-scroll-button.active {
    display: block;
}

.rank-scroll-button:hover {
    background-color: #ffffff;
    color: #1f7a3a;
    outline: 2px solid #1f7a3a;
}


@media (max-width: 768px) {
    .ranking-card {
        padding: 1rem;
        overflow-x: auto;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 0.8rem;
    }

    .rank-scroll-button {
        right: 1rem;
        --rank-scroll-button-bottom: 1rem;
    }
}


/* LANDINGPAGE */

.landing-main {
    display: block;
    padding: 0;
    background-color: #f5f5f5;
}

.landing-hero {
    min-height: 72vh;
    padding: 5rem 10rem;
    margin-top: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    align-items: center;
    gap: 3rem;
    background:
        radial-gradient(circle at top right, rgba(213, 43, 30, 0.18), transparent 32%),
        linear-gradient(135deg, #181818 0%, #2a2a2a 52%, #111111 100%);
    color: #ffffff;
}

.landing-hero-content,
.landing-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.landing-kicker {
    margin-bottom: 0.75rem;
    color: #d52b1e;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
}

.landing-hero h1 {
    max-width: 750px;
    margin-bottom: 1.5rem;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    line-height: 1.02;
    font-weight: 800;
}

.landing-hero-text {
    max-width: 760px;
    margin-bottom: 2rem;
    color: #e4e4e4;
    font-size: 1.2rem;
    line-height: 1.7;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.landing-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border: 2px solid #ffffff;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
}

.landing-secondary-button:hover {
    background-color: #ffffff;
    color: #d52b1e;
}

.landing-hero-card {
    justify-self: end;
    max-width: 360px;
    padding: 2rem;
    border-radius: 22px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.landing-card-label {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    background-color: #d52b1e;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.landing-hero-card h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
    line-height: 1.15;
}

.landing-hero-card p {
    color: #eeeeee;
    line-height: 1.7;
}

.landing-section {
    padding: 4.5rem 2rem;
}

.landing-section-header {
    margin-bottom: 2rem;
}

.landing-section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.text-highlight {
	color: #d52b1e;
}

.landing-info-grid,
.prize-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.landing-info-card,
.prize-card,
.rules-card,
.rules-text,
.faq-list details {
    background-color: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.landing-info-card {
    padding: 1.75rem;
}

.landing-info-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
}

.landing-info-card p,
.rules-text p,
.faq-list p {
    color: #666666;
    line-height: 1.7;
}

.landing-prizes {
    max-width: none;
    padding-left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
    padding-right: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
    background-color: #ffffff;
}

.landing-prizes .landing-section-header,
.landing-prizes .prize-grid,
.landing-prizes .landing-note {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.prize-card {
    border: 2px solid transparent;	
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prize-card-main {
    border-color: #d52b1e;
}

.prize-card-text {
	margin: 2rem 2rem 0 2rem;
}

.prize-card-text span {
    display: block;
    margin-bottom: 0.75rem;
    color: #d52b1e;
    font-weight: 800;
}

.prize-card-text p {
    margin: 0.75rem 0;
}

.prize-card-text h3 {
    font-size: 1.45rem;
    line-height: 1.3;
}


.prize-card img {
	max-height: 15rem;
	object-fit: contain;
  	object-position: center;
    margin: 2rem 0;
}

.k-o-text {
	white-space: nowrap;	
}

.landing-note {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    border-left: 5px solid #d52b1e;
    background-color: #f5f5f5;
    color: #444444;
    line-height: 1.7;
    border-radius: 12px;
}

.landing-note ul {
    margin-left: 20px;
}

.rules-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.rules-card {
    padding: 1.5rem;
}

.rules-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eeeeee;
}

.rules-row:last-child {
    border-bottom: none;
}

.rules-row span {
    font-weight: 600;
}

.rules-row strong {
    color: #d52b1e;
    white-space: nowrap;
}

.rules-text {
    padding: 1.75rem;
}

.rules-text h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.rules-text p + p {
    margin-top: 1rem;
}

.landing-faq {
    padding-bottom: 5.5rem;
}

.faq-list {
    display: grid;
    gap: 1rem;
}

.faq-list details {
    padding: 1.25rem 1.5rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 1.05rem;
}

.faq-list summary::marker {
    color: #d52b1e;
}

.faq-list p {
    margin-top: 1rem;
}

@media (max-width: 1300px) {
	.landing-hero-content h1 {
		font-size: 4rem;
	}
}

@media (max-width: 1220px) {
	.landing-hero-content h1 {
		font-size: 3rem;
	}
}

@media (max-width: 1070px) {
	.landing-hero {
        display: flex;
        flex-direction: column;
        padding: 6rem 1.5rem 4rem 1.5rem;
    }
	
	.landing-hero-content {
		margin-left: 5vw;
		margin-right: 5vw;
	}
	
    .landing-hero-card {
		margin-right: 5vw;
		margin-left: 5vw;
        justify-self: start;
        max-width: 100%;
    }

    .landing-info-grid,
    .prize-grid,
    .rules-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .landing-section {
        padding: 3.5rem 1.5rem;
    }

    .landing-hero h1 {
        font-size: 2rem;
    }

    .landing-hero-text {
        font-size: 1.05rem;
    }

    .landing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-secondary-button,
    .landing-hero-actions .login-button {
        width: 100%;
        text-align: center;
    }
}

/* DECIDED BY RADIO BUTTONS */

.decision-tip-row,
.admin-decision-row,
.bracket-modal-decision-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid #eeeeee;
}

.decision-tip-title,
.admin-decision-title,
.bracket-modal-decision-title {
    color: #555555;
    font-size: 0.9rem;
    font-weight: 800;
}

.decision-radio-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.decision-radio-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid #dddddd;
    border-radius: 999px;
    background-color: #ffffff;
    color: #333333;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.decision-radio-label input {
    accent-color: #d52b1e;
}

.decision-radio-label:has(input:checked) {
    border-color: #d52b1e;
    background-color: #fff0ee;
    color: #d52b1e;
}

.decision-radio-label:has(input:disabled) {
    opacity: 0.65;
    cursor: not-allowed;
}

.tip-points-five,
.group-tip-points.tip-points-five {
    color: #0f5c2a;
}

@media (max-width: 768px) {
    .decision-tip-row,
    .admin-decision-row,
    .bracket-modal-decision-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .decision-radio-group {
        width: 100%;
        justify-content: flex-start;
        gap: 0.45rem;
    }

    .decision-radio-label {
        padding: 0.4rem 0.55rem;
        font-size: 0.78rem;
    }
}

/* TIPS INLINE ERROR MESSAGE */

.tips-inline-error {
    display: none;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0.9rem 1rem;

    border: 1px solid #d52b1e;
    border-radius: 12px;
    background-color: #ffe8e5;
    color: #9e1f16;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;

    box-shadow: 0 10px 28px rgba(213, 43, 30, 0.12);
}

.tips-inline-error.active {
    display: block;
}

.match-card.has-inline-error,
.group-match.has-inline-error {
    outline: 2px solid #d52b1e;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .tips-inline-error {
        margin-bottom: 0.55rem;
        padding: 0.75rem 0.85rem;
        border-radius: 10px;
        font-size: 0.85rem;
    }
}