/* Load after skeleton.css and base.css. Keep the inherited UI and puzzle rules. */
@font-face {
    font-family: "LCDMono";
    src: url("../fonts/LCDMonoNormal.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Xirod";
    src: url("../fonts/Xirod.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Roboto Mono';
    src: url("../fonts/RobotoMono.ttf") format("truetype");
}
@font-face {
    font-family: 'Leslie Crayon';
    src: url("../fonts/LeslieCrayon-Regular.ttf") format("truetype");
}
@font-face {
    font-family: 'Leslie Crayon';
    font-weight: bold;
    src: url("../fonts/LeslieCrayon-Bold.ttf") format("truetype");
}
@font-face {
    font-family: 'Pabasing';
    src: url("../fonts/PabasingSignature-q2x3d.otf") format("truetype");
}
@font-face {
    font-family: 'Joe Font';
    src: url("../fonts/Joe_Font.ttf") format("truetype");
}
@font-face {
    font-family: 'Inkfree';
    src: url("../fonts/Inkfree.ttf") format("truetype");
}

html {
    /* Retain Skeleton's 10px rem scale, including on small screens. */
    font-size: 62.5%;
    color-scheme: dark;
    --page-bg-rgb: 4, 4, 5;
    --accent-bg-rgb: 19, 34, 28;
    --accent-rgb: 185, 237, 206;
    --dark-accent-rgb: 8, 27, 17;
    --body-rgb: 245, 248, 250;
    --dark-flair-rgb: 31, 64, 48;
    --flair-rgb: 128, 193, 154;
    --light-flair-rgb: 220, 251, 232;
    --white-color: #f5f8fa;
    --neutral-color: #b9c6ca;
    --body-text-color: #f5f8fa;
    --text-color: #f5f8fa;
    --muted-color: #b9c6ca;
    --heading-text-color: #f5f8fa;
    --border-color: #394b42;
    --link-text-color: #b9edce;
    --link-hover-color: #dcfbe8;
    --btn-text-color: #f5f8fa;
    --btn-bg-color: #183525;
    --btn-bg-2-color: #183525;
    --btn-hover-color: #285039;
    --info-bg-color: rgba(4, 4, 5, .96);
    --dropdown-bg-color: #101b16;
    --primary-900: #0b110e;
    --primary-800: #17231c;
    --primary-200: #718b7c;
    --text-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --accent-font: "LCDMono", monospace;
    --btn-font: "LCDMono", monospace;
    --input-font: ui-monospace, monospace;
    --answer-font: ui-monospace, monospace;
    background: #040405;
}
.frhuntier {
    width: auto;
    max-width: none;
    margin: 0;
    min-height: 100vh;
    isolation: isolate;
    font-size: 1.7rem;
    line-height: 1.6;
}
.frhuntier *, .frhuntier *::before, .frhuntier *::after { box-sizing: border-box; }
.site-art {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, #040405 8%, rgba(4, 4, 5, .92) 45%, rgba(4, 4, 5, .75)),
        url("../images/poster-background.svg") right top / auto 100vh no-repeat;
}
.home-page .site-art { display: none; }
.content, .top-more-actions, .site-masthead, .frhuntier > footer {
    width: 960px;
    margin-left: auto;
    margin-right: auto;
}
.content { min-height: 45vh; margin-bottom: 48px; }
.site-masthead { padding-top: 32px; }
.site-masthead a {
    display: inline-block;
    font-size: clamp(3.52rem, 4.7vw, 6.56rem);
    line-height: 1.06;
    word-spacing: normal;
    text-decoration: none;
    color: #f5f8fa;
}
.brand-mystery { display: block; font-family: "LCDMono", monospace; letter-spacing: .12em; margin-bottom: .2em; }
.brand-frontier { display: block; font-family: "Xirod", "LCDMono", monospace; letter-spacing: -.045em; white-space: nowrap; }
.brand-hunt { font-family: "LCDMono", monospace; letter-spacing: .12em; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; text-shadow: 0 0 18px rgba(213, 239, 255, .15); }
strong { text-shadow: none; }
a:hover, a:focus { text-shadow: none; }
a { text-underline-offset: .18em; }
:focus-visible { outline: 3px solid #b9edce; outline-offset: 4px; }
.btn, form .btn, .shortcuts .btn {
    height: auto;
    min-height: 44px;
    padding: 10px 18px;
    font-size: 1.5rem;
    line-height: 1.35;
    white-space: normal;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background: var(--btn-bg-color);
    color: var(--btn-text-color);
    letter-spacing: .03em;
}
.btn:hover, .btn:focus { background: var(--btn-hover-color); }
.btn.btn-primary { background: #b9edce; color: #081b11; border-color: #b9edce; }
.btn.btn-primary:hover, .btn.btn-primary:focus { background: #dcfbe8; color: #081b11; }
.btn.danger { filter: none; background: #51241f; color: #fff0ed; }
.btn.danger:hover { background: #71342d; }
.errorlist { background: #51241f; color: #fff0ed; text-shadow: none; }
.btn:disabled, .btn.btn-disabled { opacity: .55; }
input[type=text], input[type=password], input[type=email], input[type=number],
input[type=search], input[type=url], select, textarea {
    max-width: 100%;
    color: #f5f8fa;
    background: #0b110e;
    border: 1px solid #718b7c;
    border-radius: 3px;
    font-size: 1.7rem;
}
input::placeholder, textarea::placeholder { color: #9aada2; opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: #b9edce; }
.puzzle-main { background: #0b110e; border: 1px solid #26382d; }
.puzzle-main img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
.puzzle-main table {
    margin-left: auto;
    margin-right: auto;
}
.puzzle-main, .puzzle-main h1, .puzzle-main h2, .puzzle-main h3, .puzzle-main h4 { text-shadow: none; }
.write-in-blank {
    display: inline-block;
    width: 2em;
    height: 2em;
    margin-right: 0.5em;
    border-bottom: 3px solid currentColor;
}
.solved-title-answer { color: #b9edce; }
.current-team { background: #183525; }
.top-more-actions { margin-top: 24px; word-spacing: normal; display: flex; flex-wrap: wrap; gap: 10px; }
.top-more-actions:empty { display: none; }
.top-more-actions a { margin-bottom: 0; }
.frhuntier > footer { padding: 24px 0 32px; border-top: 1px solid #242e28; opacity: 1; color: var(--muted-color); font-size: 1.4rem; }
.frhuntier > footer p { margin-bottom: 8px; font-family: var(--accent-font); }
/* The mobile tray becomes a disclosure menu; no swipe gesture is required. */
.top-navbar { height: auto; position: relative; overflow: visible; z-index: 100; background: #090d0b; border-bottom: 1px solid #26382d; }
.tray { display: block; position: static; transform: none; padding: 0; transition: none; }
.tray::before, .tray::after { display: none; }
.top-tabs { position: static; width: 100%; margin: 0; padding: 12px 20px; gap: 12px; flex-wrap: wrap; line-height: 1.4; background: transparent; backdrop-filter: none; font-size: 1.8rem; }
.top-team-actions { margin: 0; flex-wrap: wrap; gap: 10px; word-spacing: normal; }
.site-nav { margin: 0; flex-wrap: wrap; }
.top-tabs a { padding: 8px 10px; min-height: 44px; }
.top-tabs .selected-tab { color: #dcfbe8; text-decoration: underline; text-underline-offset: .35em; font-weight: 400; text-shadow: none; }
.current-stat-label { font-size: 1.8rem; }
.shortcuts { left: 16px; top: 100%; max-width: calc(100vw - 32px); max-height: 75vh; overflow: auto; }
button#toggle-shortcuts { color: #b9edce; font-family: var(--accent-font); }
.menu-toggle { display: none; }
a.main-content-anchor { top: 0; }
.list-table th { top: 0; }
/* Homepage hero uses the landing page's composition and matching title tracking. */
.home-page .content { width: min(1320px, 100%); margin-bottom: 0; }
.home-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 800px; padding: 48px clamp(24px, 5vw, 76px) 76px; }
.hero-art { position: absolute; z-index: -2; right: 0; top: 0; height: 100%; width: auto; max-width: none; aspect-ratio: 612 / 625; object-fit: cover; pointer-events: none; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #040405 0%, rgba(4, 4, 5, .96) 19%, rgba(4, 4, 5, .82) 38%, rgba(4, 4, 5, .28) 58%, transparent 76%); }
.hero-copy { max-width: 620px; }
h1.event-title { font-size: clamp(3.52rem, 4.7vw, 6.56rem); line-height: 1.06; margin: 0 0 32px; word-spacing: normal; }
.event-title .brand-mystery { margin-bottom: 14px; }
.muted { color: var(--muted-color); }
.event-summary { border-top: 1px solid #394145; margin-top: 24px; padding-top: 24px; }
.event-summary h2 { font-size: 2.4rem; margin: 0 0 12px; color: #b9edce; text-transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 24px 0; }
@media (min-width: 761px) and (max-width: 1000px) {
    .home-hero { min-height: 900px; }
    .hero-copy { max-width: 470px; }
    .home-hero::before { background: linear-gradient(90deg, #040405 0%, rgba(4, 4, 5, .93) 28%, rgba(4, 4, 5, .7) 49%, transparent 85%); }
}
@media (max-width: 960px) {
    html { font-size: 62.5%; }
    .frhuntier { width: auto; }
    .menu-ready .menu-toggle { display: block; margin: 12px 24px; min-height: 44px; color: #b9edce; border-color: #718b7c; font-family: var(--accent-font); }
    .menu-ready:not(.menu-open) .tray { display: none; }
    .tray, .tray:not(:hover), .tray:focus-within { position: static; transform: none; padding: 0; }
    .top-tabs { font-size: 1.8rem; padding: 12px 24px 24px; gap: 24px; }
    .top-team-actions, .top-team-actions #nav-team-name, .site-nav { flex-direction: column; align-items: flex-start; gap: 4px; }
    .top-team-actions, .site-nav { flex: 1 1 180px; }
    .top-tabs a { padding: 8px 0; line-height: 1.5; }
    .top-more-actions a { font-size: 1.8rem; line-height: 1.35; margin-bottom: 0; }
    .flavor { margin-left: 0; margin-right: 0; }
    .list-table th { top: 0; }
    .content > main { display: block; }
    .content > main:not(.puzzle-main) { overflow-x: auto; }
    .puzzles-list { font-size: 1.8rem; }
    .puzzles-answer { max-width: 25vw; }
    .hint-table td { white-space: normal; }
    .hint-table pre { margin-right: 16px; }
}
@media (max-width: 760px) {
    .content, .top-more-actions, .site-masthead, .frhuntier > footer { width: 960px; }
    .home-page .content { width: 100%; }
    .site-masthead { padding-top: 24px; }
    h1, h2 { font-size: 3.2rem; }
    .home-hero { min-height: 0; padding: 32px 24px calc(80vw + 36px); }
    .hero-art { top: auto; bottom: 0; width: 100%; height: auto; }
    .home-hero::before { background: linear-gradient(180deg, #040405 0%, #040405 52%, rgba(4, 4, 5, .95) 60%, transparent 79%); }
    .hero-copy { max-width: none; }
    h1.event-title { font-size: clamp(2.64rem, 6.5vw, 4.8rem); }
    .puzzle-main { padding: 16px; }
    .form-row { padding-left: 12px; padding-right: 12px; }
    .info-row { flex-wrap: wrap; }
    .info-row > div { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .frhuntier *, .frhuntier *::before, .frhuntier *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    html { color-scheme: light; background: #fff; }
    .frhuntier { color: #111; background: #fff; font-size: 12pt; }
    .site-art, .hero-art, .home-hero::before, .site-masthead, .hero-actions, .frhuntier > footer { display: none; }
    .content, .home-page .content { width: 100%; margin: 0; }
    .home-hero { min-height: 0; padding: 0; overflow: visible; }
    .hero-copy { max-width: none; }
    .puzzle-main { background: #fff; border: none; }
    h1, h2, h3, h4, h5, h6, .event-summary h2, .muted, a, .solved-title-answer { color: #111; text-shadow: none; }
    .event-summary { border-color: #777; }
    .brand-frontier, .brand-hunt { color: inherit; }
}

.logout-form {
	margin: 0;
	display: flex;
	align-items: center;
}

.logout-button {
	all: unset;
	padding: 0px 10px;
	color: var(--link-text-color);
	cursor: pointer;
}

.logout-button:hover {
    color: var(--link-hover-color);
}

.logout-button:focus-visible {
    outline: 3px solid #b9edce;
    outline-offset: 4px;
}

@media (max-width: 960px) {
    .logout-button button[type="submit"] {
        padding: 8px 0;
        line-height: 1.5;
    }
}
