/* LOOP2TRACK emulated in the product page: an Arrangement over the device, as in Live.
   Everything scoped under .l2tx so the page's own styles stay as they are. NA7AN house colours. */
.l2tx { --bg: #131519; --surface: #1b1e24; --surface-hi: #242831; --line: #30353f; --text-hi: #edeff3; --text-mid: #99a1b0; --text-low: #646c7a;
  --accent: #57e39b; --lock: #f5b547; --sync: #6ba8ff; --arr-bg: #16181c; --arr-lane: #1d2026; --arr-lane2: #1a1d22;
  margin-top: 26px; font-family: Arial, Helvetica, sans-serif; color: var(--text-hi); text-align: left; }
.l2tx * { box-sizing: border-box; }
.l2tx .steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 14px; font: bold 12px Arial, sans-serif; color: var(--text-mid); letter-spacing: 0.02em; }
.l2tx .steps b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--surface-hi); color: var(--accent); margin-right: 6px; font-size: 11px; }
.l2tx .win { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--arr-bg); }
.l2tx .win + .win { margin-top: 10px; }
.l2tx .win-bar { display: flex; gap: 12px; align-items: baseline; padding: 6px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.l2tx .win-bar b { font: bold 10px Arial, sans-serif; letter-spacing: 0.06em; color: var(--text-hi); }
.l2tx .win-bar span { font-size: 11px; color: var(--text-low); }
.l2tx #arr { display: block; width: 100%; cursor: pointer; }
.l2tx #panel { display: block; width: 100%; touch-action: none; }
.l2tx .bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 8px 10px; border-top: 1px solid var(--line); }
.l2tx .bpm { font: bold 11px Arial, sans-serif; color: var(--text-low); display: flex; align-items: center; gap: 8px; }
.l2tx .bpm input { width: 84px; background: var(--surface); color: var(--text-hi); border: 1px solid var(--line); border-radius: 4px; padding: 6px 8px; font: bold 13px Arial, sans-serif; }
.l2tx .note { font-size: 12px; color: var(--sync); }
.l2tx .bar button { margin-left: auto; background: rgba(87, 227, 155, 0.16); color: var(--accent); border: 1px solid var(--accent); border-radius: 4px;
  padding: 7px 14px; font: bold 11px Arial, sans-serif; letter-spacing: 0.03em; cursor: pointer; }
.l2tx .own { font-size: 12px; line-height: 1.5; color: var(--text-low); margin: 10px 2px 0; }
.l2tx .video { margin-top: 24px; }
.l2tx .video h3 { font-size: 17px; margin: 0 0 6px; color: var(--text-hi); }
.l2tx .video p { font-size: 14px; color: var(--text-mid); margin: 0 0 12px; }
.l2tx video { width: 100%; border-radius: 8px; border: 1px solid var(--line); background: #000; display: block; }
.l2tx-veil { display: none; position: fixed; inset: 0; background: rgba(19, 21, 25, 0.88); z-index: 50; align-items: center; justify-content: center; }
.l2tx-veil div { border: 2px dashed #57e39b; color: #57e39b; font: bold 14px Arial, sans-serif; letter-spacing: 0.06em; padding: 48px 72px; border-radius: 10px; }
body.dropping .l2tx-veil { display: flex; }
.l2tx .m { display: none; }
@media (max-width: 760px) {
  .l2tx .win-bar span { display: none; }
  .l2tx .device, .l2tx .own { display: none; }
  .l2tx .m { display: block; padding: 12px 0 0; }
  .l2tx .m-track { position: relative; }
  .l2tx .m-strip { display: flex; gap: 2px; height: 46px; }
  .l2tx .m-sec { border-radius: 3px; padding: 4px 3px; overflow: hidden; min-width: 0; }
  .l2tx .m-sec b { display: block; font-size: 9px; white-space: nowrap; overflow: hidden; }
  .l2tx .m-sec span { font-size: 9px; opacity: 0.8; }
  .l2tx .m-empty { color: var(--text-low); font-size: 12px; padding: 14px 0; }
  .l2tx .m-head { display: none; position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--sync); margin-left: -1px; }
  .l2tx .m-len { font: bold 13px Arial, sans-serif; color: var(--text-mid); margin: 8px 0 10px; }
  .l2tx .m-build { width: 100%; height: 54px; background: var(--accent); color: #0b0d10; border: 0; border-radius: 8px; font: bold 16px Arial, sans-serif; letter-spacing: 0.05em; margin-bottom: 8px; }
  .l2tx .m-build.again { background: var(--lock); }
  .l2tx .m-build.done { background: var(--surface-hi); color: var(--text-mid); }
  .l2tx .m-play { width: 100%; height: 50px; background: rgba(107, 168, 255, 0.14); color: var(--sync); border: 1px solid var(--sync); border-radius: 8px; font: bold 16px Arial, sans-serif; letter-spacing: 0.06em; margin-bottom: 12px; }
  .l2tx .m-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .l2tx .m-row span { flex: 1; font: bold 12px Arial, sans-serif; color: var(--text-low); letter-spacing: 0.04em; }
  .l2tx .m-row span b { color: var(--text-hi); font-size: 15px; margin-left: 6px; }
  .l2tx .m-row button { width: 64px; height: 44px; background: var(--surface); color: var(--text-hi); border: 1px solid var(--line); border-radius: 8px; font: bold 22px Arial, sans-serif; }
  .l2tx .m-kick { width: 100%; height: 44px; background: var(--surface); color: var(--text-mid); border: 1px solid var(--line); border-radius: 8px; font: bold 12px Arial, sans-serif; letter-spacing: 0.04em; }
  .l2tx .m-kick.on { color: var(--lock); border-color: var(--lock); background: rgba(245, 181, 71, 0.16); }
}

.l2tx .disc { font-size: 12px; line-height: 1.5; color: var(--text-low); margin: 8px 2px 0; }
.l2tx .disc b { color: var(--text-mid); }

/* the canvases' size before the script draws them (a bare canvas is 2:1: a black block the width of the page) */
.l2tx #panel { aspect-ratio: 840 / 168; height: auto; }
.l2tx #arr { height: 232px; }
@media (max-width: 760px) { .l2tx #arr { height: 152px; } }

.l2tx .tut { display: inline-block; margin-top: 12px; font: bold 12px Arial, sans-serif; color: var(--sync); text-decoration: none; border-bottom: 1px solid rgba(107,168,255,0.4); padding-bottom: 1px; }
.l2tx .tut:hover { color: var(--text-hi); border-color: var(--text-hi); }
.l2tx .tut { margin: 0 0 14px; }

/* phone (16 Oct 2026): one line before BUILD, BUILD and PLAY above the Arrangement, the short disclaimer,
   and the three lines with the way into the details. On a computer none of this shows. */
.l2tx .m-lead, .l2tx .m-go, .l2tx .d-short, .l2tx .m-como { display: none; }
@media (max-width: 760px) {
  .l2tx .steps { display: none; }
  .l2tx .tut { margin: 0 0 10px; }
  .l2tx .m-lead { display: block; font: bold 15px/1.4 Arial, sans-serif; color: var(--text-hi); margin: 0 0 10px; }
  .l2tx .m-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 10px; }
  .l2tx .m-go .m-build, .l2tx .m-go .m-play { margin: 0; height: 52px; font-size: 15px; }
  .l2tx .d-long { display: none; }
  .l2tx .d-short { display: inline; }
  .l2tx .m-como { display: block; margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
  .l2tx .m-como h3 { font: bold 15px Arial, sans-serif; margin: 0 0 10px; color: var(--text-hi); }
  .l2tx .m-como ul { margin: 0 0 12px; padding: 0 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--text-mid); }
  .l2tx .m-como li { margin-bottom: 6px; }
  .l2tx .m-como b { color: var(--text-hi); }
  .l2tx .m-como button { width: 100%; height: 44px; background: transparent; color: var(--text-mid); border: 1px solid var(--line); border-radius: 8px; font: bold 12px Arial, sans-serif; letter-spacing: 0.04em; }
}

/* PLAY lives in the Arrangement's bar, where Live keeps its transport: the panel's REVERT is REVERT */
.l2tx .win-bar .arr-play { margin-left: auto; align-self: center; font: bold 11px Arial, sans-serif; letter-spacing: 0.06em; color: #131519; background: var(--accent, #57e39b); border: 0; border-radius: 4px; padding: 5px 12px; cursor: pointer; }
.l2tx .win-bar .arr-play:hover { filter: brightness(1.1); }
@media (max-width: 760px) { .l2tx .win-bar .arr-play { display: none; } }
