body[data-game="riftwake"] {
  --accent: #b9ed7b;
  --ink: #172611;
  --panel: #102128;
  --line: #30474d;
  --muted: #a8bcbd;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.top-actions {
  display: flex;
  gap: 7px;
}
.game-top {
  background: #091920;
}
.game-identity {
  letter-spacing: 0.22em;
}
.game-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
}
.arena {
  background: #0a1c28 url("/arcade/assets/riftwake-cover.png") 60% center/cover
    no-repeat;
}
.arena:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #071720ba, transparent 80%),
    linear-gradient(0deg, #061620ce, transparent 70%);
  pointer-events: none;
}
.arena canvas {
  position: relative;
}
.attract-copy {
  left: 6%;
  bottom: 10%;
  max-width: 640px;
}
.attract-copy h1 {
  font-size: clamp(68px, 7vw, 112px);
  letter-spacing: -0.075em;
  line-height: 0.9;
  margin: 20px 0 12px;
  font-weight: 850;
}
.attract-copy h1 span {
  color: #cceba6;
}
.rift-subtitle {
  font-size: 12px;
  letter-spacing: 0.45em;
  color: #c2d1bc;
  font-weight: 600;
}
.attract-copy p {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.6;
  color: #d2dcda;
}
.attract-copy .eyebrow {
  font-size: 9px;
  letter-spacing: 0.2em;
}
.lobby-codex {
  pointer-events: auto;
  min-width: 190px;
  margin-top: 25px;
  background: #0d2830b3;
  border: 1px solid #9ec997;
  font-size: 12px;
  text-align: left;
}
.lobby-codex span {
  float: right;
  color: var(--accent);
  margin-left: 25px;
}
.feature-tags {
  margin-top: 20px;
}
.feature-tags span {
  background: #071b25b0;
  border-color: #718981;
  font-size: 9px;
}
.control-panel {
  padding: 25px 23px;
  background: linear-gradient(155deg, #13282e, #0a1c25);
}
.control-panel h2 {
  font-size: 29px;
  font-weight: 600;
  margin-top: 14px;
}
.primary {
  border-radius: 5px;
  padding: 13px 15px;
}
.quick-rules {
  padding: 17px;
  border: 1px solid #3b5457;
  border-radius: 7px;
  margin-top: 25px;
  background: #091d24;
}
.quick-rules b {
  font-size: 12px;
  font-weight: 600;
  color: #c5d8c0;
}
.quick-rules p {
  font-size: 11px;
  line-height: 1.7;
  margin: 8px 0 0;
  color: #a2babc;
}
.hero-assigned {
  display: flex;
  gap: 15px;
  padding: 12px;
  background: #091c24;
  border: 1px solid var(--hero-color);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.hero-assigned canvas {
  width: 80px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 4px;
}
.hero-assigned strong {
  font-size: 25px;
  font-weight: 600;
  display: block;
  letter-spacing: -0.04em;
  margin-top: 7px;
  color: var(--hero-color);
}
.hero-assigned small {
  display: block;
  color: #a4babb;
  font-size: 10px;
  line-height: 1.7;
}
.hero-assigned button {
  font-size: 10px;
  padding: 6px 10px;
  min-height: 32px;
  margin-top: 9px;
}
.assignment-actions {
  display: flex;
  gap: 8px;
  margin: 9px 0 18px;
}
.assignment-actions button {
  flex: 1;
  font-size: 11px;
  min-height: 36px;
  padding: 8px;
}
.team-roster {
  margin-top: 14px;
}
.team-roster h3 {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: var(--team);
  margin: 16px 0 8px;
}
.team-slot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid #29434a;
  border-left: 2px solid var(--team);
  border-radius: 4px;
  margin: 5px 0;
  background: #091e26;
  font-size: 11px;
  min-height: 40px;
}
.team-slot > span {
  font:
    10px ui-monospace,
    monospace;
  flex: 1;
  overflow-wrap: anywhere;
}
.team-slot small {
  display: block;
  color: #9bb4b5;
  font-size: 9px;
}
.team-slot b {
  color: var(--team);
  font-size: 9px;
  font-weight: 600;
}
.team-slot.bot {
  opacity: 0.65;
}
.team-slot canvas {
  height: 31px;
  width: 28px;
  border-radius: 3px;
}
.playing .game-layout {
  grid-template-columns: minmax(0, 1fr);
}
.playing .arena:before {
  display: none;
}
.playing .arena {
  background: #0a1f2d;
}
.playing .control-panel {
  display: none;
}
.playing.menu-open .control-panel {
  width: 340px;
}
.playing.menu-open .match-menu {
  right: 353px;
}
.playing #game-tip {
  display: none;
}
.rift-bottom {
  position: absolute;
  z-index: 5;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: stretch;
  gap: 14px;
  background: linear-gradient(#122b34ee, #081c27f5);
  border: 1px solid #668b84;
  border-radius: 11px;
  padding: 12px 15px;
  box-shadow: 0 8px 40px #020d18b0;
  max-width: calc(100% - 28px);
}
.hero-vitals {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 235px;
  flex-shrink: 0;
}
.hero-vitals > canvas {
  width: 58px;
  height: 64px;
  border-radius: 6px;
  border: 1px solid #81977a;
}
.vital-copy {
  flex: 1;
  min-width: 0;
}
.vital-copy strong {
  font-size: 13px;
  font-weight: 650;
}
.vital-copy > span {
  float: right;
  font:
    10px ui-monospace,
    monospace;
  color: #d4ddc1;
}
.vital-bar {
  height: 13px;
  background: #243d42;
  margin-top: 6px;
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}
.vital-bar > i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #82b75e, #c3e789);
}
.vital-bar.mana {
  height: 7px;
  margin-top: 3px;
}
.vital-bar.mana > i {
  background: linear-gradient(90deg, #3f8ab3, #79d7e6);
}
.vital-bar > span {
  position: absolute;
  inset: 0 auto 0 50%;
  transform: translateX(-50%);
  min-width: 68px;
  padding: 0 4px;
  text-align: center;
  color: #f0f7df;
  background: #102b30;
  white-space: nowrap;
  font:
    700 9px/13px ui-monospace,
    monospace;
}
.stick i {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.vital-bar.mana > span {
  display: none;
}
.vital-copy small {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  color: #bdceca;
  margin-top: 7px;
}
.skill-bar {
  display: flex;
  gap: 6px;
  align-items: center;
}
.skill-button {
  padding: 0;
  width: 58px;
  height: 65px;
  min-height: 0;
  border: 1px solid #819b90;
  position: relative;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(135deg, #29484d, #10282f);
  touch-action: none;
  flex-shrink: 0;
}
.skill-button > canvas {
  width: 45px;
  height: 45px;
  margin-top: 1px;
  pointer-events: none;
}
.skill-button > kbd {
  position: absolute;
  left: 4px;
  top: 3px;
  font:
    600 9px ui-monospace,
    monospace;
  color: #e9f4da;
  z-index: 2;
  background: #08212a80;
  padding: 1px 3px;
  border-radius: 2px;
}
.skill-button > small {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  font:
    8px ui-monospace,
    monospace;
  color: #c6d3cb;
  text-align: center;
}
.skill-button .cooldown {
  position: absolute;
  inset: 0;
  background: #031923c9;
  display: grid;
  place-items: center;
  color: #eef6e6;
  font:
    600 19px ui-monospace,
    monospace;
  text-shadow: 0 2px 8px #000;
  z-index: 1;
}
.skill-button.locked {
  border-color: #4a5f69;
}
.skill-button.utility {
  width: 42px;
  height: 55px;
}
.skill-button.utility > canvas {
  width: 34px;
  height: 34px;
}
.hud-utilities {
  display: grid;
  gap: 5px;
  min-width: 118px;
}
.hud-utilities button {
  min-height: 0;
  padding: 6px 9px;
  font-size: 9px;
  background: #09212c;
  border-color: #4e716e;
  text-align: left;
}
.hud-utilities button b {
  color: #e9d89e;
  font:
    600 14px ui-monospace,
    monospace;
  display: block;
  margin-top: 2px;
}
.hud-utilities button span {
  color: #bbcdc8;
}
.skill-tooltip {
  position: absolute;
  bottom: 117px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  max-width: 90%;
  background: #09212bf2;
  border: 1px solid #668d85;
  box-shadow: 0 15px 45px #0007;
  padding: 16px;
  border-radius: 7px;
  z-index: 10;
  pointer-events: none;
}
.skill-tooltip strong {
  font-size: 14px;
  color: var(--accent);
}
.skill-tooltip p {
  font-size: 12px;
  line-height: 1.65;
  color: #c4d3d0;
  margin: 8px 0;
}
.skill-tooltip small {
  font:
    10px ui-monospace,
    monospace;
  color: #87cfe0;
}
.match-help {
  position: absolute;
  bottom: 117px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 13px;
  pointer-events: none;
  font:
    8px ui-monospace,
    monospace;
  color: #a6c1bd;
  text-shadow: 0 1px 4px #001620;
  white-space: nowrap;
}
.match-hud {
  display: block;
  padding: 0;
  background: none;
  min-height: 0;
}
.rift-score {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #5f7a72;
  border-radius: 6px;
  padding: 8px 23px;
  background: #0b2430e8;
  box-shadow: 0 3px 20px #0006;
  text-align: center;
}
.rift-score > b {
  font:
    600 28px ui-monospace,
    monospace;
  color: var(--team);
}
.rift-score small {
  font:
    8px ui-monospace,
    monospace;
  color: #bed1c6;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 4px;
}
.rift-score time {
  font:
    12px ui-monospace,
    monospace;
  color: #d9e8db;
}
.rift-score .score-label {
  font-size: 9px;
  color: #abc2be;
  letter-spacing: 0.06em;
}
.rift-team-info {
  position: absolute;
  left: 18px;
  top: 15px;
  display: flex;
  gap: 5px;
}
.mini-hero {
  width: 34px;
  position: relative;
}
.mini-hero canvas {
  width: 34px;
  height: 39px;
  border: 1px solid var(--team);
  border-radius: 4px;
}
.mini-hero i {
  display: block;
  height: 3px;
  background: var(--team);
  margin-top: 3px;
}
.mini-hero.dead {
  filter: grayscale(1);
  opacity: 0.5;
}
.kill-feed {
  position: absolute;
  right: 15px;
  top: 90px;
  display: grid;
  gap: 5px;
  max-width: 310px;
  pointer-events: none;
}
.kill-entry {
  border-right: 2px solid var(--team);
  background: #071c27b3;
  padding: 7px 11px;
  font:
    10px ui-monospace,
    monospace;
  color: #d6e1d3;
  text-shadow: 0 1px 5px #02121c;
}
.kill-entry span {
  color: var(--team);
}
.event-toast {
  top: 79px;
  background: #102a32e6;
  border-color: #739483;
  color: #deedce;
}
.respawn-banner {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #8c9894;
  padding: 20px 35px;
  border-radius: 7px;
  background: #142431db;
  text-align: center;
  pointer-events: none;
}
.respawn-banner b {
  font-size: 32px;
  display: block;
  color: #e5ebe1;
}
.respawn-banner span {
  display: block;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.14em;
  margin-top: 8px;
  color: #b9cfce;
}
.rift-overlay {
  position: absolute;
  inset: 48px 0 0;
  z-index: 30;
  background: #03111ade;
  backdrop-filter: blur(9px);
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: auto;
}
.codex-panel,
.shop-panel,
.score-panel {
  width: min(1180px, 100%);
  max-height: 100%;
  overflow: auto;
  background: linear-gradient(140deg, #16313a, #081c29);
  border: 1px solid #698982;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 20px 80px #0009;
}
.overlay-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.overlay-heading h2 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.overlay-heading > button {
  width: 36px;
  min-height: 36px;
  padding: 5px;
  border-radius: 50%;
  background: #19373d;
  flex-shrink: 0;
}
.hero-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-filters button {
  font-size: 10px;
  padding: 7px 11px;
  min-height: 31px;
  background: #102b35;
  border-color: #486c69;
}
.hero-filters button[aria-pressed="true"] {
  background: #c3e59f;
  color: #14281c;
  border-color: #c3e59f;
}
.codex-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 25px;
}
.hero-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
}
.hero-card {
  padding: 0 0 9px;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  border-color: #3e5e60;
  background: #0a222d;
  transition: transform 0.15s;
}
.hero-card:hover {
  transform: translateY(-3px);
}
.hero-card[aria-pressed="true"] {
  border-color: var(--hero-color);
  box-shadow: 0 0 0 1px var(--hero-color);
}
.hero-card canvas {
  width: 100%;
  height: 106px;
  object-fit: contain;
}
.hero-card strong {
  font-size: 12px;
  font-weight: 600;
  display: block;
  padding: 0 9px;
  margin-top: 5px;
  color: var(--hero-color);
}
.hero-card small {
  display: block;
  padding: 0 9px;
  font-size: 9px;
  color: #aabfbb;
  margin-top: 4px;
}
.hero-details {
  border-left: 1px solid #426160;
  padding-left: 23px;
  min-width: 0;
}
.hero-details .hero-title {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
}
.hero-details .hero-title canvas {
  width: 80px;
  height: 96px;
  border: 1px solid var(--hero-color);
  border-radius: 6px;
}
.hero-details h3 {
  font-size: 29px;
  font-weight: 550;
  letter-spacing: -0.04em;
  color: var(--hero-color);
}
.hero-details .hero-title p {
  font-size: 11px;
  line-height: 1.7;
  color: #b7ccbe;
  margin: 4px 0;
}
.passive {
  font-size: 11px;
  color: #b8d2c8;
  line-height: 1.7;
  border: 1px solid #46635e;
  padding: 12px;
  border-radius: 5px;
  margin-bottom: 15px;
}
.passive b {
  color: var(--hero-color);
}
.hero-skill {
  display: flex;
  gap: 10px;
  border-top: 1px solid #2f5058;
  padding: 11px 0;
}
.hero-skill kbd {
  font:
    600 12px ui-monospace,
    monospace;
  color: var(--hero-color);
  border: 1px solid #4c7068;
  border-radius: 4px;
  padding: 5px;
  height: 27px;
}
.hero-skill strong {
  font-size: 12px;
  font-weight: 600;
  color: #e0ebda;
}
.hero-skill p {
  font-size: 11px;
  color: #a8c4c2;
  line-height: 1.6;
  margin: 5px 0;
}
.hero-skill small {
  color: #9dd8df;
  font:
    9px ui-monospace,
    monospace;
}
.shop-panel {
  max-width: 730px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.item-card {
  padding: 15px;
  border: 1px solid #466966;
  background: #0a2530;
  border-radius: 7px;
}
.item-card h3 {
  font-size: 13px;
  color: #deebcb;
  font-weight: 600;
}
.item-card p {
  font-size: 11px;
  line-height: 1.6;
  color: #adc4bd;
  min-height: 34px;
}
.item-card button {
  width: 100%;
  font:
    12px ui-monospace,
    monospace;
  min-height: 34px;
  background: #badf8e;
  color: #172a18;
  border: 0;
}
.item-card button:disabled {
  background: #26434c;
  color: #c4d1c5;
}
.item-glyph {
  font-size: 27px;
  color: #d5e8aa;
  margin-bottom: 10px;
}
.inventory {
  display: flex;
  gap: 7px;
  margin-top: 22px;
}
.inventory span {
  flex: 1;
  min-height: 52px;
  border: 1px solid #466861;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 10px;
  padding: 5px;
  color: #b4cdbd;
  text-align: center;
  background: #09222e;
}
.score-panel {
  max-width: 900px;
}
.score-team {
  border: 1px solid #466762;
  border-radius: 6px;
  overflow: hidden;
  margin: 12px 0;
}
.score-team h3 {
  padding: 10px 15px;
  color: var(--team);
  background: #09242c;
  font:
    11px ui-monospace,
    monospace;
}
.score-line {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #2b4b53;
  padding: 11px 15px;
  font:
    11px ui-monospace,
    monospace;
  color: #a9c7c2;
}
.score-line strong {
  font:
    600 12px ui-sans-serif,
    system-ui;
  color: #d9e5d3;
}
.score-line small {
  display: block;
  font-size: 9px;
  color: var(--team);
  margin-top: 3px;
}
.score-line.label {
  color: #95b4ad;
  font-size: 9px;
}
.result-card {
  max-width: 670px;
  background: linear-gradient(130deg, #203b3b, #0b2130);
  border-color: #92af83;
}
.result-card h2 {
  color: #e6f2d3;
  font-weight: 500;
  font-size: 60px;
}
.result-card .score-row {
  padding: 9px 0;
}
.result-card .score-row strong {
  font-weight: 500;
}
.result-card .score-row span {
  font-size: 10px;
}
.result-card .eyebrow {
  color: #c7e8a0;
}
@media (max-width: 1200px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .hero-vitals {
    width: 195px;
  }
  .hero-vitals > canvas {
    width: 43px;
    height: 55px;
  }
  .rift-bottom {
    gap: 10px;
    padding: 10px;
  }
  .skill-button {
    width: 51px;
    height: 60px;
  }
  .skill-button > canvas {
    width: 40px;
    height: 40px;
  }
  .skill-button.utility {
    width: 36px;
  }
  .hud-utilities {
    min-width: 98px;
  }
  .hero-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .codex-body {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .attract-copy h1 {
    font-size: 85px;
  }
  .rift-team-info {
    display: none;
  }
}
@media (max-width: 860px) {
  .rift-bottom {
    bottom: 12px;
    gap: 9px;
  }
  .hero-vitals {
    width: 140px;
  }
  .hero-vitals > canvas {
    display: none;
  }
  .hud-utilities {
    min-width: 75px;
  }
  .hud-utilities button {
    font-size: 8px;
  }
  .skill-button {
    width: 44px;
    height: 57px;
  }
  .skill-button > canvas {
    width: 35px;
    height: 35px;
  }
  .skill-button.utility {
    width: 32px;
  }
  .skill-bar {
    gap: 4px;
  }
  .match-help {
    display: none;
  }
  .rift-score {
    padding: 6px 16px;
    gap: 15px;
  }
  .rift-score > b {
    font-size: 23px;
  }
  .rift-score .score-label {
    display: none;
  }
  .kill-feed {
    font-size: 9px;
    top: 75px;
  }
  .hero-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .game-layout {
    display: flex;
  }
  .arena {
    height: 450px;
  }
  .attract-copy {
    left: 7%;
    bottom: 13%;
  }
  .attract-copy h1 {
    font-size: 64px;
  }
  .rift-subtitle {
    font-size: 10px;
    letter-spacing: 0.3em;
  }
  .attract-copy p {
    font-size: 13px;
    margin-top: 17px;
  }
  .attract-copy .eyebrow {
    font-size: 8px;
  }
  .feature-tags span {
    font-size: 8px;
  }
  .lobby-codex {
    margin-top: 17px;
    font-size: 11px;
    padding: 9px;
    min-height: 36px;
  }
  .control-panel {
    padding: 23px;
  }
  .game-identity {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  .game-top {
    padding-inline: 12px;
  }
  .top-actions {
    gap: 5px;
  }
  .top-actions .quiet {
    font-size: 10px;
  }
  .rift-overlay {
    position: fixed;
    inset: 0;
    padding: 12px;
  }
  .codex-panel,
  .shop-panel,
  .score-panel {
    padding: 17px;
  }
  .overlay-heading h2 {
    font-size: 25px;
  }
  .codex-body {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }
  .hero-card canvas {
    height: 80px;
  }
  .hero-card strong {
    font-size: 11px;
    padding: 0 6px;
  }
  .hero-card small {
    font-size: 8px;
    padding: 0 6px;
  }
  .hero-details {
    border-left: 0;
    border-top: 1px solid #45625f;
    padding: 20px 0 0;
  }
  .hero-filters {
    gap: 5px;
  }
  .hero-filters button {
    font-size: 9px;
    padding: 6px 8px;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .item-card {
    padding: 12px;
  }
  .score-line {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 6px;
    font-size: 10px;
    padding: 10px;
  }
  .score-line > :last-child {
    display: none;
  }
  .score-line strong {
    font-size: 10px;
  }
  .rift-bottom {
    bottom: 10px;
    padding: 7px;
    max-width: calc(100% - 16px);
    width: calc(100% - 16px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    z-index: 5;
  }
  .hero-vitals {
    width: auto;
    grid-column: 1;
    max-width: 230px;
  }
  .vital-copy strong {
    font-size: 11px;
  }
  .vital-copy > span {
    font-size: 9px;
  }
  .vital-bar {
    margin-top: 3px;
    height: 11px;
  }
  .vital-bar > span {
    font-size: 8px;
    line-height: 11px;
  }
  .vital-copy small {
    font-size: 8px;
    margin-top: 4px;
  }
  .skill-bar {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-content: center;
    gap: 6px;
  }
  .skill-button {
    width: 48px;
    height: 55px;
  }
  .skill-button.utility {
    width: 40px;
    height: 48px;
  }
  .skill-button > small {
    font-size: 7px;
  }
  .hud-utilities {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    min-width: 0;
    gap: 5px;
    align-items: center;
  }
  .hud-utilities button {
    font-size: 8px;
    min-height: 32px;
    padding: 5px;
  }
  .hud-utilities button b {
    font-size: 11px;
    margin: 0;
  }
  .hud-utilities button span {
    font-size: 8px;
  }
  .skill-tooltip {
    bottom: 147px;
    font-size: 11px;
  }
  .rift-score {
    top: 10px;
    padding: 7px 15px;
    gap: 13px;
  }
  .rift-score small {
    font-size: 7px;
  }
  .rift-score > b {
    font-size: 22px;
  }
  .rift-score time {
    font-size: 10px;
  }
  .kill-feed {
    top: 130px;
    right: 8px;
    max-width: 230px;
    opacity: 0.9;
  }
  .kill-entry {
    font-size: 8px;
    padding: 5px 8px;
  }
  .event-toast {
    top: 80px;
    font-size: 9px;
  }
  .respawn-banner {
    padding: 15px;
    width: 80%;
    top: 27%;
  }
  .respawn-banner b {
    font-size: 25px;
  }
  .respawn-banner span {
    font-size: 9px;
    line-height: 1.7;
  }
  .playing .touch-controls {
    bottom: 150px;
    left: 16px;
    right: 16px;
  }
  .stick {
    width: 84px;
    height: 84px;
    background: #102d385c;
    border-color: #a6cbb566;
  }
  .stick i {
    width: 34px;
    height: 34px;
    background: #74989170;
  }
  .stick span {
    font-size: 8px;
    margin-top: 61px;
  }
  .rift-touch-attack {
    position: absolute;
    right: 100px;
    bottom: 0;
    font-size: 10px;
    min-width: 55px;
    min-height: 48px;
    background: #264a40bc;
    border-color: #a6c5a4;
    border-radius: 50%;
  }
  .playing.menu-open .control-panel {
    width: calc(100% - 55px);
  }
  .playing.menu-open .match-menu {
    left: 7px;
    right: auto;
  }
  .result-card h2 {
    font-size: 42px;
  }
  .result-card .score-row {
    font-size: 11px;
  }
  .result-card .score-row span {
    font-size: 8px;
  }
}
@media (pointer: coarse) and (min-width: 701px) {
  .playing .touch-controls {
    bottom: 132px;
  }
  .rift-touch-attack {
    position: absolute;
    right: 120px;
    bottom: 3px;
  }
  .rift-bottom {
    bottom: 8px;
  }
  .match-help {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-card:hover {
    transform: none;
  }
}
