:root {
  color-scheme: light;
  --bg: #f7f2e9;
  --paper: #fffaf2;
  --ink: #183b33;
  --muted: #52655b;
  --deep: #103b34;
  --green: #175447;
  --line: #e8ddcc;
  --amber: #f3e5c7;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.2,.72,.25,1);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.07; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #ab643f; outline-offset: 4px; }
h1:focus { outline: none; }
.symbols, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.icon { width: 20px; height: 20px; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; transform: translateY(-150%); background: white; padding: 12px; }
.skip-link:focus { transform: none; }
.topbar { background: #fffaf2; border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1296px; min-height: 77px; margin: auto; padding: 0 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; justify-self: start; text-decoration: none; }
.brand img { width: 31px; height: 43px; }
.brand-name { display: block; font: 25px/.95 var(--serif); letter-spacing: .10em; }
.brand-name span { display: block; font: 700 8px/1 var(--sans); letter-spacing: .15em; margin-top: 6px; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav a { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 650; white-space: nowrap; transition: background .2s, color .2s; }
.main-nav .icon { width: 16px; height: 16px; }
.main-nav a:hover { background: #f5eee2; color: var(--ink); }
.main-nav a[aria-current="page"] { background: #e7eee5; color: #124b3e; }
.points-pill { justify-self: end; display: inline-flex; gap: 7px; align-items: center; padding: 8px 12px; color: #224c3f; background: #f3ead6; border: 1px solid #eadebf; border-radius: 99px; text-decoration: none; font-size: 13px; white-space: nowrap; }
.points-pill .icon { width: 16px; height: 16px; color: #8e592d; }
.points-pill strong { font-variant-numeric: tabular-nums; }
.shell { width: min(100%, 1296px); margin: auto; padding: 28px 32px 0; min-height: calc(100svh - 77px); display: flex; flex-direction: column; }
.view { animation: view-in .42s var(--ease) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .19em; }
.middle-dot { margin: 0 4px; }
.hero { isolation: isolate; display: grid; grid-template-columns: 53% 47%; min-height: 418px; border-radius: 22px; overflow: hidden; box-shadow: 0 9px 26px #51432a18; }
.hero-copy { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 39px clamp(29px,5.2vw,72px); background: radial-gradient(ellipse at 0 105%, #2a5947, transparent 74%), #103b34; color: #fff6e3; }
.hero-copy::after { content: ""; position: absolute; z-index: -1; inset: -20% -42% -70% 5%; opacity: .25; background: repeating-radial-gradient(ellipse at 100% 74%, transparent 0 17px, #9db49270 18px, transparent 19px 33px); transform: rotate(-22deg); mask-image: linear-gradient(110deg, transparent 12%, #000 74%); }
.hero-brand { display: flex; align-items: center; gap: 10px; color: #e0d3ad; }
.hero-brand img { width: 27px; height: 37px; }
.hero h1 { margin: 14px 0 14px; font-size: clamp(57px,6.5vw,94px); line-height: .92; letter-spacing: -.068em; }
.hero h1 em { color: #eec991; font-weight: 400; }
.hero-copy p { max-width: 335px; color: #e0e5d6; line-height: 1.58; font-size: 15px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 23px; margin-top: 24px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 1px solid transparent; padding: 11px 16px; border-radius: 9px; font-weight: 750; font-size: 13px; text-decoration: none; transition: background .2s, transform .2s, box-shadow .2s; }
.button .icon { width: 17px; height: 17px; transition: transform .22s var(--ease); }
.button:hover:not(:disabled) .icon { transform: translateX(3px); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-light { background: #f2ddaf; color: #203b31; }
.button-light:hover:not(:disabled) { background: #fff0cf; box-shadow: 0 3px 13px #112b274a; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover:not(:disabled) { background: #226b57; }
.hero-link { display: inline-flex; align-items: center; min-height: 42px; color: #f6ecd5; text-decoration-color: #bbcfaf99; text-underline-offset: 5px; font-size: 13px; font-weight: 650; }
.hero-link:hover { text-decoration-color: currentColor; }
.hero-art { display: grid; grid-template-rows: auto 1fr auto; position: relative; isolation: isolate; overflow: hidden; padding: 20px 24px 18px; color: #4a3924; background: radial-gradient(ellipse at 48% 20%, #ffedc7, #ebcca0 57%, #c28c5c 100%); }
.hero-art::before { content: ""; position: absolute; z-index: -1; width: 50%; aspect-ratio: 1; border-radius: 50%; top: 11%; left: 25%; background: linear-gradient(140deg,#fff5d3b0,#eec9922b); border: 1px solid #fff2d29e; box-shadow: 0 0 0 16px #fff2d24a, 0 0 0 34px #fff2d222, 0 0 65px #fff0ce7a; }
.dune { position: absolute; z-index: -1; pointer-events: none; }
.dune-one { width: 125%; height: 49%; right: -12%; bottom: -8%; transform: rotate(-9deg); border-radius: 65% 45% 0 0; background: repeating-radial-gradient(ellipse at 74% -35%, transparent 0 10px,#ab764c20 11px,transparent 12px 20px), linear-gradient(166deg,#e6c395,#b58056 85%); }
.dune-two { width: 102%; height: 31%; left: -18%; bottom: -9%; transform: rotate(10deg); border-radius: 50% 80% 0 0; background: repeating-radial-gradient(ellipse at 35% -60%, transparent 0 8px,#fff5d039 9px,transparent 10px 16px), linear-gradient(155deg,#d4aa77,#a9724a); }
.hero-art-top { display: flex; justify-content: space-between; align-items: center; z-index: 2; font-size: 9px; letter-spacing: .18em; font-weight: 800; }
.arabic { color: #154f43; font-size: 26px; letter-spacing: 0; line-height: 1; font-weight: 650; }
.hero-bottles { align-self: end; justify-self: center; position: relative; display: flex; align-items: end; gap: clamp(21px,4vw,59px); justify-content: center; width: 100%; padding: 7px 5px 11px; }
.hero-bottles::before { content: ""; position: absolute; z-index: -1; bottom: 3%; width: 56%; max-width: 255px; height: 9%; border-radius: 50%; background: #472e26; filter: blur(13px); opacity: .48; }
.hero-bottles img { position: relative; height: clamp(238px,25vw,317px); width: auto; max-width: 45%; object-fit: contain; filter: drop-shadow(8px 8px 6px #603b2855); transform-origin: bottom center; animation: bottle-in .62s var(--ease) both; }
.hero-bottles .hero-sadu { rotate: -6deg; }
.hero-bottles .hero-dhow { rotate: 6deg; animation-delay: 90ms; }
@keyframes bottle-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.hero-art-caption { display: flex; justify-content: center; justify-self: center; gap: 13px; font-size: 11px; font-weight: 720; color: #3d2c1d; background: #fff0d3dc; border: 1px solid #fff8e6b5; border-radius: 99px; padding: 5px 12px; box-shadow: 0 2px 8px #6c44212b; }
.hero-art-caption span + span { border-left: 1px solid #c3a37b; padding-left: 13px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 17px 0; }
.stat, .card { background: var(--paper); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 2px 6px #51432a08; }
.stat { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 14px 17px; }
.icon-tile { width: 41px; height: 41px; flex: none; border-radius: 10px; display: inline-grid; place-items: center; }
.green { color: #1f6251; background: #e3ece1; }
.amber { color: #8a5529; background: #f3e6ca; }
.clay { color: #904f3d; background: #f1e0d6; }
.stat-label { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.stat strong { display: block; color: var(--ink); font: 29px/1.06 var(--serif); font-variant-numeric: lining-nums tabular-nums; margin-top: 3px; }
.overview-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.dashboard-card { padding: 21px; }
.section-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; }
.section-row h2, .form-card h2, .station-card h2 { font-size: 27px; letter-spacing: -.035em; }
.text-link { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; font-size: 13px; font-weight: 750; color: #1a5c4c; text-decoration: underline; text-decoration-color: #50867775; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: currentColor; }
.text-link .icon { width: 15px; height: 15px; }
.empty-row { border: 1px dashed #ddcebb; border-radius: 10px; padding: 16px; display: flex; align-items: center; gap: 13px; }
.empty-row p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.empty-row strong { font-size: 14px; }
.milestone { background: #fbf3e1; }
.milestone .section-row { margin-bottom: 7px; }
.milestone .icon-tile { width: 35px; height: 35px; }
.milestone p { font-size: 13px; color: var(--muted); }
.milestone strong { color: var(--ink); }
.progress-track { display: block; width: 100%; height: 7px; margin: 12px 0 5px; appearance: none; border: 0; border-radius: 99px; overflow: hidden; background: #e9d9b6; color: #32765c; }
.progress-track::-webkit-progress-bar { background: #e9d9b6; }
.progress-track::-webkit-progress-value { background: #32765c; border-radius: 99px; transition: width .45s var(--ease); }
.progress-track::-moz-progress-bar { background: #32765c; border-radius: 99px; }
.progress-copy { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 13px; color: #5b695e; font-size: 11px; padding: 18px 0; margin-top: auto; }
.footer > span { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.footer .icon { width: 13px; height: 13px; }
.footer img { width: 12px; height: 17px; }
.page-intro { padding: 14px 0 23px; }
.page-intro .eyebrow { color: #6c5233; }
.page-intro h1 { margin: 5px 0 8px; font-size: clamp(49px,6vw,76px); letter-spacing: -.065em; }
.page-intro p, .form-card p, .station-card p { color: var(--muted); }
.bottle-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,1fr); gap: 18px; align-items: start; margin-bottom: 16px; }
.edition-options, .station-options { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.edition-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
.edition { position: relative; display: flex; flex-direction: column; min-width: 0; border: 2px solid var(--line); background: var(--paper); overflow: hidden; border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.edition:has(input:checked) { border-color: #39806a; box-shadow: 0 0 0 2px #39806a23; }
.edition:has(input:focus-visible), .station:has(input:focus-visible) { outline: 2px solid #ab643f; outline-offset: 3px; }
.edition input, .station input { position: absolute; opacity: 0; }
.edition-photo { position: relative; display: grid; place-items: center; min-height: 243px; padding: 17px 10px; }
.sand-photo { background: radial-gradient(ellipse at 50% 40%, #ffefd0, #ead1a8 80%); }
.sea-photo { background: radial-gradient(ellipse at 50% 43%, #e7eee3, #a3beb1 90%); }
.edition-photo img { width: auto; height: 210px; filter: drop-shadow(7px 9px 6px #4937235c); transition: transform .35s var(--ease); }
.edition:hover .edition-photo img { transform: translateY(-4px); }
.edition-check { position: absolute; top: 11px; right: 11px; width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #fffaf1b8; color: var(--green); border: 1px solid #507c6d6c; }
.edition-check .icon { width: 17px; height: 17px; opacity: 0; transform: scale(.65); transition: transform .24s var(--ease), opacity .22s; }
.edition:has(input:checked) .edition-check { background: var(--green); color: white; }
.edition:has(input:checked) .edition-check .icon { opacity: 1; transform: none; }
.edition-detail { display: grid; gap: 5px; padding: 14px; }
.edition-detail strong { font: 25px/1.05 var(--serif); letter-spacing: -.035em; }
.edition-detail span { font-size: 13px; color: var(--muted); }
.form-card, .station-card, .history-card { padding: 24px; }
.form-card > .icon-tile { margin-bottom: 12px; }
.form-card p, .station-card p { margin: 8px 0 15px; font-size: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 750; margin-bottom: 5px; }
.form-card input[type="text"] { width: 100%; min-height: 47px; border: 1px solid #c7baa7; border-radius: 8px; background: #fffcf7; padding: 10px 12px; color: var(--ink); font-size: 16px; }
.form-card input::placeholder { color: #6f786e; }
.field-hint { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.demo-id { margin: 7px 0 13px; min-height: 37px; }
.form-card .button-primary { display: flex; width: 100%; }
.bottle-status { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; background: #e7eee2; color: #235744; border-radius: 7px; padding: 8px 10px; font-size: 12px; overflow-wrap: anywhere; }
.bottle-status .icon { width: 15px; height: 15px; }
.refill-layout { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: 16px; margin-bottom: 16px; }
.station-card { align-self: start; }
.station-options { margin-top: 17px; gap: 8px; }
.station { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 11px; background: #fffcf7; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.station:has(input:checked) { background: #eff3e9; border-color: #76a18a; }
.station:has(input:disabled) { cursor: default; }
.station strong, .station small { display: block; }
.station strong { font-size: 14px; }
.station small { color: var(--muted); }
.radio-mark { width: 17px; height: 17px; border: 1px solid #729282; border-radius: 50%; }
.station:has(input:checked) .radio-mark { background: #276450; box-shadow: inset 0 0 0 4px #eff3e9; border-color: #276450; }
.station-card .source-note { margin: 16px 0 0; font-size: 12px; }
.source-note a { text-underline-offset: 3px; }
.reader { position: relative; isolation: isolate; overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 40%,#285f4e,#103b34 78%); border: 1px solid #0a3d36; border-radius: 17px; color: #fff4dc; padding: 17px 22px 21px; min-height: 350px; }
.reader-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; color: #e6d8b3; }
.reader-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cae6c346; background: #dcecc015; border-radius: 99px; padding: 4px 9px; white-space: nowrap; font-size: 11px; }
.reader-chip > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #b8deb0; }
.reader-visual { position: relative; width: 150px; height: 150px; margin: 9px auto; display: grid; place-items: center; }
.ripple { position: absolute; width: 86%; height: 86%; border: 1px solid #a9d3b36a; border-radius: 50%; }
.ripple-inner { width: 68%; height: 68%; }
.reader-core { position: relative; width: 79px; height: 79px; display: grid; place-items: center; background: #e0efdb; box-shadow: 0 0 24px #a9d7a575; border-radius: 50%; transition: background .3s; }
.reader-core img { width: 34px; height: 47px; }
.reader-check { position: absolute; opacity: 0; width: 34px; height: 34px; color: #21594a; stroke-width: 2.4; transform: scale(.75); transition: opacity .2s, transform .3s var(--ease); }
.reader[data-phase="detecting"] .ripple, .reader[data-phase="filling"] .ripple { animation: ripple 1.1s ease-out infinite; }
.reader[data-phase="detecting"] .ripple-inner, .reader[data-phase="filling"] .ripple-inner { animation-delay: .22s; }
.reader[data-phase="recorded"] .reader-core img { opacity: 0; }
.reader[data-phase="recorded"] .reader-check { opacity: 1; transform: none; }
@keyframes ripple { from { transform: scale(.64); opacity: .9; } to { transform: scale(1.32); opacity: 0; } }
.reader h2 { font-size: clamp(28px,3vw,38px); letter-spacing: -.043em; }
.reader p { margin: 6px auto 0; font-size: 13px; color: #e2e8d8; max-width: 370px; min-height: 38px; overflow-wrap: anywhere; }
.reader-actions { margin-top: 13px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.reader .button:disabled { opacity: .76; }
.history-card { margin-bottom: 16px; }
.small-pill { padding: 4px 10px; font-size: 12px; background: #e7eee4; color: #245847; border-radius: 99px; font-weight: 680; white-space: nowrap; }
.activity-list { display: grid; padding: 0; margin: 0; list-style: none; }
.activity-row { min-width: 0; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.activity-row .icon-tile { width: 35px; height: 35px; border-radius: 8px; }
.activity-row .icon { width: 17px; height: 17px; }
.activity-row strong { display: block; font-size: 14px; }
.activity-row small { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.activity-row:last-child { padding-bottom: 0; }
.rewards-intro { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.reward-balance { min-width: 184px; display: flex; gap: 9px; align-items: center; background: #f4e8ce; border: 1px solid #ead6af; border-radius: 10px; padding: 9px 13px; }
.reward-balance > div > span { display: block; color: #594b34; font-size: 11px; }
.reward-balance strong { display: block; font: 22px/1.05 var(--serif); }
.reward-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 16px; }
.reward-card { min-width: 0; display: flex; flex-direction: column; padding: 19px; }
.reward-card .section-row { margin-bottom: 12px; }
.reward-card h2 { font-size: 26px; letter-spacing: -.04em; }
.reward-card p { margin: 7px 0 14px; color: var(--muted); font-size: 13px; }
.reward-card .button { align-self: start; margin-top: auto; }
.reward-card .button:disabled { background: #ece7dc; color: #556456; }
.reward-card .claimed { background: #e7eee4; color: #245847; }
.toast { position: fixed; z-index: 4; right: 20px; bottom: 20px; max-width: min(370px,calc(100% - 40px)); display: grid; grid-template-columns: auto 1fr; gap: 9px; color: #fff9eb; background: #163e35; border: 1px solid #73a48c; padding: 12px 15px; border-radius: 10px; box-shadow: 0 5px 24px #183b3340; font-size: 13px; opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.toast:empty { padding: 0; border: 0; }
.toast.visible { transform: none; opacity: 1; }
.toast .icon { color: #e8cd97; width: 17px; height: 17px; }
@media (max-width: 950px) {
  .topbar-inner { padding: 0 23px; gap: 12px; }
  .main-nav a { padding-inline: 9px; }
  .shell { padding-inline: 23px; }
  .hero { min-height: 376px; }
  .hero-copy { padding-inline: 33px; }
  .hero-actions { gap: 6px 13px; }
}
@media (max-width: 720px) {
  .topbar-inner { grid-template-columns: 1fr 1fr; padding: 9px 16px 0; gap: 7px; }
  .brand img { width: 26px; height: 36px; }
  .brand-name { font-size: 22px; }
  .brand-name span { font-size: 7px; }
  .main-nav { grid-column: 1/-1; grid-row: 2; justify-content: space-between; gap: 1px; margin: 0 -4px; padding-bottom: 7px; }
  .main-nav a { flex: 1; justify-content: center; min-height: 42px; padding: 6px 3px; gap: 4px; font-size: 12px; }
  .main-nav .icon { width: 14px; height: 14px; }
  .shell { padding: 17px 16px 0; min-height: calc(100svh - 101px); }
  .hero { min-height: 0; grid-template-columns: 1fr; border-radius: 17px; }
  .hero-copy { padding: 23px 24px 21px; }
  .hero h1 { margin: 9px 0 10px; font-size: clamp(51px,10vw,72px); }
  .hero h1 br { display: none; }
  .hero-brand img { width: 20px; height: 28px; }
  .hero-copy p { font-size: 13px; }
  .hero-actions { margin-top: 12px; gap: 3px 13px; }
  .hero-art { padding: 12px 14px 10px; }
  .hero-art::before { width: 37%; left: 31.5%; }
  .hero-art-top { font-size: 8px; }
  .arabic { font-size: 20px; }
  .hero-bottles { padding: 0 3px 7px; gap: 28px; }
  .hero-bottles img { height: clamp(157px,40vw,215px); }
  .hero-art-caption { font-size: 10px; padding: 3px 9px; }
  .stats { gap: 7px; margin: 11px 0; }
  .stat { gap: 7px; padding: 10px 8px; border-radius: 10px; }
  .stat .icon-tile { width: 27px; height: 27px; border-radius: 7px; }
  .stat .icon { width: 15px; height: 15px; }
  .stat-label { font-size: 10px; line-height: 1.18; }
  .stat strong { font-size: 23px; }
  .overview-grid, .bottle-layout, .refill-layout { grid-template-columns: 1fr; gap: 12px; }
  .dashboard-card, .form-card, .station-card, .history-card { padding: 16px; }
  .section-row h2, .form-card h2, .station-card h2 { font-size: 24px; }
  .page-intro { padding: 6px 0 17px; }
  .page-intro p { font-size: 14px; }
  .edition-options { gap: 9px; }
  .edition-photo { min-height: 174px; padding: 12px 8px; }
  .edition-photo img { height: 150px; }
  .edition-detail { padding: 10px; }
  .edition-detail strong { font-size: 21px; }
  .edition-detail span { font-size: 12px; }
  .reader { min-height: 335px; }
  .reward-grid { grid-template-columns: 1fr; gap: 9px; }
  .reward-card { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 14px; }
  .reward-card .section-row, .reward-card h2, .reward-card p { grid-column: 1/-1; }
  .reward-card .button { grid-column: 1/-1; justify-self: start; }
  .reward-card .section-row { margin-bottom: 7px; }
  .reward-card .icon-tile { width: 34px; height: 34px; }
  .rewards-intro { align-items: start; flex-direction: column; gap: 10px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px 0; }
  .toast { right: 12px; bottom: 12px; max-width: calc(100% - 24px); }
}
@media (max-width: 440px) {
  .main-nav a { flex-direction: column; gap: 2px; font-size: 11px; min-width: 0; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 45px; }
  .hero-copy { padding-inline: 18px; }
  .stat .icon-tile { display: none; }
  .activity-row { gap: 7px; }
  .activity-row .small-pill { padding-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.install-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin: 18px 0 0; }
.install-card > img { border: 1px solid var(--line); border-radius: 12px; flex: none; }
.install-copy { flex: 1; }
.install-copy h2 { font-size: 25px; }
.install-copy p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.install-copy #offline-status { font-size: 11px; }
.install-card .button { flex: none; }
#install-help { max-width: min(460px, calc(100% - 32px)); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 16px 70px #103b3440; }
#install-help::backdrop { background: #103b3480; }
#install-help h2 { font-size: 31px; }
#install-help p { margin: 16px 0; }
#install-help .install-note { font-size: 12px; color: var(--muted); }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); padding-bottom: env(safe-area-inset-bottom); }
.topbar { padding-top: env(safe-area-inset-top); }
@media (max-width: 720px) {
  .install-card { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .install-copy { flex-basis: calc(100% - 68px); }
  .install-card .button { width: 100%; }
}
.reward-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.reward-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--paper); }
.reward-stage { position: relative; isolation: isolate; background: radial-gradient(ellipse at 46% 30%, #fff9eb, transparent 60%), linear-gradient(165deg,#e2d4b7,#f6eddb 72%,var(--paper)); }
.reward-stage .small-pill { position: absolute; top: 14px; left: 16px; z-index: 1; background: #fff9edcf; color: #355448; border-color: #cfc3a7; }
.reward-art { min-height: 240px; display:flex; align-items:center; justify-content:center; gap:28px; padding-top:16px; }
.reward-art > * { animation: reward-reveal .28s ease-out both; }
@keyframes reward-reveal { from { opacity:.4; transform:translateY(4px); } }
@media (prefers-reduced-motion:reduce) { .reward-art > * { animation:none; } }
.badge-medallion { width:138px; height:138px; border-radius:50%; display:grid; place-items:center; background: radial-gradient(ellipse at 33% 22%,#216459,#0f493f 68%,#083d34); border:3px solid #bc9a60; outline:1px solid #977a4b; box-shadow:inset 0 0 0 4px #143e36,inset 0 0 0 5px #ab9566,0 7px 13px -6px #473d2788; }
.reward-emblem { width:72%; height:72%; object-fit:contain; }
.reward-charm { height:182px; max-width:60%; object-fit:contain; filter:drop-shadow(1px 4px 3px #4a382c35); }
.reward-card[data-kind="sleeve"] .reward-art { gap:clamp(20px,5vw,50px); padding:25px 16px 10px; }
.sleeved-bottle { display:block; width:auto; height:clamp(216px,23vw,268px); max-width:38%; object-fit:contain; filter:drop-shadow(1px 4px 3px #433e3225); }
.gift-bottle { height:204px; width:auto; filter:drop-shadow(2px 4px 2px #433e322b); }
.reward-details { display:flex; flex-direction:column; flex:1; padding:18px 22px 22px; }
.reward-details h2 { font: 29px/1.12 var(--serif); }
.reward-details > p { font-size:14px; line-height:1.5; }
.reward-preview { margin:auto 0 16px; }
.design-options { display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; border:0; }
.design-choice { position:relative; cursor:pointer; }
.design-choice input { position:absolute; width:1px; height:1px; opacity:0; }
.design-choice span { display:block; padding:7px 10px; border:1px solid var(--line); border-radius:100px; color:#355448; font-size:14px; }
.design-choice input:checked + span { background:#174e42; color:white; border-color:#174e42; }
.design-choice input:focus-visible + span { outline:2px solid #925d1b; outline-offset:2px; }
.reward-preview > label { display:block; font-size:14px; margin:12px 0 5px; }
#gift-recipient { width:100%; box-sizing:border-box; padding:8px; border-radius:7px; border:1px solid var(--line); background:var(--paper); font:inherit; font-size:16px; }
.reward-details .button { margin-top:0; }
.journal-badge { width:38px; height:38px; object-fit:contain; }
.journal-badge.journal-badge[src$="-badge.webp"] { background:#174e42; padding:5px; border:1px solid #bc9a60; border-radius:50%; }
@media (max-width:720px) { .reward-grid { grid-template-columns:1fr; gap:12px; } .reward-art { min-height:218px; } .reward-details { padding:15px 17px 19px; } }
