@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,500;0,600;0,700;0,800;1,800&family=Share+Tech+Mono&display=swap');

/* Redline cockpit dashboard — carbon fibre, brushed aluminium, chrome bezels, glass. */

.rl-dash {
  --cw: 78px; --ch: 114px;
  --red: #ff2d1f; --amber: #ffb02e; --lcd: #ffb02e; --lcd-dim: rgba(255, 176, 46, .07);
  --ink: #e9ecef; --mute: #8f98a3;
  --heat: 0;
  --f-cond: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --f-mono: 'Share Tech Mono', ui-monospace, monospace;

  position: relative;
  box-sizing: border-box;
  height: 262px;
  padding: 14px 12px 10px;
  display: grid;
  grid-template-columns: 178px 226px minmax(0, 1fr) 122px 232px;
  grid-template-areas: 'heat speedo hand shift ctrl';
  gap: 10px;
  color: var(--ink);
  font-family: var(--f-cond);
  user-select: none;
  -webkit-user-select: none;
  /* carbon fibre weave */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 30%, rgba(0, 0, 0, .35)),
    radial-gradient(120% 140% at 50% -20%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(27deg, #121314 5px, transparent 5px) 0 5px,
    linear-gradient(207deg, #121314 5px, transparent 5px) 10px 0,
    linear-gradient(27deg, #202225 5px, transparent 5px) 0 10px,
    linear-gradient(207deg, #202225 5px, transparent 5px) 10px 5px,
    linear-gradient(90deg, #191a1c 10px, transparent 10px),
    linear-gradient(#1b1c1e 25%, #17181a 25%, #17181a 50%, transparent 50%, transparent 75%, #232528 75%, #232528);
  background-color: #111213;
  background-size: 100% 100%, 100% 100%, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px, 20px 20px;
  box-shadow: inset 0 10px 18px -8px rgba(0, 0, 0, .9), inset 0 -2px 0 rgba(255, 255, 255, .04);
}
.rl-dash *, .rl-dash *::before, .rl-dash *::after { box-sizing: border-box; }
.rl-dash button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }

/* chrome trim along the top edge */
.rl-dash .rl-trim {
  position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: linear-gradient(180deg, #f2f4f6, #8a929b 45%, #3a3f45 55%, #b9c0c7);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .7);
}
.rl-dash .rl-trim::after {
  content: ''; position: absolute; left: 50%; top: 5px; width: 220px; height: 3px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: .7;
  filter: blur(.5px);
}

/* ---------- brushed aluminium plates ---------- */
.rl-dash .plate {
  position: relative; min-width: 0; border-radius: 12px; padding: 18px 12px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 35%, rgba(0, 0, 0, .28)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 11px),
    linear-gradient(90deg, #353a41, #4b5159 22%, #3a3f46 48%, #535a62 76%, #363b42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .6),
    inset 1px 0 0 rgba(255, 255, 255, .08), inset -1px 0 0 rgba(0, 0, 0, .3),
    0 0 0 1px #07080a, 0 0 0 2px rgba(255, 255, 255, .05), 0 8px 16px rgba(0, 0, 0, .65);
}
.rl-dash .cap {
  position: absolute; left: 0; right: 0; top: 4px; text-align: center;
  font: 700 10.5px/1 var(--f-cond); letter-spacing: 3px; color: #c3c9d0;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .12);
}
.rl-dash .screw {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4f6f8, #9aa1a9 45%, #3b4046 85%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 1px 1px rgba(255, 255, 255, .25), inset 0 -1px 1px rgba(0, 0, 0, .5);
}
.rl-dash .screw::after {
  content: ''; position: absolute; left: 1px; right: 1px; top: 3.6px; height: 1.6px; border-radius: 1px;
  background: rgba(20, 22, 25, .85); transform: rotate(var(--r)); box-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.rl-dash .screw.tl { left: 6px; top: 6px; } .rl-dash .screw.tr { right: 6px; top: 6px; }
.rl-dash .screw.bl { left: 6px; bottom: 6px; } .rl-dash .screw.br { right: 6px; bottom: 6px; }

/* ---------- LCD strips ---------- */
.rl-dash .lcd {
  position: relative; border-radius: 5px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #1d1a12, #0a0906 70%);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .18);
  color: var(--lcd); font-family: var(--f-mono);
  text-shadow: 0 0 6px rgba(255, 176, 46, .55);
}
.rl-dash .lcd::after { /* glass sheen */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .02) 40%, transparent 41%);
}
.rl-dash .lcdseg .on { fill: var(--lcd); filter: drop-shadow(0 0 2px rgba(255, 176, 46, .8)); }
.rl-dash .lcdseg .off { fill: var(--lcd-dim); }

/* ---------- heat panel ---------- */
.rl-dash .heat-panel { grid-area: heat; padding: 18px 8px 10px 6px; }
.rl-dash .heat-body { display: flex; height: 100%; gap: 2px; }
.rl-dash .thermo { flex: 0 0 46px; display: flex; align-items: center; }
.rl-dash .thermo-svg { width: 46px; height: 100%; max-height: 222px; overflow: visible; }
.rl-dash .thermo-ticks line { stroke: #cfd5db; stroke-width: 1.2; }
.rl-dash .thermo-ticks text { fill: #dfe4e9; font: 700 11.5px var(--f-cond); }
.rl-dash .merc, .rl-dash .merc-ghost, .rl-dash .merc-ghost2 { transition: y .5s cubic-bezier(.3, 1.2, .5, 1), height .5s cubic-bezier(.3, 1.2, .5, 1); }
.rl-dash .merc { filter: drop-shadow(0 0 3px rgba(255, 60, 20, .9)); }
.rl-dash .merc-ghost { animation: rl-blink 1.1s ease-in-out infinite; }
.rl-dash .heat-right { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; }
.rl-dash .engine {
  position: relative; border-radius: 8px; padding: 4px 2px 0;
  background: radial-gradient(90% 80% at 50% 60%, rgba(255, 70, 20, calc(var(--heat) * .35)), transparent 70%), #121417;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .95), 0 1px 0 rgba(255, 255, 255, .15);
}
.rl-dash .engine-svg {
  display: block; width: 100%; height: auto; overflow: visible;
  filter: drop-shadow(0 0 calc(var(--heat) * 7px) rgba(255, 60, 10, calc(var(--heat) * .9)));
  transition: filter .6s;
}
.rl-dash .engine-svg stop { transition: stop-color .6s; }
.rl-dash .eng-badge { font: 800 6px var(--f-cond); letter-spacing: .8px; fill: rgba(0, 0, 0, .55); }
.rl-dash .eng-heatwaves path { stroke: rgba(255, 170, 110, .55); stroke-width: 1.4; opacity: 0; }
.rl-dash.hot .eng-heatwaves path { animation: rl-wave 1.6s ease-in infinite; }
.rl-dash.hot .eng-heatwaves path:nth-child(2) { animation-delay: .5s; }
.rl-dash.hot .eng-heatwaves path:nth-child(3) { animation-delay: 1s; }
.rl-dash .heat-lcd { display: flex; align-items: baseline; justify-content: center; gap: 5px; padding: 3px 4px 4px; font-size: 11px; }
.rl-dash .heat-lcd b { font-size: 22px; font-weight: 400; line-height: 1; }
.rl-dash .heat-note { text-align: center; font: 600 11px/1.1 var(--f-cond); letter-spacing: .6px; color: #c7cdd4; text-transform: uppercase; min-height: 12px; }

/* ---------- speedometer ---------- */
.rl-dash .speedo-panel { grid-area: speedo; display: flex; align-items: center; justify-content: center; padding: 8px; }
.rl-dash .speedo-in { width: 100%; height: 100%; container-type: size; display: grid; place-items: center; }
.rl-dash .bezel {
  width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); border-radius: 50%; padding: 7px;
  background: conic-gradient(from 210deg, #f7f8fa, #7b838c 12%, #e9ecef 26%, #4c535b 40%, #d9dde2 55%, #6d757e 70%, #f2f4f6 85%, #f7f8fa);
  box-shadow: 0 0 0 1px #050607, 0 6px 12px rgba(0, 0, 0, .7), inset 0 0 2px rgba(0, 0, 0, .6);
}
.rl-dash .bezel-in { width: 100%; height: 100%; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 2px #0a0b0c, 0 0 0 1px rgba(255, 255, 255, .4); overflow: hidden; }
.rl-dash .gauge-svg { display: block; width: 100%; height: 100%; }
.rl-dash .g-ticks .tk-maj { stroke: #f3f5f7; stroke-width: 2.4; }
.rl-dash .g-ticks .tk-mid { stroke: #c6ccd3; stroke-width: 1.4; }
.rl-dash .g-ticks .tk-min { stroke: #6f7780; stroke-width: 1; }
.rl-dash .g-ticks .tk-lbl { fill: #eef1f4; font: italic 800 14px var(--f-cond); text-anchor: middle; }
.rl-dash .g-red { fill: none; stroke: rgba(255, 45, 31, .45); stroke-width: 9; }
.rl-dash .g-red-hot { fill: none; stroke: var(--red); stroke-width: 9; filter: drop-shadow(0 0 4px rgba(255, 45, 31, .9)); }
.rl-dash .g-band { fill: none; stroke: var(--amber); stroke-width: 5; stroke-linecap: round; opacity: .95; filter: drop-shadow(0 0 4px rgba(255, 176, 46, .9)); }
.rl-dash .g-reach { fill: #fff; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .8)); }
.rl-dash .g-cap { fill: #8f98a3; font: 700 8.5px var(--f-cond); letter-spacing: 2.4px; text-anchor: middle; }
.rl-dash .ro-bg { fill: #0a0906; stroke: rgba(255, 255, 255, .1); }
.rl-dash .g-sub-bg { fill: #0a0906; stroke: rgba(255, 255, 255, .12); }
.rl-dash .g-sub1 { fill: #8f98a3; font: 700 7px var(--f-cond); letter-spacing: 1.8px; text-anchor: middle; }
.rl-dash .g-sub2 { fill: var(--lcd); font: 10px var(--f-mono); text-anchor: middle; filter: drop-shadow(0 0 2px rgba(255, 176, 46, .7)); }

/* ---------- hand tray ---------- */
.rl-dash .hand-panel {
  grid-area: hand; position: relative; min-width: 0; border-radius: 12px; padding: 6px 12px 10px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(100% 120% at 50% 110%, rgba(255, 45, 31, .06), transparent 60%),
    linear-gradient(180deg, #08090a, #141619);
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, .95), inset 0 0 0 1px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px rgba(255, 255, 255, .03);
}
.rl-dash .hand-head { display: flex; align-items: center; gap: 10px; height: 22px; font: 700 11.5px var(--f-cond); letter-spacing: 1.6px; color: var(--mute); white-space: nowrap; }
.rl-dash .lcd-chip { font: 11px var(--f-mono); color: var(--lcd); padding: 2px 6px; border-radius: 3px; background: #0b0a07; box-shadow: inset 0 1px 3px #000, 0 1px 0 rgba(255, 255, 255, .1); text-shadow: 0 0 5px rgba(255, 176, 46, .6); }
.rl-dash .hand-title { overflow: hidden; text-overflow: ellipsis; }
.rl-dash .hand-need { margin-left: auto; color: #d8dde2; }
.rl-dash .spin-tag b { font-weight: 800; }
.rl-dash .spin-tag { display: none; align-items: center; gap: 6px; padding: 2px 8px 2px 6px; border-radius: 4px; font-size: 11.5px; letter-spacing: 1px; overflow: hidden; text-overflow: ellipsis; }
.rl-dash .spin-tag::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; }
.rl-dash .spin-tag.certain { display: inline-flex; color: #ff5040; background: rgba(255, 40, 20, .12); box-shadow: inset 0 0 0 1px rgba(255, 60, 40, .45); animation: rl-blink .9s ease-in-out infinite; }
.rl-dash .spin-tag.possible { display: inline-flex; color: var(--amber); background: rgba(255, 176, 46, .1); box-shadow: inset 0 0 0 1px rgba(255, 176, 46, .4); }

.rl-dash .hand-row { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 8px; }
.rl-dash .hand-row .hand { flex: 1; min-width: 0; }
/* draw / discard pile counters in the engine panel */
.rl-dash .piles { display: flex; gap: 4px; }
.rl-dash .heat-lcd, .rl-dash .heat-note, .rl-dash .piles { flex-shrink: 0; }
.rl-dash .pile { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 3px 4px; border-radius: 5px;
  background: #121417; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .12); }
.rl-dash .pile-stack { position: relative; flex: 0 0 auto; width: 13px; height: 18px; border-radius: 2px;
  background: repeating-linear-gradient(45deg, #8a1a10 0 2px, #5a0d07 2px 4px);
  box-shadow: inset 0 0 0 1px #e9e2d3, 0 1px 2px rgba(0, 0, 0, .7); }
.rl-dash .pile-stack[data-size='mid'] { box-shadow: inset 0 0 0 1px #e9e2d3, 1.5px -1.5px 0 -.5px #cfc6b4, 0 1px 2px rgba(0, 0, 0, .7); }
.rl-dash .pile-stack[data-size='big'] { box-shadow: inset 0 0 0 1px #e9e2d3, 1.5px -1.5px 0 -.5px #cfc6b4, 3px -3px 0 -1px #b8af9c, 0 1px 2px rgba(0, 0, 0, .7); }
.rl-dash .pile-stack[data-size='empty'] { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.rl-dash .pile.disc .pile-stack { background: linear-gradient(#f7f3ea, #ddd5c4); transform: rotate(6deg); }
.rl-dash .pile.disc .pile-stack[data-size='empty'] { background: transparent; transform: none; }
.rl-dash .pile-info { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 3px; }
.rl-dash .pile-info b { font: 700 15px/1 var(--f-mono); color: var(--lcd); text-shadow: 0 0 6px rgba(255, 176, 46, .55); }
.rl-dash .pile-heat { font: 700 9.5px/1 var(--f-mono); color: #ff7b3a; white-space: nowrap; }
.rl-dash .pile-label { grid-column: 1 / -1; order: 3; font: 700 8px/1.1 var(--f-cond); letter-spacing: .8px; text-transform: uppercase; color: var(--mute); }
.rl-dash .hand {
  --cgap: 8px;
  flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 4px 2px; perspective: 900px;
}
.rl-dash .hand-toast {
  position: absolute; left: 50%; bottom: 8px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none;
  padding: 5px 12px; border-radius: 6px; background: rgba(10, 10, 12, .92); color: #ffd28a; font: 600 13px var(--f-cond); letter-spacing: .4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 176, 46, .3); white-space: nowrap; z-index: 5;
}
.rl-dash .hand-toast.show { animation: rl-toast 2.2s ease forwards; }

/* ---------- cards ---------- */
.rl-dash .card {
  --lift: 0px;
  position: relative; flex: 0 0 auto; width: var(--cw); height: var(--ch); margin: 0 0 0 var(--cgap); padding: 0; border: 0;
  border-radius: 8px; cursor: pointer; overflow: hidden; text-align: center; color: #1b1d21;
  background:
    radial-gradient(circle at 25% 12%, rgba(255, 255, 255, .85), transparent 45%),
    repeating-radial-gradient(circle at 30% 40%, rgba(110, 90, 60, .035) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(35deg, rgba(0, 0, 0, .02) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #fbf8f0, #e9e1cf);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(0, 0, 0, .18), 0 2px 3px rgba(0, 0, 0, .55), 0 8px 14px rgba(0, 0, 0, .45);
  transform: translateY(var(--lift)) rotate(calc(var(--i, 0) * 1.2deg));
  transform-origin: 50% 120%;
  transition: transform .24s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s, filter .2s;
}
.rl-dash .card:first-child { margin-left: 0; }
.rl-dash .card::before { /* printed inner frame */
  content: ''; position: absolute; inset: 4px; border-radius: 5px; border: 1px solid rgba(0, 0, 0, .14); pointer-events: none;
}
.rl-dash .card::after { /* glossy laminate */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .35), transparent 35%, transparent 70%, rgba(0, 0, 0, .06));
}
.rl-dash .card:not(.locked):hover { --lift: -6px; z-index: 2; }
.rl-dash .card.sel { --lift: -18px; z-index: 3; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 2px #e8f6ff, 0 0 14px 2px rgba(140, 210, 255, .65), 0 16px 22px rgba(0, 0, 0, .6); }
.rl-dash .card:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.rl-dash .card.deal { animation: rl-deal .45s cubic-bezier(.2, 1.2, .4, 1) var(--deal, 0ms) both; }
.rl-dash .card.shake { animation: rl-shake .35s; }

.rl-dash .c-stripe { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--ch) * .2); background: var(--cc, #888);
  background-image: repeating-linear-gradient(-55deg, rgba(255, 255, 255, .22) 0 4px, transparent 4px 10px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.rl-dash .c-big { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%); font: italic 800 calc(var(--ch) * .48)/1 var(--f-cond); color: var(--cc, #333);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8), 0 -1px 0 rgba(0, 0, 0, .15); }
.rl-dash .c-idx { position: absolute; font: italic 800 13px/1 var(--f-cond); color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, .5); }
.rl-dash .c-idx.tl { left: 8px; top: 5px; font-size: calc(var(--ch) * .13); }
.rl-dash .c-idx.br { right: 7px; bottom: 6px; color: var(--cc); text-shadow: none; transform: rotate(180deg); }
.rl-dash .c-lbl { position: absolute; left: 0; right: 0; bottom: 10px; font: 700 calc(var(--ch) * .085)/1 var(--f-cond); letter-spacing: 1.1px; color: #5b5f66; }
.rl-dash .card.v1 { --cc: #2f78c8; } .rl-dash .card.v2 { --cc: #1f9a62; }
.rl-dash .card.v3 { --cc: #e08f0e; } .rl-dash .card.v4 { --cc: #d3281e; }
.rl-dash .card.t-nerv { --cc: #7a47d6; }
.rl-dash .t-nerv .c-big { transform: translateY(-56%); }
.rl-dash .c-range { position: absolute; left: 0; right: 0; bottom: calc(var(--ch) * .22); font: 700 calc(var(--ch) * .1)/1 var(--f-cond); color: var(--cc); letter-spacing: 1px; }

.rl-dash .card.t-heat {
  color: #ffe9c2; cursor: not-allowed;
  background:
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .22) 0 6px, transparent 6px 12px),
    radial-gradient(circle at 50% 45%, #ff7a2a, #c8260c 55%, #6e0d04);
  --lift: 6px;
}
.rl-dash .card.t-heat::before { border-color: rgba(255, 220, 160, .35); }
.rl-dash .card.t-heat .flame { position: absolute; left: 50%; top: 22%; width: 42%; transform: translateX(-50%); filter: drop-shadow(0 0 6px rgba(255, 200, 80, .8)); }
.rl-dash .card.t-heat .c-lbl { color: #ffe1b0; bottom: 10px; }
.rl-dash .c-lock { position: absolute; right: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #2a2d31;
  background: radial-gradient(circle at 35% 30%, #fff, #a7aeb6 60%, #50565d); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.rl-dash .c-lock svg { width: 11px; height: 12px; }
.rl-dash .card.locked:not(.t-heat) { filter: saturate(.35) brightness(.72); cursor: not-allowed; }

/* spin prediction glow on selected cards */
.rl-dash .hand[data-spin='certain'] .card.sel { animation: rl-pulse-red 1s ease-in-out infinite; }
.rl-dash .hand[data-spin='possible'] .card.sel { animation: rl-pulse-amber 1.4s ease-in-out infinite; }

/* discard stamp */
.rl-dash .c-stamp { position: absolute; left: 50%; top: 50%; padding: 2px 4px; border: 2px solid #d3281e; border-radius: 3px; color: #d3281e; opacity: 0;
  font: 800 10px/1 var(--f-cond); letter-spacing: 1px; transform: translate(-50%, -50%) rotate(-18deg) scale(1.6); transition: opacity .15s, transform .2s;
  background: rgba(255, 255, 255, .75); }
.rl-dash .card.to-discard { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 2px #ff4a3a, 0 0 14px 2px rgba(255, 60, 40, .55), 0 16px 22px rgba(0, 0, 0, .6); }
.rl-dash .card.to-discard .c-stamp { opacity: 1; transform: translate(-50%, -50%) rotate(-18deg) scale(1); }

/* ---------- shifter ---------- */
.rl-dash .shifter-panel { grid-area: shift; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 10px 8px; }
.rl-dash .gear-lcd { width: 100%; height: 40px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 6px; }
.rl-dash .gear-seg { height: 30px; width: 23px; }
.rl-dash .gear-ladder { display: flex; gap: 3px; font: 9px/1 var(--f-mono); }
.rl-dash .gear-ladder i { font-style: normal; width: 13px; height: 11px; display: grid; place-items: center; border-radius: 2px; color: rgba(255, 176, 46, .3); text-shadow: none; }
.rl-dash .gear-ladder i.no { color: rgba(255, 176, 46, .08); }
.rl-dash .gear-ladder i.cur { box-shadow: inset 0 0 0 1px rgba(255, 176, 46, .5); color: rgba(255, 176, 46, .7); }
.rl-dash .gear-ladder i.sel { background: var(--lcd); color: #1a1408; box-shadow: 0 0 6px rgba(255, 176, 46, .8); }

.rl-dash .gate { --lv-top: 6px; --lv-bot: 26px; --knob: 34px; position: relative; flex: 1; width: 100%; min-height: 0; touch-action: none; }
/* y = 0 (4th, top) … 1 (1st, bottom): centre of the knob along the travel */
.rl-dash .gate { --travel: calc(100% - var(--lv-top) - var(--lv-bot) - var(--knob)); }
.rl-dash .gate-slot { position: absolute; top: calc(var(--lv-top) + var(--knob) / 2 - 7px); bottom: calc(var(--lv-bot) - 4px); width: 14px; left: 50%; transform: translateX(-50%); border-radius: 7px;
  background: linear-gradient(90deg, #000, #16181b 50%, #000); box-shadow: inset 0 2px 4px #000, 0 1px 0 rgba(255, 255, 255, .25), 0 -1px 0 rgba(0, 0, 0, .6); }
.rl-dash .detents { position: absolute; inset: 0; pointer-events: none; }
.rl-dash .detents button { pointer-events: auto; position: absolute; left: calc(50% + 20px); width: 26px; height: 20px; padding: 0 0 0 10px; border: 0; background: none; cursor: pointer;
  top: calc(var(--lv-top) + var(--knob) / 2 + var(--y) * (100% - var(--lv-top) - var(--lv-bot) - var(--knob))); transform: translateY(-50%);
  display: flex; align-items: center; font: 700 13px/1 var(--f-mono); color: rgba(255, 176, 46, .45); }
.rl-dash .detents button::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 2px; margin-top: -1px; background: #8d949c; box-shadow: 0 1px 0 #000; }
.rl-dash .detents button.no { color: rgba(255, 176, 46, .28); cursor: not-allowed; }
.rl-dash .detents button.cur b { text-decoration: underline; text-underline-offset: 3px; }
.rl-dash .g-ico { position: absolute; left: -58px; top: 50%; width: 16px; height: 21px; transform: translateY(-50%); font-style: normal; pointer-events: none; }
.rl-dash .g-ico svg { display: block; width: 100%; height: 100%; overflow: visible; }
.rl-dash .g-ico.cold svg { filter: drop-shadow(0 0 3px rgba(95, 200, 255, .55)); }
.rl-dash .g-ico.hot { width: 22px; height: 22px; left: -61px; }
.rl-dash .g-ico.hot svg { filter: drop-shadow(0 0 3px rgba(255, 90, 30, .6)); }
.rl-dash .g-num { position: absolute; right: calc(100% + 2px); top: 50%; transform: translateY(-50%); font: 700 10px/1 var(--f-mono); font-style: normal; white-space: nowrap; text-shadow: 0 0 3px #000, 0 0 2px #000; }
.rl-dash .g-ico.cold .g-num { color: #8fd8ff; }
.rl-dash .g-ico.hot .g-num { color: #ff8a4a; }
.rl-dash .merc-cool { transition: y .5s cubic-bezier(.3, 1.2, .5, 1), height .5s cubic-bezier(.3, 1.2, .5, 1); animation: rl-blink 1.1s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(95, 200, 255, .8)); }
.rl-dash .detents button.sel .g-ico.cold svg { filter: drop-shadow(0 0 5px rgba(95, 200, 255, .95)); }
.rl-dash .detents button.sel .g-ico.hot svg { filter: drop-shadow(0 0 5px rgba(255, 90, 30, .95)); animation: rl-blink 1.1s ease-in-out infinite; }
.rl-dash .detents button.sel { color: var(--lcd); text-shadow: 0 0 8px rgba(255, 176, 46, .9); }
.rl-dash .boot { position: absolute; bottom: 2px; left: 50%; width: 56px; height: 26px; transform: translateX(-50%); border-radius: 50% 50% 10px 10px / 70% 70% 10px 10px; z-index: 2;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .45) 0 2px, transparent 2px 6px),
    radial-gradient(80% 100% at 50% 0%, #2c2f33, #0b0c0d);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12); }
.rl-dash .lever { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.rl-dash .shaft, .rl-dash .knob { transition: top .22s cubic-bezier(.3, 1.5, .5, 1); }
.rl-dash .lever.dragging .shaft, .rl-dash .lever.dragging .knob { transition: none; }
.rl-dash .shaft { position: absolute; left: 50%; width: 9px; margin-left: -4.5px; bottom: 10px; border-radius: 4px;
  top: calc(var(--lv-top) + var(--knob) / 2 + var(--y) * (100% - var(--lv-top) - var(--lv-bot) - var(--knob)));
  background: linear-gradient(90deg, #4a5058, #f1f3f5 40%, #8a929b 70%, #2f3338); box-shadow: 0 2px 4px rgba(0, 0, 0, .6); }
.rl-dash .knob { pointer-events: auto; position: absolute; left: 50%; width: var(--knob); height: var(--knob); margin-left: calc(var(--knob) / -2); border-radius: 50%; cursor: grab;
  top: calc(var(--lv-top) + var(--y) * (100% - var(--lv-top) - var(--lv-bot) - var(--knob)));
  background: radial-gradient(circle at 34% 28%, #6b7179 0, #2a2d31 38%, #0d0e10 75%);
  box-shadow: 0 7px 10px rgba(0, 0, 0, .8), inset 0 2px 1px rgba(255, 255, 255, .28), inset 0 -4px 7px rgba(0, 0, 0, .9), 0 0 0 1px #000; }
.rl-dash .knob::before { content: ''; position: absolute; inset: 9px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #f3f5f7, #9aa2ab 55%, #4a5058); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); opacity: .85; }
.rl-dash .knob::after { content: 'R'; position: absolute; inset: 0; display: grid; place-items: center; font: 900 12px/1 var(--f-cond); color: #c0261a; letter-spacing: 0; }
.rl-dash .lever.dragging .knob { cursor: grabbing; }
.rl-dash .knob:focus-visible { outline: 2px solid var(--lcd); outline-offset: 3px; }
.rl-dash .lever.clunk-up .knob { animation: rl-clunk-up .28s ease-out; }
.rl-dash .lever.clunk-dn .knob { animation: rl-clunk-dn .28s ease-out; }
.rl-dash .lever.blocked-up .knob { animation: rl-blk-up .3s; }
.rl-dash .lever.blocked-dn .knob { animation: rl-blk-dn .3s; }
.rl-dash .gate-hint { font: 600 9.5px/1 var(--f-cond); letter-spacing: 1px; color: #9aa2ab; text-transform: uppercase; white-space: nowrap; }
.rl-dash .shifter-panel.inactive .knob { filter: brightness(.7); }
.rl-dash .shifter-panel.inactive .knob { cursor: default; }

/* ---------- control panel ---------- */
.rl-dash .ctrl-panel { grid-area: ctrl; display: grid; grid-template-columns: 82px 1fr; grid-template-rows: 1fr auto; gap: 8px; padding: 12px 12px 10px; }
.rl-dash .switches { display: flex; flex-direction: column; gap: 6px; }
.rl-dash .sw-plate { flex: 1; position: relative; border-radius: 7px; padding: 3px 4px; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #1a1c1f, #0e0f11); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .14); }
.rl-dash .sw-cap { font: 700 9px/1 var(--f-cond); letter-spacing: 1.6px; color: #c3c9d0; }
.rl-dash .sw-well { position: relative; flex: 1; width: 100%; display: grid; place-items: center; perspective: 220px; }
.rl-dash .sw-sub { display: flex; align-items: center; gap: 4px; font: 600 9px/1 var(--f-cond); letter-spacing: .5px; color: #8f98a3; text-transform: uppercase; white-space: nowrap; }
.rl-dash .led { width: 6px; height: 6px; border-radius: 50%; background: #3a1a12; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .8); }

.rl-dash .toggle { position: relative; width: 26px; height: 32px; border: 0; padding: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #e4e8ec, #7f878f 55%, #2e3237); box-shadow: 0 0 0 2px #0a0b0c, 0 2px 4px rgba(0, 0, 0, .8); }
.rl-dash .toggle i { position: absolute; left: 50%; top: 50%; width: 9px; height: 22px; margin-left: -4.5px; border-radius: 5px 5px 4px 4px;
  background: linear-gradient(90deg, #6b737c, #f6f8fa 45%, #9aa2ab 70%, #3c4147); box-shadow: 0 3px 3px rgba(0, 0, 0, .6);
  transform-origin: 50% 0; transform: translateY(0) scaleY(1); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.rl-dash .on .toggle i { transform: translateY(-17px) scaleY(.9); }
.rl-dash .guard { position: absolute; left: 50%; top: 50%; width: 46px; height: 44px; margin: -22px 0 0 -23px; border: 0; padding: 0; cursor: pointer; border-radius: 8px 8px 6px 6px;
  background: linear-gradient(180deg, rgba(255, 70, 50, .92), rgba(170, 18, 10, .92)); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), inset 0 -4px 6px rgba(0, 0, 0, .35), 0 3px 6px rgba(0, 0, 0, .7);
  transform-origin: 50% 0; transition: transform .35s cubic-bezier(.3, 1.3, .5, 1), opacity .3s; }
.rl-dash .guard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .25) 0 4px, transparent 4px 9px); opacity: .5; }
.rl-dash .guard span { position: relative; z-index: 1; font: 800 9px/1 var(--f-cond); letter-spacing: 1px; text-shadow: 0 1px 1px rgba(0, 0, 0, .6); }
.rl-dash .hinge { position: absolute; left: 50%; top: 50%; width: 50px; height: 6px; margin: -25px 0 0 -25px; z-index: 2; border-radius: 3px;
  background: linear-gradient(180deg, #f2f4f6, #8a929b 50%, #3a3f45); box-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.rl-dash .turbo.open .guard { transform: translateY(-3px) scaleY(.2); filter: brightness(.8); pointer-events: none; }
.rl-dash .turbo.open .guard span { opacity: 0; }
.rl-dash .turbo:not(.open) .toggle { pointer-events: none; }
.rl-dash .turbo.on .led { background: #ff4a2a; box-shadow: 0 0 6px 1px #ff4a2a; }
.rl-dash .turbo.on .sw-sub { color: #ffb4a0; }
.rl-dash .turbo.dis .guard { filter: grayscale(.8) brightness(.55); cursor: not-allowed; }
.rl-dash .turbo.shake { animation: rl-shake .35s; }

.rl-dash .adr .toggle { display: none; }
.rl-dash .sw-blank { font: 700 14px var(--f-mono); color: #2d3136; }
.rl-dash .adr.avail .toggle { display: block; }
.rl-dash .adr.avail .sw-blank { display: none; }
.rl-dash .adr:not(.avail) .sw-cap { color: #5f666e; }
.rl-dash .adr.avail .led { background: #3a3110; }
.rl-dash .adr.on .led { background: #ffd23a; box-shadow: 0 0 6px 1px #ffd23a; }
.rl-dash .adr.on .sw-sub { color: #ffe08a; }
.rl-dash .adr.dis .toggle { pointer-events: none; filter: brightness(.6); }

.rl-dash .go-wrap { display: grid; place-items: center; min-height: 0; }
.rl-dash .go-ring { width: 118px; height: 118px; border-radius: 50%; padding: 9px; position: relative;
  background: conic-gradient(from 200deg, #f7f8fa, #7b838c 14%, #e9ecef 28%, #4c535b 42%, #d9dde2 58%, #6d757e 74%, #f2f4f6 88%, #f7f8fa);
  box-shadow: 0 0 0 1px #050607, 0 6px 14px rgba(0, 0, 0, .8); }
.rl-dash .go-ring::before { /* LED ring between bezel and button */
  content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #1a0705; box-shadow: inset 0 0 4px #000; transition: background .3s, box-shadow .3s; }
.rl-dash .go-ring.ready::before { background: #ff3a22; box-shadow: 0 0 10px 2px rgba(255, 50, 30, .7), inset 0 0 3px rgba(0, 0, 0, .6); animation: rl-ring 1.8s ease-in-out infinite; }
.rl-dash .go-ring.ready.amber::before { background: var(--amber); box-shadow: 0 0 10px 2px rgba(255, 176, 46, .7); }
.rl-dash .go-ring.ready.danger::before { animation-duration: .7s; }
.rl-dash .go-ring.shake { animation: rl-shake .35s; }
.rl-dash .go { position: relative; width: 100%; height: 100%; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: radial-gradient(circle at 38% 30%, #ff8a73, #f0271a 34%, #a10d06 72%, #5a0602);
  box-shadow: 0 0 0 2px #2a0503, inset 0 2px 3px rgba(255, 255, 255, .45), inset 0 -6px 10px rgba(0, 0, 0, .45), 0 5px 0 #4a0402, 0 8px 10px rgba(0, 0, 0, .6);
  transform: translateY(-3px); transition: transform .08s, box-shadow .08s, filter .2s; }
.rl-dash .go::after { content: ''; position: absolute; left: 18%; top: 9%; width: 52%; height: 30%; border-radius: 50%; background: radial-gradient(rgba(255, 255, 255, .55), transparent 70%); pointer-events: none; }
.rl-dash .go span { font: italic 800 16px/1 var(--f-cond); letter-spacing: 1px; color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .2); }
.rl-dash[data-mode='discard'] .go span { font-size: 13px; line-height: 1.05; }
.rl-dash .go:hover:not(:disabled) { filter: brightness(1.08); }
.rl-dash .go:active:not(:disabled), .rl-dash .go.pressed { transform: translateY(1px); box-shadow: 0 0 0 2px #2a0503, inset 0 3px 6px rgba(0, 0, 0, .45), 0 1px 0 #4a0402, 0 2px 3px rgba(0, 0, 0, .6); }
.rl-dash .go:disabled { cursor: not-allowed; filter: saturate(.25) brightness(.55); transform: translateY(0); }
.rl-dash .reason { grid-column: 1 / -1; height: 26px; padding: 0 8px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
.rl-dash .reason.err { color: #ff6a50; text-shadow: 0 0 6px rgba(255, 80, 50, .6); }
.rl-dash .reason.warn.certain { color: #ff5040; text-shadow: 0 0 6px rgba(255, 60, 40, .8); animation: rl-blink .9s ease-in-out infinite; }
.rl-dash .reason.okay { color: #9bff8a; text-shadow: 0 0 6px rgba(120, 255, 100, .5); }

/* busy / over */
.rl-dash.busy .hand, .rl-dash.busy .switches { pointer-events: none; }
.rl-dash.busy .card { filter: brightness(.75); }
.rl-dash[data-mode='over'] .card { filter: saturate(.3) brightness(.6); }

/* ---------- animations ---------- */
@keyframes rl-pulse-red {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 2px #ff2a1a, 0 0 10px 2px rgba(255, 40, 20, .6), 0 16px 22px rgba(0, 0, 0, .6); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 3px #ff4530, 0 0 26px 8px rgba(255, 40, 20, .95), 0 16px 22px rgba(0, 0, 0, .6); }
}
@keyframes rl-pulse-amber {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 2px #ffb02e, 0 0 8px 2px rgba(255, 176, 46, .45), 0 16px 22px rgba(0, 0, 0, .6); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 0 0 2px #ffc14f, 0 0 20px 6px rgba(255, 176, 46, .85), 0 16px 22px rgba(0, 0, 0, .6); }
}
@keyframes rl-blink { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes rl-ring { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
@keyframes rl-deal { from { transform: translateY(120px) rotate(-8deg); opacity: 0; } to { transform: translateY(var(--lift)) rotate(calc(var(--i, 0) * 1.2deg)); opacity: 1; } }
@keyframes rl-shake { 0%, 100% { translate: 0; } 20% { translate: -5px; } 40% { translate: 5px; } 60% { translate: -3px; } 80% { translate: 2px; } }
@keyframes rl-clunk-up { 0% { transform: none; } 50% { transform: translateY(-3px) scale(.96); } 100% { transform: none; } }
@keyframes rl-clunk-dn { 0% { transform: none; } 50% { transform: translateY(3px) scale(.96); } 100% { transform: none; } }
@keyframes rl-push { 0% { transform: none; } 40% { transform: translateY(-12px) scale(.94); } 100% { transform: none; } }
@keyframes rl-pull { 0% { transform: none; } 40% { transform: translateY(12px) scale(1.05); } 100% { transform: none; } }
@keyframes rl-blk-up { 0%, 100% { transform: none; } 30% { transform: translateY(-4px); } 60% { transform: translateY(1px); } }
@keyframes rl-blk-dn { 0%, 100% { transform: none; } 30% { transform: translateY(4px); } 60% { transform: translateY(-1px); } }
@keyframes rl-wave { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes rl-toast { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, -4px); } }

@media (prefers-reduced-motion: reduce) {
  .rl-dash *, .rl-dash *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .rl-dash { --cw: 68px; --ch: 100px; grid-template-columns: 150px 208px minmax(0, 1fr) 108px 214px; gap: 8px; padding: 14px 8px 8px; }
  .rl-dash .gate-hint { display: none; }
  .rl-dash .piles { flex-direction: column; gap: 3px; }
  .rl-dash .pile { padding: 2px 4px; }
  .rl-dash .pile-info { display: flex; align-items: baseline; gap: 4px; }
  .rl-dash .hand-head .more { display: none; }
  .rl-dash[data-mode='plan'] .hand-title { display: none; }
  .rl-dash .go-ring { width: 106px; height: 106px; }
  .rl-dash .ctrl-panel { grid-template-columns: 76px 1fr; }
}
@media (max-width: 1100px) {
  .rl-dash { --cw: 62px; --ch: 92px; grid-template-columns: 136px 190px minmax(0, 1fr) 98px 198px; }
  .rl-dash .ctrl-panel { grid-template-columns: 72px 1fr; padding: 12px 8px 8px; }
  .rl-dash .go-ring { width: 98px; height: 98px; }
}
@media (max-width: 900px) {
  .rl-dash {
    height: auto; --cw: 58px; --ch: 84px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: 'hand hand' 'speedo heat' 'shift ctrl';
  }
  .rl-dash .hand-panel { height: 150px; }
  .rl-dash .speedo-panel, .rl-dash .heat-panel { height: 250px; }
  .rl-dash .shifter-panel, .rl-dash .ctrl-panel { height: 230px; }
  .rl-dash .spin-tag { max-width: 46vw; }
  .rl-dash .hand-title { display: none; }
}
