/* YANTRA collection — "Not a page you read. An instrument you operate."
   Machined warm-black casing, keycaps that seat and depress, engraved mono
   labels, ONE saffron PAY key. Scope: .ytr-* under .ytr-root.
   Trays ride the shared modal/connect controllers (.active / .out). */

/* ============ FONTS ============ */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/instrument-sans-var-400-600-570a9648.woff2") format("woff2");
}
@font-face {
  font-family: "InstrumentSans-fallback";
  src: local("Arial");
  size-adjust: 99%;
  ascent-override: 96%;
  descent-override: 25%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-400-d803141a.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-500-3f7bbac1.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-600-b71798d4.woff2") format("woff2");
}
@font-face {
  font-family: "IBMPlexMono-fallback";
  src: local("Courier New");
  size-adjust: 100%;
  ascent-override: 103%;
  descent-override: 27%;
  line-gap-override: 0%;
}
/* ₹ and ✓ intentionally fall through to the system stacks (latin subsets);
   the PAY key rupee is a drawn SVG stroke glyph instead. */

/* ============ ROOT: casing + tokens ============ */
.ytr-root {
  --ytr-casing: #191714;
  --ytr-bench: #100E0C;
  --ytr-panel: #211E1A;
  --ytr-panel-hi: #242019;
  --ytr-keycap: #2B2722;
  --ytr-keycap-dn: #232019;
  --ytr-well: #1B1815;
  --ytr-ink: #F4F2ED;
  --ytr-dim: #A39E93;
  --ytr-body-ink: #CFC9BD;
  --ytr-etch: rgba(244, 242, 237, .14);
  --ytr-etch-soft: rgba(244, 242, 237, .075);
  --ytr-saffron: #F2A61D;
  --ytr-saffron-hi: #F8B437;
  --ytr-saffron-dn: #E0940E;
  --ytr-brass: #C9A96A;
  --ytr-brass-hi: #EBD9AE;
  --ytr-brass-lo: #8F7440;
  --ytr-sans: "Instrument Sans", "InstrumentSans-fallback", system-ui, "Segoe UI", Arial, sans-serif;
  --ytr-mono: "IBM Plex Mono", "IBMPlexMono-fallback", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --ytr-seat: cubic-bezier(.34, 1.56, .64, 1);
  --ytr-slide: cubic-bezier(.32, .72, 0, 1);
  --ytr-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='64' height='64' filter='url(%23n)'/%3E%3C/svg%3E");

  min-height: 100dvh;
  background: var(--ytr-casing);
  color: var(--ytr-ink);
  font-family: var(--ytr-sans);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}
.ytr-root :where(a) { color: inherit; }
.ytr-root :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
.ytr-root svg { display: block; }
.ytr-root :focus-visible {
  outline: 2px solid var(--ytr-brass);
  outline-offset: 2px;
  border-radius: 4px;
}
.ytr-root ::selection { background: rgba(201, 169, 106, .28); }

/* film grain — banding defense for 6-bit panels (sits over trays too) */
.ytr-grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  background: var(--ytr-grain) repeat;
  background-size: 64px 64px;
  opacity: .05;
}

/* ============ BENCH + INSTRUMENT CASING ============ */
.ytr-bench { padding: 10px 10px 28px; }
.ytr-instrument {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, var(--ytr-panel-hi) 0%, var(--ytr-panel) 46%, #1E1B17 100%);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .6),
    inset 0 2px 0 rgba(255, 255, 255, .055),
    inset 0 -2px 0 rgba(0, 0, 0, .35);
  overflow: hidden;
}
.ytr-bench-note { display: none; }
.ytr-benchframe { display: none; }
@media (min-width: 760px) {
  .ytr-root { background: var(--ytr-bench); }
  .ytr-bench { padding: 64px 24px 20px; }
  .ytr-instrument {
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, .65),
      inset 0 2px 0 rgba(255, 255, 255, .055),
      inset 0 -2px 0 rgba(0, 0, 0, .35),
      0 34px 90px rgba(0, 0, 0, .55),
      0 8px 26px rgba(0, 0, 0, .45);
  }
  .ytr-bench-note {
    display: block;
    text-align: center;
    font: 400 10px/1 var(--ytr-mono);
    letter-spacing: .22em;
    color: var(--ytr-dim);
    opacity: .55;
    margin-top: 26px;
  }
  .ytr-benchframe {
    display: block;
    position: fixed;
    inset: 22px;
    z-index: 0;
    pointer-events: none;
    border: 1px dashed rgba(244, 242, 237, .055);
    border-radius: 6px;
  }
}

/* ============ STATUS BAR ============ */
.ytr-statusbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px 14px;
  border-bottom: 1px solid var(--ytr-etch-soft);
}
.ytr-led-pwr {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ytr-brass);
  box-shadow: 0 0 4px rgba(201, 169, 106, .5);
  opacity: .9;
  flex-shrink: 0;
}
.ytr-wordmark {
  font: 600 11px/1 var(--ytr-mono);
  letter-spacing: .34em;
  color: var(--ytr-ink);
}
.ytr-serial-top {
  margin-left: auto;
  font: 400 10px/1 var(--ytr-mono);
  font-feature-settings: 'tnum';
  letter-spacing: .16em;
  color: var(--ytr-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* lazy bookmark frame — contain whatever the shared chip loads */
.ytr-bkmk {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ytr-bkmk turbo-frame { display: block; }

/* ============ NAMEPLATE ============ */
.ytr-nameplate {
  position: relative;
  padding: 26px 18px 22px;
}
.ytr-dial {
  position: absolute;
  top: 24px;
  right: 18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(244, 242, 237, .17) 0deg 4deg, transparent 4deg 9deg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
}
.ytr-dial-in {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(180deg, #262220, #1D1A16);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .5), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ytr-dial-in span {
  font: 600 19px/1 var(--ytr-sans);
  letter-spacing: .04em;
  color: var(--ytr-brass);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.ytr-dial-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.ytr-eyebrow {
  font: 500 10.5px/1.5 var(--ytr-mono);
  letter-spacing: .24em;
  color: var(--ytr-dim);
  margin-bottom: 14px;
  max-width: calc(100% - 92px); /* clear the dial */
  text-transform: uppercase;
}
.ytr-eyebrow-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.ytr-eyebrow-link:active { color: var(--ytr-brass); }
.ytr-eyebrow-logo {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
  flex-shrink: 0;
}
.ytr-name {
  position: relative;
  font-weight: 600;
  font-size: clamp(2.9rem, 14.8vw, 4rem);
  line-height: .96;
  letter-spacing: -.02em;
  white-space: pre-line;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--ytr-brass);
  filter: drop-shadow(0 1.5px 0 rgba(0, 0, 0, .5));
  padding-right: 8px;
}
/* Long names step the nameplate down so words seat whole and clear the dial. */
.ytr-name--long {
  font-size: clamp(1.9rem, 8.6vw, 2.6rem);
  line-height: 1.04;
  padding-right: 64px;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ytr-name {
    background: linear-gradient(168deg, var(--ytr-brass-hi) 4%, var(--ytr-brass) 46%, var(--ytr-brass-lo) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
  .ytr-name::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    padding-right: 8px;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 246, 220, .95) 50%, transparent 62%);
    background-size: 260% 100%;
    background-position: 200% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0;
  }
}
.ytr-brassrule {
  width: 58px;
  height: 2px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, var(--ytr-brass-hi), var(--ytr-brass-lo));
  transform-origin: left;
  border-radius: 1px;
}
.ytr-tagline {
  font: 400 14.5px/1.5 var(--ytr-sans);
  color: var(--ytr-dim);
  max-width: 34ch;
}
.ytr-readout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 13px 14px;
  border-radius: 10px;
  background: var(--ytr-well);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .38), inset 0 -1px 0 rgba(255, 255, 255, .045), 0 0 0 1px rgba(0, 0, 0, .4);
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.ytr-readout:active { box-shadow: inset 0 3px 7px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .45); }
.ytr-ro-label {
  font: 500 9px/1.5 var(--ytr-mono);
  letter-spacing: .22em;
  color: var(--ytr-dim);
}
.ytr-ro-value {
  flex: 1;
  font: 500 16px/1 var(--ytr-mono);
  font-feature-settings: 'tnum';
  letter-spacing: .02em;
  color: var(--ytr-ink);
  overflow-wrap: anywhere;
}
.ytr-ro-ico {
  width: 16px;
  height: 16px;
  stroke: var(--ytr-dim);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* rubber stamps — shown while the copy controller holds .ytr-on;
   sized to survive the controller's injected "✓ Copied!" markup too */
.ytr-stamp {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(1.15);
  background: var(--ytr-well);
  border: 1px solid var(--ytr-brass-lo);
  border-radius: 5px;
  padding: 4px 8px;
  font: 600 9.5px/1 var(--ytr-mono);
  letter-spacing: .16em;
  color: var(--ytr-brass);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease, transform .15s ease;
  white-space: nowrap;
}
.ytr-stamp svg {
  width: 9px;
  height: 9px;
  stroke: var(--ytr-brass);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ytr-stamp.ytr-on {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  transition: opacity .12s ease, transform .15s var(--ytr-seat);
}

/* ============ SECTION RULES ============ */
.ytr-shead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 18px 13px;
  margin: 0;
}
.ytr-shead-t {
  font: 500 10px/1 var(--ytr-mono);
  letter-spacing: .26em;
  color: var(--ytr-dim);
}
.ytr-shead-ln {
  flex: 1;
  height: 1px;
  background: var(--ytr-etch-soft);
  transform-origin: left;
}
.ytr-shead-ix {
  font: 400 9.5px/1 var(--ytr-mono);
  letter-spacing: .1em;
  color: var(--ytr-dim);
  opacity: .55;
}

/* ============ 01 OPERATE — the action deck ============ */
.ytr-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px;
}
.ytr-deck[data-keys="1"] { grid-template-columns: 1fr; }
.ytr-deck[data-keys="3"] { grid-template-columns: repeat(3, 1fr); }
.ytr-key {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 86px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2E2A24, #282420);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .07), inset 0 -2px 0 rgba(0, 0, 0, .32);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.ytr-key:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #282420, var(--ytr-keycap-dn));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 8px rgba(0, 0, 0, .45);
}
.ytr-key .ytr-glyph {
  width: 23px;
  height: 23px;
  stroke: var(--ytr-ink);
  opacity: .95;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ytr-klabel {
  font: 500 10.5px/1 var(--ytr-mono);
  letter-spacing: .2em;
  color: var(--ytr-dim);
}
.ytr-key .ytr-led {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ytr-ink);
  opacity: .24;
}
/* the ONE saturated surface — PAY exclusively */
.ytr-key-pay {
  background: linear-gradient(180deg, var(--ytr-saffron-hi), var(--ytr-saffron-dn));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .42), inset 0 -2px 0 rgba(0, 0, 0, .22);
}
.ytr-key-pay:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #EDA31A, #D68C0B);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 8px rgba(0, 0, 0, .3);
}
.ytr-key-pay .ytr-glyph {
  stroke: #191714;
  opacity: 1;
  stroke-width: 1.9;
}
.ytr-key-pay .ytr-klabel {
  color: rgba(25, 23, 20, .82);
  font-weight: 600;
}
.ytr-key-pay .ytr-led {
  background: #191714;
  opacity: .5;
}

/* ============ 02 CHANNELS — collars ============ */
.ytr-collars {
  display: grid;
  /* auto-fit: 6 channels sit like the mockup, sparser rows spread evenly */
  grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  justify-items: center;
  gap: 8px;
  row-gap: 14px;
  padding: 0 18px;
}
.ytr-collar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ytr-ring {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2E2A24, #272320);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .3);
  display: grid;
  place-items: center;
}
.ytr-collar:active .ytr-ring {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 7px rgba(0, 0, 0, .45);
}
.ytr-collar .ytr-glyph {
  width: 19px;
  height: 19px;
  stroke: var(--ytr-ink);
  opacity: .9;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ytr-clabel {
  font: 500 8.5px/1 var(--ytr-mono);
  letter-spacing: .14em;
  color: var(--ytr-dim);
}

/* ============ 03 REGISTERS — documents + links ============ */
.ytr-registers { padding: 0 18px; }
.ytr-register {
  display: grid;
  grid-template-columns: 30px 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--ytr-etch-soft);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ytr-register:last-of-type { border-bottom: 0; }
.ytr-register:active { background: rgba(244, 242, 237, .045); }
.ytr-rix {
  font: 400 11px/1 var(--ytr-mono);
  font-feature-settings: 'tnum';
  color: var(--ytr-dim);
  opacity: .65;
}
.ytr-rtitle {
  font: 500 15px/1.35 var(--ytr-sans);
  color: var(--ytr-ink);
  overflow-wrap: anywhere;
}
.ytr-rsub {
  display: block;
  font: 400 10px/1 var(--ytr-mono);
  letter-spacing: .12em;
  color: var(--ytr-dim);
  margin-top: 4px;
}
.ytr-rthumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.ytr-rthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ytr-register .ytr-glyph {
  width: 15px;
  height: 15px;
  stroke: var(--ytr-dim);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ 04 SPECIFICATIONS ============ */
.ytr-about {
  padding: 0 18px;
  font: 400 15px/1.66 var(--ytr-sans);
  color: var(--ytr-body-ink);
}
.ytr-about .trix-content { color: var(--ytr-body-ink); }
.ytr-about .trix-content p { margin: 0 0 .8em; }
.ytr-about .trix-content p:last-child { margin-bottom: 0; }
.ytr-about .trix-content a {
  color: var(--ytr-brass);
  text-underline-offset: 3px;
}
.ytr-about .trix-content ul,
.ytr-about .trix-content ol {
  margin: 0 0 .8em;
  padding-left: 1.3em;
}
.ytr-about .trix-content h1 {
  font: 600 17px/1.4 var(--ytr-sans);
  color: var(--ytr-ink);
  margin: 0 0 .5em;
}
.ytr-readmore-row { margin-top: 10px; }
.ytr-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 10px/1 var(--ytr-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ytr-brass);
  text-decoration: none;
}
.ytr-readmore svg {
  width: 12px;
  height: 12px;
  stroke: var(--ytr-brass);
}
.ytr-specplate {
  margin: 16px 18px 0;
  border-radius: 10px;
  background: var(--ytr-well);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .4), inset 0 -1px 0 rgba(255, 255, 255, .045), 0 0 0 1px rgba(0, 0, 0, .4);
  overflow: hidden;
}
.ytr-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--ytr-etch-soft);
}
.ytr-spec:last-child { border-bottom: 0; }
.ytr-spec dt {
  font: 500 9.5px/1.5 var(--ytr-mono);
  letter-spacing: .2em;
  color: var(--ytr-dim);
  white-space: nowrap;
}
.ytr-spec dd {
  font: 500 12.5px/1.5 var(--ytr-mono);
  font-feature-settings: 'tnum';
  color: var(--ytr-ink);
  text-align: right;
  margin: 0;
  overflow-wrap: anywhere;
}
.ytr-spec-serial dd {
  color: var(--ytr-brass);
  font-weight: 600;
  letter-spacing: .06em;
}

/* intent sentinel — invisible trigger line for the connect tray */
.ytr-sentinel { height: 1px; }

/* ============ 05 FORWARD — QR complication ============ */
.ytr-qrwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 18px 0;
}
.ytr-qrbtn {
  position: relative;
  width: 238px;
  height: 238px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(244, 242, 237, .16) 0deg 4deg, transparent 4deg 9deg);
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.ytr-qrbtn:active { transform: translateY(1px); }
.ytr-qrinner {
  width: 206px;
  height: 206px;
  border-radius: 50%;
  background: #161310;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(0, 0, 0, .55);
  display: grid;
  place-items: center;
}
/* the real QR PNG (dark modules on white) seated as an ivory plate */
.ytr-qrimg {
  width: 150px;
  height: 150px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 5px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .4);
}
.ytr-qrdot {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2E2A24, #262220);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .07);
  display: grid;
  place-items: center;
  font: 600 11px/1 var(--ytr-mono);
  letter-spacing: .05em;
  color: var(--ytr-brass);
}
.ytr-qrcap {
  font: 500 10px/1 var(--ytr-mono);
  letter-spacing: .28em;
  color: var(--ytr-dim);
  text-align: center;
}
.ytr-qrsub {
  font: 400 12.5px/1 var(--ytr-sans);
  color: var(--ytr-dim);
  opacity: .8;
  margin-top: -6px;
}
/* exchange affordance — the light "hand over your card" key */
.ytr-xkey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 54px;
  border-radius: 12px;
  margin-top: 6px;
  background: linear-gradient(180deg, #FAF8F3, #E8E4DB);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .85), inset 0 -2px 0 rgba(0, 0, 0, .14);
  font: 600 11.5px/1 var(--ytr-mono);
  letter-spacing: .18em;
  color: #191714;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ytr-xkey:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #EDEAE2, #DDD8CD);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 7px rgba(0, 0, 0, .22);
}
.ytr-xkey-glyph {
  width: 14px;
  height: 14px;
  stroke: #191714;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ MAKER'S PLATE ============ */
.ytr-makers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 18px 34px;
  text-align: center;
}
.ytr-yantramark {
  font: 400 14px/1.2 "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--ytr-sans);
  color: var(--ytr-dim);
  opacity: .7;
}
.ytr-mint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2E2A24, #272320);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .3);
  font: 600 10px/1.4 var(--ytr-mono);
  letter-spacing: .12em;
  color: var(--ytr-ink);
  text-decoration: none;
  max-width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.ytr-mint:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 7px rgba(0, 0, 0, .45);
}
.ytr-mint svg {
  width: 13px;
  height: 13px;
  stroke: var(--ytr-brass);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ytr-mline {
  font: 400 9.5px/1.8 var(--ytr-mono);
  font-feature-settings: 'tnum';
  letter-spacing: .18em;
  color: var(--ytr-dim);
  opacity: .7;
  overflow-wrap: anywhere;
}

/* ============ PAY TRAY — rides .active/.out from modal/connect ============ */
.ytr-tray {
  position: fixed;
  inset: 0;
  z-index: 220;
  visibility: hidden;
  transition: visibility 0s .28s;
}
.ytr-tray.active {
  visibility: visible;
  transition: visibility 0s 0s;
}
.ytr-tray-scrim {
  position: absolute;
  inset: 0;
  background: rgba(8, 6, 4, .58);
  opacity: 0;
  transition: opacity .2s ease;
}
.ytr-tray.active .ytr-tray-scrim { opacity: 1; }
.ytr-traypanel {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, 432px);
  max-height: 88dvh;
  overflow-y: auto;
  transform: translate(-50%, 103%);
  transition: transform .26s var(--ytr-slide);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #27231D, #211E1A);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 0 rgba(255, 255, 255, .07), 0 -20px 60px rgba(0, 0, 0, .5);
  padding: 11px 20px calc(26px + env(safe-area-inset-bottom));
}
.ytr-tray.active .ytr-traypanel { transform: translate(-50%, 0); }
.ytr-handle {
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: var(--ytr-brass-lo);
  opacity: .8;
  margin: 0 auto 14px;
}
.ytr-trayhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ytr-trayhead-t {
  font: 500 10px/1 var(--ytr-mono);
  letter-spacing: .26em;
  color: var(--ytr-dim);
}
.ytr-trayhead-ln {
  flex: 1;
  height: 1px;
  background: var(--ytr-etch-soft);
}
.ytr-tclose {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #2E2A24, #272320);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .06);
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.ytr-tclose:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 6px rgba(0, 0, 0, .45);
}
.ytr-tclose svg {
  width: 13px;
  height: 13px;
  stroke: var(--ytr-dim);
  stroke-width: 1.8;
  stroke-linecap: round;
  fill: none;
}
.ytr-payee {
  font: 600 17px/1.3 var(--ytr-sans);
  letter-spacing: -.01em;
  margin-bottom: 14px;
  color: var(--ytr-ink);
}
.ytr-payee small {
  display: block;
  font: 400 12px/1.6 var(--ytr-sans);
  color: var(--ytr-dim);
  margin-top: 2px;
}
.ytr-upiplate {
  position: relative;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 10px;
  background: var(--ytr-well);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .4), inset 0 -1px 0 rgba(255, 255, 255, .045), 0 0 0 1px rgba(0, 0, 0, .4);
  -webkit-tap-highlight-color: transparent;
}
.ytr-upiplate:active { box-shadow: inset 0 3px 8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .45); }
.ytr-upi-label {
  font: 500 9px/1 var(--ytr-mono);
  letter-spacing: .22em;
  color: var(--ytr-dim);
}
.ytr-upi-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ytr-upi-id {
  flex: 1;
  font: 600 clamp(1.02rem, 5vw, 1.25rem)/1.25 var(--ytr-mono);
  letter-spacing: .01em;
  color: var(--ytr-ink);
  word-break: break-all;
}
.ytr-upi-row svg {
  width: 17px;
  height: 17px;
  stroke: var(--ytr-dim);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.ytr-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.ytr-chip {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2E2A24, #272320);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .06), inset 0 -2px 0 rgba(0, 0, 0, .3);
  font: 500 13px/1 var(--ytr-mono);
  font-feature-settings: 'tnum';
  color: var(--ytr-ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ytr-chip:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 7px rgba(0, 0, 0, .45);
}
.ytr-amtrow {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.ytr-amtwell {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--ytr-well);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .4);
}
.ytr-amtwell span {
  font: 500 13px/1 var(--ytr-mono);
  color: var(--ytr-dim);
}
.ytr-amtwell input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font: 500 14px/1 var(--ytr-mono);
  font-feature-settings: 'tnum';
  color: var(--ytr-ink);
  height: 48px;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.ytr-amtwell input::placeholder {
  color: var(--ytr-dim);
  opacity: .6;
  font-size: 11px;
  letter-spacing: .14em;
}
.ytr-tkey-pay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  border-radius: 12px;
  margin-top: 12px;
  background: linear-gradient(180deg, var(--ytr-saffron-hi), var(--ytr-saffron-dn));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 2px 0 rgba(255, 255, 255, .42), inset 0 -2px 0 rgba(0, 0, 0, .22);
  font: 600 11.5px/1 var(--ytr-mono);
  letter-spacing: .18em;
  color: #191714;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.ytr-tkey-pay:active {
  transform: translateY(1px);
  background: linear-gradient(180deg, #EDA31A, #D68C0B);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .55), inset 0 2px 8px rgba(0, 0, 0, .3);
}
.ytr-tkey-pay svg {
  width: 14px;
  height: 14px;
  stroke: #191714;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ytr-tkey-amt {
  font-feature-settings: 'tnum';
  white-space: pre;
}
.ytr-tkey-amt:empty { display: none; }
.ytr-paynote {
  font: 400 11.5px/1.6 var(--ytr-sans);
  color: var(--ytr-dim);
  margin-top: 12px;
  text-align: center;
}

/* the shared connect/exchange modal, dressed as the light send-key surface */
.ytr-root .modal-container .container {
  background: linear-gradient(180deg, #FAF8F3, #E8E4DB);
  color-scheme: light;
}

/* ============ POWER-ON CHOREOGRAPHY (motion-gated, one-shot) ============ */
@media (prefers-reduced-motion: no-preference) {
  .ytr-a-rise { animation: ytr-rise .62s cubic-bezier(.25, .7, .3, 1) both; animation-delay: var(--d, 0ms); }
  .ytr-a-seat { animation: ytr-seat .46s var(--ytr-seat) both; animation-delay: var(--d, 0ms); }
  .ytr-a-etch { animation: ytr-etchin .56s cubic-bezier(.25, .6, .3, 1) both; animation-delay: var(--d, 0ms); }
  .ytr-a-fade { animation: ytr-fadein .5s ease-out both; animation-delay: var(--d, 0ms); }
  .ytr-shead-ln { animation: ytr-etchin .6s cubic-bezier(.25, .6, .3, 1) both; animation-delay: var(--d, 0ms); }
  .ytr-a-dial { animation: ytr-dialset .8s var(--ytr-seat) both; animation-delay: var(--d, 0ms); }
  .ytr-key .ytr-led { animation: ytr-ledblink .5s ease-out both; animation-delay: var(--dl, 900ms); }
  .ytr-key-pay .ytr-led { animation-name: ytr-ledblinkpay; }
  .ytr-led-pwr { animation: ytr-pwr 1s steps(1, end) both; }
  .ytr-name::after { animation: ytr-sheen 1.15s ease-in-out 1 both; animation-delay: 980ms; }

  @keyframes ytr-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes ytr-seat { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes ytr-etchin { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes ytr-fadein { from { opacity: 0; } to { opacity: 1; } }
  @keyframes ytr-dialset { from { opacity: 0; transform: rotate(-32deg); } to { opacity: 1; transform: rotate(0); } }
  @keyframes ytr-ledblink { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .24; } }
  @keyframes ytr-ledblinkpay { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: .5; } }
  @keyframes ytr-pwr { 0% { opacity: 0; } 20% { opacity: .9; } 35% { opacity: .15; } 55% { opacity: .9; } 70% { opacity: .2; } 85% { opacity: .9; } 100% { opacity: .9; } }
  @keyframes ytr-sheen { 0% { opacity: 1; background-position: 200% 0; } 92% { opacity: 1; background-position: -60% 0; } 100% { opacity: 0; background-position: -60% 0; } }
}

/* ============ REDUCED MOTION — instant final state ============ */
@media (prefers-reduced-motion: reduce) {
  .ytr-tray,
  .ytr-tray.active,
  .ytr-tray-scrim,
  .ytr-traypanel { transition: none; }
  .ytr-stamp,
  .ytr-stamp.ytr-on { transition: opacity .01s; }
}
