/* /gazomazo landing page. Tokens mirror gazomazo/lib/config/theme.dart + lib/ui/widgets/manga.dart. */
@font-face { font-family: 'Bangers'; src: url('/assets/fonts/bangers-latin.woff2') format('woff2'); font-display: swap; }
.gm, .gm-bar, .gm-foot {
    --paper:#FAF7EE; --ink:#0F0F14; --soft:#3A3742; --white:#fff;
    --lavender:#E9E3FF; --mint:#DCF5E7; --butter:#FFF3C4; --peach:#FFE0D0; --powder:#CDEBFA;
    --mandarin:#F97316; --gold:#FDE047; --grape:#7C3AED; --emerald:#10B981; --crimson:#EF4444; --coral:#F43F5E; --cobalt:#2563EB;
    --disp: 'Bangers', Impact, 'Arial Black', sans-serif;
}
.gm {
    background-color: var(--paper);
    background-image: radial-gradient(rgba(15,15,20,.06) 1.5px, transparent 1.6px);
    background-size: 15px 15px;
    color: var(--ink);
    padding: 3.5rem 0 5rem;
    overflow: hidden;
}
.gm p { color: var(--soft); line-height: 1.55; margin: 0; }
.gm img { background: none; }
/* Anchor targets clear the sticky .gm-bar */
.gm [id] { scroll-margin-top: 90px; }
.gm .gm-disp, .gm h1, .gm h2, .gm h3 { font-family: var(--disp); font-weight: 400; color: var(--ink); line-height: 1; margin: 0; }
.gm-title { letter-spacing: .06em; text-shadow: 2px 2px 0 var(--gold), 3.5px 3.5px 0 var(--ink); }

/* Manga panel: hard contour + zero-blur offset shadow */
.gm-panel { background: var(--white); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); }
.gm-tl { transform: rotate(-1.4deg); } .gm-tr { transform: rotate(1.2deg); }

.gm-btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--disp); font-size: 1.45rem; letter-spacing: .06em; line-height: 1;
    padding: .85rem 1.6rem .75rem; background: var(--mandarin); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px;
    box-shadow: 4px 4px 0 var(--ink); text-decoration: none; cursor: pointer; }
.gm-btn:hover { color: var(--ink); background: #FB8A36; }
.gm-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.gm-btn--white { background: var(--white); }
.gm-btn--white:hover { background: var(--butter); }
.gm a:focus-visible, .gm button:focus-visible, .gm input:focus-visible, .gm summary:focus-visible, .gm-bar a:focus-visible, .gm-foot a:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* Speech bubble with tail bottom-left */
.gm-bubble { position: relative; background: var(--white); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); padding: .7rem 1rem; }
.gm-bubble::after { content: ''; position: absolute; left: 22px; bottom: -15px; width: 18px; height: 15px; background: var(--ink); clip-path: polygon(0 0, 100% 0, 20% 100%); }
.gm-bubble::before { content: ''; position: absolute; left: 25px; bottom: -9px; width: 11px; height: 9px; background: var(--white); clip-path: polygon(0 0, 100% 0, 20% 100%); z-index: 1; }

/* Burst star */
.gm-burst { position: relative; display: inline-grid; place-items: center; width: 118px; height: 118px; }
.gm-burst svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gm-burst span { position: relative; font-family: var(--disp); font-size: 1.35rem; letter-spacing: .04em; line-height: .95; text-align: center; }

/* ---------- Hero ---------- */
.gm-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.gm-hero h1 { margin: 0 0 1.4rem; }
.gm-hero h1 img { display: block; width: min(100%, 460px); height: auto; }
.gm-hero .gm-head { font-size: clamp(2.4rem, 5.4vw, 4rem); letter-spacing: .04em; margin-bottom: 1.2rem; }
.gm-lead { font-size: 1.2rem; max-width: 33rem; }
.gm-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.gm-perks { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.6rem 0 0; }
.gm-perks li { font-family: var(--disp); font-size: 1.1rem; letter-spacing: .05em; padding: .35rem .8rem .25rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--butter); }
.gm-perks li:nth-child(2) { background: var(--mint); } .gm-perks li:nth-child(3) { background: var(--lavender); }

/* Quiz panel */
.gm-quiz { position: relative; padding: 1rem 1rem 1.25rem; max-width: 34rem; justify-self: end; }
.gm-quiz-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .7rem; }
.gm-quiz-head .gm-disp { font-size: 1.5rem; letter-spacing: .05em; }
.gm-quiz-count { font-family: var(--disp); font-size: 1.1rem; letter-spacing: .05em; color: var(--soft); }
.gm-quiz-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--ink); border-radius: 8px; background: var(--powder); }
.gm-quiz .gm-bubble { margin: 1rem 0 1.3rem; font-weight: 600; }
.gm-opts { display: grid; gap: .6rem; }
.gm-opt { text-align: left; font: inherit; font-size: .98rem; line-height: 1.35; color: var(--ink); background: var(--white); border: 3px solid var(--ink); border-radius: 10px;
    box-shadow: 3px 3px 0 var(--ink); padding: .6rem .8rem; cursor: pointer; }
.gm-opt:hover:not(:disabled) { background: var(--butter); }
.gm-opt:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.gm-opt:disabled { cursor: default; }
.gm-opt.is-right { background: var(--emerald); color: var(--ink); }
.gm-opt.is-wrong { background: var(--crimson); color: var(--white); }
.gm-opt.is-muted { opacity: .45; }
.gm-quiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.2rem; margin-top: 1rem; }
.gm-verdict { font-family: var(--disp); font-size: 1.6rem; letter-spacing: .05em; }
.gm-next { font-size: 1.15rem; padding: .6rem 1.1rem .5rem; }
.gm-quiz .gm-burst { position: absolute; top: -46px; right: -40px; transform: rotate(10deg); }
.gm-quiz-end { margin-top: 1rem; }
.gm-quiz-end:focus { outline: none; }
.gm-total { font-size: 1.6rem; letter-spacing: .05em; }
.gm-quiz-end p { margin-top: .5rem; }
.gm-quiz-end .gm-btn { margin-top: 1rem; font-size: 1.15rem; padding: .6rem 1.1rem .5rem; }
.gm [hidden] { display: none !important; }

/* ---------- Sections ---------- */
.gm-sec { margin-top: 6.5rem; }
.gm-sec > h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: .05em; margin-bottom: 2rem; }

/* Comic strip: a real sequence, so panels are numbered */
.gm-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.gm-step { padding: 1rem; display: flex; flex-direction: column; gap: .9rem; }
.gm-step:nth-child(1) { background: var(--lavender); } .gm-step:nth-child(2) { background: var(--mint); transform: rotate(.8deg); } .gm-step:nth-child(3) { background: var(--peach); }
.gm-step-n { font-family: var(--disp); font-size: 1.2rem; letter-spacing: .05em; align-self: flex-start; background: var(--ink); color: var(--paper); border-radius: 6px; padding: .2rem .55rem .1rem; }
.gm-step-art { height: 190px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: 8px; background: var(--white); overflow: hidden; }
.gm-step-art img { width: 100%; height: 100%; object-fit: cover; }
.gm-field { width: 100%; height: 100%; padding: .9rem; font-size: .98rem; color: var(--ink); text-align: left; align-self: stretch; }
.gm-field i { display: inline-block; width: 2px; height: 1.05em; background: var(--cobalt); vertical-align: -.15em; margin-left: 1px; }
.gm-ring { width: 128px; height: 128px; border-radius: 50%; border: 3px solid var(--ink); display: grid; place-items: center;
    background: conic-gradient(var(--emerald) 0 81%, #e8e4d8 81% 100%); }
.gm-ring span { width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--ink); background: var(--white); display: grid; place-items: center;
    font-family: var(--disp); font-size: 2.6rem; color: var(--ink); }
.gm-step-art--score { background: var(--butter); }
.gm-step h3 { font-size: 1.7rem; letter-spacing: .04em; }
.gm-step p { font-size: 1rem; }

/* Modes: irregular manga page */
.gm-modes { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 1.4rem; }
.gm-mode { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; }
.gm-mode img { display: block; width: 62%; max-width: 190px; height: auto; margin: -.4rem auto .6rem; }
.gm-mode h3 { font-size: 2rem; letter-spacing: .05em; }
.gm-mode p { font-size: 1rem; margin-top: .35rem; }
.gm-mode--campaign { grid-row: span 2; background: var(--peach); justify-content: flex-end; }
.gm-mode--campaign img { width: 88%; max-width: 330px; margin: auto auto 1rem; }
.gm-mode--campaign h3 { font-size: 2.6rem; }
.gm-mode--duel { background: var(--lavender); transform: rotate(1.2deg); }
.gm-mode--speed { background: var(--butter); transform: rotate(-.9deg); }
.gm-mode--sandbox { background: var(--mint); grid-column: span 2; flex-direction: row; align-items: center; gap: 1.2rem; }
.gm-mode--sandbox img { width: 120px; margin: 0; flex: none; }

/* Badges */
.gm-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; list-style: none; padding: 0; margin: 0; }
.gm-badges li { text-align: center; }
.gm-badges img { width: 132px; height: 132px; display: block; margin: 0 auto .6rem; filter: drop-shadow(4px 4px 0 var(--ink)); }
.gm-badges .gm-disp { font-size: 1.45rem; letter-spacing: .05em; }
.gm-badges p { font-size: .92rem; max-width: 15rem; margin: .3rem auto 0; }

/* Final call */
.gm-final-icon { width: 120px; height: auto; flex: none; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 4px 4px 0 var(--ink); }

/* Own brand bar + footer instead of the site navigation */
.gm-bar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 3px solid var(--ink); }
.gm-bar-in { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.gm-bar-logo { display: block; line-height: 0; }
.gm-bar-logo img { width: 150px; height: auto; }
.gm-bar-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.gm-bar-nav a { font-family: var(--disp); font-size: 1.25rem; letter-spacing: .06em; color: var(--ink); text-decoration: none; }
.gm-bar-nav a:hover { color: var(--grape); }
.gm-btn--sm { font-size: 1.1rem; padding: .5rem 1rem .4rem; box-shadow: 3px 3px 0 var(--ink); }
.gm-foot { background: var(--ink); color: var(--paper); padding: 2.5rem 0; }
.gm-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.gm-foot img { width: 130px; height: auto; background: var(--paper); border-radius: 8px; padding: 4px 8px; }
.gm-foot-nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.gm-foot a { color: var(--paper); }
.gm-foot p { margin: 0 0 0 auto; color: #cfcbd4; }

/* Download: iOS, APK, Play beta */
.gm-dl-head { display: flex; align-items: center; gap: 1.6rem; margin-bottom: 2rem; }
.gm-dl-head h2 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: .05em; }
.gm-dl-head p { margin-top: .5rem; font-size: 1.1rem; }
.gm-dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: start; }
.gm-dl-card { padding: 1.3rem; display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.gm-dl-card h3 { font-size: 1.9rem; letter-spacing: .05em; }
.gm-dl-card--ios { background: var(--powder); }
.gm-dl-card--apk { background: var(--mint); transform: rotate(.6deg); }
.gm-dl-card--beta { background: var(--lavender); }
.gm-meta { font-size: .92rem; }
.gm-details { font-size: .95rem; color: var(--soft); }
.gm-details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.gm-details ol { margin: .6rem 0; padding-left: 1.2rem; }
.gm-details li { margin-bottom: .3rem; }
.gm-details p { margin-top: .5rem; font-size: .9rem; }
.gm-hash code { font-size: .78rem; word-break: break-all; }

.gm-form { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.gm-form > label { font-weight: 600; }
.gm-form input[type=email] { font: inherit; padding: .7rem .8rem; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); background: var(--white); color: var(--ink); width: 100%; }
.gm-form input[type=email]:focus { outline: none; border-color: var(--cobalt); }
.gm-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--soft); }
.gm-check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; accent-color: var(--grape); }
.gm-check a { color: var(--ink); }
.gm-form .gm-btn { align-self: flex-start; margin-top: .4rem; font-size: 1.2rem; }
.gm-form .gm-btn:disabled { opacity: .6; cursor: progress; }
.gm-form-error { min-height: 0; margin: 0; font-size: .88rem; color: #B91C1C !important; }
.gm-form-error:empty { display: none; }
.gm-form-ok { font-weight: 600; color: var(--ink) !important; background: var(--white); border: 3px solid var(--ink); border-radius: 10px; padding: .8rem; }
.gm-hp { position: absolute; left: -9999px; top: -9999px; }

@media (max-width: 900px) {
    .gm-hero { grid-template-columns: 1fr; gap: 4rem; }
    .gm-quiz { max-width: 30rem; margin: 0 auto; }
    .gm-strip { grid-template-columns: 1fr; }
    .gm-modes { grid-template-columns: 1fr 1fr; }
    .gm-mode--campaign { grid-row: auto; grid-column: span 2; }
    .gm-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
    .gm-dl-grid { grid-template-columns: 1fr; max-width: 34rem; }
    .gm-bar-nav { display: none; }
    .gm-bar .gm-btn--sm { margin-left: auto; }
}
@media (max-width: 560px) {
    .gm { padding-top: 4.5rem; }
    .gm-bar-logo img { width: 120px; }
    .gm-dl-head { flex-direction: column; align-items: flex-start; }
    .gm-foot p { margin-left: 0; }
    .gm-modes { grid-template-columns: 1fr; }
    .gm-mode--campaign, .gm-mode--sandbox { grid-column: auto; }
    .gm-mode--sandbox { flex-direction: column; align-items: stretch; }
    .gm-mode--sandbox img { margin: 0 auto; }
    .gm-quiz .gm-burst { right: -6px; top: -84px; width: 92px; height: 92px; }
    .gm-quiz .gm-burst span { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gm-btn:active, .gm-opt:active:not(:disabled) { transform: none; }
}
