/* おことづけ AIエージェントプラン.
   The platform drawn in the first view, then one call per trade played against the system it moves.
   Shared with the standard page: the logo, LINE Seed JP, ink and yellow on white. Nothing else. */

@font-face { font-family: "LINE Seed JP"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/line-seed-jp-400.woff2") format("woff2"); }
@font-face { font-family: "LINE Seed JP"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/line-seed-jp-700.woff2") format("woff2"); }
@font-face { font-family: "LINE Seed JP"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/line-seed-jp-800.woff2") format("woff2"); }

:root {
  --ink: #0C0E13; --ink-2: #2E333D; --muted: #5B6270; --line: #E3E6EB; --tint: #F4F5F7; --yellow: #FFD84A; --soft: #FFF3BF; --rule: #D5D9E0; --ng: #B3261E; --ng-soft: #FCEBE9; --paper: #FAFBFC;
  --font: "LINE Seed JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --g: clamp(20px, 5vw, 72px); --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink-2); font-family: var(--font); font-size: 16px; line-height: 1.8; letter-spacing: .01em; line-break: strict; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, h4, h5, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
b, strong { font-weight: 700; }
q { quotes: "「" "」"; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph { display: inline-block; max-width: 100%; }
.w { width: min(100% - var(--g) * 2, 1200px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; font-feature-settings: "palt" 1; text-wrap: balance; word-break: auto-phrase; }
p, li { text-wrap: pretty; word-break: auto-phrase; }

/* ---------- buttons ---------- */
.go { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 0; border-radius: 4px; background: var(--ink); color: #fff; cursor: pointer; font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: .03em; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.go:hover { transform: translateY(-1px); background: #242833; }
.go-s { min-height: 42px; padding: 0 18px; font-size: 14px; }
.go-y { background: var(--yellow); color: var(--ink); }
.go-y:hover { background: #FFE27A; }
.go-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease); }
.top.is-scrolled { border-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 24px; width: auto; }
.brand span { padding-left: 12px; border-left: 1px solid var(--line); color: var(--ink); font-size: 12.5px; font-weight: 800; letter-spacing: .14em; line-height: 1.6; }

/* ---------- opening: the headline, then the platform as an architecture drawing: zones, boundaries, one call moving through ---------- */
.open { padding: clamp(44px, 6vw, 84px) 0 clamp(48px, 6vw, 80px); }
.over { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 13.5px; font-weight: 800; letter-spacing: .12em; }
.over::before { content: ""; width: 10px; height: 10px; background: var(--yellow); }
h1 { margin-top: 18px; font-size: clamp(2.4rem, 1rem + 4.8vw, 5.6rem); line-height: 1.1; }
h1 .ph { display: block; }
.open-b { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-top: clamp(20px, 2.4vw, 32px); }
.sub { max-width: 34em; color: var(--ink-2); font-size: clamp(16px, 1rem + .4vw, 20px); font-weight: 700; line-height: 1.7; }
.rig { margin: clamp(32px, 4vw, 52px) 0 0; padding: clamp(14px, 2vw, 28px); border-radius: 20px; background-color: var(--paper); background-image: radial-gradient(var(--rule) 1px, transparent 1px); background-size: 18px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.rig svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font); }
.rig-v { display: none !important; }
.rig text { fill: var(--ink); font-feature-settings: "palt" 1; }
.rig .t13 { font-size: 13px; font-weight: 800; } .rig .t14 { font-size: 14px; font-weight: 800; } .rig .t16 { font-size: 16px; font-weight: 800; } .rig .t18 { font-size: 18px; font-weight: 800; } .rig .t20 { font-size: 21px; font-weight: 800; }
.rig .sm, .rig .act { fill: var(--muted); font-size: 11.5px; font-weight: 400; }
.rig .zone { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 5; }
.rig .zone-c { fill: var(--tint); }
.rig .w { fill: none; stroke: #9AA1AD; stroke-width: 1.5; }
.rig .si { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rig .ph { fill: #fff; stroke: var(--ink); stroke-width: 3.4; stroke-linejoin: round; }
.rig .bg { fill: #fff; stroke: var(--rule); stroke-width: 1; transition: fill .22s var(--ease), stroke .22s var(--ease); }
.rig .cn.on .bg { fill: var(--yellow); stroke: var(--ink); }
.rig .cn.on .act, .rig .cn.on .sm { fill: var(--ink); }
.rig .agent .bg { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; }
.rig .wave rect { fill: var(--ink); transform-box: fill-box; transform-origin: center; animation: wave 1.1s ease-in-out infinite alternate; }
@keyframes wave { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.rig .gate circle { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.rig .pulse { fill: var(--yellow); stroke: var(--ink); stroke-width: 2; opacity: 0; transition: opacity .15s linear; }
.rig .pulse.on { opacity: 1; }

/* ---------- the systems: one call, what the agent does behind it, and what it looks at ---------- */
.sec { padding-block: clamp(64px, 8vw, 120px); background: var(--tint); }
.sec h2 { font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.3rem); line-height: 1.2; }
.l { margin-top: 16px; color: var(--ink-2); font-size: clamp(15.5px, .95rem + .3vw, 18px); line-height: 1.9; }
.l .ph { display: block; }
.eg-t { margin-top: clamp(40px, 5vw, 64px); font-size: clamp(1.2rem, 1rem + .7vw, 1.6rem); line-height: 1.4; }
html:not(.js) .trades, html:not(.js) .again, html:not(.js) .segs, html:not(.js) .prog { display: none; }
.trades { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
.trade { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px 8px 11px; border: 1px solid var(--rule); border-radius: 10px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; }
.trade span { margin-top: auto; }
.trade:hover { border-color: var(--ink); }
.trade[aria-selected="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 4px 0 -1px var(--yellow); color: var(--ink); font-weight: 800; }
.ent-ill { display: block; width: 100%; height: auto; }
.ent-ill .k { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.console { margin-top: 18px; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -48px rgba(12, 14, 19, .34); }
.run { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4.6fr) minmax(0, 5.6fr); grid-template-areas: "segs segs segs" "bar bar bar" "talk trace data" "foot foot foot"; }
.run:focus-visible { outline-offset: -4px; }
html:not(.js) .run + .run { border-top: 2px solid var(--ink); }
.run-t { grid-column: 1 / -1; padding: 14px 20px 0; font-size: 18px; }
.js .run-t { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.segs { grid-area: segs; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.seg { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-family: var(--font); font-size: 13.5px; font-weight: 700; }
.seg:hover { color: var(--ink); background: var(--tint); }
.seg[aria-pressed="true"] { background: var(--ink); color: #fff; }
.callbar { grid-area: bar; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 20px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.live { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.is-live .live { animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { background: #fff; } }
.clock { font-variant-numeric: tabular-nums; font-weight: 800; }
.bars { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.bars i { width: 2px; height: 100%; border-radius: 1px; background: var(--ink); transform: scaleY(.12); }
.is-live .bars i { animation: wave .7s ease-in-out infinite alternate; }
.run:not(.is-live) .bars { visibility: hidden; }
.caller { margin-left: auto; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
.pane { min-width: 0; }
.pane-talk { grid-area: talk; border-right: 1px solid var(--line); }
.pane-trace { grid-area: trace; border-right: 1px solid var(--line); background: var(--paper); }
.pane-data { grid-area: data; }
.pane-h { padding: 12px 20px 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.swap { display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
[data-at], [data-until] { transition: opacity .3s var(--ease); }
[data-at].wait { visibility: hidden; opacity: 0; }
[data-until] { visibility: hidden; opacity: 0; }
[data-until].show { visibility: visible; opacity: 1; }
.talk { display: grid; align-content: start; gap: 16px; padding: 14px 20px 24px; }
.talk span { display: flex; align-items: baseline; gap: 8px; }
.talk b { color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.6; }
.talk time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.talk p { margin-top: 2px; color: var(--ink); font-size: 14.5px; line-height: 1.7; }
.talk .a b { color: var(--ink); font-weight: 800; }
.talk .a b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--yellow); box-shadow: 0 0 0 1px var(--ink); vertical-align: .08em; }
.trace { position: relative; display: grid; align-content: start; gap: 12px; padding: 14px 16px 24px 20px; }
.tr { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.tr:not(:last-child)::before { content: ""; position: absolute; top: 26px; bottom: -12px; left: 12.5px; width: 1px; background: var(--rule); }
.tr.now .node { background: var(--yellow); border-color: var(--ink); }
.node { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--rule); border-radius: 50%; background: #fff; transition: background-color .25s var(--ease); }
.ic { width: 15px; height: 15px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-s { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.tr-t { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; color: var(--ink); font-size: 13.5px; font-weight: 800; line-height: 1.5; }
.tr-d { color: var(--ink-2); font-size: 12.5px; line-height: 1.55; }
.pill { padding: 0 7px; border-radius: 4px; font-size: 11px; font-style: normal; font-weight: 800; line-height: 1.7; white-space: nowrap; }
.pill.ok { background: var(--tint); color: var(--ink); }
.pill.ng { background: var(--ng-soft); color: var(--ng); }
.pill.warn { background: var(--soft); color: var(--ink); }
.pill.done { background: var(--ink); color: #fff; }
.tr-fork .node { border-radius: 6px; transform: rotate(45deg); background: var(--yellow); border-color: var(--ink); }
.tr-fork .node .ic { transform: rotate(-45deg); }
.tr-taken { position: relative; color: var(--ink); font-size: 13.5px; font-weight: 800; line-height: 1.5; }
.tr-taken::before { content: "→ "; }
.tr-skip { margin-top: 2px; }
.tr-skip li { position: relative; padding-left: 16px; color: #6F7682; font-size: 12px; line-height: 1.6; }
.tr-skip li::before { content: ""; position: absolute; top: .75em; left: 2px; width: 9px; border-top: 1px dashed #9AA1AD; }
.wins { display: grid; align-content: start; gap: 10px; padding: 12px 20px 22px; }
.win { min-width: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; }
.win.now { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.win-h { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.5; letter-spacing: 0; }
.win-h b { color: var(--ink); font-size: 12.5px; font-weight: 800; }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
th { padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; text-align: left; white-space: nowrap; }
td { padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; transition: background-color .3s var(--ease); }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 700; }
tr[data-hit]:not(.wait) td { background: var(--soft); color: var(--ink); }
td .ng { color: var(--ng); font-weight: 700; }
td .warn { color: var(--ink); font-weight: 700; }
td .new { color: var(--ink); font-weight: 800; }
.rec { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; }
.rec div { padding: 7px 12px 9px; border-right: 1px solid var(--line); }
.rec div:last-child { border-right: 0; }
.rec dt { color: var(--muted); font-size: 11px; line-height: 1.5; }
.rec dd { margin: 0; color: var(--ink); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.clause { padding: 9px 12px 11px; color: var(--ink-2); font-size: 12.5px; line-height: 1.75; }
mark { padding: .1em .15em; background: var(--soft); color: var(--ink); font-weight: 700; }
.win-msg { border-color: var(--ink); }
.msg { padding: 9px 12px 11px; color: var(--ink); font-size: 13px; line-height: 1.7; }
.run-foot { grid-area: foot; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; padding: 12px 20px; border-top: 1px solid var(--ink); color: var(--ink-2); font-size: 13px; line-height: 1.6; }
.run-foot b { color: var(--ink); font-size: 16px; font-weight: 800; }
.console-b { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.prog { position: absolute; top: -1px; left: 0; right: 0; height: 2px; }
.prog i { display: block; height: 100%; background: var(--yellow); transform: scaleX(1); transform-origin: left; transition: transform .3s linear; }
.console-b p { flex: 1 1 24em; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.again { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 700; }
.again:hover { background: var(--tint); }

/* ---------- the ground: facts on ink ---------- */
.trust { padding-block: clamp(72px, 9vw, 130px); background: var(--ink); color: #D5D9E0; }
.trust h2 { color: #fff; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1.15; }
.trust-l { margin-top: 18px; max-width: 36em; color: #D5D9E0; font-size: clamp(15.5px, .95rem + .3vw, 18px); line-height: 1.9; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 52px); }
.facts li { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(255, 255, 255, .04); }
.facts b { color: var(--yellow); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.facts span { color: #D5D9E0; font-size: 14px; line-height: 1.75; }
.nda { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 10px 14px; align-items: baseline; margin-top: 14px; padding: 22px 22px 24px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; background: rgba(255, 255, 255, .04); }
.nda b { color: var(--yellow); font-size: clamp(1.2rem, 1rem + .7vw, 1.55rem); font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.nda p { color: #D5D9E0; font-size: 14px; line-height: 1.75; }

/* ---------- the ask: three steps on one rule, who is behind it, one action ---------- */
.ask { padding-block: clamp(64px, 9vw, 130px) clamp(56px, 7vw, 96px); background: #fff; }
.ask h2 { font-size: clamp(2rem, 1.1rem + 3vw, 4rem); line-height: 1.15; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(28px, 4vw, 48px); border-top: 2px solid var(--ink); }
.steps li { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 18px 16px 0 0; color: var(--ink); font-size: clamp(15px, .9rem + .35vw, 18px); font-weight: 800; line-height: 1.5; }
.steps li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.steps b { color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.steps small { color: var(--muted); font-size: 13px; font-weight: 400; }
.ask-b { margin-top: clamp(36px, 5vw, 64px); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ask-n { margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.mail { color: var(--ink); font-size: 16px; font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); overflow-wrap: anywhere; }

/* ---------- footer: the same as the standard page's ---------- */
.ft { padding: 64px 0 36px; background: var(--ink); color: #9AA1AD; font-size: 13px; line-height: 1.9; }
.ft p { margin: 0; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 32px 56px; }
.ft-brand img { height: 30px; width: auto; }
.ft-brand p { margin-top: 14px; }
.ft-nav { display: grid; grid-template-columns: repeat(2, auto); grid-template-rows: repeat(5, auto); grid-auto-flow: column; justify-content: start; gap: 6px 36px; align-content: start; }
.ft-nav a, .ft-co a { color: #DDE1E7; text-decoration: none; }
.ft-nav a:hover, .ft-co a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.ft-co p > a { text-decoration: underline; text-underline-offset: 4px; }
.ft-co { justify-self: end; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; }
.ft-bottom small { font-size: 12px; }
.ft :focus-visible { outline-color: var(--yellow); }

/* ---------- in-app browsers: the form needs a Google sign-in ---------- */
.iab { width: min(100% - 24px, 520px); max-width: none; margin: auto auto 12px; padding: 28px 22px calc(20px + env(safe-area-inset-bottom)); border: 0; border-radius: 6px; background: #fff; color: var(--ink-2); }
.iab::backdrop { background: rgba(12, 14, 19, .5); }
.iab h2 { padding-right: 36px; font-size: 18px; line-height: 1.5; letter-spacing: 0; }
.iab p { margin-top: 12px; font-size: 14.5px; line-height: 1.8; }
.iab-url { width: 100%; margin-top: 12px; padding: 10px; font-size: 13px; }
.iab-actions { display: grid; gap: 10px; margin-top: 20px; }
.iab-actions .go { width: 100%; }
.iab-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); font-size: 22px; cursor: pointer; }

/* ---------- widths ---------- */
@media (max-width: 1100px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nda { grid-template-columns: minmax(0, 1fr); }
  .run { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); grid-template-areas: "segs segs" "bar bar" "talk trace" "data data" "foot foot"; }
  .pane-trace { border-right: 0; }
  .pane-data { border-top: 1px solid var(--line); }
  .wins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trades { grid-template-columns: repeat(8, 112px); overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
}
@media (max-width: 960px) {
  .rig-h { display: none !important; }
  .rig-v { display: block !important; max-width: 480px; margin-inline: auto; }
  .rig text { font-feature-settings: normal; }
}
@media (max-width: 760px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-co { justify-self: start; }
  .run { grid-template-columns: minmax(0, 1fr); grid-template-areas: "segs" "bar" "talk" "trace" "data" "foot"; }
  .pane-talk { border-right: 0; }
  .pane-trace { border-top: 1px solid var(--line); }
  .wins { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .brand span { display: none; }
  .open { padding-top: 36px; }
  h1 { font-size: clamp(1.7rem, 8.6vw, 2.4rem); }
  .open-b .go, .acts .go { width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .caller { display: none; }
  .talk, .wins { padding-inline: 16px; }
  .trace { padding-inline: 16px; }
  .pane-h, .callbar, .run-foot, .console-b { padding-inline: 16px; }
  .steps { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--ink); margin-left: 6px; }
  .steps li { padding: 0 0 18px 18px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { top: 6px; left: -7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rig .wave rect, .is-live .bars i, .is-live .live { animation: none; }
  .go, .rig .bg, [data-at], [data-until], td, .node, .prog i { transition: none; }
}

/* Promo videos: the first case of each trade as a 30-second video with voices, played in one dialog (main.js). */
.movies { margin-top: clamp(48px, 6vw, 80px); }
.movies-t { color: var(--ink); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 800; line-height: 1.4; }
.movies-l { margin-top: 10px; font-size: 15px; }
.movie-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 16px; margin-top: 24px; }
.movie { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--ink); box-shadow: 0 20px 40px -30px rgba(12, 14, 19, .5); }
.movie img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.movie:hover img { transform: scale(1.03); }
.movie-play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.movie-play svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--ink); }
.movie-len { position: absolute; top: 10px; right: 10px; padding: 0 9px; border-radius: 999px; background: rgba(12, 14, 19, .8); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.8; }
.movie-cap { margin-top: 10px; color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.6; }
@media (max-width: 900px) { .movie-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mv { max-width: none; max-height: none; margin: auto; padding: 0; overflow: visible; border: 0; background: transparent; }
.mv::backdrop { background: rgba(12, 14, 19, .88); }
.mv video { display: block; border-radius: 12px; background: #000; }
.mv[data-o="v"] video { height: min(88vh, (100vw - 32px) * 16 / 9); aspect-ratio: 9 / 16; }
.mv[data-o="h"] video { width: min(100vw - 32px, 1180px, 88vh * 16 / 9); aspect-ratio: 16 / 9; }
.mv-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
