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

/* ------------------------------------------------------------------ */
/*  Rocket League Pump - HUD + Menu overlay styles                      */
/* ------------------------------------------------------------------ */

:root {
  --rl-blue: #2f7bff;
  --rl-blue-deep: #1750c4;
  --rl-orange: #ff8a2a;
  --rl-orange-deep: #d9601a;
  --rl-yellow: #ffd23f;
  --rl-green: #45e06a;
  --rl-red: #ff3b3b;
  --rl-panel: rgba(8, 12, 24, 0.75);
  --rl-panel-solid: rgba(8, 12, 24, 0.92);
  --rl-line: rgba(255, 255, 255, 0.16);
  --rl-line-strong: rgba(255, 255, 255, 0.34);
  --rl-text: #ffffff;
  --rl-muted: rgba(255, 255, 255, 0.58);
  --rl-font: 'Barlow Condensed', 'Rajdhani', 'Arial Narrow', Impact, sans-serif;
  --rl-font-alt: 'Rajdhani', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  /* the contract address is a code string, so it gets real tabular glyphs, not the condensed face */
  --rl-font-mono: ui-monospace, 'SFMono-Regular', 'Roboto Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --rl-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 8px rgba(0, 0, 0, 0.35);
  --rl-cut: 10px;
  --rl-bar-h: 88px;      /* bottom bar height - every menu column clears it */
  /* Safe padding, identical left and right. 5vw is the inset the top bar and the menu column already
     use, so the bar's profile card lines up with them; 28px is the floor on narrow screens. */
  --rl-gutter: max(28px, 5vw);
  --rl-bar-gap: 28px;
}

html, body { margin: 0; padding: 0; background: #05070d; overflow: hidden; }
canvas { display: block; }

#ui {
  position: fixed; inset: 0;
  pointer-events: none;
  overflow: hidden;
  font-family: var(--rl-font);
  color: var(--rl-text);
  text-transform: uppercase;
  user-select: none;
  -webkit-user-select: none;
  z-index: 10;
}
#ui * { box-sizing: border-box; }
#hud, #menu { position: absolute; inset: 0; pointer-events: none; }
#ui [hidden] { display: none !important; }

/* generic angled panel */
.rl-panel {
  position: relative;
  background: var(--rl-panel);
  border: 1px solid var(--rl-line);
  clip-path: polygon(var(--rl-cut) 0, 100% 0, 100% calc(100% - var(--rl-cut)), calc(100% - var(--rl-cut)) 100%, 0 100%, 0 var(--rl-cut));
}
.rl-panel::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  pointer-events: none;
}
.rl-label {
  font-weight: 700; letter-spacing: 0.18em; font-size: 12px; color: var(--rl-muted);
}
.rl-btn {
  pointer-events: auto; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--rl-font); font-weight: 800; letter-spacing: 0.14em; font-size: 18px;
  color: #fff; text-transform: uppercase; text-shadow: var(--rl-shadow);
  background: linear-gradient(180deg, rgba(60, 68, 90, 0.9), rgba(24, 28, 42, 0.95));
  border: 1px solid var(--rl-line-strong);
  padding: 10px 28px; min-width: 160px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: transform 0.08s ease, filter 0.12s ease;
  outline: none;
}
.rl-btn:hover, .rl-btn.focused { filter: brightness(1.25); transform: translateY(-1px); }
.rl-btn:active { transform: translateY(1px); }
.rl-btn.blue {
  background: linear-gradient(180deg, #4a90ff, #1d5fe0 60%, #1a4fc0);
  border-color: rgba(190, 215, 255, 0.7);
  box-shadow: 0 0 18px rgba(47, 123, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.rl-btn.big { font-size: 26px; padding: 14px 40px; min-width: 300px; }

/* ================================================================== */
/*  HUD                                                                */
/* ================================================================== */
.rl-hud { position: absolute; inset: 0; pointer-events: none; }
.rl-hud.hidden { display: none; }

/* ---------- scoreboard arch (top center) ---------- */
.rl-sb {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 470px; height: 76px;
  display: flex; flex-direction: column; align-items: center;
}
.rl-sb-arch {
  position: relative; width: 100%; height: 66px;
  background: linear-gradient(180deg, rgba(10, 14, 28, 0.92), rgba(8, 12, 24, 0.78));
  clip-path: polygon(0 0, 100% 0, calc(100% - 34px) 100%, 34px 100%);
  display: flex; align-items: center; justify-content: center; gap: 0;
  padding: 0 44px;
}
.rl-sb-arch::after {
  content: ''; position: absolute; left: 34px; right: 34px; bottom: 0; height: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.rl-sb-box {
  position: relative; width: 62px; height: 52px;
  transform: skewX(-8deg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 40px; line-height: 1; color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.rl-sb-box > span { display: block; transform: skewX(8deg); }
.rl-sb-box.blue { background: linear-gradient(180deg, #3f8bff, #1f5fd9 55%, #1a4fc0); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 14px rgba(47,123,255,.45); }
.rl-sb-box.orange { background: linear-gradient(180deg, #ff9a3c, #f0701c 55%, #d95d12); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 0 14px rgba(255,138,42,.45); }
.rl-sb-clock {
  position: relative; width: 190px; height: 52px; margin: 0 6px;
  transform: skewX(-8deg);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(20, 26, 44, 0.95), rgba(8, 12, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.rl-sb-clock > span {
  display: block; transform: skewX(8deg);
  font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.35), 0 2px 3px rgba(0, 0, 0, 0.7);
}
.rl-sb.overtime .rl-sb-clock { border-color: rgba(255, 210, 63, 0.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 0 14px rgba(255, 210, 63, 0.35); }
.rl-sb.overtime .rl-sb-clock > span { color: var(--rl-yellow); text-shadow: 0 0 12px rgba(255, 210, 63, 0.7), 0 2px 3px rgba(0,0,0,.7); }
.rl-sb.overtime .rl-sb-ot {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%) skewX(8deg); /* undo the clock's skew */
  font-size: 11px; font-weight: 800; letter-spacing: 0.3em; color: #0a0c14;
  background: var(--rl-yellow); padding: 1px 10px 0; display: block;
}
.rl-sb-ot { display: none; }
.rl-sb-bar {
  width: 300px; height: 3px; margin-top: 3px;
  background: linear-gradient(90deg, var(--rl-blue), rgba(255,255,255,0.85) 50%, var(--rl-orange));
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

/* ---------- boost gauge (bottom right) ---------- */
.rl-boost {
  position: absolute; right: 30px; bottom: 26px; width: 156px; height: 156px;
  display: flex; align-items: center; justify-content: center;
}
.rl-boost svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rl-boost .tick { stroke: rgba(255, 255, 255, 0.13); stroke-width: 3.2; stroke-linecap: butt; transition: stroke 0.08s linear; }
.rl-boost .tick.on { stroke: var(--tick-color, #ffb020); filter: drop-shadow(0 0 2px rgba(255, 150, 30, 0.9)); }
.rl-boost .ring-bg { fill: rgba(6, 9, 18, 0.72); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.rl-boost .ring-in { fill: none; stroke: rgba(255, 255, 255, 0.10); stroke-width: 1; }
.rl-boost-num {
  position: relative; z-index: 1;
  font-weight: 800; font-size: 54px; line-height: 1; margin-top: -8px;
  color: #fff3d6; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(255, 170, 40, 0.85), 0 0 22px rgba(255, 120, 20, 0.5), 0 2px 2px rgba(0,0,0,.6);
  transition: color 0.15s ease;
}
.rl-boost-label {
  position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; z-index: 1;
  font-size: 12px; font-weight: 700; letter-spacing: 0.32em; color: rgba(255, 255, 255, 0.72);
}
.rl-boost.empty .rl-boost-num { color: #ff4a3a; text-shadow: 0 0 10px rgba(255, 60, 40, 0.7), 0 2px 2px rgba(0,0,0,.6); animation: rl-flash 0.7s ease-in-out infinite; }
.rl-boost.empty .rl-boost-label { color: rgba(255, 90, 70, 0.8); }
.rl-boost::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow 0.25s ease; pointer-events: none;
}
.rl-boost.supersonic::after { box-shadow: 0 0 26px 6px rgba(255, 255, 255, 0.35), inset 0 0 18px rgba(255, 255, 255, 0.25); }
.rl-boost.boosting .rl-boost-num { color: #ffffff; }
@keyframes rl-flash { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* ---------- nameplates ---------- */
.rl-nameplates { position: absolute; inset: 0; overflow: hidden; }
.rl-nameplate {
  position: absolute; left: 0; top: 0;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none; white-space: nowrap;
}
.rl-nameplate-arrow {
  display: none; width: 0; height: 0; margin-bottom: 3px;
  border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-bottom: 9px solid #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6));
}
.rl-nameplate.teammate .rl-nameplate-arrow { display: block; }
.rl-nameplate-pill {
  padding: 2px 11px 3px; border-radius: 5px;
  font-size: 16px; font-weight: 700; letter-spacing: 0.06em; line-height: 1.1;
  color: #fff; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
  background: var(--rl-blue);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.rl-nameplate.orange .rl-nameplate-pill { background: var(--rl-orange); }
.rl-nameplate-tip {
  width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 6px solid var(--rl-blue);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}
.rl-nameplate.orange .rl-nameplate-tip { border-top-color: var(--rl-orange); }
.rl-nameplate.hidden { display: none; }

/* ---------- YOU tag ---------- */
.rl-you {
  position: absolute; top: 16px; right: 22px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 9px; border-radius: 5px;
  background: linear-gradient(180deg, #3f8bff, #1f5fd9);
  border: 1px solid rgba(190, 215, 255, 0.6);
  box-shadow: 0 0 12px rgba(47, 123, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  font-size: 15px; font-weight: 800; letter-spacing: 0.16em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6);
}
.rl-you svg { width: 16px; height: 12px; fill: #fff; }

/* ---------- countdown ---------- */
.rl-countdown {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  font-size: 230px; font-weight: 800; font-style: italic; line-height: 1;
  color: #fff; letter-spacing: -0.02em;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.55), 0 6px 10px rgba(0, 0, 0, 0.7), 0 0 2px rgba(0,0,0,.9);
  pointer-events: none;
}
.rl-countdown.go { color: var(--rl-yellow); text-shadow: 0 0 30px rgba(255, 210, 63, 0.8), 0 6px 10px rgba(0, 0, 0, 0.7); font-size: 200px; letter-spacing: 0.04em; }
.rl-countdown.pop { animation: rl-pop 1s cubic-bezier(0.17, 0.89, 0.32, 1.2) both; }
.rl-countdown.go.pop { animation: rl-pop-go 1.1s ease-out both; }
@keyframes rl-pop {
  0%   { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
  18%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.9); opacity: 1; }
}
@keyframes rl-pop-go {
  0%   { transform: translate(-50%, -50%) scale(0.4); opacity: 0; }
  15%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  60%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* ---------- goal banner ---------- */
.rl-goal {
  position: absolute; left: 0; right: 0; top: 30%;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  --team: var(--rl-blue); --team-deep: var(--rl-blue-deep);
}
.rl-goal.orange { --team: var(--rl-orange); --team-deep: var(--rl-orange-deep); }
.rl-goal-stripe {
  position: absolute; left: -10%; right: -10%; top: 22px; height: 150px;
  transform: skewY(-3deg) scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, transparent 0%, var(--team-deep) 18%, var(--team) 50%, var(--team-deep) 82%, transparent 100%);
  opacity: 0.55;
}
.rl-goal-stripe::before, .rl-goal-stripe::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.75);
}
.rl-goal-stripe::before { top: 0; } .rl-goal-stripe::after { bottom: 0; }
.rl-goal-title {
  position: relative; font-size: 190px; font-weight: 800; font-style: italic; line-height: 1;
  letter-spacing: 0.02em; color: #fff;
  text-shadow: 0 0 30px var(--team), 0 0 60px var(--team), 0 6px 12px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0,0,0,.9);
  transform: translateX(-140%); opacity: 0;
}
.rl-goal-sub {
  position: relative; margin-top: 4px; display: flex; align-items: center; gap: 22px;
  font-size: 30px; font-weight: 700; letter-spacing: 0.22em;
  text-shadow: var(--rl-shadow); transform: translateY(24px); opacity: 0;
}
.rl-goal-sub .rl-goal-scorer b { font-weight: 800; color: #fff; }
.rl-goal-sub .rl-goal-scorer { color: rgba(255, 255, 255, 0.85); }
.rl-goal-speed {
  padding: 2px 14px; border: 1px solid rgba(255,255,255,.5); background: rgba(8, 12, 24, 0.7);
  font-size: 26px; letter-spacing: 0.12em; color: var(--rl-yellow);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.rl-goal-assist { font-size: 18px; letter-spacing: 0.24em; color: var(--rl-muted); margin-top: 10px; opacity: 0; }
.rl-goal.show .rl-goal-stripe { animation: rl-stripe 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both; }
.rl-goal.show .rl-goal-title { animation: rl-slide-in 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) 0.08s both; }
.rl-goal.show .rl-goal-sub { animation: rl-rise 0.45s ease-out 0.42s both; }
.rl-goal.show .rl-goal-assist { animation: rl-rise 0.4s ease-out 0.62s both; }
@keyframes rl-stripe { from { transform: skewY(-3deg) scaleX(0); } to { transform: skewY(-3deg) scaleX(1); } }
@keyframes rl-slide-in { from { transform: translateX(-140%); opacity: 0; } 70% { transform: translateX(3%); opacity: 1; } to { transform: translateX(0); opacity: 1; } }
@keyframes rl-rise { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- replay ---------- */
.rl-replay-tag {
  position: absolute; left: 34px; bottom: 44px;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 30px; font-weight: 800; letter-spacing: 0.3em; text-shadow: var(--rl-shadow);
}
.rl-replay-tag::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--rl-red);
  box-shadow: 0 0 12px rgba(255, 40, 40, 0.9); animation: rl-flash 1s ease-in-out infinite;
}
.rl-replay-skip {
  position: absolute; right: 34px; bottom: 48px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.26em; color: rgba(255, 255, 255, 0.8);
  text-shadow: var(--rl-shadow);
}
.rl-replay-skip kbd {
  font-family: inherit; font-size: 12px; padding: 1px 7px; margin: 0 2px;
  border: 1px solid rgba(255,255,255,.55); border-bottom-width: 2px; border-radius: 3px; background: rgba(0,0,0,.5);
}
.rl-letterbox { position: absolute; left: 0; right: 0; height: 7vh; background: #000; transition: transform 0.35s ease-out; }
.rl-letterbox.top { top: 0; transform: translateY(-100%); }
.rl-letterbox.bottom { bottom: 0; transform: translateY(100%); }
.rl-hud.replay .rl-letterbox { transform: translateY(0); }
.rl-hud.replay .rl-boost, .rl-hud.replay .rl-you { display: none; }
.rl-hud.matchend .rl-boost, .rl-hud.matchend .rl-you, .rl-hud.matchend .rl-nameplates { display: none; }

/* ---------- overtime banner ---------- */
.rl-overtime {
  position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%);
  font-size: 150px; font-weight: 800; font-style: italic; letter-spacing: 0.06em; line-height: 1;
  color: #fff; text-shadow: 0 0 26px rgba(255, 210, 63, 0.9), 0 0 50px rgba(255, 150, 20, 0.5), 0 6px 12px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none;
}
.rl-overtime.play { animation: rl-overtime 2.6s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes rl-overtime {
  0%   { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
  14%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  66%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, calc(-36vh + 30px)) scale(0.16); opacity: 0; }
}

/* ---------- scoreboard table (Tab) ---------- */
.rl-table-wrap {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 820px; max-width: 94vw;
  background: var(--rl-panel-solid); border: 1px solid var(--rl-line-strong);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  padding: 18px 26px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.rl-table-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--rl-line);
}
.rl-table-head .title { font-size: 24px; font-weight: 800; letter-spacing: 0.22em; display: flex; align-items: center; gap: 10px; }
.rl-table-head .title::before { content: ''; width: 10px; height: 22px; background: linear-gradient(180deg, var(--rl-blue), var(--rl-orange)); transform: skewX(-12deg); }
.rl-table-head .meta { font-size: 13px; letter-spacing: 0.2em; color: var(--rl-muted); }
.rl-team {
  --team: var(--rl-blue);
  margin-top: 12px;
}
.rl-team.orange { --team: var(--rl-orange); }
.rl-team-bar {
  display: grid; grid-template-columns: 1fr 62px 62px 62px 62px 62px 74px; align-items: center;
  height: 40px; margin-bottom: 4px;
  background: linear-gradient(90deg, var(--team) 0%, color-mix(in srgb, var(--team) 40%, transparent) 40%, rgba(255,255,255,0.04) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 8px 100%);
}
.rl-team-bar .tname { display: flex; align-items: baseline; gap: 12px; padding-left: 14px; }
.rl-team-bar .tscore { font-size: 34px; font-weight: 800; line-height: 1; text-shadow: 0 2px 3px rgba(0,0,0,.6); }
.rl-team-bar .tlabel { font-size: 20px; font-weight: 800; letter-spacing: 0.2em; }
.rl-team-bar .col { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-align: center; color: rgba(255,255,255,.75); }
.rl-row {
  display: grid; grid-template-columns: 1fr 62px 62px 62px 62px 62px 74px; align-items: center;
  height: 48px; margin-top: 3px;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 6px 100%);
}
.rl-row.me { background: rgba(47, 123, 255, 0.16); border-color: rgba(120, 170, 255, 0.45); box-shadow: inset 3px 0 0 var(--rl-blue); }
.rl-team.orange .rl-row.me { background: rgba(255, 138, 42, 0.16); border-color: rgba(255, 180, 120, 0.45); box-shadow: inset 3px 0 0 var(--rl-orange); }
.rl-row .who { display: flex; align-items: center; gap: 12px; padding-left: 10px; min-width: 0; }
.rl-avatar {
  width: 36px; height: 36px; flex: 0 0 36px;
  background: linear-gradient(160deg, #262b3b, #0d1019); border: 1px solid rgba(255,255,255,.2);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
  display: flex; align-items: center; justify-content: center;
}
.rl-avatar svg { width: 22px; height: 22px; }
.rl-row .names { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.rl-row .pname { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.rl-row .psub { font-size: 11px; letter-spacing: 0.18em; color: var(--rl-muted); font-weight: 600; }
.rl-row .stat { font-size: 20px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.rl-row .ping { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.85); }
.rl-sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.rl-sig i { display: block; width: 3px; background: var(--rl-green); box-shadow: 0 0 4px rgba(69, 224, 106, 0.8); }
.rl-sig i:nth-child(1) { height: 4px; } .rl-sig i:nth-child(2) { height: 7px; } .rl-sig i:nth-child(3) { height: 10px; } .rl-sig i:nth-child(4) { height: 12px; }
.rl-tag-you {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; padding: 1px 6px 0;
  background: var(--rl-blue); border-radius: 3px; color: #fff; line-height: 14px;
}
.rl-team.orange .rl-tag-you { background: var(--rl-orange); }
.rl-tag-mvp {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.2em; padding: 1px 6px 0;
  background: var(--rl-yellow); border-radius: 3px; color: #10131c; line-height: 14px;
}

/* ---------- match end ---------- */
.rl-matchend {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.7));
  --team: var(--rl-blue);
}
.rl-matchend.orange { --team: var(--rl-orange); }
.rl-me-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rl-matchend .rl-table-wrap { position: static; transform: none; }
@media (max-height: 860px) { .rl-me-inner { transform: scale(0.8); } }
@media (max-height: 640px) { .rl-me-inner { transform: scale(0.62); } }
.rl-me-title {
  font-size: 96px; font-weight: 800; font-style: italic; letter-spacing: 0.06em; line-height: 1;
  color: var(--team); text-shadow: 0 0 30px var(--team), 0 6px 12px rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.9);
  animation: rl-slide-in 0.6s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}
.rl-me-title.draw { color: #fff; text-shadow: 0 0 30px rgba(255,255,255,.6), 0 6px 12px rgba(0,0,0,.8); }
.rl-me-score { display: flex; align-items: center; gap: 18px; font-size: 44px; font-weight: 800; line-height: 1; animation: rl-rise 0.4s ease-out 0.3s both; }
.rl-me-score .b { color: var(--rl-blue); text-shadow: 0 0 14px rgba(47,123,255,.7); }
.rl-me-score .o { color: var(--rl-orange); text-shadow: 0 0 14px rgba(255,138,42,.7); }
.rl-me-score .dash { color: rgba(255,255,255,.5); font-size: 30px; }
.rl-me-mvp { font-size: 18px; letter-spacing: 0.28em; color: var(--rl-muted); animation: rl-rise 0.4s ease-out 0.4s both; }
.rl-me-mvp b { color: var(--rl-yellow); font-weight: 800; margin-left: 6px; }
.rl-matchend .rl-btn { margin-top: 8px; animation: rl-rise 0.4s ease-out 0.6s both; }

/* ---------- pause ---------- */
.rl-pause {
  position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.35) 100%);
  display: flex; flex-direction: column; justify-content: center; padding-left: 8vw; gap: 8px;
  pointer-events: auto;
}
.rl-pause-title { font-size: 64px; font-weight: 800; font-style: italic; letter-spacing: 0.1em; margin-bottom: 18px; text-shadow: var(--rl-shadow); }
.rl-pause-title::after { content: ''; display: block; width: 180px; height: 3px; margin-top: 6px; background: linear-gradient(90deg, var(--rl-blue), transparent); }
.rl-mi {
  pointer-events: auto; cursor: pointer; position: relative;
  width: 320px; min-height: 42px; padding: 7px 16px 7px 20px;
  display: flex; flex-direction: column; justify-content: center;
  background: rgba(8, 12, 24, 0.78); border: 1px solid rgba(255, 255, 255, 0.16);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  font-size: 20px; font-weight: 800; letter-spacing: 0.12em; color: rgba(255,255,255,.92);
  text-shadow: var(--rl-shadow); transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}
.rl-mi::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: rgba(255,255,255,.2);
  transition: background 0.12s ease;
}
.rl-mi .sub { font-size: 12px; letter-spacing: 0.24em; font-weight: 700; color: rgba(255, 255, 255, 0.62); margin-top: 2px; }
.rl-mi.focused {
  background: linear-gradient(90deg, #8a4f18 0%, #6a3a12 55%, rgba(40, 24, 10, 0.85) 100%);
  border-color: rgba(255, 190, 120, 0.55); transform: translateX(8px);
  box-shadow: 0 0 18px rgba(255, 138, 42, 0.25);
}
.rl-mi.focused::before { background: var(--rl-orange); box-shadow: 0 0 8px var(--rl-orange); }
.rl-mi.play {
  min-height: 58px; margin-bottom: 6px;
  background: linear-gradient(90deg, rgba(31, 95, 217, 0.75) 0%, rgba(20, 50, 120, 0.7) 60%, rgba(8, 12, 24, 0.8) 100%);
  border-color: rgba(140, 185, 255, 0.55); font-size: 28px;
}
.rl-mi.play::before { background: #9ac4ff; box-shadow: 0 0 10px #2f7bff; }
.rl-mi.play.focused {
  background: linear-gradient(90deg, #4a90ff 0%, #1f5fd9 55%, rgba(20, 50, 120, 0.8) 100%);
  border-color: rgba(220, 235, 255, 0.9); box-shadow: 0 0 26px rgba(47, 123, 255, 0.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.rl-mi.play.focused .sub { color: rgba(255,255,255,.9); }
.rl-mi.danger.focused { background: linear-gradient(90deg, #8f1d1d 0%, #5e1414 55%, rgba(40, 10, 10, 0.85) 100%); border-color: rgba(255, 120, 120, 0.55); box-shadow: 0 0 18px rgba(255, 59, 59, 0.3); }
.rl-mi.danger.focused::before { background: var(--rl-red); box-shadow: 0 0 8px var(--rl-red); }

/* ================================================================== */
/*  MENU                                                               */
/* ================================================================== */
.rl-menu { position: absolute; inset: 0; pointer-events: none; }
.rl-menu.closed { display: none; }
.rl-menu::before {
  /* subtle vignette so text reads over the bright stadium */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.05) 60%, rgba(0, 0, 0, 0.45) 100%),
              linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
}
.rl-menu-top {
  position: absolute; top: 22px; left: 5vw; right: 5vw;
  display: flex; align-items: center; justify-content: flex-start; gap: 22px; min-width: 0;
}
.rl-wordmark { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; font-style: italic; letter-spacing: 0.1em; text-shadow: var(--rl-shadow); }
.rl-wordmark .mark {
  width: 34px; height: 34px; flex: none; display: block; object-fit: cover;
  border-radius: 9px; box-shadow: 0 0 14px rgba(47, 123, 255, 0.45), 0 2px 6px rgba(0, 0, 0, 0.55);
}
.rl-wordmark .pump { color: var(--rl-orange); }

/* ------------------------------------------------------------------ */
/*  CONTRACT ADDRESS pill - menu top bar (.rl-ca) and its quieter        */
/*  in-match watermark twin (.rl-ca-hud). Click anywhere on it to copy.  */
/*  The address itself is the ONE string on the page that must never be  */
/*  uppercased, letter-mangled or ellipsised in what actually gets       */
/*  copied - the middle-truncated span is display only.                  */
/* ------------------------------------------------------------------ */
.rl-ca {
  pointer-events: auto; cursor: pointer; outline: none; flex: none; min-width: 0;
  display: inline-flex; align-items: center; gap: 10px;
  height: 34px; padding: 0 12px;
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.rl-ca:hover { background: rgba(18, 26, 46, 0.9); border-color: var(--rl-line-strong); }
/* the menu pill is keyboard reachable, so it needs a ring the clip-path cannot eat (hence box-shadow) */
.rl-ca:focus-visible {
  background: rgba(18, 26, 46, 0.9); border-color: rgba(140, 185, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 18px rgba(47, 123, 255, 0.35);
}
.rl-ca:focus-visible .rl-ca-action { color: #fff; }
.rl-ca-label {
  flex: none; align-self: stretch; display: inline-flex; align-items: center; padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 11px; font-weight: 800; letter-spacing: 0.26em; color: var(--rl-muted);
  text-shadow: var(--rl-shadow);
}
.rl-ca-addr {
  min-width: 0; white-space: nowrap;
  font-family: var(--rl-font-mono); font-size: 13px; font-weight: 500; line-height: 1;
  letter-spacing: 0.01em; text-transform: none; font-variant-numeric: tabular-nums;
  color: #e9f1ff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
  user-select: text; -webkit-user-select: text; cursor: text;
}
.rl-ca-addr .short { display: none; }
.rl-ca-action {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.62);
  transition: color 0.12s ease;
}
.rl-ca:hover .rl-ca-action { color: #fff; }
.rl-ca-action svg { flex: none; width: 13px; height: 13px; }
.rl-ca-action svg + svg { display: none; }               /* the tick only shows once copied */
.rl-ca.copied .rl-ca-action svg { display: none; }
.rl-ca.copied .rl-ca-action svg + svg { display: inline; }
.rl-ca.copied { border-color: rgba(69, 224, 106, 0.62); box-shadow: 0 0 16px rgba(69, 224, 106, 0.22), inset 0 1px 0 rgba(255,255,255,.1); }
.rl-ca.copied .rl-ca-action { color: var(--rl-green); }
.rl-ca.failed { border-color: rgba(255, 210, 63, 0.62); }
.rl-ca.failed .rl-ca-action { color: var(--rl-yellow); }

/* narrow menus: show the middle-truncated address so the pill can never push past the top bar */
@media (max-width: 1040px) {
  .rl-menu-top .rl-ca .full { display: none; }
  .rl-menu-top .rl-ca .short { display: inline; }
}
@media (max-width: 700px) {
  .rl-menu-top .rl-ca .rl-ca-action .txt { display: none; }
  .rl-menu-top .rl-ca { gap: 8px; padding: 0 10px; }
}
/* below this the wordmark + pill would wrap the top bar onto two lines - shed the CA label instead */
@media (max-width: 560px) {
  .rl-menu-top { gap: 14px; }
  .rl-wordmark { flex: none; white-space: nowrap; font-size: 21px; gap: 9px; }
  .rl-wordmark .mark { width: 27px; height: 27px; }
  .rl-menu-top .rl-ca .rl-ca-label { display: none; }
}
/* phone widths: shrink the wordmark again so the pill still ends inside the bar */
@media (max-width: 460px) {
  /* if it still will not fit, the pill drops to its own line rather than spilling out of the bar */
  .rl-menu-top { gap: 10px; flex-wrap: wrap; row-gap: 8px; }
  .rl-wordmark { font-size: 17px; gap: 7px; letter-spacing: 0.06em; }
  .rl-wordmark .mark { width: 22px; height: 22px; }
}

/* ---------- in-match contract address: big, bottom-centre, readable in any clip ---------- */
/* Bottom-centre is the emptiest part of the RL HUD: the boost gauge owns the bottom-right,  */
/* the scoreboard arch the top-centre, and the goal/overtime banners sit mid-screen.        */
.rl-ca-hud {
  position: absolute; left: 50%; bottom: 22px; z-index: 3;
  transform: translateX(-50%);
  height: 46px; gap: 14px; padding: 0 18px 0 16px;
  background: rgba(6, 9, 18, 0.84); border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 3px 0 0 var(--rl-orange), inset 0 1px 0 rgba(255, 255, 255, 0.12),
              0 0 26px rgba(255, 138, 42, 0.22), 0 6px 18px rgba(0, 0, 0, 0.45);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: bottom 0.35s ease-out, background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.rl-ca-hud:hover { background: rgba(10, 15, 28, 0.94); border-color: rgba(255, 255, 255, 0.4); }
.rl-ca-hud .rl-ca-label {
  font-size: 13px; letter-spacing: 0.3em; padding-right: 14px; color: var(--rl-orange);
  border-right-color: rgba(255, 255, 255, 0.18);
}
.rl-ca-hud .rl-ca-addr {
  font-size: 21px; font-weight: 600; letter-spacing: 0.02em; color: #ffffff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 255, 255, 0.18);
}
.rl-ca-hud .rl-ca-action { font-size: 11px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.72); }
.rl-ca-hud .rl-ca-action svg { width: 14px; height: 14px; }
.rl-ca-hud.copied { border-color: rgba(69, 224, 106, 0.7); box-shadow: inset 3px 0 0 var(--rl-green), inset 0 1px 0 rgba(255,255,255,.12), 0 0 26px rgba(69, 224, 106, 0.3), 0 6px 18px rgba(0,0,0,.45); }
/* the full 44-char address whenever it clears the boost gauge on the right with margin;   */
/* narrower than that it middle-truncates on screen (the copy is always the full string)   */
.rl-ca-hud .full { display: none; }
.rl-ca-hud .short { display: inline; }
@media (min-width: 1100px) {
  .rl-ca-hud .full { display: inline; }
  .rl-ca-hud .short { display: none; }
}
@media (max-width: 720px) {
  .rl-ca-hud { height: 40px; gap: 10px; padding: 0 14px 0 12px; }
  .rl-ca-hud .rl-ca-addr { font-size: 17px; }
  .rl-ca-hud .rl-ca-action .txt { display: none; }
}
/* the replay letterbox owns the bottom 7vh: ride above it, clear of the REPLAY tag and skip hint */
.rl-hud.replay .rl-ca-hud { bottom: calc(7vh + 26px); }
/* never under a modal surface */
.rl-hud.sb-open .rl-ca-hud,
.rl-hud.paused .rl-ca-hud,
.rl-hud.matchend .rl-ca-hud { display: none; }


/* anchored to the bottom bar so the list and the bar read as one block (no dead gap) */
.rl-menu-left { position: absolute; left: 5vw; bottom: calc(var(--rl-bar-h) + 30px); display: flex; flex-direction: column; gap: 5px; width: 340px; }
.rl-menu-left .rl-mi { width: 320px; }

/* progress bars (profile card XP, profile screen) */
.rl-bar { position: relative; height: 8px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,.14); margin-top: 6px; clip-path: polygon(3px 0, 100% 0, 100% calc(100% - 3px), calc(100% - 3px) 100%, 0 100%, 0 3px); }
.rl-bar > i { display: block; height: 100%; background: linear-gradient(90deg, #1f5fd9, #6ab0ff); box-shadow: 0 0 8px rgba(47,123,255,.7); }
.rl-bar.green > i { background: linear-gradient(90deg, #1f9a3d, #5cf07a); box-shadow: 0 0 8px rgba(69,224,106,.7); }
.rl-bar.pink > i { background: linear-gradient(90deg, #a020ff, #ff3ec8); box-shadow: 0 0 8px rgba(255,62,200,.7); }

/* news tab */
.rl-news {
  position: absolute; right: 0; top: 40vh; pointer-events: auto; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 14px 8px 16px; background: var(--rl-panel); border: 1px solid var(--rl-line); border-right: 0;
  clip-path: polygon(0 10px, 100% 0, 100% 100%, 0 calc(100% - 10px));
  transition: background 0.12s ease;
}
.rl-news:hover { background: rgba(30, 40, 70, 0.85); }
.rl-news .txt { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; font-weight: 800; letter-spacing: 0.32em; }
.rl-news svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; }

/* ------------------------------------------------------------------ */
/*  BOTTOM BAR - one anchored strip: profile card + create party, left aligned.        */
/*  Nothing lives in the right half, so the scrim and its hairline fade out across it   */
/*  instead of running to the edge - the emptiness reads as deliberate negative space.  */
/* ------------------------------------------------------------------ */
.rl-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: var(--rl-bar-h);
  display: flex; align-items: center; justify-content: flex-start; gap: var(--rl-bar-gap);
  padding: 0 var(--rl-gutter);
}
.rl-bottom::before, .rl-bottom::after { content: ''; position: absolute; pointer-events: none; }
.rl-bottom::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 6, 12, 0) 0%, rgba(4, 6, 12, 0.5) 42%, rgba(4, 6, 12, 0.9) 100%);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 96%);
  mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 96%);
}
.rl-bottom::after {
  left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.13) 46%, rgba(255, 255, 255, 0) 84%);
}

/* profile card (opens the PROFILE screen) */
.rl-pcard {
  pointer-events: auto; cursor: pointer; outline: none;
  display: flex; align-items: center; gap: 16px;
  height: 78px; padding: 0 20px 0 12px; max-width: 420px;
  background: linear-gradient(90deg, rgba(10, 14, 26, 0.82), rgba(10, 14, 26, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.14);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.rl-pcard:hover, .rl-pcard.focused, .rl-pcard:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(31, 95, 217, 0.42), rgba(10, 14, 26, 0.4));
  border-color: rgba(140, 185, 255, 0.6);
}
.rl-pcard:focus-visible { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 18px rgba(47, 123, 255, 0.35); }
.rl-pcard-avatar {
  position: relative; flex: none; width: 66px; height: 66px;
  background: linear-gradient(160deg, #2a3042, #0c0f18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}
.rl-pcard-avatar img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
/* level chip tucked into the avatar's square bottom-left corner: never clips, never touches the name */
.rl-pcard-level {
  position: absolute; left: 0; bottom: 0; min-width: 30px; height: 21px; padding: 0 9px 1px 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #4a90ff, #1a4fc0); color: #fff;
  border-top: 1px solid rgba(190, 215, 255, 0.75);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}
.rl-pcard-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rl-pcard-name {
  display: flex; align-items: center; gap: 9px; min-width: 0;
  font-size: 27px; font-weight: 800; letter-spacing: 0.05em; line-height: 1; text-shadow: var(--rl-shadow);
}
.rl-pcard-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-pcard-name .accent, .rl-pv-name .accent {
  flex: none; width: 5px; height: 22px; background: var(--rl-blue);
  transform: skewX(-12deg); box-shadow: 0 0 10px rgba(47, 123, 255, 0.85);
}
.rl-pcard-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rl-pcard-xp { width: 232px; }
.rl-pcard-xp .rl-bar { height: 6px; margin-top: 2px; }
.rl-pcard-xp .row, .rl-pv-xp .row {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; overflow: hidden;
  font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: var(--rl-muted); font-variant-numeric: tabular-nums;
}
.rl-pcard-xp .row > span, .rl-pv-xp .row > span { white-space: nowrap; }
.rl-pv-xp .row > .amount { overflow: hidden; text-overflow: ellipsis; }
.rl-pcard-xp .lvl, .rl-pv-xp .lvl { color: #9ad7ff; }

/* create party */
.rl-party {
  pointer-events: auto; cursor: pointer; flex: none;
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 12px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.82);
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.12s ease, color 0.12s ease;
}
.rl-party:hover { background: rgba(40, 50, 80, 0.85); color: #fff; }
.rl-key {
  display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.7); font-size: 12px; font-weight: 800; background: rgba(0,0,0,.5); flex: none;
}

/* index.html parks the first-gesture audio hint 26px off the bottom, which is inside the bar now.
   Lift it above the bar (id + body beats the page's own inline rule). */
body #audio-hint { bottom: calc(var(--rl-bar-h) + 26px); }
/* While a profile modal is open the hint would sit on top of its primary button. */
body:has(.rl-menu.modal-open) #audio-hint { display: none !important; }

/* submenus */
.rl-sub { position: absolute; left: 5vw; top: clamp(70px, 12vh, 140px); width: 440px; display: flex; flex-direction: column; gap: 8px; }
.rl-sub.wide { width: min(980px, calc(100vw - 10vw - var(--rl-gutter))); }
.rl-sub-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.rl-sub-title { font-size: 48px; font-weight: 800; font-style: italic; letter-spacing: 0.08em; line-height: 1; text-shadow: var(--rl-shadow); }
.rl-sub-title::after { content: ''; display: block; width: 140px; height: 3px; margin-top: 6px; background: linear-gradient(90deg, var(--rl-orange), transparent); }
.rl-back {
  pointer-events: auto; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; letter-spacing: 0.24em; color: rgba(255,255,255,.85); text-shadow: var(--rl-shadow);
  padding: 6px 12px 6px 8px; background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  margin-left: auto; align-self: flex-start;
}
.rl-back:hover { background: rgba(40, 50, 80, 0.85); }
.rl-back .rl-key { width: 20px; height: 20px; font-size: 9px; border-radius: 4px; }
.rl-sub-label { font-size: 12px; font-weight: 700; letter-spacing: 0.3em; color: var(--rl-muted); margin: 8px 0 -4px 2px; }

/* mode cards */
.rl-mode {
  pointer-events: auto; cursor: pointer; position: relative; height: 74px; width: 440px;
  display: flex; align-items: center; gap: 18px; padding: 0 22px;
  background: linear-gradient(90deg, rgba(8, 12, 24, 0.85), rgba(8, 12, 24, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.18);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: background 0.12s ease, transform 0.12s ease, border-color 0.12s ease;
}
.rl-mode::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: rgba(255,255,255,.25); }
.rl-mode .num { font-size: 46px; font-weight: 800; font-style: italic; letter-spacing: 0.02em; line-height: 1; min-width: 96px; text-shadow: 0 0 14px rgba(47,123,255,.5), var(--rl-shadow); }
.rl-mode .name { display: flex; flex-direction: column; line-height: 1.05; }
.rl-mode .name b { font-size: 28px; font-weight: 800; letter-spacing: 0.1em; }
.rl-mode .name small { font-size: 12px; letter-spacing: 0.3em; color: var(--rl-muted); font-weight: 700; margin-top: 3px; }
.rl-mode .rec { margin-left: auto; font-size: 10px; letter-spacing: 0.2em; padding: 2px 8px; border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.7); visibility: hidden; }
.rl-mode.selected .rec { visibility: visible; }
.rl-mode.focused, .rl-mode:hover { background: linear-gradient(90deg, rgba(31, 95, 217, 0.65), rgba(20, 50, 120, 0.45)); border-color: rgba(140, 185, 255, 0.7); transform: translateX(8px); }
.rl-mode.focused::before { background: #9ac4ff; box-shadow: 0 0 10px #2f7bff; }
.rl-mode.selected { border-color: rgba(220, 235, 255, 0.9); box-shadow: 0 0 22px rgba(47, 123, 255, 0.45), inset 0 0 0 1px rgba(255,255,255,.2); }
.rl-mode.selected::before { background: #fff; box-shadow: 0 0 10px #fff; }
.rl-mode.selected .rec { border-color: var(--rl-blue); color: #fff; background: var(--rl-blue); }

/* toggle row */
.rl-toggle { display: flex; gap: 6px; width: 440px; }
.rl-toggle.focused-row .rl-toggle-item.selected { box-shadow: 0 0 0 1px #fff, 0 0 16px rgba(255,255,255,.35); }
.rl-toggle-item {
  pointer-events: auto; cursor: pointer; flex: 1; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; letter-spacing: 0.18em; color: rgba(255,255,255,.75);
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.12s ease, color 0.12s ease;
}
.rl-toggle-item:hover { background: rgba(40, 50, 80, 0.85); color: #fff; }
.rl-toggle-item.selected { background: linear-gradient(180deg, #8a4f18, #5a3010); border-color: rgba(255, 190, 120, 0.6); color: #fff; box-shadow: 0 0 14px rgba(255, 138, 42, 0.3); }
.rl-toggle-item.selected.blue { background: linear-gradient(180deg, #4a90ff, #1d5fe0); border-color: rgba(190, 215, 255, 0.7); box-shadow: 0 0 14px rgba(47,123,255,.4); }
.rl-sub .rl-btn.big { width: 440px; margin-top: 8px; }

/* garage */
.rl-bodies { display: flex; gap: 8px; width: 440px; }
.rl-body-card {
  pointer-events: auto; cursor: pointer; flex: 1; height: 86px; position: relative;
  display: flex; flex-direction: column; justify-content: center; padding: 0 18px;
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.rl-body-card b { font-size: 28px; font-weight: 800; letter-spacing: 0.12em; }
.rl-body-card small { font-size: 11px; letter-spacing: 0.28em; color: var(--rl-muted); font-weight: 700; }
.rl-body-card svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 64px; height: 30px; opacity: 0.85; }
.rl-body-card:hover, .rl-body-card.focused { background: rgba(40, 50, 80, 0.85); }
.rl-body-card.selected { background: linear-gradient(90deg, rgba(31, 95, 217, 0.7), rgba(20, 50, 120, 0.5)); border-color: rgba(200, 225, 255, 0.85); box-shadow: 0 0 20px rgba(47,123,255,.4); }
.rl-swatch-row { display: flex; flex-direction: column; gap: 6px; }
.rl-swatch-row.focused .rl-sub-label { color: #fff; }
.rl-swatches { display: flex; gap: 6px; flex-wrap: wrap; width: 440px; }
.rl-swatch {
  pointer-events: auto; cursor: pointer; width: 36px; height: 36px; position: relative;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform 0.1s ease;
}
.rl-swatch:hover { transform: scale(1.1); }
.rl-swatch.selected { outline: 2px solid #fff; outline-offset: -2px; transform: scale(1.12); }
.rl-swatch.selected::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(0,0,0,.45); }

/* settings */
.rl-setting {
  pointer-events: auto; display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 12px;
  width: 440px; height: 44px; padding: 0 14px;
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.rl-setting.focused, .rl-setting:hover { background: rgba(40, 50, 80, 0.85); border-color: rgba(255,255,255,.4); }
.rl-setting label { font-size: 14px; font-weight: 800; letter-spacing: 0.18em; color: rgba(255,255,255,.85); }
.rl-setting .val { font-size: 18px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: #9ad7ff; }
.rl-setting input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; pointer-events: auto;
}
.rl-setting input[type=range]::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, var(--rl-blue) var(--pct, 50%), rgba(255,255,255,.18) var(--pct, 50%)); }
.rl-setting input[type=range]::-moz-range-track { height: 4px; background: rgba(255,255,255,.18); }
.rl-setting input[type=range]::-moz-range-progress { height: 4px; background: var(--rl-blue); }
.rl-setting input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 14px; height: 18px; margin-top: -7px;
  background: #fff; clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); box-shadow: 0 0 8px rgba(255,255,255,.6);
}
.rl-setting input[type=range]::-moz-range-thumb { width: 14px; height: 18px; border: 0; border-radius: 0; background: #fff; clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); }
.rl-setting input[type=text] {
  pointer-events: auto; grid-column: 2 / 4; width: 100%; height: 30px; padding: 0 10px;
  font-family: var(--rl-font); font-size: 18px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255,255,255,.3); outline: none;
}
.rl-setting input[type=text]:focus { border-color: var(--rl-blue); box-shadow: 0 0 10px rgba(47,123,255,.5); }

/* ------------------------------------------------------------------ */
/*  PROFILE SCREEN                                                      */
/* ------------------------------------------------------------------ */
/* the profile screen is the tallest panel - keep it inside the space above the bottom bar and let
   the grid scroll instead of sliding under it on short windows (a no-op at 720p and above) */
.rl-sub.rl-pv { max-height: calc(100vh - var(--rl-bar-h) - 110px); }
.rl-pv-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start;
  min-height: 0; overflow-y: auto; overflow-x: hidden; pointer-events: auto;
}
.rl-pv-grid::-webkit-scrollbar { width: 4px; }
.rl-pv-grid::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); }
.rl-pv-main, .rl-pv-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.rl-pv-card { display: flex; align-items: center; gap: 20px; padding: 18px 22px; }
.rl-pv-avatar {
  position: relative; flex: none; width: 108px; height: 108px;
  background: linear-gradient(160deg, #2a3042, #0c0f18); border: 1px solid rgba(255, 255, 255, 0.3);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.rl-pv-avatar img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.rl-pv-id { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1; }
.rl-pv-name { display: flex; align-items: center; gap: 11px; font-size: 34px; font-weight: 800; letter-spacing: 0.05em; line-height: 1; text-shadow: var(--rl-shadow); min-width: 0; }
.rl-pv-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rl-pv-name .accent { width: 6px; height: 27px; }
.rl-pv-title { font-size: 12px; font-weight: 700; letter-spacing: 0.32em; color: var(--rl-yellow); text-shadow: 0 0 8px rgba(255, 210, 63, 0.45); }
.rl-pv-xp { width: 100%; max-width: 300px; margin-top: 2px; }
.rl-pv-xp .rl-bar { height: 7px; margin-top: 0; }

.rl-pv-ring { position: relative; flex: none; width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rl-pv-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rl-pv-ring circle { fill: none; stroke-width: 5; }
.rl-pv-ring .bg { stroke: rgba(255, 255, 255, 0.12); }
.rl-pv-ring .fg { stroke: var(--rl-blue); stroke-linecap: butt; filter: drop-shadow(0 0 6px rgba(47, 123, 255, 0.8)); transition: stroke-dashoffset 0.35s ease; }
.rl-pv-ring b { font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: var(--rl-shadow); }
.rl-pv-ring small { font-size: 9px; letter-spacing: 0.28em; color: var(--rl-muted); font-weight: 700; margin-top: 2px; }

.rl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rl-stat {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px;
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.rl-stat b { font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: var(--rl-shadow); }
.rl-stat small { font-size: 10px; letter-spacing: 0.24em; color: var(--rl-muted); font-weight: 700; }

.rl-pv-actions { display: flex; flex-direction: column; gap: 6px; }
.rl-btn.wide { width: 100%; min-width: 0; justify-content: flex-start; padding: 10px 16px; font-size: 15px; }
.rl-btn.small { min-width: 0; padding: 7px 16px; font-size: 13px; letter-spacing: 0.16em; }
.rl-btn.ghost { background: rgba(0, 0, 0, 0.35); border-color: var(--rl-line); }
.rl-btn.danger { background: linear-gradient(180deg, rgba(122, 32, 32, 0.9), rgba(52, 14, 14, 0.95)); border-color: rgba(255, 120, 120, 0.45); }
.rl-btn.danger:hover, .rl-btn.danger.focused { box-shadow: 0 0 16px rgba(255, 59, 59, 0.3); }
.rl-btn:disabled, .rl-btn.disabled { opacity: 0.4; cursor: default; pointer-events: none; filter: none; }
.rl-btn.focused { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 18px rgba(255, 255, 255, 0.18); }

.rl-confirm {
  display: flex; flex-direction: column; gap: 8px; padding: 12px 14px;
  background: rgba(60, 12, 12, 0.55); border: 1px solid rgba(255, 120, 120, 0.45);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.rl-confirm .txt { font-size: 14px; font-weight: 700; letter-spacing: 0.12em; color: #ffd7d7; line-height: 1.2; }
.rl-confirm .row { display: flex; gap: 6px; }
.rl-confirm .row .rl-btn { flex: 1; }

.rl-switch-list { display: flex; flex-direction: column; gap: 5px; max-height: 208px; overflow-y: auto; padding-right: 4px; }
.rl-switch-list::-webkit-scrollbar { width: 4px; }
.rl-switch-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); }
.rl-switch-row {
  pointer-events: auto; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px;
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: background 0.12s ease, border-color 0.12s ease;
}
.rl-switch-row:hover, .rl-switch-row.focused { background: rgba(40, 50, 80, 0.85); border-color: rgba(255, 255, 255, 0.4); }
.rl-switch-row.active { background: linear-gradient(90deg, rgba(31, 95, 217, 0.6), rgba(20, 50, 120, 0.4)); border-color: rgba(190, 215, 255, 0.7); }
.rl-switch-row img { width: 36px; height: 36px; flex: none; object-fit: cover; clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px); }
.rl-switch-row .who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.1; }
.rl-switch-row .who b { font-size: 17px; font-weight: 800; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-switch-row .who small { font-size: 9px; letter-spacing: 0.22em; color: var(--rl-muted); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-switch-row .lv { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: #9ad7ff; flex: none; }

/* ------------------------------------------------------------------ */
/*  CREATE / EDIT PROFILE MODAL                                         */
/* ------------------------------------------------------------------ */
.rl-menu.first-run .rl-menu-left,
.rl-menu.first-run .rl-news,
.rl-menu.first-run .rl-bottom { display: none !important; }

/* while the create/edit panel is up nothing behind it may be hovered or clicked */
.rl-menu.modal-open .rl-menu-left,
.rl-menu.modal-open .rl-news,
.rl-menu.modal-open .rl-bottom,
.rl-menu.modal-open .rl-ca,
.rl-menu.modal-open .rl-sub { pointer-events: none; }

.rl-modal-wrap {
  position: absolute; inset: 0; pointer-events: auto; z-index: 5;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse at 50% 45%, rgba(6, 10, 20, 0.72), rgba(3, 5, 10, 0.9));
}
.rl-modal { width: min(700px, 92vw); padding: 26px 30px 24px; background: var(--rl-panel-solid); --rl-cut: 14px; }
.rl-modal-title { font-size: 40px; font-weight: 800; font-style: italic; letter-spacing: 0.06em; line-height: 1; text-shadow: var(--rl-shadow); }
.rl-modal-title::after { content: ''; display: block; width: 150px; height: 3px; margin-top: 8px; background: linear-gradient(90deg, var(--rl-orange), transparent); }
.rl-modal-sub { font-size: 11px; font-weight: 700; letter-spacing: 0.3em; color: var(--rl-muted); margin-top: 10px; }
.rl-modal-top { display: flex; gap: 24px; margin-top: 18px; align-items: flex-start; }
.rl-avatar-pick { display: flex; flex-direction: column; gap: 8px; width: 168px; flex: none; }
.rl-avatar-preview {
  width: 168px; height: 168px; background: linear-gradient(160deg, #2a3042, #0c0f18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.rl-avatar-preview img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.rl-avatar-pick .rl-btn { width: 100%; }
.rl-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rl-modal-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rl-modal-fields .rl-sub-label { margin: 10px 0 2px 1px; }
.rl-modal-fields .rl-sub-label:first-child { margin-top: 0; }
.rl-field {
  pointer-events: auto; user-select: text; -webkit-user-select: text;
  width: 100%; height: 46px; padding: 0 14px;
  font-family: var(--rl-font); font-size: 26px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.3); outline: none;
}
.rl-field::placeholder { color: rgba(255, 255, 255, 0.28); }
.rl-field:focus { border-color: var(--rl-blue); box-shadow: 0 0 12px rgba(47, 123, 255, 0.5); }
.rl-hues { display: flex; gap: 7px; flex-wrap: wrap; }
.rl-hue {
  pointer-events: auto; cursor: pointer; width: 34px; height: 34px; position: relative;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.1s ease;
}
.rl-hue:hover { transform: scale(1.1); }
.rl-hue.selected { outline: 2px solid #fff; outline-offset: -2px; transform: scale(1.12); }
.rl-titles { display: flex; gap: 6px; flex-wrap: wrap; }
.rl-chip {
  pointer-events: auto; cursor: pointer; padding: 7px 13px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.72);
  background: var(--rl-panel); border: 1px solid var(--rl-line);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: background 0.12s ease, color 0.12s ease;
}
.rl-chip:hover { background: rgba(40, 50, 80, 0.85); color: #fff; }
.rl-chip.selected { background: linear-gradient(180deg, #4a90ff, #1d5fe0); border-color: rgba(190, 215, 255, 0.7); color: #fff; box-shadow: 0 0 14px rgba(47, 123, 255, 0.4); }
.rl-modal-note { min-height: 18px; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.2em; color: var(--rl-orange); opacity: 0; transition: opacity 0.15s ease; }
.rl-modal-note.show { opacity: 1; }
.rl-modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 6px; }
.rl-modal-foot .rl-btn.big { font-size: 22px; padding: 12px 32px; min-width: 240px; }

/* toast */
.rl-toast {
  position: absolute; z-index: 6; left: 50%; bottom: 16vh; transform: translate(-50%, 20px);
  padding: 12px 34px; font-size: 22px; font-weight: 800; letter-spacing: 0.3em;
  background: var(--rl-panel-solid); border: 1px solid rgba(255, 190, 120, 0.6);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 20px rgba(255, 138, 42, 0.3); opacity: 0; pointer-events: none;
}
.rl-toast.show { animation: rl-toast 1.8s ease both; }
@keyframes rl-toast {
  0% { opacity: 0; transform: translate(-50%, 20px); }
  12% { opacity: 1; transform: translate(-50%, 0); }
  75% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* responsive */
@media (max-width: 1100px) {
  .rl-sb { transform: translateX(-50%) scale(0.85); transform-origin: top center; }
  .rl-countdown { font-size: 160px; }
  .rl-goal-title { font-size: 130px; }
  .rl-overtime { font-size: 100px; }
}
@media (max-width: 1100px) {
  /* the profile screen's two columns only fit on a real desktop width */
  .rl-pv-grid { grid-template-columns: minmax(0, 1fr); }
  .rl-switch-list { max-height: 140px; }
}
@media (max-width: 1000px) {
  /* below this the news tab would sit on top of the menu column */
  .rl-news { display: none !important; }
}
@media (max-width: 900px) {
  .rl-pcard-xp { width: 170px; }
  .rl-modal-top { flex-direction: column; align-items: stretch; }
  .rl-avatar-pick { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .rl-avatar-preview { width: 120px; height: 120px; }
  .rl-avatar-pick .rl-btn { width: auto; }
}
@media (max-height: 800px) {
  :root { --rl-bar-h: 78px; }
  .rl-pcard { height: 70px; gap: 13px; }
  .rl-pcard-avatar { width: 58px; height: 58px; }
  .rl-pcard-name { font-size: 23px; }
  .rl-pcard-xp { width: 210px; }
  .rl-pv-avatar { width: 92px; height: 92px; }
  .rl-pv-name { font-size: 32px; }
  .rl-stat b { font-size: 25px; }
  .rl-switch-list { max-height: 170px; }
}
@media (max-height: 700px) {
  .rl-sub { top: 70px; transform: scale(0.82); transform-origin: top left; }
  .rl-modal { transform: scale(0.86); }
}
