:root {
  --bg: #14161c;
  --panel: rgba(17, 19, 26, 0.80);
  --line: rgba(255, 255, 255, 0.09);
  --text: #ece8df;
  --muted: #9a9688;
  --gold: #e8b85a;
  --gold-2: #f6d58e;
  --red: #ff5a52;
  --green: #5fd38a;
  --font: 'Noto Sans KR', 'Noto Sans JP', 'Noto Sans SC', 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --display: 'Cinzel', 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font);
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
#game { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; display: block; cursor: default; }
.hidden { display: none !important; }

button { font-family: inherit; color: inherit; cursor: pointer; }
kbd {
  display: inline-block; padding: 1px 6px; border-radius: 5px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  font-family: inherit; font-size: 0.85em;
}

/* ───── HUD ───── */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > *, #bottom > * { pointer-events: auto; }
#bottom { pointer-events: none !important; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}
.panel-title {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: 0; padding: 0; text-align: left;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; color: var(--gold);
  text-transform: uppercase;
}
.panel-title.small { font-size: 11px; margin-bottom: 6px; }
.panel-title em { font-style: normal; font-weight: 400; color: var(--muted); letter-spacing: 0; text-transform: none; }

/* 리더보드 */
#lb {
  position: absolute; left: max(12px, env(safe-area-inset-left)); top: max(12px, env(safe-area-inset-top));
  width: 232px; padding: 12px 12px 10px;
}
#lbCount { margin-left: auto; color: var(--muted); font-weight: 400; letter-spacing: 0; }
#lbList { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: r; }
#lbList li {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px;
  padding: 3px 6px; border-radius: 7px; font-size: 13px; line-height: 1.35;
}
#lbList li .rk { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
#lbList li .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
#lbList li .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
#lbList li .sc { font-weight: 800; font-variant-numeric: tabular-nums; }
#lbList li.me { background: rgba(232, 184, 90, 0.16); outline: 1px solid rgba(232, 184, 90, 0.35); }
#lbList li:nth-child(1) .rk { color: var(--gold-2); }
.bot { font-size: 9px; font-weight: 800; padding: 0 4px; border-radius: 4px; background: rgba(255,255,255,0.08); color: var(--muted); }
#lbMe { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
#lbMe:empty { display: none; }
#lb.collapsed #lbList, #lb.collapsed #lbMe { display: none; }

/* 내 상태 */
#stats {
  position: absolute; right: max(12px, env(safe-area-inset-right)); top: max(12px, env(safe-area-inset-top));
  display: grid; grid-template-columns: repeat(4, auto); gap: 4px 18px; padding: 10px 16px;
}
.stat { display: flex; flex-direction: column; align-items: flex-start; }
.stat span { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
#stScore { color: var(--gold-2); }

#feed {
  position: absolute; right: max(12px, env(safe-area-inset-right)); top: 84px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; pointer-events: none !important;
}
.feedItem {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 5px 10px; font-size: 12px; animation: feedIn 0.3s ease, fadeOut 0.6s ease 5.4s forwards;
}
.feedItem b { font-weight: 800; }
@keyframes feedIn { from { transform: translateX(20px); opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

/* 시점 */
#focusBar {
  position: absolute; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 14px;
  font-size: 13px; white-space: nowrap;
}
#focusBar button {
  border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 13px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05;
}
#focusBar.onKing button { background: rgba(255,255,255,0.08); color: var(--muted); }

#sideCtl {
  position: absolute; right: max(12px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
}
#sideCtl button {
  width: 42px; height: 42px; border-radius: 12px; font-size: 20px; font-weight: 800;
  background: var(--panel); border: 1px solid var(--line);
}
#sideCtl button:hover { border-color: rgba(232,184,90,0.5); }

/* 하단: 부활 + 기물 바 */
#bottom {
  position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
}
#army { padding: 6px; max-width: 100%; }
#armyList { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
#armyList::-webkit-scrollbar { display: none; }
.pc {
  position: relative; flex: none; width: 48px; height: 48px; padding: 0;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05); overflow: hidden;
}
.pc img { width: 40px; height: 40px; display: block; margin: 3px auto 0; pointer-events: none; }
.pc .cd {
  position: absolute; inset: 0; pointer-events: none;
  background: conic-gradient(rgba(8,10,16,0.72) calc(var(--cd, 0) * 1turn), transparent 0);
}
.pc .t {
  position: absolute; left: 0; right: 0; bottom: 2px; text-align: center;
  font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; pointer-events: none;
}
.pc.sel { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.pc.focus::after {
  content: ''; position: absolute; left: 50%; top: 3px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 6px var(--gold);
}
.pc.danger { border-color: var(--red); box-shadow: inset 0 0 10px rgba(255,90,82,0.45); }
.pc.sep { margin-left: 6px; }

#respawn { padding: 8px 10px; max-width: 100%; }
#respawnList { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rs {
  position: relative; flex: none; width: 54px; height: 58px; padding: 0;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.rs img { width: 34px; height: 34px; filter: grayscale(1) brightness(0.7); }
.rs .t { font-size: 11px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs.ready { border-color: rgba(95, 211, 138, 0.7); background: rgba(95, 211, 138, 0.12); animation: pulse 1.4s ease-in-out infinite; }
.rs.ready img { filter: none; }
.rs.ready .t { color: var(--green); }
.rs.placing { border-color: var(--gold); background: rgba(232,184,90,0.2); animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(95,211,138,0.18); } }

#check {
  position: absolute; left: 50%; top: 62px; transform: translateX(-50%);
  background: rgba(255, 90, 82, 0.92); color: #fff; font-weight: 800; font-size: 13px;
  padding: 6px 14px; border-radius: 999px; animation: blink 0.8s ease-in-out infinite alternate;
  pointer-events: none !important;
}
@keyframes blink { to { opacity: 0.55; } }

#toast {
  position: absolute; left: 50%; top: 104px; transform: translateX(-50%);
  background: rgba(10,12,18,0.9); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 14px; font-size: 13px; opacity: 0; transition: opacity 0.2s; pointer-events: none !important;
  white-space: nowrap;
}
#toast.show { opacity: 1; }

/* ───── Overlays ───── */
.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(ellipse at center, rgba(20,22,30,0.55), rgba(8,9,13,0.92));
  z-index: 10; overflow-y: auto;
}
.card {
  width: min(520px, 100%); padding: 28px 28px 24px; border-radius: 20px;
  background: rgba(20, 22, 30, 0.92); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); text-align: center;
}
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.logo canvas { width: 72px; height: 72px; }
h1 {
  margin: 0; font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff3d6, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 span { color: var(--muted); -webkit-text-fill-color: var(--muted); font-size: 0.6em; }
h2 { margin: 0 0 8px; font-size: 22px; }
.tagline { color: var(--muted); margin: 6px 0 20px; font-size: 14px; }
#joinForm { display: flex; gap: 8px; }
#nameInput {
  flex: 1; min-width: 0; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--text); outline: none;
  -webkit-user-select: text; user-select: text;
}
#nameInput:focus { border-color: var(--gold); }
.card button[type="submit"], #againBtn, #helpClose, #disc button {
  padding: 13px 22px; border-radius: 12px; border: 0; font-size: 16px; font-weight: 800;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05;
}
.card button:disabled { opacity: 0.5; cursor: default; }
#online { margin-top: 10px; font-size: 12px; color: var(--muted); min-height: 1em; }
.rules {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.04);
  text-align: left; font-size: 12.5px; line-height: 1.75; color: #cfcabe;
}
.rules b { color: var(--gold); margin-right: 6px; }
.keys { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; color: var(--muted); }
#overBy { color: var(--muted); margin: 0 0 16px; }
#overBy b { color: var(--text); }
.overStats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.overStats div { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 12px 6px; display: flex; flex-direction: column; gap: 4px; }
.overStats span { font-size: 11px; color: var(--muted); }
.overStats b { font-size: 24px; }
.helpList { text-align: left; font-size: 14px; line-height: 1.7; padding-left: 18px; margin: 8px 0 20px; color: #d6d1c5; }
.red { color: var(--red); font-weight: 800; }

/* ───── 채널 선택 ───── */
.chLabel { margin: 16px 0 8px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--gold); text-align: left; }
.channels {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px;
  max-height: 212px; overflow-y: auto; padding: 2px 4px 2px 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.ch {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 9px 10px; border-radius: 10px; text-align: left;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
}
.ch b { font-size: 13px; white-space: nowrap; }
.ch span { font-size: 11px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--r) * 100%); background: var(--green); }
.ch.on { border-color: var(--gold); background: rgba(232,184,90,0.14); box-shadow: inset 0 0 0 1px var(--gold); }
.ch.full { opacity: 0.45; cursor: not-allowed; }
.ch.full i { background: var(--red); }
.homeFoot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.langSel { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.langSel select {
  font: inherit; font-size: 13px; color: var(--text); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 8px; padding: 5px 8px; outline: none;
}
.langSel select option { background: #1b1e27; }
.muted { color: var(--muted); }
.linkBtn { margin-top: 0; background: none; border: 0; color: var(--gold-2); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#lbCh { font-size: 11px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 600; }

/* ───── 튜토리얼 ───── */
/* 확인 팝업이 떠 있는 동안 홈 화면 카드는 숨겨서 겹쳐 보이지 않게 */
body.asking #start .card { visibility: hidden; }
#tutAsk { background: rgba(8, 9, 13, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#tutAsk .card { border-color: rgba(232,184,90,0.45); }
.tutIcon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
#tutName {
  width: 100%; padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 15px; margin-bottom: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--text); outline: none;
  -webkit-user-select: text; user-select: text;
}
#tutName:focus { border-color: var(--gold); }
.btnRow { display: flex; gap: 8px; }
.btnRow button { flex: 1; }
.card button.primary, .card button.ghost {
  padding: 13px 18px; border-radius: 12px; font-size: 15px; font-weight: 800;
}
.card button.primary { border: 0; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a1d05; }
.card button.ghost { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--text); }
#tutCount { color: var(--gold-2); font-size: 18px; }

#tutPanel {
  position: fixed; left: max(12px, env(safe-area-inset-left)); top: 150px; z-index: 5; width: 320px;
  padding: 12px 14px 14px; border-radius: 14px;
  background: rgba(17, 19, 26, 0.92); border: 1px solid rgba(232,184,90,0.5);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.2s, background 0.2s;
}
#tutPanel.ok { border-color: var(--green); background: rgba(20, 44, 30, 0.94); }
.tutHead { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); }
.tutHead b { color: var(--gold-2); }
#tutSkip { background: none; border: 0; padding: 2px 0; font-size: 11px; color: var(--muted); text-decoration: underline; }
.tutBarWrap { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.1); margin: 8px 0 10px; overflow: hidden; }
#tutBar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--green)); transition: width 0.4s; }
#tutPanel h3 { margin: 0 0 6px; font-size: 16px; }
#tutPanel p { margin: 0; font-size: 13px; line-height: 1.65; color: #d9d4c8; }
#tutPanel p b { color: var(--gold-2); }
.tutHint { animation: hint 0.9s ease-in-out infinite alternate !important; border-color: var(--gold) !important; }
@keyframes hint { from { box-shadow: 0 0 0 0 rgba(255,200,60,0.0); } to { box-shadow: 0 0 0 4px rgba(255,200,60,0.75), 0 0 18px rgba(255,200,60,0.6); } }
body.tutorial #lbMe { display: none; }

/* ───── 인게임 설정 ───── */
#settings { background: rgba(8, 9, 13, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.setCard { text-align: left; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px 22px; }
.setHead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.setHead h2 { margin: 0; }
.xBtn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.05); font-size: 15px; }
.setSec { padding: 14px 0; border-bottom: 1px solid var(--line); }
.setSec:last-of-type { border-bottom: 0; }
.setSec h4 { margin: 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--gold); text-transform: uppercase; }
.setRow { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 4px 0; }
.setRow input[type=range] { flex: 1; accent-color: var(--gold); }
.setRow .num { width: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.setRow.chk { cursor: pointer; }
.setRow.chk input { width: 18px; height: 18px; accent-color: var(--gold); }
.setSelect {
  width: 100%; font: inherit; font-size: 14px; color: var(--text); background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 10px; padding: 9px 10px; outline: none;
}
.setSelect option { background: #1b1e27; }
.setDesc { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.ch.cur { border-color: var(--green); background: rgba(95,211,138,0.12); cursor: default; }
.confirmBox { margin-top: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.confirmBox p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.card button.danger { padding: 11px 18px; border-radius: 12px; border: 0; font-size: 15px; font-weight: 800; background: linear-gradient(180deg, #ff7a70, #e04a40); color: #fff; }
.setSec > .danger { width: 100%; }
body.tutorial #settings .gameOnly { display: none; }
#settings .tutOnly { display: none; }
body.tutorial #settings .tutOnly { display: block; margin-top: 12px; }

/* ───── 광고 ───── */
#start { flex-direction: column; gap: 28px; }
.adBox { width: min(728px, 100%); min-height: 90px; text-align: center; }
.adBox.inCard { margin-top: 32px; width: 100%; } /* 다시 입장 버튼과 충분히 떨어뜨림 */
.adLabel { font-size: 10px; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; }
.privLink { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--muted); }

/* ───── 공지 / 점검 ───── */
#banner {
  position: fixed; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 46px); transform: translateX(-50%);
  z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: max-content; max-width: calc(100vw - 24px); pointer-events: none;
}
#maintBar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 8px 14px; border-radius: 12px; font-size: 13px;
  background: rgba(70, 40, 6, 0.94); border: 1px solid rgba(246, 213, 142, 0.55); color: #fff3d6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
#maintBar .left { padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,0.3); }
#maintBar .left b { color: var(--gold-2); font-variant-numeric: tabular-nums; }
#maintBar.urgent { background: rgba(120, 20, 16, 0.95); border-color: rgba(255, 120, 110, 0.7); animation: blink 0.6s ease-in-out infinite alternate; }
.notice {
  padding: 8px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; text-align: center;
  background: rgba(17, 19, 26, 0.94); border: 1px solid rgba(232,184,90,0.45); color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: feedIn 0.3s ease, fadeOut 0.6s ease 9.4s forwards;
}
.notice::before { content: '📢 '; }
.notice.warn { border-color: rgba(255, 150, 80, 0.7); }
body.maint #check { top: 108px; }
body.maint #toast { top: 150px; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--gold); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* ───── 모바일 ───── */
@media (max-width: 720px) {
  #lb { width: 168px; padding: 8px 9px; }
  #lbList li { font-size: 12px; padding: 2px 4px; grid-template-columns: 18px 1fr auto; }
  #lbList li:nth-child(n+6):not(.me) { display: none; }
  #lbList .bot { display: none; }
  #stats { grid-template-columns: repeat(2, auto); gap: 2px 12px; padding: 7px 11px; }
  .stat b { font-size: 14px; }
  #feed { top: 96px; }
  #focusBar { top: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); font-size: 12px; }
  #bottom.withRespawn ~ #focusBar, #hud.respawning #focusBar { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 156px); }
  #check { top: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 112px); }
  #hud.respawning #check { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 198px); }
  #sideCtl { top: auto; transform: none; bottom: 40%; }
  #sideCtl button { width: 38px; height: 38px; font-size: 18px; }
  .pc { width: 42px; height: 42px; }
  .pc img { width: 34px; height: 34px; }
  #toast { top: 30%; }
  .card { padding: 22px 18px 18px; }
  #banner { top: max(8px, env(safe-area-inset-top)); }
  #tutPanel { top: max(8px, env(safe-area-inset-top)); left: 8px; right: 8px; width: auto; padding: 10px 12px 12px; }
  #tutPanel p { font-size: 12px; line-height: 1.55; }
  body.tutorial #lb, body.tutorial #stats, body.tutorial #feed { display: none; }
  #maintBar, .notice { font-size: 12px; padding: 6px 10px; }
  h1 { font-size: 32px; }
}
@media (max-width: 720px) and (max-height: 500px) {
  #lb.collapsed { width: auto; }
}
#disc.back .spinner { display: none; }
