@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --yellow: #ffd60a;
  --yellow-deep: #f2c500;
  --black: #000;
  --white: #fff;
  --green: #0a7d3b;
  --red: #cf2a2a;
  --cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --cw-font: var(--sans);
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--yellow); color: var(--black); font-family: var(--sans); font-weight: 500; font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.board :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: var(--yellow); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* buttons */
.btn { font-family: var(--sans); font-weight: 700; font-size: 17px; line-height: 1.1; border-radius: 6px; padding: 14px 22px; border: 3px solid var(--black); cursor: pointer; white-space: nowrap; }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn-black { background: var(--black); color: var(--yellow); }
.btn-black:hover:not(:disabled) { background: #222; }
.btn-line { background: transparent; color: var(--black); }
.btn-line:hover { background: var(--black); color: var(--yellow); }
.link-btn { background: none; border: 0; padding: 0; margin-top: 14px; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--black); }

/* header */
.top { display: flex; align-items: center; gap: 24px; padding: 18px var(--pad); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; background: var(--black); color: var(--yellow); padding: 6px 14px 6px 10px; border-radius: 6px; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.top-nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 17px; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top .btn { padding: 11px 18px; font-size: 16px; }
.ca-chip { font-family: var(--sans); font-weight: 600; font-size: 14px; background: transparent; color: var(--black); border: 2px solid var(--black); border-radius: 6px; padding: 9px 12px; display: inline-flex; gap: 10px; cursor: pointer; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding: clamp(24px, 4vw, 56px) var(--pad) clamp(56px, 7vw, 96px); }
.hero h1 { font-family: var(--cond); font-weight: 800; font-size: clamp(52px, 7.4vw, 112px); line-height: 0.9; letter-spacing: -0.012em; text-wrap: balance; }
.lede { margin-top: 26px; max-width: 46ch; font-size: clamp(18px, 1.5vw, 21px); }
.scan { margin-top: 34px; max-width: 560px; }
.scan label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.scan-row { display: flex; gap: 10px; }
.scan input { flex: 1; min-width: 0; font-family: var(--sans); font-weight: 500; font-size: 17px; padding: 13px 14px; border: 3px solid var(--black); border-radius: 6px; background: var(--white); color: var(--black); }
.scan input::placeholder { color: #767676; }
.form-hint { margin-top: 8px; font-weight: 600; font-size: 16px; color: #8a1616; }
.form-hint:empty { display: none; }
.progress { margin-top: 14px; }
.progress p { margin-top: 8px; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.bar { height: 14px; border: 3px solid var(--black); border-radius: 6px; background: var(--white); overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: repeating-linear-gradient(-45deg, #000 0 10px, #333 10px 20px); transition: width 0.25s linear; }

.tag-col { min-width: 0; }
.tag-wrap { transform: rotate(-2.2deg); transform-origin: 50% 40%; filter: drop-shadow(12px 14px 0 rgba(0, 0, 0, 0.9)); margin: 10px 14px 0 0; transition: transform 0.35s ease; }
.tag-wrap.is-real { transform: rotate(0deg); }
.tag { display: block; width: 100%; height: auto; border: 3px solid var(--black); border-radius: 10px; background: var(--yellow); }
.result { margin-top: 34px; }
.result h2 { font-family: var(--cond); font-weight: 800; font-size: clamp(30px, 3vw, 40px); line-height: 1; }
.result p { margin-top: 8px; max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.action-note { min-height: 26px; font-weight: 600; }

/* bag list */
.bags { background: var(--white); padding: clamp(40px, 6vw, 72px) var(--pad); border-top: 3px solid var(--black); }
.bags h2, .plain h2, .board h2 { font-family: var(--cond); font-weight: 800; font-size: clamp(40px, 5vw, 68px); line-height: 0.95; margin-bottom: 22px; }
.table-scroll { overflow-x: auto; }
.bags table { width: 100%; min-width: 640px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bags th { text-align: left; font-weight: 700; font-size: 15px; border-bottom: 3px solid var(--black); padding: 8px 14px 8px 0; white-space: nowrap; }
.bags td { border-bottom: 1px solid #d9d9d9; padding: 10px 14px 10px 0; }
.bags .num { text-align: right; }
.bags td.up { color: var(--green); font-weight: 700; }
.bags td.down { color: var(--red); font-weight: 700; }
.bags td a { font-weight: 700; }
.fine { margin-top: 14px; font-size: 15px; color: #444; }

/* departure board */
.board { background: var(--black); color: var(--yellow); padding: clamp(48px, 7vw, 96px) var(--pad); }
.board-intro { max-width: 58ch; color: var(--white); }
.board-table { margin-top: 30px; width: 100%; max-width: 980px; border-collapse: collapse; font-family: var(--cond); font-weight: 700; font-size: clamp(24px, 3vw, 40px); line-height: 1.05; }
.board-table th, .board-table td { text-align: left; padding: 12px 20px 10px 0; border-bottom: 2px solid #3a3a3a; }
.board-table th { font-weight: 800; width: 5ch; letter-spacing: 0.04em; }
.board-table td:last-child { color: var(--white); font-weight: 600; text-align: right; padding-right: 0; }

/* text sections */
.plain { padding: clamp(48px, 7vw, 96px) var(--pad) 0; }
.plain:last-of-type { padding-bottom: clamp(48px, 7vw, 96px); }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(28px, 5vw, 72px); max-width: 1080px; }
.cols > div { border-top: 3px solid var(--black); padding-top: 14px; }
.cols h3 { font-family: var(--cond); font-weight: 700; font-size: 28px; line-height: 1.1; margin-bottom: 6px; }
.faq { max-width: 820px; border-top: 3px solid var(--black); }
.faq details { border-bottom: 2px solid var(--black); }
.faq summary { cursor: pointer; padding: 16px 40px 16px 0; font-family: var(--cond); font-weight: 700; font-size: 28px; line-height: 1.1; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 36px; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; max-width: 62ch; }

.foot { background: var(--black); color: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 26px var(--pad); font-size: 16px; }
.foot .brand-name { color: var(--yellow); }
.foot p { flex: 1; min-width: 240px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .ca-chip { display: none; }
  .cols { grid-template-columns: 1fr; }
  .tag-wrap { margin-right: 10px; filter: drop-shadow(7px 8px 0 rgba(0, 0, 0, 0.9)); }
}
@media (max-width: 480px) {
  .scan-row { flex-direction: column; }
  .actions .btn { flex: 1 1 100%; }
  .board-table td:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tag-wrap, .bar-fill { transition: none; }
}
/* "Connect wallet" window: dark panel, title left, Close right, one row per wallet */
.cw-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(6, 8, 14, 0.62); }
.cw-wrap[hidden] { display: none; }
.cw-open { overflow: hidden; }
.cw-panel { width: min(420px, 100%); background: #14161c; color: #f2f3f5; border: 1px solid #2b2f3a; border-radius: 16px; padding: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); font-family: var(--cw-font, system-ui, sans-serif); }
.cw-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cw-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: 0; color: #f2f3f5; }
.cw-close { background: #232732; color: #d6d9e0; border: 1px solid #343949; border-radius: 9px; padding: 7px 13px; font: inherit; font-size: 14px; cursor: pointer; }
.cw-close:hover { background: #2c3140; }
.cw-list { display: grid; gap: 8px; }
.cw-row { display: flex; align-items: center; gap: 12px; width: 100%; background: #1c1f28; color: #f2f3f5; border: 1px solid #2b2f3a; border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.cw-row:hover { background: #232732; border-color: #3b4152; }
.cw-row:disabled { opacity: 0.6; cursor: wait; }
.cw-icon { width: 36px; height: 36px; border-radius: 9px; flex: none; object-fit: cover; }
.cw-icon-letter { display: grid; place-items: center; background: #2f3442; color: #c9cdd6; font-weight: 700; font-size: 17px; }
.cw-name { flex: 1; font-weight: 500; }
.cw-hint { font-size: 13px; color: #8f96a6; }
.cw-note { min-height: 20px; margin: 12px 2px 0; font-size: 14px; line-height: 1.4; color: #aeb4c2; }
.cw-row:focus-visible, .cw-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
