@import url('./fonts.css');
:root {
  --green: #23914a;
  --yellow: #facc15;
  --orange: #ff7a00;
  --purple: #7b3cff;
  --pink: #ff3d7f;
  --panel: rgba(41, 39, 44, 0.76);
  --line: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #f4dcb4;
  color: var(--text);
  font-family: 'Baloo 2', system-ui, -apple-system, 'Segoe UI', sans-serif;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
.top-left {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  left: max(14px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 10px;
}
.score { display: flex; flex-direction: column; line-height: 0.9; }
.score span {
  font-size: 42px; font-weight: 800;
  text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 16px rgba(0,0,0,.35);
}
.score small { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px #000; padding-left: 3px; }

.board-panel {
  width: 200px;
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14px;
}
.board-head { display: flex; justify-content: space-between; font-weight: 800; letter-spacing: .5px; }
.board-head em { font-style: normal; color: #4ade80; font-weight: 700; }
#board { list-style: none; margin: 4px 0 0; padding: 0; }
#board li { display: flex; gap: 6px; line-height: 1.5; }
#board li b { width: 14px; color: var(--yellow); }
#board li span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#board li em { font-style: normal; color: var(--muted); }
#board li.me span { color: var(--yellow); }
#hof { margin-top: 4px; font-size: 12px; color: var(--muted); }
#hof:empty { display: none; }

#minimap {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  width: 150px; height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

#arrowBox {
  position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 8px;
  background: var(--panel);
  border: 1px solid rgba(255,122,0,.6);
  border-radius: 999px;
}
#arrow {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff; font-size: 20px; line-height: 1;
  transition: transform .08s linear;
}
.dest { display: flex; flex-direction: column; line-height: 1.05; }
.dest span { font-weight: 800; font-size: 17px; }
.dest em { font-style: normal; color: var(--muted); font-size: 14px; }

#bubble {
  position: absolute; top: calc(max(14px, env(safe-area-inset-top)) + 62px); left: 50%;
  transform: translateX(-50%);
  max-width: min(420px, 80vw);
  padding: 8px 16px;
  background: #fff; color: #1c1917;
  border-radius: 16px;
  font-weight: 700; font-size: 16px; text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

#hint {
  position: absolute; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 8px); left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  font-weight: 700; font-size: 16px;
  width: max-content; max-width: calc(100vw - 32px); text-align: center;
}

.speedo {
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  right: calc(max(16px, env(safe-area-inset-right)) + 56px);
  display: flex; align-items: baseline; gap: 4px;
  text-shadow: 0 2px 0 rgba(0,0,0,.45);
}
.speedo span { font-size: 34px; font-weight: 800; }
.speedo small { font-size: 13px; }

.icon-btn {
  pointer-events: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
#muteBtn { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); right: max(16px, env(safe-area-inset-right)); }

.adv-link {
  pointer-events: auto;
  position: absolute;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  padding: 6px 14px;
  background: var(--yellow); color: #1c1917;
  border-radius: 999px;
  font-weight: 800; font-size: 14px; text-decoration: none;
}

#toast {
  position: fixed; left: 50%; top: 30%;
  transform: translate(-50%, 10px) scale(.96);
  padding: 10px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 22px; font-weight: 800;
  width: max-content; max-width: calc(100vw - 32px);
  text-align: center; line-height: 1.2;
  opacity: 0; transition: opacity .18s, transform .18s;
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#toast.money { background: #15803d; border-color: #4ade80; }
#toast.bump { background: #b91c1c; border-color: #fca5a5; }

#net {
  position: fixed; top: 40%; left: 50%; transform: translateX(-50%);
  padding: 10px 20px; background: var(--panel); border-radius: 12px; font-weight: 800;
}

/* ---------- touch ---------- */
#touch { position: fixed; inset: auto 0 0 0; pointer-events: none; }
.pad {
  pointer-events: auto;   /* gaps between buttons still count, so thumbs can slide across */
  touch-action: none;
  -webkit-touch-callout: none;
  position: absolute;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 44px);
  display: flex; gap: 12px; align-items: flex-end;
}
.pad.left { left: max(14px, env(safe-area-inset-left)); }
.pad.right { right: max(14px, env(safe-area-inset-right)); }
.pad button {
  pointer-events: auto;
  width: 72px; height: 72px;
  border-radius: 20px;
  border: 2px solid rgba(255,255,255,.35);
  background: rgba(18,16,30,.55);
  color: #fff; font: 800 22px 'Baloo 2', system-ui;
  touch-action: none;
  -webkit-touch-callout: none;
}
.pad button.down { background: rgba(255,255,255,.3); transform: scale(.96); }
.pad .gas { height: 96px; background: rgba(35,145,74,.75); font-size: 16px; }
.pad .brake { background: rgba(185,28,28,.7); font-size: 14px; }
.pad .honk { width: 56px; height: 56px; border-radius: 50%; font-size: 22px; align-self: flex-start; }
@media (pointer: coarse) {
  .speedo { bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 160px); right: max(16px, env(safe-area-inset-right)); }
  #muteBtn { bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 206px); }
  .adv-link { bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 254px); left: auto; right: max(14px, env(safe-area-inset-right)); font-size: 12px; }
  #hint { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 150px); font-size: 14px; }
  #bubble { top: auto; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 196px); }
}
@media (max-width: 640px) {
  .board-panel { width: 150px; font-size: 12px; }
  .score span { font-size: 32px; }
  #minimap { width: 110px; height: 110px; }
  .speedo { bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 120px); right: max(16px, env(safe-area-inset-right)); }
  #muteBtn { bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 166px); }
  .adv-link { bottom: auto; left: auto; right: max(14px, env(safe-area-inset-right)); top: calc(max(12px, env(safe-area-inset-top)) + 214px); font-size: 12px; }
  #arrowBox { top: calc(max(12px, env(safe-area-inset-top)) + 4px); padding: 4px 12px 4px 6px; left: 50%; max-width: 46vw; }
  .dest span { font-size: 13px; }
  #arrow { width: 30px; height: 30px; font-size: 16px; }
  #bubble { font-size: 14px; top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 62px); }
  .pad button { width: 64px; height: 64px; }
  .pad .gas { height: 86px; }
}

/* ---------- start ---------- */
.overlay {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding: 16px;
  background: radial-gradient(ellipse at center, rgba(20,18,30,.25), rgba(20,18,30,.65));
}
.panel {
  width: min(420px, 100%);
  padding: 26px 24px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.brand { font-weight: 800; letter-spacing: 4px; font-size: 13px; }
.brand span { color: var(--pink); }
h1 { margin: 4px 0 0; font-size: 48px; line-height: 1; }
h1 em { font-style: normal; color: var(--yellow); }
h1 .auto { display: inline-block; animation: putter .35s infinite alternate; }
@keyframes putter { to { transform: translateY(-3px) rotate(-3deg); } }
.tag { margin: 10px 0 16px; color: var(--muted); font-size: 17px; line-height: 1.3; }
#nameInput {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.08);
  color: #fff; font: 700 18px 'Baloo 2', system-ui;
  text-align: center;
  outline: none;
  user-select: text; -webkit-user-select: text;
}
#nameInput:focus { border-color: var(--yellow); }
#skins { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.skin {
  width: 38px; height: 38px; border-radius: 12px;
  border: 3px solid transparent;
  background: linear-gradient(var(--roof) 0 38%, var(--body) 38% 100%);
  cursor: pointer;
}
.skin.on { border-color: #fff; transform: scale(1.1); }
.cta {
  width: 100%;
  padding: 14px;
  border: 0; border-radius: 16px;
  background: linear-gradient(180deg, #34c167, var(--green));
  color: #fff; font: 800 24px 'Baloo 2', system-ui;
  cursor: pointer;
  box-shadow: 0 6px 0 #14632f;
}
.cta:active { transform: translateY(3px); box-shadow: 0 3px 0 #14632f; }
.online { margin: 12px 0 0; color: #4ade80; font-weight: 700; font-size: 14px; min-height: 1em; }
.controls {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px;
  margin-top: 10px; color: var(--muted); font-size: 13px;
}
.controls div { display: flex; align-items: center; gap: 4px; }
kbd {
  padding: 1px 7px; border-radius: 6px;
  border: 1px solid var(--line); background: rgba(255,255,255,.08);
  font: 700 12px system-ui;
}
.adv-small { display: inline-block; margin-top: 14px; color: var(--yellow); font-weight: 700; font-size: 14px; text-decoration: none; }
@media (pointer: coarse) { .controls { display: none; } }
@media (pointer: coarse) and (max-width: 640px) {
  #bubble { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 196px); }
}
@media (max-width: 400px) {
  h1 { font-size: 40px; }
  #toast { font-size: 18px; }
}
/* phone held sideways: short screen, so HUD hugs the corners and shrinks */
@media (pointer: coarse) and (max-height: 500px) {
  .board-panel { width: 150px; font-size: 12px; padding: 6px 8px; }
  .score span { font-size: 28px; }
  #minimap { width: 96px; height: 96px; }
  .speedo { top: max(10px, env(safe-area-inset-top)); right: calc(max(14px, env(safe-area-inset-right)) + 106px); }
  .speedo span { font-size: 26px; }
  #muteBtn { top: calc(max(10px, env(safe-area-inset-top)) + 104px); width: 38px; height: 38px; font-size: 15px; }
  .adv-link { display: none; }
  .pad { bottom: max(12px, env(safe-area-inset-bottom)); }
  .pad button { width: 64px; height: 64px; }
  .pad .gas { height: 84px; }
  .pad .honk { width: 48px; height: 48px; }
  #hint { bottom: max(12px, env(safe-area-inset-bottom)); max-width: calc(100vw - 460px); font-size: 12px; }
  #bubble { top: calc(max(10px, env(safe-area-inset-top)) + 50px); bottom: auto; font-size: 13px; max-width: calc(100vw - 360px); }
  #arrowBox { top: max(8px, env(safe-area-inset-top)); }
  #toast { top: 26%; font-size: 17px; }
  .overlay { padding: 8px; }
  .panel { padding: 12px 18px; }
  h1 { font-size: 34px; }
  .tag { margin: 4px 0 8px; font-size: 14px; }
  #skins { margin: 8px 0; }
  .cta { padding: 8px; font-size: 20px; }
  .adv-small { margin-top: 6px; }
}
.touch-help { display: none; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; }
@media (pointer: coarse) { .touch-help { display: block; } }
@media (pointer: coarse) and (max-height: 500px) { .touch-help { display: none; } }
/* speed-bonus clock, VIP ride and streak */
#bonus { font-weight: 800; font-size: 18px; color: #fde047; min-width: 64px; text-align: right; }
#bonus.hurry { color: #fb923c; animation: pulse .5s infinite alternate; }
#bonus.late { color: rgba(255,255,255,.55); font-size: 15px; }
@keyframes pulse { to { transform: scale(1.12); } }
#arrowBox.vip { border-color: #ff9f1c; box-shadow: 0 0 0 2px rgba(255,159,28,.35); }
#arrowBox.vip .dest span::before { content: '⭐ VIP · '; color: #ff9f1c; }
#streak { display: block; margin-top: 6px; font-size: 13px; letter-spacing: .5px; text-transform: none; color: #fdba74; }
#streak:empty { display: none; }
@media (max-width: 640px) { #bonus { font-size: 14px; min-width: 48px; } }

/* Consistent vector controls; text labels remain the accessible names. */
.zuq-icon{width:1.15em;height:1.15em;display:inline-block;vertical-align:-.18em;flex-shrink:0;pointer-events:none}.nav-btn .zuq-icon{width:28px;height:28px}.box-art>.zuq-icon{width:1em;height:1em}

/* Thumb targets fit side by side even on a 320px screen. */
.icon-btn { width: 48px; height: 48px; }
.skin { width: 48px; height: 48px; }
#skins { gap: 6px; }
.adv-link, .adv-small { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.cta:disabled { opacity: .7; cursor: wait; }
#loadStatus, #personalBest { font-size: 14px; margin: 10px 0; }
#loadStatus:empty, #personalBest:empty { display: none; }
.score #rank { font-size: 12px; letter-spacing: 0; text-transform: none; margin-top: 5px; line-height: 1.2; max-width: 190px; }
@media (max-width: 640px), (pointer: coarse) and (max-height: 500px) {
  .pad { gap: 8px; }
  .pad button { width: clamp(48px, 14vw, 64px); height: 64px; }
  .pad.right { display: grid; grid-template-columns: repeat(2, clamp(48px, 14vw, 64px)); grid-template-rows: 48px 86px; gap: 8px; }
  .pad .honk { grid-column: 1; grid-row: 1; width: 48px; height: 48px; justify-self: center; }
  .pad .brake { grid-column: 1; grid-row: 2; align-self: end; }
  .pad .gas { grid-column: 2; grid-row: 2; height: 86px; }
  #muteBtn { width: 48px; height: 48px; }
  .adv-link { top: calc(max(12px, env(safe-area-inset-top)) + 222px); }
}
@media (max-width: 375px) {
  .panel { padding: 20px 12px 16px; }
  #skins { gap: 2px; }
  .skin { flex: 0 0 48px; }
  .board-panel { width: 138px; }
  #arrowBox { top: calc(max(12px, env(safe-area-inset-top)) + 60px); left: 14px; transform: none; max-width: calc(100vw - 144px); gap: 5px; }
}
@media (pointer: coarse) and (max-height: 500px) {
  .panel { max-height: calc(100dvh - 16px); overflow-y: auto; touch-action: pan-y; }
}

@media (max-width: 340px) {
  #skins { display: grid; grid-template-columns: repeat(3, 48px); }
  .panel { max-height: calc(100dvh - 32px); overflow-y: auto; touch-action: pan-y; }
}

/* Input feedback never changes layout or makes disabled controls look actionable. */
button{touch-action:manipulation}
button:disabled{cursor:not-allowed}
button:disabled:hover,button:disabled:active{transform:none!important;filter:none!important}
@media(hover:hover) and (pointer:fine){button:not(:disabled):hover{filter:brightness(1.06)}}
button:not(:disabled):active{filter:brightness(.94)}
button:focus-visible,a:focus-visible{outline-offset:3px}
@media(prefers-reduced-motion:reduce){button,a{transition:none!important;animation:none!important}}

/* The two-row right pad (horn over brake/gas) is ~142px tall: keep the hint and the
   passenger bubble above it on phones held upright, and keep the Advertise chip hidden
   when the phone is sideways (it would sit on the pads). */
@media (pointer: coarse) and (min-height: 501px) {
  #hint { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 204px); }
  #bubble { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 254px); }
}
@media (pointer: coarse) and (max-height: 500px) {
  .adv-link { display: none !important; }
}

/* Room and daily chips share the existing HUD column; no extra scene objects. */
.room-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px; margin-bottom: 5px; font-size: 12px; line-height: 1.2; }
#inviteBtn { pointer-events: auto; min-width: 48px; min-height: 32px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font: inherit; cursor: pointer; }
.score #dailyChip { align-self: flex-start; pointer-events: auto; border: 0; background: var(--panel); border-radius: 6px; padding: 3px; font-family: inherit; cursor: pointer; margin-top: 5px; max-width: 100%; white-space: nowrap; font-size: 12px; line-height: 1.2; letter-spacing: 0; text-transform: none; color: #fde047; }
.daily-top { margin-top: 12px; font-size: 13px; line-height: 1.25; }
#dailyTop { list-style: none; padding: 0; margin: 4px 0; text-align: left; }
#dailyTop li { display: flex; gap: 8px; }
#dailyTop li b { width: 16px; color: var(--yellow); }
#dailyTop li span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#dailyTop li em { font-style: normal; }
#yesterday { margin: 4px 0 0; color: var(--muted); }
#yesterday:empty { display: none; }
.panel { max-height: calc(100dvh - 32px); overflow-y: auto; touch-action: pan-y; }
@media (max-width: 640px) {
  .top-left { width: 150px; gap: 6px; }
  .score small { line-height: 1.15; }
  .score #rank { max-width: 150px; font-size: 11px; }
  .board-panel { width: 150px; padding: 5px 7px; }
  .room-row { font-size: 11px; }
  #hof { font-size: 11px; line-height: 1.2; overflow-wrap: anywhere; }
  #board li:nth-child(n+4) { display: none; }
  #arrowBox { gap: 5px; }
}
@media (pointer: coarse) and (max-height: 500px) {
  .top-left { width: 168px; gap: 4px; }
  .score small { line-height: 1.1; font-size: 11px; }
  .score #rank { max-width: 168px; font-size: 11px; margin-top: 3px; }
  .score #dailyChip { margin-top: 3px; font-size: 11px; }
  .board-panel { width: 168px; padding: 4px 6px; }
  .room-row { flex-wrap: nowrap; font-size: 10px; margin-bottom: 2px; }
  #board li:nth-child(n+3) { display: none; }
  #hof { font-size: 10px; line-height: 1.2; overflow-wrap: anywhere; }
  #arrowBox { top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 440px); }
}

@media (max-width: 640px) and (min-height: 501px) {
  #hud { display: grid; grid-template-columns: 150px minmax(0, 1fr) 110px; gap: 6px; align-content: start; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left)); }
  .top-left { display: contents; }
  .score { grid-column: 1; grid-row: 1; }
  .board-panel { grid-column: 1; grid-row: 2; }
  #minimap { position: static; grid-column: 3; grid-row: 1; align-self: start; }
  .score #rank { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .room-row { flex-wrap: nowrap; }
  #roomChip { flex: 1; min-width: 0; font-size: 10px; }
  #board li:nth-child(n+3) { display: none; }
  #hof { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #arrowBox { position: static; grid-column: 1 / -1; grid-row: 3; justify-self: start; transform: none; max-width: calc(100vw - 144px); }
  .dest { min-width: 0; }
  .dest span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bubble { position: static; grid-column: 1 / -1; grid-row: 4; justify-self: start; transform: none; max-width: calc(100vw - 28px); max-height: 40px; padding: 6px 10px; font-size: 12px; line-height: 1.15; overflow: hidden; }
  #hint { top: auto; bottom: max(12px, env(safe-area-inset-bottom)); padding: 5px 10px; font-size: 12px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (pointer: coarse) and (max-height: 500px) {
  .dest { min-width: 0; }
  .dest span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #bubble { top: calc(max(10px, env(safe-area-inset-top)) + 60px); }
}

/* Upright phones: right column is minimap → speed → mute → Advertise, 8px apart (the 48px
   touch targets made the old offsets overlap the speed readout). */
@media (max-width: 640px) and (min-height: 501px) {
  #muteBtn { top: calc(max(12px, env(safe-area-inset-top)) + 184px); }
  .adv-link { top: calc(max(12px, env(safe-area-inset-top)) + 240px); }
}

/* Two small actions share a wrapping room row; the chip always gets its own line. */
.room-row { flex-wrap: wrap; }
#roomChip { flex: 0 0 100%; }
.room-actions { display: flex; gap: 4px; }
#shareBtn, #startShareBtn { pointer-events: auto; min-width: 48px; min-height: 32px; padding: 3px 8px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; font: inherit; cursor: pointer; }
.best-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
#toast.actionable { pointer-events: auto; }
#toast button { margin-left: 10px; padding: 5px 12px; border: 0; border-radius: 12px; background: var(--yellow); color: #171827; font: inherit; cursor: pointer; }
#coach { position: absolute; bottom: calc(max(14px, env(safe-area-inset-bottom)) + 70px); left: 50%; transform: translateX(-50%); width: 290px; max-width: calc(100vw - 32px); padding: 10px 14px; border-radius: 16px; border: 1px solid var(--yellow); background: var(--panel); text-align: center; font-size: 15px; line-height: 1.2; }
#skipOnboarding { pointer-events: auto; display: block; margin: 5px auto 0; padding: 4px 10px; background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer; }
@media (max-width: 640px) and (min-height: 501px), (pointer: coarse) and (min-height: 501px) {
  #coach { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 214px); width: 270px; font-size: 13px; }
}
@media (max-height: 500px) {
  #coach { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px); width: 260px; max-width: calc(100vw - 440px); padding: 7px 10px; font-size: 12px; }
}
@media (max-width: 640px) and (min-height: 501px) {
  #hud.coaching .board-head, #hud.coaching #board, #hud.coaching #hof, #hud.coaching #bubble { display: none; }
}
@media (pointer: coarse) and (max-height: 500px) {
  .board-head, #hof { display: none; }
}
