/* Bismillah
   CUBENITY — the visual system from CLAUDE.md, worn by an older game.

   The tokens and components below are copied from the system so this game sits
   beside the others without looking adopted. What is NOT copied is the rule
   that a 3D world must be hand-drawn wireframe with no library: this game was
   built on Three.js long before that rule existed, and rewriting its renderer
   would be rebuilding the game rather than dressing it. The look is shared;
   the engine stays as it was. */

/* ============================================================
   The face. Atkinson Hyperlegible, carried in this folder so the
   game is complete on its own. Licence in assets/font/OFL.txt.
   ============================================================ */
@font-face{
  font-family:'YD Text'; font-weight:400; font-display:swap;
  src:url('assets/font/yd-text-400-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,
    U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;
}
@font-face{
  font-family:'YD Text'; font-weight:400; font-display:swap;
  src:url('assets/font/yd-text-400-latinext.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,
    U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:'YD Text'; font-weight:700; font-display:swap;
  src:url('assets/font/yd-text-700-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,
    U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215;
}
@font-face{
  font-family:'YD Text'; font-weight:700; font-display:swap;
  src:url('assets/font/yd-text-700-latinext.woff2') format('woff2');
  unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,
    U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root{
  --yd-font:'YD Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --yd-r-sm:10px; --yd-r-md:14px; --yd-r-lg:20px; --yd-r-pill:999px;
  --yd-gap:14px;  --yd-pad:20px;
  --yd-t:.16s cubic-bezier(.4,0,.2,1);

  --yd-aspect:16/9;
  --yd-hud:16px;
  --yd-veil:76%;
}

:root{ --yd-logo-filter:none; }
:root[data-theme="light"]{ --yd-logo-filter:invert(1); }

:root, :root[data-theme="dark"]{
  --yd-bg:#0E0E0F; --yd-surface:#161618; --yd-surface-2:#1D1D20;
  --yd-border:#2A2A2E; --yd-border-hi:#3A3A40;
  --yd-text:#EDEBE8; --yd-text-dim:#97938D; --yd-text-faint:#5E5B57;
  --yd-accent:#D8B56B; --yd-accent-hi:#E8C983; --yd-accent-lo:#9C7C33;
  --yd-on-accent:#17140C;
  --yd-lift:0 5px 0 var(--yd-accent-lo), 0 12px 20px rgba(0,0,0,.50);
  --yd-lift-a:0 1px 0 var(--yd-accent-lo), 0 4px 10px rgba(0,0,0,.45);
  --yd-card:0 1px 0 rgba(255,255,255,.03) inset;
  --yd-ring:0 0 0 3px rgba(216,181,107,.28);
}

:root[data-theme="light"]{
  --yd-bg:#F5F3EF; --yd-surface:#FFFFFF; --yd-surface-2:#EFECE5;
  --yd-border:#DFDAD1; --yd-border-hi:#C9C2B6;
  --yd-text:#1A1917; --yd-text-dim:#6C6862; --yd-text-faint:#9A958D;
  --yd-accent:#CBA65A; --yd-accent-hi:#DEBB72; --yd-accent-lo:#8E6C26;
  --yd-on-accent:#1A1408;
  --yd-lift:0 5px 0 var(--yd-accent-lo), 0 10px 18px rgba(80,62,20,.22);
  --yd-lift-a:0 1px 0 var(--yd-accent-lo), 0 4px 8px rgba(80,62,20,.18);
  --yd-card:0 1px 2px rgba(60,50,30,.05);
  --yd-ring:0 0 0 3px rgba(203,166,90,.30);
}

/* ============================================================
   SHELL AND ARENA
   ============================================================ */
*{ box-sizing:border-box; }
html,body{ margin:0; height:100%; }
body{
  background:var(--yd-bg); color:var(--yd-text);
  font-family:var(--yd-font); font-weight:400; font-size:14px; line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow:hidden; overscroll-behavior:none;
  transition:background var(--yd-t), color var(--yd-t);
}
h1,h2,h3{ margin:0; font-weight:500; letter-spacing:-.01em; }
p{ margin:0; }

.yd-shell{ height:100%; display:grid; place-items:center; padding:clamp(0px,1.5vmin,20px); }

.yd-arena{
  position:relative;
  aspect-ratio:var(--yd-aspect);
  width:100%; height:auto; max-width:100%; max-height:100%;
  border-radius:var(--yd-r-lg);
  background:var(--yd-surface);
  border:1px solid var(--yd-border);
  box-shadow:var(--yd-card);
  overflow:hidden; touch-action:none; user-select:none;
}
.yd-arena > canvas{ display:block; width:100%; height:100%; }
.yd-nocursor{ cursor:none; }

/* Being eaten.

   The red sits over the world and under the crosshair and the HUD, so the
   numbers a player is checking never go red with it. It is heaviest at the
   edges, where movement is noticed without being looked at, and clear in the
   middle, where the player is trying to aim their way out of it.

   No transition: yd-hurt.js writes the opacity every frame, and a transition
   would be a second opinion about where it should be. */
.yd-bite{
  position:absolute; inset:0; z-index:1; pointer-events:none; opacity:0;
  background:radial-gradient(ellipse 76% 66% at 50% 50%,
    rgba(190,24,24,0) 34%, rgba(205,30,30,.30) 66%, rgba(168,14,14,.80) 100%);
}

/* Daylight needs a different red. The night one is a glow, and a glow over a
   white street turns the whole frame pink and takes the health readout with
   it. In daylight it darkens the edges instead: deeper red, held further out,
   so the middle of the street stays as clear as it was. */
:root[data-theme="light"] .yd-bite{
  background:radial-gradient(ellipse 86% 78% at 50% 50%,
    rgba(140,0,0,0) 46%, rgba(145,8,8,.34) 74%, rgba(100,0,0,.84) 100%);
}

/* the sight takes the hit too, in the one place the player is already
   looking. It grows and goes red, because growing is still growing to
   somebody who cannot tell the red from the gold. */
@keyframes yd-bit{
  0%   { transform:translate(-50%,-50%) scale(1);    color:var(--yd-text); }
  14%  { transform:translate(-50%,-50%) scale(1.7);  color:#FF5A4A; }
  100% { transform:translate(-50%,-50%) scale(1);    color:var(--yd-text); }
}
.yd-cross.is-bit{ animation:yd-bit .34s ease-out; }
@media (prefers-reduced-motion: reduce){
  .yd-cross.is-bit{ animation-name:none; }
}

/* ============================================================
   HUD
   ============================================================ */
.yd-hud{ position:absolute; inset:0; pointer-events:none; z-index:3; }
.yd-hud > *{ position:absolute; display:flex; align-items:flex-start; gap:18px; }
.yd-hud > * > *{ pointer-events:auto; }
.yd-hud-tl{ top:var(--yd-hud); left:var(--yd-hud); }
.yd-hud-tc{ top:var(--yd-hud); left:50%; transform:translateX(-50%); }
.yd-hud-tr{ top:var(--yd-hud); right:var(--yd-hud); gap:8px; align-items:center; }
.yd-hud-bc{ bottom:var(--yd-hud); left:50%; transform:translateX(-50%); align-items:flex-end; }

.yd-read{ display:flex; flex-direction:column; gap:1px; }
.yd-read span{ font-size:9.5px; font-weight:500; letter-spacing:.16em;
  text-transform:uppercase; color:var(--yd-text-faint); }
.yd-read b{ font-weight:500; font-size:clamp(17px,2.1vw,25px); line-height:1.05;
  color:var(--yd-text); font-variant-numeric:tabular-nums; }

.yd-hud-tc .yd-name{ font-size:12px; font-weight:400; letter-spacing:.06em;
  color:var(--yd-text-faint); white-space:nowrap; }

.yd-hbtn{ display:grid; place-items:center; width:38px; height:38px; padding:0;
  border-radius:var(--yd-r-sm); cursor:pointer; transition:var(--yd-t);
  color:var(--yd-text-dim);
  background:color-mix(in srgb, var(--yd-bg) 72%, transparent);
  border:1px solid var(--yd-border); backdrop-filter:blur(6px); }
.yd-hbtn:hover{ color:var(--yd-accent); border-color:var(--yd-accent); }

.yd-switch{ display:inline-flex; align-items:center; gap:2px; flex:none;
  padding:3px; border-radius:var(--yd-r-pill);
  background:var(--yd-surface-2); border:1px solid var(--yd-border); }
.yd-switch button{ display:grid; place-items:center; width:34px; height:28px; padding:0;
  border:0; border-radius:var(--yd-r-pill); background:transparent;
  color:var(--yd-text-faint); cursor:pointer; transition:var(--yd-t); }
.yd-switch button:hover{ color:var(--yd-text-dim); }
.yd-switch button[aria-pressed="true"]{ background:var(--yd-accent); color:var(--yd-on-accent); }

/* the one meter that matters, bottom centre */
.yd-ammo{ display:flex; align-items:flex-end; gap:14px; }
.yd-ammo-read b{ font-size:clamp(15px,1.7vw,20px); }
.yd-meter{ width:min(340px,42vw); height:9px; margin-bottom:5px;
  border-radius:var(--yd-r-pill);
  background:var(--yd-surface-2); border:1px solid var(--yd-border); overflow:hidden; }
.yd-meter i{ display:block; height:100%; width:100%;
  background:linear-gradient(180deg,var(--yd-accent-hi),var(--yd-accent));
  transition:width .12s linear; }
.yd-reload{ font-size:11px; font-weight:500; letter-spacing:.14em;
  text-transform:uppercase; color:var(--yd-accent); margin-bottom:6px;
  white-space:nowrap; }
.yd-reload[hidden]{ display:none; }

/* the sight. Tinted from the script through currentColor. */
.yd-cross{ position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  color:var(--yd-text); pointer-events:none; z-index:2; opacity:.85;
  display:grid; place-items:center; }

/* damage numbers the script drops on the arena */
.yd-hit{ position:absolute; z-index:2; pointer-events:none;
  transform:translate(-50%,-50%);
  font-size:15px; font-weight:700; font-variant-numeric:tabular-nums;
  color:var(--yd-accent-hi); text-shadow:0 0 8px var(--yd-bg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.yd-btn{
  font-family:inherit; font-size:14px; font-weight:500; line-height:1;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:13px 22px; border:0; border-radius:var(--yd-r-md);
  color:var(--yd-on-accent);
  background:linear-gradient(180deg, var(--yd-accent-hi), var(--yd-accent));
  box-shadow:var(--yd-lift); cursor:pointer; min-height:44px;
  transition:transform var(--yd-t), box-shadow var(--yd-t), filter var(--yd-t);
}
.yd-btn:hover{ filter:brightness(1.05); }
.yd-btn:active{ transform:translateY(4px); box-shadow:var(--yd-lift-a); }
.yd-btn:focus-visible{ outline:0; box-shadow:var(--yd-lift), var(--yd-ring); }
.yd-btn[disabled]{ opacity:.38; pointer-events:none; }
.yd-btn.wide{ width:100%; }

.yd-btn2{
  font-family:inherit; font-size:14px; font-weight:400; line-height:1;
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  padding:13px 20px; border-radius:var(--yd-r-md); min-height:44px;
  color:var(--yd-text); background:var(--yd-bg);
  border:1px solid var(--yd-border-hi); cursor:pointer; transition:var(--yd-t);
}
.yd-btn2:hover{ background:var(--yd-surface-2); border-color:var(--yd-accent); color:var(--yd-accent); }
.yd-btn2:active{ transform:translateY(1px); }
.yd-btn2[disabled]{ opacity:.38; pointer-events:none; }
.yd-btn2.wide{ width:100%; }
.yd-btn2.sm{ padding:10px 14px; font-size:13px; min-height:38px; }

/* the quiet one: a word, not a box. Without this it falls back to the
   browser default and two grey lozenges appear on the card. */
.yd-btn3{ font-family:inherit; font-size:13.5px; font-weight:400; min-height:38px;
  padding:10px 8px; border:0; background:transparent;
  color:var(--yd-text-dim); cursor:pointer; transition:var(--yd-t); }
.yd-btn3:hover{ color:var(--yd-accent); }
.yd-btn3:focus-visible{ outline:0; box-shadow:var(--yd-ring); border-radius:var(--yd-r-sm); }

/* ============================================================
   OVERLAYS — the script shows them by adding .visible
   ============================================================ */
.yd-veil{ position:absolute; inset:0; display:grid; place-items:center; padding:20px;
  background:color-mix(in srgb, var(--yd-bg) var(--yd-veil), transparent);
  backdrop-filter:blur(4px); z-index:5;
  visibility:hidden; opacity:0; transition:opacity var(--yd-t); }
.yd-veil.visible{ visibility:visible; opacity:1; }
/* swapping one card for another is instant; the fade is only for arriving
   and leaving, or the two cards are seen stacked for a sixth of a second */
.yd-veil.yd-instant{ transition:none; }

.yd-over{
  width:min(420px,100%); max-height:100%; overflow:auto;
  padding:clamp(20px,3.4vmin,30px);
  border-radius:var(--yd-r-lg); text-align:center;
  background:var(--yd-surface); border:1px solid var(--yd-border);
  display:flex; flex-direction:column; align-items:center; gap:12px;
}
/* Tidak ada satu kata pun yang ditinggal sendirian di baris terakhir.
   Peramban memutus baris sampai habis lalu menaruh sisanya di bawah, dan
   sisanya sering cuma kata "for." Itu kelihatan seperti kalimat yang
   terpotong, bukan kalimat yang selesai. balance membagi rata antar baris,
   jadi dua baris jadi dua baris yang sama panjang. */
.yd-over h1{ font-size:clamp(20px,3.4vmin,26px); letter-spacing:.04em;
  text-wrap:balance; }
.yd-over p{ color:var(--yd-text-dim); font-weight:400; font-size:13.5px;
  max-width:36ch; text-wrap:balance; }
.yd-over .yd-row{ display:flex; gap:10px; width:100%; }
.yd-over .yd-row > *{ flex:1; }
.yd-scores{ font-size:13px; color:var(--yd-text); font-variant-numeric:tabular-nums; }

/* The numbers people actually came back for. Three readouts rather than one
   run-on line, and big enough to be read from where the player is sitting. */
.yd-best{ display:flex; gap:clamp(18px,5vmin,34px); justify-content:center;
  flex-wrap:wrap; padding:4px 0 2px; }
.yd-best .yd-read{ align-items:center; gap:2px; }
.yd-best .yd-read span{ font-size:10px; color:var(--yd-text-dim); }
.yd-best .yd-read b{ font-size:clamp(26px,5vmin,34px); line-height:1;
  color:var(--yd-accent); font-weight:500; }
.yd-best.yd-dim{ padding-top:0; }
.yd-best.yd-dim .yd-read b{ color:var(--yd-text); font-weight:400;
  font-size:clamp(17px,2.6vmin,21px); }
.yd-scores.yd-dim{ color:var(--yd-text-faint); font-size:12px; }
.yd-by{ font-size:11px; font-weight:400; color:var(--yd-text-faint); }

/* The mark is the door back to the studio. A thing you press, with a target
   big enough to press, rather than a line of underlined text. */
/* the build, said once and quietly. Somebody reporting a fault needs it;
   everybody else should be able to look straight past it. */
.yd-ver{ font-size:10px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--yd-text-faint); margin-top:-4px; }

/* Keep, Like, Share, Support.

   The symbol on its own. Four framed buttons in a row looked like a toolbar
   and took the eye away from Play, which is the only thing the front of a game
   needs to be saying. Bare marks sit under everything else without competing,
   and the word arrives on the one being pointed at.

   The two that hold a state fill in solid when they are on, so the change is
   a change of shape and not only a change of colour. */
.yd-acts{ display:flex; gap:2px; justify-content:center; flex-wrap:wrap;
  /* the word above it is a floating label and is allowed to cover what is
     behind it, which is what a label like that is for. It only has to LOOK
     like it floats, and that is the shadow below, not a margin here. */
  /* ruang di BAWAH untuk katanya. Di atas dia menutup How to play dan
     Credits, jadi dia pindah ke bawah, dan ruangnya ikut pindah. */
  margin:-4px 0 15px; }
.yd-act{ position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; padding:0; border:0; background:none;
  border-radius:var(--yd-r-md); color:var(--yd-text-faint);
  cursor:pointer; text-decoration:none; transition:var(--yd-t); }
.yd-act:hover{ color:var(--yd-accent); }
.yd-act.is-on{ color:var(--yd-accent); }
.yd-act:focus-visible{ outline:0; box-shadow:var(--yd-ring); color:var(--yd-accent); }

/* The one mark that is somebody else's. It keeps its own shape and its own
   yellow, so it is the only colour in the row and the easiest thing to find,
   which is the whole job of a support button. The others answer a hover by
   turning gold; this one cannot, so it answers by growing a little. */
.yd-act-give{ width:auto; height:auto; padding:0; }

/* The support sticker. Yandi drew it; this only carries it.

   No plate, no border, no button. It is a die-cut sticker with its own white
   edge and its own dark outline, so it sits on the black street and on the
   white one without anything underneath it. That is why there is nothing
   here about themes: it does not need to know.

   1670x760 and 218 KB as drawn. Down to 560 wide and 16 colours, which is
   all flat artwork like this has, so nothing is lost and it costs 20 KB.

   It says "thanks for your support", never "buy me a coffee": that phrase
   would tie the money to coffee, and that is not what it is for. */
.yd-bmc{
  --w:142px;
  display:block; width:var(--w); height:auto;
  animation:yd-bmc-sway 5.5s ease-in-out infinite;
  /* porosnya di ujung tulisan, bukan di tengah: yang terangkat ujung
     kopinya, dan ujung tulisannya yang diam */
  transform-origin:12% 82%;
  transition:var(--yd-t); }

/* The cup end lifts, like a glass raised an inch.

   A positive rotate turns clockwise, which drops whatever is on the right,
   and the cup is on the right. So the angle is negative. Slow enough to be
   felt rather than watched. */
@keyframes yd-bmc-sway{
  0%, 100%{ transform:rotate(0deg); }
  50%     { transform:rotate(-2.4deg); } }

@media (prefers-reduced-motion:reduce){
  .yd-bmc{ animation:none; } }

.yd-act:hover .yd-bmc,
.yd-act:focus-visible .yd-bmc{ transform:scale(1.07); }

/* the heart carries its count beside it, so that mark alone is wider than
   the rest. display:flex beats the hidden attribute, so it needs saying. */
.yd-act.has-n{ width:auto; min-width:38px; padding:0 9px; gap:5px; }
.yd-act-n{ font-size:12px; font-weight:400; letter-spacing:.01em;
  font-variant-numeric:tabular-nums; }
.yd-act-n[hidden]{ display:none; }

/* the word, kept back until it is wanted. BELOW the mark, not above it.

   It is matched as the span child, so NOTHING ELSE inside a mark may be a
   span. The crop around the donation logo was one, and it was duly hidden
   like a label and the whole mark vanished. It is an <i> now. */
.yd-act > span{
  position:absolute; top:calc(100% + 1px); left:50%;
  transform:translateX(-50%); white-space:nowrap; pointer-events:none;
  font-size:11px; letter-spacing:.03em; line-height:1;
  padding:5px 9px; border-radius:var(--yd-r-pill);
  color:var(--yd-text); background:var(--yd-surface-2);
  border:1px solid var(--yd-border);
  box-shadow:0 4px 14px rgba(0,0,0,.45);
  opacity:0; visibility:hidden;
  /* visibility flips at the END of a transition, so fading it in the same
     breath as the opacity hides the word for the first tenth of a second.
     Delay the hide instead, and let the show happen at once. */
  transition:opacity .13s ease, visibility 0s linear .13s; }
.yd-act:hover > span,
.yd-act:focus-visible > span,
.yd-act.is-said > span{ opacity:1; visibility:visible; transition:opacity .13s ease, visibility 0s; }

/* the small one on the menu: the mark, the credit, and the way out, together */
.yd-home{ display:inline-flex; align-items:center; gap:10px;
  padding:7px 14px 7px 10px; border-radius:var(--yd-r-pill);
  border:1px solid transparent; text-decoration:none; cursor:pointer;
  transition:var(--yd-t); }
/* The mark sits in a box taller than its own ink, so centring the two boxes
   leaves the words looking low. The line height is matched to the mark and
   both are centred on it instead. */
.yd-home img{ display:block; width:92px; height:46px; filter:var(--yd-logo-filter); opacity:.78; }
.yd-home span{ font-size:13px; line-height:46px; color:var(--yd-text-dim); white-space:nowrap; }
.yd-home span b{ font-weight:500; color:var(--yd-text); }
.yd-home:hover{ border-color:var(--yd-border-hi); background:var(--yd-bg); }
.yd-home:hover img{ opacity:1; }
.yd-home:hover span b{ color:var(--yd-accent); }
.yd-home:focus-visible{ outline:0; box-shadow:var(--yd-ring); }

.yd-mark{ display:flex; flex-direction:column; align-items:center; gap:7px;
  padding:16px 22px; border-radius:var(--yd-r-lg);
  background:var(--yd-bg); border:1px solid var(--yd-border);
  text-decoration:none; cursor:pointer; transition:var(--yd-t); }
.yd-mark img{ display:block; width:176px; height:88px; filter:var(--yd-logo-filter); }
.yd-mark span{ font-size:11.5px; letter-spacing:.08em; color:var(--yd-text-faint); }
.yd-mark:hover{ border-color:var(--yd-accent); }
.yd-mark:hover span{ color:var(--yd-accent); }
.yd-mark:focus-visible{ outline:0; box-shadow:var(--yd-ring); }

/* two quiet words under the buttons, not two more buttons */
.yd-links{ display:flex; align-items:center; gap:4px; }
.yd-links .yd-btn3{ min-height:34px; padding:8px 6px; }
.yd-sep{ color:var(--yd-text-faint); font-size:12px; }

/* one setting to a line: what it is on the left, the control on the right */
.yd-set{ display:flex; align-items:center; justify-content:space-between;
  gap:16px; width:100%; padding:9px 0; border-bottom:1px solid var(--yd-border); }
.yd-set:last-of-type{ border-bottom:0; }
.yd-set-lab{ font-size:11px; font-weight:500; letter-spacing:.16em;
  text-transform:uppercase; color:var(--yd-text-faint); }
.yd-set .yd-btn2{ min-width:140px; }
.yd-by b{ font-weight:500; color:var(--yd-text-dim); }

.yd-keys{ display:flex; gap:10px 14px; flex-wrap:wrap; justify-content:center;
  font-size:11px; color:var(--yd-text-faint); }
/* display:flex would otherwise beat the hidden attribute outright */
.yd-keys[hidden]{ display:none; }
.yd-keys kbd{ font:500 10px/1 var(--yd-font); padding:4px 6px; border-radius:6px;
  background:var(--yd-surface-2); border:1px solid var(--yd-border);
  color:var(--yd-text-dim); margin-right:2px; }

/* ============================================================
   TOO SMALL TO PLAY
   ============================================================ */
.yd-small{ position:absolute; inset:0; display:none; place-items:center; z-index:9;
  padding:24px; text-align:center; background:var(--yd-bg); color:var(--yd-text-dim); }
.yd-small p{ max-width:28ch; font-weight:400; }

/* ============================================================
   A SHORT ARENA
   ============================================================
   The arena keeps its aspect ratio, so a narrow tall window gives a wide
   short arena, and the menu card no longer fits inside it. A media query
   cannot see that: the window is tall, it is the arena that is not.
   yd-ui.js measures the arena and sets this class.

   Everything gets a little smaller rather than anything being taken away.
   A front page the player has to scroll is not a front page. */
.yd-arena.is-tight .yd-over{ padding:10px 16px; gap:5px; }
.yd-arena.is-tight .yd-over h1{ font-size:19px; }
.yd-arena.is-tight .yd-over p{ font-size:12.5px; }
.yd-arena.is-tight .yd-best{ padding:0; gap:clamp(16px,4vmin,26px); }
.yd-arena.is-tight .yd-best .yd-read b{ font-size:22px; }
.yd-arena.is-tight .yd-btn{ padding:9px 20px; font-size:13px; }
.yd-arena.is-tight .yd-btn2{ padding:9px 18px; min-height:34px; font-size:13px; }
.yd-arena.is-tight .yd-btn3{ min-height:30px; font-size:12.5px; }
.yd-arena.is-tight .yd-acts{ margin:-14px 0 2px; }
.yd-arena.is-tight .yd-act{ height:34px; }
.yd-arena.is-tight .yd-act-give{ height:auto; }
/* a short arena has less room for the words, but the crop means it loses
   height rather than picture */
.yd-arena.is-tight .yd-bmc{ --w:112px; }
.yd-arena.is-tight .yd-home{ padding:3px 12px 3px 8px; gap:8px; }
.yd-arena.is-tight .yd-home img{ width:62px; height:31px; }
.yd-arena.is-tight .yd-ver{ font-size:9px; margin-top:-4px; }
.yd-arena.is-tight .yd-keys{ gap:5px 10px; font-size:11px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:860px){
  :root{ --yd-hud:12px; }
  .yd-read b{ font-size:19px; }
  .yd-hud-tc{ display:none; }
}
@media (max-width:720px), (max-height:460px){
  .yd-small{ display:grid; }
}
/* The interface may calm down. The game itself must never be stopped, or the
   player sees a frozen screen and calls it a fault. */
@media (prefers-reduced-motion:reduce){
  .yd-hud *, .yd-veil, .yd-over, .yd-hbtn, .yd-btn, .yd-btn2, .yd-switch button{
    transition:none !important; animation:none !important;
  }
}
