/* 文字：筆文字（題字・身分名）と丸ゴシック（本文）。どちらも SIL Open Font License の Google Fonts を、使う文字だけに切り出したもの */
@font-face { font-family: 'Yuji Boku'; src: url('../../assets/fonts/YujiBoku.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; font-weight: 500; src: url('../../assets/fonts/ZenMaru-500.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Zen Maru Gothic'; font-weight: 700; src: url('../../assets/fonts/ZenMaru-700.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #e9dcb8;
  --panel: #2a211b;
  --panel-paper: linear-gradient(180deg, #34291f 0%, #261d16 100%);
  --paper: #f4ead0;
  --paper-d: #e8dbb8;
  --line: #5a4a34;
  --text: #f1e8d2;
  --dim: #b3a285;
  --shu: #c7452f;
  --kin: #e6bd55;
  --ai: #2c4a75;
  --ink: #2b1d16;
  --brush: 'Yuji Boku', 'Yu Mincho', 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
  --ui: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
  touch-action: none;
}

#game {
  position: fixed;
  inset: 0;
  background-color: #e9dcb8;
}
#game canvas { display: block; touch-action: none; }

.hidden { display: none !important; }

/* ---------- 画面の縁の警告・被弾の光 ---------- */
#fxwall, #fxflash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
}
#fxwall {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 46%, rgba(199, 69, 47, 0.55) 100%);
}
#fxflash {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 38%, rgba(199, 69, 47, 0.8) 100%);
}

/* ---------- 共通の板 ---------- */
.panel {
  background: var(--panel-paper);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 4px 0 rgba(43, 29, 22, 0.42), inset 0 0 0 2px rgba(230, 189, 85, 0.26), inset 0 0 22px rgba(0, 0, 0, 0.28);
}

/* ---------- ランキング ---------- */
#ranking {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 252px;
  padding: 7px 10px 6px;
  z-index: 9;
  font-size: 12px;
}

.panel-title {
  font-family: var(--brush);
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--kin);
  border-bottom: 1px solid rgba(216, 180, 90, 0.3);
  padding-bottom: 5px;
  margin-bottom: 4px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.6);
  cursor: pointer;
  user-select: none;
}
.panel-title:active { color: #fff; }
.panel-sub {
  float: right;
  color: var(--dim);
  letter-spacing: 0;
  font-size: 10px;
}

#ranking table { width: 100%; border-collapse: collapse; }
#ranking th {
  font-weight: normal;
  color: var(--dim);
  font-size: 10px;
  text-align: left;
  padding: 2px 2px;
}
#ranking td {
  padding: 2.5px 2px;
  border-top: 1px solid rgba(216, 180, 90, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 92px;
}
#ranking th.pos, #ranking td.pos { width: 24px; color: var(--dim); }
#ranking th.sc, #ranking td.sc { text-align: right; width: 46px; }
#ranking tr.you td { background: rgba(216, 180, 90, 0.14); color: #fff; }
#ranking tr.you td.pos { color: var(--kin); }

.you-row {
  margin-top: 5px;
  border-top: 1px solid rgba(216, 180, 90, 0.3);
  padding-top: 5px;
  font-size: 12px;
  color: var(--dim);
}
.you-row .pos { color: var(--kin); margin-right: 6px; }
.you-row .nm { color: #fff; margin-right: 6px; }
.you-row .rk { color: var(--kin); margin-right: 6px; }
.you-row .sc { float: right; color: #fff; }

/* ---------- HUD ---------- */
#hud {
  position: fixed;
  left: 10px;
  bottom: 10px;
  width: 268px;
  padding: 8px 11px;
  z-index: 6;
}

.hud-line { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.hud-line .label { color: var(--dim); font-size: 11px; }
.hud-line .rank { font-family: var(--brush); font-size: 23px; font-weight: normal; letter-spacing: 0.08em; color: var(--kin); text-shadow: 0 1px 0 #000; }
.hud-line .weapon { color: var(--dim); font-size: 11px; margin-left: auto; }
.hud-line.small { font-size: 11px; color: var(--dim); margin-top: 6px; gap: 9px; flex-wrap: wrap; }
.hud-line.small b { color: #fff; font-weight: normal; }

.hud-hp { display: flex; gap: 4px; margin-top: 6px; }
.hud-hp .hp {
  width: 15px;
  height: 14px;
  display: inline-block;
  background: var(--shu);
  clip-path: polygon(50% 100%, 0 38%, 0 16%, 24% 2%, 50% 20%, 76% 2%, 100% 16%, 100% 38%);
  box-shadow: 0 0 4px rgba(199, 69, 47, 0.5);
}
.hud-hp .hp.off { background: #3a3430; box-shadow: none; opacity: 0.7; }

.bar {
  margin-top: 7px;
  height: 7px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(216, 180, 90, 0.25);
  border-radius: 3px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--shu), var(--kin));
  transition: width 0.25s linear;
}

/* ---------- 音・ブーストのボタン ---------- */
#muteBtn {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 12;
  width: 38px;
  height: 32px;
  font-family: inherit;
  font-size: 13px;
  color: var(--kin);
  background: #2a211b;
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 rgba(43,29,22,0.4);
  border-radius: 9px;
  cursor: pointer;
  padding: 0;
}
#muteBtn.off { color: #6d6a62; }

/* ---------- 自己ベスト・称号・シェア ---------- */
#records { margin: 8px 0 4px; text-align: left; font-size: 12px; }
.rec-head { margin: 8px 0 3px; font-family: var(--brush); color: #8f2417; font-size: 15px; letter-spacing: 0.1em; }
.rec-head span { float: right; color: #7a6a52; font-family: var(--ui); font-size: 10px; letter-spacing: 0; }
.rec-best { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rec-best b { color: var(--ink); }
.rec-best.none { color: #7a6a52; }
.badges { display: flex; flex-wrap: wrap; gap: 4px; max-height: 128px; overflow-y: auto; }
.badge {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 64px; padding: 3px 7px; font-family: inherit; font-size: 12px;
  border-radius: 8px; border: 2px solid rgba(43, 29, 22, 0.35); background: rgba(255, 250, 232, 0.5);
}
.badge.got { color: var(--ink); background: linear-gradient(#ffe08a, #e9b94a); border-color: var(--ink); cursor: pointer; }
.badge.got.sel { outline: 3px solid var(--shu); }
.badge.lock { color: #8a7a62; }
.badge.lock small { font-size: 9px; line-height: 1.3; max-width: 96px; text-align: center; }
#rankYou .ttl, .you-row .ttl { margin-left: 4px; font-size: 10px; color: var(--kin); }
.dbest { margin-top: 6px; color: #c7452f; font-weight: 700; }
.share { display: flex; gap: 6px; justify-content: center; margin: 10px 0 2px; flex-wrap: wrap; }
.share a, .share button {
  padding: 6px 14px; font-family: inherit; font-size: 13px; font-weight: 700; border-radius: 9px;
  text-decoration: none; border: 2px solid var(--ink); cursor: pointer; color: #fff; box-shadow: 2px 3px 0 rgba(43,29,22,0.45);
}
.sh-x { background: #111; }
.sh-line { background: #06c755; }
.sh-more { background: #7a6a52; }

/* ---------- 遊び方 ---------- */
#helpBtn {
  position: fixed;
  top: 10px;
  left: 54px;
  z-index: 12;
  height: 32px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 13px;
  color: var(--kin);
  background: #2a211b;
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 rgba(43,29,22,0.4);
  border-radius: 9px;
  cursor: pointer;
}
#helpBtn:active { transform: translateY(1px); }
#help {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
}
#help.hidden { display: none; }
.help-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 18px 20px 16px;
  color: #ece6d6;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper) url('../../assets/washi_light.png');
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 5px 6px 0 rgba(43, 29, 22, 0.45), inset 0 0 0 4px rgba(244, 234, 208, 0.7), inset 0 0 0 5.5px rgba(199, 69, 47, 0.5);
}
.help-box h2 { margin: 0 0 2px; font-family: var(--brush); font-weight: normal; font-size: 30px; color: var(--ink); letter-spacing: 0.2em; }
.help-box h3 { margin: 16px 0 4px; font-family: var(--brush); font-weight: normal; font-size: 19px; color: var(--shu); letter-spacing: 0.08em; }
.help-box p { margin: 0 0 4px; }
.help-box ul { margin: 0; padding-left: 20px; }
.help-box b { color: #8f2417; }
.help-lead { color: #7a6a52; font-size: 12px; }
.help-keys { width: 100%; border-collapse: collapse; font-size: 13px; }
.help-keys th, .help-keys td { padding: 4px 6px; border-top: 1.5px dashed rgba(43, 29, 22, 0.3); text-align: left; }
.help-keys th { color: #7a6a52; font-weight: normal; }
.help-keys td:first-child { color: var(--shu); font-weight: 700; white-space: nowrap; }
.keyconf small { color: #7a6a52; font-size: 11px; }
.kc {
  min-width: 78px; padding: 2px 8px; font-family: inherit; font-size: 13px;
  color: var(--ink); background: #fff8e2; border: 2px solid var(--ink); border-radius: 7px; cursor: pointer;
}
.kc.wait { color: #fff; background: var(--shu); }
.kc-mouse { display: block; margin: 8px 0 4px; font-size: 13px; cursor: pointer; }
.kc-reset {
  padding: 3px 10px; font-family: inherit; font-size: 12px; color: var(--dim);
  background: none; border: 1px solid #4a453c; border-radius: 4px; cursor: pointer;
}
.help-ladder { margin-top: 12px !important; font-size: 13px; color: #7a6a52; letter-spacing: 0.04em; }
#helpClose {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
}
#helpOk, #helpFromJoin {
  font-family: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--shu);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 3px 0 rgba(43, 29, 22, 0.5);
  border-radius: 9px;
  cursor: pointer;
}
#helpOk:active, #helpFromJoin:active { transform: translate(1px, 2px); box-shadow: 1px 1px 0 rgba(43,29,22,0.5); }
#helpOk { display: block; margin: 14px auto 0; padding: 8px 36px; font-size: 15px; }
.help-link { margin: 4px 0; text-align: center; }
#helpFromJoin { padding: 5px 16px; font-size: 13px; }
#muteBtn:active { transform: translateY(1px); }

#attackBtn {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  z-index: 8;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-family: var(--brush);
  font-size: 36px;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: #fdf3dd;
  background: radial-gradient(circle at 34% 30%, #e55a3d, #a52f1e);
  border: 3px solid var(--ink);
  box-shadow: 3px 5px 0 rgba(43, 29, 22, 0.5), inset 0 0 0 3px rgba(255, 230, 190, 0.35);
  text-shadow: 1px 2px 0 rgba(43, 29, 22, 0.6);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}
#attackBtn:not(.hidden) { display: flex; }
#attackBtn.on {
  background: radial-gradient(circle at 34% 30%, #ffd98a, #c7452f);
  color: #2a1410;
  transform: scale(0.94);
}

#ikkiBtn {
  display: none;
  position: fixed;
  right: 30px;
  bottom: 134px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  z-index: 8;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: #2a1a0c;
  background: radial-gradient(circle at 34% 30%, #f6df97, #c79a3c);
  border: 3px solid var(--ink);
  box-shadow: 3px 5px 0 rgba(43, 29, 22, 0.5), inset 0 0 0 3px rgba(255, 245, 210, 0.45);
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
  cursor: pointer;
}
#ikkiBtn b { font-family: var(--brush); font-weight: normal; font-size: 22px; letter-spacing: 0.1em; }
#ikkiBtn small { font-size: 11px; opacity: 0.85; }
#ikkiBtn:not(.hidden) { display: flex; }
#ikkiBtn.wait { filter: grayscale(0.85) brightness(0.7); }
#ikkiBtn.ready { animation: ikkiPulse 0.9s ease-in-out infinite; }
@keyframes ikkiPulse { 50% { transform: scale(1.08); box-shadow: 0 0 22px rgba(255, 200, 90, 0.85); } }

/* ---------- ヒント ---------- */
#hint {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text);
  background: rgba(42, 33, 27, 0.92);
  border: 2px solid var(--ink);
  box-shadow: 2px 3px 0 rgba(43, 29, 22, 0.35);
  border-radius: 9px;
  padding: 5px 12px;
  z-index: 6;
  white-space: nowrap;
}

/* ---------- 身分アップの札 ---------- */
#rankup {
  position: fixed;
  left: 50%;
  top: 16%;
  transform: translateX(-50%);
  z-index: 9;
  text-align: center;
  padding: 12px 38px 14px;
  background: var(--paper) url('../../assets/washi_light.png');
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 6px 0 rgba(43, 29, 22, 0.45), inset 0 0 0 4px rgba(244, 234, 208, 0.7), inset 0 0 0 5.5px rgba(199, 69, 47, 0.55);
  pointer-events: none;
}
#rankup .ru-kicker {
  font-family: var(--brush);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: #7a6a52;
}
#rankup .ru-name {
  font-family: var(--brush);
  font-size: 54px;
  font-weight: normal;
  letter-spacing: 0.16em;
  color: var(--ink) !important;
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 rgba(255, 244, 214, 0.9), 5px 5px 0 rgba(199, 69, 47, 0.8);
  margin-top: 2px;
}
#rankup .ru-sub { font-size: 13px; color: #7a6a52; margin-top: 3px; letter-spacing: 0.1em; }
#rankup.anim { animation: rankupIn 2.6s ease-out both; }
@keyframes rankupIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(-16px) scale(0.9); }
  12% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(-8px); }
}

/* ---------- トースト ---------- */
#toasts {
  position: fixed;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  text-align: center;
  pointer-events: none;
}
.toast {
  background: #2a211b;
  border: 2.5px solid var(--ink);
  color: var(--kin);
  border-radius: 10px;
  box-shadow: 3px 4px 0 rgba(43, 29, 22, 0.42), inset 0 0 0 2px rgba(230, 189, 85, 0.3);
  padding: 8px 18px;
  margin-bottom: 7px;
  font-size: 15px;
  opacity: 1;
  transition: opacity 0.35s, transform 0.35s;
}
.toast b { font-size: 17px; }
.toast.geko { border-color: var(--shu); color: #ff9a7d; }
.toast.kill { border-color: #7f8a93; color: #cfd6da; }
.toast.ok { border-color: var(--ai); color: #9fc4e8; }
.toast.out { opacity: 0; transform: translateY(-8px); }

/* ---------- 参加／死亡画面 ---------- */
#join {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, rgba(40, 28, 18, 0.25), rgba(30, 20, 12, 0.7));
  z-index: 10;
  overflow: auto;
  touch-action: pan-y;
}

#join .box {
  width: 470px;
  max-width: 94vw;
  max-height: 94vh;
  overflow: auto;
  color: var(--ink);
  background: var(--paper) url('../../assets/washi_light.png');
  border: 3px solid var(--ink);
  box-shadow: 6px 8px 0 rgba(43, 29, 22, 0.5), inset 0 0 0 4px rgba(244, 234, 208, 0.7), inset 0 0 0 5.5px rgba(199, 69, 47, 0.5);
  border-radius: 16px;
  padding: 22px 26px 16px;
  text-align: center;
}

/* 題字：墨の筆文字に、朱の影と和紙色の縁取り */
.logo-row { display: flex; justify-content: center; align-items: center; min-height: 64px; }
.logo { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo .kick { font-family: var(--brush); font-size: 14px; letter-spacing: 0.5em; color: #7a6a52; margin-bottom: 4px; }
.logo .big {
  font-family: var(--brush);
  font-size: 66px;
  font-weight: normal;
  letter-spacing: 0.04em;
  color: var(--ink);
  -webkit-text-stroke: 1.2px var(--ink);
  text-shadow: 3px 3px 0 #fff4d6, 5px 5px 0 #c7452f;
  margin: 0;
}
.logo .tag {
  margin-top: 8px;
  padding: 2px 16px 3px;
  font-family: var(--brush);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: #fff4d6;
  background: #c7452f;
  border: 2px solid var(--ink);
  border-radius: 4px;
  transform: rotate(-2deg);
  box-shadow: 2px 2px 0 rgba(43, 29, 22, 0.4);
}

#join .sub {
  margin: 10px 0 12px;
  color: #7a6a52;
  font-size: 13px;
  letter-spacing: 0.3em;
}

#joinMsg { min-height: 8px; }
#joinMsg .died {
  font-family: var(--brush);
  font-size: 56px;
  color: var(--ink);
  -webkit-text-stroke: 1.5px var(--ink);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  text-shadow: 3px 3px 0 #fff4d6, 5px 5px 0 #c7452f;
}
#joinMsg .dstats {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
#joinMsg .drow {
  background: rgba(255, 250, 232, 0.7);
  border: 2px solid var(--ink);
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 12px;
  color: #7a6a52;
  line-height: 1.5;
}
#joinMsg .drow span { display: block; font-size: 10px; letter-spacing: 0.14em; }
#joinMsg .drow b { font-size: 19px; color: var(--ink); }
#joinMsg .dkiller { font-size: 13px; color: #8f2417; }

#join .form { display: flex; gap: 8px; justify-content: center; margin: 14px 0 10px; }

#playerName {
  width: 216px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fffaf0;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  outline: none;
  touch-action: auto;
}
#playerName:focus { border-color: var(--shu); box-shadow: 0 0 0 3px rgba(199, 69, 47, 0.25); }

#joinBtn {
  padding: 10px 22px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--shu);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 4px 0 rgba(43, 29, 22, 0.5);
  border-radius: 10px;
  cursor: pointer;
}
#joinBtn:hover { filter: brightness(1.07); }
#joinBtn:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 rgba(43, 29, 22, 0.5); }

/* 色えらび */
.colors { display: flex; justify-content: center; align-items: center; gap: 9px; margin: 4px 0 6px; }
.colors .sw {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  box-shadow: 1px 2px 0 rgba(43, 29, 22, 0.4);
  cursor: pointer;
  padding: 0;
  outline: none;
}
.colors .sw.on {
  box-shadow: 0 0 0 3px #fff4d6, 0 0 0 5px var(--shu);
  transform: scale(1.12);
}
.colors .color-name { font-size: 12px; color: #7a6a52; min-width: 3em; text-align: left; }

#join .howto {
  text-align: left;
  margin: 12px 0 6px;
  padding: 10px 14px 10px 30px;
  background: rgba(255, 250, 232, 0.55);
  border: 2px dashed rgba(43, 29, 22, 0.45);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.85;
  color: #3b2c22;
}

#join .ladder {
  font-family: var(--brush);
  font-size: 15px;
  color: #8f2417;
  margin: 8px 0 2px;
  letter-spacing: 0.02em;
}
#join .note { font-size: 11px; color: #7a6a52; margin: 6px 0 0; }

/* ---------- 横長スマートフォン ---------- */
@media (max-height: 500px) {
  #join .box { padding: 12px 16px 10px; max-height: 96vh; }
  .logo .big { font-size: 38px; }
  .logo .tag { font-size: 13px; margin-top: 4px; }
  #join .sub { margin: 2px 0 6px; }
  #join .form { margin: 8px 0 6px; }
  #join .howto { margin: 6px 0 4px; padding: 6px 10px 6px 26px; font-size: 11px; line-height: 1.6; }
  #join .ladder, #join .note { font-size: 11px; }
  #joinMsg .died { font-size: 32px; margin-bottom: 4px; }
  #rankup { top: 8%; padding: 7px 20px 9px; }
  #rankup .ru-name { font-size: 32px; }
  #attackBtn { width: 82px; height: 82px; right: 14px; bottom: 14px; font-size: 15px; }
  #hint { display: none; }
  #toasts { top: 46px; }
}

/* ---------- 小さい画面 ---------- */
@media (max-width: 720px) {
  #ranking { width: 196px; font-size: 11px; top: 6px; right: 6px; padding: 6px 8px 5px; }
  #ranking td { max-width: 74px; }
  #hud { width: 232px; left: 6px; bottom: 6px; padding: 7px 9px; }
  .hud-line.small { gap: 8px; }
  #muteBtn { top: 6px; left: 6px; }
  #helpBtn { top: 6px; left: 50px; }
  .logo .big { font-size: 46px; }
  #join .box { padding: 54px 14px 12px; }
  #playerName { width: 160px; }
  #hint { display: none; }
  #rankup { top: 12%; }
}
