/* Variables  */

:root {
    /* Brand colors */
    --diskmatte-primary: #de2a2a;
    --diskmatte-ink: #3a1717;
    --diskmatte-muted: #8a6868;

    /* Bootstrap overrides */
    --bs-primary: #de2a2a;
    --bs-primary-rgb: 222, 42, 42;
    --bs-primary-text-emphasis: #6f1515;
    --bs-primary-bg-subtle: #f5e1e1;
    --bs-primary-border-subtle: #dca9a9;
    
    /* Neutral colors */
    --color-white: #ffffff;
    --color-border-neutral: #eddfdf;
    --color-border-input: #dacece;
    
    /* Light backgrounds */
    --color-bg-hero-light: #f5e1e1;
    --color-bg-hero-lighter: #faf5f5;
    --color-bg-accent-tan: #f8ffdf;
    --color-bg-hover-light: #fff4f4;
    
    /* Button colors */
    --btn-primary-hover-bg: #b82020;
    --btn-primary-hover-border: #a31a1a;
    --btn-primary-active-bg: #a31a1a;
    --btn-primary-active-border: #8d1515;
    
    /* Shadows */
    --color-shadow: rgba(58, 23, 23, 0.07);
}

.progress-bar {
    --bs-progress-bar-bg: var(--diskmatte-primary);
}

/* Bootstrap hardcodes a blue focus ring; match the site's red theme instead. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: rgba(var(--bs-primary-rgb), 0.50);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.20);
}

.form-check-input:checked {
    background-color: var(--diskmatte-primary);
    border-color: var(--diskmatte-primary);
}

.alert-info {
    --bs-alert-color: var(--bs-primary-text-emphasis);
    --bs-alert-bg: var(--bs-primary-bg-subtle);
    --bs-alert-border-color: var(--bs-primary-border-subtle);
    --bs-alert-link-color: var(--bs-primary-text-emphasis);
}

.btn-primary {
    --bs-btn-color: var(--color-white);
    --bs-btn-bg: var(--diskmatte-primary);
    --bs-btn-border-color: var(--diskmatte-primary);
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-hover-bg: var(--btn-primary-hover-bg);
    --bs-btn-hover-border-color: var(--btn-primary-hover-border);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: var(--color-white);
    --bs-btn-active-bg: var(--btn-primary-active-bg);
    --bs-btn-active-border-color: var(--btn-primary-active-border);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--color-white);
    --bs-btn-disabled-bg: var(--diskmatte-primary);
    --bs-btn-disabled-border-color: var(--diskmatte-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--diskmatte-primary);
    --bs-btn-border-color: var(--diskmatte-primary);
    --bs-btn-hover-color: var(--color-white);
    --bs-btn-hover-bg: var(--diskmatte-primary);
    --bs-btn-hover-border-color: var(--diskmatte-primary);
    --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
    --bs-btn-active-color: var(--color-white);
    --bs-btn-active-bg: var(--diskmatte-primary);
    --bs-btn-active-border-color: var(--diskmatte-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--diskmatte-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--diskmatte-primary);
    --bs-gradient: none;
}

a {
    --bs-link-color: var(--diskmatte-primary);
    --bs-link-hover-color: var(--bs-primary-text-emphasis);
    --bs-link-color-rgb: var(--bs-primary-rgb);
    --bs-link-hover-color-rgb: 111, 21, 21;
}

/* ================================== */

.hint-disclosure[open] > summary {
    display: none;
}

.hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    font-size: 0.75rem;
    cursor: pointer;
    list-style: none;
}

.hint-icon::-webkit-details-marker {
    display: none;
}

.hint-content {
    border: 1px solid transparent;
}

.hint-content:hover {
    border-color: var(--bs-secondary-border-subtle);
}

.leaderboard-chart {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.5rem, 6rem));
    align-items: start;
    justify-content: start;
    gap: 1rem;
}

.leaderboard-chart__entry {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.leaderboard-chart__value {
    font-weight: 600;
}

.leaderboard-chart__bar-track {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    width: min(100%, 2rem);
    height: 12rem;
}

.leaderboard-chart__bar {
    width: 100%;
    background-color: var(--bs-primary);
}

.leaderboard-chart__label {
    overflow-wrap: anywhere;
}

body {
    color: var(--diskmatte-ink);
}

.page-header {
    margin-bottom: 2rem;
}

.page-header p {
    color: var(--diskmatte-muted);
    max-width: 46rem;
}

.home-hero {
    background: linear-gradient(180deg, var(--color-bg-hero-light) 0%, var(--color-bg-hero-lighter) 90%);
}

.home-hero .lead {
    max-width: 42rem;
}

.home-kicker {
    color: var(--diskmatte-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-action-card {
    display: block;
    padding: 1.5rem;
    color: var(--diskmatte-ink);
    background: var(--color-white);
    border: 1px solid var(--color-border-neutral);
    border-radius: 0.75rem;
    box-shadow: 0 0.35rem 1rem var(--color-shadow);
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.home-action-card:hover {
    color: var(--diskmatte-ink);
    border-color: var(--diskmatte-primary);
    box-shadow: 0 0.6rem 1.4rem var(--color-shadow);
    transform: translateY(-0.2rem);
}

.home-action-card p {
    color: var(--diskmatte-muted);
}

.home-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 1.25rem;
    color: var(--color-white);
    background: var(--diskmatte-primary);
    border-radius: 50%;
    font-size: 1.3rem;
}

.home-signin {
    max-width: 42rem;
    background: var(--color-white);
    border-left: 0.35rem solid var(--diskmatte-primary);
    box-shadow: 0 0.35rem 1rem var(--color-shadow);
}

.disk-balance {
    padding: 0.6rem 0.9rem;
    color: var(--diskmatte-primary);
    background: var(--color-white);
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: 0.5rem;
    font-weight: 700;
}

.avatar-preview {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--color-bg-hover-light), var(--color-white));
    border: 1px solid var(--color-border-neutral);
    border-left: 0.35rem solid var(--skin-color);
    border-radius: 0.75rem;
}

.avatar-orb,
.skin-swatch,
.avatar-orb__leaderboard {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    background: var(--skin-color);
    border-radius: 50%;
    font-weight: 700;
    object-fit: cover;
}

.avatar-orb__leaderboard {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
}

.avatar-orb {
    width: 5rem;
    height: 5rem;
    font-size: 2.5rem;
}

.skin-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border-neutral);
    border-radius: 0.75rem;
    box-shadow: 0 0.35rem 1rem var(--color-shadow);
}

.skin-swatch {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
}

.content-narrow {
    max-width: 42rem;
    margin-inline: auto;
}

.task-option {
    cursor: pointer;
}

.task-option:hover {
    border-color: var(--diskmatte-primary) !important;
    background-color: var(--color-bg-hover-light);
}

.task-option input:checked + span {
    color: var(--diskmatte-primary);
    font-weight: 600;
}

form p {
    margin-bottom: 1rem;
}

form p label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

form p input {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border-input);
    border-radius: 0.375rem;
}
