/* Interior Court — game preview page.
   Palette and fonts come from the game itself (night theme), so the page
   feels like the app: navy court, cream type, orange buttons, chunky ink
   outlines with hard pixel shadows. */

@font-face {
    font-family: 'DotGothic16';
    src: url('assets/interiorcourt/fonts/dotgothic16-latin-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'M PLUS Rounded 1c';
    src: url('assets/interiorcourt/fonts/mplusrounded1c-latin-500.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'M PLUS Rounded 1c';
    src: url('assets/interiorcourt/fonts/mplusrounded1c-latin-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'M PLUS Rounded 1c';
    src: url('assets/interiorcourt/fonts/mplusrounded1c-latin-800.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

.ic-body {
    --ic-night: #14223c;
    --ic-night-2: #182845;
    --ic-panel: #24344f;
    --ic-panel-2: #31466d;
    --ic-ink: #0b1322;
    --ic-cream: #f4e6c6;
    --ic-muted: #c4b498;
    --ic-orange: #e8662a;
    --ic-orange-hi: #ff9550;
    --ic-ball: #e2f05a;
    --ic-good: #63d08b;
    --ic-chat: #cfa3f5;
    --ic-tell: #8fcaf5;
    --ic-court: #2456b8;

    --ic-font-pixel: 'DotGothic16', ui-monospace, monospace;
    --ic-font-body: 'M PLUS Rounded 1c', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ic-radius: 14px;
    --ic-border: 3px solid var(--ic-ink);
    --ic-shadow: 0 5px 0 var(--ic-ink);

    background-color: var(--ic-night);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(47, 99, 196, 0.35), transparent 70%),
        repeating-linear-gradient(90deg, transparent 0 79px, rgba(244, 230, 198, 0.025) 79px 80px),
        repeating-linear-gradient(0deg, transparent 0 79px, rgba(244, 230, 198, 0.025) 79px 80px);
    color: var(--ic-cream);
}

.ic-body::before {
    opacity: 0.04;
}

.ic-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.ic-page {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding-bottom: 48px;
    font-family: var(--ic-font-body);
    font-weight: 500;
}

/* ---------- Hero ---------- */

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

.ic-banner {
    border: var(--ic-border);
    border-radius: var(--ic-radius);
    box-shadow: var(--ic-shadow), 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    background: var(--ic-court);
    aspect-ratio: 2000 / 858;
}

.ic-banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ic-hero-copy {
    max-width: 620px;
    margin: 28px auto 0;
}

.ic-kicker {
    font-family: var(--ic-font-pixel);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ic-ball);
    margin-bottom: 10px;
}

.ic-subtitle {
    font-family: var(--ic-font-pixel);
    font-size: clamp(24px, 6vw, 44px);
    line-height: 1.1;
    color: var(--ic-cream);
    text-shadow: 0 3px 0 var(--ic-ink);
    margin-bottom: 14px;
}

.ic-lead {
    font-size: clamp(16px, 2.4vw, 19px);
    line-height: 1.6;
    color: var(--ic-muted);
    margin-bottom: 26px;
}

.ic-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.ic-chips li {
    font-family: var(--ic-font-pixel);
    font-size: 13px;
    padding: 5px 12px;
    border: 2px solid var(--ic-panel-2);
    border-radius: 999px;
    color: var(--ic-cream);
    background: rgba(36, 52, 79, 0.7);
}

.ic-chips li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--ic-ball);
    vertical-align: 1px;
}

/* ---------- Store buttons ---------- */

.ic-store-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 460px;
    margin: 0 auto;
}

.ic-store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 14px;
    border: var(--ic-border);
    border-radius: 12px;
    background: linear-gradient(var(--ic-orange-hi), var(--ic-orange));
    box-shadow: var(--ic-shadow);
    color: #fffaf0;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.ic-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 0 var(--ic-ink);
}

.ic-store-button:active {
    transform: translateY(4px);
    box-shadow: 0 1px 0 var(--ic-ink);
}

.ic-store-button:focus-visible {
    outline: 3px solid var(--ic-ball);
    outline-offset: 3px;
}

.ic-store-button .material-icons {
    font-size: 28px;
}

.ic-store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    text-shadow: 0 2px 0 rgba(11, 19, 34, 0.35);
}

.ic-store-text small {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.9;
}

/* ---------- Sections ---------- */

.ic-section {
    margin-top: 88px;
}

.ic-section-title {
    font-family: var(--ic-font-pixel);
    font-weight: 400;
    font-size: clamp(24px, 4.5vw, 34px);
    line-height: 1.2;
    text-align: center;
    color: var(--ic-cream);
    text-shadow: 0 3px 0 var(--ic-ink);
    margin-bottom: 32px;
}

.ic-section-title.ic-left {
    text-align: left;
}

/* Screenshot strip: scrolls sideways on every width, snaps to each phone */
.ic-shots {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 6px 4px 22px;
    margin: 0 -4px;
    scrollbar-color: var(--ic-panel-2) transparent;
}

.ic-shots:focus-visible {
    outline: 3px solid var(--ic-ball);
    outline-offset: 4px;
    border-radius: var(--ic-radius);
}

.ic-shot {
    flex: 0 0 auto;
    width: clamp(170px, 42vw, 220px);
    margin: 0;
    scroll-snap-align: start;
}

.ic-shot img,
.ic-phone img {
    display: block;
    width: 100%;
    height: auto;
    border: var(--ic-border);
    border-radius: 18px;
    box-shadow: var(--ic-shadow);
    background: var(--ic-panel);
}

.ic-shot figcaption {
    font-family: var(--ic-font-pixel);
    font-size: 13px;
    line-height: 1.35;
    color: var(--ic-muted);
    text-align: center;
    margin-top: 12px;
}

/* ---------- Features ---------- */

.ic-feature {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    padding: 28px;
    margin-bottom: 26px;
    border: var(--ic-border);
    border-radius: var(--ic-radius);
    background: linear-gradient(160deg, var(--ic-panel) 0%, var(--ic-night-2) 100%);
    box-shadow: var(--ic-shadow);
}

.ic-feature--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
}

.ic-feature--flip .ic-phone {
    order: 2;
}

.ic-phone {
    max-width: 220px;
    width: 100%;
    justify-self: center;
}

.ic-feature-copy .ic-feature-tag {
    display: inline-block;
    line-height: 1.4;
    font-family: var(--ic-font-pixel);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ic-ink);
    background: var(--ic-ball);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
}

.ic-feature-copy .ic-tag-chat { background: var(--ic-chat); }
.ic-feature-copy .ic-tag-good { background: var(--ic-good); }
.ic-feature-copy .ic-tag-tell { background: var(--ic-tell); }

.ic-feature h3 {
    font-family: var(--ic-font-pixel);
    font-weight: 400;
    font-size: clamp(22px, 3.4vw, 28px);
    line-height: 1.2;
    color: var(--ic-cream);
    margin-bottom: 14px;
}

.ic-feature-copy p {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ic-muted);
}

.ic-feature-copy .ic-feature-punch {
    margin-top: 14px;
    font-weight: 800;
    color: var(--ic-orange-hi);
}

/* ---------- Career ---------- */

.ic-career {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
    gap: 48px;
    align-items: center;
}

.ic-career-intro {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ic-muted);
    margin: -18px 0 22px;
}

.ic-ladder {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
}

.ic-ladder li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--ic-font-pixel);
    font-size: 17px;
    color: var(--ic-cream);
    padding: 9px 14px;
    border: 2px solid var(--ic-ink);
    border-radius: 10px;
    background: var(--ic-panel);
}

/* Each rung steps further right, so the list reads as a climb */
.ic-ladder li:nth-child(2) { margin-left: 4%; background: var(--ic-panel-2); }
.ic-ladder li:nth-child(3) { margin-left: 8%; background: var(--ic-panel-2); }
.ic-ladder li:nth-child(4) { margin-left: 12%; background: #3d5788; }
.ic-ladder li:nth-child(5) {
    margin-left: 16%;
    background: linear-gradient(var(--ic-orange-hi), var(--ic-orange));
    color: #fffaf0;
}

.ic-ladder span {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ic-ink);
    color: var(--ic-ball);
    font-size: 14px;
    flex: none;
}

.ic-extras {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ic-extras li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ic-muted);
}

.ic-extras li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ic-ball);
    box-shadow: 0 0 0 2px var(--ic-ink);
}

.ic-phone--tilt {
    transform: rotate(3deg);
}

/* ---------- Closing CTA ---------- */

.ic-cta {
    margin-top: 88px;
    padding: 40px 24px 36px;
    text-align: center;
    border: var(--ic-border);
    border-radius: var(--ic-radius);
    box-shadow: var(--ic-shadow);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(226, 240, 90, 0.16), transparent 60%),
        linear-gradient(160deg, var(--ic-panel-2), var(--ic-night-2));
}

.ic-cta-icon {
    width: 96px;
    height: 96px;
    border: var(--ic-border);
    border-radius: 22px;
    box-shadow: var(--ic-shadow);
    margin-bottom: 18px;
}

.ic-cta h2 {
    font-family: var(--ic-font-pixel);
    font-weight: 400;
    font-size: clamp(26px, 5vw, 36px);
    color: var(--ic-ball);
    text-shadow: 0 3px 0 var(--ic-ink);
    margin-bottom: 12px;
}

.ic-cta p {
    max-width: 520px;
    margin: 0 auto 10px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ic-cream);
}

.ic-cta .ic-cta-small {
    font-size: 14px;
    color: var(--ic-muted);
    margin-bottom: 26px;
}

/* ---------- Footer links ---------- */

.ic-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 32px;
    font-size: 14px;
}

.ic-links a {
    color: var(--ic-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ic-links a:hover,
.ic-links a:focus-visible {
    color: var(--ic-cream);
}

/* ---------- Narrow screens ---------- */

@media (max-width: 760px) {
    .ic-section {
        margin-top: 64px;
    }

    .ic-feature,
    .ic-feature--flip {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 22px 18px 26px;
    }

    .ic-feature .ic-phone {
        order: 2;
        max-width: 220px;
    }

    .ic-career {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ic-career .ic-phone {
        max-width: 220px;
    }
}

@media (max-width: 380px) {
    .ic-store-buttons {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ic-store-button,
    .ic-phone--tilt {
        transition: none;
        transform: none;
    }
}
