/* =========================================================
   LOGO — opinion vs opinion (Figma wireframe inspired)
   ========================================================= */

:root {
    --maxw: 1120px;
    --bg: #f4f4f4;
    --surface: #ffffff;
    --ink: #1a1a1a;
    --ink-soft: #6b6b6b;
    --ink-muted: #9a9a9a;
    --border: #d6d6d6;
    --border-strong: #b8b8b8;
    --bar-from: #b9b9b9;
    --bar-to: #f1f1f1;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-pill: 999px;
    --pictogram-size: 28px;
    --pictogram-size-create: 28px;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
            Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
    background: #c8c8c8;
    color: #fdfdfd;
    overflow: hidden;
    padding: 18px 0;
    font-size: 22px;
    letter-spacing: .02em;
}
.marquee__inner {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}
.marquee__track {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 24px;
}
.marquee__item { font-weight: 500; }
.marquee__sep { opacity: .7; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 32px 16px;
    text-align: center;
}
.logo {
    display: inline-block;
}
.logo img {
    display: block;
    height: 44px;
    width: auto;
}
.nav {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 56px;
    font-size: 16px;
    letter-spacing: .12em;
    color: var(--ink-soft);
}
.nav__link {
    padding: 6px 4px;
    position: relative;
    transition: color .15s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active {
    color: var(--ink);
    font-weight: 600;
}
.nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav__link--cta {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    padding: 6px 16px;
    color: var(--ink);
    letter-spacing: .08em;
}
.nav__link--cta:hover { background: #ececec; }

/* SPORT dropdown */
.nav__item--has-dropdown { position: relative; }
.nav__dropdown-toggle {
    background: none;
    border: 0;
    padding: 6px 4px;
    font: inherit;
    letter-spacing: inherit;
    color: var(--ink-soft);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav__dropdown-toggle:hover { color: var(--ink); }
.nav__dropdown-toggle.is-active { color: var(--ink); font-weight: 600; }
.nav__dropdown-toggle.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 22px;
    height: 2px;
    background: var(--ink);
    transform: translateX(-50%);
    border-radius: 2px;
}
.nav__caret {
    font-size: 10px;
    line-height: 1;
    transition: transform .15s ease;
}
.nav__dropdown-toggle[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
    padding: 8px;
    min-width: 180px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav__dropdown[hidden] { display: none; }
.nav__dropdown-link {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    letter-spacing: .08em;
    color: var(--ink-soft);
    text-align: left;
    text-transform: uppercase;
}
.nav__dropdown-link:hover { background: #ececec; color: var(--ink); }
.nav__dropdown-link.is-active { background: var(--ink); color: #fff; }

/* =========================================================
   Main / carousel
   ========================================================= */
.main {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 32px 48px;
}

.cards-carousel {
    /* 64vw narrowed by another 15% per side → 64vw * 0.7 */
    --carousel-card-w: min(504px, 44.8vw);
    --carousel-card-h: min(480px, 54vh);
    --carousel-gap-x: 18px;
    --carousel-gap-y: 14px;
    --carousel-peek-y: 72px;
    --carousel-chrome-h: 150px;
    --carousel-focus-bias: 0.5;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding-bottom: calc(var(--carousel-chrome-h) + 8px);
    user-select: none;
    touch-action: none;
}
.carousel-viewport {
    position: relative;
    width: 100%;
    height: calc(var(--carousel-card-h) + var(--carousel-peek-y) * 1.35);
    min-height: 0;
    overflow: hidden;
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 4%,
        #000 96%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 4%,
        #000 96%,
        transparent 100%
    );
}
.provo-feed {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: var(--carousel-gap-x);
    will-change: transform;
    transition: transform .32s cubic-bezier(.2, .85, .25, 1);
}
.provo-feed.is-dragging {
    transition: none;
}
.carousel-nav {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}
.carousel-nav:hover {
    background: #fff;
    transform: scale(1.05);
}
.carousel-nav:disabled,
.carousel-nav[hidden] {
    opacity: 0;
    pointer-events: none;
}
.carousel-nav--up {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}
.carousel-nav--up:hover { transform: translateX(-50%) scale(1.05); }
.carousel-nav--down {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}
.carousel-nav--down:hover { transform: translateX(-50%) scale(1.05); }
.carousel-nav--left {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-nav--left:hover { transform: translateY(-50%) scale(1.05); }
.carousel-nav--right {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-nav--right:hover { transform: translateY(-50%) scale(1.05); }
.carousel-chrome {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    width: var(--carousel-card-w);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 0;
    will-change: transform;
    transition: transform .38s cubic-bezier(.22, .9, .28, 1);
    pointer-events: none;
}
.carousel-chrome > * {
    pointer-events: auto;
}
.carousel-chrome__create {
    width: 70%;
    align-self: center;
    text-align: center;
    box-sizing: border-box;
}

/* Bottom CTA — empty-state CREATE */
.bottom-cta {
    display: flex;
    justify-content: center;
    padding: 16px 0 8px;
}
.btn--cta {
    padding: 18px 56px;
    font-size: 18px;
    letter-spacing: .18em;
    border-radius: var(--radius-pill);
    background: var(--ink);
    color: #fff;
    border: 1px solid var(--ink);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
}
.btn--cta:hover { background: #000; }

.empty {
    text-align: center;
    color: var(--ink-soft);
    padding: 60px 0;
}

/* =========================================================
   Provo 2D carousel + Card
   ========================================================= */
.provo {
    flex: 0 0 var(--carousel-card-w);
    width: var(--carousel-card-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.provo__list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: var(--carousel-gap-y);
}
.provo__counter-btn {
    width: 100%;
}
.provo__meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-soft);
    padding: 0 4px;
}
.provo__see-counters {
    position: relative;
    z-index: 0;
    width: 94%;
    margin: calc(-1 * var(--carousel-gap-y) - 6px) auto 0;
    padding: 18px 16px 12px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: #e6e6e6;
    border: 1px solid var(--border-strong);
    border-top: 0;
    border-bottom: 2px solid #9a9a9a;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.provo__see-counters:hover {
    background: #dcdcdc;
    color: var(--ink);
    border-bottom-color: #7a7a7a;
}
/* Expanded: tuck tab under the lead card is hidden so it can't cover CREATE */
.provo.is-expanded .provo__see-counters {
    display: none !important;
}
.carousel-chrome__hide-counters {
    width: 100%;
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--radius-pill);
    border-top: 1px solid var(--border-strong);
    box-shadow: none;
}
.carousel-chrome__hide-counters[hidden] {
    display: none !important;
}
.provo__list > .card.is-collapsed-hidden {
    display: none !important;
}
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px 32px;
    width: var(--carousel-card-w);
    height: var(--carousel-card-h);
    max-height: var(--carousel-card-h);
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: var(--shadow);
    opacity: .4;
    transform: scale(.9);
    transform-origin: center center;
    transition: opacity .28s ease, transform .28s ease, box-shadow .28s ease;
    overflow: hidden;
    flex: 0 0 var(--carousel-card-h);
    cursor: pointer;
}
.card__rank {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 3;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.cards-carousel .card:not(.is-focus) .card__actions,
.cards-carousel .card:not(.is-focus) button {
    pointer-events: none;
}
.card--form {
    pointer-events: auto;
    cursor: auto;
}
.card--form button,
.card--form .btn,
.card--form a.btn {
    pointer-events: auto;
    cursor: pointer;
}
.card.is-focus {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .16);
    cursor: default;
    z-index: 2;
}
.cards-carousel .card__body {
    min-height: 0;
    flex: 1 1 auto;
}
.cards-carousel .card__topic,
.cards-carousel .card__bars,
.cards-carousel .card__actions {
    flex-shrink: 0;
}
.card--counter {
    padding: 22px 26px 26px;
}
.card--form {
    width: min(520px, 100%);
    margin: 0 auto;
    opacity: 1;
    transform: none;
    height: auto;
    max-height: none;
    overflow: visible;
    flex: none;
}
.card__topic {
    text-align: center;
    font-size: 9px;
    letter-spacing: .08em;
    line-height: 1.35;
    color: var(--ink-soft);
    text-transform: uppercase;
}
.card__subtopic {
    color: var(--ink);
    font-weight: 600;
    margin-left: 3px;
}
.card__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 200px;
    gap: 12px;
    text-align: center;
}
.card__body .card__opinion {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    word-break: break-word;
    max-width: 100%;
    font-weight: 700;
    font-size: 26px;
    line-height: 1.15;
    color: var(--ink);
}
.card__tagline {
    font-size: 15px;
    line-height: 1.35;
    color: var(--ink-soft);
    font-style: italic;
    max-width: 100%;
}
.card__body .card__pictogram {
    margin: 0;
}
.card__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.card__counter-btn {
    width: 100%;
    letter-spacing: .08em;
    font-size: 13px;
}
.card__opinions {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    color: var(--ink);
    min-height: 130px;
    justify-content: center;
}
.card__opinions--mundial {
    min-height: 0;
}
.card__mundial-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.card__opinion {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
    max-width: 100%;
}
.card__vs {
    text-transform: lowercase;
    font-weight: 400;
    font-size: 18px;
    color: var(--ink-muted);
}
.card__pictogram {
    width: var(--pictogram-size);
    height: var(--pictogram-size);
    margin: 0 auto;
    flex-shrink: 0;
}
.card__pictogram img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.card__matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
}
.card__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}
.card__side .card__opinion {
    font-size: 20px;
    line-height: 1.2;
}
.card__matchup .card__vs {
    align-self: center;
    padding-top: 0;
}
.card__flag {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.card__bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--ink-soft);
    padding: 0 2px;
}

/* =========================================================
   Bars (gradient pill bars)
   ========================================================= */
.bar {
    position: relative;
    height: 28px;
    border-radius: var(--radius-pill);
    background: #ececec;
    overflow: hidden;
    border: 1px solid var(--border);
}
.bar__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--p, 50%);
    background: linear-gradient(90deg, var(--bar-from), var(--bar-to));
    transition: width .4s ease;
}
.bar__label {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    line-height: 28px;
    font-size: 13px;
    color: var(--ink);
    padding: 0 12px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    pointer-events: none;
}
.bar__text {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bar__pct {
    flex: 0 0 auto;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .01em;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    letter-spacing: .12em;
    transition: transform .1s, background .15s, color .15s;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:not(:disabled):active { transform: translateY(1px); }

.btn--primary {
    background: #d9d9d9;
    color: var(--ink);
    border: 1px solid var(--border-strong);
}
.btn--primary:not(:disabled):hover { background: #c9c9c9; }

.btn--ghost {
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--border);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--border-strong); }

.btn--big {
    padding: 16px 40px;
    font-size: 18px;
}

.card__vote,
.card__share {
    min-width: 0;
    width: 100%;
    letter-spacing: .1em;
    font-size: 14px;
    padding: 12px 16px;
}

/* =========================================================
   Modal
   ========================================================= */
.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 100;
}
.modal[hidden] { display: none; }
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(40, 40, 40, .45);
    backdrop-filter: blur(2px);
}
.modal__panel {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: min(520px, calc(100% - 32px));
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 32px 36px 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    animation: pop .18s ease-out;
}
@keyframes pop {
    from { opacity: 0; transform: scale(.96) translateY(6px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ececec;
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    display: grid;
    place-items: center;
}
.modal__close:hover { background: #dadada; }

.modal__topic {
    text-align: center;
    font-size: 13px;
    letter-spacing: .2em;
    color: var(--ink-soft);
    text-transform: uppercase;
    margin-bottom: 24px;
}
.modal__row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 12px;
}
.modal__opinion {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}
.modal__vs {
    text-align: center;
    color: var(--ink-muted);
    font-size: 18px;
    margin: 10px 0;
}
.avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d4d4d4;
    color: #555;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 22px;
    border: 1px solid var(--border);
}
.modal__flag {
    flex: 0 0 auto;
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.modal__matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
}
.modal__stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 8px 0 4px;
    width: 100%;
}
.modal__entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.modal__stack .modal__opinion--center {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    word-break: break-word;
    max-width: 100%;
}
.modal__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.modal__matchup .modal__vs {
    margin: 0;
    align-self: center;
}
.modal__bars {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal__bars .bar { background: #f3f3f3; }
.modal__time {
    text-align: center;
    margin-top: 18px;
    color: var(--ink-muted);
    font-size: 14px;
}
.modal__actions {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.modal__actions .btn--vote-submit {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    letter-spacing: .18em;
}
.modal__actions .btn--vote-submit:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.vote-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vote-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    text-align: left;
    transition: background .15s ease, opacity .15s ease, border-color .15s ease;
    cursor: pointer;
}
.vote-option:hover:not(.is-faded) {
    border-color: var(--border-strong);
}
.vote-option.is-selected {
    background: #e8e8e8;
    border-color: var(--border-strong);
}
.vote-option.is-faded {
    opacity: .35;
}
.vote-option__text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}
.modal__note {
    margin-top: 14px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
}
.modal__note--error { color: #b14242; }

.spinner {
    text-align: center;
    padding: 40px 0;
    color: var(--ink-muted);
}

.modal__opinion--center {
    text-align: center;
    margin: 8px 0;
}

/* Thanks panel + share buttons */
.thanks {
    margin-top: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 24px 26px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.thanks__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 18px;
}
.thanks__share {
    display: grid;
    grid-template-columns: repeat(3, 56px);
    justify-content: center;
    gap: 16px 24px;
}
.share-btn--dl,
.share-btn--link {
    color: #4a4a4a;
}
.share-btn--link.is-copied,
.share-btn--discord.is-copied {
    background: #4caf50;
    border-color: #4caf50;
    color: #fff;
}
.share-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #d9d9d9;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    border: 1px solid var(--border-strong);
    transition: transform .1s, background .15s, color .15s, box-shadow .15s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.share-btn:focus { outline: none; }
.share-btn:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.share-btn:active { transform: translateY(0); }
@media (hover: hover) {
    .share-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .15);
    }
    .share-btn--link:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
    .share-btn--fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
    .share-btn--x:hover  { background: #111; color: #fff; border-color: #111; }
    .share-btn--reddit:hover { background: #ff4500; color: #fff; border-color: #ff4500; }
    .share-btn--discord:hover { background: #5865f2; color: #fff; border-color: #5865f2; }
    .share-btn--dl:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
}

.field--terms {
    gap: 8px;
}
.field--checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    text-align: left;
}
.field--checkbox input {
    width: 22px;
    height: 22px;
    margin-top: 1px;
    flex-shrink: 0;
}
.field--checkbox__label {
    font-size: 14px;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink-soft);
    line-height: 1.4;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.field--terms__link {
    margin-left: 32px;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: underline;
    align-self: flex-start;
}

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 16px 48px;
}
.legal__title {
    text-align: center;
    font-size: 28px;
    margin: 8px 0 16px;
}
.legal__intro {
    text-align: center;
    color: var(--ink-soft);
    margin-bottom: 12px;
}
.legal__intro + .legal__heading {
    margin-top: 28px;
}
.legal__heading {
    font-size: 18px;
    margin: 28px 0 10px;
}
.legal__text {
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0 0 12px;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 24px 32px 40px;
    text-align: center;
    color: var(--ink-muted);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-footer__links {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}
.site-footer__links a {
    text-decoration: underline;
    color: var(--ink-soft);
}
.site-footer__author {
    margin: 0;
    color: var(--ink-muted);
}
.site-footer__author a {
    text-decoration: underline;
    color: var(--ink-soft);
}

.cookie-banner {
    position: fixed;
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}
.cookie-banner[hidden] { display: none; }
body.has-cookie-banner {
    padding-bottom: calc(var(--cookie-banner-space, 160px) + env(safe-area-inset-bottom, 0px));
}
.cookie-banner__text {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
}
.cookie-banner__text a {
    text-decoration: underline;
}
.btn--small {
    padding: 10px 18px;
    font-size: 13px;
    letter-spacing: .08em;
    flex-shrink: 0;
}

/* =========================================================
   Create page
   ========================================================= */
.create {
    max-width: 640px;
    margin: 0 auto;
}
.create__title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 28px;
}
.card--form {
    width: 100%;
    max-width: 100%;
    padding: 32px 36px 40px;
    flex: none;
    height: auto;
    max-height: none;
    overflow: visible;
    transform: none;
    opacity: 1;
    filter: none;
    scroll-snap-align: none;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.field--inline {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.field__label {
    font-size: 13px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
}
.create__visual {
    display: flex;
    justify-content: center;
    margin: 4px 0 8px;
}
.create__pictogram {
    width: var(--pictogram-size-create);
    height: var(--pictogram-size-create);
}
.create__pictogram img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.create__mundial-label {
    margin: 0;
    text-align: center;
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.flag-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.flag-picker__preview {
    width: 48px;
    height: 36px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
    background: #f3f3f3;
}
.flag-picker__preview:not([src]),
.flag-picker__preview[src=""] {
    display: none;
}
.create__matchup-preview {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 8px 0 4px;
}
.create__matchup-preview .flag-picker__preview {
    justify-self: center;
}
.create__matchup-preview .card__vs {
    align-self: center;
}
.opinion-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}
.opinion-inputs .field { width: 100%; }
.opinion-slot {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.input, .select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fafafa;
    font: inherit;
    color: var(--ink);
    text-align: center;
    transition: border-color .15s, background .15s;
}
.input:focus, .select:focus {
    outline: none;
    border-color: var(--ink);
    background: #fff;
}
.input--big {
    font-size: 22px;
    font-weight: 600;
    padding: 14px 18px;
}
.input--small { max-width: 120px; text-align: center; }
.select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 10px 7px;
    padding-right: 36px;
}
.create__actions {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    justify-content: center;
}
.create__actions .btn--primary {
    min-height: 48px;
    touch-action: manipulation;
}
.create__inline-error {
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fbeaea;
    color: #8a2a2a;
    border: 1px solid #f2c8c8;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
.create__inline-error[hidden] { display: none !important; }
.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 15px;
    font-weight: 600;
    outline: none;
}
.alert--error {
    background: #fbeaea;
    color: #8a2a2a;
    border: 1px solid #f2c8c8;
    box-shadow: 0 0 0 3px rgba(138, 42, 42, .08);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 720px) {
    :root {
        --pictogram-size: 28px;
        --pictogram-size-create: 33.6px;
    }
    .logo img { height: 32px; }
    .nav { gap: 8px 24px; font-size: 14px; }
    .main { padding: 24px 8px 48px; }
    .cards-carousel {
        --carousel-card-w: min(400px, calc(100vw - 52px));
        --carousel-card-h: min(400px, 48vh);
        --carousel-gap-x: 12px;
        --carousel-gap-y: 12px;
        --carousel-peek-y: 48px;
        --carousel-chrome-h: 160px;
        --carousel-focus-bias: 0.45;
        max-width: none;
        padding-bottom: calc(var(--carousel-chrome-h) + 8px + env(safe-area-inset-bottom, 0px));
    }
    .carousel-viewport {
        height: calc(var(--carousel-card-h) + var(--carousel-peek-y) * 1.25);
        min-height: 0;
    }
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    .carousel-nav--left { left: 2px; }
    .carousel-nav--right { right: 2px; }
    .card { padding: 22px 22px 26px; }
    .card__rank {
        top: 8px;
        left: 10px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    .provo-feed {
        transition: transform .28s cubic-bezier(.2, .9, .22, 1);
    }
    .card__body { min-height: 160px; }
    .card__body .card__opinion { font-size: 22px; }
    .card__flag { width: 40px; height: 30px; }
    .card__actions { gap: 8px; }
    .thanks__share { grid-template-columns: repeat(3, 48px); }
    .share-btn { width: 48px; height: 48px; }
    .modal__panel { padding: 28px 22px; }
    .modal__opinion { font-size: 18px; }
    .marquee { font-size: 16px; padding: 12px 0; }
    .btn--cta { padding: 14px 28px; font-size: 16px; }
    .nav__dropdown { min-width: 160px; }
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
    }

    /* Create form must not inherit carousel card transforms/sizing */
    .site-header {
        padding: 18px 16px 10px;
    }
    .nav { margin-top: 12px; }
    .main {
        padding: 10px 12px max(28px, calc(16px + env(safe-area-inset-bottom, 0px)));
    }
    .create__title {
        font-size: 22px;
        margin: 0 0 16px;
    }
    .card.card--form {
        width: 100%;
        max-width: 100%;
        flex: none;
        height: auto;
        max-height: none;
        overflow: visible;
        transform: none;
        opacity: 1;
        filter: none;
        cursor: default;
        padding: 20px 16px 28px;
        gap: 16px;
        scroll-snap-align: none;
    }
    .card.card--form:hover {
        box-shadow: var(--shadow);
    }
    .input--big {
        font-size: 18px;
        padding: 12px 14px;
    }
    .field--inline {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .create__actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .create__actions .btn {
        width: 100%;
    }
}
