/* ============================================================
   Schottlerworks — warm design system (v2, Oct 2026)
   Used by the studio-level pages: home, games hub, shop.
   Header / breadcrumb / footer: assets/chrome.css (shared by every page).
   assets/sw.css carries the same look for the game & info pages.
   Warm cream paper, deep cocoa ink, terracotta + sunshine accents,
   big rounded cards, soft shadows. References: Finji (games / news /
   goodies tracks), Supercell (characters on light), Sago Mini
   (soft rounded cards), Ninja Kiwi (featured game + store buttons).
   ============================================================ */

:root {
    --cream: #FBF5EC;
    --paper: #FFFFFF;
    --sand: #F4E7D4;
    --sand-2: #EBD8BE;
    --ink: #2A1F17;
    --ink-2: #5E4D40;
    --ink-3: #8C7A6B;
    --line: rgba(42,31,23,0.10);
    --line-2: rgba(42,31,23,0.18);
    --accent: #C4532A;        /* terracotta: white text on it passes AA */
    --accent-soft: #F7DCCF;
    --sun: #F2B84B;
    --sun-soft: #FCEBC4;
    --sea: #1F5F6B;
    --sea-soft: #D8EAEC;
    --leaf: #3C7A4A;
    --leaf-soft: #DDEBDD;
    --rose-soft: #F6DCD6;
    --night: #1D2633;
    --shadow-sm: 0 1px 2px rgba(42,31,23,0.06), 0 4px 14px rgba(42,31,23,0.06);
    --shadow-md: 0 2px 4px rgba(42,31,23,0.05), 0 18px 40px rgba(42,31,23,0.12);
    --radius: 24px;
    --radius-sm: 14px;
    --font-head: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px; line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------------- buttons ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body); font-weight: 600; font-size: 1rem;
    padding: 14px 24px; border-radius: 999px; text-decoration: none;
    border: 2px solid transparent; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 0 #8F3A1C; }
.btn-primary:hover { box-shadow: 0 8px 0 #8F3A1C, 0 16px 30px rgba(196,83,42,0.25); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 #8F3A1C; }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { box-shadow: 0 12px 26px rgba(42,31,23,0.25); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { background: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* official-style store badges, drawn in CSS so they stay crisp */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: #000; color: #fff; text-decoration: none;
    border-radius: 12px; padding: 8px 16px 8px 12px; min-width: 156px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.22); }
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge small { display: block; font-size: 0.66rem; line-height: 1.1; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge strong { display: block; font-size: 1.12rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------------- type ---------------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent);
}
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--paper); border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 14px 6px 8px;
    font-size: 0.86rem; font-weight: 600; color: var(--ink-2);
    box-shadow: var(--shadow-sm);
}
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: 0.75rem; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.display { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 800; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.h3 { font-size: 1.45rem; font-weight: 700; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); line-height: 1.6; max-width: 34em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--ink-3); }
.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 700; color: var(--accent); text-decoration: none;
}
.link-arrow span { transition: transform .2s ease; }
a:hover .link-arrow span, .link-arrow:hover span { transform: translateX(4px); }

/* ---------------- sections ---------------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 36em; margin-top: 10px; }
.band-sand { background: var(--sand); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink h2, .band-ink h3 { color: var(--cream); }

/* ---------------- featured-game hero ---------------- */
.feature-hero { padding: 48px 0 40px; }
.feature-hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.feature-hero h1 { margin: 18px 0 18px; }
.feature-hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 18px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; color: var(--ink-3); font-size: 0.92rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 6px; }
.hero-facts span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }
.hero-art { position: relative; }
.hero-art-frame {
    position: relative; border-radius: 32px; overflow: hidden;
    box-shadow: var(--shadow-md); transform: rotate(1.2deg);
    border: 6px solid var(--paper);
    aspect-ratio: 1344 / 768; background: var(--night);
}
.hero-art-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
    position: absolute; display: flex; align-items: center; gap: 10px;
    background: var(--paper); border-radius: 18px; padding: 10px 16px 10px 10px;
    box-shadow: var(--shadow-md); font-weight: 700; font-size: 0.95rem; line-height: 1.15;
}
.hero-chip img { width: 40px; height: 40px; object-fit: contain; }
.hero-chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: 0.78rem; }
.hero-chip.c1 { left: -26px; bottom: 34px; transform: rotate(-3deg); }
.hero-chip.c2 { right: -18px; top: 26px; transform: rotate(3deg); }
@media (max-width: 920px) {
    .feature-hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero-art { max-width: 640px; }
    .hero-chip.c1 { left: 10px; bottom: -18px; }
    .hero-chip.c2 { right: 10px; top: -16px; }
}

/* ---------------- studio statement ---------------- */
.statement { text-align: center; padding: 72px 0 24px; }
.statement h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 800; max-width: 18em; margin: 12px auto 0; }
.statement h2 em { font-style: normal; color: var(--accent); }

/* ---------------- track tiles (games / shop / events) ---------------- */
.tracks { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.track {
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--radius); padding: 34px; overflow: hidden;
    text-decoration: none; color: var(--ink); min-height: 300px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.track:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.track h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 800; margin: 8px 0 10px; }
.track p { color: var(--ink-2); max-width: 26em; }
.track .link-arrow { margin-top: auto; padding-top: 22px; }
.track-games { background: var(--sea-soft); grid-row: span 2; }
.track-games .eyebrow { color: var(--sea); }
.track-games .link-arrow { color: var(--sea); }
.track-shop { background: var(--sun-soft); }
.track-shop .eyebrow, .track-shop .link-arrow { color: #9A5B00; }
.track-events { background: var(--rose-soft); }
.track-events .eyebrow, .track-events .link-arrow { color: #A23B3B; }
.game-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 26px 0 4px; }
.game-mosaic img { border-radius: 16px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }
.shop-peek { position: absolute; right: 22px; bottom: 22px; display: flex; align-items: flex-end; pointer-events: none; }
.shop-peek img { width: 78px; border-radius: 6px; box-shadow: var(--shadow-md); }
.shop-peek img:nth-child(1) { transform: rotate(-10deg) translateX(30px); }
.shop-peek img:nth-child(2) { transform: rotate(4deg); z-index: 1; }
.shop-peek img.mug { width: 92px; box-shadow: none; transform: translate(-4px, -4px); }
.track-shop .track-body, .track-events .track-body { max-width: 52%; display: flex; flex-direction: column; flex: 1; }
.events-peek { position: absolute; right: 24px; bottom: 22px; font-size: 5.5rem; line-height: 1; transform: rotate(8deg); opacity: 0.9; }
@media (max-width: 860px) {
    .tracks { grid-template-columns: 1fr; }
    .track-games { grid-row: auto; }
    .track-shop .track-body, .track-events .track-body { max-width: 100%; }
    .shop-peek, .events-peek { position: static; margin-top: 18px; transform: none; }
    .events-peek { font-size: 3.4rem; }
    .track { min-height: 0; }
}

/* ---------------- cards (news, games, products) ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }
.card {
    display: flex; flex-direction: column;
    background: var(--paper); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink);
    border: 1px solid var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover, .card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.35rem; font-weight: 700; margin: 8px 0 8px; }
.card-body p { color: var(--ink-2); font-size: 0.98rem; }
.card-body .link-arrow, .card-body .card-actions { margin-top: auto; padding-top: 18px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tag {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 5px 10px; border-radius: 999px; background: var(--sand); color: var(--ink-2);
}
.tag.live { background: var(--leaf-soft); color: var(--leaf); }
.tag.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.soon { background: var(--sun-soft); color: #8A5300; }
.tag.beta { background: var(--sea-soft); color: var(--sea); }
.tag.new { background: var(--accent-soft); color: var(--accent); }

/* wide featured game card (games hub) */
.feature-card {
    display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden;
    background: var(--night); color: #F6EEE3; border-radius: 30px; box-shadow: var(--shadow-md);
}
.feature-card .media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.feature-card .body { padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.feature-card h2 { color: #FFF6EA; font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; margin: 12px 0 12px; }
.feature-card p { color: #D8CCBE; }
.feature-card .hero-actions { margin: 26px 0 0; }
.feature-card .btn-line { color: #FFF6EA; border-color: rgba(255,246,234,0.35); }
.feature-card .btn-line:hover { background: rgba(255,246,234,0.08); border-color: #FFF6EA; }
.feature-card .tag.live { background: rgba(110,200,130,0.16); color: #8FDBA0; }
@media (max-width: 860px) {
    .feature-card { grid-template-columns: 1fr; }
    .feature-card .media img { min-height: 0; aspect-ratio: 16 / 9; }
    .feature-card .body { padding: 30px 26px 32px; }
}

/* products (shop) */
.product .card-media { aspect-ratio: 4 / 5; background: var(--sand); display: grid; place-items: center; }
.product .card-media img { width: 100%; height: 100%; object-fit: cover; }
.product.merch .card-media { padding: 26px; }
.product.merch .card-media img { object-fit: contain; }
.product.merch:nth-child(4n+1) .card-media { background: var(--sun-soft); }
.product.merch:nth-child(4n+2) .card-media { background: var(--sea-soft); }
.product.merch:nth-child(4n+3) .card-media { background: var(--accent-soft); }
.product.merch:nth-child(4n+4) .card-media { background: var(--leaf-soft); }
.product .meta { font-size: 0.82rem; color: var(--ink-3); font-weight: 600; }
.product h3 { font-size: 1.2rem; }

/* ---------------- about band ---------------- */
.about-band .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.about-band .art { position: relative; }
.about-band .art::before {
    content: ''; position: absolute; inset: 10% 6% 4% 6%; border-radius: 50%;
    background: radial-gradient(circle, rgba(242,184,75,0.45), rgba(242,184,75,0) 70%);
}
.about-band .art img { position: relative; max-width: 380px; margin: 0 auto; }
.about-band h2 { margin: 10px 0 16px; }
.about-band p + p { margin-top: 12px; }
.about-band .hero-actions { margin-top: 26px; }
@media (max-width: 860px) {
    .about-band .wrap { grid-template-columns: 1fr; gap: 24px; }
    .about-band .art img { max-width: 240px; }
}

/* ---------------- page hero (inner pages) ---------------- */
.page-hero { padding: 64px 0 28px; }
.page-hero h1 { margin: 14px 0 16px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin: 0 auto; }

/* notice strip */
.notice {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--radius-sm);
    padding: 18px 22px; color: var(--ink-2);
}
.notice strong { color: var(--ink); }
.notice .btn { margin-left: auto; }

/* ---------------- motion ---------------- */
.rise { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.bob { animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .rise { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    .section { padding: 64px 0; }
    .feature-hero { padding-top: 28px; }
    .track { padding: 26px; }
    .btn { padding: 13px 20px; }
    .notice .btn { margin-left: 0; }
}

/* "Follow along" tile: holds its own links, so it isn't a link itself */
.follow-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
div.track:hover { transform: none; box-shadow: none; }
.track-follow .track-body { max-width: 100%; }
.track-follow .track-body > p { max-width: 70%; }
.track-follow .events-peek { top: 26px; bottom: auto; right: 26px; font-size: 4.2rem; }
@media (max-width: 860px) { .track-follow .events-peek { display: none; } .track-follow .track-body > p { max-width: none; } }
