:root {
    --gold: #f8bd6b;
    --dark: #08121b
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--dark);
    color: #f7f4ed;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif
}

a {
    color: inherit;
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.container {
    max-width: 1250px;
    margin: auto;
    padding: 0 30px
}

header {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    padding: 24px 0
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.brand {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 6px
}

.brand small {
    display: block;
    font-size: 9px;
    letter-spacing: 4px;
    font-weight: 400
}

.links {
    display: flex;
    gap: 32px
}

.links .active {
    color: var(--gold)
}

.hero {
    min-height: 620px;
    background: linear-gradient(90deg, #08121b 0%, #08121b 26%, #08121be8 41%, #08121b33 85%), url('../assets/hero.webp') right center/auto 100% no-repeat
}

.hero .container {
    padding-top: 145px;
    padding-bottom: 85px
}

.hero-copy {
    max-width: 535px
}

.hero h1 {
    font-size: clamp(42px, 5vw, 74px);
    line-height: 1.05;
    letter-spacing: -3px;
    margin: 0 0 25px
}

.gold {
    color: var(--gold)
}

p {
    line-height: 1.65
}

.hero p {
    color: #e2e3e5;
    margin: 12px 0
}

.paper {
    background: #efe5d2;
    color: #15191c;
    padding: 65px 0 85px;
    background-image: radial-gradient(#927c6222 .8px, transparent .8px);
    background-size: 6px 6px
}

.games-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 35px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #84786b
}

h2 {
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin: 12px 0 20px
}

.button {
    display: inline-block;
    border: 1px solid currentColor;
    border-radius: 30px;
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 700;
    text-align: center
}

.button:hover {
    background: #ffffff18;
    text-decoration: none
}

.dark-button {
    background: #09131c;
    color: white;
    margin-top: 10px
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
}

.card {
    display: flex;
    flex-direction: column;
    background: #0a1821;
    color: white;
    border-radius: 9px;
    overflow: hidden
}

.card.loot {
    background: #281c14
}

.card.slicer {
    background: #191329
}

.card img {
    width: 100%;
    height: 185px;
    object-fit: cover
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.card h3 {
    font-size: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #57e7f2;
    margin: 0 0 10px
}

.card.loot h3 {
    color: #f4bd70
}

.card.slicer h3 {
    color: #9bf568
}

.card p {
    font-size: 14px;
    flex: 1;
    margin: 0 0 20px
}

.card .button {
    color: #58e9f5
}

.card.loot .button {
    color: #f4bd70
}

.card.slicer .button {
    color: #9bf568
}

.landscape {
    height: 260px;
    background: linear-gradient(0deg, #08121b, transparent), url('../assets/footer.webp') center/cover
}

footer {
    padding: 20px 0 32px
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.footer-inner strong {
    font-size: 23px;
    letter-spacing: 3px
}

.footer-inner small {
    display: block;
    color: #bbb
}

.contact {
    display: flex;
    gap: 26px;
    flex-wrap: wrap
}

.games-header {
    padding: 155px 0 65px;
    background: radial-gradient(ellipse at 80% 0%, #29384a, #08121b 65%)
}

.games-header p {
    max-width: 670px
}

.games-page .cards {
    gap: 25px
}

.games-page .card img {
    height: 230px
}

.games-page .card-body {
    padding: 25px
}

.games-page .card p {
    font-size: 16px
}

.note {
    font-size: 12px;
    color: #716b63;
    margin-top: 28px
}

@media(max-width:1000px) {
    .games-layout {
        grid-template-columns: 1fr
    }

    .intro {
        max-width: 650px
    }
}

@media(max-width:700px) {
    .container {
        padding: 0 20px
    }

    .brand {
        font-size: 23px
    }

    .brand small {
        font-size: 7px
    }

    .hero {
        background: linear-gradient(90deg, #08121bf2, #08121bba), url('../assets/hero.webp') center/cover
    }

    .hero .container {
        padding-top: 155px
    }

    .hero h1 {
        letter-spacing: -1px
    }

    .cards {
        grid-template-columns: 1fr
    }

    .card img,
    .games-page .card img {
        height: 215px
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column
    }

    .games-header {
        padding-top: 150px
    }
}

@media(min-width:701px) {
    .hero {
        background-size: auto, cover;
        background-position: center, center
    }
}

@media(max-width:700px) {
    .landscape {
        height: 180px;
        background-position: 38% center
    }

    .hero {
        min-height: 620px
    }
}

/* Brand and story-led Games page */
.brand img {
    width: 168px;
    height: auto
}

.footer-inner img {
    width: 126px;
    height: auto
}

.story-hero {
    min-height: 400px;
    padding: 138px 0 62px;
    background: linear-gradient(90deg, #08121bdb 0%, #08121b66 70%, #08121b33), url('../assets/intro.webp') center 55%/cover no-repeat
}

.story-intro {
    background: #eee2cc;
    color: #1a1917;
    padding: 32px 38px;
    max-width: 650px;
    box-shadow: 8px 10px 0 #0004;
    clip-path: polygon(0 1%, 99% 0, 100% 97%, 2% 100%)
}

.story-intro .eyebrow {
    color: #75624c
}

.story-intro h1 {
    font: 700 clamp(30px, 3.3vw, 46px)/1.13 Georgia, serif;
    margin: 10px 0 18px
}

.story-intro p {
    margin: 8px 0;
    font-size: 15px
}

.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    --accent: #75e5fc;
    background: #08141c
}

.story-image {
    min-height: 500px;
    position: relative
}

.story-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.story-panel {
    display: flex;
    align-items: center;
    padding: 58px clamp(25px, 4.5vw, 80px);
    background: linear-gradient(140deg, #0c1b22, #081016)
}

.story-inner {
    max-width: 670px
}

.story .eyebrow {
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 2px
}

.story h2 {
    font-size: clamp(35px, 3.5vw, 57px);
    color: var(--accent);
    margin: 12px 0 8px
}

.story-tag {
    font: italic 20px/1.35 Georgia, serif;
    color: #f5ddba;
    margin: 0 0 22px
}

.story-prose p {
    font-size: 14px;
    line-height: 1.72;
    color: #e4e5e4;
    margin: 0 0 13px
}

.story-end {
    margin-top: 25px
}

.timeline {
    display: flex;
    gap: 15px;
    margin-bottom: 22px
}

.tick {
    border-top: 2px solid var(--accent);
    padding-top: 9px;
    flex: 1;
    min-width: 0
}

.tick b {
    display: block;
    font-size: 13px;
    color: var(--accent)
}

.tick span {
    font-size: 11px;
    color: #c7cbcc;
    display: block
}

.story .button {
    border-color: var(--accent);
    color: var(--accent);
    border-radius: 4px
}

.story-loot {
    --accent: #f2b86a
}

.story-loot .story-panel {
    order: 0;
    background: linear-gradient(135deg, #261a12, #15130f)
}

.story-loot .story-image {
    order: 1
}

.story-cyber {
    --accent: #63d9f5
}

.story-slicer {
    --accent: #8ef76a
}

.story-cyber .story-image img {
    object-position: center
}

.story-loot .story-image img {
    object-position: center
}

.story-slicer .story-image img {
    object-position: 35% center
}

.story-hero+.story {
    border-top: 3px solid #15212a
}

.story+.story {
    border-top: 2px solid #263038
}

a:focus-visible {
    outline: 3px solid #ffcf75;
    outline-offset: 4px
}

@media(max-width:900px) {
    .story {
        grid-template-columns: 1fr
    }

    .story-image {
        min-height: 360px
    }

    .story-loot .story-image {
        order: 0
    }

    .story-loot .story-panel {
        order: 1
    }

    .story-panel {
        padding: 38px 26px
    }

    .story-intro {
        max-width: 90%
    }

    .story-hero {
        min-height: 350px
    }

    .timeline {
        gap: 8px
    }
}

@media(max-width:600px) {
    .story-hero {
        padding-top: 115px
    }

    .story-intro {
        max-width: 100%;
        padding: 23px
    }

    .story-image {
        min-height: 270px
    }

    .story h2 {
        font-size: 36px
    }

    .story-prose p {
        font-size: 14px
    }

    .brand img {
        width: 120px
    }

    .footer-inner img {
        width: 110px
    }
}
/* Shared studio footer */
.footer-identity { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: inline-block; align-self: flex-start; }
.footer-logo img { display: block; }
.footer-meta { color: #adb3b7; font-size: 12px; line-height: 1.6; letter-spacing: .2px; }
.footer-meta span { white-space: nowrap; }
footer .contact { font-size: 14px; color: #d3d6d8; }

/* Home newsletter: native email validation, no third-party scripts or styles. */
.newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 40px;
    margin-bottom: 28px;
    position: relative;
}
.newsletter::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: #f7f4ed25;
}
.newsletter .eyebrow { color: var(--gold); }
.newsletter h2 { font-size: clamp(28px, 3vw, 38px); margin: 10px 0 12px; }
.newsletter-copy p { color: #c3c9cc; margin: 0; }
.newsletter-form { min-width: 0; }
.newsletter-form label { display: block; font-size: 14px; margin-bottom: 8px; }
.newsletter-fields { display: flex; gap: 12px; }
.newsletter-fields input {
    min-width: 0;
    flex: 1;
    border: 1px solid #7d858a;
    border-radius: 4px;
    background: #f7f4ed;
    color: #15191c;
    font: inherit;
    padding: 12px 14px;
}
.newsletter-fields input::placeholder { color: #62696d; }
.newsletter-fields .button {
    background: var(--gold);
    color: #15191c;
    border: 1px solid var(--gold);
    border-radius: 4px;
    font: 700 14px/1.4 system-ui, sans-serif;
    cursor: pointer;
    white-space: nowrap;
}
.newsletter-fields .button:hover { background: #ffd194; }
.newsletter-fields :focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.newsletter-note { color: #adb3b7; font-size: 12px; margin: 10px 0 0; }
.newsletter-trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
@media(max-width:700px) {
    .newsletter { grid-template-columns: 1fr; gap: 24px; }
    .newsletter::after { left: 20px; right: 20px; }
}
@media(max-width:400px) {
    .newsletter-fields { flex-direction: column; }
}
.newsletter-status { font-size: 14px; line-height: 1.5; margin: 12px 0 0; }
.newsletter-status:empty { display: none; }
.newsletter-status[data-state="pending"] { color: var(--gold); }
.newsletter-status[data-state="success"] { color: #a8df95; }
.newsletter-status[data-state="error"] { color: #ffb5a6; }
.newsletter-fields .button:disabled { opacity: .7; cursor: wait; }

/* Keep navigation legible over the illustrated page headers. */
header .links {
    gap: 5px;
    padding: 6px;
    border: 1px solid #f7f4ed26;
    border-radius: 8px;
    background: #08121bd9;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px #0003;
}
header .links a {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 4px;
    color: #f7f4ed;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
header .links a:hover { background: #f7f4ed14; }
header .links a.active { color: var(--gold); background: #f8bd6b0d; }
header .links a.active::after {
    content: "";
    position: absolute;
    height: 2px;
    bottom: 5px;
    left: 17px;
    right: 17px;
    background: var(--gold);
    border-radius: 1px;
}
@media(max-width:600px) {
    header .links, .contact-page header .links { gap: 2px; padding: 4px; }
    header .links a { font-size: 14px; padding: 9px 10px; }
    header .links a.active::after { left: 10px; right: 10px; }
}
@media(max-width:360px) {
    header .brand img { width: 90px; }
    header .links a { padding-left: 8px; padding-right: 8px; }
}
