/*
Theme Name: WK Poule Comceptum
Theme URI: https://wkpoule.comceptum.nl
Author: Hendry Bolt
Author URI: http://comceptum.nl
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wkpoule-comceptum
*/

/* Tokens */
:root {
    --base: 15px;
    --tiny: max(7.5px, calc(var(--base) * 0.675));
    --extrasmall: max(10px, calc(var(--base) * 1));
    --small: max(15px, calc(var(--base) * 1.5));
    --smallmedium: max(22.5px, calc(var(--base) * 2));
    --medium: max(30px, calc(var(--base) * 2.5));
    --mediumlarge: calc(var(--base) * 3);
    --large: calc(var(--base) * 4);
    --largehuge: calc(var(--base) * 5);
    --extralarge: calc(var(--base) * 6);
    --huge: calc(var(--base) * 8);
    --massive: calc(var(--base) * 10);
    --primary-color: #3E072D;
    --primary-color-dark: #2a051e;
    --primary-color-soft: #662251;
    --secondary-color: #C9A6F9;
    --secondary-color-hover: #FCF066;
    --surface-color: #ffffff;
    --text-white: #ffffff;
    --text-black: #191919;
    --border-light-color: rgba(255, 255, 255, 0.18);
    --border-dark-color: #1f1f1f;
    --radius-small: 12px;
    --radius-medium: 14px;
    --radius-large: 24px;
    --font-family-heading: "field-gothic-xwide", "Helvetica Neue", Arial, sans-serif;
    --font-family-body: "field-gothic-wide", "Helvetica Neue", Arial, sans-serif;
    --transition-base: 0.3s ease;
    --header-logo-width: 300px;
    --footer-logo-width: 300px;
    --menu-toggle-size: 45px;
    --menu-bar-width: 34px;
    --menu-bar-height: 4px;
    --menu-bar-gap: 7px;
    --menu-overlay-background-color: var(--primary-color-soft);
    --menu-overlay-duration: 0.45s;
    --menu-overlay-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --menu-list-offset: 175px;
    --menu-link-gap: 52px;
    --menu-desktop-underline-height: 3px;
    --button-fill-duration: 0.45s;
    --button-fill-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --hero-desktop-max-width: 760px;
    --hero-desktop-intro-max-width: 700px;
    --button-height: 50px;
    --intro-max-width: 820px;
    --prize-sponsor-max-width: 460px;
    --footer-line-max-width: 42rem;
    --hero-padding-top: var(--large);
    --card-padding: var(--smallmedium);
    --footer-padding-top: calc(var(--largehuge) + var(--small));
    --footer-padding-bottom: var(--largehuge);
}

/* Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    min-height: 100%;
    background: var(--primary-color);
    color: var(--text-white);
    font-family: var(--font-family-body);
    font-size: 16px;
    line-height: 1.45;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin-top: 0;
    margin-bottom: var(--extrasmall);
    line-height: 1.1;
    font-family: var(--font-family-heading);
    font-weight: 900;
    text-wrap: balance;
}

h1,
.h1 {
    font-size: 34px;
}

h2,
.h2 {
    font-size: 28px;
}

h3,
.h3 {
    font-size: 24px;
}

h4,
.h4 {
    font-size: 20px;
}

h5,
.h5 {
    font-size: 18px;
}

h6,
.h6 {
    font-size: 16px;
}

p {
    margin-top: 0;
    margin-bottom: var(--extrasmall);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

ul,
ol {
    margin-top: 0;
    margin-bottom: var(--extrasmall);
    padding-left: 0;
}

ul li {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

:is(input, textarea, select, button) {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

:focus-visible {
    outline-color: var(--secondary-color);
    outline-offset: 4px;
}

button {
    appearance: none;
    border: 0;
    background: transparent;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout: Header, Hero, Footer */

.header {
    position: relative;
    z-index: 30;
    padding-block: var(--smallmedium) var(--small);
}

.header__inner {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--small);
}

.header__brand {
    position: relative;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.header__logo {
    width: min(100%, var(--header-logo-width));
}

.header__menu-toggle {
    position: relative;
    z-index: 40;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--menu-bar-gap);
    width: var(--menu-toggle-size);
    height: var(--menu-toggle-size);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--text-white);
    opacity: 1;
    transition: color var(--transition-base);
}

.header__menu-toggle span {
    display: block;
    width: var(--menu-bar-width);
    height: var(--menu-bar-height);
    margin-inline: auto;
    border-radius: 99px;
    background: currentColor;
    transition: transform var(--menu-overlay-duration) var(--menu-overlay-ease), opacity var(--menu-overlay-duration) var(--menu-overlay-ease);
}

.header__nav {
    display: none;
}

.header__nav-list {
    display: flex;
    align-items: center;
    gap: var(--extrasmall);
    margin: 0;
    padding: 0;
}

.header__nav-list > li > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 var(--extrasmall);
    border: 1px solid transparent;
    border-radius: 99px;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--text-white);
    text-decoration: none;
    transition: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
}

.header__nav-list > li > a:hover,
.header__nav-list > li > a:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-white);
}

.header__nav-list > li.current-menu-item > a,
.header__nav-list > li.current-menu-ancestor > a,
.header__nav-list > li.current_page_item > a,
.header__nav-list > li.current_page_ancestor > a {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-white);
}

body.menu-open .header__menu-toggle span:nth-child(1) {
    transform: translateY(calc(var(--menu-bar-gap) + var(--menu-bar-height))) rotate(45deg);
}

body.menu-open .header__menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .header__menu-toggle span:nth-child(3) {
    transform: translateY(calc((var(--menu-bar-gap) + var(--menu-bar-height)) * -1)) rotate(-45deg);
}

.home {
    padding-bottom: var(--medium);
}

.home__hero {
    text-align: center;
    padding-top: var(--hero-padding-top);
}

.home__title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: 90px;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.home__intro {
    max-width: var(--intro-max-width);
    margin: var(--small) auto 0;
    font-size: 19px;
    line-height: 1.35;
    color: var(--text-white);
    font-weight: 300;
}

.home__actions {
    margin-top: var(--smallmedium);
    margin-bottom: var(--smallmedium);
}

.home__actions > [class*="col-"] {
    display: flex;
}

.button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--extrasmall) var(--small);
    border-radius: var(
    --radius-small);
    background: var(
    --secondary-color);
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color var(
    --transition-base);
}

.button--reverse {
    background: var(--secondary-color-hover);
}

/* Components: Buttons and Cards */

.button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 99px;
    background: var(--secondary-color-hover);
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--button-fill-duration) var(--button-fill-ease);
    pointer-events: none;
    z-index: 0;
}

.button.button--reverse::before {
    background: var(--secondary-color);
}

.button > span {
    position: relative;
    z-index: 1;
}

.home__actions .button {
    width: 100%;
}

.button:hover,
.button:focus-visible {
    background: var(--secondary-color);
}

.button.button--reverse:hover,
.button:focus-visible {
    background: var(--secondary-color-hover);
}

.button:hover::before,
.button:focus-visible::before {
    transform: translate(-50%, -50%) scale(40);
}

.prize-card {
    background: var(--surface-color);
    color: var(--text-black);
    border-radius: var(--radius-large);
    padding: var(--card-padding);
    overflow: hidden;
}

.prize-card__title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: 28px;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    color: var(--primary-color-dark);
}

.prize-card__subtitle {
    margin: var(--extrasmall) 0 var(--small);
    text-align: center;
}

.prize-card__button {
    display: flex;
    width: fit-content;
    margin: var(--small) auto 0;
}

.footer {
    margin-top: auto;
    padding-block: var(--footer-padding-top) var(--footer-padding-bottom);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--small);
}

.footer__logo-link {
    display: inline-flex;
    line-height: 0;
}

.footer__logo {
    width: min(100%, var(--footer-logo-width));
}

.footer__line {
    margin: 0;
    max-width: var(--footer-line-max-width);
    color: var(--text-white);
    font-size: 18px;
    line-height: 1.2;
}

.main__inner,
.main__header,
.empty {
    width: 100%;
}

/* Post/Archive/Search Content */

.main__section {
    width: 100%;
}

.main__header {
    margin-bottom: var(--small);
}

.main__title,
.empty__title,
.post__title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: 24px;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--text-white);
}

.main__description,
.empty__text,
.post__meta {
    margin: var(--tiny) 0 0;
    color: var(--text-white);
    font-size: 16px;
}

.post {
    margin-top: var(--small);
    padding: var(--small);
    border: 1px solid var(--border-light-color);
    border-radius: var(--radius-medium);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
}

.post__header {
    margin-bottom: var(--extrasmall);
}

.post__title-link {
    color: inherit;
}

.post__title-link:hover,
.post__title-link:focus-visible {
    color: var(--text-white);
}

.post__content {
    color: var(--text-white);
}

.main__description a,
.empty__text a,
.post__content a {
    text-decoration-line: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.post__content > :first-child {
    margin-top: 0;
}

.post__content > :last-child {
    margin-bottom: 0;
}

.main .wp-block-image img,
.main .post__content img {
    border-radius: 10px;
}

.search-form {
    margin-top: var(--extrasmall);
}

.search-form__label {
    display: block;
    margin-bottom: var(--tiny);
    color: var(--text-white);
    font-size: 14px;
    font-weight: 700;
}

.search-form__controls {
    display: flex;
    flex-wrap: wrap;
    gap: var(--tiny);
}

.search-form__input {
    flex: 1 1 240px;
    min-height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--radius-small);
    padding: 0 var(--extrasmall);
    color: var(--text-black);
    background: var(--surface-color);
}

.search-form__button {
    min-height: 45px;
    padding: 0 var(--small);
    border: 0;
    border-radius: var(--radius-small);
    background: var(--secondary-color);
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.search-form__button:hover,
.search-form__button:focus-visible {
    background: var(--secondary-color-hover);
}

.main .nav-links {
    margin-top: var(--small);
    display: flex;
    flex-wrap: wrap;
    gap: var(--tiny);
}

.main .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    min-height: 35px;
    padding-inline: var(--extrasmall);
    border: 1px solid var(--border-light-color);
    border-radius: 99px;
    color: var(--text-white);
}

.main .page-numbers.current,
.main .page-numbers:hover,
.main .page-numbers:focus-visible {
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.main .post-navigation {
    margin-top: var(--small);
}

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

.main .post-navigation a {
    display: block;
    padding: var(--extrasmall);
    border-radius: var(--radius-small);
    border: 1px solid var(--border-light-color);
}

/* Auth */

.auth__section {
    width: 100%;
}

.auth__inner {
    text-align: center;
}

.auth__header {
    margin-top: var(--large);
    margin-bottom: var(--smallmedium);
}

.auth__title {
    margin: 0;
    color: var(--text-white);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}

.auth__notice {
    margin-bottom: var(--small);
    border-radius: var(--radius-small);
    padding: var(--extrasmall) var(--small);
    font-size: 16px;
    line-height: 1.45;
}

.auth__notice--error {
    background: rgba(0, 0, 0, 0.28);
    color: var(--text-white);
}

.auth__card {
    background: var(--surface-color);
    color: var(--text-black);
    border-radius: var(--radius-large);
    padding: var(--smallmedium);
    text-align: left;
}

.auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--small);
}

.auth__field {
    display: flex;
    flex-direction: column;
    gap: var(--extrasmall);
}

.auth__label {
    color: var(--text-black);
}

.auth__label--identity {
    white-space: nowrap;
}

.auth__input {
    width: 100%;
    border: 1.5px solid var(--border-dark-color);
    border-radius: 4px;
    background: transparent;
    color: var(--text-black);
    padding: var(--small);
}

.auth__password-wrap {
    position: relative;
}

.auth__password-wrap .auth__input {
    padding-right: calc(var(--small) + 40px);
}

.auth__password-toggle {
    position: absolute;
    top: 50%;
    right: var(--small);
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: var(--primary-color);
    cursor: pointer;
}

.auth__password-toggle img {
    width: 20px;
}

.auth__password-toggle::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
    transform: rotate(-34deg) scaleX(1);
    transform-origin: center;
    opacity: 1;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.auth__password-toggle.is-revealed::after {
    opacity: 0;
    transform: rotate(-34deg) scaleX(0);
}

.auth__checkbox {
    display: inline-flex;
    align-items: center;
    gap: var(--extrasmall);
    color: var(--text-black);
    cursor: pointer;
}

.auth__checkbox input {
    appearance: none;
    flex: 0 0 auto;
    width: 21px;
    height: 20px;
    border: 1.5px solid var(--border-dark-color);
    border-radius: 4px;
    margin: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
    transition: border-color var(--transition-base);
}

.auth__checkbox input::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 99px;
    background: var(--secondary-color);
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--button-fill-duration) var(--button-fill-ease);
}

.auth__checkbox input:checked {
    border-color: var(--secondary-color);
}

.auth__checkbox input:checked::before {
    transform: translate(-50%, -50%) scale(7);
}

.auth__checkbox--terms {
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    align-items: flex-start;
    column-gap: var(--extrasmall);
    line-height: 1.3;
}

.auth__checkbox--terms input {
    width: 21px;
    height: 21px;
    margin-top: 2px;
}

.auth__checkbox--terms span {
    margin-top: 0;
}

.auth__checkbox--terms a {
    color: var(--text-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth__card-footer {
    margin-top: var(--tiny);
    display: flex;
    align-items: center;
    gap: var(--small);
}

.auth__card-footer--between {
    justify-content: space-between;
}

.auth__card-footer--align-end {
    justify-content: flex-end;
}

.auth__card-submit-wrap {
    flex: 0 0 auto;
}

.auth__submit {
    width: 206px;
}

.auth__switch {
    width: 100%;
    margin-top: var(--smallmedium);
    text-align: center;
}

.auth__forgot-wrap {
    margin: var(--small) 0 0;
    text-align: center;
}

.auth__forgot {
    color: var(--text-white);
    line-height: 1.2;
}

.auth__forgot:hover,
.auth__forgot:focus-visible {
    color: var(--text-white);
    text-decoration: underline;
}

/* Rules, Ranking, Prediction, Results */

.rules {
    padding-bottom: var(--small);
}

.rules__inner {
    width: 100%;
}

.rules__header {
    margin-top: var(--mediumlarge);
    margin-bottom: var(--smallmedium);
    text-align: center;
}

.rules__title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--text-white);
}

.rules__intro {
    max-width: 650px;
    margin: var(--small) auto 0;
    color: var(--text-white);
    line-height: 1.35;
    text-wrap: pretty;
}

.rules__card {
    border-radius: 40px;
    background: var(--surface-color);
    color: var(--text-black);
    padding: var(--smallmedium);
}

.rules__content {
    font-size: 17px;
    line-height: 1.35;
    color: var(--text-black);
}

.rules__content > :last-child {
    margin-bottom: 0;
}

.rules__content h1,
.rules__content h2,
.rules__content h3,
.rules__content h4,
.rules__content h5,
.rules__content h6 {
    margin-top: 0;
    margin-bottom: var(--extrasmall);
    font-family: var(--font-family-heading);
    font-size: 35px;
    font-weight: 900;
    line-height: 0.98;
    text-transform: uppercase;
    color: var(--primary-color);
    text-wrap: balance;
}

.rules__content p,
.rules__content ul,
.rules__content ol {
    margin-top: 0;
    margin-bottom: var(--small);
}

.rules__content ul,
.rules__content ol {
    padding-left: 1.1em;
}

.rules__content ul {
    list-style: disc;
}

.rules__content ol {
    list-style: decimal;
}

.rules__content ul li,
.rules__content ol li {
    list-style: inherit;
}

.rules__content a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rules__content .ranking-select-form,
.rules__content .ranking-select-wrapper,
.rules__content .ranking-select-block {
    display: none;
}

.rules__content table.pool-ranking.ranking-page {
    width: 100%;
    max-width: none;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

.rules__content .pool-ranking td {
    border: 0;
    padding: var(--extrasmall) var(--smallmedium);
    color: var(--text-black);
    font-size: 18px;
    line-height: 1.15;
}

.rules__content .pool-ranking td.user-rank {
    width: 56px;
    font-family: var(--font-family-heading);
    font-weight: 900;
    text-align: left;
}

.rules__content .pool-ranking td.user-name a {
    color: inherit;
    text-decoration: none;
}

.rules__content .pool-ranking td.score {
    width: 78px;
    text-align: right;
    color: var(--primary-color);
}

.rules__content .pool-ranking tr.currentuser td {
    background: var(--secondary-color);
    color: var(--text-white);
}

.rules__content .pool-ranking tr.currentuser td a,
.rules__content .pool-ranking tr.currentuser td.score {
    color: var(--text-white);
}

.ranking__intro {
    font-size: 17px;
    line-height: 1.35;
}

.ranking__intro > :last-child {
    margin-bottom: 0;
}

.ranking__card {
    padding: 0;
    overflow: hidden;
}

.ranking__content {
    padding: var(--small) 0;
}

.prediction__intro {
    font-size: 17px;
    line-height: 1.35;
}

.prediction__intro > :last-child {
    margin-bottom: 0;
}

.prediction__panel {
    border-radius: var(--radius-large);
    background: var(--primary-color-soft);
    padding: var(--small);
    color: var(--text-white);
}

.prediction__content > :last-child {
    margin-bottom: 0;
}

.prediction__content .prediction__auth-message {
    margin: 0;
    border-radius: var(--radius-medium);
    padding: var(--small);
    color: var(--text-black);
    background: var(--surface-color);
    text-align: center;
}

.prediction__content .prediction__auth-message a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prediction-page .prediction__content .fp-notice.updated {
    display: block;
    margin: 0 0 var(--small);
    border: 0;
    border-radius: var(--radius-small);
    padding: var(--extrasmall) var(--small);
    background: #1ecf6b;
    color: var(--text-white);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    box-shadow: 0 8px 20px rgba(30, 207, 107, 0.28);
}

.prediction__content .fp-prediction-form {
    margin: 0;
    padding-bottom: calc(var(--largehuge) + var(--smallmedium));
}

.prediction-page .prediction__content .prediction__matches > .prediction__match-card,
.prediction-page .prediction__content .prediction__matches > .prediction__match-card * {
    padding: 0;
}

.prediction-page .prediction__content .prediction__matches {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: var(--small);
}

.prediction-page .prediction__content .prediction__matches .prediction__group-title {
    margin: 0;
    font-family: var(--font-family-heading);
    font-size: 30px;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    color: var(--text-white);
    background-color: transparent !important    ;
}

.results-page .prediction__content .results__score-link {
    color: var(--text-black);
    text-decoration: none;
}

.results-page .prediction__content .results__score-link:hover,
.results-page .prediction__content .results__score-link:focus-visible {
    color: var(--text-black);
    text-decoration: none;
}

.prediction-page .prediction__content .prediction__matches .prediction__match-card {
    width: 100%;
    margin: 0;
    padding: var(--small);
    border-radius: var(--radius-medium);
    background: var(--surface-color);
    color: var(--text-black);
    display: block;
}

.prediction-page:not(.results-page) .prediction__content .prediction__matches .prediction__match-card.closed {
    position: relative;
    overflow: hidden;
}

.prediction-page:not(.results-page) .prediction__content .prediction__matches .prediction__match-card.closed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(102 102 102 / 57%);
    pointer-events: none;
}

.prediction-page .prediction__content .prediction__matches .prediction__match-header {
    margin-bottom: var(--extrasmall);
    text-align: center;
}

.prediction-page .prediction__content .prediction__matches .prediction__datetime {
    display: inline-block;
    color: #595959;
    font-size: 18px;
    line-height: 1.1;
}

.prediction-page .prediction__content .prediction__matches .prediction__match-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: var(--small);
}

.prediction-page .prediction__content .prediction__matches .prediction__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.prediction-page .prediction__content .prediction__matches .prediction__team img.flag {
    width: 56px;
    height: 38px;
    border-radius: 4px;
    object-fit: cover;
}

.prediction-page .prediction__content .prediction__matches .prediction__team-name {
    display: block;
    color: var(--text-black);
    font-size: 20px;
    font-weight: 900;
    line-height: 0.96;
}

.prediction-page .prediction__content .prediction__matches .prediction__scores {
    display: flex;
    align-items: center;
    gap: var(--tiny);
    align-self: center;
}

.prediction-page .prediction__content .prediction__matches .prediction__score-separator {
    color: var(--text-black);
    font-family: var(--font-family-heading);
    font-size: 26px;
    line-height: 1;
}

.prediction-page .prediction__content .prediction__matches .prediction__scores input.prediction,
.prediction-page .prediction__content .prediction__matches .prediction__scores .prediction-value {
    width: 54px;
    height: 54px;
    border: 1.5px solid #cbcbcb;
    border-radius: 4px;
    background: #ececec;
    color: var(--text-black);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.prediction-page .prediction__content .prediction__matches .prediction__scores input.prediction {
    padding: 0;
    -moz-appearance: textfield;
}

.prediction-page .prediction__content .prediction__matches .prediction__scores input.prediction::-webkit-outer-spin-button,
.prediction-page .prediction__content .prediction__matches .prediction__scores input.prediction::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.prediction-page .prediction__content .prediction__matches .prediction__scores .prediction-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prediction-page .prediction__content .prediction__matches .prediction__match-footer {
    margin-top: var(--extrasmall);
    min-height: 34px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prediction-page .prediction__content .prediction__matches .prediction__save-state {
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    font-size: 0;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--tiny);
    justify-content: flex-start;
    min-height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-black);
    cursor: default;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker-cta.is-active {
    cursor: pointer;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker-cta.is-disabled {
    color: #666;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker-cta.is-set {
    padding: 2px var(--extrasmall);
    border-radius: 99px;
    background: #fecd37;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker-cta.is-disabled.is-set {
    color: var(--text-black);
}

.prediction-page .prediction__content .prediction__matches .prediction__joker-cta.is-hidden-by-joker {
    display: none;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker .fp-joker-box {
    width: 32px;
    height: 32px;
}

.prediction-page .prediction__content .prediction__matches .prediction__joker-label {
    white-space: nowrap;
    color: var(--text-black);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.prediction__content .buttonblock.button-matches {
    position: fixed;
    left: var(--small);
    right: var(--small);
    bottom: calc(var(--small) + env(safe-area-inset-bottom));
    z-index: 45;
    margin: 0;
    padding: var(--tiny);
    border-radius: var(--radius-medium);
    background: var(--primary-color-soft);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.prediction__content .buttonblock.button-matches input[type="submit"] {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: var(--radius-small);
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
}

.prediction__content .buttonblock.button-matches input[type="submit"]:hover,
.prediction__content .buttonblock.button-matches input[type="submit"]:focus-visible {
    background: var(--secondary-color-hover);
}

@media (max-width: 991px) {
    /* Mobile */
    :root {
        --base: 10px;
        --header-logo-width: 200px;
        --footer-logo-width: 250px;
        --hero-padding-top: var(--smallmedium);
    }

    .header {
        padding-block: var(--small) var(--extrasmall);
    }

    .home__title {
        font-size: 46px;
    }

    .home__actions {
        --gutters-x: var(--tiny);
        --gutters-y: var(--tiny);
    }

    .button {
        font-size: 16px;
        min-height: 42px;
    }

    .footer__line {
        font-size: 15px;
    }

    .auth {
        padding-bottom: var(--large);
    }

    .auth__card {
        border-radius: var(--radius-large);
    }

    .auth__form {
        gap: var(--extrasmall);
    }

    .auth__card-footer {
        gap: var(--extrasmall);
    }

    .auth__card-footer--between .auth__submit {
        width: 130px;
    }

    .rules__header {
        margin-top: var(--smallmedium);
        margin-bottom: var(--smallmedium);
    }

    .rules__card {
        border-radius: 20px;
    }

    .rules__content {
        font-size: 15px;
    }

    .ranking__intro {
        font-size: 15px;
    }

    .prediction__intro {
        font-size: 15px;
    }

    .prediction__panel {
        border-radius: 20px;
        padding: var(--tiny);
    }

    .prediction-page .prediction__content .prediction__matches {
        gap: var(--tiny);
    }

    .prediction-page .prediction__content .prediction__matches .prediction__group-title {
        font-size: 24px;
    }

    .prediction-page .prediction__content .prediction__matches .prediction__match-card {
        padding: var(--extrasmall);
    }

    .prediction-page .prediction__content .prediction__matches .prediction__datetime {
        font-size: 15px;
    }

    .prediction-page .prediction__content .prediction__matches .prediction__match-body {
        gap: var(--tiny);
    }

    .prediction-page .prediction__content .prediction__matches .prediction__team img.flag {
        width: 54px;
        height: 36px;
    }

    .prediction-page .prediction__content .prediction__matches .prediction__team-name {
        font-size: 16px;
    }

    .prediction-page .prediction__content .prediction__matches .prediction__scores input.prediction,
    .prediction-page .prediction__content .prediction__matches .prediction__scores .prediction-value {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .prediction-page .prediction__content .prediction__matches .prediction__joker-cta {
        min-height: 24px;
        padding: 0;
    }

    .prediction-page .prediction__content .prediction__matches .prediction__joker .fp-joker-box {
        width: 24px;
        height: 24px;
    }

    .prediction-page .prediction__content .prediction__matches .prediction__joker-label {
        font-size: 14px;
    }

    .prediction-page .prediction__content .buttonblock.button-matches {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        border-radius: 0;
        padding: var(--tiny) var(--small) calc(var(--tiny) + env(safe-area-inset-bottom));
    }

    .prediction__content .buttonblock.button-matches input[type="submit"] {
        font-size: 20px;
    }

    .ranking__content {
        padding: var(--extrasmall) 0;
    }

    .rules__content .pool-ranking td {
        font-size: 15px;
        padding: var(--tiny) var(--small);
    }

    .rules__content .pool-ranking td.user-rank {
        width: 42px;
    }

    .rules__content .pool-ranking td.score {
        width: 62px;
    }

    .rules__content h1,
    .rules__content h2,
    .rules__content h3,
    .rules__content h4,
    .rules__content h5,
    .rules__content h6 {
        font-size: 26px;
    }
    
    body.menu-open {
        overflow: hidden;
    }

    .header__nav {
        position: fixed;
        inset: 0;
        z-index: 20;
        display: block;
        overflow-y: auto;
        background: var(--menu-overlay-background-color);
        transform: translateY(-105%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform var(--menu-overlay-duration) var(--menu-overlay-ease), opacity var(--transition-base), visibility 0s linear var(--menu-overlay-duration);
    }

    body.menu-open .header__nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: transform var(--menu-overlay-duration) var(--menu-overlay-ease), opacity var(--transition-base), visibility 0s linear 0s;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--menu-link-gap);
        width: calc(100% - (var(--small) * 2));
        margin: var(--menu-list-offset) auto var(--largehuge);
    }

    .header__nav-list > li > a {
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        font-family: var(--font-family-heading);
        font-size: 32px;
        font-weight: 900;
        line-height: 0.95;
        letter-spacing: 0;
        text-transform: uppercase;
        color: var(--text-white);
        background: transparent;
        opacity: 0;
        transform: translateY(18px);
        transition: transform var(--menu-overlay-duration) var(--menu-overlay-ease), opacity 0.35s ease;
    }

    .header__nav-list > li > a::after {
        content: none;
    }

    .header__nav-list > li > a:hover,
    .header__nav-list > li > a:focus-visible,
    .header__nav-list > li.current-menu-item > a,
    .header__nav-list > li.current-menu-ancestor > a,
    .header__nav-list > li.current_page_item > a,
    .header__nav-list > li.current_page_ancestor > a {
        border-color: transparent;
        background: transparent;
        color: var(--text-white);
    }

    body.menu-open .header__nav-list > li > a {
        opacity: 1;
        transform: translateY(0);
    }

    body.menu-open .header__nav-list > li:nth-child(1) > a { transition-delay: 0.1s; }
    body.menu-open .header__nav-list > li:nth-child(2) > a { transition-delay: 0.14s; }
    body.menu-open .header__nav-list > li:nth-child(3) > a { transition-delay: 0.18s; }
    body.menu-open .header__nav-list > li:nth-child(4) > a { transition-delay: 0.22s; }
    body.menu-open .header__nav-list > li:nth-child(5) > a { transition-delay: 0.26s; }
}

@media (min-width: 992px) {
    /* Desktop */
    .header__menu-toggle {
        display: none;
    }

    .header__nav {
        position: static;
        inset: auto;
        display: block;
        overflow: visible;
        background: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header__nav-list {
        gap: var(--small);
    }

    .header__nav-list > li > a {
        position: relative;
        min-height: 0;
        padding: 0 var(--extrasmall) var(--tiny);
        border: 0;
        border-radius: 0;
        font-family: var(--font-family-heading);
        font-size: 14px;
        font-weight: 900;
        color: var(--text-white);
        background: transparent;
    }

    .header__nav-list > li > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: var(--menu-desktop-underline-height);
        background: var(--secondary-color);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform var(--transition-base), background-color var(--transition-base);
    }

    .header__nav-list > li > a:hover,
    .header__nav-list > li > a:focus-visible {
        border-color: transparent;
        background: transparent;
        color: var(--secondary-color);
    }

    .header__nav-list > li > a:hover::after,
    .header__nav-list > li > a:focus-visible::after,
    .header__nav-list > li.current-menu-item > a::after,
    .header__nav-list > li.current-menu-ancestor > a::after,
    .header__nav-list > li.current_page_item > a::after,
    .header__nav-list > li.current_page_ancestor > a::after {
        transform: scaleX(1);
    }

    .header__nav-list > li.current-menu-item > a,
    .header__nav-list > li.current-menu-ancestor > a,
    .header__nav-list > li.current_page_item > a,
    .header__nav-list > li.current_page_ancestor > a {
        border-color: transparent;
        background: transparent;
        color: var(--secondary-color);
    }

    .home {
        padding-bottom: var(--extrasmall);
    }

    .home__hero {
        width: min(100%, var(--hero-desktop-max-width));
        margin-inline: auto;
        text-align: center;
        padding-top: var(--small);
    }

    .home__actions {
        margin-inline: auto;
        max-width: 620px;
    }

    .prediction-page .prediction__content .fp-prediction-form {
        padding-bottom: var(--small);
    }

    .prediction-page .prediction__content .buttonblock.button-matches {
        left: auto;
        right: var(--smallmedium);
        bottom: var(--smallmedium);
        width: min(300px, calc(100vw - (var(--smallmedium) * 2)));
        border-radius: var(--radius-large);
    }

    .prediction-page .prediction__content .buttonblock.button-matches input[type="submit"] {
        font-size: 20px;
    }

    .prize-card {
        width: 100%;
        margin-top: var(--tiny);
    }

    .prize-card__image {
        width: 100%;
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header__menu-toggle span,
    .header__nav,
    .header__nav-list > li > a,
    .header__nav-list > li > a::after,
    .button::before {
        transition: none;
    }
}
