@font-face {
    font-family: 'Gotham Pro';
    src: url('../fonts/gothampro.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('../fonts/gothampro_bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('../fonts/gothampro_medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('../fonts/gothampro_light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('../fonts/gothampro_black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    font-family: 'Gotham Pro', sans-serif;
    background-color: #f9f9f9;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
}

.loading-hide {
    opacity: 0;
    -webkit-animation: revealContent 0.4s ease-out 0.6s forwards;
    animation: revealContent 0.4s ease-out 0.6s forwards;
}

@-webkit-keyframes revealContent {
    to {
        opacity: 1;
    }
}

@keyframes revealContent {
    to {
        opacity: 1;
    }
}

/* ── Utilities ───────────────────────────────────────── */

.h-full {
    height: 100vh;
    height: 100dvh;
}

.h-100 {
    height: 100%;
}

.w-100 {
    width: 100%;
}

.w-160 {
    width: 10em;
}

.w-120 {
    width: 7.5em;
}

.bg-primary {
    background-color: #f9f9f9;
}

.bg-secondary {
    background-color: #ab985f;
}

.bg-dark {
    background-color: #1a1a1a;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.gap-1 {
    gap: 0.5em;
}

.gap-2 {
    gap: 1.25em;
}

.gap-3 {
    gap: 2em;
}

.p-1 {
    padding: 0.5em;
}

.p-2 {
    padding: 1.5em;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

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

.justify-end {
    justify-content: flex-end;
}

.text-bg {
    color: #1a1a1a;
}

.text-error {
    color: #d51317;
}

.text-success {
    color: #25D366;
}

.text-primary {
    color: #d51317;
}

.text-secondary {
    color: #ab985f;
}

.text-sm {
    font-size: 0.85em;
    color: #666666;
}

.text-lg {
    font-size: 1.15em;
}

.text-xl {
    font-size: 1.8em;
    font-weight: bold;
}

.text-2xl {
    font-size: 2.4em;
    font-weight: 900;
}

.text-3xl {
    font-size: 3.2em;
    font-weight: 900;
}

.text-center {
    text-align: center;
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: bold;
}

.uppercase {
    text-transform: uppercase;
}

.mb-1 {
    margin-bottom: 0.5em;
}

.mb-2 {
    margin-bottom: 1em;
}

/* ── Components ──────────────────────────────────────── */
#tv-poll {
    font-size: 1.5dvh;
    font-size: 1.5vh;
}


.card {
    padding: 2em;
    border-radius: 1.5em;
    background-color: #ffffff;
    box-shadow: 0 0.625em 1.875em rgba(0, 0, 0, 0.08);
    border: 0.0625em solid #e5e5e5;
}

.max-w-100 {
    max-width: 100%;
}

.max-w-sm {
    max-width: 26.25em;
    width: 100%;
}

.logo {
    max-width: 37.5em;
    width: 100%;
    filter: drop-shadow(0 0.25em 0.5em rgba(0, 0, 0, 0.05));
}

.tv-logo {
    max-width: 37.5em;
    height: 8vh;
    width: 100%;
    filter: drop-shadow(0 0.5em 1em rgba(0, 0, 0, 0.08));
}


.input {
    width: 100%;
    padding: 0.875em 1em;
    border-radius: 0.75em;
    border: 0.0625em solid #e5e5e5;
    background: #f0f0f0;
    color: #1a1a1a;
    font-size: 1em;
    transition: all 0.2s ease;
}

.input:focus {
    outline: none;
    border-color: #d51317;
    background: #ffffff;
    box-shadow: 0 0 0 0.25em rgba(213, 19, 23, 0.1);
}

.button {
    display: block;
    width: 100%;
    padding: 1em;
    border-radius: 0.875em;
    border: none;
    background: #d51317;
    color: #fff;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.1s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    opacity: 0.9;
    box-shadow: 0 0.25em 0.75em rgba(213, 19, 23, 0.2);
}

.button:active {
    transform: scale(0.98);
}

.button.bg-secondary {
    background: #ab985f;
}

.button.bg-secondary:hover {
    box-shadow: 0 0.25em 0.75em rgba(171, 152, 95, 0.2);
}

.button.bg-dark {
    background: #1a1a1a;
}

.error-list {
    list-style: none;
    padding: 0.875em 1.125em;
    border-radius: 0.75em;
    border: 0.0625em solid rgba(213, 19, 23, 0.2);
    background-color: rgba(213, 19, 23, 0.05);
    color: #d51317;
    font-size: 0.95em;
}

.error-list li+li {
    margin-top: 0.375em;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    margin-top: 0.25em;
}

.checkbox-container input[type="checkbox"] {
    width: 1.125em;
    height: 1.125em;
    margin-top: 0.125em;
    cursor: pointer;
    accent-color: #d51317;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 0.85em;
    color: #1a1a1a;
    line-height: 1.4;
    cursor: pointer;
}

.checkbox-label a {
    color: #d51317;
    text-decoration: underline;
}

.border-bottom {
    border-bottom: 0.0625em solid #e5e5e5;
}

/* ── Game elements ───────────────────────────────────── */

.answer-btn {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 100%;
    padding: 1em 1.25em;
    border-radius: 0.875em;
    border: 0.0625em solid #e5e5e5;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 1.05em;
    text-align: left;
    cursor: pointer;
    min-height: 3.75em;
    transition: all 0.2s ease;
    font-weight: 500;
}

.answer-btn:hover {
    border-color: #d51317;
    background: #f9f9f9;
}

.answer-btn:active {
    transform: scale(0.99);
}

.answer-btn--eliminated {
    opacity: 0.15;
    cursor: default;
    pointer-events: none;
}

.answer-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: #d51317;
    color: #fff;
    font-weight: 900;
    font-size: 0.85em;
    flex-shrink: 0;
}

.wildcard-btn {
    padding: 0.625em 1.25em;
    border-radius: 0.75em;
    border: 0.125em solid #ab985f;
    background: transparent;
    color: #ab985f;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wildcard-btn:hover {
    background: #ab985f;
    color: #fff;
}

.wildcard-btn--used {
    border-color: #e5e5e5;
    color: #666666;
    background: #f0f0f0;
    cursor: default;
    pointer-events: none;
}

.audience-bar {
    display: flex;
    gap: 0.75em;
    align-items: flex-end;
    height: 6.25em;
    padding: 0 0.5em;
}

.audience-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    height: 100%;
    justify-content: flex-end;
    font-size: 0.85em;
    color: #666666;
    font-weight: bold;
}

.audience-fill {
    width: 100%;
    background: #ab985f;
    border-radius: 0.375em 0.375em 0 0;
    min-height: 0.25em;
    box-shadow: 0 -0.125em 0.625em rgba(171, 152, 95, 0.2);
}

/* ── TV elements ─────────────────────────────────────── */

.ladder-container {
    height: 70vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.ladder-row {
    padding: 0.375em 0.75em;
    text-align: right;
    color: #666666;
    font-size: 0.9em;
    border-left: 0.25em solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.ladder-row--current {
    color: #ab985f;
    font-weight: 900;
    border-left-color: #ab985f;
    background: rgba(171, 152, 95, 0.05);
    font-size: 1.1em;
}

.answer-box {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1em 1.5em;
    border-radius: 0.875em;
    border: 0.0625em solid #e5e5e5;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 0.25em 0.75em rgba(0, 0, 0, 0.03);
}

.answer-box--eliminated {
    opacity: 0.1;
}

.tv-timer {
    font-size: 4em;
    font-weight: 900;
    color: #d51317;
    text-align: center;
    text-shadow: 0 0.25em 0.75em rgba(213, 19, 23, 0.15);
}

.tv-connect-timer {
    font-size: 12em;
    font-weight: 900;
    color: #d51317;
    text-align: center;
    margin: 2em 0;
    text-shadow: 0 0.5em 1.5em rgba(213, 19, 23, 0.1);
}

.wildcard-badge {
    padding: 0.5em 1em;
    border-radius: 0.75em;
    border: 0.125em solid #ab985f;
    color: #ab985f;
    font-size: 1em;
    font-weight: 900;
    text-align: center;
}

.wildcard-badge--used {
    border-color: #e5e5e5;
    color: #666666;
    opacity: 0.3;
}

.qr-container {
    width: 50vh;
    height: 50vh;
    max-width: 80vw;
    max-height: 80vw;
    border-radius: 10%;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1.25em 3.75em rgba(0, 0, 0, 0.1);
    border: 0.0625em solid #e5e5e5;
}

.qr-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.player-url {
    color: #666666;
    font-size: 1.1em;
    word-break: break-all;
    margin-top: 1em;
    font-weight: 500;
}

/* ── Ranking ──────────────────────────────────────────── */

.ranking {
    width: 100%;
    max-width: 43.75em;
}

.ranking h2 {
    color: #ab985f;
    font-size: 1.8em;
    margin-bottom: 0.5em;
    text-align: center;
    font-weight: 900;
}

.ranking-empty {
    color: #666666;
    text-align: center;
    font-size: 1.4em;
}

.ranking-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5em;
    font-size: 1.2em;
    color: #1a1a1a;
}

.ranking-table th {
    text-align: left;
    padding: 1em;
    color: #666666;
    font-weight: bold;
    border-bottom: 0.125em solid #e5e5e5;
    text-transform: uppercase;
    font-size: 0.7em;
    letter-spacing: 0.0625em;
}

.ranking-table td {
    padding: 0.7em;
    background: #ffffff;
    transition: all 0.2s ease;
}

.ranking-table tr td:first-child {
    border-top-left-radius: 0.75em;
    border-bottom-left-radius: 0.75em;
    font-weight: 900;
    color: #ab985f;
}

.ranking-table tr td:last-child {
    border-top-right-radius: 0.75em;
    border-bottom-right-radius: 0.75em;
    font-weight: 900;
}

/* ── Profile ─────────────────────────────────────────── */

.profile-card {
    width: 100%;
    max-width: 28em;
    background: #ffffff;
    border-radius: 2em;
    overflow: hidden;
    box-shadow: 0 1em 3em rgba(0, 0, 0, 0.1);
}

.profile-header {
    background-color: #ab985f;
    padding: 2.5em 2em;
    text-align: center;
    color: #ffffff;
}

.profile-avatar {
    width: 5em;
    height: 5em;
    background: #ffffff;
    border-radius: 50%;
    margin: 0 auto 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ab985f;
    font-size: 2.5em;
    font-weight: 900;
    box-shadow: inset 0 0.125em 0.5em rgba(0, 0, 0, 0.1);
}

.profile-name {
    font-size: 1.8em;
    font-weight: 900;
    margin-bottom: 0.2em;
}

.profile-nickname {
    font-size: 1em;
    opacity: 0.8;
    font-weight: 500;
}

.profile-body {
    padding: 2em;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.profile-stat-item {
    background: #f9f9f9;
    padding: 1em;
    border-radius: 1em;
    text-align: center;
}

.profile-stat-label {
    display: block;
    font-size: 0.7em;
    font-weight: 900;
    color: #ab985f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25em;
}

.profile-stat-value {
    font-weight: bold;
    color: #1a1a1a;
}

.profile-score-card {
    background: rgba(213, 19, 23, 0.05);
    border: 0.125em solid rgba(213, 19, 23, 0.1);
    padding: 1.5em;
    border-radius: 1.5em;
    text-align: center;
}

.profile-score-label {
    display: block;
    font-size: 0.8em;
    font-weight: 900;
    color: #ab985f;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
}

.profile-score-value {
    font-size: 3em;
    font-weight: 900;
    color: #d51317;
    line-height: 1;
    margin-bottom: 0.2em;
}

.profile-score-unit {
    font-size: 0.8em;
    font-weight: 900;
    color: #ab985f;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.profile-status-message {
    text-align: center;
    padding: 0.5em;
    margin-bottom: -0.5em;
}

.share-section {
    text-align: center;
}

.share-label {
    font-size: 0.7em;
    font-weight: 900;
    color: #666666;
    text-transform: uppercase;
    margin-bottom: 1em;
    opacity: 0.4;
}

.share-buttons {
    display: flex;
    gap: 0.5em;
}

.share-btn {
    flex: 1;
    padding: 0.8em;
    border-radius: 0.75em;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9em;
    transition: transform 0.1s ease;
}

.share-btn:active {
    transform: scale(0.95);
}

.share-btn--whatsapp {
    background-color: #25D366;
    box-shadow: 0 0.25em 0.75em rgba(37, 211, 102, 0.2);
}

.share-btn--facebook {
    background-color: #1877f2;
    box-shadow: 0 0.25em 0.75em rgba(24, 119, 242, 0.2);
}

.share-btn--twitter {
    background-color: #1DA1F2;
    box-shadow: 0 0.25em 0.75em rgba(29, 161, 242, 0.2);
}

.min-h-screen {
    min-height: 100vh;
    min-height: 100dvh;
}

.py-3 {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
}
