:root {
  --navy: #071b2b;
  --navy-2: #0b3047;
  --teal: #00a8a0;
  --teal-dark: #007c78;
  --mint: #dff8f3;
  --coral: #ff6b5d;
  --gold: #ffc83d;
  --paper: #f3f7f7;
  --white: #fff;
  --ink: #0a2030;
  --muted: #617580;
  --line: #b8cbd0;
  --soft-line: #dbe6e8;
  --good: #e7f8ee;
  --warn: #fff3d8;
  --bad: #fff0ef;
  --shadow: 5px 6px 0 rgba(7, 27, 43, .13);
  --radius: 15px;
}

* { box-sizing: border-box; }
html { background: var(--navy); }
body {
  margin: 0;
  background:
    linear-gradient(110deg, transparent 0 49%, rgba(0, 168, 160, .035) 49.2% 50%, transparent 50.2%) 0 0 / 54px 54px,
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }

.app-shell { max-width: 980px; min-height: 100vh; margin: auto; background: rgba(243, 247, 247, .95); padding-bottom: 150px; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px;
  background: rgba(7, 27, 43, .97); color: white;
  border-bottom: 4px solid var(--teal);
  box-shadow: 0 6px 20px rgba(7, 27, 43, .2);
}
.brand-button { display: flex; align-items: center; gap: 9px; border: 0; padding: 0; color: inherit; background: transparent; text-align: left; }
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center;
  background: var(--teal); color: white; border: 2px solid white;
  clip-path: polygon(8% 0, 100% 0, 90% 100%, 0 88%);
  font-size: 25px; font-weight: 1000; font-style: italic;
  text-shadow: 2px 2px 0 var(--navy);
}
.brand-copy strong { display: block; font-size: 18px; letter-spacing: -.04em; }
.brand-copy small { display: block; margin-top: 1px; color: #9edbd6; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.wallet { min-width: 122px; padding: 6px 10px; background: white; color: var(--navy); border-left: 5px solid var(--gold); transform: skew(-5deg); text-align: right; }
.wallet > * { display: block; transform: skew(5deg); }
.wallet span { color: var(--teal-dark); font-size: 8px; font-weight: 1000; letter-spacing: .11em; }
.wallet strong { margin-top: 1px; font-size: 16px; }

main { padding: 14px; }
.screen { display: none; animation: screen-in .22s ease both; }
.screen.active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.hero-panel {
  position: relative; min-height: 270px; overflow: hidden; isolation: isolate;
  margin: -14px -14px 12px; padding: 30px 43% 25px 20px;
  color: white; background: linear-gradient(130deg, var(--navy), #0b354c 66%, #075b66);
  border-bottom: 6px solid var(--coral);
}
.hero-panel::before { content: "B"; position: absolute; left: -17px; bottom: -89px; z-index: -1; color: rgba(255,255,255,.035); font-size: 260px; font-weight: 1000; font-style: italic; }
.hero-panel::after { content: ""; position: absolute; right: 36%; top: 0; width: 7px; height: 120%; background: var(--coral); transform: rotate(18deg); opacity: .9; }
.speed-lines { position: absolute; inset: 0; z-index: -1; opacity: .18; background: repeating-linear-gradient(158deg, transparent 0 15px, #fff 16px 17px, transparent 18px 31px); transform: translateX(38%); }
.hero-copy { position: relative; z-index: 2; max-width: 510px; }
.kicker { display: block; color: var(--teal); font-size: 10px; font-weight: 1000; letter-spacing: .17em; }
.hero-panel .kicker, .page-intro .kicker, .onboard .kicker { color: #71eee2; }
.hero-copy h1, .page-intro h1, .onboard-copy h1 { margin: 8px 0 10px; font-size: clamp(30px, 6vw, 48px); line-height: 1.04; letter-spacing: -.075em; }
.hero-copy h1 em, .onboard-copy h1 em { color: var(--gold); font-style: normal; }
.hero-copy p { max-width: 390px; margin: 0; color: #d9e6e9; font-size: 13px; font-weight: 700; line-height: 1.7; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.hero-tags span { padding: 5px 8px; border: 1px solid rgba(255,255,255,.3); color: #d8f6f2; font-size: 9px; font-weight: 900; }
.hero-character { position: absolute; right: 0; bottom: -8px; z-index: 1; width: 46%; max-width: 330px; height: 105%; object-fit: contain; object-position: bottom right; filter: drop-shadow(-12px 7px 0 rgba(0,0,0,.18)); }

.sync-strip, .sync-detail {
  padding: 10px 12px; background: white; border: 1px solid var(--soft-line); border-left: 5px solid var(--teal);
  color: var(--muted); font-size: 11px; line-height: 1.55;
}
.sync-strip.good { background: #f5fffb; border-left-color: var(--teal); }
.sync-strip.warn { background: var(--warn); border-left-color: var(--gold); }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin: 25px 2px 10px; }
.section-head > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.06em; }
.section-head.small { margin-top: 20px; }
.section-head.small h2 { font-size: 19px; }
.section-number { display: grid; place-items: center; min-width: 32px; height: 28px; padding: 0 6px; background: var(--navy); color: white; font-size: 10px; font-weight: 1000; transform: skew(-8deg); }
.section-meta { flex: 0 0 auto; color: var(--muted); font-size: 10px; font-weight: 800; }
.text-action { border: 0; padding: 4px; background: transparent; color: var(--teal-dark); font-size: 11px; font-weight: 900; }
.title { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin: 16px 1px 8px; }
.title h2 { margin: 0; font-size: 17px; }
.title span { color: var(--muted); font-size: 9px; }

.filter-rail { display: flex; gap: 7px; overflow-x: auto; padding: 1px 2px 10px; scrollbar-width: none; }
.filter-rail::-webkit-scrollbar { display: none; }
.filter { flex: 0 0 auto; min-height: 36px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--muted); font-size: 11px; font-weight: 900; }
.filter.active { border-color: var(--navy); background: var(--navy); color: white; box-shadow: 3px 3px 0 var(--teal); }

.venue-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.venue-card { position: relative; min-width: 0; overflow: hidden; background: white; border: 2px solid var(--navy); box-shadow: var(--shadow); }
.venue-card.closed, .venue-card.inactive { border-color: #9aa8ad; box-shadow: 4px 5px 0 rgba(71, 88, 96, .12); filter: saturate(.4); }
.venue-card.inactive { opacity: .58; }
.venue-card-main { width: 100%; min-height: 139px; border: 0; padding: 11px; background: transparent; color: inherit; text-align: left; }
.venue-card.active-card .venue-card-main:active { background: var(--mint); }
.venue-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.venue-code { color: var(--teal-dark); font-size: 9px; font-weight: 1000; letter-spacing: .1em; }
.venue-name { display: block; margin-top: 2px; font-size: 21px; font-weight: 1000; letter-spacing: -.06em; }
.grade { display: inline-grid; place-items: center; min-width: 45px; min-height: 24px; padding: 3px 6px; color: white; background: var(--navy); font-size: 10px; font-weight: 1000; transform: skew(-5deg); }
.grade.general { background: #697980; }
.grade.sg { background: #df1c42; }
.grade.pg1 { background: #e45080; }
.grade.g1 { background: #f08a18; }
.grade.g2 { background: #2776d8; }
.grade.g3 { background: #1b9a68; }
.event-title { height: 2.8em; margin: 9px 0 7px; overflow: hidden; font-size: 11px; font-weight: 850; line-height: 1.4; }
.event-meta { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; }
.night-tag { padding: 2px 5px; background: #e3e0ff; color: #4a3e98; font-size: 8px; font-weight: 1000; }
.venue-next { display: flex; justify-content: space-between; gap: 6px; margin: 8px -11px -11px; padding: 8px 10px; background: var(--navy); color: white; font-size: 10px; }
.venue-card.closed .venue-next, .venue-card.inactive .venue-next { background: #87969c; }
.venue-next strong { color: var(--gold); }
.venue-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--soft-line); }
.venue-links a { padding: 7px; text-align: center; text-decoration: none; color: var(--teal-dark); font-size: 9px; font-weight: 900; }
.venue-links a + a { border-left: 1px solid var(--soft-line); }

.route-guide { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 18px 0 8px; padding: 11px 7px; background: var(--navy); color: white; }
.route-guide span { display: flex; align-items: center; gap: 4px; white-space: nowrap; font-size: 8px; font-weight: 900; }
.route-guide b { display: grid; place-items: center; width: 19px; height: 19px; background: var(--teal); color: white; }
.route-guide i { width: 8px; height: 1px; background: #76a0ae; }

.deadline-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 68%); gap: 9px; overflow-x: auto; padding: 1px 3px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.deadline-rail::-webkit-scrollbar { display: none; }
.deadline-card { scroll-snap-align: start; border: 2px solid var(--navy); background: white; padding: 11px; box-shadow: 4px 4px 0 rgba(7,27,43,.1); }
.deadline-card .deadline-top { display: flex; justify-content: space-between; gap: 6px; }
.deadline-card h3 { margin: 0; font-size: 16px; }
.deadline-time { color: var(--coral); font-size: 17px; font-weight: 1000; }
.deadline-card p { min-height: 2.6em; margin: 5px 0 8px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.deadline-count { color: var(--teal-dark); font-size: 10px; font-weight: 1000; }

.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.three-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-card, .card, .panel { background: white; border: 1px solid var(--soft-line); border-top: 4px solid var(--navy); padding: 13px; box-shadow: 3px 4px 0 rgba(7,27,43,.07); }
.stat-card.coral { border-top-color: var(--coral); }
.stat-card span, .eyebrow { display: block; color: var(--teal-dark); font-size: 9px; font-weight: 1000; letter-spacing: .04em; }
.stat-card strong, .metric { display: block; margin-top: 5px; font-size: clamp(17px, 4.4vw, 28px); font-weight: 1000; letter-spacing: -.05em; }
.tactical-note { position: relative; margin-top: 10px; padding: 14px 13px 10px; background: #e8f6f4; border-left: 5px solid var(--teal); }
.tactical-note p { margin: 5px 0 0; font-size: 11px; font-weight: 750; line-height: 1.6; }
.manga-label { display: inline-block; padding: 3px 7px; background: var(--navy); color: white; font-size: 8px; font-weight: 1000; letter-spacing: .1em; transform: rotate(-1deg); }

.page-intro { position: relative; min-height: 190px; overflow: hidden; margin: -14px -14px 16px; padding: 30px 42% 25px 20px; background: var(--navy); color: white; border-bottom: 6px solid var(--teal); }
.page-intro::after { content: ""; position: absolute; inset: 0; opacity: .13; background: repeating-linear-gradient(160deg, transparent 0 20px, white 21px 22px, transparent 23px 40px); }
.page-intro > div { position: relative; z-index: 2; }
.page-intro h1 { font-size: 38px; }
.page-intro p { max-width: 420px; margin: 0; color: #cddce1; font-size: 11px; line-height: 1.65; }
.page-intro img { position: absolute; right: 1%; bottom: -18%; z-index: 1; width: 40%; height: 125%; object-fit: contain; object-position: bottom; filter: drop-shadow(-8px 5px 0 rgba(0,0,0,.2)); }
.record-intro { border-bottom-color: var(--coral); }
.analysis-intro { background: linear-gradient(135deg, var(--navy), #123b4c); border-bottom-color: var(--gold); }
.settings-intro { min-height: 160px; padding-right: 100px; border-bottom-color: var(--line); }
.settings-gear { position: absolute; right: 28px; top: 42px; z-index: 2; color: var(--teal); font-size: 68px; }

.race-path { display: flex; align-items: center; gap: 5px; overflow: hidden; margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 850; }
.race-path span { white-space: nowrap; }
.race-path b { color: var(--teal-dark); }
.event-banner { position: relative; overflow: hidden; padding: 16px 14px; background: var(--navy); color: white; border-bottom: 5px solid var(--teal); }
.event-banner::after { content: ""; position: absolute; right: -20px; top: -60px; width: 150px; height: 200px; border: 22px solid rgba(255,255,255,.045); transform: rotate(25deg); }
.event-banner .grade { position: relative; z-index: 1; }
.event-banner h1 { position: relative; z-index: 1; margin: 9px 0 7px; max-width: 82%; font-size: clamp(21px, 5vw, 31px); line-height: 1.2; letter-spacing: -.05em; }
.event-banner p { position: relative; z-index: 1; margin: 0; color: #c9dade; font-size: 10px; }
.event-banner a { position: absolute; right: 11px; bottom: 12px; z-index: 2; color: #8ce7de; font-size: 9px; font-weight: 900; text-decoration: none; }
.racechips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 10px; }
.racechip { position: relative; min-height: 42px; border: 1px solid var(--line); background: white; color: var(--navy); font-size: 12px; font-weight: 1000; }
.racechip.active { border: 2px solid var(--navy); background: var(--mint); box-shadow: 3px 3px 0 var(--teal); }
.racechip.closed { border-color: #b4bfc3; background: #dfe4e5; color: #7d898e; box-shadow: none; }
.racechip.closed.active { border-color: #66757c; background: #cbd2d4; color: #39484f; box-shadow: 3px 3px 0 #89969b; }
.racechip.confirmed::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; }
.raceboard { margin-top: 10px; border-top-width: 5px; }
.raceheadline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.racename { margin-top: 5px; font-size: 20px; font-weight: 1000; letter-spacing: -.045em; }
.tiny, .muted, .footnote { color: var(--muted); font-size: 10px; line-height: 1.55; }
.raceclock { flex: 0 0 145px; padding: 9px; border: 1px solid var(--line); background: #edf1f2; text-align: center; }
.raceclock span { display: block; font-size: 9px; font-weight: 1000; }
.raceclock b { display: block; margin-top: 2px; font-size: 11px; }
.raceclock.selling { border-color: #8fd8c5; background: var(--good); color: #126447; }
.raceclock.closed { background: #e1e5e6; color: #6a777d; }
.raceclock.confirmed { background: var(--mint); color: var(--teal-dark); }
.raceclock.waiting { background: var(--warn); color: #765618; }
.boats { display: grid; gap: 6px; margin-top: 12px; }
.boat { display: grid; grid-template-columns: 43px 1fr 72px; gap: 8px; align-items: center; min-height: 57px; padding: 6px; border: 1px solid var(--soft-line); background: #fbfdfd; text-decoration: none; color: inherit; }
.boat:active { background: var(--mint); }
.num { display: grid; place-items: center; height: 43px; border: 1px solid rgba(0,0,0,.12); font-size: 18px; font-weight: 1000; }
.b1 { background: white; color: #111; border: 1px solid #bac4c7; }
.b2 { background: #33383d; color: white; }
.b3 { background: #d74449; color: white; }
.b4 { background: #376ed0; color: white; }
.b5 { background: #f0cf40; color: #171717; }
.b6 { background: #41a56b; color: white; }
.racerlinkhint { margin-top: 2px; color: var(--teal-dark); font-size: 8px; font-weight: 1000; }
.officialmenu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 10px; }
.officiallink { display: block; min-width: 0; padding: 9px 6px; border: 1px solid var(--line); background: #f4f9f9; text-align: center; text-decoration: none; }
.officiallink span { display: block; color: var(--muted); font-size: 8px; }
.officiallink b { display: block; margin-top: 2px; color: var(--navy); font-size: 9px; }
.source-note { margin-top: 8px; padding-left: 8px; border-left: 3px solid var(--teal); color: var(--muted); font-size: 9px; line-height: 1.5; }

.notice { padding: 10px 11px; border: 1px solid var(--soft-line); background: #f3f7f8; font-size: 11px; line-height: 1.55; }
.notice.good { border-color: #b5dfcd; background: var(--good); }
.notice.warn { border-color: #ead29b; background: var(--warn); }
.notice.bad { border-color: #edc0bd; background: var(--bad); }
.data-source { display: inline-block; margin-left: 5px; padding: 2px 5px; background: white; color: var(--teal-dark); font-size: 8px; font-weight: 1000; }
.resultboard details { margin-top: 6px; padding-top: 5px; border-top: 1px solid #b5dfcd; }

.betdesk { border-top-color: var(--teal); }
.bettypebar { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 9px; scrollbar-width: none; }
.bettypebar::-webkit-scrollbar { display: none; }
.bettypebtn { flex: 0 0 auto; min-height: 39px; padding: 8px 12px; border: 1px solid var(--line); background: white; color: var(--navy); font-size: 11px; font-weight: 1000; }
.bettypebtn.active { border-color: var(--navy); background: var(--navy); color: white; box-shadow: 3px 3px 0 var(--teal); }
.bet-tabs { display: grid; gap: 5px; margin: 9px 0; padding: 4px; background: #e7eeef; }
.bet-tab { min-height: 38px; border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 900; }
.bet-tab.active { background: white; color: var(--navy); box-shadow: 2px 2px 0 rgba(7,27,43,.09); }
.rank { margin: 11px 0; }
.rank h3 { margin: 0 0 6px; color: var(--navy); font-size: 11px; }
.betgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; }
.pick { min-height: 44px; border: 2px solid transparent; font-size: 16px; font-weight: 1000; }
.pick.sel { border-color: var(--navy); outline: 3px solid var(--teal); transform: translateY(-1px); }
.pick.dim { opacity: .25; }
.betguide { margin-bottom: 8px; }
.inline-official { display: inline-block; margin-top: 5px; color: var(--teal-dark); font-size: 10px; font-weight: 900; }
.odds-now { width: 100%; margin: 8px 0 5px; padding: 10px; border: 1px solid var(--teal); border-radius: 5px; background: white; text-align: center; text-decoration: none; }
.added-notice { overflow: hidden; max-height: 0; margin-top: 0; padding: 0 9px; opacity: 0; color: var(--teal-dark); font-size: 10px; font-weight: 900; transition: .2s ease; }
.added-notice.show, .added-notice.duplicate { max-height: 52px; margin-top: 9px; padding: 9px; opacity: 1; border-left: 4px solid var(--teal); background: var(--mint); }
.added-notice.duplicate { border-left-color: var(--gold); background: var(--warn); color: #74540d; }
.cart-title > div { min-width: 0; }
.cart-title h2 { margin: 0; }
.cart-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; }
.cart { display: grid; gap: 6px; }
.cartrow { display: grid; grid-template-columns: 48px 58px 1fr 60px 30px; gap: 4px; align-items: center; padding: 6px; border: 1px solid var(--soft-line); background: white; }
.cartrow input { width: 100%; min-width: 0; min-height: 36px; border: 1px solid var(--line); padding: 4px; text-align: center; }
.odds-input { display: grid; gap: 2px; min-width: 0; }
.odds-input small { color: var(--muted); font-size: 6px; text-align: center; white-space: nowrap; }
.cart-tools { display: flex; align-items: center; gap: 4px; overflow-x: auto; margin: 7px 0; padding-bottom: 2px; }
.cart-tools span { flex: 0 0 auto; color: var(--muted); font-size: 8px; font-weight: 900; }
.cart-tools button { flex: 0 0 auto; min-height: 30px; border: 1px solid var(--line); border-radius: 4px; padding: 4px 7px; background: white; color: var(--navy); font-size: 8px; font-weight: 900; }
.cart-tools button.clear { border-color: #efc3bf; color: #9c3d36; }
.tickettype, .bettype { color: var(--teal-dark); font-size: 8px; font-weight: 1000; }
.xbtn { height: 31px; border: 0; background: #edf1f2; }

.btn { min-height: 45px; border: 0; padding: 10px 13px; font-weight: 1000; }
.btn.primary { background: var(--navy); color: white; box-shadow: 4px 4px 0 var(--teal); }
.btn.teal { background: var(--teal); color: white; box-shadow: 4px 4px 0 var(--navy); }
.btn.secondary { border: 1px solid var(--line); background: #f5f8f8; color: var(--navy); }
.btn.danger { border: 1px solid #e5b8b5; background: var(--bad); color: #8e3733; }
.btn.ghost { border: 1px solid #8da2aa; background: transparent; color: inherit; }
.coral-btn { background: var(--coral); color: white; box-shadow: 4px 4px 0 var(--navy); }
.full { width: 100%; }
.link { display: block; padding: 10px; border: 1px solid var(--line); background: #f5f9f9; color: var(--teal-dark); text-align: center; text-decoration: none; font-size: 10px; font-weight: 900; }
.pending-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.pending-result-actions .btn { display: grid; place-items: center; min-width: 0; padding: 8px 5px; text-align: center; text-decoration: none; font-size: 9px; }
.instant-result > p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.instant-result .btn + .btn { margin-top: 8px; }

.record-list, .analysis-list { display: grid; gap: 10px; }
.rec { display: grid; gap: 8px; border-top-color: var(--coral); }
.venuehead { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.status { display: inline-block; padding: 4px 7px; background: #e8edee; color: var(--muted); font-size: 8px; font-weight: 1000; white-space: nowrap; }
.status.on { background: var(--mint); color: var(--teal-dark); }
.status.off { background: #e7ebec; color: #69787e; }
.betreceipt { border: 1px solid var(--line); background: #f6fafa; padding: 9px; }
.betreceipt summary { cursor: pointer; color: var(--navy); font-size: 11px; font-weight: 1000; }
.betreceipt summary span { margin-left: 5px; color: var(--muted); font-size: 8px; }
.betlines { display: grid; gap: 5px; max-height: 250px; overflow: auto; margin-top: 7px; }
.betline { display: grid; grid-template-columns: 48px 1fr auto; gap: 6px; padding: 7px; border: 1px solid var(--soft-line); background: white; }
.betcombo { font-size: 16px; }
.betnames { grid-column: 1 / -1; color: var(--muted); font-size: 8px; line-height: 1.45; }
.recgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 10px; }
.result { font-size: 14px; font-weight: 1000; }
.reward { color: #176d50; font-size: 11px; font-weight: 1000; }
.analysis-list .card { position: relative; border-top-width: 1px; border-left: 5px solid var(--teal); }
.analysis-list .card p { margin: 5px 0 0; }
.reward-route-panel { display: grid; gap: 10px; overflow: hidden; border-top-color: var(--coral); }
.reward-route-summary { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }
.today-challenge { display: grid; align-content: center; min-height: 115px; padding: 14px; border: 2px dashed #aebcc1; background: #f3f6f7; }
.today-challenge.selected { border-style: solid; border-color: var(--teal); background: linear-gradient(135deg, #e9f7f2, #f8fcfb); }
.today-challenge > span, .reward-score span { color: var(--coral); font-size: 8px; font-weight: 1000; letter-spacing: .1em; }
.today-challenge > b { margin-top: 5px; font-size: 18px; }
.today-challenge > small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.today-challenge .btn { margin-top: 9px; }
.reward-score { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.reward-score > div { display: grid; place-items: center; padding: 10px 5px; background: var(--navy); color: white; text-align: center; }
.reward-score span { color: var(--gold); }
.reward-score b { font-size: 28px; line-height: 1; }
.reward-score small { color: #c8d4d8; font-size: 8px; }
.defense-stamp-rail { padding: 12px; border: 1px solid var(--line); background: #f8fbfb; }
.stamp-copy { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 9px; font-size: 9px; }
.stamp-copy span { color: var(--muted); }
.stamp-row, .modal-stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stamp-row i, .modal-stamps i { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 2px solid #c5d0d3; border-radius: 50%; background: white; color: #9eabad; font-style: normal; }
.stamp-row i.on, .modal-stamps i.on { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 2px 2px 0 var(--navy); }
.stamp-row i span { font-size: 16px; font-weight: 1000; }
.stamp-row i small { position: absolute; right: -2px; bottom: -3px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--navy); color: white; font-size: 7px; }
.reward-wallet { display: grid; gap: 8px; }
.wallet-title { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.wallet-title span { color: var(--muted); font-size: 9px; }
.partner-wait { border-left: 5px solid var(--gold); background: #fff9e9; }
.partner-reward-card { padding: 13px; border: 2px solid var(--navy); background: linear-gradient(145deg, #fff, #edf8f5); box-shadow: 4px 4px 0 rgba(5,35,62,.12); }
.partner-label { display: block; color: var(--coral); font-size: 7px; font-weight: 1000; letter-spacing: .12em; }
.partner-reward-card > small { color: var(--muted); font-size: 9px; }
.partner-reward-card h3 { margin: 5px 0; font-size: 17px; }
.partner-reward-card p, .partner-reward-card details { color: var(--muted); font-size: 9px; line-height: 1.55; }
.reward-code { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 9px 0; padding: 9px; border: 1px dashed var(--teal); background: white; }
.reward-code span { color: var(--muted); font-size: 8px; }
.reward-code strong { color: var(--teal-dark); letter-spacing: .08em; }
.reward-claim-actions { display: grid; gap: 6px; margin: 9px 0; }
.reward-copy { justify-self: end; }
.challenge-select { display: flex; gap: 10px; margin: 11px 0; padding: 12px; border: 2px solid var(--coral); background: #fff6f3; cursor: pointer; }
.challenge-select input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--coral); }
.challenge-select span { display: grid; gap: 4px; }
.challenge-select b { color: var(--navy); font-size: 12px; }
.challenge-select small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.challenge-taken { border-left: 5px solid var(--navy); }
.challenge-record { display: grid; gap: 4px; padding: 11px; border-left: 6px solid #aab5b8; background: #f1f4f5; }
.challenge-record > span { font-size: 8px; font-weight: 1000; letter-spacing: .1em; }
.challenge-record > small { color: var(--muted); font-size: 9px; }
.challenge-record.double { border-color: var(--coral); background: #fff1ed; }
.challenge-record.double > span { color: var(--coral); }
.challenge-record.defended { border-color: var(--teal); background: #eaf7f2; }
.challenge-record.defended > span { color: var(--teal-dark); }
.challenge-record .btn { margin-top: 5px; }
.double-win-mini, .defense-mini { display: grid; gap: 3px; margin: 8px 0; padding: 10px; border-left: 5px solid var(--coral); background: #fff1ed; }
.defense-mini { border-color: var(--teal); background: #eaf7f2; }
.double-win-mini span, .defense-mini span { color: var(--muted); font-size: 9px; }
.reward-celebration { text-align: center; }
.celebration-mark { display: grid; place-items: center; width: 78px; height: 78px; margin: 10px auto; border: 5px solid var(--coral); border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 38px; font-weight: 1000; box-shadow: 5px 5px 0 var(--coral); transform: rotate(-5deg); }
.celebration-mark.shield { border-color: var(--teal); box-shadow: 5px 5px 0 var(--teal); font-size: 30px; }
.reward-celebration > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.reward-celebration .partner-reward-card { margin: 12px 0; text-align: left; }
.modal-stamps { margin: 12px 0; }
.modal-stamps i { font-size: 10px; font-weight: 1000; }
.reward-arrived .btn { margin-top: 8px; }

.settings-panel { border-top-color: var(--coral); }
.safety-title > span { color: var(--coral); font-size: 8px; font-weight: 1000; letter-spacing: .13em; }
.safety-title h2 { margin: 5px 0 8px; font-size: 19px; }
.settings-panel > p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.sync-detail { margin-top: 10px; }
.action-stack { display: grid; gap: 7px; margin-top: 10px; }
.pilot-panel { border-top-color: var(--teal); }
.pilot-panel > p { margin-top: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.pilot-consent { margin: 10px 0; border-color: var(--teal); background: #edf8f5; }
.pilot-status { padding: 10px; border: 1px solid var(--line); background: #f5f8f9; color: var(--muted); font-size: 9px; line-height: 1.65; }
.pilot-good { color: #176d50; }
.pilot-warn { color: #8a6511; }
.pilot-error { color: #9a3f3a; }
.pilot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.pilot-actions .btn:last-child { grid-column: 1 / -1; }
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top-color: var(--teal); }
.policy-grid > div { padding: 10px; background: #f2f8f7; border-left: 4px solid var(--teal); }
.policy-grid b { color: var(--coral); font-size: 9px; }
.policy-grid h3 { margin: 4px 0; font-size: 13px; }
.policy-grid p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.official-wide { display: flex; justify-content: space-between; margin-top: 10px; padding: 13px; background: var(--navy); color: white; text-decoration: none; font-size: 11px; font-weight: 900; }
.official-wide span { color: var(--teal); }
.footnote { margin: 9px 3px; }

.field { display: grid; gap: 5px; margin: 10px 0; }
.field label { font-size: 10px; font-weight: 900; }
.field input, .field select, .field textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); padding: 9px; background: white; }
.field textarea { min-height: 74px; }
.slider { width: 100%; accent-color: var(--teal); }
.big { color: var(--navy); text-align: center; font-size: 26px; font-weight: 1000; }

.bottom-nav { position: fixed; left: 50%; bottom: 0; z-index: 50; transform: translateX(-50%); width: min(980px, 100%); display: grid; grid-template-columns: repeat(6, 1fr); padding: 6px 4px max(8px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 3px solid var(--navy); box-shadow: 0 -8px 25px rgba(7,27,43,.12); }
.nav { min-width: 0; border: 0; padding: 5px 1px; background: transparent; color: #718087; }
.nav b { display: block; height: 22px; font-size: 18px; line-height: 22px; }
.nav span { display: block; font-size: 9px; font-weight: 900; }
.nav.active { color: var(--navy); background: var(--mint); box-shadow: inset 0 -3px var(--teal); }

.modal-bg { position: fixed; inset: 0; z-index: 70; display: none; align-items: flex-end; padding: 12px; background: rgba(4,18,28,.75); }
.modal-bg.show { display: flex; }
.modal { width: min(650px, 100%); max-height: 89vh; overflow: auto; margin: auto; padding: 18px; background: var(--paper); border-top: 6px solid var(--teal); box-shadow: 8px 8px 0 rgba(0,0,0,.25); }
.modal h2 { margin-top: 0; letter-spacing: -.05em; }

.onboard { position: fixed; inset: 0; z-index: 100; display: none; overflow: auto; padding: 14px; background: var(--navy); color: white; }
.onboard.show { display: block; }
.onboard-shell { width: min(720px, 100%); min-height: calc(100vh - 28px); margin: auto; display: flex; flex-direction: column; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(145deg, #061824, #0d374b); }
.onboard-shell::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(158deg, transparent 0 18px, white 19px 20px, transparent 21px 39px); }
.onboard-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 9px; padding: 14px; color: #b4d8dc; font-size: 9px; font-weight: 1000; letter-spacing: .1em; }
.onboard-top .brand-mark { width: 37px; height: 37px; flex-basis: 37px; font-size: 21px; }
.onboard-panel { position: relative; z-index: 2; display: none; flex: 1; padding: 24px 20px 72px; }
.onboard-panel.active { display: flex; flex-direction: column; animation: screen-in .25s ease both; }
.onboard-copy { position: relative; z-index: 2; max-width: 520px; }
.onboard-copy h1 { font-size: clamp(35px, 9vw, 57px); }
.onboard-copy p { max-width: 500px; color: #c7d9df; font-size: 12px; line-height: 1.75; }
.onboard-panel[data-onboard="0"] img { position: absolute; right: -2%; bottom: 34px; width: 55%; height: 65%; object-fit: contain; object-position: bottom right; filter: drop-shadow(-12px 8px 0 rgba(0,0,0,.2)); }
.onboard-next { position: absolute; left: 20px; bottom: 34px; z-index: 3; width: min(310px, 52%); }
.onboard-next span { float: right; color: var(--gold); }
.onboard-route { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 22px; }
.onboard-route div { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 12px; background: rgba(255,255,255,.08); border-left: 5px solid var(--teal); }
.onboard-route b { color: var(--gold); font-size: 20px; }
.onboard-route span { font-size: 11px; font-weight: 900; }
.onboard-actions { display: grid; grid-template-columns: 1fr 1.5fr; gap: 9px; margin-top: auto; padding-top: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 13px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.check input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--teal); }
.check b, .check small { display: block; }
.check b { font-size: 11px; line-height: 1.45; }
.check small { margin-top: 3px; color: #a9c1c9; font-size: 9px; line-height: 1.45; }
.onboard-dots { position: absolute; left: 50%; bottom: 16px; z-index: 5; display: flex; gap: 7px; transform: translateX(-50%); }
.onboard-dots i { width: 17px; height: 3px; background: rgba(255,255,255,.25); }
.onboard-dots i.active { width: 31px; background: var(--teal); }

@media (min-width: 720px) {
  main { padding: 20px; }
  .hero-panel, .page-intro { margin-left: -20px; margin-right: -20px; }
  .venue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .all-venues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .deadline-rail { grid-auto-columns: minmax(220px, 30%); }
}

@media (max-width: 620px) {
  .hero-panel { min-height: 285px; padding: 24px 41% 20px 17px; }
  .hero-copy h1 { font-size: 31px; }
  .hero-copy p { font-size: 11px; }
  .hero-character { width: 51%; right: -6%; }
  .three-stats { grid-template-columns: 1fr 1fr; }
  .three-stats .stat-card:first-child { grid-column: 1 / -1; }
  .policy-grid { grid-template-columns: 1fr; }
  .officialmenu { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 390px) {
  .brand-copy small { display: none; }
  .wallet { min-width: 108px; }
  .hero-panel { padding-right: 37%; }
  .hero-character { width: 49%; right: -10%; opacity: .92; }
  .venue-card-main { min-height: 145px; padding: 9px; }
  .event-title { margin-top: 7px; }
  .venue-next { margin-left: -9px; margin-right: -9px; margin-bottom: -9px; }
  .route-guide span { font-size: 7px; }
  .route-guide b { width: 17px; height: 17px; }
  .onboard-panel[data-onboard="0"] img { opacity: .72; right: -10%; width: 66%; }
  .onboard-next { width: calc(100% - 40px); }
  .onboard-route { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* v3.3 — 添付コンセプトを基準にした全画面共通UI */
:root {
  --navy: #05233e;
  --navy-2: #0b3557;
  --teal: #04b7c5;
  --teal-dark: #008d9a;
  --mint: #e5f9fb;
  --coral: #f26b65;
  --gold: #d9a94c;
  --paper: #f4f7fa;
  --ink: #082844;
  --muted: #718398;
  --line: #cad6e1;
  --soft-line: #e1e8ee;
  --shadow: 0 2px 9px rgba(5, 35, 62, .11);
  --radius: 9px;
}

html { background: var(--navy); }
body {
  background: #e9eef3;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
.app-shell { max-width: 720px; background: rgba(247, 249, 252, .98); padding-bottom: 88px; }
main { padding: 14px; }
body[data-screen="home"] main { padding: 0 12px 20px; }
body[data-screen="home"] .topbar { display: none; }

.topbar {
  padding: 9px 14px;
  background: rgba(255,255,255,.98);
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 14px rgba(5,35,62,.08);
}
.brand-mark { border-color: var(--navy); text-shadow: none; }
.brand-copy small { color: var(--teal-dark); }
.wallet { background: var(--navy); color: white; border-left-color: var(--teal); border-radius: 4px; }
.wallet { border-top: 0; border-right: 0; border-bottom: 0; font: inherit; cursor: pointer; }
.wallet span { color: #77e8ef; }

.home-masthead {
  position: relative;
  height: 285px;
  overflow: hidden;
  isolation: isolate;
  margin: 0 -12px;
  background: white;
  border-bottom: 1px solid #d6e1eb;
}
.home-masthead::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.88) 26%, rgba(255,255,255,.1) 62%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.home-masthead::after {
  content: "";
  position: absolute;
  left: -7%; right: 47%; bottom: 12px;
  z-index: 1;
  height: 14px;
  background: var(--teal);
  opacity: .15;
  transform: skewX(-28deg) rotate(-3deg);
}
.masthead-character {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transform: translateX(5%);
}
.masthead-brand {
  position: absolute;
  left: 24px;
  top: 28px;
  z-index: 3;
  color: var(--navy);
}
.masthead-brand > strong { display: block; font-size: 31px; line-height: .95; font-weight: 1000; letter-spacing: -.08em; }
.masthead-brand > small { display: block; margin: 7px 0 9px 3px; font-size: 9px; font-weight: 1000; letter-spacing: .25em; }
.masthead-brand > div { display: flex; align-items: center; gap: 6px; }
.masthead-brand > div span,
.masthead-brand > div b { padding: 4px 9px; border-radius: 20px; font-size: 8px; letter-spacing: .04em; }
.masthead-brand > div span { background: var(--teal); color: white; }
.masthead-brand > div b { border: 1px solid var(--coral); background: rgba(255,255,255,.84); color: var(--coral); }
.masthead-wallet {
  position: absolute;
  left: 22px;
  bottom: 23px;
  z-index: 3;
  width: 222px;
  min-height: 79px;
  padding: 12px 16px;
  color: white;
  background: linear-gradient(135deg, #05233e, #06375c);
  border: 1px solid #315571;
  border-radius: 11px;
  box-shadow: 0 5px 14px rgba(5,35,62,.2);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.masthead-wallet > span { display: flex; align-items: center; gap: 7px; color: #e8f5f8; font-size: 11px; font-weight: 900; }
.info-dot { display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: -3px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-style: normal; }
.masthead-wallet > strong { display: block; margin-top: 4px; font-size: 31px; line-height: 1; letter-spacing: -.04em; text-align: center; }
.masthead-wallet > small { display: block; margin-top: 5px; color: #81e5eb; font-size: 7px; font-weight: 900; text-align: right; letter-spacing: .05em; }
.masthead-wallet:active, .wallet:active { transform: translateY(1px); }
.mini-medal {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #442c07;
  background: radial-gradient(circle at 35% 30%, #ffe7a4, #d49a3d 58%, #7b4d11 100%);
  border: 2px solid #8b5e18;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 1000;
}
.masthead-callout {
  position: absolute;
  left: 24px;
  top: 116px;
  z-index: 3;
  min-width: 123px;
  padding: 10px 12px;
  background: rgba(255,255,255,.94);
  border: 1px solid #d8e1e9;
  border-radius: 5px;
  box-shadow: 0 3px 9px rgba(5,35,62,.12);
  transform: rotate(-1deg);
}
.masthead-callout::after { content: ""; position: absolute; right: -11px; top: 27px; border: 7px solid transparent; border-left-color: white; }
.masthead-callout span,
.masthead-callout strong { display: block; font-size: 11px; }
.masthead-callout strong { margin-top: 3px; font-size: 15px; }
.masthead-callout em { color: var(--teal-dark); font-style: normal; }

.home-titlebar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 0 -12px;
  padding: 17px 20px 13px;
  background: white;
}
.home-titlebar h1 { margin: 0; font-size: clamp(37px, 10vw, 54px); line-height: 1; letter-spacing: -.09em; }
.home-titlebar h1 span { color: var(--teal); }
.home-date { padding-bottom: 3px; text-align: right; }
.home-date strong { display: block; font-size: 13px; letter-spacing: .04em; }
.home-date span { display: block; margin-top: 8px; color: var(--teal-dark); font-size: 9px; font-weight: 900; white-space: nowrap; }
.home-command {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 -12px;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 2px solid var(--navy);
}
.home-command button,
.home-command a {
  min-width: 0;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid var(--soft-line);
  padding: 7px 3px;
  background: white;
  color: var(--navy);
  text-decoration: none;
}
.home-command b { font-size: 19px; line-height: 1; }
.home-command span { font-size: 10px; font-weight: 900; white-space: nowrap; }
.home-command button.active { background: var(--navy); color: white; }
.home-command button.active b { color: #7ceaf0; }
.home-sync-details { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.home-sync-details summary { cursor: pointer; text-align: right; }
.home-sync-details .sync-strip { margin-top: 6px; }

.home-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 0 8px; overflow: visible; }
.home-filters .filter { width: 100%; min-width: 0; padding: 7px 3px; border-radius: 7px; font-size: 10px; }
.filter { border-radius: 7px; box-shadow: 0 1px 3px rgba(5,35,62,.06); }
.filter.active { border-color: var(--teal); background: var(--teal); color: white; box-shadow: 0 2px 6px rgba(4,183,197,.24); }
.route-guide.home-route {
  justify-content: flex-start;
  gap: 7px;
  margin: 0 0 8px;
  padding: 5px 4px 8px;
  background: transparent;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
}
.route-guide.home-route span { color: var(--navy); font-size: 9px; }
.route-guide.home-route span:first-child { color: var(--teal-dark); }
.route-guide.home-route i { width: auto; height: auto; background: transparent; color: var(--muted); font-size: 11px; font-style: normal; }

.venue-grid.home-venue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.venue-grid.all-venues { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.venue-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.venue-card.compact { min-width: 0; background: white; }
.venue-card.compact.grade-pg1,
.venue-card.compact.grade-g1,
.venue-card.compact.grade-sg { border-color: #d767d6; box-shadow: 0 0 0 1px rgba(215,103,214,.4), var(--shadow); }
.venue-card.compact .venue-card-main {
  min-height: 196px;
  display: flex;
  flex-direction: column;
  padding: 8px 7px 0;
  border-radius: inherit;
  text-align: center;
}
.venue-card.compact .venue-compact-marker { height: 27px; display: flex; align-items: flex-start; }
.venue-time-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #f2f5f7;
  color: var(--navy);
  font-size: 17px;
  font-weight: 1000;
}
.venue-time-icon.night { background: var(--navy); color: #ffd54e; }
.venue-time-icon.day { background: #fff5e8; color: #f27727; }
.venue-time-icon.finished,
.venue-time-icon.off { border: 1px solid #aeb9c4; background: white; color: #8a98a6; font-size: 13px; }
.venue-card.compact .grade { min-width: 39px; min-height: 22px; padding: 3px 7px; border-radius: 12px; transform: none; }
.venue-compact-name { margin-top: -4px; }
.venue-compact-name strong { display: block; font-size: 18px; line-height: 1.05; font-weight: 1000; letter-spacing: -.08em; }
.venue-compact-name small { display: block; margin-top: 4px; font-size: 6px; font-weight: 1000; letter-spacing: .14em; }
.venue-dayline { min-height: 26px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 7px; }
.venue-dayline b { font-size: 9px; white-space: nowrap; }
.venue-card.compact .event-title { height: 2.8em; margin: 3px 0 4px; font-size: 9px; line-height: 1.4; }
.venue-card.compact .event-meta { justify-content: center; min-height: 18px; font-size: 8px; white-space: nowrap; }
.venue-card.compact .venue-next {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr auto 10px;
  align-items: center;
  gap: 2px;
  margin: auto -7px 0;
  padding: 7px 6px;
  border-top: 1px solid var(--soft-line);
  background: transparent;
  color: var(--navy);
  font-size: 8px;
}
.venue-card.compact .venue-next b { font-size: 10px; }
.venue-card.compact .venue-next strong { color: var(--navy); font-size: 8px; white-space: nowrap; }
.venue-card.compact .venue-next i { color: #079dd7; font-size: 18px; font-style: normal; }
.favorite-star {
  position: absolute;
  right: 5px;
  top: 5px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #617c99;
  font-size: 25px;
  line-height: 1;
}
.favorite-star.selected { color: #e5aa33; }
.venue-card.closed,
.venue-card.inactive { border-color: #c7d0d9; box-shadow: 0 2px 6px rgba(5,35,62,.07); filter: grayscale(.45); }
.venue-card.closed { opacity: .68; }
.venue-card.inactive { opacity: .45; }
.venue-card.closed .venue-next,
.venue-card.inactive .venue-next { background: transparent; }
.empty-home { grid-column: 1 / -1; }

.section-head { margin-top: 24px; }
.section-number { border-radius: 3px; transform: none; }
.stat-card, .card, .panel { border-radius: var(--radius); box-shadow: var(--shadow); }
.btn, .bettypebtn, .bet-tab, .racechip, .officiallink, .link { border-radius: 7px; }
.btn.primary, .btn.teal, .coral-btn { box-shadow: 0 3px 8px rgba(5,35,62,.18); }

.page-intro {
  min-height: 185px;
  background: white;
  color: var(--navy);
  border-bottom: 5px solid var(--teal);
  box-shadow: 0 4px 12px rgba(5,35,62,.08);
}
.page-intro::after { opacity: .08; background: repeating-linear-gradient(160deg, transparent 0 20px, var(--teal) 21px 22px, transparent 23px 40px); }
.page-intro .kicker { color: var(--teal-dark); }
.page-intro p { color: var(--muted); }
.page-intro img {
  right: -3%;
  bottom: -35%;
  width: 50%;
  height: 150%;
  object-fit: cover;
  object-position: 70% 28%;
  mix-blend-mode: multiply;
  filter: none;
}
.record-intro { border-bottom-color: var(--coral); }
.analysis-intro { background: white; border-bottom-color: var(--gold); }
.settings-intro { background: white; }
.event-banner { border-radius: 9px 9px 0 0; }
.racechips { gap: 6px; }
.racechip.active { border-color: var(--teal); background: var(--mint); box-shadow: 0 2px 5px rgba(4,183,197,.24); }
.racechip.closed.active { box-shadow: 0 2px 5px rgba(5,35,62,.12); }
.boat, .betreceipt, .cartrow, .officiallink, .notice, .sync-strip, .sync-detail { border-radius: 6px; }

.bottom-nav {
  padding: 5px 4px max(7px, env(safe-area-inset-bottom));
  background: rgba(5,35,62,.99);
  border-top: 0;
  box-shadow: 0 -5px 18px rgba(5,35,62,.2);
}
.nav { min-height: 55px; color: #d7e1e8; }
.nav b { color: white; }
.nav.active { background: var(--teal); color: white; box-shadow: none; border-radius: 3px; }
.nav.active b { color: white; }

.onboard { background: #eaf0f5; color: var(--navy); }
.onboard-shell { border-color: var(--line); background: white; box-shadow: 0 8px 26px rgba(5,35,62,.16); }
.onboard-shell::before { opacity: .07; background: repeating-linear-gradient(158deg, transparent 0 18px, var(--teal) 19px 20px, transparent 21px 39px); }
.onboard-top { color: var(--teal-dark); }
.onboard-copy p { color: var(--muted); }
.onboard-copy h1 em { color: var(--teal-dark); }
.onboard-panel[data-onboard="0"] img { right: -8%; width: 68%; height: 73%; object-fit: cover; object-position: 73% 27%; mix-blend-mode: multiply; filter: none; }
.check { background: #f4f8fa; border-color: var(--line); }
.check small { color: var(--muted); }
.onboard-dots i { background: #c8d3dc; }
.onboard-dots i.active { background: var(--teal); }

.medal-topup .kicker { color: var(--teal-dark); }
.medal-topup h2 { margin: 7px 0 12px; color: var(--navy); font-size: 25px; }
.medal-topup > p { margin: 10px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.topup-balance { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 13px 15px; border-radius: 8px; background: var(--navy); color: white; }
.topup-balance span { font-size: 10px; font-weight: 900; }
.topup-balance strong { font-size: 29px; line-height: 1; }
.wallet-ledger { display: grid; gap: 5px; max-height: 280px; overflow: auto; margin: 8px 0 13px; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--soft-line); border-radius: 6px; background: white; }
.ledger-row span { display: grid; gap: 2px; color: var(--navy); font-size: 10px; font-weight: 900; }
.ledger-row small { color: var(--muted); font-size: 7px; font-weight: 700; }
.ledger-row b { font-size: 12px; white-space: nowrap; }
.ledger-row b.plus { color: var(--teal-dark); }
.ledger-row b.minus { color: var(--coral); }
.topup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.topup-grid button { min-height: 78px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 4px; background: white; color: var(--navy); box-shadow: 0 2px 7px rgba(5,35,62,.08); }
.topup-grid button:active { border-color: var(--teal); background: var(--mint); }
.topup-grid span, .topup-grid strong { display: block; }
.topup-grid span { color: var(--muted); font-size: 8px; }
.topup-grid strong { margin-top: 7px; font-size: 16px; }
.topup-policy { margin-bottom: 10px; }

.real-bet-dock {
  position: fixed; left: 50%; bottom: calc(69px + env(safe-area-inset-bottom)); z-index: 49;
  width: min(980px, 100%); transform: translateX(-50%); pointer-events: none;
  padding: 0 10px; text-align: right;
}
.real-bet-dock button {
  pointer-events: auto; min-width: 166px; border: 2px solid white; border-radius: 7px;
  padding: 7px 12px; background: var(--coral); color: white;
  box-shadow: 0 4px 14px rgba(7,27,43,.3); text-align: left;
}
.real-bet-dock span, .real-bet-dock strong { display: block; }
.real-bet-dock span { font-size: 7px; font-weight: 900; letter-spacing: .05em; opacity: .9; }
.real-bet-dock strong { margin-top: 1px; font-size: 12px; }
.real-bet-confirm .kicker { color: var(--coral); }
.real-bet-confirm > p, .real-bet-confirm > small { color: var(--muted); font-size: 10px; line-height: 1.65; }
.real-bet-warning { padding: 13px; border-left: 5px solid var(--coral); background: var(--bad); }
.real-bet-warning b { color: #9b2f28; }
.real-bet-warning p { margin: 6px 0 0; font-size: 10px; line-height: 1.6; }
.real-bet-actions { display: grid; gap: 8px; margin: 14px 0 10px; }
.real-cash-link { display: block; border: 1px solid var(--coral); padding: 12px; background: white; color: #a52e26; text-align: center; text-decoration: none; font-weight: 1000; }

.result-search-heading { margin-top: 22px; }
.result-search-panel { border-top-color: var(--teal); }
.result-search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 11px; }
.result-search-grid label { display: grid; gap: 4px; }
.result-search-grid label > span { color: var(--muted); font-size: 9px; font-weight: 900; }
.result-search-grid input, .result-search-grid select {
  width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 5px;
  padding: 8px; background: white; color: var(--ink);
}
.result-keyword { grid-column: 1 / -1; }
.result-archive-dates { display: flex; align-items: center; gap: 5px; overflow-x: auto; margin: -2px 0 10px; padding: 2px 0 5px; }
.result-archive-dates > span { flex: 0 0 auto; color: var(--muted); font-size: 8px; font-weight: 900; }
.result-archive-dates button { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 16px; padding: 5px 8px; background: white; color: var(--navy); font-size: 9px; font-weight: 900; }
.result-archive-dates small { margin-left: 4px; color: var(--teal-dark); font-size: 7px; }
.result-search-status { min-height: 30px; padding: 10px 2px 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.result-list-link { display: inline-block; margin-left: 5px; color: var(--teal-dark); font-weight: 900; }
.official-result-list { display: grid; gap: 10px; margin-top: 7px; }
.official-result-card { padding: 12px; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 7px; background: white; }
.official-result-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.official-result-head > div { display: flex; align-items: center; gap: 7px; }
.official-result-head > span { color: var(--muted); font-size: 9px; }
.official-result-event { margin: 6px 0 9px; color: var(--muted); font-size: 9px; }
.result-finish { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.result-place { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 5px; min-width: 0; padding: 6px; background: #f2f7f8; }
.result-place b { color: var(--muted); font-size: 7px; }
.result-place i { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 12px; font-style: normal; font-weight: 1000; }
.result-place span { overflow: hidden; font-size: 8px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.official-result-card details { margin: 9px 0; }
.official-result-card summary { color: var(--teal-dark); font-size: 9px; font-weight: 900; cursor: pointer; }
.result-payouts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 9px; margin-top: 8px; }
.result-payouts div { display: flex; justify-content: space-between; gap: 6px; padding: 5px 2px; border-bottom: 1px solid var(--soft-line); font-size: 8px; }
.result-payouts b { white-space: nowrap; }

@media (min-width: 720px) {
  body[data-screen="home"] main { padding-left: 18px; padding-right: 18px; }
  .home-masthead, .home-titlebar, .home-command { margin-left: -18px; margin-right: -18px; }
  .venue-grid.home-venue-grid { gap: 10px; }
  .venue-card.compact .venue-card-main { min-height: 210px; }
  .venue-compact-name strong { font-size: 23px; }
  .venue-card.compact .event-title { font-size: 10px; }
}

@media (max-width: 620px) {
  .home-masthead { height: 270px; }
  .masthead-brand { left: 18px; top: 24px; }
  .masthead-brand > strong { font-size: 27px; }
  .masthead-wallet { left: 16px; bottom: 17px; width: 205px; min-height: 73px; padding: 10px 13px; }
  .masthead-wallet > strong { font-size: 27px; }
  .masthead-callout { left: 18px; top: 106px; min-width: 116px; padding: 8px 9px; }
  .home-titlebar { padding-left: 17px; padding-right: 17px; }
  .home-command button, .home-command a { gap: 4px; }
  .home-command b { font-size: 17px; }
  .home-command span { font-size: 9px; }
  .page-intro { min-height: 170px; padding-right: 45%; }
  .page-intro img { width: 54%; }
}

@media (max-width: 390px) {
  .home-masthead { height: 255px; }
  .masthead-character { object-position: 53% 23%; transform: translateX(7%); }
  .masthead-brand { left: 15px; top: 20px; }
  .masthead-brand > strong { font-size: 24px; }
  .masthead-brand > small { margin: 5px 0 7px 2px; font-size: 7px; }
  .masthead-brand > div span, .masthead-brand > div b { padding: 3px 6px; font-size: 6px; }
  .masthead-wallet { left: 13px; bottom: 14px; width: 180px; min-height: 68px; padding: 9px 10px; }
  .masthead-wallet > span { font-size: 9px; }
  .masthead-wallet > strong { font-size: 24px; }
  .mini-medal { width: 21px; height: 21px; font-size: 12px; }
  .masthead-callout { left: 14px; top: 98px; min-width: 110px; }
  .masthead-callout span { font-size: 9px; }
  .masthead-callout strong { font-size: 12px; }
  .home-titlebar h1 { font-size: 37px; }
  .home-date strong { font-size: 10px; }
  .home-date span { font-size: 7px; }
  .home-filters { gap: 5px; }
  .home-filters .filter { font-size: 8px; }
  .route-guide.home-route { gap: 4px; }
  .route-guide.home-route span { font-size: 7px; }
  .venue-grid.home-venue-grid { gap: 5px; }
  .venue-card.compact .venue-card-main { min-height: 183px; padding-left: 5px; padding-right: 5px; }
  .venue-compact-name strong { font-size: 16px; }
  .venue-card.compact .event-title { font-size: 8px; }
  .venue-card.compact .event-meta { font-size: 7px; }
  .venue-card.compact .venue-next { margin-left: -5px; margin-right: -5px; padding-left: 4px; padding-right: 4px; }
  .venue-card.compact .venue-next strong { font-size: 7px; }
  .favorite-star { right: 3px; top: 4px; width: 24px; height: 24px; font-size: 21px; }
  .real-bet-dock button { min-width: 145px; padding: 6px 9px; }
  .result-place { grid-template-columns: auto auto; }
  .result-place span { grid-column: 1 / -1; }
}

/* v3.7 — 実利用向けの操作性・参考オッズ・モバイル補正 */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
.app-shell, main, .screen, #raceView { width: 100%; min-width: 0; max-width: 100%; }
.real-bet-dock { display: none !important; }

.race-path { max-width: 100%; overflow-x: auto; padding: 2px 1px 4px; scrollbar-width: none; }
.race-path::-webkit-scrollbar { display: none; }
.race-path-venue, .event-venue-switch, .race-venue-button {
  border: 1px solid currentColor; border-radius: 4px; padding: 3px 7px;
  background: transparent; color: inherit; font-weight: 1000;
}
.race-path-venue { flex: 0 0 auto; color: var(--teal-dark); }
.event-venue-switch { padding: 2px 6px; color: #fff; }
.race-venue-button { color: var(--teal-dark); white-space: nowrap; }
.event-banner, .raceboard, .betdesk { min-width: 0; max-width: 100%; }
.event-banner h1 { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.racechips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.racechip { width: 100%; min-width: 0; padding-left: 2px; padding-right: 2px; }
.raceheadline, .raceheadline > div { min-width: 0; }
.racename { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.racename span { min-width: 0; overflow-wrap: anywhere; }
.boat { grid-template-columns: 43px minmax(0, 1fr) 72px; min-width: 0; }
.boat > div { min-width: 0; }
.boat > div:nth-child(2) b { overflow-wrap: anywhere; }
.officialmenu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.officiallink { overflow: hidden; }
.officiallink b { overflow-wrap: anywhere; }

.betgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pick { width: 100%; min-width: 0; }
.pick.b1 {
  border: 2px solid #82939b;
  background: #fff;
  color: #111;
  box-shadow: inset 0 0 0 2px #fff, 0 2px 4px rgba(5, 35, 62, .18);
}
.pick.b1.sel {
  border-color: var(--navy);
  background: #fff;
  outline: 3px solid var(--teal);
  box-shadow: inset 0 0 0 2px #fff, 0 3px 7px rgba(4, 183, 197, .28);
}
.num.b1 { border: 2px solid #82939b; box-shadow: inset 0 0 0 2px #fff; }

.odds-snapshot { margin: 9px 0 6px; padding: 10px 11px; border-radius: 7px; }
.odds-snapshot.available { border: 1px solid #8bd2d8; border-left: 5px solid var(--teal); background: #edfafa; }
.odds-snapshot.pending { border: 1px solid #e2cf9b; border-left: 5px solid var(--gold); background: var(--warn); }
.odds-snapshot > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.odds-snapshot span { color: var(--teal-dark); font-size: 9px; font-weight: 1000; letter-spacing: .06em; }
.odds-snapshot strong { color: var(--navy); font-size: 12px; }
.odds-snapshot p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.odds-caution { padding: 7px 9px; border-left: 3px solid var(--coral); background: #fff5f4; color: #7b5551; font-size: 8px; font-weight: 750; line-height: 1.5; }
.cart-odds { display: grid; min-width: 0; min-height: 42px; align-content: center; padding: 4px 2px; border: 1px solid #8bd2d8; border-radius: 4px; background: #edfafa; text-align: center; }
.cart-odds b { color: var(--teal-dark); font-size: 11px; white-space: nowrap; }
.cart-odds small { color: var(--muted); font-size: 6px; white-space: nowrap; }

.venue-switcher > p { color: var(--muted); font-size: 10px; line-height: 1.6; }
.venue-switch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 12px 0; }
.venue-switch-card { min-width: 0; min-height: 86px; border: 1px solid var(--line); border-radius: 7px; padding: 9px; background: white; color: var(--navy); text-align: left; }
.venue-switch-card.current { border: 2px solid var(--teal); background: var(--mint); box-shadow: 2px 2px 0 rgba(4, 183, 197, .22); }
.venue-switch-card span, .venue-switch-card strong, .venue-switch-card small { display: block; }
.venue-switch-card span { color: var(--teal-dark); font-size: 7px; font-weight: 1000; letter-spacing: .06em; }
.venue-switch-card strong { margin-top: 4px; font-size: 17px; }
.venue-switch-card small { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 8px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }

.result-search-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.result-search-grid label, .result-search-grid input, .result-search-grid select { min-width: 0; max-width: 100%; }

@media (max-width: 620px) {
  .app-shell { padding-bottom: 122px; }
  .nav { min-height: 55px; padding-left: 0; padding-right: 0; }
  .nav b { font-size: 16px; }
  .nav span { font-size: 7px; white-space: nowrap; }
  .raceheadline { gap: 7px; }
  .raceclock { flex-basis: 106px; padding-left: 5px; padding-right: 5px; }
  .racename { font-size: 17px; }
  .boat { grid-template-columns: 43px minmax(0, 1fr) 64px; gap: 6px; }
  .officialmenu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-banner a { position: relative; right: auto; bottom: auto; display: inline-block; margin-top: 10px; }
  .event-banner p { padding-right: 0; }
  .cartrow { grid-template-columns: 43px 52px minmax(65px, 1fr) 68px 30px; }
  .cartrow input, .odds-input input { font-size: 16px; }
  .result-search-grid input, .result-search-grid select, .field input, .field select, .field textarea { font-size: 16px; }
  .reward-route-summary { grid-template-columns: 1fr; }
  .reward-score { grid-template-columns: 1fr 1fr; }
  .pilot-actions { grid-template-columns: 1fr; }
  .pilot-actions .btn:last-child { grid-column: auto; }
}

@media (max-width: 480px) {
  .result-search-grid { grid-template-columns: 1fr; }
  .result-keyword { grid-column: auto; }
  .raceheadline { display: grid; grid-template-columns: minmax(0, 1fr) 98px; }
  .raceclock { width: 98px; }
  .venue-switch-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 360px) {
  .nav span { font-size: 6px; }
  .cartrow { grid-template-columns: 39px 45px minmax(59px, 1fr) 62px 27px; gap: 3px; padding: 5px 3px; }
  .cart-odds b { font-size: 9px; }
}

/* v3.9.3 — PC小ウィンドウ・iPadでも操作を隠さないレスポンシブUI */
body { padding-right: 0; }
.app-shell {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: calc(112px + env(safe-area-inset-bottom));
}
.bottom-nav {
  left: 50%;
  width: min(720px, 100%);
  transform: translateX(-50%);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.real-bet-float {
  position: fixed;
  top: 44vh;
  right: max(8px, env(safe-area-inset-right));
  z-index: 55;
  width: 46px;
  min-height: 116px;
}
.real-bet-float button {
  display: flex;
  width: 46px;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 2px solid white;
  border-radius: 9px;
  padding: 6px 4px 9px;
  background: var(--coral);
  color: white;
  box-shadow: 0 6px 18px rgba(7,27,43,.35);
  cursor: grab;
 touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.real-bet-float button:active { cursor: grabbing; }
.real-bet-float.dragging { opacity: .88; transform: scale(1.04); }
.real-bet-grip {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  font-weight: 1000;
  line-height: 1;
}
.real-bet-float strong {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .08em;
  line-height: 1;
}
.real-bet-float b { font-size: 14px; line-height: 1; }

/* 低いウィンドウでもモーダル内を最後の操作までスクロールできる。 */
.modal {
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

@media (max-height: 680px) {
  .modal-bg { align-items: stretch; padding: 8px; }
  .modal {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
}

/* 744px = iPad mini縦向き相当。ここからPC同様の左ナビにする。 */
@media (min-width: 744px) {
  .app-shell {
    max-width: 1280px;
    padding-left: 92px;
    padding-bottom: 32px;
  }

  .bottom-nav {
    position: fixed;
    left: max(8px, calc((100vw - 1280px) / 2 + 8px));
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 76px;
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 8px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(5, 35, 62, .18);
  }

  .bottom-nav .nav {
    min-height: 58px;
    border-radius: 7px;
  }
}

/* v3.9.4 — iPhone/PWAで下部ナビが画面中央に残る問題を防ぐ。 */
@media (max-width: 743px) {
  .bottom-nav {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }
}

@media (min-width: 1100px) {
  .home-masthead { height: 320px; }
  .venue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* v4.0.0 — MAMO BOAT編集部 / 自己発見型の朝刊・週間・月刊 */
.real-bet-float { display: none !important; }

.home-press-teaser { margin-top: 11px; }
.press-teaser-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #cabf9e;
  border-left: 7px solid var(--gold);
  border-radius: 10px;
  padding: 14px 15px;
  background: linear-gradient(145deg, #fffdf4, #f5f0df);
  box-shadow: 0 4px 12px rgba(5,35,62,.09);
}
.press-teaser-card::after {
  content: "PRESS";
  position: absolute;
  right: -10px;
  bottom: -16px;
  color: rgba(5,35,62,.045);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 55px;
  font-weight: 900;
  letter-spacing: -.08em;
}
.press-teaser-card > span { color: #886b24; font-size: 8px; font-weight: 1000; letter-spacing: .14em; }
.press-teaser-card h3 { position: relative; z-index: 1; margin: 5px 0; color: var(--navy); font-size: 17px; letter-spacing: -.04em; }
.press-teaser-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.press-teaser-card button { position: relative; z-index: 1; margin-top: 8px; border: 0; padding: 0; background: transparent; color: var(--teal-dark); font-size: 9px; font-weight: 1000; }
.press-teaser-card.muted-edition { border-left-color: var(--line); background: #f7f9f9; }

.newsroom-cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cast-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 9px;
  padding: 11px;
  background: white;
  box-shadow: 0 3px 10px rgba(5,35,62,.07);
}
.cast-card.rookie { border-top-color: var(--gold); }
.cast-card.racer { border-top-color: var(--coral); }
.cast-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: 13px; font-weight: 1000; }
.cast-card.rookie .cast-avatar { background: #a17810; }
.cast-card.racer .cast-avatar { background: var(--coral); }
.cast-card div { min-width: 0; }
.cast-card small { color: var(--muted); font-size: 7px; font-weight: 900; }
.cast-card h3 { margin: 2px 0 4px; font-size: 13px; }
.cast-card p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

.paper-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 8px; }
.paper-tabs button { min-height: 39px; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); font-size: 10px; font-weight: 1000; }
.paper-tabs button.active { border-color: var(--navy); background: var(--navy); color: white; }
.paper-tabs button.locked::after { content: " 鍵"; color: var(--gold); font-size: 7px; }

.press-paper { min-height: 210px; }
.paper-sheet {
  overflow: hidden;
  border: 1px solid #bcb49e;
  border-radius: 5px;
  background:
    linear-gradient(rgba(255,253,245,.95), rgba(255,253,245,.95)),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(5,35,62,.05) 24px);
  box-shadow: 6px 7px 0 rgba(5,35,62,.12);
  color: #172731;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
}
.paper-mast { display: flex; align-items: end; justify-content: space-between; gap: 10px; border-bottom: 4px double var(--navy); padding: 11px 13px 8px; }
.paper-mast div { display: grid; gap: 1px; }
.paper-mast span { color: var(--teal-dark); font-size: 17px; font-weight: 1000; letter-spacing: -.05em; }
.paper-mast b { font-size: 8px; letter-spacing: .08em; }
.paper-mast small { color: var(--muted); font-family: sans-serif; font-size: 7px; font-weight: 900; }
.paper-lead { padding: 15px 14px 12px; border-bottom: 1px solid #c9c2ae; }
.paper-lead > span, .paper-question > span, .paper-trend > span { display: inline-block; margin-bottom: 5px; padding: 2px 5px; background: var(--navy); color: white; font-family: sans-serif; font-size: 7px; font-weight: 1000; letter-spacing: .08em; }
.paper-lead h3 { margin: 0; font-size: clamp(22px, 5.8vw, 36px); line-height: 1.12; letter-spacing: -.08em; }
.paper-lead p { margin: 8px 0 0; color: #53636a; font-family: sans-serif; font-size: 9px; font-weight: 700; line-height: 1.6; }
.paper-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #c9c2ae; }
.paper-facts > div { min-width: 0; padding: 10px; border-right: 1px solid #c9c2ae; }
.paper-facts > div:last-child { border-right: 0; }
.paper-facts span { display: block; min-height: 25px; color: var(--muted); font-family: sans-serif; font-size: 7px; font-weight: 900; line-height: 1.35; }
.paper-facts b { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 15px; }
.paper-trend { padding: 11px 13px; border-bottom: 1px solid #c9c2ae; }
.paper-trend p { margin: 0; font-size: 10px; font-weight: 700; line-height: 1.65; }
.paper-question { padding: 13px; background: rgba(0,168,160,.055); }
.paper-question h4 { margin: 2px 0 11px; font-size: 15px; line-height: 1.55; }
.paper-feedback { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; font-family: sans-serif; }
.paper-feedback button { min-height: 35px; border: 1px solid var(--line); border-radius: 5px; padding: 5px; background: white; color: var(--navy); font-size: 8px; font-weight: 900; }
.paper-feedback button.selected { border-color: var(--teal); background: var(--mint); box-shadow: inset 0 0 0 1px var(--teal); }
.paper-question > small { display: block; margin-top: 6px; color: var(--teal-dark); font-family: sans-serif; font-size: 7px; font-weight: 900; }
.paper-sheet footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid #c9c2ae; padding: 7px 10px; background: #f0ecdd; color: #5e665f; font-family: sans-serif; font-size: 6px; }
.paper-sheet footer b { color: #33454c; }
.paper-empty { min-height: 190px; display: grid; place-items: center; align-content: center; padding: 25px; text-align: center; }
.paper-empty > span { color: #988a61; font-family: sans-serif; font-size: 8px; font-weight: 1000; letter-spacing: .15em; }
.paper-empty h3 { margin: 7px 0; font-size: 21px; }
.paper-empty p, .paper-empty small { margin: 0; color: var(--muted); font-family: sans-serif; font-size: 9px; line-height: 1.6; }
.paper-empty small { margin-top: 6px; }

.paper-locked { display: grid; place-items: center; min-height: 250px; border: 1px solid var(--line); border-radius: 8px; padding: 24px 18px; background: linear-gradient(145deg, #fffdf5, white); text-align: center; box-shadow: var(--shadow); }
.paper-locked > span { color: #9a7417; font-size: 8px; font-weight: 1000; letter-spacing: .15em; }
.paper-locked h3 { margin: 5px 0; font-family: "Yu Mincho", serif; font-size: 25px; }
.paper-locked p { max-width: 380px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.paper-locked small { margin: 7px 0 14px; color: var(--teal-dark); font-size: 8px; font-weight: 900; }
.paper-locked .btn { max-width: 360px; }

.membership-panel { display: grid; gap: 11px; border-top-color: var(--gold); }
.membership-current { border-left: 5px solid var(--gold); padding: 10px 12px; background: #fffaf0; }
.membership-current > span { color: #8f6a13; font-size: 7px; font-weight: 1000; letter-spacing: .13em; }
.membership-current h3 { display: inline; margin: 0 7px; font-size: 17px; }
.membership-current > b { color: var(--teal-dark); font-size: 10px; }
.membership-current p { margin: 7px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }
.membership-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.membership-points div { min-width: 0; display: grid; gap: 3px; padding: 8px; border: 1px solid var(--soft-line); border-radius: 6px; background: white; }
.membership-points b { color: var(--teal-dark); font-size: 10px; }
.membership-points span { color: var(--muted); font-size: 7px; line-height: 1.4; }
.analysis-tools { display: flex; justify-content: flex-end; margin: 8px 1px 20px; }

.plan-modal > p, .deep-interview > p, .press-settings-panel > p { color: var(--muted); font-size: 10px; line-height: 1.65; }
.plan-modal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin: 12px 0; }
.plan-option { min-height: 112px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; color: var(--navy); text-align: left; }
.plan-option.current { border: 2px solid var(--teal); background: var(--mint); }
.plan-option span { color: var(--teal-dark); font-size: 8px; font-weight: 1000; letter-spacing: .1em; }
.plan-option h3 { margin: 3px 0; font-size: 16px; }
.plan-option b { display: block; color: #916f1a; font-size: 9px; }
.plan-option small { display: block; margin-top: 6px; color: var(--muted); font-size: 7px; line-height: 1.4; }
.editorial-safety { border-left-color: var(--teal); background: #effaf8; }
.deep-theme-list { display: grid; gap: 6px; margin: 12px 0; }
.deep-theme-list button { min-height: 43px; border: 1px solid var(--line); border-radius: 6px; padding: 9px; background: white; color: var(--navy); text-align: left; font-weight: 900; }
.deep-theme-list button.selected { border-color: var(--teal); background: var(--mint); }
.press-settings-panel { border-top-color: var(--gold); }
.onboard-editorial { margin: 12px 0 0; padding: 10px; border-left: 4px solid var(--teal); background: #eff9f8; color: var(--muted); font-size: 9px; font-weight: 750; line-height: 1.55; }
.onboard-racer-tag { position: absolute; right: 15px; top: 115px; z-index: 2; display: grid; border-left: 4px solid var(--coral); padding: 6px 8px; background: rgba(255,255,255,.92); box-shadow: 0 3px 10px rgba(5,35,62,.12); }
.onboard-racer-tag b { color: var(--coral); font-size: 7px; letter-spacing: .1em; }
.onboard-racer-tag span { color: var(--navy); font-size: 8px; font-weight: 900; }
.simple-press .newsroom-cast { display: none; }
.simple-press .paper-sheet { font-family: inherit; background: white; }
.simple-press .paper-lead h3 { font-size: 21px; }

@media (max-width: 620px) {
  .newsroom-cast { grid-template-columns: 1fr; }
  .cast-card { align-items: center; }
  .membership-points { grid-template-columns: repeat(2, 1fr); }
  .paper-mast small { max-width: 42%; text-align: right; }
  .paper-facts b { font-size: 13px; }
  .onboard-racer-tag { top: 110px; right: 10px; }
}

@media (max-width: 390px) {
  .paper-lead h3 { font-size: 22px; }
  .paper-facts > div { padding: 8px 6px; }
  .paper-facts span { min-height: 31px; font-size: 6px; }
  .paper-facts b { font-size: 11px; }
  .paper-feedback { grid-template-columns: 1fr; }
  .plan-modal-grid { grid-template-columns: 1fr; }
}

/* FIRST VOYAGE magazine cover */
#onboard .onboard-panel[data-onboard="0"] img.onboard-cover-art {
  right: 6% !important;
  bottom: 112px !important;
  width: 88% !important;
  height: 59% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  mix-blend-mode: normal !important;
  opacity: 1 !important;
  filter: drop-shadow(0 10px 18px rgba(5, 35, 62, .18)) !important;
}
@media (max-width: 480px) {
  #onboard .onboard-panel[data-onboard="0"] img.onboard-cover-art {
    right: 4% !important;
    bottom: 108px !important;
    width: 92% !important;
    height: 58% !important;
  }
}


/* membership selectable cards */
.membership-selectable button{width:100%;text-align:left;background:#fff;border:1px solid #ddd6c8;border-radius:10px;padding:12px;font:inherit;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.membership-selectable button:active{transform:scale(.985)}
.membership-selectable button.selected{border-color:var(--teal);background:var(--mint);box-shadow:inset 0 0 0 1px var(--teal)}
.membership-selectable button.selected b{color:var(--navy)}
.membership-deep-action:disabled{opacity:.52;transform:none;box-shadow:none}
