/* ============================================================================
   TIGERBILL'S ARCADE  (arcade.htm and the game pages in arcade/)
   ============================================================================
   Used inside <div class="mainContent article">, on the usual newspaper background,
   with the site's own colors: the tiger's orange, yellow, brown and blue, the
   purple of the headings and sidebar, black and orange pill buttons, striped bars.
   Everything is scoped to .arc, so it can't affect other pages.

   The lobby (arcade.htm):
     arc-hero        the welcome: the sign, a few words, and the tiger
     arc-sign        the black "TigerBill's Arcade" sign with light bulbs along it
     arc-section     one section, opened by the site's striped bar
     arc-cabinet     one game: its picture, logo, description and Play button

   A game page (arcade/*.htm):
     arc-crumb       "TigerBill's Arcade > Game" line above the title
     arc-game        the game: arc-screen (the playfield, with arc-overlay / arc-panel
                     for the pop-up panel the tiger hosts) and arc-controls (buttons)
     arc-keys        "how to play" list
     arc-board       the leaderboard: ten rows of rank, screen name, stage and score
     arc-entry       the box in the pop-up panel where a top-ten player types a screen name
     arc-legend      power-ups and blocks, each with a small picture drawn by the game
   ============================================================================ */
.arc {
  --arc-orange: #fe9833;
  --arc-yellow: #fecb32;
  --arc-brown: #74290d;
  --arc-blue: #0197fc;
  --arc-purple: #6a29ac;   /* heading purple */
  --arc-deep: #582c7e;     /* sidebar / box border purple */
  --arc-mute: #453d4d;
  --arc-line: rgba(88, 44, 126, 0.45);
  --arc-paper: #fbf7ee;    /* the playfield's paper colour */
  padding: 0.5rem 0 1rem;
}
.arc img { max-width: 100%; height: auto; }

/* ---------- Buttons: black pill like the menu's Home button, orange pill like the MENU button ---------- */
.arc .arc-btn,
.arc a.arc-btn:link,
.arc a.arc-btn:visited {
  display: inline-block; padding: 0.65rem 1.2rem; border-radius: 999px;
  border: 2px solid #000; background: #000; color: #fff;
  font-family: Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: bold; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.arc .arc-btn:hover,
.arc a.arc-btn:hover,
.arc a.arc-btn:active { background: var(--arc-deep); border-color: var(--arc-deep); color: #fff; }
.arc .arc-btn-primary,
.arc a.arc-btn-primary:link,
.arc a.arc-btn-primary:visited { background: #ffa500; border-color: #000; color: #000; }
.arc .arc-btn-primary:hover,
.arc a.arc-btn-primary:hover,
.arc a.arc-btn-primary:active { background: #ffc04d; border-color: #000; color: #000; }
.arc .arc-btn:focus-visible,
.arc .arc-ctl:focus-visible,
.arc a:focus-visible { outline: 3px solid var(--arc-deep); outline-offset: 3px; border-radius: 999px; }
.arc .arc-btn[hidden] { display: none; }

/* ---------- Lobby: welcome ---------- */
.arc-hero {
  display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem); align-items: end;
  padding-top: clamp(0.5rem, 2vw, 1rem);
}
.article .arc-lead { font-size: 1.1rem; margin: 1.2rem 0 0; }
.arc .arc-hero-tiger { display: block; width: 100%; max-width: 12.5rem; margin: 0 auto; }

/* The sign: orange lettering on black, like the site header, with a row of bulbs
   along the top and bottom. The bulbs are two sets, one sitting in the gaps of the
   other, and the two sets take turns lighting up. */
.arc-sign {
  position: relative; background: #000; border-radius: 20px;
  padding: 1.9rem 1.3rem 1.7rem; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
  container-type: inline-size;   /* lets the line under the title rearrange itself to fit the sign's width (below) */
}
.arc-sign::before,
.arc-sign::after {
  content: ""; position: absolute; inset: 0.55rem 1.1rem; pointer-events: none;
  background-image:
    radial-gradient(circle closest-side, #fff8d6 22%, #fecb32 48%, rgba(254, 203, 50, 0) 76%),
    radial-gradient(circle closest-side, #fff8d6 22%, #fecb32 48%, rgba(254, 203, 50, 0) 76%);
  background-size: 2.4rem 0.75rem;
  background-repeat: round no-repeat;
  background-position: 0 0, 0 100%;
  animation: arc-bulbs 1.1s steps(1, end) infinite;
}
/* the second set starts and ends half a bulb's space further in, so its bulbs land in the gaps */
.arc-sign::after { left: 2.3rem; right: 2.3rem; animation-delay: -0.55s; }
@keyframes arc-bulbs { 0%, 100% { opacity: 1; } 50% { opacity: 0.28; } }
.article .arc-sign h1 {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end;
  gap: 0.5rem 0.8rem; margin: 0; line-height: 0;
}
.arc-sign h1 img { display: block; height: clamp(2rem, 5.6vw, 2.9rem); width: auto; }
/* The line under the title: "Original games · Free to play · Nothing to download". Each of
   its two parts stays in one piece. On a wide sign it is one line; on a narrow sign the
   second part goes on a line of its own and the dot between the two is dropped. */
.article .arc-sign-tag {
  color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 0.95rem; font-style: italic;
  letter-spacing: 0.02em; line-height: 1.45; text-align: center; margin: 0.7rem 0 0;
}
.arc-sign-tag span:not(.arc-sign-dot) { white-space: nowrap; }
@container (max-width: 29rem) {
  .arc-sign-tag span:not(.arc-sign-dot) { display: block; }
  .arc-sign-tag .arc-sign-dot { display: none; }
}

/* ---------- Lobby: sections and games ---------- */
.arc-section { margin-top: clamp(1.75rem, 5vw, 2.5rem); }
.arc-section > .striped-bar { margin-bottom: clamp(1.1rem, 3vw, 1.5rem); }
.article .arc-section h2 { font-size: clamp(1.3rem, 3.2vw, 1.6rem); line-height: 1.2; margin: 0; }
.article .arc-sub { color: var(--arc-mute); margin: 0.3rem 0 1rem; }

.arc-cabinet {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1rem, 3vw, 1.7rem); align-items: center;
  background: rgba(255, 255, 255, 0.82); border: 2px solid var(--arc-line); border-radius: 10px;
  padding: clamp(0.9rem, 2.5vw, 1.3rem); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.arc-cabinet:hover { background: #fff; border-color: var(--arc-deep); transform: translateY(-2px); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.14); }
/* the game's picture, framed like its screen */
.arc-cabinet-pic {
  display: block; border: 5px solid #000; border-radius: 16px; overflow: hidden;
  background: var(--arc-paper); line-height: 0; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
}
.arc-cabinet-pic svg { display: block; width: 100%; height: auto; }
.arc-cabinet-logo { display: block; width: min(100%, 15rem); }
.article .arc-cabinet h3 { margin: 0; line-height: 0; }
.article .arc-cabinet p { color: var(--arc-mute); font-size: 0.95rem; line-height: 1.55; margin: 0.8rem 0 0; }
.arc-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.85rem 0 0; padding: 0; }
.arc-chips li {
  border: 1px solid var(--arc-line); border-radius: 999px; padding: 0.22rem 0.7rem; background: #fff;
  color: #000; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.8rem; line-height: 1.4;
}
.article .arc-cabinet .arc-cabinet-play { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1rem 0 0; }
/* the Play button covers the whole card, so a click anywhere on it starts the game */
.arc-cabinet-play .arc-btn::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.arc-best { color: var(--arc-mute); font-family: Arial, Helvetica, sans-serif; font-size: 0.9rem; }
.arc-best strong { color: #000; }
.arc-best[hidden] { display: none; }

/* "More games on the way" note */
.arc-soon {
  display: flex; align-items: center; gap: 1rem;
  background: #f3ecfa; border: 2px solid var(--arc-deep); border-radius: 10px; padding: 1rem 1.1rem;
}
.arc-soon-art {
  flex: none; display: flex; align-items: center; justify-content: center; width: 5.4rem; height: 5.4rem;
  background: #fff; border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}
.arc-soon-art svg { display: block; width: 74%; height: 74%; overflow: visible; }
.article .arc-soon h3 { font-size: 1.15rem; margin: 0 0 0.3rem; }
.article .arc-soon p { margin: 0; }
.article .arc-signoff { color: var(--arc-purple); font-family: Arial, Helvetica, sans-serif; font-weight: bold; font-size: 1.15rem; margin: 1.5rem 0 0; }

/* ---------- Game page ---------- */
.article .arc-crumb {
  color: var(--arc-deep); font-family: Arial, Helvetica, sans-serif; font-size: 0.8rem; font-weight: bold;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0.25rem 0 0.35rem;
}
.article .arc-crumb a:link, .article .arc-crumb a:visited { color: var(--arc-deep); background: none; text-decoration: none; }
.article .arc-crumb a:hover, .article .arc-crumb a:active { color: #000; background: none; text-decoration: underline; }
.article .arc h1.arc-title { font-size: clamp(1.6rem, 4.2vw, 2.2rem); line-height: 1.15; margin: 0 0 0.4rem; }
.article .arc-intro { margin: 0 0 1.1rem; }

.arc-game { margin: 0; }
/* The playfield is 4 wide to 5 tall. It is as wide as the page allows, but never so
   tall that it doesn't fit on the screen with its buttons. */
.arc-screen {
  position: relative; margin: 0 auto;
  width: min(100%, max(15rem, calc((100vh - 8.5rem) * 0.8)));
  width: min(100%, max(15rem, calc((100dvh - 8.5rem) * 0.8)));   /* dvh: the part of a phone's screen not covered by the browser's bars */
  border: 6px solid #000; border-radius: 22px; overflow: hidden;
  background: var(--arc-paper); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
  line-height: 0;
}
.arc-canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; outline: none; -webkit-tap-highlight-color: transparent; }
/* while a game is being played, dragging on the playfield moves the drum instead of scrolling the page */
.arc-game.is-live .arc-canvas { touch-action: none; }
.arc-game.is-playing .arc-canvas { cursor: none; }

/* The pop-up panel over the playfield (title, paused, game over...), hosted by the tiger */
.arc-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 4%; background: rgba(88, 44, 126, 0.32); line-height: 1.4;
}
.arc-overlay[hidden] { display: none; }
.arc-panel {
  width: min(100%, 21rem); max-height: 100%; overflow: auto;
  background: #fff; border: 4px solid #000; border-radius: 18px; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.28);
  padding: 0.9rem 1rem 1.1rem; text-align: center;
  animation: arc-pop 0.28s cubic-bezier(0.3, 1.4, 0.5, 1);
}
@keyframes arc-pop { from { transform: scale(0.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.arc-host { display: flex; align-items: flex-end; justify-content: center; gap: 0.55rem; margin: 0 0 0.5rem; }
.arc-bubble {
  position: relative; align-self: flex-start; margin-top: 0.3rem; padding: 0.7em 0.85em;
  background: #fff; border: 3px solid #000; border-radius: 1.3em;
  color: #000; font-family: "Cooper Black", "Arial Black", Arial, Helvetica, sans-serif; font-size: 1.05rem; font-weight: bold; line-height: 1.25;
  filter: drop-shadow(-2px 3px 0 rgba(0, 0, 0, 0.22));
}
.arc-bubble::after {   /* the bubble's pointer, toward the tiger */
  content: ""; position: absolute; right: -0.62em; bottom: 0.55em; width: 0.95em; height: 0.95em;
  background: #fff; border-right: 3px solid #000; border-bottom: 3px solid #000;
  transform: rotate(-45deg) skew(12deg, 12deg);
}
.arc-bubble svg { display: block; height: auto; max-width: 100%; }
.arc .arc-tiger { flex: none; display: block; height: 6.4rem; width: auto; transform-origin: 50% 100%; }
.arc-overlay[data-mood="happy"] .arc-tiger { animation: arc-hop 0.7s cubic-bezier(0.3, 0.6, 0.4, 1) 0.15s 2; }
.arc-overlay[data-mood="sad"] .arc-tiger { transform: rotate(7deg) translateY(2px); }
@keyframes arc-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); } 14% { transform: translateY(0) scale(1.06, 0.9); }
  42% { transform: translateY(-16px) scale(0.97, 1.05); } 64% { transform: translateY(0) scale(1.05, 0.93); }
  80% { transform: translateY(-5px) scale(1, 1); }
}
.arc-logo { display: block; width: min(78%, 15rem); margin: 0.2rem auto 0.5rem; }
.arc-logo[hidden] { display: none; }
.article .arc-panel .arc-heading {
  color: #000; font-family: "Cooper Black", "Arial Black", Arial, Helvetica, sans-serif; font-size: 1.7rem; line-height: 1.1;
  text-align: center; margin: 0.3rem 0 0.5rem;
}
.arc-heading svg { display: block; margin: 0 auto; height: auto; max-width: 100%; }
.arc-heading[hidden] { display: none; }
.article .arc-panel .arc-panel-text { color: var(--arc-mute); font-size: 0.95rem; line-height: 1.5; text-align: center; margin: 0 0 0.8rem; }
.arc-panel-text[hidden] { display: none; }
.arc-stats { display: flex; justify-content: center; gap: 1.4rem; margin: 0.2rem 0 0.9rem; }
.arc-stats[hidden], .arc-stats div[hidden] { display: none; }
.arc-stats dt { color: var(--arc-deep); font-family: Arial, Helvetica, sans-serif; font-size: 0.7rem; font-weight: bold; letter-spacing: 0.06em; text-transform: uppercase; }
.arc-stats dd { margin: 0; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 1.45rem; font-weight: bold; line-height: 1.15; }
.arc-stats .is-new dd { color: #c9302c; }
.arc-panel-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
/* Signing the leaderboard: shown in the panel when a score makes the top ten.
   A label, then the name box and Save button side by side, then a hint (arc-entry-hint) and
   a line for messages (arc-entry-note: is-error in red, is-good once the score is saved). */
.arc-entry { margin: 0 0 0.8rem; padding: 0.65rem 0.8rem 0.7rem; background: #f3ecfa; border: 2px solid var(--arc-deep); border-radius: 12px; }
.arc-entry[hidden] { display: none; }
.arc-entry label { display: block; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 0.92rem; font-weight: bold; line-height: 1.35; margin: 0 0 0.5rem; }
.arc-entry label[hidden] { display: none; }
.arc-entry-row { display: flex; justify-content: center; align-items: stretch; gap: 0.5rem; }
.arc-entry-row[hidden] { display: none; }
.arc-entry input {
  flex: 1 1 auto; min-width: 0; width: 100%; max-width: 13rem; padding: 0.35rem 0.6rem; border: 3px solid #000; border-radius: 10px; background: #fff; color: #000;
  font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; font-weight: bold; line-height: 1.2;
}
.arc-entry input::placeholder { color: #8d8496; font-weight: normal; }
.arc-entry input:focus-visible { outline: 3px solid var(--arc-deep); outline-offset: 2px; }
.article .arc-panel .arc-entry-hint { color: var(--arc-mute); font-size: 0.78rem; line-height: 1.35; text-align: center; margin: 0.4rem 0 0; }
.arc-entry-hint[hidden] { display: none; }
.article .arc-panel .arc-entry-note { color: var(--arc-mute); font-size: 0.85rem; line-height: 1.4; text-align: center; margin: 0.4rem 0 0; }
.article .arc-panel .arc-entry-note:empty { display: none; }
.article .arc-panel .arc-entry-note.is-error { color: #c9302c; font-weight: bold; }
.article .arc-panel .arc-entry-note.is-good { color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 0.95rem; font-weight: bold; margin-top: 0; }
/* On a small playfield there isn't room for the tiger and the name box at once: the game
   marks the overlay "is-tight" while that is so, and the tiger steps aside. */
.arc-overlay.is-tight .arc-host { display: none; }

/* Buttons under the playfield */
.arc-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0.85rem 0 0; }
.arc .arc-ctl {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.85rem;
  border: 2px solid var(--arc-deep); border-radius: 999px; background: #fff; color: var(--arc-deep);
  font-family: Arial, Helvetica, sans-serif; font-size: 0.9rem; font-weight: bold; line-height: 1.2; cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.arc .arc-ctl:hover { background: var(--arc-deep); color: #fff; }
.arc .arc-ctl:disabled { opacity: 0.45; cursor: default; background: #fff; color: var(--arc-deep); }
.arc .arc-ctl[hidden] { display: none; }
.article .arc-noscript { background: #fff; border: 2px solid var(--arc-deep); border-radius: 10px; padding: 0.8rem 1rem; margin: 1rem 0 0; }

/* Full screen: the game fills the screen on a black background. Browsers that can't
   do real full screen (Safari on iPhone) get the same layout laid over the page: "is-max".
   The three versions are written out separately on purpose: a browser that doesn't know
   one of the ":fullscreen" names would otherwise skip the whole rule. */
.arc-game.is-max {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: 0.5rem; background: #000;
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 3000;
}
.arc-game:fullscreen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: 0.5rem; background: #000;
}
.arc-game:-webkit-full-screen {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin: 0; padding: 0.5rem; background: #000;
}
.arc-game.is-max .arc-screen { width: min(100%, max(15rem, calc((100vh - 5rem) * 0.8))); width: min(100%, max(15rem, calc((100dvh - 5rem) * 0.8))); }
.arc-game:fullscreen .arc-screen { width: min(100%, max(15rem, calc((100vh - 5rem) * 0.8))); }
.arc-game:-webkit-full-screen .arc-screen { width: min(100%, max(15rem, calc((100vh - 5rem) * 0.8))); }
body.arc-lock { overflow: hidden; }

/* ---------- Game page: the leaderboard ---------- */
/* Ten rows in a card: 1 to 5 down the left, 6 to 10 down the right (one column on phones).
   drum-break.js writes the rows. A row is: arc-board-rank, then arc-board-who (the screen
   name, arc-board-name, with the stage reached under it, arc-board-stage), then
   arc-board-score. "is-empty" is a place nobody has taken yet; "is-you" is the score the
   visitor just saved. A name too long for its row is cut short with "...". */
.arc-board {
  background: rgba(255, 255, 255, 0.82); border: 2px solid var(--arc-line); border-radius: 10px;
  padding: 0.5rem 1.1rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.arc-board-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-rows: repeat(5, auto); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 2.2rem;
}
.arc-board-list:empty { display: none; }
.arc-board-row {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.5rem 0.4rem; border-bottom: 1px dashed rgba(88, 44, 126, 0.35);
  color: #000; font-family: Arial, Helvetica, sans-serif; line-height: 1.2;
}
.arc-board-row:nth-child(5n) { border-bottom: 0; }
.arc-board-rank {
  flex: none; display: flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: var(--arc-deep); color: #fff; font-size: 0.9rem; font-weight: bold;
}
.arc-board-row:nth-child(1) .arc-board-rank { background: var(--arc-orange); color: #000; }
.arc-board-row:nth-child(2) .arc-board-rank { background: var(--arc-yellow); color: #000; }
.arc-board-row:nth-child(3) .arc-board-rank { background: var(--arc-blue); color: #000; }
.arc-board-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.arc-board-name { font-size: 1.08rem; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arc-board-stage { color: var(--arc-mute); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.74rem; white-space: nowrap; }
.arc-board-score { flex: none; margin-left: auto; font-size: 1.15rem; font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; }
.arc-board-row.is-empty { color: rgba(69, 61, 77, 0.55); }
.arc-board-row.is-empty .arc-board-rank { background: rgba(88, 44, 126, 0.3); color: #fff; }
.arc-board-row.is-you { background: #fff1cf; border-radius: 8px; border-bottom-color: transparent; box-shadow: 0 0 0 2px var(--arc-orange); }
.article .arc-board-note { color: var(--arc-mute); font-size: 0.95rem; text-align: center; margin: 0.6rem 0; }
.arc-board-note[hidden] { display: none; }

/* ---------- Game page: how to play ---------- */
.arc-keys { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.arc-keys li {
  background: rgba(255, 255, 255, 0.82); border: 2px solid var(--arc-line); border-radius: 10px;
  padding: 0.8rem 1rem 0.9rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  color: var(--arc-mute); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.92rem; line-height: 1.6;
}
.arc-keys strong { display: block; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 1.1rem; margin-bottom: 0.2rem; }
.article .arc-keys + p { margin-top: 1.1rem; }
.arc kbd {
  display: inline-block; min-width: 1.7em; padding: 0.05em 0.4em; border: 2px solid #000; border-bottom-width: 4px; border-radius: 6px;
  background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 0.85em; font-weight: bold; line-height: 1.4; text-align: center;
}
.arc-legend { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.2rem; }
.arc-legend li { display: flex; align-items: center; gap: 0.75rem; color: var(--arc-mute); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 0.92rem; line-height: 1.45; }
.arc-legend strong { color: #000; font-family: Arial, Helvetica, sans-serif; font-size: 1rem; }
.arc-legend canvas { flex: none; display: block; width: 2.6rem; height: 2.6rem; }
.arc-legend canvas[data-block] { width: 3.9rem; height: 2.1rem; }
.arc-legend .arc-legend-pic { flex: none; display: flex; justify-content: center; width: 3.9rem; }
.article .arc-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.6rem 0 0; }

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .arc-hero { grid-template-columns: 1fr; }
  .arc .arc-hero-tiger { max-width: 8.5rem; }
  .arc-cabinet { grid-template-columns: 1fr; }
  .arc-cabinet-pic { max-width: 15rem; margin: 0 auto; }
  .arc-cabinet-logo { margin: 0 auto; }
  .arc-cabinet-play .arc-btn { flex: 1 1 100%; }
  .arc-keys, .arc-legend { grid-template-columns: 1fr; }
  .arc-board { padding: 0.4rem 0.8rem; }
  .arc-board-list { grid-template-rows: none; grid-auto-flow: row; }
  .arc-board-row:nth-child(5n) { border-bottom: 1px dashed rgba(88, 44, 126, 0.35); }
  .arc-board-row:last-child { border-bottom: 0; }
  .arc-entry { padding: 0.5rem 0.6rem 0.6rem; margin-bottom: 0.6rem; }
  .arc-entry label { font-size: 0.86rem; margin-bottom: 0.4rem; }
  .arc-entry input { font-size: 1rem; padding: 0.3rem 0.5rem; }
  .arc .arc-entry .arc-btn { padding: 0.45rem 0.9rem; }
  .arc-screen { border-width: 5px; border-radius: 18px; }
  /* the pop-up panel has to fit inside a small playfield */
  .arc-overlay { padding: 3%; }
  .arc-panel { padding: 0.6rem 0.8rem 0.8rem; border-width: 3px; border-radius: 15px; }
  .arc-host { margin-bottom: 0.3rem; }
  .arc .arc-tiger { height: 4.4rem; }
  .arc-bubble { font-size: 0.9rem; padding: 0.6em 0.75em; border-width: 2px; }
  .arc-bubble::after { border-width: 2px; right: -0.55em; }
  .arc-logo { width: min(62%, 12rem); margin: 0 auto 0.35rem; }
  .article .arc-panel .arc-heading { font-size: 1.45rem; margin: 0.2rem 0 0.4rem; }
  .article .arc-panel .arc-panel-text { font-size: 0.88rem; margin-bottom: 0.55rem; }
  .arc-stats { gap: 1.1rem; margin: 0 0 0.6rem; }
  .arc-stats dd { font-size: 1.25rem; }
  .arc .arc-panel .arc-btn { padding: 0.55rem 1.1rem; }
  .arc-links .arc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .arc-sign::before, .arc-sign::after { animation: none; }
  .arc-sign::after { opacity: 0.45; }
  .arc-cabinet:hover { transform: none; }
  .arc-panel, .arc-overlay[data-mood="happy"] .arc-tiger { animation: none; }
}
