/* Playable-ads portfolio in the bright Honk Out! look of pocket-nebula.pages.dev
   (grass, cream cards, ink outlines, Fredoka headings). */
@font-face {
    font-family: "Honk Fredoka";
    src: url("fonts/fredoka-600-latin.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: "Honk Fredoka";
    src: url("fonts/fredoka-700-latin.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --grass: #8fd3a8;
    --grass-dark: #6fbf8c;
    --cream: #fff6e5;
    --sand: #f1e4c8;
    --ink: #3b2f2a;
    --muted: #6b5d55;
    --red: #ef5b4c;
    --yellow: #ffc53d;
    --green: #5cc96b;
    --green-dark: #3fa650;
    --display: "Honk Fredoka", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--grass); }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.35), transparent 32%),
        radial-gradient(circle at 92% 38%, rgba(255, 255, 255, 0.22), transparent 30%),
        radial-gradient(circle at 30% 95%, rgba(111, 191, 140, 0.55), transparent 40%),
        var(--grass);
}

a { color: #c2392b; }
a:hover { color: var(--ink); }

h1, h2, h3, .brand, .btn, .seg button { font-family: var(--display); font-weight: 700; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding: 20px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 22px;
}
.brand img { border-radius: 9px; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px; }
.top nav a {
    padding: 4px 14px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-family: var(--display);
    font-weight: 600;
}
.top nav a:hover { background: rgba(255, 246, 229, 0.7); }

/* ---------- chunky cards and buttons (game UI style) ---------- */
.card {
    background: var(--cream);
    border: 3px solid var(--ink);
    border-radius: 24px;
    box-shadow: 0 6px 0 var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 18px;
    border: 3px solid var(--ink);
    border-radius: 16px;
    background: #fffdf8;
    color: var(--ink);
    font-size: 17px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--ink);
    transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { color: var(--ink); background: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary {
    background: linear-gradient(#7fdc8b, var(--green));
    color: #fff;
    text-shadow: 0 2px 0 var(--green-dark);
}
.btn.primary:hover { color: #fff; background: linear-gradient(#8ce397, #66d175); }

/* ---------- hero ---------- */
.hero { padding: 26px 30px; margin: 6px 0 30px; }
.hero h1 {
    margin: 0 0 8px;
    font-size: 50px;
    line-height: 1.05;
    color: var(--yellow);
    -webkit-text-stroke: 2px var(--ink);
    paint-order: stroke fill;
    text-shadow: 0 4px 0 var(--ink);
    letter-spacing: 0.5px;
}
.hero h1 span { color: var(--red); }
.hero .tag { margin: 0 0 16px; font-size: 18px; max-width: 760px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
    padding: 3px 12px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: #fffdf8;
    font-family: var(--display);
    font-weight: 600;
    font-size: 15px;
}

.section-title {
    margin: 0 0 16px;
    font-size: 32px;
    text-align: center;
    color: var(--cream);
    -webkit-text-stroke: 1.5px var(--ink);
    paint-order: stroke fill;
    text-shadow: 0 3px 0 var(--ink);
}

/* ---------- the ad: phone frame and case note ---------- */
.ad {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
    padding: 24px;
    margin-bottom: 34px;
}
.stage { flex: 0 1 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 100%; }
.ad.wide .stage { flex-basis: 100%; }
.phone {
    max-width: 100%;
    padding: 12px;
    background: var(--ink);
    border-radius: 40px;
    box-shadow: 0 6px 0 #241c18, inset 0 0 0 2px #5a4a42;
    transition: width 0.25s;
}
.phone iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 28px; background: #a9dfb4; }
.phone.portrait { width: 324px; aspect-ratio: 324 / 664; }
.phone.landscape { width: 664px; aspect-ratio: 664 / 324; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.seg {
    display: inline-flex;
    border: 3px solid var(--ink);
    border-radius: 16px;
    overflow: hidden;
    background: #fffdf8;
    box-shadow: 0 4px 0 var(--ink);
}
.seg button {
    padding: 6px 16px;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
}
.seg button + button { border-left: 3px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--green); color: #fff; text-shadow: 0 2px 0 var(--green-dark); }
.cta-note { min-height: 24px; margin: 0; color: var(--muted); font-size: 15px; text-align: center; }
.cta-note.on { color: var(--green-dark); font-weight: 600; }

.note { flex: 1 1 340px; min-width: 0; }
.note h2 { margin: 0 0 2px; font-size: 30px; }
.note .genre { margin: 0 0 14px; color: var(--muted); font-family: var(--display); font-weight: 600; }
.note h3 { margin: 18px 0 4px; font-size: 19px; }
.note p { margin: 0 0 10px; }
.note ul { margin: 0 0 10px; padding-left: 20px; }
.note li { margin-bottom: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- specs table ---------- */
.specs, .media, .how { padding: 24px 28px; margin-bottom: 34px; }
.specs h2, .media h2, .how h2 { margin: 0 0 6px; font-size: 26px; }
.specs > p, .how p { margin: 0 0 12px; }
.table { overflow-x: auto; border: 2px solid var(--ink); border-radius: 16px; background: #fffdf8; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 2px solid var(--sand); }
tr:last-child td { border-bottom: 0; }
th { background: var(--sand); font-family: var(--display); font-weight: 700; font-size: 15px; white-space: nowrap; }
td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
td.net { font-family: var(--display); font-weight: 700; white-space: nowrap; }
td.net a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.small { color: var(--muted); font-size: 14px; }
code { padding: 1px 6px; border-radius: 6px; background: var(--sand); font-size: 0.9em; }

/* ---------- media ---------- */
.gallery { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--muted); }
.gallery video, .gallery img { display: block; border: 3px solid var(--ink); border-radius: 16px; background: #a9dfb4; }
.gallery video { width: 216px; height: 384px; }
.shots { display: flex; gap: 8px; }
.shots img { width: 120px; height: 260px; object-fit: cover; }
.shots.wide img { width: 260px; height: 120px; }

/* ---------- footer ---------- */
footer { padding: 8px 0 36px; text-align: center; font-size: 15px; }
footer a { margin: 0 10px; color: var(--ink); font-family: var(--display); font-weight: 600; }
footer p { margin: 8px 0 0; color: #2f4d3a; }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
    .hero { padding: 18px; }
    .hero h1 { font-size: 40px; }
    .ad { padding: 16px; justify-content: center; }
    .specs, .media, .how { padding: 18px; }
    /* The specs table becomes one card per network. */
    table { min-width: 0; }
    thead { display: none; }
    table, tbody, tr, td { display: block; }
    tr { padding: 10px 14px; border-bottom: 2px solid var(--sand); }
    tr:last-child { border-bottom: 0; }
    td { padding: 2px 0; border: 0; }
    td.net { font-size: 19px; padding-bottom: 4px; }
    td[data-label]::before {
        content: attr(data-label) ": ";
        font-family: var(--display);
        font-weight: 700;
        color: var(--muted);
    }
}
@media (max-width: 520px) {
    .wrap { padding: 0 12px; }
    .top { justify-content: center; }
    .hero h1 { font-size: 34px; }
    .phone { padding: 9px; border-radius: 32px; }
    .phone iframe { border-radius: 23px; }
    .gallery { justify-content: center; }
    .shots img { width: 92px; height: 200px; }
    .shots.wide img { width: 100%; height: auto; aspect-ratio: 260 / 120; }
    .shots.wide { flex-direction: column; }
}
