:root {
  --ink: #2b2118;
  --paper: #fff8ec;
  --paper-2: #f6ead6;
  --line: rgba(80, 52, 30, 0.16);
  --muted: #7d6a58;
  --red: #d9473e;
  --red-dark: #a83228;
  --gold: #f2b23a;
  --gold-soft: #ffe7a8;
  --night: rgba(27, 21, 48, 0.72);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 10, 0, 0.25);
  --font: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Microsoft JhengHei", "Microsoft YaHei", "PingFang TC", "PingFang SC", "Hiragino Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #1b1530;
  color: var(--ink);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea, select { -webkit-user-select: text; user-select: text; }

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

[hidden] { display: none !important; }

button {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.12s, background 0.2s, opacity 0.2s;
}
button:active:not(:disabled) { transform: scale(0.96); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary {
  background: linear-gradient(180deg, #ef5a48, var(--red));
  border-color: var(--red-dark);
  color: #fff;
  box-shadow: 0 3px 0 var(--red-dark);
}
button.big { font-size: 17px; padding: 13px 22px; }
button.ghost { background: transparent; border-color: transparent; }
button.link {
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: underline;
  font-weight: 500;
  padding: 6px;
}
button.selected { background: var(--ink); color: #fff; border-color: var(--ink); }

input, textarea, select {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--red); font-weight: 700; margin: 8px 0 0; }
.empty { color: var(--muted); text-align: center; padding: 18px 0; }

/* ---------- 이름표와 말풍선 ---------- */

#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.tag {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  will-change: transform;
}
.tag .name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(30, 20, 40, 0.55);
  padding: 2px 8px;
  border-radius: 999px;
}
.tag.me .name { background: rgba(217, 71, 62, 0.85); }
.tag .bubble {
  max-width: 220px;
  white-space: normal;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  position: relative;
  animation: pop 0.2s ease-out;
}
.tag .bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: #fff;
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- 게임 화면 ---------- */

#hud {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
}
#hud > * { pointer-events: auto; }
#hud-left { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.92);
  box-shadow: var(--shadow);
  font-weight: 800;
}
#gold-box b { font-size: 18px; min-width: 2ch; }
.coin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2b8, #f2b23a 55%, #c47f12);
  box-shadow: inset 0 0 0 2px rgba(150, 90, 10, 0.4);
}
#gold-box.bump { animation: bump 0.5s; }
@keyframes bump { 30% { transform: scale(1.18); } }
#room-badge { font-size: 13px; font-weight: 700; }
#room-swatch { width: 12px; height: 12px; border-radius: 50%; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
#room-count { color: var(--muted); font-weight: 600; }

#menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 70%; }
#menu button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(255, 248, 236, 0.92);
  box-shadow: var(--shadow);
  border: none;
}
#menu .ico { font-size: 15px; }

#bottom-bar {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  width: min(560px, calc(100% - 32px));
  pointer-events: none;
}
#bottom-bar > *, #lantern-bar > * { pointer-events: auto; }
#lantern-bar { display: flex; gap: 10px; }
#bottom-bar button { box-shadow: var(--shadow), 0 3px 0 rgba(0,0,0,0.15); }
#bottom-bar button.primary { box-shadow: var(--shadow), 0 3px 0 var(--red-dark); }
button.glow { animation: glow 1.6s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(255, 200, 90, 0.35), var(--shadow); } }
button.shoot { display: flex; gap: 8px; align-items: center; padding: 15px 28px; font-size: 18px; }

#joystick {
  position: fixed;
  left: max(28px, env(safe-area-inset-left));
  bottom: max(28px, env(safe-area-inset-bottom));
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  touch-action: none;
}
#joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 248, 236, 0.9);
  box-shadow: var(--shadow);
}

#chat {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(96px, calc(env(safe-area-inset-bottom) + 84px));
  display: flex;
  gap: 8px;
  align-items: center;
}
#chat-toggle { width: 48px; height: 48px; padding: 0; font-size: 22px; box-shadow: var(--shadow); }
#chat-form {
  display: flex;
  gap: 6px;
  background: rgba(255, 248, 236, 0.95);
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  order: -1;
}
#chat-form input { width: min(220px, 52vw); padding: 8px 12px; border-radius: 999px; }
#chat-form button { padding: 8px 14px; }

#hint {
  position: fixed;
  left: 50%;
  top: max(112px, calc(env(safe-area-inset-top) + 106px));
  transform: translateX(-50%);
  font-size: 13px;
  color: #fff;
  background: var(--night);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: calc(100% - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.6s;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: max(100px, calc(env(safe-area-inset-bottom) + 90px));
  transform: translateX(-50%) translateY(10px);
  padding: 10px 18px;
  background: var(--night);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

body.photo-mode #hud, body.photo-mode #chat, body.photo-mode #hint { opacity: 0.25; }

/* ---------- 시작 화면 ---------- */

.start {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(ellipse at 50% 30%, rgba(255, 170, 90, 0.18), rgba(15, 10, 30, 0.55));
}
.start-card {
  width: min(380px, 100%);
  background: var(--paper);
  border-radius: 26px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: var(--shadow);
}
.start-card h1 { margin: 6px 0 4px; font-size: 30px; letter-spacing: 0.5px; }
.start-card form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.logo { display: flex; justify-content: center; gap: 8px; height: 54px; align-items: flex-end; }
.logo span {
  width: 30px;
  height: 40px;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
  border-radius: 4px;
  animation: float 3s ease-in-out infinite;
}
.logo span:nth-child(1) { background: linear-gradient(90deg, #e8483f 50%, #f6c933 50%); }
.logo span:nth-child(2) { background: linear-gradient(90deg, #6cc4ee 33%, #f59ac0 33% 66%, #fff 66%); height: 48px; animation-delay: -1s; }
.logo span:nth-child(3) { background: linear-gradient(90deg, #5cbf6b 50%, #f5923a 50%); animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- 창 ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 10, 30, 0.45);
  animation: fade 0.18s ease-out;
  z-index: 20;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(440px, 100%);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 24px;
  box-shadow: var(--shadow);
  animation: rise 0.22s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
@keyframes rise { from { transform: translateY(16px) scale(0.98); opacity: 0; } }
.modal-title { margin: 0; padding: 20px 22px 4px; font-size: 20px; }
.modal-body { padding: 10px 22px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-body p { line-height: 1.55; margin: 6px 0; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 22px 20px; }
.modal-actions button { min-width: 88px; }
.modal.wishbox, .modal.top, .modal.sponsors { width: min(560px, 100%); }

.code-row { display: flex; gap: 8px; align-items: center; }
.code-value {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  background: #fff;
  border: 1.5px dashed var(--gold);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  -webkit-user-select: all;
  user-select: all;
}

.room-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.room {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 12px 14px;
  text-align: left;
  background: #fff;
}
.room.current { border-color: var(--gold); background: #fffaf0; }
.room-swatch { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.15); }
.room-name { flex: 1; font-size: 16px; }
.room-tag { font-size: 12px; color: var(--muted); background: var(--paper-2); padding: 2px 8px; border-radius: 999px; }
.room-tag.full { color: var(--red); }
.load-dot { width: 10px; height: 10px; border-radius: 50%; }
.load-dot.ok { background: #3fb35a; }
.load-dot.busy { background: #f2c12c; }
.load-dot.full { background: #e0453b; }
.room-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 56px; text-align: right; }

.notice-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child { border-bottom: none; }
.notice-number {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.notice-item h3 { margin: 3px 0 6px; font-size: 16px; }
.notice-item p { margin: 4px 0; font-size: 14px; color: #4f4033; }

/* 엽서 */
.postcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; padding-bottom: 6px; }
.postcard {
  background: #fffdf7;
  border-radius: 14px;
  box-shadow: 0 2px 0 var(--line), 0 6px 16px rgba(60, 30, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--line);
}
.postcard-stripe { display: flex; height: 14px; }
.postcard-stripe i { flex: 1; }
.postcard-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 12px 4px; font-size: 12px; color: var(--muted); }
.postcard-date { font-weight: 800; color: var(--ink); font-size: 13px; margin-right: auto; }
.postcard-room, .postcard-visibility, .postcard-name { background: var(--paper-2); padding: 2px 8px; border-radius: 999px; }
.postcard-visibility.private { background: #ece6f6; }
.postcard-lines { list-style: none; margin: 0; padding: 4px 12px 8px; }
.postcard-lines li { display: grid; grid-template-columns: 10px auto 1fr; gap: 6px; align-items: baseline; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.postcard-lines li:last-child { border-bottom: none; }
.postcard-lines i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.15); align-self: center; }
.postcard-lines b { font-size: 12px; color: var(--muted); white-space: nowrap; }
.postcard-lines span { word-break: break-word; line-height: 1.4; }
.postcard-cheers { display: flex; gap: 12px; padding: 6px 12px 10px; font-size: 13px; font-weight: 700; color: #5b4636; }

.cheer-row { display: flex; gap: 10px; margin: 14px 0 4px; }
.cheer { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 18px; padding: 12px; }
.cheer .emoji { font-size: 26px; }
.cheer .label { font-size: 13px; color: var(--muted); }
.cheer b { font-size: 18px; }
.cheer:disabled { opacity: 1; background: var(--paper-2); border-color: var(--gold); }
.cheer.pop .emoji { animation: bump 0.5s; }

.top-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border-radius: 16px; padding: 10px 12px; background: #fff; }
.top-item .rank { font-weight: 900; font-size: 18px; width: 26px; text-align: center; color: var(--red); }
.mini-stripe { display: flex; width: 28px; height: 36px; border-radius: 4px; overflow: hidden; clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%); flex: none; }
.mini-stripe i { flex: 1; }
.top-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.top-info b { font-size: 14px; }
.top-wish { font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-cheers { font-size: 13px; white-space: nowrap; }

.launch-options { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.launch-option { display: flex; flex-direction: column; gap: 4px; text-align: left; border-radius: 16px; padding: 14px; }
.launch-option span { font-weight: 500; font-size: 13px; color: var(--muted); }
.launch-option.selected { background: #fff4e0; border-color: var(--gold); color: var(--ink); box-shadow: 0 0 0 2px var(--gold); }
.launch-option.selected span { color: #6b5440; }

.fortune-panel { text-align: center; padding: 8px 0 4px; }
.fortune-tier {
  display: inline-block;
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  padding: 10px 30px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ef5a48, var(--red-dark));
  box-shadow: 0 6px 0 rgba(120, 30, 20, 0.5);
  animation: stamp 0.5s cubic-bezier(.2,1.6,.4,1);
}
.fortune-good .fortune-tier { background: linear-gradient(180deg, #f6b13a, #d1801a); }
.fortune-great .fortune-tier { background: linear-gradient(180deg, #ffd65a, #e09a12); color: #5a2d00; box-shadow: 0 0 30px rgba(255, 200, 60, 0.8), 0 6px 0 #a86a00; }
@keyframes stamp { from { transform: scale(2.2) rotate(-8deg); opacity: 0; } }
.fortune-line { font-size: 16px; margin: 18px 0 8px; }
.fortune-gold { font-size: 22px; font-weight: 900; color: #c47f12; }

.info-panel { display: flex; flex-direction: column; gap: 10px; }
.info-panel .big { align-self: center; }
.info-result { text-align: center; font-weight: 700; min-height: 1.4em; }
.donate { background: var(--paper-2); border-radius: 16px; padding: 12px 14px; }
.donate-link {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 12px;
  border-radius: 999px;
  background: #ff5e5b;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.sponsor-list { list-style: none; margin: 0; padding: 0; }
.sponsor-list li { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.sponsor-list .rank { width: 28px; text-align: center; font-weight: 800; color: var(--muted); }
.sponsor-name { flex: 1; font-weight: 700; }
.sponsor-amount { font-weight: 800; color: #c47f12; font-variant-numeric: tabular-nums; }
.sponsor-list .tier-4 .sponsor-name, .sponsor-list .tier-3 .sponsor-name { color: var(--red); }

.settings-panel { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field-value { font-weight: 800; font-size: 16px; }
.toggle { display: flex; gap: 6px; }
.toggle button { flex: 1; }
.settings-panel .code-row input { flex: 1; }

.photo-panel img { width: 100%; border-radius: 14px; display: block; box-shadow: var(--shadow); -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.modal.photo { width: min(640px, 100%); }

/* ---------- 풍등 만들기 ---------- */

#maker {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(15, 10, 30, 0.5);
}
.maker-sheet {
  width: min(860px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.maker-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.maker-sheet h2 { margin: 0; font-size: 20px; }
#maker-desc { margin: 4px 20px 0; font-size: 14px; }
.maker-main { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 12px 20px; overflow-y: auto; min-height: 0; }
.maker-preview-wrap {
  background: radial-gradient(circle at 50% 60%, rgba(255, 190, 100, 0.35), rgba(255, 190, 100, 0) 65%), linear-gradient(180deg, #2a2350, #463a6e);
  border-radius: 20px;
  min-height: 280px;
  position: relative;
}
#maker-preview { position: absolute; inset: 0; width: 100%; height: 100%; }
.maker-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row-title { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: var(--muted); margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 46px; padding: 8px; border-radius: 16px; background: #fff; border: 1.5px dashed var(--line); }
.chips.added { background: #fff8e6; border-color: var(--gold); }
.chip { display: flex; align-items: center; gap: 6px; padding: 7px 12px 7px 7px; font-size: 14px; background: #fff; }
.chip i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,0.15); }
.maker-step2 .chip.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.maker-step2 .chip.filled::after { content: "✓"; color: #3f9a55; font-weight: 900; }
.meanings { list-style: none; margin: 4px 0 0; padding: 10px 12px; border-radius: 14px; background: var(--paper-2); display: flex; flex-direction: column; gap: 6px; }
.meanings li { display: grid; grid-template-columns: 12px auto 1fr; gap: 6px; align-items: baseline; font-size: 13px; animation: fade 0.25s ease-out; }
.meanings i { width: 12px; height: 12px; border-radius: 50%; align-self: center; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.meanings b { white-space: nowrap; }
.meanings b::after { content: " :"; color: var(--muted); }
.meanings span { color: #5b4636; }
.meaning { display: flex; flex-direction: column; gap: 2px; background: var(--paper-2); border-radius: 14px; padding: 10px 12px; margin-top: 4px; }
.meaning:empty, .meaning b:empty + span:empty { display: none; }
#maker-meaning-color { font-size: 15px; display: flex; align-items: center; gap: 6px; }
#maker-meaning-color::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--swatch, transparent); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2); }
#maker-meaning { font-size: 14px; color: #5b4636; }
.prompt { font-weight: 700; margin: 4px 0 0; }
#maker-wish-box { position: relative; }
#maker-wish { resize: none; min-height: 92px; line-height: 1.5; padding-bottom: 26px; }
#maker-count { position: absolute; right: 12px; bottom: 8px; font-size: 12px; color: var(--muted); }
.maker-sheet footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 20px 18px; }
#maker[data-step="1"] .maker-step2, #maker[data-step="1"] #maker-back, #maker[data-step="1"] #maker-done { display: none; }
#maker[data-step="2"] .maker-step1, #maker[data-step="2"] #maker-next { display: none; }
body.maker-open #bottom-bar, body.maker-open #joystick, body.maker-open #chat { display: none; }

@media (max-width: 640px) {
  .maker-main { grid-template-columns: 1fr; }
  .maker-preview-wrap { min-height: 200px; }
  #menu { max-width: 62%; }
  #menu button span:not(.ico) { display: none; }
  #menu button { padding: 9px 10px; }
  .modal-title { font-size: 18px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .maker-main { grid-template-columns: 1fr 1.4fr; }
  .maker-preview-wrap { min-height: 160px; }
}
