/* ============================================================
   波瀾万丈すごろく — スタイル
   方向性: 昭和の紙すごろく/駄菓子屋ポスター。
   クリーム紙 × 朱 × 藍 × からし色、太罫線とズレ判子。
   ============================================================ */

:root {
  --paper: #f3ead7;
  --paper-dark: #e7d9ba;
  --ink: #2b2620;
  --shu: #d7401f;     /* 朱 */
  --ai: #1f4566;      /* 藍 */
  --karashi: #d9a017; /* からし */
  --matsu: #5a8f4e;   /* 松葉 */
  --momo: #c75b85;
  --adh: 58px;        /* SP固定広告の高さ */
  --font-pop: "RocknRoll One", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  /* 紙の繊維っぽいテクスチャ */
  background-image:
    radial-gradient(circle at 18% 32%, rgba(43,38,32,.045) 0 1px, transparent 1.5px),
    radial-gradient(circle at 73% 64%, rgba(43,38,32,.05) 0 1px, transparent 1.5px),
    radial-gradient(circle at 45% 85%, rgba(215,64,31,.04) 0 1.5px, transparent 2px),
    radial-gradient(circle at 88% 12%, rgba(31,69,102,.05) 0 1px, transparent 1.5px);
  background-size: 240px 240px, 180px 180px, 320px 320px, 200px 200px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#app {
  height: 100dvh;
  padding-bottom: var(--adh);
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hidden { display: none !important; }

/* ============ 画面切り替え ============ */
.screen {
  display: none;
  height: 100%;
  flex-direction: column;
  overflow-y: auto;
}
.screen.active { display: flex; animation: screen-in .35s ease both; }
@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ============ 共通: ボタン ============ */
.btn {
  font-family: var(--font-pop);
  font-size: 1.05rem;
  color: var(--paper);
  background: var(--ai);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: .65em 1.6em;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
  letter-spacing: .06em;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--shu); }
.btn-big { font-size: 1.35rem; padding: .7em 2em; }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: none; border: 2px dashed rgba(43,38,32,.55);
}
.btn-ghost:active { transform: scale(.96); }

.mini-btn {
  width: 44px; height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 2.5px 2.5px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.mini-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--ink); }
.mini-btn.off { opacity: .45; }

/* ============ 共通: 紙カード ============ */
.paper-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 6px 6px 0 rgba(43,38,32,.85);
  padding: 22px 20px 26px;
  position: relative;
}
.paper-card::before { /* 角のセロテープ風 */
  content: "";
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 92px; height: 22px;
  background: rgba(217,160,23,.35);
  border-left: 1px dashed rgba(43,38,32,.25);
  border-right: 1px dashed rgba(43,38,32,.25);
}

/* ============ タイトル画面 ============ */
#scr-title { align-items: center; justify-content: center; }
.title-wrap { text-align: center; padding: 24px 16px; width: 100%; }

.title-catch {
  font-family: var(--font-pop);
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: var(--ai);
  margin-bottom: 14px;
  letter-spacing: .12em;
}
.title-catch span {
  display: inline-block;
  animation: catch-pop .5s cubic-bezier(.2,1.6,.4,1) both;
}
.title-catch span:nth-child(1) { animation-delay: .15s; transform-origin: bottom; }
.title-catch span:nth-child(2) { animation-delay: .3s; }
.title-catch span:nth-child(3) { animation-delay: .45s; color: var(--shu); }
@keyframes catch-pop {
  from { opacity: 0; transform: translateY(14px) scale(.7); }
  to   { opacity: 1; transform: none; }
}

.game-logo {
  font-family: var(--font-pop);
  line-height: 1.06;
  display: inline-block;
  margin-bottom: 8px;
  filter: drop-shadow(5px 5px 0 rgba(43,38,32,.18));
}
.logo-row1, .logo-row2 { display: block; }
.logo-row1 {
  font-size: clamp(3rem, 14vw, 5.2rem);
  color: var(--shu);
  -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--karashi);
  animation: logo-stamp .55s cubic-bezier(.3,1.8,.5,1) .65s both;
}
.logo-row2 {
  font-size: clamp(1.7rem, 8vw, 3rem);
  color: var(--paper);
  background: var(--ai);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: .08em .6em .12em;
  margin: 10px auto 0;
  width: fit-content;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--ink);
  letter-spacing: .25em;
  animation: logo-stamp .5s cubic-bezier(.3,1.8,.5,1) .9s both;
}
@keyframes logo-stamp {
  0%   { opacity: 0; transform: scale(2.4) rotate(-8deg); }
  60%  { opacity: 1; transform: scale(.92) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(-2deg); }
}
.logo-row1 { animation-name: logo-stamp-1; }
@keyframes logo-stamp-1 {
  0%   { opacity: 0; transform: scale(2.4) rotate(6deg); }
  60%  { opacity: 1; transform: scale(.94); }
  100% { opacity: 1; transform: none; }
}

.title-wheel { width: 96px; margin: 6px auto 12px; animation: wheel-idle 14s linear infinite; }
@keyframes wheel-idle { to { transform: rotate(360deg); } }

.title-btns { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.title-sub-btns { display: flex; gap: 12px; }
.title-stats {
  margin-top: 18px;
  font-size: .82rem;
  color: rgba(43,38,32,.65);
  letter-spacing: .05em;
}

/* ============ 出発準備 ============ */
#scr-setup { align-items: center; justify-content: center; padding: 16px; }
.setup-wrap { width: min(420px, 100%); display: flex; flex-direction: column; gap: 10px; }

.setup-h {
  font-family: var(--font-pop);
  text-align: center;
  color: var(--ai);
  font-size: 1.25rem;
  letter-spacing: .2em;
  margin-bottom: 6px;
}
.setup-label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--shu);
  margin-top: 8px;
}
#inp-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: .5em .8em;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  outline: none;
  width: 100%;
}
#inp-name:focus { border-color: var(--shu); }

.pawn-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.pawn-opt {
  width: 52px; height: 60px;
  border: 2.5px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  transition: transform .12s;
}
.pawn-opt svg { width: 100%; height: 100%; }
.pawn-opt.on {
  border-color: var(--ink);
  background: #fffdf6;
  box-shadow: 3px 3px 0 var(--ink);
  transform: scale(1.08);
}

.seg-picker { display: flex; gap: 8px; }
.seg {
  flex: 1;
  font-family: var(--font-pop);
  font-size: 1rem;
  padding: .5em 0;
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
  color: var(--ink);
  cursor: pointer;
}
.seg.on { background: var(--karashi); box-shadow: inset 0 -3px 0 rgba(43,38,32,.25); }

.rival-preview {
  display: flex; gap: 8px; flex-wrap: wrap;
  font-size: .78rem; color: rgba(43,38,32,.8);
  min-height: 1.4em;
}
.rival-preview span {
  background: var(--paper-dark);
  border-radius: 99px;
  padding: .15em .7em;
  border: 1.5px solid rgba(43,38,32,.4);
}

#btn-go { margin-top: 14px; }
#btn-back-title { align-self: center; }

/* ============ ゲーム画面 ============ */
#scr-game { overflow: hidden; }

#hud {
  display: flex;
  gap: 6px;
  padding: 8px 8px 6px;
  background: rgba(243,234,215,.92);
  border-bottom: 3px solid var(--ink);
  z-index: 5;
  backdrop-filter: blur(2px);
}
.hud-chip {
  flex: 1;
  min-width: 0;
  border: 2px solid rgba(43,38,32,.5);
  border-radius: 8px;
  background: #fffdf6;
  padding: 4px 6px 5px;
  font-size: .68rem;
  line-height: 1.3;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.hud-chip.active {
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--shu);
  transform: translateY(-2px);
}
.hud-chip .hname {
  font-weight: 900;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center; gap: 3px;
}
.hud-chip .hdot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.hud-chip .hmoney { font-family: var(--font-pop); font-size: .82rem; }
.hud-chip .hmoney.minus { color: var(--shu); }
.hud-chip .hsub { color: rgba(43,38,32,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-chip.bump { animation: chip-bump .4s; }
@keyframes chip-bump { 40% { transform: scale(1.07); } }

#board-viewport {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}
#board-svg { display: block; width: 100%; height: auto; }

/* 盤面の文字 */
.sq-label {
  font-family: var(--font-pop);
  fill: var(--ink);
}
.sq-icon { font-size: 17px; }

/* ターン表示の帯 */
.turn-banner {
  position: absolute;
  top: 38%;
  left: 0; right: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-pop);
  font-size: 1.3rem;
  text-align: center;
  padding: .45em 0;
  z-index: 8;
  letter-spacing: .15em;
  animation: banner-sweep 1.3s cubic-bezier(.7,0,.3,1) both;
  pointer-events: none;
}
.turn-banner em { color: var(--karashi); font-style: normal; }
@keyframes banner-sweep {
  0%   { clip-path: inset(0 100% 0 0); }
  18%  { clip-path: inset(0 0 0 0); }
  82%  { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 0 100%); opacity: .6; }
}

/* ============ コントロール(ルーレット) ============ */
#control {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 12px 10px;
  position: relative;
  z-index: 6;
  pointer-events: none;
}
#control > * { pointer-events: auto; }

#wheel-box {
  width: 128px; height: 128px;
  position: relative;
  margin-top: -54px; /* 盤面に少しかぶせる */
  filter: drop-shadow(4px 4px 0 rgba(43,38,32,.55));
  transition: transform .25s;
}
#wheel-box.waiting { animation: wheel-breathe 1.6s ease-in-out infinite; }
@keyframes wheel-breathe { 50% { transform: scale(1.05); } }
#wheel-box.disabled { opacity: .45; pointer-events: none; }

#wheel-svg { width: 100%; height: 100%; }
#wheel-needle {
  position: absolute;
  top: -7px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 11px solid transparent;
  border-top: 17px solid var(--ink);
  z-index: 3;
}
.wheel-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
  font-family: var(--font-pop);
  font-size: .92rem;
  cursor: pointer;
  z-index: 4;
  line-height: 1.15;
}
.wheel-btn:active { transform: scale(.93); }

.ctl-side { display: flex; flex-direction: column; gap: 8px; padding-bottom: 4px; }

/* ============ オーバーレイ / イベントカード ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,38,32,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 18px;
  padding-bottom: calc(var(--adh) + 18px);
}

.event-card {
  width: min(380px, 94vw);
  background: var(--paper);
  border: 3.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 7px 7px 0 rgba(43,38,32,.9);
  text-align: center;
  padding: 0 18px 20px;
  transform: rotate(-1deg);
  animation: card-in .45s cubic-bezier(.2,1.5,.4,1) both;
  position: relative;
  overflow: hidden;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(46px) rotate(5deg) scale(.85); }
  to   { opacity: 1; transform: rotate(-1deg); }
}
.event-card.shake { animation: card-shake .45s; }
@keyframes card-shake {
  20% { transform: translateX(-7px) rotate(-2deg); }
  40% { transform: translateX(6px) rotate(0deg); }
  60% { transform: translateX(-4px) rotate(-1.5deg); }
  80% { transform: translateX(3px) rotate(-1deg); }
}

.card-band {
  margin: 0 -18px 12px;
  background: var(--ai);
  color: var(--paper);
  font-family: var(--font-pop);
  font-size: 1.02rem;
  letter-spacing: .25em;
  padding: .45em 0;
  border-bottom: 3px solid var(--ink);
}
.card-band.c-plus { background: var(--matsu); }
.card-band.c-minus { background: var(--shu); }
.card-band.c-gold { background: var(--karashi); color: var(--ink); }
.card-band.c-momo { background: var(--momo); }

.card-icon { font-size: 3rem; line-height: 1.2; margin: 4px 0 6px; }
.card-text { font-size: .98rem; font-weight: 700; line-height: 1.65; margin-bottom: 12px; min-height: 3.2em; }

.card-effects { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.fx-chip {
  font-family: var(--font-pop);
  font-size: 1.05rem;
  border: 2.5px solid var(--ink);
  border-radius: 99px;
  padding: .18em .8em;
  background: #fffdf6;
  animation: chip-in .35s cubic-bezier(.2,1.6,.4,1) both;
}
.fx-chip.plus { background: #e3f0dd; color: #2c5e22; }
.fx-chip.minus { background: #f8ddd4; color: #9c2a10; }
@keyframes chip-in { from { transform: scale(0); } }

.card-options { display: flex; flex-direction: column; gap: 9px; margin-bottom: 6px; }
.opt-btn {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: .95rem;
  padding: .6em .9em;
  border: 2.5px solid var(--ink);
  border-radius: 9px;
  background: #fffdf6;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(43,38,32,.7);
  transition: transform .08s, box-shadow .08s;
}
.opt-btn:active { transform: translate(2px,2px); box-shadow: 0 0 0; }
.opt-btn.cpu-pick { background: var(--karashi); }

/* 判子(就職・称号などの演出) */
.stamp {
  position: absolute;
  top: 12px; right: 10px;
  width: 64px; height: 64px;
  border: 3.5px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  font-family: var(--font-pop);
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  opacity: .9;
  animation: stamp-don .4s cubic-bezier(.3,2,.5,1) .25s both;
  pointer-events: none;
}
@keyframes stamp-don {
  from { opacity: 0; transform: scale(3) rotate(40deg); }
  70%  { opacity: .95; transform: scale(.9) rotate(12deg); }
  to   { opacity: .9; transform: scale(1) rotate(12deg); }
}

/* ============ ログ・あそびかた・きろく ============ */
.log-card, .howto-card, .records-card {
  width: min(420px, 94vw);
  max-height: 76vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#log-list { list-style: none; font-size: .85rem; line-height: 1.6; }
#log-list li { padding: .35em 0; border-bottom: 1px dashed rgba(43,38,32,.3); }
#log-list li b { color: var(--ai); }

.howto-list { padding-left: 1.3em; font-size: .92rem; line-height: 1.8; }
.howto-list b { color: var(--shu); }

.records-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: .85rem;
}
.records-stats div {
  background: #fffdf6;
  border: 2px solid rgba(43,38,32,.4);
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
}
.records-stats b { display: block; font-family: var(--font-pop); font-size: 1.25rem; color: var(--ai); }

.title-shelf { display: flex; flex-wrap: wrap; gap: 10px; }
.shelf-stamp {
  width: 64px; height: 76px;
  border: 2px solid rgba(43,38,32,.4);
  border-radius: 8px;
  background: #fffdf6;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  font-size: .6rem;
  text-align: center;
}
.shelf-stamp .s-mark {
  width: 38px; height: 38px;
  border: 2.5px solid var(--shu);
  border-radius: 50%;
  color: var(--shu);
  font-family: var(--font-pop);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(10deg);
}
.shelf-stamp.locked { opacity: .35; filter: grayscale(1); }

/* ============ 結果画面 ============ */
#scr-result { align-items: center; padding: 26px 14px; }
.result-wrap { width: min(440px, 100%); text-align: center; }
.result-h {
  font-family: var(--font-pop);
  font-size: 1.5rem;
  color: var(--ai);
  letter-spacing: .25em;
  margin-bottom: 18px;
}

#ranking { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffdf6;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 9px 12px;
  text-align: left;
  animation: rank-in .5s cubic-bezier(.2,1.4,.4,1) both;
  animation-delay: calc(var(--i) * .45s);
}
.rank-row.first {
  background: linear-gradient(105deg, #fdf3d0, #fbe7a0);
  box-shadow: 4px 4px 0 var(--karashi);
}
@keyframes rank-in {
  from { opacity: 0; transform: translateX(-40px) scale(.9); }
  to   { opacity: 1; }
}
.rank-no { font-family: var(--font-pop); font-size: 1.4rem; width: 1.6em; color: var(--shu); flex: none; }
.rank-pawn { width: 30px; flex: none; }
.rank-pawn svg { width: 100%; }
.rank-info { flex: 1; min-width: 0; }
.rank-name { font-weight: 900; font-size: .95rem; }
.rank-detail { font-size: .72rem; color: rgba(43,38,32,.7); }
.rank-total { font-family: var(--font-pop); font-size: 1.12rem; white-space: nowrap; }
.rank-total.minus { color: var(--shu); }

.my-title {
  position: relative;
  margin: 6px auto 20px;
  padding: 18px 12px 14px;
  border: 3px dashed var(--shu);
  border-radius: 10px;
  width: min(330px, 100%);
  background: rgba(255,253,246,.7);
}
.my-title .t-name {
  font-family: var(--font-pop);
  font-size: 1.7rem;
  color: var(--shu);
  letter-spacing: .1em;
}
.my-title .t-text { font-size: .82rem; margin-top: 6px; color: rgba(43,38,32,.85); }
.my-title .t-label { font-size: .72rem; color: var(--ai); font-weight: 700; letter-spacing: .3em; }
.my-title .stamp { top: -16px; right: -14px; background: rgba(243,234,215,.9); }

.result-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; margin-top: 16px; }

/* ============ 広告枠 ============ */
.ad-rect, .ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(43,38,32,.45);
  font-size: .7rem;
  letter-spacing: .15em;
  text-align: center;
  background: rgba(43,38,32,.05);
  border: 1.5px dashed rgba(43,38,32,.3);
}
.ad-rect { width: 320px; height: 250px; margin: 0 auto; }
.ad-banner { width: 320px; height: 50px; margin: 0 auto; }

.ad-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--adh);
  background: var(--paper-dark);
  border-top: 2px solid rgba(43,38,32,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.ad-rail { display: none; }
@media (min-width: 1180px) {
  /* PCはレールのレクタングルのみ。SP用フッターは消して高さも返す */
  :root { --adh: 0px; }
  .ad-footer { display: none; }
  .ad-rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }
  .ad-rail-l { left: calc(50% - 360px - 340px); }
  .ad-rail-r { right: calc(50% - 360px - 340px); }
}

/* ============ 紙吹雪・トースト ============ */
#fx-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--adh) + 86px);
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  font-size: .85rem;
  font-weight: 700;
  padding: .5em 1.2em;
  border-radius: 99px;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  z-index: 55;
  pointer-events: none;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}
#toast.show { opacity: 1; transform: translateX(-50%); }

/* お金の浮き上がり数字(盤上) */
.float-num {
  position: fixed;
  font-family: var(--font-pop);
  font-size: 1.3rem;
  pointer-events: none;
  z-index: 56;
  animation: float-up 1.1s ease-out both;
  text-shadow: 1.5px 1.5px 0 var(--paper);
}
.float-num.plus { color: #2c5e22; }
.float-num.minus { color: var(--shu); }
@keyframes float-up {
  from { opacity: 0; transform: translateY(8px) scale(.6); }
  25%  { opacity: 1; transform: translateY(-6px) scale(1.15); }
  to   { opacity: 0; transform: translateY(-42px) scale(1); }
}

/* 画面シェイク(災難) */
#scr-game.quake { animation: quake .5s; }
@keyframes quake {
  20% { transform: translate(-7px, 3px); }
  40% { transform: translate(6px, -3px); }
  60% { transform: translate(-4px, 2px); }
  80% { transform: translate(3px, -1px); }
}

@media (max-width: 380px) {
  .hud-chip .hsub { display: none; }
  #wheel-box { width: 112px; height: 112px; }
}
