/* Oya Seats. Danfo yellow and road black, lagoon blue, rail green. Light by day, dark by night. */
:root {
  --paper: #fbf7e9; --card: #ffffff; --card2: #f6efd6; --ink: #1d1c17; --muted: #625f52; --line: #e4dcc0;
  --danfo: #f7c531; --road: #1d1c17; --bus: #f7c531; --car: #f08a24; --boat: #1c9bb0; --train: #1f8a4c;
  --water: #bfe6ee; --water2: #9ad6e3; --land: #eef3dd; --pin: #e2563f;
  --green: #1f8a4c; --red: #d6463a; --gold: #b87d00;
  --soft-green: rgba(31, 138, 76, .14); --soft-gold: rgba(247, 197, 49, .3); --soft-red: rgba(214, 70, 58, .14);
  --shadow: 0 4px 0 rgba(29, 28, 23, .1);
  --display: "Fredoka", "Nunito", "Trebuchet MS", sans-serif;
  --body: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14130f; --card: #1f1d17; --card2: #2a271e; --ink: #f2eedf; --muted: #aea98f; --line: #3a3628;
    --danfo: #e9b923; --road: #0b0a08; --bus: #e9b923; --car: #f39a3f; --boat: #3bb6c9; --train: #3fb36c;
    --water: #173c45; --water2: #1d4c57; --land: #1d2419; --pin: #f06a5b;
    --green: #47c477; --red: #f06a5b; --gold: #e8b743;
    --soft-green: rgba(71, 196, 119, .16); --soft-gold: rgba(233, 185, 35, .2); --soft-red: rgba(240, 106, 91, .16);
    --shadow: 0 4px 0 rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; padding-inline: 16px; padding-bottom: env(safe-area-inset-bottom, 0px); }
main { max-width: 1060px; margin-inline: auto; display: flex; flex-direction: column; gap: 22px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--danfo); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.stripe { height: 12px; margin-inline: -16px; background: repeating-linear-gradient(90deg, var(--danfo) 0 40px, var(--road) 40px 52px); }

/* header + hero */
.top { max-width: 1060px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding-block: 14px 6px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; }
.logo { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.02em; }
.seats { font-family: var(--display); font-weight: 600; font-size: 15px; padding: 2px 10px; border-radius: 999px; background: var(--danfo); color: #1d1c17; border: 2px solid var(--road); }
.pill-test { font-family: var(--display); font-weight: 600; font-size: 13px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line); color: var(--muted); }
.hero { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); font-weight: 700; letter-spacing: -.01em; }
.hl { background: linear-gradient(transparent 58%, var(--danfo) 58% 92%, transparent 92%); padding-inline: 2px; }
.lede { font-size: 18px; max-width: 60ch; }
.sample { font-size: 14.5px; padding: 10px 14px; border-radius: 14px; background: var(--card2); border: 2px dashed var(--line); max-width: 70ch; }

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px; border-radius: 20px; border: 2px solid var(--line); background: var(--card); box-shadow: var(--shadow); text-align: left; transition: transform .15s ease; }
.mode svg { width: 46px; height: 46px; }
.mode b { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1; }
.mode span { font-size: 13.5px; color: var(--muted); line-height: 1.25; }
.mode[aria-selected="true"] { border-color: var(--road); background: var(--danfo); color: #1d1c17; }
.mode[aria-selected="true"] span { color: #3a3628; }
@media (prefers-reduced-motion: no-preference) { .mode:active { transform: translateY(2px); } }

/* network map */
.mapcard { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.mapcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mapcard-head h2 { font-size: 28px; }
.mapwrap { overflow-x: auto; border-radius: 16px; border: 2px solid var(--line); background: var(--land); }
#netmap { display: block; width: 100%; height: auto; min-width: 640px; }
.n-land { fill: var(--land); } .n-water { fill: var(--water); } .n-water2 { fill: var(--water2); }
.n-line { fill: none; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; opacity: .28; transition: opacity .2s, stroke-width .2s; cursor: pointer; }
.n-line.on { opacity: .9; }
.n-line.sel { opacity: 1; stroke-width: 12; }
.n-hit { fill: none; stroke: transparent; stroke-width: 26; cursor: pointer; }
.n-casing { fill: none; stroke: var(--road); stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.n-casing.sel { opacity: .9; }
.n-rail { fill: none; stroke: var(--card); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; pointer-events: none; }
.n-stop { fill: var(--card); stroke: var(--road); stroke-width: 3; }
.n-city { cursor: pointer; }
.n-city rect { fill: var(--card); stroke: var(--road); stroke-width: 2.5; }
.n-city.sel rect { fill: var(--danfo); }
.n-city text { font-family: var(--display); font-weight: 600; font-size: 17px; fill: var(--ink); }
.n-city.sel text { fill: #1d1c17; }
.n-stoplbl { font-family: var(--body); font-weight: 700; font-size: 12.5px; fill: var(--muted); }
.n-region { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .12em; fill: var(--muted); opacity: .8; }
.n-bus { stroke: var(--bus); } .n-car { stroke: var(--car); } .n-boat { stroke: var(--boat); } .n-train { stroke: var(--train); }
@media (prefers-reduced-motion: no-preference) {
  .n-line.sel { stroke-dasharray: 22 10; animation: march 1.2s linear infinite; }
}
@keyframes march { to { stroke-dashoffset: -32; } }
.routechips { display: flex; flex-wrap: wrap; gap: 8px; }
.routechips button { font-family: var(--display); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card2); }
.routechips button[aria-pressed="true"] { background: var(--danfo); color: #1d1c17; border-color: var(--road); }

/* trip */
.trip { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.trip-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.end b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(24px, 4vw, 34px); line-height: 1; }
.end span { font-size: 14px; color: var(--muted); }
.end.to { text-align: right; }
.via { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--muted); }
.via svg { width: 120px; height: 26px; }
.days-wrap { overflow-x: auto; padding-bottom: 4px; margin-inline: -4px; }
.days { display: flex; gap: 8px; padding: 4px; width: max-content; }
.day { width: 62px; padding: 8px 0 10px; border-radius: 16px; border: 2px solid var(--line); background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; overflow: hidden; }
.day small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.day b { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1; }
.day::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 4px; height: 4px; border-radius: 2px; background: var(--heat, var(--line)); }
.day[aria-selected="true"] { background: var(--danfo); color: #1d1c17; border-color: var(--road); }
.day[aria-selected="true"] small { color: #3a3628; }
.day.newmonth { margin-left: 10px; }
.heat-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.heat-legend span { display: inline-flex; align-items: center; gap: 6px; }
.heat-legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.h1 { background: var(--green); } .h2 { background: var(--gold); } .h3 { background: var(--red); }

/* departures board */
.board { background: var(--road); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 8px; color: #f2eedf; }
.board-top { display: grid; grid-template-columns: 112px minmax(0, 1fr) 120px 120px; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #aea98f; padding-inline: 8px; }
.dep { display: grid; grid-template-columns: 112px minmax(0, 1fr) 120px 120px; gap: 10px; align-items: center; padding: 10px 8px; border-radius: 12px; background: #2a271e; border: 2px solid transparent; text-align: left; width: 100%; color: inherit; }
.dep:hover:not(:disabled) { border-color: var(--danfo); }
.dep[aria-pressed="true"] { border-color: var(--danfo); background: #3a3420; }
.dep:disabled { opacity: .5; cursor: not-allowed; }
.flap { display: inline-flex; gap: 3px; }
.flap i { font-style: normal; font-family: var(--mono); font-weight: 700; font-size: 22px; width: 22px; height: 32px; display: inline-flex; align-items: center; justify-content: center; background: #0b0a08; border-radius: 5px; color: var(--danfo); position: relative; }
.flap i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255, 255, 255, .12); }
.flap i.c { width: 10px; background: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .flap i { animation: flip .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--k, 0) * 45ms); transform-origin: 50% 50%; }
}
@keyframes flip { from { transform: rotateX(90deg); opacity: .2; } to { transform: rotateX(0); opacity: 1; } }
.dep .arr { font-family: var(--mono); font-size: 13px; color: #aea98f; }
.dep .arr b { color: #f2eedf; font-weight: 700; }
.left { display: flex; flex-direction: column; gap: 4px; font-family: var(--mono); font-size: 12.5px; }
.bar { height: 7px; border-radius: 4px; background: #0b0a08; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.bar.low i { background: #f06a5b; }
.fare { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fare b { font-family: var(--mono); font-weight: 700; font-size: 16px; }
.tag { font-family: var(--display); font-weight: 600; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.tag.fast { background: #f06a5b; color: #1d1c17; }
.tag.full { background: #625f52; color: #f2eedf; }
.tag.ok { background: #3fb36c; color: #0b0a08; }

/* seats */
.seatcard { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.seat-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.seat-head h2 { font-size: 26px; }
.seat-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 18px; align-items: start; }
.vehicle-wrap { display: flex; justify-content: center; overflow-x: auto; padding: 6px; }
.vehicle { position: relative; border: 4px solid var(--road); background: var(--card2); padding: 54px 18px 22px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.vehicle.coach { border-radius: 46px 46px 22px 22px; }
.vehicle.train { border-radius: 26px; padding-top: 42px; }
.vehicle.boat { border-radius: 50% 50% 26px 26px / 22% 22% 26px 26px; padding: 96px 26px 26px; }
.vehicle.car { border-radius: 70px 70px 46px 46px; padding: 70px 24px 34px; }
.vehicle .front { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.vehicle.coach::before, .vehicle.car::before { content: ""; position: absolute; top: 28px; left: 18%; right: 18%; height: 10px; border-radius: 6px; background: var(--water2); border: 2px solid var(--road); }
.vehicle.boat::before { content: ""; position: absolute; top: 58px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; border: 6px solid var(--red); background: transparent; }
.vehicle.train::before { content: ""; position: absolute; top: 18px; left: 18px; right: 18px; height: 6px; border-radius: 3px; background: var(--train); }
.srow { display: grid; gap: 8px; align-items: center; }
.srow .rn { font-family: var(--mono); font-size: 11px; color: var(--muted); text-align: center; }
.seat { width: 42px; height: 42px; border-radius: 12px 12px 7px 7px; border: 2px solid var(--green); background: var(--soft-green); font-family: var(--mono); font-weight: 700; font-size: 11.5px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; position: relative; }
.seat::before { content: ""; position: absolute; top: 4px; left: 6px; right: 6px; height: 6px; border-radius: 4px; background: var(--line); }
.seat.win::after { content: ""; position: absolute; top: 8px; width: 4px; height: 16px; border-radius: 2px; background: var(--boat); }
.seat.win.l::after { left: -8px; } .seat.win.r::after { right: -8px; }
.seat:disabled { background: repeating-linear-gradient(45deg, var(--line) 0 4px, var(--card2) 4px 8px); color: var(--muted); cursor: not-allowed; border-color: var(--line); opacity: .55; }
.seat:hover:not(:disabled):not(.driver):not([aria-pressed="true"]) { background: var(--soft-gold); }
.seat[aria-pressed="true"] { background: var(--danfo); color: #1d1c17; border-color: var(--road); transform: translateY(-2px); box-shadow: 0 3px 0 var(--road); }
.seat.driver { background: var(--road); color: #f2eedf; border-color: var(--road); cursor: default; }
.seat.driver::before { background: #625f52; }
.gap { width: 22px; }
.pick { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 14px; }
.pick .big-seat { font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1; }
.pick .facts { display: flex; flex-wrap: wrap; gap: 6px; }
.pick .facts span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--card2); border: 2px solid var(--line); }
.lockbox { border: 2px solid var(--road); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--card); }
.lockbox .row { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; }
.lockbox .row b { font-family: var(--mono); }
.lockbox .fee b { font-size: 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--road); display: inline-block; }
.s-free { background: var(--soft-green); border-color: var(--green) !important; } .s-taken { background: repeating-linear-gradient(45deg, var(--line) 0 3px, var(--card2) 3px 6px); border-color: var(--line) !important; } .s-mine { background: var(--danfo); } .s-win { background: var(--boat); border-color: var(--boat) !important; width: 6px !important; }

/* buttons */
.btn { font-family: var(--display); font-weight: 600; font-size: 16px; padding: 11px 18px; border-radius: 999px; border: 2px solid var(--road); background: var(--danfo); color: #1d1c17; box-shadow: 0 3px 0 var(--road); text-decoration: none; text-align: center; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--road); }
.btn.big { width: 100%; font-size: 17px; padding: 13px 18px; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: none; border-color: var(--line); }
.btn.wa { background: #25d366; }
.btn:disabled { opacity: .5; }

/* how + faq */
.how h2, .faq h2 { font-size: 28px; margin-bottom: 12px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.how-steps li { counter-increment: s; background: var(--card); border: 2px solid var(--line); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.how-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--danfo); border: 2px solid var(--road); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; color: #1d1c17; margin-bottom: 6px; }
.how-steps b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.how-steps span { font-size: 14.5px; color: var(--muted); }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 16px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 17px; cursor: pointer; }
.faq details p { margin-top: 8px; color: var(--muted); }
.foot { max-width: 1060px; margin: 36px auto 28px; font-size: 13px; color: var(--muted); text-align: center; }

/* dialog */
dialog { border: 2px solid var(--road); border-radius: 24px; padding: 0; max-width: 460px; width: calc(100% - 24px); background: var(--card); color: var(--ink); box-shadow: 0 8px 0 rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(20, 19, 15, .55); }
.dlg-step { padding: 22px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.x { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--muted); }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 28px; }
#dlg-h { font-size: 26px; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.q { font-family: var(--display); font-weight: 600; font-size: 15px; margin-bottom: 6px; padding: 0; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--road); margin: 0; }
.opt:has(input:checked) { border-color: var(--road); background: var(--soft-gold); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: 12px; border: 2px solid var(--line); font-weight: 700; }
.seg input:checked + span { border-color: var(--road); background: var(--danfo); color: #1d1c17; }
.seg input:focus-visible + span { outline: 3px solid var(--danfo); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 14px; }
.field input { font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--road); flex: none; }
.err { color: var(--red); font-weight: 700; font-size: 14px; }
.tiny { font-size: 12.5px; color: var(--muted); text-align: center; }

/* boarding pass */
.pass { border: 2px solid var(--road); border-radius: 18px; overflow: hidden; background: var(--card); }
.pass-top { background: var(--danfo); color: #1d1c17; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 700; }
.pass-top span { font-size: 12px; letter-spacing: .12em; padding: 2px 8px; border: 2px solid #1d1c17; border-radius: 999px; }
.pass-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 14px 16px 6px; }
.pass-route b { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1; }
.pass-route small { font-size: 12px; color: var(--muted); }
.pass-route .r { text-align: right; }
.pass-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 8px 16px 14px; }
.pass-grid small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pass-grid b { font-family: var(--mono); font-size: 15px; }
.pass-cut { border-top: 2px dashed var(--line); position: relative; }
.pass-cut::before, .pass-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--road); }
.pass-cut::before { left: -12px; } .pass-cut::after { right: -12px; }
.pass-foot { padding: 12px 16px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.code { display: grid; grid-template-columns: repeat(9, 6px); grid-auto-rows: 6px; gap: 2px; flex: none; }
.code i { background: var(--road); border-radius: 1px; }
.code i.o { background: transparent; }

@media (max-width: 860px) {
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seat-layout { grid-template-columns: minmax(0, 1fr); }
  .pick { position: static; }
  .how-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .board-top { display: none; }
  .dep { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t f" "a l"; row-gap: 8px; }
  .dep .t { grid-area: t; } .dep .arr { grid-area: a; } .dep .left { grid-area: l; min-width: 110px; } .dep .fare { grid-area: f; }
  .seat { width: 38px; height: 38px; }
}
