/* 콜로세움 무대(v4.26, PV-1): 1920×1080 설계 크기의 틀(.ar-frame)을 화면에 맞게 줄이거나 키운다(arenaView.js). 크기·자리는 설계 px */

.ar-stage {
  --ar-gold: #ffd36b;
  --ar-red: #c8323c;
  --ar-panel: rgba(28, 18, 12, 0.86);
  --ar-line: rgba(255, 210, 120, 0.6);
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  background: #1a1410 url('/assets/arena/colosseum.webp') center / cover no-repeat;
  font-family: var(--font-sans);
  color: #fff;
  user-select: none;
}

.ar-stage[hidden] {
  display: none;
}

.ar-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 10, 6, 0.5);
  backdrop-filter: blur(6px);
}

.ar-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  transform-origin: 0 0;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.ar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ar-fx,
.ar-units,
.ar-floats {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  pointer-events: none;
}

/* 머리 위: 단어(내가 칠 것) · 이름 · HP */
.ar-unit {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
}

.ar-unit > * {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.ar-hp {
  bottom: 0;
  width: 150px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.ar-hp i {
  display: block;
  height: 100%;
  background: linear-gradient(#ff8a7a, #d23a3a);
  transition: width 0.3s;
}

.ar-unit.is-me .ar-hp i {
  background: linear-gradient(#7ff0a8, #2fb86c);
}

.ar-name {
  bottom: 18px;
  padding: 1px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  font: 700 20px/1.4 var(--font-sans);
}

.ar-unit.is-me .ar-name {
  color: #9dffcf;
}

.ar-word {
  bottom: 58px;
  padding: 6px 18px 8px;
  border: 3px solid #3a2a1a;
  border-radius: 16px;
  background: #fffaf0;
  color: #3a2a1a;
  font: 700 36px/1.2 var(--font-sans);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.ar-word.is-match {
  border-color: #2fb86c;
  box-shadow: 0 0 0 4px rgba(79, 209, 139, 0.45), 0 6px 14px rgba(0, 0, 0, 0.35);
}

.ar-word .ar-typed,
.ar-word .ar-now {
  color: #0f8a55;
}

.ar-word .ar-now {
  text-decoration: underline 3px rgba(15, 138, 85, 0.6);
  text-underline-offset: 5px;
}

.ar-unit.is-dead .ar-name {
  color: #aaa;
  text-decoration: line-through;
}

/* 떠오르는 글자 */
.ar-float {
  position: absolute;
  font: 700 40px var(--font-sans);
  text-shadow: 0 3px 0 #2a1a0a, 0 0 10px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: ar-float 0.95s ease-out forwards;
}

.ar-float.is-damage {
  color: #ffe36b;
}

.ar-float.is-hurt {
  color: #ff7a7a;
}

.ar-float.is-crit {
  color: #ffb02e;
  font-size: 52px;
}

.ar-float.is-miss {
  color: #ddd;
  font-size: 30px;
}

.ar-float.is-out {
  color: #ff5050;
  font-size: 46px;
}

@keyframes ar-float {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(0.6); }
  15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1); }
}

/* ── 위: 제목·시간·HP 게이지 ── */
.ar-top {
  position: absolute;
  top: 14px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  grid-template-rows: auto auto;
  align-items: start;
  gap: 8px 16px;
}

.ar-title {
  grid-column: 1;
  padding: 8px 18px;
  border: 3px solid var(--ar-line);
  border-radius: 16px;
  background: var(--ar-panel);
  font: 700 26px/1.3 var(--font-serif);
  color: var(--ar-gold);
}

.ar-timer {
  grid-column: 2;
  justify-self: center;
  min-width: 190px;
  padding: 4px 22px 6px;
  border: 3px solid var(--ar-line);
  border-radius: 18px;
  background: var(--ar-panel);
  text-align: center;
}

.ar-timer b {
  display: block;
  font: 700 52px/1.05 Consolas, 'Courier New', monospace;
  color: #ffe9b0;
}

.ar-timer small {
  font: 500 16px var(--font-sans);
  color: #e6d3a8;
}

.ar-timer.is-warn b {
  color: #ff6b6b;
}

.ar-gauges {
  grid-column: 1 / 4;
  justify-self: center;
  display: flex;
  gap: 12px;
  align-items: center;
}

.ar-gauge {
  width: 270px;
  padding: 6px 12px 8px;
  border: 3px solid var(--class, var(--ar-gold));
  border-radius: 14px;
  background: var(--ar-panel);
}

.ar-gauges .ar-gauge:only-child,
.ar-gauges:has(.ar-vs) .ar-gauge {
  width: 420px;
}

.ar-gauge.is-me {
  box-shadow: 0 0 0 3px rgba(157, 255, 207, 0.55);
}

.ar-gauge.is-dead {
  opacity: 0.55;
}

.ar-gauge-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.ar-gauge-head b {
  font: 700 21px var(--font-sans);
}

.ar-gauge-head small {
  font: 500 15px var(--font-sans);
  color: #e6d3a8;
}

.ar-gauge-bar {
  position: relative;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.ar-gauge-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(#ff8a7a, #d23a3a);
  transition: width 0.3s;
}

.ar-gauge.is-me .ar-gauge-bar i {
  background: linear-gradient(#7ff0a8, #2fb86c);
}

.ar-gauge-bar span {
  position: absolute;
  inset: 0;
  font: 700 15px/18px var(--font-sans);
  text-align: center;
  text-shadow: 0 1px 2px #000;
}

.ar-vs {
  font: 700 54px var(--font-serif);
  color: var(--ar-gold);
  -webkit-text-stroke: 4px #2a1a0a;
  paint-order: stroke fill;
}

/* ── 가운데 알림 ── */
.ar-countdown {
  position: absolute;
  top: 330px;
  left: 0;
  width: 100%;
  font: 700 200px/1 var(--font-serif);
  text-align: center;
  color: #fff6d8;
  -webkit-text-stroke: 8px #4a2a10;
  paint-order: stroke fill;
  opacity: 0;
  pointer-events: none;
}

.ar-countdown.is-pop {
  animation: ar-count 0.9s ease-out forwards;
}

@keyframes ar-count {
  0% { opacity: 0; transform: scale(2); }
  20% { opacity: 1; transform: scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(0.85); }
}

.ar-banner {
  position: absolute;
  top: 220px;
  left: 0;
  width: 100%;
  font: 700 72px var(--font-serif);
  text-align: center;
  color: var(--ar-gold);
  -webkit-text-stroke: 5px #4a2a10;
  paint-order: stroke fill;
  opacity: 0;
  pointer-events: none;
}

.ar-banner.is-pop {
  animation: ar-count 1.4s ease-out forwards;
}

.ar-toast {
  position: absolute;
  bottom: 170px;
  left: 50%;
  padding: 8px 22px;
  border-radius: 20px;
  background: rgba(20, 12, 6, 0.88);
  font: 700 24px/1.4 var(--font-sans);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.ar-toast.is-on {
  opacity: 1;
}

/* ── 아래: 콤보·입력창·나가기 ── */
.ar-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: linear-gradient(rgba(28, 18, 12, 0.82), rgba(16, 10, 6, 0.95));
  border-top: 4px solid var(--ar-line);
}

.ar-combo {
  width: 240px;
  font: 700 44px var(--font-serif);
  color: var(--ar-gold);
  -webkit-text-stroke: 3px #4a2a10;
  paint-order: stroke fill;
}

.ar-typing {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ar-hint {
  font: 500 24px var(--font-sans);
  color: #f3e2bd;
}

.ar-input {
  width: 620px;
  height: 62px;
  padding: 0 22px;
  border: 5px solid #e8c98a;
  border-radius: 32px;
  outline: none;
  background: #fffaf0;
  color: #3a2a1a;
  font: 700 36px var(--font-sans);
  text-align: center;
  user-select: text;
}

.ar-input.is-match {
  border-color: #4fd18b;
}

.ar-input.is-ready {
  border-color: #4fd18b;
  box-shadow: 0 0 0 5px rgba(79, 209, 139, 0.45), 0 0 18px rgba(79, 209, 139, 0.6);
}

.ar-input.is-typo {
  border-color: #ff6b6b;
  background: #ffe3e3;
}

.ar-input.is-shake {
  animation: ar-shake 0.28s ease-out;
}

.ar-input[readonly] {
  opacity: 0.6;
}

@keyframes ar-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

.ar-ime {
  position: absolute;
  bottom: -4px;
  right: 30px;
  padding: 2px 12px;
  border-radius: 10px;
  background: #ff6b6b;
  font: 700 18px/1.4 var(--font-sans);
}

.ar-quit {
  width: 240px;
  height: 62px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: 700 22px var(--font-sans);
  white-space: nowrap;
  cursor: pointer;
}

.ar-quit.is-armed {
  background: var(--ar-red);
  border-color: #fff;
}

/* ── 창: 대기실·결과 ── */
.ar-panel {
  position: absolute;
  top: 230px;
  left: 50%;
  width: 860px;
  margin-left: -430px;
  padding: 28px 42px 32px;
  border: 5px solid var(--ar-line);
  border-radius: 32px;
  background: rgba(28, 18, 12, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.ar-panel[hidden] {
  display: none;
}

.ar-panel h2 {
  margin: 0;
  font: 700 48px/1.2 var(--font-serif);
  color: var(--ar-gold);
}

.ar-panel h2.is-win {
  font-size: 72px;
  text-shadow: 0 0 30px rgba(255, 211, 107, 0.7);
}

.ar-rules {
  margin: 14px 0 0;
  padding: 12px 22px;
  list-style: none;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  text-align: left;
  font: 500 20px/1.55 var(--font-sans);
}

.ar-rules li::before {
  content: '⚔ ';
  color: var(--ar-gold);
}

.ar-roster {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.ar-roster-head {
  font: 700 22px var(--font-sans);
  color: #f3e2bd;
}

.ar-roster-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: center;
  padding: 6px 14px;
  border-left: 6px solid var(--class, var(--ar-gold));
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font: 500 20px var(--font-sans);
}

.ar-roster-row b {
  font-size: 22px;
}

.ar-roster-row.is-me b {
  color: #9dffcf;
}

.ar-info {
  min-height: 30px;
  margin-top: 12px;
  font: 700 21px/1.4 var(--font-sans);
  color: var(--ar-gold);
}

.ar-message {
  min-height: 30px;
  margin-top: 6px;
  font: 500 21px/1.4 var(--font-sans);
  color: #ffb4b4;
}

.ar-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.ar-button {
  min-width: 230px;
  height: 70px;
  padding: 0 28px;
  border: 4px solid #fff3d6;
  border-radius: 36px;
  background: linear-gradient(#e8b04a, #b5701e);
  color: #fff;
  font: 700 28px var(--font-sans);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 6px 0 #6e4310;
  cursor: pointer;
}

.ar-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.ar-button.is-plain {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}

.ar-sub {
  margin: 8px 0 0;
  font: 500 22px var(--font-sans);
  color: #f3e2bd;
}

.ar-places {
  display: grid;
  gap: 6px;
  margin-top: 16px;
}

.ar-place {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: baseline;
  padding: 6px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font: 500 21px var(--font-sans);
  text-align: left;
}

.ar-place b {
  color: var(--ar-gold);
}

.ar-place.is-me {
  outline: 2px solid rgba(157, 255, 207, 0.6);
}

.ar-place small {
  color: #e6d3a8;
  font-size: 17px;
}

.ar-rewards {
  margin-top: 16px;
  padding: 12px 18px;
  border: 2px solid rgba(255, 211, 107, 0.45);
  border-radius: 16px;
  background: rgba(255, 211, 107, 0.12);
  font: 700 24px/1.6 var(--font-sans);
  color: var(--ar-gold);
}

.ar-rewards small {
  display: block;
  font: 500 19px/1.5 var(--font-sans);
  color: #fff3d6;
}

.ar-rewards .is-rare {
  color: #8fd0ff;
}

.ar-rewards .is-epic {
  color: #d59cff;
}

/* ── v4.29(PV-2): 경기용 스킬 글자, 대기실 준비·공정 모드·랭킹 ── */
.ar-float.is-skill {
  color: #9dffcf;
  font-size: 34px;
}

.ar-float.is-burn {
  color: #ff8a3a;
  font-size: 32px;
}

.ar-unit.is-ready .ar-name {
  color: #9dffcf;
}

.ar-panel.ar-lobby {
  top: 196px;
  width: 1500px;
  margin-left: -750px;
  padding: 20px 34px 22px;
}

.ar-lobby-head {
  display: flex;
  gap: 22px;
  align-items: baseline;
  justify-content: center;
}

.ar-mode {
  padding: 4px 16px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  font: 700 20px var(--font-sans);
  color: #f3e2bd;
}

.ar-mode.is-fair {
  border-color: #9dffcf;
  background: rgba(157, 255, 207, 0.14);
  color: #9dffcf;
}

.ar-lobby-body {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 22px;
  margin-top: 12px;
  text-align: left;
}

.ar-lobby .ar-rules {
  margin: 0;
  padding: 10px 18px;
  font: 500 18px/1.45 var(--font-sans);
  word-break: keep-all; /* 한국어는 낱말 단위로 줄을 바꾼다 */
}

.ar-lobby .ar-roster {
  margin-top: 10px;
}

.ar-lobby .ar-roster-row {
  justify-content: flex-start;
  padding: 4px 14px;
  font-size: 19px;
}

.ar-roster-row em {
  margin-left: auto;
  font: 700 18px var(--font-sans);
  font-style: normal;
  color: #c9b48c;
}

.ar-roster-row.is-ready em {
  color: #9dffcf;
}

.ar-ranking {
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.ar-ranking h3 {
  margin: 0 0 8px;
  font: 700 22px var(--font-sans);
  color: var(--ar-gold);
  text-align: center;
}

.ar-rank-list {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ar-rank-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto 92px;
  gap: 10px;
  align-items: baseline;
  padding: 3px 10px;
  border-left: 5px solid var(--class, var(--ar-gold));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font: 500 18px var(--font-sans);
}

.ar-rank-list li.is-me {
  outline: 2px solid rgba(157, 255, 207, 0.6);
}

.ar-rank-list li.is-empty {
  display: block;
  border-left: 0;
  color: #c9b48c;
  text-align: center;
}

.ar-rank-list b {
  color: var(--ar-gold);
}

.ar-rank-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ar-rank-list em {
  font-style: normal;
  font-weight: 700;
  color: #fff3d6;
}

.ar-rank-list small {
  color: #c9b48c;
  font-size: 15px;
  text-align: right;
}

.ar-rank-me {
  margin: 8px 0 0;
  font: 700 18px var(--font-sans);
  color: #9dffcf;
  text-align: center;
}

.ar-status {
  min-height: 28px;
  margin-top: 12px;
  font: 700 21px/1.4 var(--font-sans);
  color: #f3e2bd;
}

.ar-lobby .ar-info {
  min-height: 26px;
  margin-top: 4px;
  font-size: 19px;
}

.ar-lobby .ar-message {
  min-height: 26px;
  margin-top: 2px;
}

.ar-lobby .ar-buttons {
  margin-top: 10px;
}

.ar-button.is-on {
  background: linear-gradient(#5fd39a, #23885a);
  box-shadow: 0 6px 0 #145236;
}

/* ── v4.82(MO-3) 모바일: 폭 720 세로 틀(높이는 화면에 따라, --stage-h). 아래 자판은 카운트다운·경기 중에만(mobile.css .stage-keyboard).
   위에 제목·시간·HP 게이지, 가운데 사람들(4명부터 앞뒤 두 줄), 아래 입력 줄. 대기실·결과 창은 틀 안에서 스크롤 ── */
html.is-mobile .ar-stage::before {
  backdrop-filter: none;
}

html.is-mobile .ar-frame {
  box-shadow: none;
}

html.is-mobile .ar-top {
  top: 10px;
  left: 12px;
  right: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
}

html.is-mobile .ar-title {
  overflow: hidden;
  padding: 6px 14px;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.is-mobile .ar-timer {
  grid-column: 2;
  min-width: 130px;
  padding: 2px 14px 4px;
}

html.is-mobile .ar-timer b {
  font-size: 40px;
}

html.is-mobile .ar-timer small {
  font-size: 15px;
}

html.is-mobile .ar-gauges {
  grid-column: 1 / -1;
  justify-self: stretch;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

html.is-mobile .ar-gauge {
  width: calc((100% - 16px) / 3);
  padding: 4px 8px 6px;
  border-width: 2px;
}

html.is-mobile .ar-gauges .ar-gauge:only-child,
html.is-mobile .ar-gauges:has(.ar-vs) .ar-gauge {
  width: 290px;
}

html.is-mobile .ar-gauge-head {
  overflow: hidden;
  white-space: nowrap;
}

html.is-mobile .ar-gauge-head b {
  overflow: hidden;
  font-size: 19px;
  text-overflow: ellipsis;
}

html.is-mobile .ar-gauge-head small {
  font-size: 14px;
}

html.is-mobile .ar-gauge-bar {
  height: 22px;
}

html.is-mobile .ar-vs {
  font-size: 40px;
}

/* 머리 위 글: 칠 단어는 크게(설계 40px ≈ 화면 21px) */
html.is-mobile .ar-word {
  bottom: 56px;
  padding: 4px 14px 6px;
  font-size: 40px;
}

html.is-mobile .ar-name {
  font-size: 20px;
}

html.is-mobile .ar-hp {
  width: 130px;
}

html.is-mobile .ar-countdown {
  top: 32%;
  font-size: 160px;
}

html.is-mobile .ar-banner {
  top: 24%;
  font-size: 56px;
}

html.is-mobile .ar-toast {
  bottom: 220px;
  max-width: calc(100% - 40px);
  font-size: 24px;
  white-space: normal;
  text-align: center;
}

/* 아래 입력 줄: 안내 / 입력칸 / 콤보·포기 */
html.is-mobile .ar-bottom {
  height: 200px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    'hint hint'
    'input input'
    'combo quit';
  align-items: center;
  gap: 6px 12px;
  padding: 8px 16px 10px;
  border-top-width: 3px;
}

html.is-mobile .ar-typing {
  display: contents;
}

html.is-mobile .ar-hint {
  grid-area: hint;
  overflow: hidden;
  font-size: 22px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.is-mobile .ar-input {
  grid-area: input;
  width: 100%;
  height: 64px;
  font-size: 36px;
  caret-color: transparent;
}

html.is-mobile .ar-input[readonly] {
  opacity: 1;
}

html.is-mobile .ar-input.is-off {
  opacity: 0.6;
}

html.is-mobile .ar-ime {
  display: none;
}

html.is-mobile .ar-combo {
  grid-area: combo;
  width: auto;
  font-size: 34px;
}

html.is-mobile .ar-quit {
  grid-area: quit;
  width: 270px;
  height: 56px;
  font-size: 22px;
}

/* 창: 틀 안에서 스크롤, 단추는 손가락 크기 */
html.is-mobile .ar-panel {
  top: 236px; /* 위 제목·시간·HP 게이지(6명이면 두 줄) 아래 */
  left: 14px;
  right: 14px;
  width: auto;
  max-height: calc(var(--stage-h, 1080px) - 256px);
  margin-left: 0;
  padding: 18px 18px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-width: 4px;
  border-radius: 26px;
  -webkit-overflow-scrolling: touch;
}

html.is-mobile .ar-panel.ar-lobby {
  top: 12px;
  bottom: 12px;
  width: auto;
  max-height: none;
  margin-left: 0;
  padding: 16px 16px 18px;
}

html.is-mobile .ar-panel h2 {
  font-size: 36px;
}

html.is-mobile .ar-panel h2.is-win {
  font-size: 56px;
}

html.is-mobile .ar-lobby-head {
  flex-wrap: wrap;
  gap: 8px 12px;
}

html.is-mobile .ar-mode {
  font-size: 18px;
}

html.is-mobile .ar-lobby-body {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

html.is-mobile .ar-lobby .ar-rules {
  font-size: 24px;
}

html.is-mobile .ar-roster-head {
  font-size: 24px;
}

html.is-mobile .ar-lobby .ar-roster-row b {
  font-size: 24px;
}

html.is-mobile .ar-lobby .ar-roster-row {
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 22px;
}

html.is-mobile .ar-rank-list li {
  grid-template-columns: 30px minmax(0, 1fr) auto 90px;
  font-size: 21px;
}

html.is-mobile .ar-status,
html.is-mobile .ar-lobby .ar-info,
html.is-mobile .ar-message {
  font-size: 22px;
}

html.is-mobile .ar-buttons {
  flex-wrap: wrap;
  gap: 12px;
}

html.is-mobile .ar-button {
  flex: 1 1 0;
  min-width: 0;
  height: 76px;
  padding: 0 14px;
  font-size: 28px;
}

html.is-mobile .ar-lobby .ar-buttons .ar-button:first-child,
html.is-mobile .ar-result .ar-button {
  flex-basis: 100%;
}

html.is-mobile .ar-sub {
  font-size: 20px;
}

html.is-mobile .ar-place {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 2px 10px;
  font-size: 20px;
}

html.is-mobile .ar-place small {
  grid-column: 1 / -1;
  font-size: 17px;
}

html.is-mobile .ar-rewards {
  font-size: 22px;
}
