/* ============================================================
   ONKYO: Spirit Hunter — Main Stylesheet
   Bootstrap 5 is loaded before this file.
   ============================================================ */

/* ── FONT ─────────────────────────────────────────────────── */

@font-face {
    font-family: 'Silver';
    src: url('../fonts/Silver.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'SFMono';
    src: url('../fonts/SFMono-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'SFMono';
    src: url('../fonts/SFMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'SFMono';
    src: url('../fonts/SFMono-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'SFMono';
    src: url('../fonts/SFMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/* ── CUSTOM PROPERTIES ────────────────────────────────────── */

:root {
    --color-bg:           #060c16;
    --color-surface:      #0c1524;
    --color-surface-2:    #101c30;
    --color-border:       #1e2a42;
    --color-accent:       #7b52c8;
    --color-accent-mid:   #9068d8;
    --color-accent-glow:  rgba(123, 82, 200, 0.25);
    --color-secondary:    #20d0a3;
    --color-text:         #c0c8d8;
    --color-text-dim:     #4a5568;
    --color-highlight:    #dcd4f4;
    --color-white:        #e8e4f2;

    --font-main: 'Silver', 'Courier New', Courier, monospace;

    --notch-lg: 8px;
    --notch-sm: 5px;

    /* Matches the panel-body bg so notched button corners blend in. */
    --btn-corner-color: var(--color-surface);
}

/* ── BASE ─────────────────────────────────────────────────── */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.5;
    min-height: 100vh;
}

body {
    padding-top: 10px;
    padding-bottom: 40px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    font-weight: normal;
    color: var(--color-white);
    letter-spacing: 1px;
}

p {
    font-size: 18px;
    line-height: 16px;
    color: var(--color-text);
    margin-bottom: 0;
    letter-spacing: 1px;
}

a {
    color: var(--color-accent-mid);
    text-decoration: none;
}

a:hover {
    color: var(--color-highlight);
    text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ── LAYOUT ───────────────────────────────────────────────── */

.onkyo-wrap {
    max-width: 500px;
}

/* ── NOTCHED CORNER MIXIN (triangle trick) ─────────────────
   Triangles in page-bg color sit over the border corners,
   creating the illusion of chamfered/notched edges.
   ─────────────────────────────────────────────────────────── */

.panel,
.btn-onkyo {
    position: relative;
}

.panel::before,
.btn-onkyo::before {
    content: '';
    position: absolute;
    inset: -1px;
    pointer-events: none;
    z-index: 2;
}

.panel::before {
    background:
        linear-gradient(135deg, var(--color-bg) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) top    left  / var(--notch-sm) var(--notch-sm) no-repeat,
        linear-gradient(225deg, var(--color-bg) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) top    right / var(--notch-sm) var(--notch-sm) no-repeat,
        linear-gradient(315deg, var(--color-bg) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) bottom right / var(--notch-sm) var(--notch-sm) no-repeat,
        linear-gradient(45deg,  var(--color-bg) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) bottom left  / var(--notch-sm) var(--notch-sm) no-repeat;
}

.btn-onkyo::before {
    background:
        linear-gradient(135deg, var(--btn-corner-color) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) top    left  / var(--notch-sm) var(--notch-sm) no-repeat,
        linear-gradient(225deg, var(--btn-corner-color) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) top    right / var(--notch-sm) var(--notch-sm) no-repeat,
        linear-gradient(315deg, var(--btn-corner-color) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) bottom right / var(--notch-sm) var(--notch-sm) no-repeat,
        linear-gradient(45deg,  var(--btn-corner-color) var(--notch-sm), transparent calc(var(--notch-sm) + 1px)) bottom left  / var(--notch-sm) var(--notch-sm) no-repeat;
}

/* ── PANELS ───────────────────────────────────────────────── */

.panel {
    border: 1px solid var(--color-accent);
    background-color: var(--color-surface);
    margin-bottom: 10px;
    overflow: hidden;
    /* clip-path cuts the border itself into the notched shape; the ::before
       gradient trick cannot do this because overflow:hidden clips it first. */
    clip-path: polygon(
        var(--notch-sm) 0%,
        calc(100% - var(--notch-sm)) 0%,
        100% var(--notch-sm),
        100% calc(100% - var(--notch-sm)),
        calc(100% - var(--notch-sm)) 100%,
        var(--notch-sm) 100%,
        0% calc(100% - var(--notch-sm)),
        0% var(--notch-sm)
    );
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
    padding: 5px 12px;
    padding-top: 10px;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent-mid);
}

.panel-body {
    padding: 14px 14px;
}

/* ── HERO PANEL ───────────────────────────────────────────── */

.panel-hero {
    border-color: var(--color-accent-mid);
    text-align: center;
    padding-bottom: 0;
}

.hero-video-wrap {
    position: relative;
    width: 100%;
    line-height: 0;
    border-bottom: 1px solid var(--color-border);
}

.hero-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 101%;
    display: block;
    pointer-events: none;
}

.game-title {
    font-size: 40px;
    letter-spacing: 10px;
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 4px;
}

.game-subtitle {
    font-size: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.game-hook {
    font-size: 20px;
    line-height: 18px;
    color: var(--color-text);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

/* ── DIVIDER ──────────────────────────────────────────────── */

.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 12px 0;
    opacity: 1;
}

/* ── GAME TAGS LIST ───────────────────────────────────────── */

.game-tags li {
    font-size: 14px;
    color: var(--color-text);
    padding: 3px 0;
    letter-spacing: 1px;
}

/* ── FORM ─────────────────────────────────────────────────── */

.form-onkyo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group-text {
    background: #1d3358;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 0;
    padding: 8px 10px 4px;
}

.input-onkyo {
    background: #1d3358;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 13px;
    padding: 4px 12px;
    padding-bottom: 0px;
    width: 100%;
    border-radius: 0;
    outline: none;
    transition: border-color 0.12s;
    letter-spacing: 1px;
}

.input-group .input-onkyo {
    border-left: none;
}

.input-group .btn.btn-onkyo {
    border-left: none;
    border-radius: 0;
    flex-shrink: 0;
}

.input-group .btn.btn-onkyo::before {
    display: none;
}

/* ── SIGNUP SUCCESS ───────────────────────────────────────── */

.signup-success-body {
    text-align: center;
}

.signup-heart {
    width: 36px;
    height: 36px;
    filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(2350%) hue-rotate(340deg) brightness(105%);
}

.input-onkyo::placeholder {
    color: #7090aa;
}

.input-onkyo:focus {
    border-color: var(--color-accent);
    box-shadow: none;
}

/* ── BUTTONS ──────────────────────────────────────────────── */

.btn-onkyo {
    display: inline-flex;
    /* align-items: center; */
    justify-content: center;
    border: 1px solid var(--color-accent);
    background: transparent;
    color: var(--color-highlight);
    font-family: var(--font-main);
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 7px 14px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
    box-shadow:
        inset 0  1px 0 rgba(255, 255, 255, 0.09),
        inset  1px 0 0 rgba(255, 255, 255, 0.05),
        inset -1px 0 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.btn-onkyo:hover,
.btn-onkyo:focus {
    background: var(--color-accent-glow);
    color: var(--color-white);
    outline: none;
}

.btn-onkyo:active {
    border-color: rgba(117, 72, 226, 0.5) !important;
}

.btn-onkyo:disabled {
    border-color: rgba(117, 72, 226, 0.5) !important;
}

.btn-onkyo-primary {
    background: linear-gradient(135deg, #5530a0 0%, var(--color-accent) 55%, #7548e2 100%);
    color: var(--color-white);
    border-color: rgba(117, 72, 226, 0.5);
    box-shadow:
        0 4px 18px -6px rgba(123, 82, 200, 0.55),
        inset 0  1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-onkyo-primary:hover,
.btn-onkyo-primary:focus {
    background: linear-gradient(135deg, #6640b8 0%, var(--color-accent-mid) 55%, #8558f5 100%);
    color: var(--color-white);
    box-shadow:
        0 6px 24px -6px rgba(144, 104, 216, 0.5),
        inset 0  1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.btn-onkyo-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-right: 6px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* ── SOCIAL GRID ──────────────────────────────────────────── */

.social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

/* ── FOOTER ───────────────────────────────────────────────── */

.site-footer {
    text-align: center;
    padding: 20px 14px 10px;
    font-size: 13px;
    color: var(--color-text-dim);
    letter-spacing: 1px;
}

.coming-soon {
    font-size: 25px;
    letter-spacing: 8px;
    color: var(--color-accent-mid);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-icon {
    margin: 10px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--color-accent);
}

.footer-links a {
    color: var(--color-text-dim);
    letter-spacing: 1px;
}

.footer-links a:hover {
    color: var(--color-accent-mid);
}

/* ── RESPONSIVE: DESKTOP SIZE BUMPS ──────────────────────── */

@media (min-width: 768px) {
    html, body          { font-size: 22px; }
    p                   { font-size: 22px; line-height: 20px; }
    .panel-header       { font-size: 24px; }
    .game-tags li       { font-size: 17px; }
    .game-title         { font-size: 56px; letter-spacing: 12px; }
    .game-subtitle      { font-size: 20px; }
    .game-hook          { font-size: 25px; line-height: 22px; }
    .btn-onkyo          { font-size: 22px; padding: 7px 18px; padding-bottom: 4px; padding-top: 10px; }
    .text-dim,
    .text-small         { font-size: 18px; line-height: 15px; }
    .coming-soon        { font-size: 28px; }
    .site-footer        { font-size: 15px; }
    .input-onkyo        { font-size: 22px; }
    .social-grid        { grid-template-columns: 1fr 1fr; }
    .hide-on-mobile     { display: inline; }
    .hide-on-desktop    { display: none; }
    .btn-icon           { width: 18px; height: 18px; }
}

/* ── UTILITIES ────────────────────────────────────────────── */

.text-accent  { color: var(--color-accent-mid); }
.text-white   { color: var(--color-white); }
.text-dim,
.text-small {
    color: var(--color-text-dim);
    font-size: 14px;
    line-height: 12px;
    letter-spacing: 0.5px;
}
.mt-1         { margin-top: 8px !important; }
.mt-2         { margin-top: 14px !important; }
.mb-1         { margin-bottom: 8px !important; }
.mb-2         { margin-bottom: 14px !important; }

/* ASCII progress bar in panel headers — inherits font-size from .panel-header */
.ascii-bar {
    letter-spacing: 0;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Responsive visibility helpers */
.hide-on-mobile  { display: none; }
.hide-on-desktop { display: inline; }

/* ── NEWSLETTER SIGNUP ────────────────────────────────────── */

/* Honeypot field — kept in the DOM but off-screen for humans. */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Inline AJAX feedback under the signup form. */
.signup-message {
    min-height: 1em;
    margin-top: 8px;
    font-size: 13px;
    letter-spacing: 1px;
}
.signup-message:empty { margin-top: 0; }
.signup-message--success { color: #9affc4; }
.signup-message--error   { color: #ff8da1; }

/* Disabled submit button (busy / subscribed). */
.btn-onkyo[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

.color-purple {
    color: var(--color-accent-mid);
}
