/* Fritidshack – the shared look of the robot games ("HOLO-EDITION 3000": 4 i rad, YKSI, ...; owner's rule: the same
   robots and the same look, so they feel like one series). Each game's own CSS adds its size and HUD.
   Goes together with css/game-stage.css (the game box) and js/neon-fx.js / js/robot-avatar.js (the canvas).
   Fullscreen: everything here grows with the picture by --ui (1 at the normal 960 x 540 box, 2 at 1920 x 1080; see
   css/game-stage.css .ui-grows) – except "Tillbaka till menyn", which keeps its size like the other corner buttons. */

.holo-stage {
  /* The board games' two colours (4 i rad: magenta and yellow – a game may set its own in its CSS, like Vändbricka's
     black and white). colour-a belongs to side 1 (you / player 1 / the left robot), colour-b to side 2.
     dot = how a side's dot is painted, fill + ink = a lit button in that colour (background + text). */
  --colour-a: var(--magenta);
  --colour-a-dot: var(--colour-a);
  --colour-a-fill: var(--colour-a);
  --colour-a-ink: #fff;
  --colour-b: var(--yellow);
  --colour-b-dot: var(--colour-b);
  --colour-b-fill: var(--colour-b);
  --colour-b-ink: #1a1030;
  /* The sides during a game: you may choose the other colour against a robot (class colors-swapped) */
  --side-1: var(--colour-a);
  --side-1-dot: var(--colour-a-dot);
  --side-2: var(--colour-b);
  --side-2-dot: var(--colour-b-dot);
  background: #0a0720;
  user-select: none;
  -webkit-user-select: none;
}

.holo-stage.colors-swapped {
  --side-1: var(--colour-b);
  --side-1-dot: var(--colour-b-dot);
  --side-2: var(--colour-a);
  --side-2-dot: var(--colour-a-dot);
}

/* Hologram scanlines over everything (but under the corner buttons) */
.holo-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

.holo-stage canvas {
  cursor: default;                       /* the game shows the hand only where a click does something */
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Big glitchy text ("FYRA I RAD!", "YKSI!") ---------- */
/* On a dark hologram plate with scanlines (owner, Oct 2026: it must be easy to read over the board/table) */

.holo-big {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 1;
  width: max-content;
  max-width: 92%;
  margin: 0;
  padding: 0.04em 0.55em 0.1em;
  text-align: center;
  font-style: italic;
  font-weight: 900;
  font-size: calc(clamp(2rem, 9vw, 5.5rem) * var(--ui, 1));
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.04em;
  text-shadow: -3px 0 var(--magenta), 3px 0 var(--cyan), 0 0 14px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.9);
  background:
    repeating-linear-gradient(to bottom, rgba(94, 240, 255, 0.07) 0 2px, transparent 2px 5px),
    rgba(6, 4, 22, 0.82);
  box-shadow: inset 0 2px 0 rgba(94, 240, 255, 0.5), inset 0 -2px 0 rgba(255, 63, 180, 0.5);
  clip-path: polygon(0.35em 0, 100% 0, calc(100% - 0.35em) 100%, 0 100%);   /* the site's angled shape */
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.holo-big:empty {
  display: none;
}

/* A long text (a friend's name: "Kloka Myran 32 börjar!") is smaller, so it stays on one line */
.holo-big.is-long {
  font-size: calc(clamp(1.6rem, 5.5vw, 3.4rem) * var(--ui, 1));
}

.holo-big.show {
  animation: holo-big-in 0.25s ease-out forwards, holo-glitch 0.18s steps(2) 0.25s 5;
}

.holo-big.hide {
  animation: holo-big-out 0.3s ease-in forwards;
}

@keyframes holo-big-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(1.6); filter: blur(6px); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

@keyframes holo-big-out {
  from { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -50%) scaleY(0.05); }    /* like an old screen switching off */
}

@keyframes holo-glitch {
  0% { opacity: 1; transform: translate(calc(-50% - 6px), -50%) skewX(-8deg); text-shadow: -6px 0 var(--magenta), 6px 0 var(--cyan), 0 0 14px #000; }
  50% { opacity: 1; transform: translate(calc(-50% + 5px), -50%) skewX(6deg); text-shadow: 5px 0 var(--magenta), -5px 0 var(--cyan), 0 0 14px #000; }
  100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* ---------- A robot's speech bubble (each game places it and its tail) ---------- */

.holo-bubble {
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: calc(0.6rem * var(--ui, 1)) calc(1rem * var(--ui, 1));
  font-weight: 800;
  font-size: calc(clamp(1.05rem, 2.8vw, 1.55rem) * var(--ui, 1));
  line-height: 1.3;
  color: var(--text);
  background: rgba(14, 10, 36, 0.88);
  border: 2px solid var(--yellow);                 /* the robot's colour */
  box-shadow: 0 0 14px rgba(255, 233, 77, 0.35);
  opacity: 0;
  transform: translateY(-0.4rem) scale(0.9);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

/* The little tail (pointing up by default; the game moves it) */
.holo-bubble::before {
  content: "";
  position: absolute;
  top: calc(-0.55rem * var(--ui, 1));
  border: calc(0.5rem * var(--ui, 1)) solid transparent;
  border-top: 0;
  border-bottom-color: var(--yellow);
}

.holo-bubble.show {
  opacity: 1;
  transform: none;
}

/* ---------- Menus (on the game's overlay) ---------- */

.holo-overlay {
  overflow-y: auto;                      /* a long menu may be taller than a small box */
  justify-content: safe center;          /* ...and then it starts at the top instead of being cut off */
  padding-bottom: calc(3.8rem + var(--safe-bottom));   /* keep the buttons clear of the sound button */
  background: rgba(10, 7, 32, 0.82);
}

/* After a game: see-through, so you can still see how it ended */
.holo-overlay.is-result {
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(10, 7, 32, 0.92) 0%, rgba(10, 7, 32, 0.6) 50%, rgba(10, 7, 32, 0.15) 100%);
}

.holo-edition {
  margin: -0.5rem 0 0.75rem !important;
  font-style: italic;
  font-weight: 800;
  font-size: 0.85rem !important;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(94, 240, 255, 0.7);
}

.holo-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.holo-menu-label {
  margin: 0 !important;
  font-size: 1rem !important;
}

.holo-robots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* A robot button: the level is a small line on top; the robot's NAME is big, so you see who you meet */
.holo-robot {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.4rem;
  line-height: 1.15;
}

.holo-robot small {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.holo-robot-name {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 900;
}

/* A row of small choices with a label in front ("Läge:", "Bäst av:", "Robot 1:") */
.holo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.holo-choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

/* Rows that stay on ONE line (owner, 2026-10-13: the menus must fit the box): two choices side by side ("Bäst av" +
   "Din färg") and a label in front of its buttons (Robotmatch). A phone may wrap them. (Not left to wrap by itself:
   zoomed, a row's own width can come out a fraction of a pixel too small, and then it wrapped anyway.) */
.holo-one-line,
.holo-pair {
  flex-wrap: nowrap;
}

.holo-pair {
  gap: 0.5rem 2rem;
}

/* The compact "Bäst av" (js/spinner.js .is-side, the arrows beside the number): about as high as the buttons beside it */
.holo-bestof.spinner {
  --spinner-width: 2.8rem;
  --spinner-height: 2.3rem;
  --spinner-font: 1.5rem;
}

/* Robotmatch: "● Magenta robot:" in front of its robots, so the two rows' buttons line up */
.holo-pick-label {
  min-width: 8.5rem;
  text-align: right;
}

.holo-choice {
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
}

.holo-choice.is-chosen {
  color: #0e0a24;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(94, 240, 255, 0.6);
}

/* Small boxes (phones, not fullscreen): a tighter menu so it all fits */
@media (max-width: 560px) {
  .holo-overlay h2 {
    font-size: 2rem;
  }
  .holo-overlay p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  .holo-menu {
    gap: 0.5rem;
  }
  .holo-robots {
    gap: 0.4rem;
  }
  .holo-overlay .button {
    padding: 0.4rem 1rem;
  }
}

/* The help line under the game box */
.holo-help {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.holo-help kbd {
  padding: 0 0.35em;
  font: inherit;
  font-weight: 700;
  color: var(--cyan);
  border: 1px solid rgba(94, 240, 255, 0.4);
}

/* ---------- "Tillbaka till menyn" (bottom left, like the sound button on the right; js/game-ui.js) ---------- */

.holo-to-menu {
  position: absolute;
  z-index: 2;
  left: calc(0.6rem + var(--safe-left));
  bottom: calc(0.6rem + var(--safe-bottom));
  display: flex;
  align-items: center;
  height: 2.6rem;
  padding: 0 0.55rem;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  background: rgba(14, 10, 36, 0.7);
  border: 2px solid var(--cyan);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.holo-to-menu[hidden] {
  display: none;
}

.holo-to-menu-icon svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}

/* The question only shows after the first tap/click */
.holo-to-menu-text {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease-out, opacity 0.25s, margin 0.3s ease-out;
}

.holo-to-menu:hover,
.holo-to-menu:focus-visible,
.holo-to-menu.is-open {
  opacity: 1;
  box-shadow: 0 0 10px var(--cyan);
}

.holo-to-menu.is-open {
  color: #0e0a24;
  background: var(--yellow);
  border-color: var(--yellow);
}

.holo-to-menu.is-open .holo-to-menu-text {
  max-width: 14em;
  margin-left: 0.5rem;
  opacity: 1;
}

/* ---------- Who plays: the two names at the top (4 i rad, Vändbricka; js/holo-games.js) ---------- */
/* The side whose turn it is lights up. Under a name a game may put its own things (4 i rad's Superbrickor). */

.holo-hud {
  position: absolute;
  top: calc(0.6rem + var(--safe-top));
  left: calc(0.6rem + var(--safe-left));
  right: calc(3.8rem + var(--safe-right));          /* room for the fullscreen icon */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: none;
}

/* The names (and what is under them) grow with the picture in fullscreen; the bar itself keeps its place, so it stays
   clear of the fullscreen button */
.holo-hud > * {
  zoom: var(--ui, 1);
}

/* A side: its name, and under it whatever the game adds */
.holo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-width: 0;
  max-width: calc(50% - 0.25rem);                /* two names always fit side by side */
}

.holo-col-2 {
  align-items: flex-end;
}

.holo-side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  padding: 0.35rem 0.9rem;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2.4vw, 1.3rem);
  line-height: 1.15;
  color: var(--text-muted);
  background: rgba(14, 10, 36, 0.6);
  border: 2px solid rgba(94, 240, 255, 0.25);
  clip-path: polygon(0 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%);   /* the site's angled shapes */
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.holo-col-2 .holo-side {
  clip-path: polygon(0.6rem 0, 100% 0, 100% 100%, 0 100%);
}

.holo-side.is-turn {
  color: var(--text);
  border-color: var(--cyan);
  box-shadow: inset 0 0 12px rgba(94, 240, 255, 0.35);
}

.holo-name {
  overflow-wrap: break-word;                     /* long names go on two lines instead of being cut */
}

/* A side's colour: a glowing dot */
.holo-dot {
  flex: none;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
}

/* A side's dot in the names (it follows a swap of colours) */
.holo-dot-1 {
  background: var(--side-1-dot);
  box-shadow: 0 0 8px var(--side-1);
}

.holo-dot-2 {
  background: var(--side-2-dot);
  box-shadow: 0 0 8px var(--side-2);
}

/* A colour's dot on the menus ("Din färg", the Robotmatch labels): never swapped */
.holo-dot-a {
  background: var(--colour-a-dot);
  box-shadow: 0 0 8px var(--colour-a);
}

.holo-dot-b {
  background: var(--colour-b-dot);
  box-shadow: 0 0 8px var(--colour-b);
}

.holo-badge:empty {
  display: none;
}

.holo-badge .badge {
  height: 1.4em;
  margin: 0;
}

/* The middle of the top bar: whose turn, and small under it the match score / the mode */
.holo-middle {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.holo-status {
  align-self: stretch;
  min-width: 0;
  margin: 0;
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2.2vw, 1.25rem);
  color: var(--cyan);
  text-align: center;
  text-shadow: 0 0 8px rgba(94, 240, 255, 0.6);
  white-space: nowrap;
}

.holo-label {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.75;
}

/* Small screens: the turn text (and the labels) would push the names away */
@media (max-width: 560px) {
  .holo-middle {
    display: none;
  }
}

/* ---------- The robots' speech bubbles under their names (the bubble's look is .holo-bubble above) ---------- */

/* The right robot's bubble, in its colour */
.holo-bubble-2 {
  top: calc(4.2rem * var(--ui, 1) + var(--safe-top));     /* under the name, which grows by --ui */
  right: calc(3.8rem + var(--safe-right));
  max-width: min(calc(30rem * var(--ui, 1)), 72%);
  border-color: var(--side-2);
  box-shadow: 0 0 14px color-mix(in srgb, var(--side-2) 35%, transparent);
  transform-origin: top right;
}

/* The little tail pointing up at the robot's name */
.holo-bubble-2::before {
  right: calc(1.2rem * var(--ui, 1));
  border-bottom-color: var(--side-2);
}

/* Robotmatch: the left robot's bubble, under the left name */
.holo-bubble-1 {
  top: calc(4.2rem * var(--ui, 1) + var(--safe-top));
  left: calc(0.6rem + var(--safe-left));
  max-width: min(calc(30rem * var(--ui, 1)), 72%);
  border-color: var(--side-1);
  box-shadow: 0 0 14px color-mix(in srgb, var(--side-1) 35%, transparent);
  transform-origin: top left;
}

.holo-bubble-1::before {
  left: calc(1.2rem * var(--ui, 1));
  border-bottom-color: var(--side-1);
}

/* Small boxes (phones): the names may take two or three lines, so the bubbles move down */
@media (max-width: 560px) {
  .holo-bubble-1,
  .holo-bubble-2 {
    top: calc(5.8rem + var(--safe-top));
    max-width: 85%;
  }
  .holo-bubble-2 {
    right: calc(0.6rem + var(--safe-right));
  }
}

/* The bubbles stay beside the board (js/holo-games.js placeBoard sets the room: --bubble-room-1/-2), so they never
   hide the pieces. Phones keep the rule above (no robot is shown there, and only the important lines come). */
@media (min-width: 561px) {
  .holo-bubble-2 {
    max-width: min(calc(30rem * var(--ui, 1)), var(--bubble-room-2, 72%));
  }

  .holo-bubble-1 {
    max-width: min(calc(30rem * var(--ui, 1)), var(--bubble-room-1, 72%));
  }
}

/* ---------- The tall layout (wide boxes; js/holo-games.js placeBoard) ----------
   Owner, 2026-10-12: the board fills the height in the middle. The names stay in the side zones beside it (--zone-1
   left, --zone-2 right, set by placeBoard; long names wrap), and the small labels from the middle ("Bäst av 3 · 1 – 0")
   go under your name. */
.holo-stage.is-tall .holo-hud {
  display: grid;
  grid-template-columns:
    calc(var(--zone-1) - 0.9rem - var(--safe-left)) minmax(0, 1fr) calc(var(--zone-2) - 4.1rem - var(--safe-right));
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 0.3rem 0;
}

.holo-stage.is-tall .holo-col {
  max-width: 100%;
}

.holo-stage.is-tall .holo-col:not(.holo-col-2) {
  grid-area: 1 / 1;
}

.holo-stage.is-tall .holo-middle {
  grid-area: 2 / 1;
  align-items: flex-start;
}

.holo-stage.is-tall .holo-col-2 {
  grid-area: 1 / 3 / 3 / 4;
}

/* ---------- The opponent menus (js/holo-games.js setupOpponentMenus) ---------- */

.holo-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

/* After a game: the buttons side by side */
.holo-result {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

/* The medals won in that game (js/medals.js showRoundMedals): a row of their own above the buttons */
.holo-result .medal-row {
  flex-basis: 100%;
  margin: 0;
}

.holo-menu-label .holo-dot,
.holo-colour .holo-dot {
  display: inline-block;
  vertical-align: middle;
}

.holo-pick,
.holo-guess {
  padding: 0.4rem 1rem;
  font-size: 0.95rem;
}

/* The chosen robot / guess / colour lights up in its colour (a Robotmatch's left side has colour a, the right b) */
.holo-pick-1.is-chosen,
.holo-guess-1.is-chosen,
.holo-colour-1.is-chosen {
  color: var(--colour-a-ink);
  background: var(--colour-a-fill);
  border-color: var(--colour-a);
  box-shadow: 0 0 12px color-mix(in srgb, var(--colour-a) 60%, transparent);
}

.holo-pick-2.is-chosen,
.holo-guess-2.is-chosen,
.holo-colour-2.is-chosen {
  color: var(--colour-b-ink);
  background: var(--colour-b-fill);
  border-color: var(--colour-b);
  box-shadow: 0 0 12px color-mix(in srgb, var(--colour-b) 60%, transparent);
}

.holo-fast {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  cursor: pointer;
}

/* A robot's whole name, and a short one for small screens (one of them shows) */
.holo-short {
  display: none;
}

/* Small boxes (phones): short robot names so three fit on one row, tighter rows */
@media (max-width: 560px) {
  .holo-long {
    display: none;
  }
  .holo-short {
    display: inline;
  }
  #match-menu {
    gap: 0.35rem;
  }
  #match-menu .holo-robots {
    flex-wrap: nowrap;
  }
  .holo-pick-label {
    min-width: 0;
    text-align: center;
  }
  .holo-one-line,
  .holo-pair {
    flex-wrap: wrap;
  }
  .holo-pick,
  .holo-guess {
    padding: 0.35rem 0.7rem;
  }
}

/* ---------- "Spela tillsammans": playing friends on other computers (js/net-menus.js) ---------- */
/* Shown on the game's overlay like the other menus: create a room, tap a code, the waiting room ("Väntrum"). */

.holo-net {
  gap: 0.6rem;
  max-width: 100%;
}

/* The room's code: four pictures with their names (the friends tap the same ones) */
.holo-net-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem 0.6rem;
  background: rgba(14, 10, 36, 0.7);
  border: 2px solid rgba(94, 240, 255, 0.45);
  box-shadow: inset 0 0 14px rgba(94, 240, 255, 0.2);
  clip-path: polygon(0.6rem 0, 100% 0, calc(100% - 0.6rem) 100%, 0 100%);   /* the site's angled shape */
}

.holo-net-code-label {
  font-size: 0.75rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
}

.holo-net-code .key-item {
  width: 4rem;
  font-size: 0.8rem;
}

.holo-net-code .key-item .picture {
  width: 3.2rem;
  height: 3.2rem;
}

/* Who is in: one chip per player (you light up; a lost connection is dim; the host has a × to send someone away) */
.holo-net-players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.holo-net-player {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.4rem 0.3rem 0.8rem;
  font-weight: 800;
  background: rgba(14, 10, 36, 0.7);
  border: 2px solid rgba(94, 240, 255, 0.3);
}

.holo-net-player.is-you {
  border-color: var(--cyan);
  box-shadow: inset 0 0 10px rgba(94, 240, 255, 0.3);
}

.holo-net-player.is-gone {
  opacity: 0.5;
}

.holo-net-player.is-robot {
  border-color: rgba(255, 233, 77, 0.5);
}

.holo-net-about {
  font-size: 0.75rem;
  font-weight: 700;
  font-style: italic;
  color: var(--text-muted);
}

.holo-net-about:empty {
  display: none;
}

.holo-net-kick {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.holo-net-kick:hover,
.holo-net-kick:focus-visible {
  color: #0e0a24;
  background: var(--magenta);
  border-color: var(--magenta);
}

/* The host's choices (the others see them as a line of text) */
.holo-net-choices {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.holo-net-chosen {
  margin: 0 !important;
  font-size: 0.95rem !important;
  font-weight: 800;
  color: var(--cyan);
}

.holo-net-robots[hidden] {
  display: none;
}

.holo-net-note {
  margin: 0 !important;
  font-weight: 800;
  color: var(--yellow);
}

.holo-net-note:empty {
  display: none;
}

.holo-net-privacy {
  margin: 0 !important;
  font-size: 0.8rem !important;
  color: var(--text-muted);
}

.holo-net-privacy a {
  color: var(--cyan);
}

/* Tapping the code: the 16 pictures in two rows of eight (four rows on narrow boxes) */
.holo-net-pad .key-slots {
  margin-bottom: 0.5rem;
}

.holo-net-pad .key-slot {
  width: 2.8rem;
  height: 2.8rem;
}

.holo-net-pad .picture-pad {
  grid-template-columns: repeat(8, 1fr);
  max-width: 30rem;
  gap: 0.4rem;
}

.holo-net-pad .picture-button {
  padding: 0.4rem;
}

.holo-net-pad .account-actions {
  margin-top: 0.5rem;
}

@media (max-width: 560px) {
  .holo-net-pad .picture-pad {
    grid-template-columns: repeat(4, 1fr);
    max-width: 15rem;
  }
}

/* During a game: a lost connection ("Tappat kontakten – försöker igen …"), under the names at the top */
.holo-net-status {
  position: absolute;
  z-index: 2;
  top: calc(3.6rem * var(--ui, 1) + var(--safe-top));
  left: 50%;
  margin: 0;
  padding: calc(0.3rem * var(--ui, 1)) calc(0.9rem * var(--ui, 1));
  font-size: calc(1rem * var(--ui, 1));
  font-weight: 800;
  font-style: italic;
  color: #0e0a24;
  background: var(--yellow);
  box-shadow: 0 0 14px rgba(255, 233, 77, 0.5);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  max-width: 92%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.holo-net-status[hidden] {
  display: none;
}

/* The tall layout: in the middle of your side's zone (the board fills the middle of the box) */
.holo-stage.is-tall .holo-net-status {
  top: 50%;
  left: calc(var(--zone-1) / 2);
  max-width: calc(var(--zone-1) - 1.2rem);
  white-space: normal;
  text-align: center;
  transform: translate(-50%, -50%);
}

/* On the net each computer sees its own player marked "du" in the names at the top */
.holo-side.is-you::after {
  content: "du";
  flex: none;
  padding: 0.05rem 0.35rem;
  font-size: 0.65em;
  font-style: normal;
  letter-spacing: 0.1em;
  color: #0e0a24;
  background: var(--cyan);
}
