/* ARISAN — index only. "The page is the table."
 * Loaded after styles.css, only by index.html. Every rule is scoped to body.ix or to
 * new ix-* classes, so rounds.html and flash.html (which share styles.css) are untouched.
 */

/* ============ room ambience ============ */
body.ix { background: var(--paper); }
.ix-main { position: relative; }

/* ============ RIM: brand + nav as a thin edge ============ */
.ix-rim {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  max-width: 1440px; margin: 0 auto; padding: 10px 28px;
  border-bottom: 1px solid var(--line);
}
.ix-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 17px/1 var(--f-display); letter-spacing: .04em; view-transition-name: turn-brand; }
.ix-nav { display: flex; gap: 2px; margin-left: auto; }
.ix-nav a { text-decoration: none; font: 500 13.5px/1 var(--f-text); color: var(--ink-2); padding: 9px 10px; border-radius: 999px; transition: background .2s, color .2s; }
.ix-nav a:hover { background: var(--paper-2); color: var(--ink); }
.ix-rim-live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; padding-left: 14px; border-left: 1px solid var(--line); }
.ix-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 0 rgba(196,80,47,.5); animation: ix-live 2s ease-out infinite; }
@keyframes ix-live { 0% { box-shadow: 0 0 0 0 rgba(196,80,47,.45); } 100% { box-shadow: 0 0 0 9px rgba(196,80,47,0); } }

/* ============ THE RAIL (page spine) ============ */
.ix-spine { --p: 0; z-index: 25; }
.ix-spine ol { list-style: none; margin: 0; padding: 0; }
.ix-spine a { text-decoration: none; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.ix-st-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--line); flex: none; transition: background .3s, border-color .3s, transform .3s; }
.ix-st-code { font: 600 11px/1 var(--f-mono); letter-spacing: .06em; }
.ix-st-name { font: 500 12.5px/1 var(--f-text); white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.ix-spine li.is-past .ix-st-dot { background: var(--pine); border-color: var(--pine); }
.ix-spine li.is-here .ix-st-dot { border-color: var(--ink); background: var(--ink); transform: scale(1.15); }
.ix-spine li.is-here a { color: var(--ink); }
.ix-spine li.is-here .ix-st-name, .ix-spine a:hover .ix-st-name, .ix-spine a:focus-visible .ix-st-name { opacity: 1; transform: none; }
/* the live table's round: a clay ring around its station */
.ix-spine li.is-live .ix-st-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--clay); animation: ix-ring 2.2s ease-out infinite; }
@keyframes ix-ring { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.5); } }
.ix-spine-track { position: absolute; background: var(--line); border-radius: 2px; }
.ix-spine-fill { position: absolute; background: var(--pine); border-radius: 2px; }
.ix-spine-train { position: absolute; background: var(--brass); border: 2px solid var(--table-edge); border-radius: 6px; }

@media (min-width: 1000px) {
  .ix-spine { position: fixed; left: 22px; top: 50%; transform: translateY(-50%); height: min(56vh, 440px); width: 130px; }
  .ix-spine ol { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
  .ix-spine-track { left: 6px; top: 7px; bottom: 7px; width: 3px; }
  .ix-spine-fill { left: 0; top: 0; width: 100%; height: calc(var(--p) * 100%); }
  .ix-spine-train { left: -5.5px; width: 14px; height: 22px; top: calc(var(--p) * (100% - 22px)); transition: top .2s ease-out; }
  .ix-main { padding-left: 120px; }
  .ix-rim { padding-left: 32px; }
}
@media (max-width: 999.98px) {
  /* a horizontal strip that sticks under the top of the screen */
  .ix-main > section { scroll-margin-top: 64px; }      /* anchors land below the sticky rail */
  .ix-spine { position: sticky; top: 0; background: rgba(243,235,221,.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .ix-spine ol { position: relative; display: flex; justify-content: space-between; }
  .ix-spine a { flex-direction: column; gap: 4px; padding: 2px 4px; min-width: 32px; }
  .ix-st-name { display: none; }
  .ix-spine-track { left: 16px; right: 16px; top: 7.5px; height: 3px; }
  .ix-spine-fill { left: 0; top: 0; height: 100%; width: calc(var(--p) * 100%); }
  .ix-spine-train { top: -5px; width: 20px; height: 13px; left: calc(var(--p) * (100% - 20px)); transition: left .2s ease-out; }
}

/* ============ R1 · THE ROOM ============ */
.ix-room {
  position: relative; max-width: 1440px; margin: 0 auto; padding: 18px 28px 0;
  background:
    radial-gradient(60% 55% at 50% 42%, #fbf4e6 0%, rgba(251,244,230,0) 70%),
    radial-gradient(120% 90% at 50% 40%, var(--paper) 40%, #e7d9c0 100%);
  border-bottom: 1px solid var(--line);
}
.ix-room-grid { display: grid; grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(230px, 280px); gap: 24px; align-items: center; }
.ix-table-col { min-width: 0; }
/* the table dominates: as big as the screen height allows */
.ix #hero-table .table-stage { max-width: max(300px, min(640px, calc(100vh - 360px), 100%)); }
.ix #hero-table .rail { display: none; }                 /* the rail is now the page spine */
.ix #hero-table .tw-head { justify-content: center; }
.ix #hero-table .legend { margin-top: 6px; font-size: 12.5px; }
.ix #hero-table .tw-controls { margin-top: 6px; }

.ix-inst { min-width: 0; display: grid; gap: 22px; align-content: center; }
.ix-h1 { font: 500 clamp(24px, 2.1vw, 30px)/1.12 var(--f-display); letter-spacing: -.01em; margin: 0; font-variation-settings: "SOFT" 100; }
.ix-label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font: 600 11px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ix-label-note { font-weight: 500; letter-spacing: .04em; text-transform: none; opacity: .8; }
.ix-readout { border-top: 1.5px solid var(--ink); padding-top: 10px; }
.ix-pot { margin: 6px 0 2px; font: 500 clamp(40px, 3.6vw, 56px)/1 var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ix-pot small { font: 600 14px/1 var(--f-mono); margin-left: 8px; color: var(--ink-2); letter-spacing: .06em; }
.ix-sub { font: 500 12.5px/1.3 var(--f-mono); color: var(--ink-2); }
.ix-next { margin: 8px 0 2px; font: 600 16px/1.3 var(--f-text); }
.ix-next-left { margin: 0 0 8px; font: 500 14px/1.3 var(--f-mono); color: var(--ink-2); }
.ix-next-left span { color: var(--ink); font-weight: 600; }
.ix-bar { display: block; height: 4px; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.ix-bar i { display: block; height: 100%; background: var(--brass); transform-origin: left; }
.ix-room.is-urgent .ix-bar i { background: var(--clay); }
.ix-room.is-urgent .ix-next-left span { color: var(--clay); }
.ix-cta { display: flex; flex-wrap: wrap; gap: 8px; }

/* up next */
.ix-queue { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; border-top: 1.5px solid var(--ink); }
.ix-queue li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.ix-q-seat { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--f-display); background: var(--paper-3); border: 2px solid var(--dusk); }
.ix-q-addr { font: 500 12px/1 var(--f-mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-q-st { font: 600 10.5px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ix-queue li.is-now .ix-q-seat { border-color: var(--clay); background: var(--clay-soft); }
.ix-queue li.is-now .ix-q-st { color: var(--clay); }
.ix-queue li.is-next .ix-q-seat { border-color: var(--clay); border-style: dashed; }
.ix-queue li.is-paid { opacity: .55; }
.ix-queue li.is-paid .ix-q-seat { border-color: var(--brass); background: #f6e3b4; }
.ix-queue li.is-now { animation: ix-row-in .5s cubic-bezier(.2,.7,.2,1); }
@keyframes ix-row-in { from { opacity: 0; transform: translateY(-6px); } }
.ix-fine { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0; }

/* Join demo: the seats take their places one after another */
.ix-room.demo-join #hero-table .seat-body { animation: ix-sit .55s cubic-bezier(.3,1.5,.5,1) backwards; animation-delay: calc(var(--i, 0) * 140ms); }
@keyframes ix-sit { from { transform: scale(.4); opacity: 0; } }

/* ============ how it works: the tab rim ============ */
.ix-how { max-width: 980px; margin: 14px auto 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.ix-tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border-radius: 999px; }
.ix-tab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 600 14px/1 var(--f-text); padding: 12px 16px; border-radius: 999px; min-height: 44px;
  transition: background .25s, color .25s;
}
.ix-tab:hover { color: var(--ink); }
.ix-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.ix-tab-n { font: 600 11px/1 var(--f-mono); opacity: .7; }
.ix-tab-bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(243,235,221,.15); opacity: 0; }
.ix-tab-bar i { display: block; height: 100%; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.ix-tab.is-running .ix-tab-bar { opacity: 1; }
@keyframes ix-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ix-panels { min-height: 3.2em; }
.ix-panel { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); animation: ix-panel-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes ix-panel-in { from { opacity: 0; transform: translateY(6px); } }

/* ============ live feed ticker ============ */
.ix-ticker { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; margin: 0 -28px; padding: 12px 28px; background: var(--ink); color: var(--paper); }
.ix-ticker-label { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.ix-feed {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; overflow: hidden; white-space: nowrap; min-width: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 75%, transparent); mask-image: linear-gradient(90deg, #000 75%, transparent);
}
.ix-feed li { display: inline-flex; gap: 8px; align-items: baseline; flex: none; font: 500 13px/1.4 var(--f-mono); color: rgba(243,235,221,.82); }
.ix-feed li time { color: rgba(243,235,221,.5); font-size: 11.5px; }
.ix-feed li .ev-settle { color: #f0c66a; font-weight: 600; }
.ix-feed li .ev-claim { color: #8fd1bf; }
.ix-feed li .ev-default { color: #c9a9a0; text-decoration: line-through; }
.ix-feed li.is-new { animation: ix-feed-in .5s cubic-bezier(.2,.7,.2,1); }
@keyframes ix-feed-in { from { opacity: 0; transform: translateX(-16px); } }

/* ============ shared section frame below the fold ============ */
.ix-sec { max-width: 1180px; margin: 0 auto; padding: 110px 28px; }
.ix-sec h2 { font: 500 clamp(30px, 3.6vw, 48px)/1.06 var(--f-display); letter-spacing: -.015em; font-variation-settings: "SOFT" 100; margin: 10px 0 14px; }

/* ============ R2 · VAULT SLIP (custody) ============ */
.ix-vault-grid { display: grid; grid-template-columns: minmax(0, 660px) minmax(220px, 300px); gap: 56px; align-items: start; justify-content: center; }
.ix-slip {
  position: relative; background: #fbf7ee; color: var(--ink);
  padding: 34px 40px 30px; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -28px rgba(31,26,21,.35);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(94,82,70,.06) 31px 32px);
}
.ix-slip::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: rgba(196,80,47,.35); }
.ix-slip-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 600 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); padding-bottom: 14px; border-bottom: 1.5px dashed var(--ink-2); }
.ix-slip h2 { margin-top: 22px; }
.ix-slip-intro { font-size: 16px; color: var(--ink-2); max-width: 36em; }
.ix-clauses { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ix-clause { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; transition: opacity .35s, color .35s; }
.ix-cl-n { font: 600 20px/1.2 var(--f-mono); color: var(--ink-2); transition: color .35s; }
.ix-clause b { font-weight: 700; }
.ix-scrolly .ix-clause { opacity: .42; }
.ix-scrolly .ix-clause.is-read { opacity: .72; }
.ix-scrolly .ix-clause.is-active { opacity: 1; }
.ix-clause.is-active .ix-cl-n { color: var(--clay); }
.ix-slip-unit { margin: 18px 0 0; padding: 12px 14px; background: var(--paper-2); font: 500 13px/1.55 var(--f-mono); color: var(--ink); border-radius: 4px; }
.ix-slip-unit span { display: block; font-weight: 600; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ix-slip-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; font: 500 13px/1.4 var(--f-mono); color: var(--ink-2); }
.ix-slip-foot i { font-style: normal; border-bottom: 1px solid var(--ink-2); padding: 0 18px 2px 4px; }
.ix-stamp { display: inline-block; font: 700 12px/1.25 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--clay); border: 2.5px solid var(--clay); border-radius: 6px; padding: 8px 12px; transform: rotate(-6deg); opacity: .9; max-width: 15em; text-align: center; }
.ix-exits { position: sticky; top: 90px; display: grid; gap: 14px; padding-top: 34px; }
.ix-exits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.ix-exits li { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.ix-exits li b { font: 600 15px/1.3 var(--f-text); }
.ix-exits li span { font: 500 12.5px/1.4 var(--f-mono); color: var(--ink-2); }

/* ============ R3 · FLASH GATE ============ */
.ix-gate-sec { padding-top: 40px; }
.ix-gate-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: 56px; align-items: end; }
.ix-gate-copy p { font-size: 17px; color: var(--ink-2); max-width: 30em; }
.ix-gate {
  position: relative; display: block; height: 520px; overflow: hidden; text-decoration: none; color: var(--paper);
  border-radius: 999px 999px 14px 14px; border: 10px solid var(--table);
  background: radial-gradient(70% 55% at 50% 78%, rgba(240,198,106,.55), rgba(196,80,47,.25) 45%, transparent 70%), var(--ink);
  box-shadow: 0 30px 60px -30px rgba(31,26,21,.6), inset 0 0 0 2px var(--table-edge);
}
.ix-door { position: absolute; top: 0; bottom: 0; width: 26%; background: repeating-linear-gradient(90deg, #5a3523 0 14px, #6b3f2a 14px 28px); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ix-door-l { left: 0; box-shadow: inset -3px 0 0 rgba(0,0,0,.25); }
.ix-door-r { right: 0; box-shadow: inset 3px 0 0 rgba(0,0,0,.25); }
.ix-gate:hover .ix-door-l, .ix-gate:focus-visible .ix-door-l { transform: translateX(-70%); }
.ix-gate:hover .ix-door-r, .ix-gate:focus-visible .ix-door-r { transform: translateX(70%); }
.ix-gate-in { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 70px 30% 40px; }
.ix-gate-clock { font: 600 46px/1 var(--f-mono); letter-spacing: -.02em; color: #ffe3a3; text-shadow: 0 0 24px rgba(240,198,106,.5); }
.ix-gate-stats { display: grid; gap: 4px; font: 500 12.5px/1.3 var(--f-mono); color: rgba(243,235,221,.8); }
.ix-gate-go { display: inline-block; margin-top: 6px; padding: 11px 16px; border-radius: 999px; background: var(--clay); color: #fff; font: 600 14px/1 var(--f-text); white-space: nowrap; }
.ix-gate:hover .ix-gate-go { background: #a8421f; }

/* ============ R4 · 3D display case ============ */
.ix-case-sec { padding-top: 60px; }
.ix-case-head { max-width: 640px; }
.ix-case-head p { color: var(--ink-2); font-size: 16.5px; }
.ix .table-3d model-viewer { height: min(600px, 74vh); border-radius: 22px; background: radial-gradient(60% 60% at 50% 40%, #2a1f17, #120d0a); box-shadow: 0 30px 70px -40px rgba(31,26,21,.7); }

/* ============ R5 · SEAT TICKET (token) ============ */
.ix-ticket-sec { display: grid; place-items: center; }
.ix-ticket {
  --notch: var(--paper);
  position: relative; width: min(860px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 190px;
  background: linear-gradient(180deg, #fbf3e1, #f5e9d1); border: 1px solid #d7c19a; border-radius: 16px;
  box-shadow: 0 26px 60px -34px rgba(31,26,21,.5);
}
.ix-ticket-main { padding: 34px 40px; min-width: 0; }
.ix-ticket h2 { font-size: clamp(44px, 5.6vw, 76px); margin: 8px 0 6px; }
.ix-ticket-line { font-size: 17px; margin-bottom: 18px; }
.ix-ticket-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 18px; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.ix-ticket-facts div { padding: 10px 10px 10px 0; min-width: 0; }
.ix-ticket-facts dt { font: 600 10.5px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.ix-ticket-facts dd { margin: 4px 0 0; font: 600 14px/1.3 var(--f-mono); overflow-wrap: anywhere; }
.ix-ticket-stub { position: relative; display: grid; align-content: center; justify-items: center; gap: 4px; padding: 26px 16px; border-left: 2px dashed #c9ad7c; background: rgba(217,162,58,.12); border-radius: 0 16px 16px 0; text-align: center; }
.ix-ticket-stub::before, .ix-ticket-stub::after { content: ""; position: absolute; left: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--notch); border: 1px solid #d7c19a; }
.ix-ticket-stub::before { top: -15px; } .ix-ticket-stub::after { bottom: -15px; }
.ix-stub-k { font: 600 10.5px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-top: 8px; }
.ix-stub-v { font: 500 40px/1 var(--f-display); }
.ix-stub-small { font: 600 14px/1.2 var(--f-mono); }
.ix-ticket-stub img { margin-top: 12px; opacity: .85; }
@media (min-width: 1000px) {
  .ix-ticket { transform: rotate(-1.5deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
  .ix-ticket:hover { transform: rotate(0deg); }
}

/* ============ R6 · RECEIPT (honesty) closes the page ============ */
.ix-receipt-sec { padding-bottom: 80px; display: grid; justify-items: center; }
.ix-receipt {
  position: relative; width: min(440px, 100%); background: #fffdf7; color: var(--ink);
  font: 500 13.5px/1.5 var(--f-mono); padding: 30px 28px 34px; margin: 14px 0;
  box-shadow: 0 30px 50px -36px rgba(31,26,21,.55);
}
/* torn, perforated top and bottom edges */
.ix-receipt::before, .ix-receipt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: radial-gradient(circle at 7px 0, transparent 6px, #fffdf7 6.5px) 0 0 / 14px 12px repeat-x;
}
.ix-receipt::before { top: -12px; transform: scaleY(-1); }
.ix-receipt::after { bottom: -12px; }
.ix-rc-head { display: grid; justify-items: center; gap: 6px; text-align: center; padding-bottom: 16px; border-bottom: 1.5px dashed var(--ink-2); }
.ix-rc-head h2 { font: 600 26px/1 var(--f-display); letter-spacing: .12em; margin: 4px 0 0; }
.ix-rc-head > span:not(.sim-pill) { font-size: 12px; color: var(--ink-2); letter-spacing: .04em; }
.ix-rc-sec { margin: 18px 0 6px; font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.ix-rc-lines { list-style: none; margin: 0; padding: 0; }
/* label · dotted leader · value; the label may wrap, the leader fills what is left */
.ix-rc-lines li, .ix-rc-total { display: flex; align-items: flex-end; gap: 6px; padding: 3px 0; }
.ix-rc-lines li span, .ix-rc-total span { order: 1; flex: 0 1 auto; min-width: 0; }
.ix-rc-lines li::before, .ix-rc-total::before { content: ""; order: 2; flex: 1 1 14px; min-width: 14px; border-bottom: 2px dotted var(--line); margin-bottom: .42em; }
.ix-rc-lines li b, .ix-rc-total b { order: 3; flex: none; max-width: 46%; text-align: right; font-weight: 600; }
.ix-rc-total { margin-top: 14px; padding-top: 10px; border-top: 1.5px solid var(--ink); font-size: 14.5px; }
.ix-rc-total b { font-size: 18px; }
.ix-rc-foot { display: grid; justify-items: center; gap: 4px; margin-top: 22px; padding-top: 16px; border-top: 1.5px dashed var(--ink-2); text-align: center; font-size: 12px; color: var(--ink-2); }
.ix-rc-foot nav { margin-top: 6px; }
.ix-rc-foot a { color: var(--ink); padding: 6px 2px; display: inline-block; }
/* prints line by line */
.ix-receipt.is-waiting .ix-rc-lines li, .ix-receipt.is-waiting .ix-rc-sec, .ix-receipt.is-waiting .ix-rc-total { opacity: 0; transform: translateY(-4px); }
.ix-receipt.is-printed .ix-rc-lines li, .ix-receipt.is-printed .ix-rc-sec, .ix-receipt.is-printed .ix-rc-total { animation: ix-print .4s steps(4, end) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes ix-print { from { opacity: 0; transform: translateY(-4px); } }

/* ============ sticky companion: the table, small ============ */
.ix-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; grid-template-columns: 56px auto; gap: 12px; align-items: center;
  padding: 10px 16px 10px 10px; border-radius: 18px; text-decoration: none;
  background: var(--ink); color: var(--paper); box-shadow: 0 18px 40px -16px rgba(31,26,21,.6);
  opacity: 0; transform: translateY(24px) scale(.96); pointer-events: none; visibility: hidden;
  transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s .45s;
}
.ix-dock.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .35s, transform .45s cubic-bezier(.2,.7,.2,1); }
.ix-dock-mini svg { width: 56px; height: 56px; display: block; }
.ix-dock-txt { display: grid; gap: 3px; font: 500 12px/1.3 var(--f-mono); color: rgba(243,235,221,.8); }
.ix-dock-txt b { font: 600 13.5px/1.2 var(--f-text); color: var(--paper); }

/* ============ responsive ============ */
@media (max-width: 1180px) {
  .ix-room-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "table table" "left right"; }
  .ix-table-col { grid-area: table; }
  .ix-inst-left { grid-area: left; align-content: start; }
  .ix-inst-right { grid-area: right; align-content: start; }
  .ix #hero-table .table-stage { max-width: max(300px, min(620px, calc(100vh - 300px), 100%)); }
}
@media (max-width: 900px) {
  .ix-vault-grid, .ix-gate-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ix-exits { position: static; padding-top: 0; }
  .ix-gate { height: 440px; }
  .ix-sec { padding: 72px 20px; }
}
@media (max-width: 720px) {
  .ix-rim { flex-wrap: wrap; gap: 6px 12px; padding: 8px 16px; }
  .ix-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .ix-nav a { padding: 10px 6px; font-size: 13px; }
  .ix-rim-live { margin-left: auto; }
  /* phone order: table, then the tabs that drive it, then its instruments, feed, queue */
  .ix-room { padding: 10px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
  .ix-room-grid { display: contents; }
  .ix-table-col { order: 1; }
  .ix-how { order: 2; margin-top: 0; }
  .ix-inst-left { order: 3; }
  .ix-ticker { order: 4; }
  .ix-inst-right { order: 5; }
  .ix-cta .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .ix #hero-table .table-stage { max-width: 100%; }
  .ix-h1 { font-size: 24px; }
  .ix-how { grid-template-columns: minmax(0, 1fr); }
  .ix-tabs { width: 100%; }
  .ix-tab { flex: 1 1 0; justify-content: center; padding: 12px 8px; font-size: 13px; min-width: 0; }
  .ix-tab-n { display: none; }
  .ix-ticker { margin: 0 -16px; padding: 10px 16px; grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ix-slip { padding: 26px 20px 24px 30px; }
  .ix-slip::before { left: 14px; }
  .ix-clause { grid-template-columns: 38px minmax(0, 1fr); }
  .ix-cl-n { font-size: 16px; }
  .ix-gate { height: 400px; border-width: 8px; }
  .ix-door { width: 13%; }
  .ix-gate-in { padding: 60px 16% 34px; }
  .ix-gate-clock { font-size: 34px; }
  .ix-gate-go { white-space: normal; }
  .ix-ticket { grid-template-columns: minmax(0, 1fr); }
  .ix-ticket-main { padding: 26px 22px; }
  .ix-ticket-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ix-ticket-stub { border-left: 0; border-top: 2px dashed #c9ad7c; border-radius: 0 0 16px 16px; grid-template-columns: repeat(2, auto); column-gap: 18px; justify-content: center; }
  .ix-ticket-stub::before, .ix-ticket-stub::after { top: -15px; bottom: auto; }
  .ix-ticket-stub::before { left: -15px; } .ix-ticket-stub::after { left: auto; right: -15px; }
  .ix-ticket-stub img { display: none; }
  .ix-receipt { padding: 26px 18px 30px; }
  .ix-receipt-sec { padding-bottom: 120px; }            /* room for the docked mini table */
  .ix-dock { left: 12px; right: 12px; bottom: 12px; grid-template-columns: 44px minmax(0, 1fr); }
  .ix-dock-mini svg { width: 44px; height: 44px; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  .ix-live-dot, .ix-spine li.is-live .ix-st-dot::after, .ix-room.demo-join #hero-table .seat-body,
  .ix-panel, .ix-feed li.is-new, .ix-queue li.is-now, .ix-receipt.is-printed .ix-rc-lines li,
  .ix-receipt.is-printed .ix-rc-sec, .ix-receipt.is-printed .ix-rc-total { animation: none !important; }
  .ix-spine-train, .ix-st-dot, .ix-st-name, .ix-door, .ix-dock, .ix-ticket, .ix-clause { transition: none !important; }
  .ix-gate:hover .ix-door-l, .ix-gate:hover .ix-door-r { transform: none; }
  .ix-spine li.is-live .ix-st-dot::after { opacity: 1; transform: none; }
}

/* =====================================================================
 * REF3 pass (Cofer / OpenBot / Olam teardown, 19 Nov 2026)
 * header CA pill + app button, status meta row, FIG bar + Plan/3D on the stage, lobby strip.
 * ===================================================================== */
.ix [hidden] { display: none !important; }
.ix-rim .ca-pill { margin-left: 4px; }
.ix-rim .btn-app { min-height: 38px; padding: 0 15px; font-size: 13px; }
.ix-inst-left .meta-row { margin-top: 4px; }

.ix-table-col.xh { padding: 6px 4px 0; }
.ix-fig-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px 6px; }
.ix-view { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-3); }
.ix-view button { border: 0; background: none; min-height: 32px; min-width: 52px; padding: 0 12px; border-radius: 999px; font: 600 12px/1 var(--f-mono); letter-spacing: .06em; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.ix-view button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.ix-3d { position: relative; margin: 4px auto 0; max-width: 640px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(60% 60% at 50% 40%, #2a1f17, #120d0a); box-shadow: 0 30px 70px -40px rgba(31,26,21,.7);
  animation: ix3d-in .5s cubic-bezier(.2,.7,.3,1) both; }
.ix-3d model-viewer { width: 100%; height: min(560px, calc(100vh - 300px)); min-height: 340px; display: block; background: transparent; position: relative; z-index: 1; }
.ix-3d-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: blur(2px); }
.ix-3d.is-ready .ix-3d-poster { display: none; }
.ix-3d.is-loading::after { content: "Loading the model…"; position: absolute; inset: auto 0 50% 0; text-align: center; color: var(--paper); font: 500 12px var(--f-mono); letter-spacing: .08em; z-index: 2; }
.ix-3d.is-failed::after { content: "The 3D model could not load here. The live plan still works."; position: absolute; inset: auto 16px 50% 16px; text-align: center; color: var(--paper); font: 500 13px var(--f-text); z-index: 2; }
.ix-3d-cap { position: relative; z-index: 1; margin: 0; padding: 12px 18px 16px; color: rgba(243,235,221,.78); font-size: 13px; line-height: 1.5; border-top: 1px solid rgba(243,235,221,.1); }
@keyframes ix3d-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* lobby strip */
.ix-lobby-sec { padding-top: 70px; }
.ix-lobby-head { max-width: 640px; }
.ix-lobby-head h2 { font: 500 clamp(32px, 4vw, 48px)/1.04 var(--f-display); margin: 12px 0 10px; font-variation-settings: "SOFT" 60; }
.ix-lobby-head p { color: var(--ink-2); font-size: 16.5px; margin: 0; }
.ix-lobby { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.ix-room-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper-3);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s; }
.ix-room-card:hover { transform: translateY(-4px); border-color: var(--ink-2); box-shadow: 0 20px 40px -26px rgba(31,26,21,.6); }
.ix-rc-fig { position: relative; height: 132px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 120%, rgba(217,162,58,.32), transparent 60%), #2a1d14; }
.ix-rc-fig .fig { position: absolute; top: 10px; left: 12px; color: rgba(243,235,221,.6); }
.ix-rc-mini svg { width: 100px; height: 100px; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.ix-room-card:hover .ix-rc-mini svg { transform: rotate(45deg); }
.ix-rc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 16px; flex: 1; }
.ix-rc-body b { font: 600 16.5px/1.25 var(--f-display); }
.ix-rc-st { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1.2 var(--f-mono); color: var(--ink-2); }
.ix-rc-st i { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.ix-rc-st.is-live i { background: var(--pine); animation: live-pulse 2.4s ease-out infinite; }
.ix-rc-meta { font-size: 13px; color: var(--ink-2); }
.ix-rc-go { margin-top: auto; padding-top: 8px; font: 600 13.5px/1 var(--f-text); color: var(--clay); }
.ix-steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px dashed var(--line); }
.ix-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; padding: 16px 18px 0 0; }
.ix-steps span { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 13px/1 var(--f-mono); }
.ix-steps b { font: 600 15px/1.3 var(--f-text); }
.ix-steps em { font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.ix-lobby-cta { margin-top: 24px; }
.ix-lobby-cta .btn-app { min-height: 46px; padding: 0 22px; font-size: 14.5px; }

@media (max-width: 1100px) { .ix-lobby { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .ix-rim .btn-app { order: 2; }
  .ix-fig-bar { padding: 0 6px 6px; }
  .ix-fig-bar .fig { font-size: 9.5px; }
  .ix-steps { grid-template-columns: minmax(0, 1fr); }
  .ix-lobby { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .ix-rc-fig { height: 108px; }
  .ix-rc-mini svg { width: 80px; height: 80px; }
  .ix-rc-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ix-3d { animation: none; } .ix-rc-mini svg, .ix-room-card { transition: none; } }
.ix-inst-left .meta-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 12px; }
.ix-inst-left .meta-row > div:nth-child(3) { padding-left: 0; border-left: 0; }

/* R3 trust pass: ticket actions + status board states */
.ix-ticket-act { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.ix-ticket-act:empty { display: none; }
.ix-ticket-act .btn { min-height: 42px; }
.ix-rc-lines b.is-live, .ix-rc-lines b a { color: var(--pine); }
.ix-rc-safe span { color: var(--ink); }
.ix-soc { color: var(--ink); text-underline-offset: 3px; }
