:root{color-scheme:dark;--bg:#0b121d;--panel:#131e2d;--line:#273448;--text:#eef2f8;--muted:#a8b7c9;--accent:#f1be9b;--rose:#d76264;font:16px/1.55 system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}button,summary{cursor:pointer}button,input,textarea,select{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;padding:.65rem 1rem;border:1px solid transparent;border-radius:9px;background:var(--accent);color:#241710;font-weight:650;text-decoration:none}button:hover,.button:hover{filter:brightness(1.12);text-decoration:none}.secondary{background:#192535;color:var(--text);border-color:#38475a}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.top{background:#0e1723;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:2}.nav,main,footer{max-width:1160px;margin:auto;padding-inline:24px}.nav{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:70px}.brand{display:flex;align-items:center;gap:11px;font:700 25px/1 Georgia,serif}.brand:hover{text-decoration:none}.brand small{display:block;margin-top:5px;color:var(--muted);font:700 10px/1 system-ui,sans-serif;letter-spacing:.16em}.seal{display:grid;place-items:center;background:#a94348;border-radius:10px;width:38px;height:38px;font-size:22px}nav{display:flex;align-items:center;gap:8px;font-size:.9rem}nav>a,summary{padding:.55rem .7rem;border-radius:8px;color:var(--muted);white-space:nowrap}nav>a[aria-current=page],nav>a:hover,summary:hover{background:#1a2839;color:var(--text);text-decoration:none}details{position:relative}summary{list-style:none}summary::-webkit-details-marker{display:none}#menu{position:absolute;right:0;top:calc(100% + 10px);width:min(280px,85vw);max-height:75vh;overflow:auto;padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 32px #0008}#menu a{display:block;padding:.35rem .5rem}#menu p{margin:.6rem .5rem .2rem}
main{min-height:calc(100vh - 160px);padding-block:30px 56px}.hero{overflow:hidden;border-radius:18px;border:1px solid #394355;background:#142437;position:relative;isolation:isolate;padding:clamp(26px,6vw,72px);min-height:430px;display:flex;flex-direction:column;justify-content:center}.hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 53%;z-index:-2}.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#09111cee 0%,#09111cb8 38%,#09111c25 100%)}.hero .kanji{color:#ffd0b6;font-size:1.3rem;letter-spacing:.32em}.hero h1{font-size:clamp(3rem,8vw,6.1rem);margin:0;line-height:1.04}.hero .lead{margin:.75rem 0 1.35rem;color:#e0e8f2}.hero .actions{margin-top:24px}.countdown{display:flex;gap:22px}.countdown div{min-width:57px}.countdown strong{display:block;font:700 2rem/1 Georgia,serif;font-variant-numeric:tabular-nums}.eyebrow,.countdown small{color:var(--accent);font-size:.72rem;font-weight:750;letter-spacing:.13em;text-transform:uppercase}.countdown small{color:#cfdae7}.eyebrow{margin:0 0 .55rem}
h1,h2,h3{font-family:Georgia,serif;line-height:1.15}h1{font-size:clamp(2.7rem,7vw,4.2rem);margin:.25rem 0 .6rem}h2{font-size:1.9rem;margin:.25rem 0}h3{font-size:1.35rem;margin:0 0 .45rem}.muted,p.muted{color:var(--muted)}.actions,.section-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.section-head{justify-content:space-between;margin-bottom:14px}.section-head a{color:var(--accent)}.section{margin-top:32px}.grid{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}.summary-grid{margin-top:14px}.card,.empty,.record{border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:18px}.card p,.record p{margin:.2rem 0}.card .eyebrow{margin-bottom:.35rem}.card a{color:var(--accent)}.empty{color:var(--muted);border-style:dashed;text-align:center;padding:28px 18px}.jump{display:flex;align-items:center;gap:10px;padding:14px 16px}.jump span{color:var(--accent);width:1.5em;text-align:center}.jump:hover{background:#1b2b3e;text-decoration:none}.record{margin-top:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.record strong{overflow-wrap:anywhere}.record button{padding:.35rem .7rem}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tabs a,.tabs button{border:1px solid var(--line);border-radius:8px;padding:.4rem .75rem;background:var(--panel);color:var(--muted);font-weight:500}.tabs [aria-current],.tabs [aria-pressed=true]{color:var(--accent);border-color:#9a695a}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-block:16px}.map-panel{min-height:260px;display:grid;place-items:center}.progress{width:100%;height:6px;accent-color:var(--rose)}footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-block:20px;border-top:1px solid var(--line);color:var(--muted);font-size:.875rem}
dialog{width:min(500px,calc(100% - 32px));background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;padding:24px}dialog::backdrop{background:#020710ba}label{display:block;margin:12px 0;color:var(--muted)}input:not([type=checkbox]),textarea,select{display:block;width:100%;margin-top:4px;padding:9px 11px;color:var(--text);background:#0c1521;border:1px solid #3b4d64;border-radius:8px}.filters input{max-width:300px}.record label{margin:0;color:var(--text)}textarea{resize:vertical}.notice{color:var(--muted);margin-top:16px}
@media(max-width:760px){.nav{flex-wrap:wrap;padding-block:12px;gap:8px}.nav nav{width:100%;justify-content:space-between;gap:0}.nav nav>a,summary{padding:.45rem .32rem;font-size:.78rem}.nav,main,footer{padding-inline:14px}.hero{min-height:395px}.hero img{object-position:62% center}}

:root {
  color-scheme: light;
  --bg: #f0e4d0;
  --panel: #e9d8bd;
  --line: #c6ad90;
  --text: #29241e;
  --muted: #615244;
  --accent: #97372b;
  --rose: #97372b;
  --ink: #293b45;
  --paper-bright: #fff6e7;
  --paper-sage: #e2e8e8;
  --paper-red: #f0d8c9;
  --indigo: #293b45;
  --indigo-deep: #23313a;
  --display-font: "Fraunces", "Palatino Linotype", Palatino, Georgia, serif;
  --ui-font: "Source Sans 3", system-ui, sans-serif;
  font-family: var(--ui-font);
  --wave-print: repeating-radial-gradient(ellipse at 50% 100%, transparent 0 6px, #31564922 7px 8px, transparent 9px 13px);
}

button, .button { border-radius: 999px; background: var(--accent); color: #fffaf4; }
.secondary { background: var(--paper-bright); color: var(--ink); border-color: var(--line); }
.top { background: var(--bg); box-shadow: 0 1px 0 #5b362409; }
.nav, main, footer { max-width: 1600px; padding-inline: clamp(18px, 4.25vw, 68px); }
.nav { min-height: 76px; }
.brand { font-weight: 600; white-space: nowrap; color: var(--ink); }
.brand small { margin: .3em 0 0; text-transform: uppercase; }
.brand-seal { display: inline-grid; place-items: center; flex: 0 0 32px; height: 33px; padding-bottom: 1px; border: 1px solid #883325; border-radius: 7px; background: var(--accent); box-shadow: inset 0 0 0 2px #f9e0c7a0; color: #fff4dd; font: 600 1.08rem/1 system-ui,sans-serif; }
nav > a, summary { border-radius: 999px; padding: .6rem .85rem; }
nav > a[aria-current=page], nav > a:hover, summary:hover { background: var(--paper-red); color: var(--accent); }
summary { border: 1px solid var(--line); }
summary span { margin-right: .35em; }
#menu { background: var(--paper-bright); box-shadow: 0 10px 30px #39271118; }
#menu a { border-radius: 7px; }
#menu a:hover, #menu a[aria-current=page] { background: var(--paper-red); color: var(--accent); text-decoration: none; }
.phone-menu, .menu-mobile { display: none; }
.bottom-nav, #approve-next[hidden] { display: none; }
#more summary { display: flex; align-items: center; gap: .45rem; }
#more summary span { margin: 0; }

.page-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: clamp(16px, 3vw, 26px);
  padding: clamp(18px, 4.5vw, 36px);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px 18px 18px 6px;
  background: var(--panel);
}
.page-heading::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: clamp(70px, 26vw, 300px);
  background: var(--wave-print) bottom right / 54px 26px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.page-heading h1 { margin: 0 0 .45rem; color: var(--ink); letter-spacing: -.035em; }
.page-heading p { margin: 0; }
.home-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.home-shortcuts .button { gap: 8px; min-height: 44px; padding-inline: .65rem; text-align: center; }
.home-shortcuts span { color: var(--accent); }
.next-stop { margin-bottom: 12px; padding: clamp(16px, 4vw, 24px); border: 1px solid #bec9b0; border-radius: 18px; background: var(--paper-sage); overflow-wrap: anywhere; }
.next-stop :is(h2,p) { margin: 0 0 .45rem; }
.next-stop .actions { margin-top: 12px; }
.next-ticket { padding: .55rem .75rem; border-radius: 9px; background: var(--paper-bright); }
.offline-card { max-width: 36rem; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-bright); }
.offline-card summary { display: flex; align-items: center; min-height: 44px; padding: .55rem .85rem; border: 0; border-radius: 11px; color: var(--ink); font-size: .9rem; }
.offline-card summary::after { content: "+"; margin-left: auto; }
.offline-card[open] summary::after { content: "−"; }
.offline-card > div { padding: 0 .85rem .85rem; }
.offline-card p { margin: .4rem 0 .7rem; color: var(--muted); font-size: .9rem; }
.offline-card button { min-height: 44px; }
.photo-preview { margin: 12px 0; }
.photo-preview img { display: block; width: 100%; max-height: 190px; border-radius: 10px; background: var(--paper-sage); object-fit: contain; }
.photo-preview figcaption { margin-top: 4px; color: var(--muted); font-size: .83rem; }
.currency-card { max-width: 620px; padding: clamp(16px, 4vw, 30px); }
.currency-card label:first-child { margin-top: 0; }
.currency-card #yen-amount { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.currency-presets { gap: 6px; margin-top: 12px; }
.currency-presets button { min-height: 44px; padding-inline: .65rem; }
.currency-result { margin-block: 18px 12px; padding: 14px; border: 1px solid #bec9b0; border-radius: 14px; background: var(--paper-sage); }
.currency-result label { margin: 0; }
#shekel-result { display: block; color: var(--ink); font: 600 clamp(1.9rem, 8vw, 2.8rem)/1.3 Georgia,serif; overflow-wrap: anywhere; }
.currency-card .currency-note { margin: .5rem 0 1rem; font-size: .88rem; }
.phrase-toolbar { max-width: 520px; }
.phrase-toolbar input { min-height: 44px; }
.phrase-group { margin-top: 26px; }
.phrase-group h2 { margin-bottom: 10px; }
.phrase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); gap: 10px; }
.phrase-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .2rem;
  width: 100%;
  min-height: 98px;
  padding: 12px 58px 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-bright);
  color: var(--text);
  text-align: left;
}
.phrase-card[hidden] { display: none; }
.phrase-card:hover, .phrase-card[data-playing] { background: var(--paper-sage); border-color: #aab99d; }
.phrase-japanese { color: var(--ink); font-size: 1.16rem; font-weight: 650; }
.phrase-card strong { font-size: .88rem; }
.phrase-card small { color: var(--muted); font-size: .8rem; font-weight: 400; }
.phrase-play { position: absolute; top: 50%; right: 13px; display: grid; place-items: center; width: 34px; height: 34px; transform: translateY(-50%); border-radius: 50%; background: var(--paper-red); color: var(--accent); font-size: .8rem; }
.phrase-status { color: var(--accent); }
.phrase-status:empty { display: none; }
.fish-entry { display: block; border-left: 4px solid var(--accent); background: var(--paper-sage); }
.fish-entry:hover { text-decoration: none; border-color: var(--accent); }
.fish-entry:hover h2 { text-decoration: underline; }
.fish-note { max-width: 760px; margin-bottom: 16px; }
.fish-note p[lang=ja] { margin-top: 12px; color: var(--ink); font-weight: 650; }
.fish-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 265px), 1fr)); gap: 10px; margin-top: 10px; }
.fish-card { border-left-width: 4px; background: var(--paper-bright); overflow-wrap: anywhere; }
.fish-card .eyebrow { font-size: .9rem; letter-spacing: .05em; }
.fish-card.fish-kosher { border-left-color: #52745b; }
.fish-card.fish-check { border-left-color: #9b671c; }
.fish-card.fish-avoid { border-left-color: var(--accent); }
.fish-card[hidden], .fish-group[hidden] { display: none; }
.fish-sources a { text-decoration: underline; text-underline-offset: .16em; }

.hero {
  min-height: clamp(480px, 47vw, 690px);
  border: 0;
  border-radius: clamp(22px, 2.5vw, 38px);
  background: #231c16;
  color: #fbf5e9;
  justify-content: flex-end;
  padding: clamp(28px, 4.2vw, 68px);
}
.hero img { filter: saturate(.82) brightness(.85); }
.hero::after { background: linear-gradient(90deg, #17110eeb, #17110e70 62%, #17110e18), linear-gradient(0deg, #17110ec7, transparent 54%); }
.hero .kanji { color: #f8ebd9; font-size: .88rem; margin-bottom: .6rem; }
.hero h1 { font-weight: 400; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: -.035em; }
.hero .lead { color: #f4eadc; margin: .8rem 0 1.55rem; }
.hero .eyebrow { color: #f8e8d5; }
.countdown { gap: 9px; }
.countdown div { min-width: 74px; padding: .8rem .65rem .55rem; background: #f1d7ae2d; border-radius: 14px; text-align: center; }
.countdown strong { font-weight: 400; }
.countdown small { color: #f8ebd9; }
.hero .button { background: #f8f2e8; color: #29231d; }
.hero .secondary { background: #1c16135c; color: #fbf5e9; border-color: #fbf5e968; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.7rem; padding-top: 1rem; border-top: 1px solid #fbf5e940; font-size: .9rem; }

h1, h2, h3 { font-weight: 500; }
main h2, main .card h3, dialog h2 { color: var(--ink); }
.eyebrow { color: var(--muted); }
.summary-grid { margin-top: clamp(20px, 3vw, 40px); }
.summary-grid .card { padding: clamp(18px, 2vw, 28px); min-height: 145px; }
.summary-grid h3 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
.card, .empty, .record { border-radius: 20px; }
.empty { background: var(--paper-sage); border-color: #b9c6ae; }
.record { background: var(--paper-bright); }
.tabs [aria-current], .tabs [aria-pressed=true] { background: var(--paper-red); border-color: #bb8b78; }
.jump span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--paper-red); }
.summary-grid .card { box-shadow: 0 12px 24px #4b371007; }
.jump:hover { background: #eae2d5; }
.today-panel { margin-bottom: 24px; padding: clamp(18px, 3vw, 32px); border: 1px solid #bec9b0; border-radius: 20px; background: var(--paper-sage); }
.today-panel .record { background: var(--bg); }
.offline-banner { padding: .75rem 1rem; margin-top: 0; color: var(--accent); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.trip-map { display: block; border: 1px solid var(--line); border-radius: 20px; width: 100%; height: clamp(260px, 44vw, 480px); }
.record .directions { padding: .35rem .7rem; }
.flight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 385px), 1fr)); gap: 16px; }
.flight-ticket { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.flight-ticket > header { padding: 20px clamp(16px, 3vw, 26px); border-left: 4px solid var(--accent); background: var(--paper-sage); color: var(--ink); }
.flight-ticket h3 { margin: 0; font-size: clamp(1.55rem, 5vw, 2.1rem); }
.flight-ticket p { margin: 0; }
.flight-ticket .eyebrow { margin-bottom: 5px; }
.flight-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 20px clamp(16px, 3vw, 26px); }
.flight-route strong { display: block; font: 400 clamp(1.5rem, 6vw, 2.25rem)/1.1 Georgia, serif; }
.flight-route p:not(.eyebrow) { margin-top: 5px; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.flight-plane { color: var(--accent); padding-inline: 5px; }
.flight-time { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0; padding: 16px clamp(16px, 3vw, 26px); border-top: 1px dashed var(--line); }
.flight-time dt { font-size: .8rem; color: var(--muted); }
.flight-time dd { margin: .1rem 0 0; }
.flight-actions { padding: 0 clamp(16px, 3vw, 26px) 20px; }
.flight-actions .button, .flight-details-link { min-height: 44px; }
.flight-details-link { display: inline-flex; align-items: center; margin-top: 3px; }
.adventure-page, .adventure-dialog {
  --hunt-ink: #103c35;
  --hunt-dark: #102d29;
  --hunt-paper: #f4edde;
  --hunt-mint: #c6e7d0;
  --hunt-red: #f47e59;
}
.adventure-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .87fr);
  align-items: center;
  gap: 20px 28px;
  padding: clamp(23px, 4.5vw, 55px);
  border: 1px solid #2b5147;
  border-radius: 28px;
  background: radial-gradient(ellipse at 82% 35%, #24554a, transparent 65%), var(--hunt-dark);
  color: var(--hunt-paper);
}
.adventure-intro .eyebrow { color: var(--hunt-mint); }
.street-teaser, .street-page {
  --street-ink: #242923;
  --street-paper: #fff0d9;
  --street-coral: #fba587;
  --street-teal: #204943;
}
.street-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .62fr);
  position: relative;
  align-items: stretch;
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #342620;
  border-radius: 22px;
  background: #412823;
  color: var(--street-paper);
}
.street-teaser:hover { text-decoration: none; background: #553229; }
.street-teaser-copy { padding: clamp(16px, 4vw, 32px); align-self: center; }
.street-teaser .eyebrow { color: var(--street-coral); letter-spacing: .1em; }
.street-teaser h2 { color: var(--street-paper); font-size: clamp(1.8rem, 5.5vw, 3.2rem); line-height: 1; }
.street-teaser-action { display: inline-flex; min-height: 44px; align-items: center; margin-top: 5px; color: var(--street-coral); font-size: .9rem; font-weight: 650; }
.street-teaser:hover .street-teaser-action { text-decoration: underline; }
.street-teaser img, .street-intro img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 62% 50%; }
.street-teaser img { max-height: 230px; border-left: 3px solid var(--street-coral); }
.adventure-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adventure-games .street-teaser { margin: 0; min-height: 148px; }
.adventure-games .street-teaser-copy p { margin: .55rem 0 0; font-size: .88rem; color: var(--street-paper); }
.adventure-games .street-teaser-action { margin-top: 2px; }
.manhole-teaser { background: var(--hunt-dark); border-color: #2b5147; }
.manhole-teaser:hover { background: var(--hunt-ink); }
.manhole-teaser img { border-color: var(--hunt-mint); }
.manhole-teaser .street-teaser-action { color: var(--hunt-mint); }
.adventure-hub-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.adventure-hub-links a { min-height: 44px; }
.adventure-hub-section { scroll-margin-top: calc(88px + env(safe-area-inset-top)); }
.submission-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.submission-groups h3 { color: var(--hunt-ink); }
.street-back { display: inline-flex; min-height: 44px; align-items: center; color: var(--street-teal); }
.street-page { max-width: 730px; margin-inline: auto; }
.street-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .78fr); overflow: hidden; border-radius: 22px; background: var(--street-teal); color: var(--street-paper); }
.street-intro-copy { align-self: center; padding: clamp(16px, 4vw, 36px); }
.street-intro .eyebrow { color: var(--street-coral); letter-spacing: .1em; }
.street-intro h1 { margin: .4rem 0 .7rem; color: var(--street-paper); font-size: clamp(2.55rem, 9vw, 5.15rem); font-weight: 700; letter-spacing: -.045em; line-height: .88; }
.street-intro p:not(.eyebrow) { margin: 0; font-size: clamp(.85rem, 2vw, 1rem); }
.street-intro img { max-height: 390px; }
.street-board-panel { margin-top: 16px; padding: clamp(8px, 2.3vw, 18px); border: 1px solid #d4bba8; border-radius: 18px; background: #f1e1cf; }
.street-score { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; padding: 5px 5px 12px; color: #52332c; font-size: .91rem; }
.street-score strong { font: 700 1.25rem/1 Georgia, serif; color: var(--street-teal); }
.bingo-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 2vw, 12px); }
.bingo-board .bingo-square { display: flex; flex-direction: column; justify-content: flex-end; position: relative; isolation: isolate; min-width: 0; min-height: 79px; aspect-ratio: 1; padding: clamp(7px, 2vw, 14px); white-space: normal; border: 1px solid #cea28c; border-radius: 10px; overflow: hidden; background: #fff3e2; color: #542d25; text-align: left; font-size: clamp(.82rem, 3.6vw, 1.1rem); font-weight: 700; line-height: 1.15; }
.bingo-square::before { content: ""; position: absolute; left: 8px; top: 8px; width: 17px; height: 17px; border-top: 1px solid #a56852; border-left: 1px solid #a56852; }
.bingo-board .bingo-square[aria-current], .bingo-board .bingo-square:hover { outline: 2px solid #a4513a; outline-offset: -3px; background: #fbd5c2; color: #542d25; text-decoration: none; }
.bingo-square .discovery-image { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; background: var(--street-teal); }
.bingo-square .discovery-image span { display: none; }
.bingo-square:is(.is-pending, .is-approved)::before { display: none; }
.bingo-square:is(.is-pending, .is-approved)::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 15%, #18211ee3 100%); }
.bingo-board .bingo-square:is(.is-pending, .is-approved) { color: #fff8e9; }
.bingo-square .square-title { overflow-wrap: anywhere; }
.bingo-board .bingo-square:has(.square-description) { min-height: clamp(120px, 31vw, 152px); }
.square-description { display: block; margin-top: .3rem; font-size: clamp(.73rem, 2.8vw, .87rem); font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.square-caption { display: none; }
.bingo-square:is(.is-pending, .is-approved)::after { background: linear-gradient(#18211e15, #18211eea 65%); }
.square-state { position: absolute; top: 6px; right: 6px; padding: .2rem .35rem; border-radius: 4px; background: #f5cf8d; color: #33240f; font-size: .67rem; }
.is-approved .square-state { background: #cae6d5; color: #204943; }
.square-state.is-awaiting, .review-pending { background: #f5cf8d; color: #50330c; }
.square-feedback:empty { display: none; }
.square-feedback { display: flex; flex-wrap: wrap; }
.street-prompt { margin-top: 18px; padding: clamp(14px, 3vw, 22px); border: 1px solid #d7bea9; border-radius: 16px; background: #fbf1e6; scroll-margin-top: 120px; }
.street-prompt p { margin: .35rem 0 0; }
.adventure-intro h1 { margin: .15rem 0 .7rem; font-size: clamp(3rem, 7.8vw, 7rem); font-weight: 700; line-height: .91; letter-spacing: -.055em; }
.adventure-intro p:not(.eyebrow) { max-width: 40ch; margin: 0; color: #deecdf; }
.adventure-intro button { margin-top: 18px; padding-inline: 1.35rem; background: var(--hunt-red); color: #2e160d; }
.adventure-art { display: block; width: 100%; max-width: 370px; height: auto; aspect-ratio: 1; justify-self: end; border: 1px solid #88a99b55; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 7px #e2f1de10, 0 14px 25px #02140e99; }
.adventure-counts { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: .65rem 1.4rem; padding-top: 16px; border-top: 1px dashed #91ac9c76; color: var(--hunt-mint); }
.adventure-counts span { display: inline-flex; align-items: baseline; gap: .4rem; }
.adventure-counts strong { color: var(--hunt-red); font: 700 1.6rem/1 Georgia, serif; }
.adventure-page .section h2 { color: var(--hunt-ink); }
.adventure-page .empty { border-color: #9eaf97; background: #eaf0e4; color: var(--hunt-ink); }
.adventure-page .standings, .adventure-page .record { border-color: #bbcab8; background: #eaf0e4; }
.adventure-page .secondary, .adventure-dialog .secondary { border-color: #a9bca6; color: var(--hunt-ink); }
.adventure-review { border-top: 3px solid var(--hunt-ink); }
.adventure-review .danger { color: var(--accent); border-color: var(--accent); }
.adventure-review .review-card button:not(.secondary), .adventure-dialog button[type=submit] { background: var(--hunt-ink); color: #fff9eb; }
.adventure-dialog { border-top: 5px solid var(--hunt-ink); }
.adventure-dialog h2 { color: var(--hunt-ink); }
.discovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.discovery-card { position: relative; overflow: hidden; border: 1px solid #b8c8b6; border-radius: 18px; background: #f5f1e5; }
.discovery-card:focus-within { outline: 2px solid var(--hunt-ink); outline-offset: 2px; }
.discovery-image { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; aspect-ratio: 4 / 3; background: radial-gradient(circle, #cbd9c5, #b4c5af); color: var(--hunt-ink); }
.discovery-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.discovery-image img:not([hidden]) + span { display: none; }
#editor .discovery-image img, #discovery-detail .discovery-image img { object-fit: contain; }
.discovery-copy { padding: 12px 16px 16px; }
.discovery-copy p { margin: .3rem 0 0; overflow-wrap: anywhere; }
.discovery-copy h3 { margin: 0; }
.discovery-title { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; overflow-wrap: anywhere; }
.discovery-title::after { content: ""; position: absolute; inset: 0; }
.discovery-tag { display: inline-block; margin: .35rem .35rem .35rem 0; padding: .2rem .65rem; border-radius: 999px; background: #dce8d7; color: var(--hunt-ink); font-size: .85rem; overflow-wrap: anywhere; }
.photo-picker-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-block: 12px; }
.photo-picker-actions button { min-height: 44px; padding-inline: .65rem; }
.photo-picker-actions input[hidden] { display: none; }
.street-photo-form { margin-bottom: 14px; }
.form-error { color: var(--accent); }
.form-error:empty { display: none; }
#discovery-detail p, #editor .muted { overflow-wrap: anywhere; }
.score-rules { margin: 0 0 12px; }
.standings-scroll { max-width: 100%; overflow-x: auto; border-radius: 16px; }
.standings { width: 100%; border-spacing: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); text-align: center; }
.standings :is(th, td) { padding: .75rem clamp(.25rem, 1.6vw, 1rem); white-space: nowrap; }
.standings :is(th:nth-child(2), th[scope=row]) { text-align: start; }
.standings tbody :is(th, td) { border-top: 1px solid #bbcab8; }
.standings thead th { color: var(--hunt-ink); font-size: clamp(.75rem, 3vw, .9rem); }
.standings .score-total { color: var(--hunt-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.score-line { color: var(--muted); font-size: .73rem; }
.nav nav[hidden] { display: none; }
.auth-card { max-width: 500px; margin: 8vh auto; padding: clamp(22px, 5vw, 44px); }
.auth-card h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
#status:not(:empty) { position: fixed; z-index: 4; bottom: 16px; right: 16px; max-width: min(420px, calc(100% - 32px)); padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); }
dialog { background: var(--paper-bright); border-color: var(--line); }
dialog::backdrop { background: #30261d99; }
input:not([type=checkbox]), textarea, select { background: #fffdf8; border-color: #bdafa0; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 760px) {
  .standings :is(th, td) { padding: .65rem clamp(.24rem, 1.2vw, .55rem); font-size: .875rem; }
  .standings thead th { font-size: clamp(.7rem, 2.95vw, .8rem); }
  .adventure-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .63fr); gap: 16px; padding: 23px 19px; }
  .adventure-intro h1 { font-size: clamp(2.35rem, 10vw, 4rem); }
  .adventure-intro p:not(.eyebrow) { font-size: .94rem; }
  .adventure-art { align-self: start; margin-top: 24px; }
  .discovery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); }
  .nav, main, footer {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav { flex-wrap: nowrap; min-height: 58px; gap: 8px; padding-top: calc(7px + env(safe-area-inset-top)); padding-bottom: 7px; }
  .brand { min-width: 0; min-height: 44px; gap: 8px; }
  .brand small { font-size: clamp(.52rem, 2.2vw, .62rem); letter-spacing: .12em; }
  .nav nav { width: auto; flex: none; }
  .nav nav > a, .menu-desktop { display: none; }
  #menu .desktop-menu-link { display: none; }
  .phone-menu, .menu-mobile { display: block; }
  #more summary { min-height: 44px; padding: .45rem .68rem; background: var(--paper-bright); color: var(--ink); }
  #menu { width: min(315px, calc(100vw - 32px)); max-height: min(74dvh, 580px); overscroll-behavior: contain; }
  .phone-menu { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  .phone-menu-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .bottom-nav:not([hidden]) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; inset: auto 0 0; z-index: 3; gap: 5px; padding: 5px max(10px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: var(--paper-bright); }
  .bottom-nav > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 46px; min-width: 0; padding: 4px 2px; border-radius: 10px; font-size: .72rem; line-height: 1.15; }
  .bottom-nav > a span { font-size: 1.15rem; line-height: 1; }
  .adventure-games { grid-template-columns: 1fr; gap: 10px; }
  .submission-groups { grid-template-columns: 1fr; gap: 14px; }
  .adventure-games .street-teaser { min-height: 132px; }
  #menu a { display: flex; align-items: center; min-height: 44px; }
  .street-board-panel { padding: 8px; }
  .bingo-board { gap: 10px; grid-auto-rows: 1fr; }
  .bingo-board .bingo-square:has(.square-description) {
    justify-content: flex-start;
    min-height: clamp(108px, 30vw, 130px);
    aspect-ratio: auto;
    padding: 26px 9px 10px;
    border-radius: 12px;
    font-size: clamp(.82rem, 3.5vw, .98rem);
    line-height: 1.15;
  }
  .bingo-square::before { width: 10px; height: 10px; left: 9px; top: 9px; }
  .square-description { display: none; }
  .square-caption { display: block; margin-top: .38rem; font-size: clamp(.72rem, 2.8vw, .84rem); font-weight: 500; line-height: 1.25; }
  .street-prompt { scroll-margin-top: calc(80px + env(safe-area-inset-top)); }
  main { padding-block-start: 16px; }
  .hero { min-height: 0; padding: 34px clamp(18px, 6vw, 28px) 22px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero .lead { margin: .75rem 0 1.1rem; }
  .hero .actions { margin-top: 18px; }
  .hero .actions > a { flex: 1 0 auto; }
  .hero-meta { margin-top: 16px; padding-top: 5px; gap: 0 .8rem; }
  .hero-meta a { display: flex; align-items: center; min-height: 44px; }
  .countdown div { min-width: 62px; }
  .summary-grid .card { min-height: 0; }
  .record > div { min-width: 0; }
  .record p, .auth-card p { overflow-wrap: anywhere; }
  button, .button, .tabs a, .jump { min-height: 44px; }
  .tabs a { display: inline-flex; align-items: center; }
  .record label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
  .record input[type=checkbox] { width: 21px; height: 21px; flex: none; }
  input:not([type=checkbox]), textarea, select { font-size: 16px; min-height: 44px; min-width: 0; max-width: 100%; }
  input[type=date], input[type=time] { -webkit-appearance: none; appearance: none; }
  dialog { max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
  #edit-form > .actions { position: sticky; bottom: -24px; padding-block: 12px; background: var(--paper-bright); }
  #status:not(:empty) { bottom: calc(70px + env(safe-area-inset-bottom)); overflow-wrap: anywhere; }
  footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  body:has(.bottom-nav:not([hidden])) footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 355px) {
  .brand small { display: none; }
  .bingo-board { gap: 7px; }
  .bingo-board .bingo-square:has(.square-description) { padding-inline: 7px; }
}

/* Paper, ink and printed details shared across the trip. */
.staging-notice {
  padding: .35rem 1rem;
  background: var(--indigo-deep);
  color: var(--paper-bright);
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
}
body, .top, .page-heading {
  background-image: url("paper-grain.png");
}
.page-heading {
  border-left-width: 1px;
  border-radius: 12px;
  background-color: #f3e9d8;
}
.page-heading h1 {
  display: flex;
  align-items: center;
  gap: clamp(9px, 2.5vw, 16px);
}
.heading-seal {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: clamp(29px, 7vw, 40px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px #f3e9d8, inset 0 0 0 3px currentColor;
  color: var(--accent);
  font: 700 clamp(1rem, 4vw, 1.3rem)/1 system-ui, sans-serif;
  transform: rotate(-5deg);
}
.has-heading-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
  padding: 0;
}
.has-heading-photo::after { display: none; }
.has-heading-photo .heading-copy { align-self: center; padding: clamp(17px, 3vw, 34px); }
.heading-photo {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 176px;
  object-fit: cover;
  border-left: 1px solid var(--line);
}
.card, .record {
  background-color: var(--paper-bright);
  box-shadow: 0 2px 0 #53371d0b;
}
.day-stamp, .discovery-copy .approval-stamp {
  display: table;
  border: 1px solid #a36a54;
  border-radius: 4px;
  padding: .19em .5em;
  background: #f8eadb;
  color: #843527;
  font-size: .76rem;
  font-weight: 700;
}
.day-stamp { margin-bottom: .5rem; }
.discovery-copy .approval-stamp { display: inline-block; box-shadow: inset 0 0 0 1px #f8eadb; }
.is-approved .square-state {
  border: 1px solid #843527;
  background: #f8eadb;
  color: #843527;
}
.flight-ticket {
  position: relative;
  background: var(--paper-bright) url("paper-grain.png");
  border-radius: 12px;
}
.flight-ticket > header { background-color: #e7ebdc; }
.flight-route strong { letter-spacing: .055em; }
.flight-time {
  position: relative;
  border-top-color: #a4866d;
  background: #efe4d33b;
}
.flight-time::before, .flight-time::after {
  content: "";
  position: absolute;
  top: -7px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg) url("paper-grain.png");
}
.flight-time::before { left: -7px; }
.flight-time::after { right: -7px; }
.flight-actions { background: #efe4d33b; }
.fish-entry, .fish-note, .fish-card { background-color: #fdf6e8; }
.fish-card { border-radius: 7px 12px 12px 7px; }
.fish-card [lang=ja] {
  margin-bottom: .4rem;
  color: var(--ink);
  font-size: clamp(1rem, 3.8vw, 1.17rem);
  overflow-wrap: anywhere;
}

@font-face {
  font-family: "Fraunces";
  src: url("fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

/* Warm paper reads against dyed indigo and red ink. */
h1, h2, h3, .brand, .countdown strong, .flight-route strong,
.street-score strong, .adventure-counts strong, #shekel-result {
  font-family: var(--display-font);
}
h1, h2, h3 { font-weight: 600; }
.brand small, .brand-seal, .heading-seal { font-family: var(--ui-font); }
.top, .page-heading { background-color: var(--panel); }
.top { border-bottom-color: var(--line); }
.page-heading h1 { letter-spacing: -.026em; }
.has-heading-photo .heading-photo { filter: saturate(.67) sepia(.12); }
.card, .record, .discovery-card, .street-prompt { background-color: var(--paper-bright); }
.fish-entry, .fish-note, .fish-card { background-color: var(--paper-bright); }
.empty, .adventure-page .empty, .adventure-page .standings, .adventure-page .record,
.flight-ticket > header, .next-stop, .currency-result {
  background-color: var(--paper-sage);
  border-color: #a8b5b9;
}
.adventure-page, .adventure-dialog {
  --hunt-dark: var(--indigo-deep);
  --hunt-ink: var(--indigo);
  --hunt-mint: #e5e8e3;
  --hunt-red: #f0ab90;
}
.adventure-intro { background: var(--indigo-deep); border-color: var(--indigo); }
.street-intro { background: var(--indigo); }
.street-teaser:not(.manhole-teaser) { background: #713c33; }
.street-teaser:not(.manhole-teaser):hover { background: #63332c; }
.street-board-panel { background: var(--panel); border-color: var(--line); }
.bingo-board .bingo-square:not(.is-pending, .is-approved, [aria-current]):not(:hover) {
  background: var(--paper-bright);
  color: var(--text);
}
.tabs a, .tabs button { background: var(--paper-bright); }
.tabs [aria-current], .tabs [aria-pressed=true] { background: var(--paper-red); }

@media (max-width: 760px) {
  .has-heading-photo { grid-template-columns: minmax(0, 1fr); }
  .heading-photo { height: clamp(60px, 20vw, 110px); border-left: 0; border-top: 1px solid var(--line); }
}
