/* Mami Bruny design system. Silkscreen-poster color in the spirit of DIVEDCO, hard ink outlines, Mami's chat.
   Three looks set on <html data-look>: flamboyan (default), sanjuan (Old San Juan pastels), noche (coquí night, dark).
   Bilingual: write <span lang="es">…</span><span lang="en">…</span>; the inactive language is hidden. */

:root {
  --f-cartel: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mano: "Caveat Brush", "Comic Sans MS", cursive;
  --mar: #1B5FA8; --sol: #F2B630; --red: #BE3A1C; --cana: #2A6F33; --rosa: #E58AA0; --tinta: #1B1A17; --papel: #F4EBDD;
}
:root, :root[data-look="flamboyan"] {
  --page: #F4EBDD; --ink: #1B1A17; --muted: #5D564C; --soft: #EADCC6; --line: #1B1A17;
  --poster: #BE3A1C; --poster-ink: #FFF8EE; --h1: #F2B630; --h1-shadow: #1B1A17;
  --t1: #1B5FA8; --t1-ink: #F4EBDD; --t1-h: #F2B630; --t2: #F2B630; --t2-ink: #1B1A17; --t3: #2A6F33; --t3-ink: #F4EBDD; --t4: #E58AA0; --t4-ink: #1B1A17;
  --chat: #EADCC6; --bubble: #FFFFFF; --bubble-ink: #1B1A17; --accent: #B8361A; --link: #1B5FA8; --frog: #1B1A17; --chart: #FBF6EE;
  color-scheme: light;
}
:root[data-look="sanjuan"] {
  --page: #FBF5EC; --ink: #23303B; --muted: #55616B; --soft: #F3E6D6; --line: #23303B;
  --poster: #8FCBE0; --poster-ink: #23303B; --h1: #23303B; --h1-shadow: #FFFFFF;
  --t1: #F4B6C2; --t1-ink: #23303B; --t1-h: #23303B; --t2: #F7DA7A; --t2-ink: #23303B; --t3: #A9DAC0; --t3-ink: #23303B; --t4: #F3A07F; --t4-ink: #23303B;
  --chat: #F3E6D6; --bubble: #FFFFFF; --bubble-ink: #23303B; --accent: #B83A60; --link: #1B5FA8; --frog: #23303B; --chart: #FFFFFF;
  color-scheme: light;
}
:root[data-look="noche"] {
  --page: #101521; --ink: #F4EBDD; --muted: #B9B2A6; --soft: #182033; --line: #F4EBDD;
  --poster: #0D2340; --poster-ink: #F4EBDD; --h1: #F2B630; --h1-shadow: #000000;
  --t1: #1B5FA8; --t1-ink: #F4EBDD; --t1-h: #F2B630; --t2: #F2B630; --t2-ink: #101521; --t3: #2A6F33; --t3-ink: #F4EBDD; --t4: #BE3A1C; --t4-ink: #FFF8EE;
  --chat: #182033; --bubble: #F4EBDD; --bubble-ink: #101521; --accent: #F2B630; --link: #8EC1F2; --frog: #F4EBDD; --chart: #FBF6EE;
  color-scheme: dark;
}
/* Aliases so the kitchen and article styles (carried over from v1) follow the look */
:root { --paper: var(--page); --surface: var(--soft); --flamboyan: var(--accent); --sea: var(--link); --gold: #946C14; --season: var(--accent);
  --season-soft: color-mix(in srgb, var(--accent) 14%, var(--page)); --f-display: var(--f-cartel); --f-es: var(--f-cartel); --f-mono: var(--f-body); }

/* Language: hide whichever language isn't active */
html[lang="es"] body [lang="en"], html[lang="en"] body [lang="es"] { display: none !important; }
/* Aquí / Allá: content only for one side */
html[data-place="aqui"] [data-only="alla"], html[data-place="alla"] [data-only="aqui"] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 16.5px/1.55 var(--f-body); }
a { color: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--sol); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--f-cartel); font-weight: 800; letter-spacing: -.03em; line-height: .95; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; }
.k { display: block; font: 700 12px var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.mano { font: 400 28px/1.15 var(--f-mano); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Paper grain */
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; mix-blend-mode: multiply; z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 .6 0'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>"); }
:root[data-look="noche"] .grain::after { mix-blend-mode: screen; opacity: .06; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 32px; border-bottom: 3px solid var(--line); background: var(--page); flex-wrap: wrap; position: relative; z-index: 6; }
.logo { font: 800 28px/1 var(--f-cartel); letter-spacing: -.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo small { font: 400 21px var(--f-mano); color: var(--accent); transform: rotate(-4deg); display: inline-block; letter-spacing: 0; }
.nav { display: flex; gap: 4px 18px; font-weight: 700; font-size: 15px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }
.toggles { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; border: 2px solid var(--line); border-radius: 99px; overflow: hidden; }
.seg button { font: 700 13px var(--f-body); padding: 7px 13px; border: 0; background: transparent; color: var(--ink); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.look-btn { font: 700 13px var(--f-body); border: 2px solid var(--line); border-radius: 99px; padding: 6px 12px; background: var(--page); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 36px; }
.sw { display: inline-flex; }
.sw i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid currentColor; margin-left: -4px; }
.sw i:first-child { margin-left: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 580px; border-bottom: 3px solid var(--line); }
.poster { background: var(--poster); color: var(--poster-ink); padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.poster h1 { font-size: clamp(60px, 8.2vw, 124px); line-height: .86; letter-spacing: -.04em; color: var(--h1); text-shadow: 4px 4px 0 var(--h1-shadow); }
.poster .lede { font-size: 19px; max-width: 34ch; margin-top: 18px; }
.poster .mano { display: inline-block; margin-top: 22px; transform: rotate(-3deg); }
.poster .art { position: absolute; right: 28px; bottom: 84px; width: min(300px, 46%); }
.poster .art img { width: 100%; display: block; }
.poster .frog { position: absolute; width: 33%; left: -36%; bottom: -2%; color: var(--frog); }
.poster .frog svg { width: 100%; height: auto; display: block; }
:root[data-look="noche"] .poster .frog { filter: drop-shadow(0 0 10px rgba(242,182,48,.5)); }
.moon { position: absolute; right: 56px; top: 210px; width: 64px; height: 64px; border-radius: 50%; background: var(--sol); box-shadow: 0 0 0 10px rgba(242,182,48,.15); display: none; }
:root[data-look="noche"] .moon { display: block; }
.isla-time { display: inline-flex; gap: 10px; align-items: center; background: #1B1A17; color: #F4EBDD; padding: 10px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; align-self: flex-start; position: relative; z-index: 1; }
.isla-time b { color: var(--sol); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sol); flex: none; }

/* Chat */
.chat { background: var(--chat); padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--line); margin-bottom: 8px; }
.ava { width: 46px; height: 46px; border-radius: 50%; background: var(--mar); color: var(--sol); display: grid; place-items: center; font: 800 22px/1 var(--f-cartel); border: 2px solid var(--line); flex: none; }
.chat-head b { display: block; }
.chat-head span { font-size: 13px; opacity: .8; }
.b { max-width: 84%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--bubble); color: var(--bubble-ink); border: 2px solid var(--line); font-size: 15.5px; line-height: 1.4; box-shadow: 3px 3px 0 var(--line); }
.b.me { align-self: flex-end; background: var(--sol); color: #1B1A17; border-radius: 16px 16px 4px 16px; }
.b .t { display: block; font-size: 11px; opacity: .6; text-align: right; margin-top: 2px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.chip { font: 700 14px var(--f-body); border: 2px solid var(--line); border-radius: 99px; padding: 8px 14px; background: var(--page); color: var(--ink); cursor: pointer; min-height: 40px; }
.chip[aria-pressed="true"] { background: var(--mar); color: #fff; }
.card-in { display: block; text-decoration: none; background: var(--bubble); color: var(--bubble-ink); border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; max-width: 84%; box-shadow: 3px 3px 0 var(--line); }
.card-in small { font: 700 11px var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #2A6F33; }
.card-in b { display: block; font-size: 15px; margin-top: 2px; }
.card-in span { display: block; font-size: 14px; opacity: .8; margin-top: 2px; }
.card-in:hover b { text-decoration: underline; }

/* Poster tiles */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 3px solid var(--line); }
.tile { padding: 28px 24px 30px; border-right: 3px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-height: 290px; text-decoration: none; }
.tile:last-child { border-right: 0; }
.tile .k { color: inherit; }
.tile h2 { font-size: 40px; }
.tile p { font-size: 15px; }
.tile .go { margin-top: auto; font-weight: 800; font-size: 14px; }
.tile:hover .go { text-decoration: underline; }
.t1 { background: var(--t1); color: var(--t1-ink); } .t1 h2 { color: var(--t1-h); }
.t2 { background: var(--t2); color: var(--t2-ink); }
.t3 { background: var(--t3); color: var(--t3-ink); }
.t4 { background: var(--t4); color: var(--t4-ink); }
.word { font: 800 52px/1 var(--f-cartel); letter-spacing: -.03em; }
.pron { font-size: 13px; opacity: .8; }

/* Sections */
.sec { padding: 52px 32px; border-bottom: 3px solid var(--line); }
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-h h2 { font-size: clamp(40px, 5vw, 60px); }
.sec-h p { max-width: 48ch; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { font: 800 14px var(--f-body); border: 2px solid var(--line); background: var(--page); color: var(--ink); border-radius: 99px; padding: 8px 16px; cursor: pointer; min-height: 40px; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: var(--page); }
.card { border: 2px solid var(--line); border-radius: 10px; padding: 18px; background: var(--soft); box-shadow: 4px 4px 0 var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.card h3 { font-size: 26px; margin-bottom: 8px; }
.card p { font-size: 14.5px; }
.card .tag { font: 700 12px var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.card a.more { display: block; margin-top: 12px; padding-top: 8px; border-top: 2px solid var(--line); font-weight: 800; font-size: 13.5px; text-decoration: none; }
.card a.more:hover { text-decoration: underline; }
.btn { display: inline-block; font: 800 16px var(--f-body); background: var(--ink); color: var(--page); padding: 12px 20px; border-radius: 99px; text-decoration: none; border: 2px solid var(--line); cursor: pointer; }
.btn.alt { background: var(--page); color: var(--ink); }
.btn.green { background: #2A6F33; color: #fff; box-shadow: 3px 3px 0 var(--line); }
.note-mano { font: 400 26px/1.2 var(--f-mano); color: var(--accent); transform: rotate(-1.5deg); margin-top: 18px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 80ch; }

/* Roots */
.roots { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.roots .card { box-shadow: none; border-top-width: 6px; }
.roots .card:nth-child(1) { border-top-color: #2A6F33; } .roots .card:nth-child(2) { border-top-color: #F2B630; }
.roots .card:nth-child(3) { border-top-color: #BE3A1C; } .roots .card:nth-child(4) { border-top-color: #E58AA0; } .roots .card:nth-child(5) { border-top-color: #1B5FA8; }

/* Street food */
.carts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 3px solid var(--line); border-radius: 10px; overflow: hidden; }
.cart { padding: 18px 16px; border-right: 3px solid var(--line); background: var(--soft); }
.cart:last-child { border-right: 0; }
.cart:nth-child(1) { background: var(--t4); color: var(--t4-ink); } .cart:nth-child(3) { background: var(--t2); color: var(--t2-ink); } .cart:nth-child(5) { background: var(--t3); color: var(--t3-ink); }
.cart b { font: 800 26px/.95 var(--f-cartel); display: block; margin-bottom: 6px; }
.cart p { font-size: 13.5px; }
.cart small { display: block; margin-top: 8px; font-weight: 700; font-size: 12px; }

/* Strip: catch up + books */
.strip { display: grid; grid-template-columns: 1fr 1.3fr; border-bottom: 3px solid var(--line); }
.strip > div { padding: 44px 32px; }
.strip .dark { background: #1B1A17; color: #F4EBDD; }
.strip .dark .k { color: var(--sol); }
.strip h2 { font-size: 46px; margin-bottom: 14px; }
.strip .dark h2 { color: var(--sol); }
.strip .dark a { color: var(--sol); font-weight: 800; }
.books { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.book { aspect-ratio: 2/3; border: 2px solid var(--line); border-radius: 4px; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 4px 4px 0 var(--line); font-size: 13px; text-decoration: none; }
.book b { font: 800 17px/1.05 var(--f-cartel); }
.book:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.bk1 { background: #F2B630; color: #1B1A17; } .bk2 { background: #BE3A1C; color: #FFF8EE; } .bk3 { background: #1B5FA8; color: #F4EBDD; } .bk4 { background: #2A6F33; color: #F4EBDD; }

/* Symbols */
.symbols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; align-items: start; }
.flagbox svg { width: 100%; height: auto; display: block; border: 2px solid var(--line); }
.flagbox .tabs { margin: 14px 0 8px; }
.pic { height: 120px; display: grid; place-items: center; color: var(--frog); margin-bottom: 8px; }
.pic svg { height: 100%; width: auto; }

/* Footer */
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px 32px 48px; font-size: 13.5px; color: var(--muted); }
.foot p { max-width: 62ch; }
.foot a { color: var(--ink); }
.foot .looks { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Charts and tables (status page) */
.chartcard { border: 3px solid var(--line); border-radius: 10px; background: var(--chart); color: #1B1A17; padding: 20px 20px 12px; position: relative; }
.chartcard h3 { font-size: 26px; line-height: 1.05; margin-bottom: 4px; }
.chartcard .sub { font-size: 14px; color: #5D564C; margin-bottom: 12px; }
.chartcard .src { font-size: 12px; color: #5D564C; margin-top: 8px; }
.legend { display: flex; gap: 16px; font-size: 13px; font-weight: 600; margin-bottom: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.tip { position: absolute; pointer-events: none; background: #1B1A17; color: #F4EBDD; font-size: 13px; padding: 8px 10px; border-radius: 6px; line-height: 1.35; display: none; white-space: nowrap; z-index: 2; }
.tablewrap { overflow-x: auto; border: 3px solid var(--line); border-radius: 10px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--soft); min-width: 520px; }
.data th, .data td { text-align: left; padding: 9px 12px; border-bottom: 2px solid var(--line); vertical-align: top; }
.data th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.data td:first-child { font: 800 18px var(--f-cartel); white-space: nowrap; }
.data tr:last-child td { border-bottom: 0; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.timeline { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border: 3px solid var(--line); border-radius: 10px; overflow: hidden; }
.ev { padding: 14px; border-right: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.ev:nth-child(6n) { border-right: 0; }
.ev b { font: 800 30px/1 var(--f-cartel); display: block; color: var(--accent); }
.ev p { margin-top: 6px; font-size: 13.5px; }
.storms { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.storm.big { background: #1B1A17; color: #F4EBDD; grid-column: span 2; }
.storm .n { font: 800 64px/1 var(--f-cartel); color: var(--sol); display: block; margin: 8px 0; }
.storm small { font-size: 12px; opacity: .8; display: block; margin-top: 8px; }

/* Pueblo postcard */
.finder { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 32px; align-items: start; }
.field label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.field select, .field input { width: 100%; font: 600 17px var(--f-body); padding: 11px 12px; border: 2px solid var(--line); border-radius: 8px; background: var(--bubble); color: var(--bubble-ink); }
.postal { background: var(--mar); color: #F4EBDD; border: 3px solid var(--line); border-radius: 6px; padding: 24px; aspect-ratio: 3/2; position: relative; overflow: hidden; box-shadow: 6px 6px 0 var(--line); }
.postal .sal { font: 400 30px var(--f-mano); color: var(--sol); }
.postal .town { font: 800 clamp(48px, 7vw, 92px)/.85 var(--f-cartel); letter-spacing: -.04em; text-shadow: 4px 4px 0 #BE3A1C; text-transform: uppercase; }
.postal .nick { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }
.postal .frog { position: absolute; right: 10px; bottom: 6px; width: 24%; color: #F2B630; }
.postal .frog svg { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 6px 16px; margin: 18px 0; font-size: 15px; }
.facts dt { font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 3px; }
.facts dd { margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Habla boricua */
.dict { background: var(--sol); color: #1B1A17; border: 3px solid var(--line); border-radius: 10px; padding: 22px; box-shadow: 6px 6px 0 var(--line); }
.dict .word { font-size: 64px; }
.compare { border: 2px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14.5px; margin-top: 16px; background: var(--bubble); color: var(--bubble-ink); }
.compare div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 2px solid var(--line); }
.compare div:last-child { border-bottom: 0; }
.compare .pr { background: #2A6F33; color: #fff; font-weight: 700; }
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wd { border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--soft); }
.wd b { font: 800 26px/1 var(--f-cartel); display: block; }
.wd .pos { font-size: 12px; color: var(--muted); }
.wd p { font-size: 14.5px; margin-top: 6px; }
.wd .ex { font-style: italic; }
.wd .alt { font-size: 13px; color: var(--muted); margin-top: 6px; }
.quiz { border: 3px solid var(--line); border-radius: 10px; padding: 18px; background: var(--bubble); color: var(--bubble-ink); }
.quiz b { display: block; font-size: 17px; margin-bottom: 10px; }
.opt { display: block; width: 100%; text-align: left; font: 600 15px var(--f-body); border: 2px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 8px; background: var(--page); color: var(--ink); cursor: pointer; }
.opt.ok { background: #2A6F33; color: #fff; }
.opt.no { background: #BE3A1C; color: #fff; }
.qmsg { margin-top: 10px; font-weight: 700; min-height: 1.5em; }

/* La guagua */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { list-style: none; margin: 0; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--bubble); color: var(--bubble-ink); }
.checks li { padding: 0; border-bottom: 2px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks label { display: flex; gap: 12px; padding: 12px 14px; cursor: pointer; font-size: 15px; }
.checks input { width: 20px; height: 20px; accent-color: #2A6F33; flex: none; margin-top: 1px; }

/* Responsive */
@media (max-width: 1100px) {
  .roots { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .carts { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .cart:nth-child(3) { border-right: 0; } .cart:nth-child(-n+3) { border-bottom: 3px solid var(--line); }
  .timeline { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ev:nth-child(6n) { border-right: 2px solid var(--line); } .ev:nth-child(3n) { border-right: 0; }
  .storms { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .hero, .strip, .two, .finder, .symbols { grid-template-columns: minmax(0,1fr); }
  .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tile:nth-child(2) { border-right: 0; } .tile:nth-child(-n+2) { border-bottom: 3px solid var(--line); }
  .poster { min-height: 560px; }
  .books { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .top, .sec, .chat, .strip > div, .foot { padding-left: 16px; padding-right: 16px; }
  .poster { padding: 32px 16px; min-height: 600px; }
  .poster .art { right: 16px; width: 58%; bottom: 76px; }
  .grid, .roots, .split { grid-template-columns: minmax(0,1fr); }
  .tile { border-right: 0; border-bottom: 3px solid var(--line); min-height: 0; }
  .tile:last-child { border-bottom: 0; }
  .carts { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .cart:nth-child(n) { border-right: 3px solid var(--line); border-bottom: 3px solid var(--line); }
  .cart:nth-child(2n) { border-right: 0; } .cart:nth-last-child(-n+2) { border-bottom: 0; }
  .timeline { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .ev:nth-child(n) { border-right: 2px solid var(--line); } .ev:nth-child(2n) { border-right: 0; }
  .storms { grid-template-columns: minmax(0,1fr); } .storm.big { grid-column: auto; }
  .b, .card-in { max-width: 94%; }
  .strip h2 { font-size: 38px; }
  .logo small { display: none; }
  .top { gap: 10px; }
  .nav { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; padding-bottom: 2px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .look-btn #look-name { display: none; }
  .moon { display: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Movement only: if the animation never runs (background tab, print), the message is still readable */
  .b { animation: pop .35s cubic-bezier(.2,.9,.3,1.2); }
  @keyframes pop { from { transform: translateY(8px) scale(.97); } to { transform: none; } }
}
.sec-h h1 { font-size: clamp(44px, 6vw, 72px); }
