:root {
  --sea: #123b3a;
  --sea-2: #1d5654;
  --pool: #3fa3a0;
  --sand: #f6efe4;
  --sand-2: #ece0cc;
  --sun: #e9784a;
  --ink: #1b2422;
  --muted: #5b6763;
  --card: #fffdf9;
  --line: rgba(18, 59, 58, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
body { min-height: 100svh; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; }
a { color: var(--sea); }
.app { max-width: 560px; margin: 0 auto; min-height: 100svh; padding-bottom: calc(76px + var(--safe-b)); position: relative; }

.top { position: relative; color: #fff; overflow: hidden; border-radius: 0 0 28px 28px; min-height: 190px; display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; background: var(--sea) center / cover; transition: background-image 0.3s; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 30, 30, 0.25), rgba(10, 30, 30, 0.78)); }
.top-inner { position: relative; padding: calc(28px + var(--safe-t)) 20px 22px; width: 100%; }
.hello { font-size: 0.85rem; opacity: 0.9; letter-spacing: 0.04em; }
.top h1 { font-size: 2rem; }
.clock { font-size: 0.85rem; opacity: 0.85; margin-top: 2px; }

main { padding: 18px 16px 8px; outline: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.card h3 { font-size: 1rem; margin-bottom: 4px; }
.muted { color: var(--muted); font-size: 0.92rem; }
.label { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.68rem; font-weight: 700; color: var(--sun); margin: 22px 4px 10px; }

.sky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sky div { background: var(--sand); border-radius: 14px; padding: 12px 8px; text-align: center; }
.sky b { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--sea); }
.sky span { font-size: 0.75rem; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #f6c37a, var(--sun), #7b5aa6); position: relative; margin: 16px 2px 6px; }
.bar i { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--sea); transform: translate(-50%, -50%); }
.bar-l { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick a, .quick button { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--sea); font: 600 0.92rem var(--sans); cursor: pointer; text-align: left; min-height: 56px; }
.quick svg, .tabs svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--muted); }
.row b { text-align: right; }
.copy { background: var(--sand); border: 0; border-radius: 8px; padding: 4px 10px; font: 600 0.8rem var(--sans); color: var(--sea); cursor: pointer; margin-left: 8px; }

.photo { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; margin: -4px -4px 12px; background: var(--sand-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips span { font-size: 0.78rem; background: var(--sand); color: var(--sea); padding: 4px 10px; border-radius: 99px; }

.place { display: flex; gap: 12px; align-items: flex-start; }
.place .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--sand); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.place a { font-size: 0.85rem; font-weight: 600; text-decoration: none; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--sand-2); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.seg button { border: 0; background: none; padding: 10px; border-radius: 10px; font: 600 0.9rem var(--sans); color: var(--muted); cursor: pointer; min-height: 44px; }
.seg button[aria-selected="true"] { background: var(--card); color: var(--sea); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }

.check { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check:last-child { border-bottom: 0; }
.check input { width: 22px; height: 22px; accent-color: var(--pool); flex: none; }
.check input:checked + span { text-decoration: line-through; color: var(--muted); }
.progress { height: 6px; background: var(--sand-2); border-radius: 99px; overflow: hidden; margin: 6px 0 4px; }
.progress i { display: block; height: 100%; background: var(--pool); transition: width 0.3s; }

.phrase { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.phrase:last-child { border-bottom: 0; }
.phrase b { color: var(--sea); }
.phrase span { color: var(--muted); text-align: right; font-size: 0.92rem; }

textarea, input[type="text"] { width: 100%; font: 400 1rem var(--sans); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; color: var(--ink); }
textarea { min-height: 160px; resize: vertical; }
textarea:focus, input:focus { outline: none; border-color: var(--pool); }
.prompt { font-family: var(--serif); font-size: 1.15rem; color: var(--sea); margin: 4px 0 12px; }
.entry { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; white-space: pre-wrap; }
.entry small { color: var(--muted); display: flex; justify-content: space-between; }
.entry button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.8rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 99px; border: 0; font: 600 0.95rem var(--sans); cursor: pointer; text-decoration: none; }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sea { background: var(--sea); color: #fff; }
.btn-line { background: transparent; color: var(--sea); border: 1.5px solid var(--sea); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.tabs { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; display: grid; grid-template-columns: repeat(6, 1fr); background: rgba(255, 253, 249, 0.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + var(--safe-b)); z-index: 20; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.7rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: 6px 0; border-radius: 12px; }
.tabs a[aria-current="page"] { color: var(--sea); background: var(--sand); }

.toast { position: fixed; left: 50%; bottom: calc(90px + var(--safe-b)); transform: translateX(-50%) translateY(20px); background: var(--sea); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: 0.25s; z-index: 30; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.install { display: flex; gap: 12px; align-items: center; background: var(--sea); color: #fff; border: 0; }
.install p { margin: 0; font-size: 0.9rem; flex: 1; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Logo exactly as supplied, on white. */
.logo-chip { display: inline-block; background: #fff; border-radius: 9px; padding: 3px 6px; line-height: 0; margin-bottom: 12px; }
.logo-chip img { height: 36px; width: auto; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.badge.pending { background: #fdf0dc; color: #8a5a10; } .badge.confirmed { background: #d8efe9; color: #155c4f; }
.badge.cancelled, .badge.expired { background: #f3e1dc; color: #9a3a1f; }
.mb input { width: 100%; font: 400 1rem var(--sans); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; background: #fff; }
.big { font-family: var(--serif); font-size: 2rem; color: var(--sea); line-height: 1; }

/* v3 screens */
.tiny { font-size: .78rem; }
.err { color: #b3401a !important; }
.back { display: inline-block; margin: 0 4px 12px; font-weight: 600; text-decoration: none; color: var(--sea); }
.countdown { font-family: var(--serif); font-size: 1.25rem; color: var(--sea); margin: 0 0 8px; }
.notice { background: #fff6e8; border-color: #f1d3a6; }
.notice.ok { background: #eaf6f2; border-color: #bfe3d8; }
.review { background: #fff6e8; }
.hours { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; text-align: center; }
.hours div { background: var(--sand); border-radius: 12px; padding: 8px 2px; display: grid; gap: 2px; font-size: .8rem; color: var(--muted); }
.hours b { font-size: 1.2rem; }
.hours small { font-size: .7rem; color: #2c6fd1; }
.event { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.event:last-of-type { border-bottom: 0; }
.event .when { display: grid; align-content: start; font-size: .85rem; color: var(--sea); }
.event h3 { font-size: 1rem; margin: 0; }
.linkcard { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.linkcard svg { width: 26px; height: 26px; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.linkcard > div { flex: 1; }
.linkcard > span:last-child { font-size: 1.6rem; color: var(--muted); }
.mi { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mi:last-child { border-bottom: 0; }
.mi-r { display: grid; justify-items: end; gap: 6px; white-space: nowrap; font-weight: 600; color: var(--sea); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--sea); background: #fff; color: var(--sea); font-size: 1.1rem; cursor: pointer; }
.seg.seg4 { grid-template-columns: repeat(4, 1fr); }
.seg.seg4 button { padding: 10px 2px; font-size: .82rem; }
.conv { display: grid; gap: 10px; }
.conv label { display: flex; align-items: center; gap: 10px; background: var(--sand); border-radius: 14px; padding: 10px 12px; }
.conv label > span { font-weight: 700; color: var(--sea); min-width: 56px; }
.conv input { border: 0; background: transparent; font: 600 1.4rem var(--sans); width: 100%; color: var(--ink); padding: 0; }
.conv select { font: 700 1rem var(--sans); border: 0; background: transparent; color: var(--sea); }
.conv output { font: 600 1.4rem var(--sans); }
.conv .btn { justify-self: center; min-height: 40px; }
.mapbox { position: relative; border-radius: 18px; overflow: hidden; background: #cfe7ec; aspect-ratio: 3 / 4; touch-action: none; border: 1px solid var(--line); cursor: grab; }
.mapinner, .mapinner svg { width: 100%; height: 100%; display: block; }
.mapctl { position: absolute; right: 10px; top: 10px; display: grid; gap: 8px; }
.mapctl button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; color: var(--sea); font-size: 1.4rem; box-shadow: 0 2px 8px rgba(0,0,0,.15); cursor: pointer; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--sea); margin-bottom: 8px; }
.fm input, .fm select, .fm textarea { margin-bottom: 0; font-weight: 400; }
.fm select { width: 100%; font: 400 1rem var(--sans); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #fff; }
.pair { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.consent { display: flex !important; grid-template-columns: none; gap: 10px; align-items: flex-start; font-weight: 500 !important; color: var(--ink) !important; }
.consent input { width: 22px; height: 22px; flex: none; accent-color: var(--sea); margin-top: 2px; }
.qm { width: 100%; border-left: 0; border-right: 0; border-top: 0; background: none; font: inherit; text-align: left; color: var(--ink); }
.big { font-family: var(--serif); color: var(--sea); line-height: 1; }

/* v4: surf and SOS */
.tabs a { font-size: .66rem; }
.sosbtn { position: absolute; z-index: 2; right: 16px; top: calc(16px + var(--safe-t)); background: #c0392b; color: #fff; font: 800 .85rem var(--sans); letter-spacing: .08em; text-decoration: none; padding: 9px 14px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.arrow { display: inline-block; font-size: 1.4rem; font-weight: 700; color: var(--sea); line-height: 1; }
.windnow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.windnow .arrow { font-size: 2.2rem; width: 44px; height: 44px; display: grid; place-items: center; background: var(--sand); border-radius: 50%; }
.windnow > div { display: grid; }
.windnow b { font-size: 1.15rem; color: var(--sea); }
.windnow span { font-size: .85rem; color: var(--muted); }
.uv { margin-left: auto; text-align: right; padding: 6px 10px; border-radius: 12px; background: var(--sand); }
.uv-high, .uv-veryhigh { background: #fde6d6; } .uv-extreme { background: #f6d0e3; }
.wk { font-weight: 700; color: var(--muted) !important; }
.wk-offshore { color: #1f8a5b !important; } .wk-onshore { color: #b3401a !important; }
.surfreport { border-left: 5px solid var(--pool); }
.rate-good, .rate-fun { border-left-color: #1f8a5b; } .rate-big, .rate-closed { border-left-color: #c0392b; } .rate-flat { border-left-color: #aaa; }
.badge.rating { background: var(--sea); color: #fff; }
details.level summary, details.fa summary { list-style: none; cursor: pointer; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
details summary::-webkit-details-marker { display: none; }
details.level h3 { margin: 0; }
.pill { background: var(--sand); border-radius: 999px; padding: 4px 10px; font-weight: 700; font-size: .8rem; color: var(--sea); white-space: nowrap; }
.pill.done { background: #d8efe9; }
details.level[open] .progress { margin-top: 12px; }
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.gcard { margin: 0; display: grid; gap: 4px; text-decoration: none; color: var(--ink); align-content: start; }
.gcard .muted { font-size: .78rem; line-height: 1.35; }
.gi { font-size: 1.5rem; }
.big-icon { font-size: 2.4rem; }
ol.steps { padding-left: 22px; margin: 8px 0 0; display: grid; gap: 8px; }
ul.mistakes { padding-left: 20px; margin: 6px 0 0; color: #9a3a1f; display: grid; gap: 4px; }
.wu { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.wu-time { font: 700 2.2rem var(--sans); color: var(--sea); min-width: 92px; font-variant-numeric: tabular-nums; }
.opt { display: block; width: 100%; text-align: left; margin: 0 0 8px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: 500 .95rem var(--sans); color: var(--ink); cursor: pointer; }
.opt.right { border-color: #1f8a5b; background: #e3f4ec; } .opt.wrong { border-color: #b3401a; background: #fbe5dd; }
.why { background: var(--sand); padding: 10px 12px; border-radius: 12px; margin: 4px 0 10px; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { display: none; }
.stars label { font-size: 1.8rem; color: #d6cfc2; cursor: pointer; margin: 0 !important; }
.stars input:checked ~ label { color: #e9a23b; }
.sos-call { display: flex; gap: 14px; align-items: center; background: #c0392b; color: #fff; text-decoration: none; border: 0; }
.sos-call span { font-size: 2rem; }
.sos-call b { display: block; font-size: 1.25rem; }
.sos-call small { opacity: .9; }
.pos { font: 700 1.5rem ui-monospace, Menlo, monospace; color: var(--sea); margin: 0; letter-spacing: .02em; }
details.fa summary { justify-content: flex-start; }
details.fa summary span { font-size: 1.4rem; }
details.fa summary em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; color: #fff; background: #c0392b; padding: 3px 8px; border-radius: 999px; }
details.fa.urgent { border-left: 5px solid #c0392b; }
.flash { position: fixed; inset: 0; z-index: 100; background: #000; display: grid; place-items: end center; padding-bottom: 40px; color: #888; font: 600 1rem var(--sans); }
.flash.on { background: #fff; }

/* v5: lessons, body, games, about, install */
.seg.seg5 { grid-template-columns: repeat(5, 1fr); }
.seg.seg5 button { padding: 10px 2px; font-size: .8rem; }
.installbtn { position: absolute; z-index: 2; right: 86px; top: calc(16px + var(--safe-t)); background: #fff; color: var(--sea); border: 0; font: 800 .82rem var(--sans); padding: 9px 14px; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.25); cursor: pointer; }
.install { display: flex; gap: 12px; align-items: center; }
.install img { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
.install .btn { flex: 1; }
.lesson-h { display: flex; gap: 12px; align-items: flex-start; }
.when2 { display: grid; text-align: center; background: var(--sand); border-radius: 12px; padding: 6px 8px; min-width: 64px; font-size: .82rem; color: var(--sea); }
.when2 span { font-weight: 700; font-size: 1rem; }
.pill.full { background: #f3e1dc; color: #9a3a1f; }
.ins-mini { display: flex; gap: 8px; align-items: center; margin-top: 10px; font-size: .9rem; }
.ins-mini img, .ins-mini .ph { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--sand); display: grid; place-items: center; }
.card.ins { display: flex; gap: 14px; }
.card.ins img, .card.ins .ph { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--sand); display: grid; place-items: center; font-size: 1.8rem; }
.stars-s { color: #e9a23b; letter-spacing: 1px; }
.mylesson { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mylesson:last-child { border-bottom: 0; }
.bcard { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); }
.bcard > div { flex: 1; display: grid; gap: 2px; }
.bcard .muted { font-size: .85rem; line-height: 1.35; }
.bcard .skill { font-size: .78rem; color: var(--sea); font-weight: 600; }
ol.steps li.cur { background: #eaf6f2; border-radius: 10px; padding: 4px 6px; margin-left: -6px; }
.bwrap { display: grid; place-items: center; height: 230px; }
.bcircle { width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fd3d0, var(--pool) 55%, var(--sea)); display: grid; place-items: center; transition: transform var(--dur, 4s) ease-in-out; box-shadow: 0 0 0 14px rgba(63, 163, 160, .15); }
.bcircle span { color: #fff; font: 700 2.6rem var(--sans); }
.bphase { text-align: center; font-family: var(--serif); font-size: 1.4rem; color: var(--sea); margin: 6px 0 2px; }
.game { min-height: 300px; }
.g-bar { display: flex; justify-content: space-between; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.g-msg { text-align: center; font-weight: 600; color: var(--sea); }
.g-win { text-align: center; display: grid; gap: 12px; justify-items: center; font-size: 1.1rem; font-weight: 600; margin: 14px 0; }
.g-size { display: flex; gap: 6px; justify-content: center; margin-bottom: 10px; }
.mem { display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
.mem-10 { grid-template-columns: repeat(5, 1fr); }
.mc { aspect-ratio: 1; border-radius: 12px; border: 0; background: linear-gradient(135deg, var(--sea), var(--sea-2)); font-size: 1.8rem; cursor: pointer; transition: transform .2s; }
.mc.up { background: #fff; box-shadow: inset 0 0 0 2px var(--line); transform: rotateY(180deg); }
.mc.up span { display: inline-block; transform: rotateY(180deg); }
.mc.ok { background: #e3f4ec; }
.pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pad { aspect-ratio: 1.3; border-radius: 18px; border: 0; background: color-mix(in srgb, var(--c) 30%, white); display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; transition: transform .1s, background .1s; }
.pad span { font-size: 2.4rem; }
.pad small { font-weight: 700; color: #222; }
.pad.lit { background: var(--c); transform: scale(1.05); }
.pad.lit small { color: #fff; }
.pad:disabled { cursor: default; }
.lineup-svg { width: 100%; border-radius: 14px; display: block; }
.g-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g-opts .opt { text-align: center; font-weight: 800; font-size: 1.2rem; margin: 0; }
.fuel { height: 8px; background: var(--sand-2); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.fuel i { display: block; height: 100%; background: var(--sun); transition: width .2s; }
.isles { display: grid; gap: 4px; }
.ic { aspect-ratio: 1; border: 0; border-radius: 8px; background: #cfe7ec; font-size: 1.25rem; display: grid; place-items: center; padding: 0; }
.ic.reef { background: #f3dcd3; }
.ic.isl { background: #f3e3b8; }
.ic.isl.done { background: #d8efe9; }
.ic.port { background: #e0e6ea; }
.ic.adj { box-shadow: inset 0 0 0 2px var(--pool); cursor: pointer; }
.g-hint { background: var(--sand); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.slots, .tiles { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.slot, .tile { width: 36px; height: 44px; border-radius: 8px; font: 800 1.2rem var(--sans); cursor: pointer; }
.slot { border: 2px dashed var(--line); background: #fff; color: var(--sea); }
.tile { border: 0; background: var(--sea); color: #fff; }
.tile:disabled { background: var(--sand-2); }
.about-hero { text-align: center; }
.about-hero img { width: 160px; margin: 6px auto 10px; display: block; }
.ios-sheet { position: fixed; inset: 0; background: rgba(10, 25, 25, .55); z-index: 90; display: grid; align-items: end; }
.ios-sheet .sheet { background: var(--card); border-radius: 22px 22px 0 0; padding: 22px 20px calc(22px + var(--safe-b)); text-align: center; display: grid; gap: 12px; justify-items: center; }
.ios-sheet img { width: 72px; height: 72px; border-radius: 16px; box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.15)); }
.steps2 { display: flex; gap: 14px; align-items: center; font-size: 1.6rem; color: var(--sea); }
.share-ic, .add-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; }

/* About, like the travel guide */
.about-who .by { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.about-who .by img { width: 56px; height: 56px; border-radius: 10px; flex: none; }
.about-who .creator { width: 100%; max-width: 320px; display: block; margin: 12px auto 0; border-radius: 16px; }
ul.srcs { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.about-foot { text-align: center; margin: 4px 8px 16px; }
@media print { .tabs, .top, .sosbtn, .installbtn, .btns, .toast { display: none !important; } .app { padding: 0; } .card { break-inside: avoid; } }

.about-box h3 { margin: 0 0 10px; font-family: var(--sans); font-weight: 600; font-size: 1.15rem; }
.about-box p { margin: 0 0 8px; }
.about-box.science { background: #eef1f6; border-color: #e1e6ef; }
.about-box.science h3 { color: #1d40a8; }
.about-box.support { background: #fff6ec; border-color: #f6e3cc; }
.about-box.support h3, .about-box.support p { color: #8a3a12; }
.about-foot { text-align: center; color: var(--muted); margin: 6px 12px; }
.about-photos { padding: 10px; }
.ap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ap-grid figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.ap-grid figure.wide { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.ap-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-grid figcaption { position: absolute; left: 8px; bottom: 4px; font-size: .65rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.ap-cap { text-align: center; font-weight: 700; color: var(--sea); margin: 10px 0 4px; letter-spacing: .02em; }
.about-close { width: 100%; background: #1d40a8; color: #fff; margin: 10px 0 18px; }
