@font-face {
    font-family: "AHB Gotham";
    src: url("/theme_angry_horse/static/src/fonts/Gotham-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AHB Gotham Medium";
    src: url("/theme_angry_horse/static/src/fonts/GothamMedium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AHB Display";
    src: url("/theme_angry_horse/static/src/fonts/Florest.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ahb-navy: #1d2232;
    --ahb-navy-deep: #12151f;
    --ahb-gold: #B1822C;
    --ahb-coral: #DB4527;
    --ahb-cream: #eaeadd;
    --ahb-ink: #1d2232;
}

* { box-sizing: border-box; }

body.ahb-page,
body.ahb-tv,
body.ahb-print {
    margin: 0;
    background: var(--ahb-navy);
    color: var(--ahb-cream);
    font-family: "AHB Gotham Medium", "Avenir-Next", "GothamMedium", sans-serif;
    font-weight: 500;
}

.ahb-wordmark,
.ahb-signup h1,
.ahb-print h1,
.ahb-host h1,
.ahb-tv h1,
.ahb-upnow h2,
.ahb-card h3,
.ahb-confirm h2 {
    font-family: "AHB Gotham", "Gotham-Bold", "Avenir-Next", sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ahb-wordmark {
    font-family: "AHB Display", "Florest", "AHB Gotham", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ahb-gold);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    margin: 0;
    line-height: 0.9;
}

.ahb-brand-kicker,
.ahb-kicker,
.ahb-mode {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ahb-gold);
    font-family: "AHB Gotham", "Gotham-Bold", sans-serif;
    font-size: 0.78rem;
}

.ahb-kicker { color: var(--ahb-coral); margin: 0 0 0.4rem; }

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

button,
.ahb-primary,
.ahb-text-link,
select,
input {
    font: inherit;
}

button,
.ahb-text-link {
    min-height: 44px;
}

:focus-visible {
    outline: 3px solid var(--ahb-coral);
    outline-offset: 2px;
}

.ahb-signup {
    min-height: 100vh;
    padding: 24px 16px 48px;
}

.ahb-sheet {
    width: min(560px, 100%);
    margin: 0 auto;
}

.ahb-brand img {
    width: 72px;
    height: auto;
}

.ahb-signup h1,
.ahb-confirm h2 {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
    line-height: 1.05;
    margin: 0.2rem 0 0.6rem;
}

.ahb-lede,
.ahb-fine,
.ahb-paused p,
.ahb-confirm p {
    color: var(--ahb-cream);
    line-height: 1.45;
}

.ahb-form,
.ahb-confirm,
.ahb-paused {
    background: var(--ahb-cream);
    color: var(--ahb-ink);
    border-radius: 18px;
    padding: 18px 16px 20px;
}

.ahb-form .ahb-fine,
.ahb-paused p { color: var(--ahb-ink); }

.ahb-field {
    display: block;
    margin: 14px 0 6px;
    font-family: "AHB Gotham", sans-serif;
    font-size: 0.95rem;
}

.ahb-field span,
.ahb-fine { font-family: "AHB Gotham Medium", sans-serif; color: #5c5344; font-size: 0.85rem; }

.ahb-form input,
.ahb-form select {
    width: 100%;
    min-height: 48px;
    border: 2px solid var(--ahb-navy);
    border-radius: 10px;
    background: #fff;
    color: var(--ahb-ink);
    padding: 10px 12px;
    font-size: 16px;
}

.ahb-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 14px 0;
    line-height: 1.4;
    font-size: 0.95rem;
}

.ahb-check input {
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.ahb-primary,
.ahb-host button,
.ahb-print button {
    background: var(--ahb-coral);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
}

.ahb-form .ahb-primary { width: 100%; margin-top: 8px; }

.ahb-text-link,
.ahb-print a {
    color: var(--ahb-gold);
    font-family: "AHB Gotham", sans-serif;
}

.ahb-form .ahb-fine { margin-top: 12px; }

.ahb-alert {
    background: #fff4e8;
    color: #6e2418;
    border-left: 6px solid var(--ahb-coral);
    padding: 12px 14px;
    border-radius: 10px;
}

.ahb-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ahb-tv {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 1.5vh;
    padding: 2.2vh 2.4vw 1.6vh;
    overflow: hidden;
    cursor: none;
    background:
        radial-gradient(circle at top right, rgba(177, 130, 44, 0.18), transparent 32%),
        var(--ahb-navy);
}

.ahb-tv-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2vw;
    align-items: end;
}

.ahb-tv h1 {
    margin: 0.15rem 0;
    font-size: clamp(1.8rem, 3.4vw, 3.2rem);
}

.ahb-stage {
    display: grid;
    grid-template-columns: 1.45fr 0.8fr;
    gap: 1.4vw;
    min-height: 0;
}

.ahb-upnow,
.ahb-deck,
.ahb-holding {
    background: var(--ahb-navy-deep);
    border: 3px solid var(--ahb-gold);
    border-radius: 22px;
    padding: 2.4vh 2vw;
    min-height: 0;
}

.ahb-upnow h2 {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 7.4rem);
    line-height: 0.92;
    color: var(--ahb-cream);
}

.ahb-song {
    margin: 0.6rem 0 0;
    color: var(--ahb-gold);
    font-size: clamp(1.3rem, 2.4vw, 2.4rem);
}

.ahb-deck ol,
.ahb-upcoming ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ahb-deck li,
.ahb-upcoming li {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(234, 234, 221, 0.16);
    font-size: clamp(1.2rem, 2vw, 2rem);
}

.ahb-upcoming {
    display: flex;
    gap: 1.5vw;
    align-items: center;
    min-height: 0;
}

.ahb-upcoming ol {
    display: flex;
    gap: 1.4vw;
    overflow: hidden;
    flex: 1;
}

.ahb-upcoming li { border: 0; white-space: nowrap; }

.ahb-pos {
    color: var(--ahb-coral);
    font-family: "AHB Gotham", sans-serif;
}

.ahb-holding {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ahb-holding p {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.15;
    max-width: 18ch;
}

.ahb-qr {
    margin: 0;
    text-align: center;
    background: var(--ahb-cream);
    color: var(--ahb-ink);
    border-radius: 16px;
    padding: 10px;
}

.ahb-qr figcaption {
    font-family: "AHB Gotham", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    margin-top: 6px;
}

.ahb-qr img { display: block; width: 148px; height: 148px; }

[hidden] { display: none !important; }

.ahb-host { padding: 16px; }

.ahb-host-top {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 12px;
}

.ahb-host h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }

.ahb-toggles,
.ahb-card-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.ahb-toggles form,
.ahb-card-actions form { display: inline; margin: 0; }

.ahb-host button,
.ahb-print button {
    background: transparent;
    color: var(--ahb-cream);
    border: 2px solid var(--ahb-gold);
    border-radius: 999px;
    padding: 8px 14px;
}

.ahb-host .ahb-primary,
.ahb-card-actions .is-hot {
    background: var(--ahb-coral);
    border-color: var(--ahb-coral);
    color: #fff;
}

.ahb-host-help { max-width: 70ch; }

.ahb-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.ahb-col {
    background: rgba(18, 21, 31, 0.72);
    border-radius: 16px;
    padding: 12px;
}

.ahb-col header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    color: var(--ahb-gold);
}

.ahb-col h2 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: "AHB Gotham", sans-serif;
}

.ahb-card {
    background: var(--ahb-cream);
    color: var(--ahb-ink);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
}

.ahb-card.is-dragging { opacity: 0.55; }

.ahb-card-top { display: flex; gap: 10px; }

.ahb-drag {
    background: var(--ahb-navy);
    color: var(--ahb-gold);
    border-radius: 8px;
    min-width: 44px;
    touch-action: none;
}

.ahb-card h3 { margin: 0; font-size: 1.25rem; }

.ahb-card p { margin: 0.25rem 0; }

.ahb-contact { word-break: break-word; }

.ahb-badges span,
.ahb-pill {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(177, 130, 44, 0.18);
    color: #6d4e12;
    font-size: 0.75rem;
}

.ahb-pill.is-eligible {
    background: var(--ahb-gold);
    color: var(--ahb-navy);
    font-family: "AHB Gotham", sans-serif;
}

.ahb-pill.is-waiting {
    background: transparent;
    color: var(--ahb-coral);
    border: 1px solid var(--ahb-coral);
}

.ahb-receipt {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.ahb-receipt input {
    flex: 1 1 140px;
    min-height: 40px;
    border: 2px solid var(--ahb-navy);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 16px;
}

.ahb-night {
    background: var(--ahb-cream);
    color: var(--ahb-ink);
    border-radius: 18px;
    padding: 16px;
    margin: 0 0 12px;
}

.ahb-night h2 { margin: 0.2rem 0; font-family: "AHB Gotham", sans-serif; }

.ahb-night-link {
    display: inline-block;
    margin-top: 8px;
    text-decoration: none;
    text-align: center;
}

.ahb-card-actions { margin-top: 8px; }

.ahb-card-actions button {
    color: var(--ahb-navy);
    border-color: var(--ahb-navy);
    background: transparent;
    min-height: 40px;
}

.ahb-empty { color: rgba(234, 234, 221, 0.7); }

.ahb-add { margin-top: 18px; }

.ahb-qr-details {
    margin: 16px 0;
    background: var(--ahb-cream);
    color: var(--ahb-ink);
    border-radius: 14px;
    padding: 12px 14px;
}

.ahb-qr-details summary { cursor: pointer; font-family: "AHB Gotham", sans-serif; }

.ahb-print {
    background: var(--ahb-cream);
    color: var(--ahb-ink);
    min-height: 100vh;
}

.ahb-tent {
    width: min(640px, 100%);
    margin: 0 auto;
    padding: 32px 20px 48px;
    text-align: center;
}

.ahb-tent img:first-child { width: 96px; }

.ahb-print h1 { font-size: 2.4rem; margin: 0.2rem 0; }

.ahb-print h2 {
    color: var(--ahb-coral);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 1rem;
}

.ahb-print-qr {
    width: min(360px, 80vw);
    height: auto;
    background: #fff;
    padding: 12px;
}

.ahb-screen-only { display: flex; gap: 16px; justify-content: center; align-items: center; }

@media (min-width: 900px) {
    .ahb-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .ahb-tv { height: auto; min-height: 100vh; overflow: auto; cursor: auto; }
    .ahb-stage,
    .ahb-tv-top,
    .ahb-upcoming { display: block; }
    .ahb-qr { margin-top: 12px; display: inline-block; }
    .ahb-upcoming ol { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
    .ahb-screen-only { display: none !important; }
    body.ahb-print { background: #fff; }
    .ahb-tent { padding: 0; }
}
