/* ANZEN: ink, indigo and violet light, with the vermilion seal as the one warm
   colour. Panels are "system windows". Geist and Geist Mono are served by the
   app itself (SIL Open Font License, /fonts/OFL.txt); titles use the device's
   own Mincho face. */
@font-face { font-family: Geist; src: url("/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #05060F; --deep: #080B1C; --window: rgba(9, 16, 40, .86); --field: #060A1B;
  --line: #24356B; --faint: #17224A; --glow: #6FD3FF; --violet: #B98AFF; --seal: #E0392B;
  --text: #F3F0FA; --text2: #B4BDDC; --label: #8C98C2;
  --warn: #FFCF7A; --warn-bg: #1C1508; --warn-line: #6A4E17; --danger: #FF9A8B; --danger-line: #8A352B;
  --sans: Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --title: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", Georgia, serif;
  --cut: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body { margin: 0; min-height: 100vh; font-family: var(--sans); color: var(--text); -webkit-font-smoothing: antialiased;
  background: radial-gradient(70vw 60vh at 88% 4%, rgba(116, 50, 220, .34), transparent 70%), radial-gradient(70vw 70vh at 4% 96%, rgba(18, 88, 190, .34), transparent 70%), var(--ink); background-attachment: fixed; }
h1, h2, h3 { margin: 0; font-family: var(--title); font-weight: 600; }
p, dl, dd { margin: 0; }
a { color: var(--glow); } a:hover { color: #fff; }
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: not-allowed; }
input, select { font-family: inherit; color: var(--text); }
input::placeholder { color: #6C79A6; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mono { font-family: var(--mono); }
.center { text-align: center; }

/* Header: the name in the middle, links either side */
.page { min-height: 100vh; display: flex; flex-direction: column; }
header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 14px 3vw; position: relative; z-index: 4; }
.side { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.side.right { justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 12px; padding: 10px 34px 12px; position: relative; }
.brand::before, .brand::after { content: ""; position: absolute; bottom: 6px; width: 26px; height: 20px; border-bottom: 2px solid var(--violet); }
.brand::before { left: -4px; border-right: 2px solid var(--violet); transform: skewX(38deg); }
.brand::after { right: -4px; border-left: 2px solid var(--violet); transform: skewX(-38deg); }
.mark { width: 30px; height: 30px; } .word { height: 20px; width: auto; }
.tag { font-family: var(--mono); font-size: 12px; color: var(--warn); border: 1px solid var(--warn-line); padding: 4px 8px; }
.nav { min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--text2); font-size: 15px; display: inline-flex; align-items: center; text-decoration: none; }
.nav:hover { color: #fff; text-shadow: 0 0 14px var(--glow); }
.pill { min-height: 40px; padding: 0 14px; font-family: var(--mono); font-size: 13px; color: var(--text); background: var(--field); border: 1px solid var(--line); }
.pill:hover { border-color: var(--glow); }

/* The side rail */
.rail { position: fixed; left: 2vw; top: 50%; transform: translateY(-50%); z-index: 5; display: flex; flex-direction: column; gap: 6px; }
.rail button { width: 84px; min-height: 72px; border: 1px solid transparent; background: none; color: var(--text2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 13px; }
.rail .ja { font-family: var(--title); font-size: 25px; line-height: 1; }
.rail button:hover { color: #fff; }
.rail button[aria-current="page"] { color: #fff; border-color: var(--glow); background: rgba(40, 120, 220, .2); box-shadow: inset 0 0 22px rgba(111, 211, 255, .25); }
.rail button[aria-current="page"] .ja { text-shadow: 0 0 16px var(--glow); }
main { flex: 1; width: 100%; padding: 28px 20px 80px; display: flex; flex-direction: column; align-items: center; }
.railed main { padding-left: calc(2vw + 104px); padding-right: calc(2vw + 20px); }

/* Before there is a wallet open: the window stands in front of the gate */
.page:not(.railed) main:not(.landing) { background: linear-gradient(rgba(5, 6, 15, .5), rgba(5, 6, 15, .86)), url("/brand/gate.svg") center / cover no-repeat; border-top: 1px solid #6D4BC4; }
main > .col:only-child { margin: auto 0; }
.page:not(.railed) .panel { background: rgba(7, 13, 34, .95); }

/* A system window: hairline frame, bright broken edges, a glowing title plate */
.col { width: 100%; max-width: 600px; display: flex; flex-direction: column; gap: 26px; }
.col.wide { max-width: 820px; }
.panel { position: relative; background: var(--window); border: 1px solid rgba(160, 205, 255, .5); padding: 34px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 0 46px rgba(40, 110, 255, .2), inset 0 0 60px rgba(30, 90, 200, .14); }
.panel::before, .panel::after { content: ""; position: absolute; pointer-events: none; inset: -4px; }
.panel::before { background: linear-gradient(#EAF7FF, #EAF7FF) 8% 0 / 22% 2px, linear-gradient(#EAF7FF, #EAF7FF) 84% 0 / 14% 2px, linear-gradient(#EAF7FF, #EAF7FF) 30% 100% / 30% 2px, linear-gradient(#EAF7FF, #EAF7FF) 0 16% / 2px 26%, linear-gradient(#EAF7FF, #EAF7FF) 100% 78% / 2px 30%; background-repeat: no-repeat; opacity: .85; }
.panel::after { inset: 10px; background: linear-gradient(var(--glow), var(--glow)) 0 0 / 22px 1px, linear-gradient(var(--glow), var(--glow)) 0 0 / 1px 22px, linear-gradient(var(--glow), var(--glow)) 100% 0 / 22px 1px, linear-gradient(var(--glow), var(--glow)) 100% 0 / 1px 22px, linear-gradient(var(--glow), var(--glow)) 0 100% / 22px 1px, linear-gradient(var(--glow), var(--glow)) 0 100% / 1px 22px, linear-gradient(var(--glow), var(--glow)) 100% 100% / 22px 1px, linear-gradient(var(--glow), var(--glow)) 100% 100% / 1px 22px; background-repeat: no-repeat; opacity: .5; }
.panel > * { position: relative; z-index: 1; }
.panel > h1, .plate { align-self: center; text-align: center; font-size: 25px; padding: 10px 26px 11px; border: 1px solid rgba(160, 205, 255, .55); background: radial-gradient(closest-side, rgba(80, 180, 255, .5), rgba(30, 90, 180, .14)); text-shadow: 0 0 18px var(--glow); }
.col > h1 { text-align: center; font-size: 32px; text-shadow: 0 0 18px var(--glow); }
.panel > h2:not(.plate) { font-size: 22px; }
.inset, .swapside { background: var(--field); border: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.inset:focus-within, .swapside:focus-within { border-color: var(--glow); box-shadow: 0 0 18px rgba(111, 211, 255, .22); }
.label { font-size: 14px; color: var(--label); }
.label.big { text-align: center; color: var(--text2); }
.body { font-size: 17px; line-height: 1.6; color: var(--text2); }
.small { font-size: 15px; line-height: 1.55; color: var(--text2); }
.note { font-size: 14px; line-height: 1.5; color: var(--label); text-align: center; }
.caution { font-size: 15px; line-height: 1.55; color: var(--warn); }
.err { color: var(--danger); font-size: 15px; }
.grow { flex: 1 1 220px; }

/* Buttons */
.btn { min-height: 56px; border: 0; padding: 0 26px; font-size: 17px; font-weight: 600; color: #03101F; background: linear-gradient(180deg, #C9F1FF, #63CBFF); clip-path: var(--cut); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .15s, filter .15s; }
.btn:hover:not(:disabled) { background: #fff; color: #03101F; }
.btn.second { color: var(--text); background: linear-gradient(180deg, #223A80, #162657); }
.btn.second:hover:not(:disabled) { background: #31509F; color: #fff; }
.btn.ghost { min-height: 44px; background: none; color: var(--text2); font-weight: 400; font-size: 16px; }
.btn.ghost:hover:not(:disabled) { color: #fff; background: none; }
.btn.danger { color: var(--danger); background: #35140F; }
.btn.danger:hover:not(:disabled) { background: #521D16; color: #fff; }
.btn.danger.solid { background: var(--seal); color: #fff; }
.btn.small { min-height: 42px; font-size: 15px; padding: 0 18px; }
.btn:focus-visible { outline-offset: -5px; outline-color: #0A2A66; } .btn.second:focus-visible, .btn.danger:focus-visible, .btn.ghost:focus-visible { outline-color: #fff; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.row3 .btn { padding: 0 8px; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--glow); text-decoration: underline; text-underline-offset: 3px; }

/* Fields */
.amount { flex: 1; min-width: 0; min-height: 52px; border: 0; background: none; font-family: var(--mono); font-size: 34px; letter-spacing: -.02em; outline: none; }
.amount.right { text-align: right; } .amount.dim { color: var(--label); }
div.amount { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr { min-height: 44px; width: 100%; border: 0; background: none; font-family: var(--mono); font-size: 16px; outline: none; }
.text-in, select { min-height: 48px; border: 1px solid var(--line); background: var(--field); padding: 0 14px; font-size: 16px; width: 100%; }
.line { display: flex; align-items: center; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.check input { width: 22px; height: 22px; accent-color: var(--glow); }
.addrline { display: flex; align-items: center; gap: 12px; } .addrline .mono { flex: 1; overflow-wrap: anywhere; } .addrline .btn { flex: none; }

/* Loading and setup progress */
.boot { height: 12px; border: 1px solid var(--line); background: var(--field); overflow: hidden; }
.boot span { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, var(--glow), #fff); animation: boot 1.3s linear infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.stephead { display: flex; align-items: center; gap: 14px; }
.dots { display: flex; gap: 6px; flex: 1; } .dots div { height: 10px; flex: 1; background: #13204A; transform: skewX(-28deg); }
.dots div.on { background: linear-gradient(90deg, #2C6BE8, var(--glow)); box-shadow: 0 0 14px rgba(111, 211, 255, .5); }
.backarrow { width: 44px; height: 44px; flex: none; border: 1px solid var(--line); background: var(--field); color: var(--text); font-size: 18px; }
.backarrow:hover { border-color: var(--glow); }

/* Portfolio */
.dash { width: 100%; max-width: 1480px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(330px, 24vw, 440px); gap: 34px; align-items: start; }
.dashmain { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.total { font-family: var(--title); font-size: clamp(48px, 6vw, 80px); line-height: 1.15; text-shadow: 0 0 34px rgba(111, 211, 255, .6); }
.asset { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-top: 1px solid var(--faint); }
.asset .name { font-size: 18px; margin-right: auto; } .asset .val { font-family: var(--mono); font-size: 22px; }
.status { border: 1px solid #6D4BC4; border-radius: 30px; overflow: hidden; background: #0B0820; padding-bottom: 18px; }
.portrait { height: 370px; overflow: hidden; position: relative; }
.portraitimg { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.portrait::after { content: ""; position: absolute; inset: 78% 0 0; background: linear-gradient(transparent, #0B0820); }
.status dl { padding: 4px 24px 12px; } .status dl > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 13px 0; border-top: 1px solid #2A1F58; font-size: 15px; }
.status dl > div:first-child { border: 0; } .status dt { color: #B5A7E0; } .status .note { padding: 0 20px; color: #A99CD4; }
progress { grid-column: 1 / -1; appearance: none; -webkit-appearance: none; width: 100%; height: 10px; border: 0; background: #1C1446; }
progress::-webkit-progress-bar { background: #1C1446; } progress::-webkit-progress-value { background: linear-gradient(90deg, #7A3BFF, #D9B8FF); } progress::-moz-progress-bar { background: #A066FF; }
.warncard { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.warncard .t { font-size: 17px; font-weight: 600; color: var(--warn); } .warncard .s { font-size: 15px; color: var(--warn); margin-top: 3px; }

/* Progress of an action, activity */
.rows { background: var(--field); border: 1px solid var(--line); padding: 4px 18px; font-size: 15px; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; } .rows > div + div { border-top: 1px solid var(--faint); }
.st { font-size: 14px; } .st.WAITING { color: var(--label); } .st.WORKING { color: #fff; } .st.DONE { color: var(--glow); }
.alert { background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 18px; font-size: 16px; line-height: 1.55; color: var(--warn); }
.tick { width: 72px; height: 72px; align-self: center; border-radius: 50%; border: 2px solid var(--glow); color: #fff; box-shadow: 0 0 30px rgba(111, 211, 255, .6), inset 0 0 20px rgba(111, 211, 255, .4); display: flex; align-items: center; justify-content: center; }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 16px 0; } .act + .act { border-top: 1px solid var(--faint); }
.act .w { flex: 1 1 240px; } .act .w b { font-size: 17px; font-weight: 500; } .act .who { font-size: 14px; color: var(--text2); margin-top: 3px; } .act .when { font-size: 14px; color: var(--label); }

/* Swap and take out */
.swaptop { display: flex; align-items: center; justify-content: space-between; }
.swaptop h1 { font-size: 32px; text-shadow: 0 0 18px var(--glow); }
.chipbtn { min-height: 44px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--field); color: var(--text); padding: 0 14px; font-size: 14px; }
.chipbtn:hover { border-color: var(--glow); }
.swappanel { gap: 12px; }
.swaphead, .swapline, .bal { display: flex; align-items: center; gap: 8px; } .swaphead { justify-content: space-between; min-height: 32px; } .swapline { gap: 12px; }
.tiny { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); background: #101B42; color: var(--text); font-size: 13px; }
.tiny.big { min-height: 44px; padding: 0 15px; font-size: 15px; } .tiny:hover:not(:disabled) { border-color: var(--glow); } .tiny.on { background: var(--glow); border-color: var(--glow); color: #03101F; }
.tokbtn { min-height: 50px; flex: none; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: #101B42; color: var(--text); padding: 0 14px 0 9px; font-size: 18px; font-weight: 600; }
button.tokbtn:hover { border-color: var(--glow); } .tokbtn .chev { color: var(--label); font-size: 13px; }
.usd { text-align: right; color: var(--label); }
.panel > .flip { width: 48px; height: 48px; align-self: center; margin: -26px 0; z-index: 2; border: 1px solid var(--glow); background: #0C1738; color: #fff; font-size: 20px; border-radius: 50%; box-shadow: 0 0 18px rgba(111, 211, 255, .4); }
.flip:hover { background: #1B3579; }
.details { display: flex; flex-direction: column; gap: 9px; padding: 6px 4px; } .details > div { display: flex; justify-content: space-between; gap: 12px; }
.slipin { width: 130px; } .slipin.on { border-color: var(--glow); } .slip .line { flex-wrap: wrap; }
.coin, .coinbadge { flex: none; border-radius: 50%; border: 1px solid var(--line); background: #101B42; color: var(--text); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.coin { width: 42px; height: 42px; } .coinbadge { width: 30px; height: 30px; font-size: 11px; }
.haslogo { overflow: hidden; background: none; border-color: transparent; } .haslogo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; max-width: 100%; border: 1px solid var(--line); background: #101B42; color: var(--text); padding: 0 12px; font-size: 15px; } .pick:hover { border-color: var(--glow); } .pick .coinbadge { width: 22px; height: 22px; font-size: 9px; }
.overlay { position: fixed; inset: 0; z-index: 10; padding: 20px; background: rgba(3, 4, 12, .84); display: flex; align-items: center; justify-content: center; }
.modal { width: 100%; max-width: 500px; max-height: calc(100vh - 40px); gap: 14px; background: #0A1230; }
.modalhead { display: flex; align-items: center; justify-content: space-between; } .modalhead h1, .modalhead h2 { font-size: 24px; }
.iconbtn { width: 44px; height: 44px; border: 0; background: none; color: var(--text2); font-size: 28px; line-height: 1; } .iconbtn:hover { color: #fff; }
.toklist { display: flex; flex-direction: column; overflow-y: auto; min-height: 0; flex: 1; max-height: 46vh; border-top: 1px solid var(--line); padding-top: 8px; }
.tokhead { display: flex; justify-content: space-between; padding: 4px 8px 8px; }
.tokrow { display: flex; align-items: center; gap: 12px; min-height: 60px; flex: none; padding: 6px 8px; border: 0; background: none; color: var(--text); text-align: left; } .tokrow:hover { background: #16265A; } .tokrow .coinbadge { width: 36px; height: 36px; }
.tokname { display: flex; flex-direction: column; flex: 1; min-width: 0; } .tokname .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tokright { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; }

/* Landing */
main.landing { padding: 0; }
.land { width: 100%; display: flex; flex-direction: column; align-items: center; }
.bento { position: relative; width: min(94vw, calc((100vh - 110px) * 1.79)); min-width: min(94vw, 980px); aspect-ratio: 1360 / 760; container-type: inline-size; margin-bottom: 60px; }
.b-main { position: absolute; inset: 0 26.4% 0 0; } .guardian { width: 100%; height: 100%; display: block; }
.b-text { position: absolute; left: 4.6%; bottom: 7%; width: 62%; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.2cqw, 24px); }
.b-text h1 { font-size: clamp(30px, 3.7cqw, 70px); line-height: 1.12; text-shadow: 0 2px 24px #05060F, 0 0 8px #05060F; white-space: nowrap; }
.lead { max-width: 25em; font-size: clamp(16px, 1.4cqw, 21px); line-height: 1.5; color: #D6D3EA; text-shadow: 0 0 10px #05060F; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.b-card { position: absolute; overflow: hidden; border-radius: clamp(16px, 2.2cqw, 34px); border: 1px solid #7E6BE0; }
.b-gate { left: 55.2%; right: 0; top: 0; height: 40.8%; } .b-blades { left: 75%; right: 0; top: 46%; bottom: 0; }
.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-cap { position: absolute; inset: auto 0 0; padding: 50px 22px 18px; display: flex; flex-direction: column; gap: 3px; background: linear-gradient(transparent, rgba(5, 6, 15, .92)); }
.b-cap b { font-family: var(--title); font-size: clamp(19px, 1.9cqw, 30px); } .b-cap span { font-size: 15px; color: #D6D3EA; }
.b-seal { position: absolute; left: 2.8%; top: 5%; height: 24%; }
.notice { width: 100%; padding: 80px 4vw; display: flex; justify-content: center; border-top: 2px solid #56B8FF; border-bottom: 2px solid #56B8FF; box-shadow: 0 0 34px rgba(60, 150, 255, .5), inset 0 0 90px rgba(20, 80, 200, .34); background: linear-gradient(#04122E, #061B3C, #04122E); }
.panel.big { width: 100%; max-width: min(1560px, 92vw); padding: 44px 50px; gap: 30px; align-items: center; }
.plate { font-size: clamp(26px, 3vw, 40px); display: flex; gap: 16px; align-items: center; }
.duel { width: 100%; display: grid; grid-template-columns: 1fr clamp(250px, 21vw, 400px) 1fr; gap: clamp(30px, 4vw, 80px); align-items: center; }
.duelart { height: clamp(320px, 26vw, 500px); border: 1px solid var(--glow); border-radius: 14px; overflow: hidden; } .duelimg { width: 100%; height: 100%; object-fit: cover; }
.one { display: flex; flex-direction: column; gap: 10px; } .one h3 { font-size: clamp(28px, 2.2vw, 42px); } .one p { font-size: clamp(17px, 1.1vw, 21px); line-height: 1.5; color: var(--text2); }
.one.blue h3 { color: #A9E6FF; } .one.violet h3 { color: #D9BDFF; }
.one dl { margin-top: 8px; } .one dl div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); font-size: clamp(16px, 1vw, 19px); } .one dt { color: var(--label); } .one dd { text-align: right; }
.paths { width: 100%; padding: 100px 4vw; display: flex; flex-direction: column; align-items: center; gap: 46px; background: #04040B; overflow: hidden; }
.paths h2 { font-size: clamp(38px, 5vw, 68px); }
.pathrow { width: 100%; max-width: min(1560px, 90vw); display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1300px; }
.path { min-height: clamp(400px, 30vw, 580px); padding: 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; position: relative; overflow: hidden; border: 1px solid; }
.path .glyph { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); font-family: var(--title); font-size: clamp(180px, 15vw, 300px); line-height: 1.15; color: #fff; }
.path h3 { font-size: clamp(28px, 2.2vw, 42px); } .path p { font-size: clamp(17px, 1.1vw, 21px); line-height: 1.5; color: #DCD9EE; }
.path.l { transform: rotateY(16deg); background: linear-gradient(#0F4E9E, #061229); border-color: #4CB4FF; } .path.l .glyph { text-shadow: 0 0 44px #4CC3FF; }
.path.c { background: linear-gradient(#B32A20, #2A0709); border-color: #FF8A70; } .path.c .glyph { text-shadow: 0 0 44px #FFB08A; }
.path.r { transform: rotateY(-16deg); background: linear-gradient(#5B2BB8, #120828); border-color: #B98AFF; } .path.r .glyph { text-shadow: 0 0 44px #C69BFF; }
footer { width: 100%; padding: 30px 4vw 40px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: 15px; color: var(--label); background: #04040B; } .footword { height: 18px; }
.tokchip { display: inline-flex; align-items: center; gap: 10px; padding: 5px 5px 5px 14px; border: 1px solid var(--line); background: var(--field); } .toksym { font-weight: 600; }
.tokca { min-height: 38px; border: 0; background: none; color: var(--text2); font-family: var(--mono); font-size: 15px; } .tokca:hover { color: #fff; }
.tokbuy { min-height: 38px; display: inline-flex; align-items: center; padding: 0 16px; background: var(--seal); color: #fff; font-weight: 600; text-decoration: none; }

@media (max-width: 960px) {
  .bento { width: 92vw; min-width: 0; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .b-main, .b-card { position: relative; inset: auto; } .b-main { grid-column: 1 / -1; } .guardian { height: auto; }
  .b-text { position: static; width: auto; margin-top: 22px; } .b-text h1 { white-space: normal; font-size: clamp(34px, 9cqw, 60px); }
  .b-gate, .b-blades { height: 250px; } .b-seal { height: 100px; top: 12px; }
  .dash { grid-template-columns: 1fr; } .duel { grid-template-columns: 1fr; gap: 26px; } .duelart { order: -1; height: 240px; } .panel.big { padding: 34px 26px; } .one { width: 100%; }
  .pathrow { grid-template-columns: 1fr; } .path { min-height: 350px; } .path .glyph { font-size: 150px; } .path.l, .path.r { transform: none; }
  .rail { left: 0; right: 0; top: auto; bottom: 0; transform: none; flex-direction: row; gap: 0; background: #070B1E; border-top: 1px solid var(--line); } .rail button { flex: 1; width: auto; min-width: 0; min-height: 62px; font-size: 11px; } .rail .ja { font-size: 20px; }
  .railed main { padding: 20px 20px 110px; }
}
@media (max-width: 640px) {
  header { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 10px 14px; } .side.left { display: none; } .side.left:has(.tag) { display: flex; } .side.left .nav { display: none; } .side.right { justify-content: center; }
  .panel { padding: 28px 20px; } .b-gate, .b-blades { height: 190px; } .b-cap { padding: 40px 14px 14px; } .addrline { flex-wrap: wrap; } .amount { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .boot span { animation: none; width: 100%; opacity: .5; } }
