@font-face {
  font-family: "DungGeunMo";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_two@1.0/DungGeunMo.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}

:root {
  --bg-top: #ffb9df;
  --bg-mid: #ffd7ef;
  --bg-bottom: #fff0a4;
  --panel: #fff8ff;
  --panel-soft: #fff2fb;
  --panel-yellow: #fff3a6;
  --panel-blue: #dff6ff;
  --line-dark: #8f4d88;
  --line-pink: #ff68b6;
  --line-hot: #f03b97;
  --line-gold: #cc8f13;
  --ink: #6d3375;
  --ink-soft: #8e5c93;
  --shadow-pixel: 0 6px 0 #d9579d;
  --shadow-soft: 0 8px 18px rgba(188, 83, 140, 0.18);
  --content-width: 1240px;
}

body[data-mode="nickname"] {
  --mode-main: #ffd6f2;
  --mode-sub: #fff3b0;
}

body[data-mode="team"] {
  --mode-main: #d8f6ff;
  --mode-sub: #ffe1f4;
}

body[data-mode="buddy"] {
  --mode-main: #e1ffd9;
  --mode-sub: #ffd8f0;
}

body[data-mode="doll"] {
  --mode-main: #ffe5cc;
  --mode-sub: #fff0b2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Gaegu", cursive;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 22%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 52%, var(--bg-bottom) 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.17) 2px, transparent 2px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.17) 2px, transparent 2px);
  background-size: 24px 24px;
  opacity: 0.55;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.55) 0 10px, transparent 11px),
    radial-gradient(circle at 80% 24%, rgba(255, 255, 255, 0.42) 0 8px, transparent 9px),
    radial-gradient(circle at 72% 74%, rgba(255, 255, 255, 0.38) 0 9px, transparent 10px),
    radial-gradient(circle at 22% 82%, rgba(255, 255, 255, 0.3) 0 11px, transparent 12px);
}

button,
input,
a {
  font: inherit;
  color: inherit;
}

button,
a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

input,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

body.메뉴열림 {
  overflow: hidden;
}

:focus-visible {
  outline: 4px solid rgba(240, 59, 151, 0.3);
  outline-offset: 4px;
}

.skip-link,
.숨김알림 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  padding: 12px 16px;
  background: #fffdf6;
  border: 4px solid var(--line-dark);
  box-shadow: var(--shadow-pixel);
  z-index: 100;
}

.배경별 {
  position: fixed;
  z-index: -1;
  opacity: 0.9;
  pointer-events: none;
}

.배경별-하트 {
  top: 112px;
  left: 26px;
  width: 150px;
  height: 150px;
  background:
    linear-gradient(135deg, #ffe681, #ffb3df);
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.35);
  clip-path: polygon(50% 100%, 0 48%, 18% 18%, 50% 38%, 82% 18%, 100% 48%);
}

.배경별-리본 {
  right: 32px;
  bottom: 72px;
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.25) 0 28%, transparent 29%),
    linear-gradient(135deg, #ffd4ef, #bff1ff 60%, #fff1aa);
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.32);
  clip-path: polygon(50% 0, 62% 18%, 100% 18%, 72% 44%, 82% 100%, 50% 62%, 18% 100%, 28% 44%, 0 18%, 38% 18%);
}

.상단,
.페이지,
.바닥글안쪽 {
  width: min(var(--content-width), calc(100% - 28px));
  margin: 0 auto;
}

.상단 {
  position: relative;
  z-index: 10;
  padding-top: 18px;
}

.상단안쪽 {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 4px solid var(--line-dark);
  background: linear-gradient(180deg, #fff6ff, #ffe2f4);
  box-shadow: var(--shadow-pixel), var(--shadow-soft);
}

.로고 {
  display: grid;
  gap: 4px;
  min-height: 62px;
  padding: 10px 18px;
  border: 4px solid #ff9bd2;
  background: linear-gradient(180deg, #fffdfd, #fff1f9);
  box-shadow: inset 0 -6px 0 #ffd0ea;
}

.로고작은글,
.상단표시판,
.픽셀메모,
.모드번호,
.빈결과라벨,
.결과모드,
.문서메타,
.상단메뉴 a {
  font-family: "DungGeunMo", monospace;
}

.로고작은글 {
  font-size: 0.65rem;
  color: #9d72a4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.로고 strong {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  color: #ee4194;
}

.상단표시판 {
  display: grid;
  gap: 8px;
  justify-items: end;
  font-size: 0.7rem;
  color: #fffdf3;
}

.상단표시판 span {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 28px;
  padding: 0 10px;
  border: 3px solid #fff6d4;
  background: linear-gradient(180deg, #ff94d0, #ff6ab9);
  box-shadow: 0 4px 0 #ca4d8b;
}

.메뉴버튼,
.오프캔버스닫기 {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 52px;
  min-height: 52px;
  border: 4px solid var(--line-dark);
  background: linear-gradient(180deg, #fff4aa, #ffc852 48%, #ff95d8);
  box-shadow: 0 6px 0 #c97a1d;
}

.오프캔버스닫기::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(255,255,255,0.45);
}

.메뉴버튼 span {
  display: block;
  width: 22px;
  height: 4px;
  margin: 2px 0;
  background: #fffef8;
  box-shadow: 2px 2px 0 rgba(137, 56, 109, 0.3);
}

.오프캔버스닫기 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 3px solid var(--line-dark);
  background: linear-gradient(180deg, #fff1aa, #ffd867);
  box-shadow: 0 4px 0 #d48b17;
  color: #6a326f;
  font-family: "DungGeunMo", monospace;
  font-size: 1rem;
  line-height: 1;
}

.페이지 {
  padding: 26px 0 74px;
}

.홈페이지 {
  display: grid;
  gap: 26px;
  padding-bottom: 26px;
}

.게임셸 {
  display: grid;
  gap: 20px;
  padding: 18px;
  border: 6px solid var(--line-dark);
  background: linear-gradient(180deg, #ffcbeb 0%, #ffe8f6 52%, #fff6c5 100%);
  box-shadow: 0 10px 0 #b45e8b, 0 20px 30px rgba(164, 78, 129, 0.2);
}

.상단행,
.게임셸머리,
.패널머리,
.입력머리,
.결과머리,
.오프캔버스머리,
.바닥글정보,
.문서카드,
.이름패널안쪽 {
  display: grid;
  gap: 10px;
}

.오프캔버스제목줄 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.게임셸머리 {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 4px solid var(--line-dark);
  background: linear-gradient(180deg, #fffefc, #fff2fb);
}

.게임셸머리 > div,
.패널머리 > div,
.입력머리 > div,
.결과머리 > div {
  display: grid;
  gap: 12px;
}

.게임셸머리 h1,
.패널머리 h2,
.입력머리 h3,
.단일결과 h3,
.문서카드 h1,
.문단묶음 h2,
.무대창 h2,
.빈결과 h3 {
  margin: 0;
  font-size: clamp(1.95rem, 3vw, 3.2rem);
  line-height: 1.04;
}

.게임셸머리 h1 {
  display: block;
  width: 100%;
  white-space: normal;
  line-height: 1.1;
}

.게임부제,
.패널설명,
.무대안내,
.오프설명,
.사이드목록,
.결과본문,
.빈결과 p,
.가이드칸 span,
.문서카드 p,
.문단묶음 p,
.문서카드 li,
.input-help {
  margin: 0;
  font-family: "Cute Font", cursive;
  font-size: clamp(1.45rem, 2vw, 1.95rem);
  line-height: 1.15;
  color: var(--ink-soft);
}

.상단행 {
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.이름패널안쪽 {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.무대패널,
.조작패널,
.결과패널,
.문서카드,
.오프캔버스안쪽 {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 4px solid var(--line-dark);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  box-shadow: var(--shadow-pixel), var(--shadow-soft);
}

.무대패널 {
  align-content: start;
  background: linear-gradient(180deg, var(--mode-sub), #fff6db 100%);
}

.무대패널-메인 {
  grid-template-rows: auto 1fr;
}

.프리뷰패널 {
  background: linear-gradient(180deg, #fffafc, #fff0d9 100%);
}

.무대장식,
.무대창,
.입력영역,
.선택판,
.결과패널,
.단일결과,
.빈결과,
.생성중,
.문단묶음 {
  display: grid;
  gap: 14px;
}

.모드입력폼 {
  display: grid;
  gap: 16px;
}

.무대창,
.입력영역,
.옵션상자,
.빈결과,
.단일결과,
.생성중,
.가이드칸,
.문단묶음 {
  padding: 16px;
  border: 4px solid #e89bc8;
  background: linear-gradient(180deg, #fffefe, #fff4fb);
  box-shadow: inset 0 -6px 0 #ffd2ea;
}

.무대창 {
  min-height: 270px;
  align-content: center;
  justify-items: center;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.65) 0 20%, transparent 21%),
    linear-gradient(180deg, #fff5ff, #ffe7f6 58%, #fff1c7 100%);
}

.무대안내 {
  color: #a56dad;
}

.무대창 h2,
.결과이름 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  color: #f04297;
  text-align: center;
  text-shadow: 3px 3px 0 rgba(255, 255, 255, 0.85);
}

.짧은메모,
.칩묶음,
.결과태그,
.결과액션,
.바닥글링크,
.오프링크묶음 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.메모조각,
.칩,
.결과태그 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 3px solid #d98abc;
  background: linear-gradient(180deg, #fffefb, #ffeef8);
  box-shadow: 0 4px 0 #efb0d2;
  font-family: "Cute Font", cursive;
  font-size: 1.55rem;
  color: #8a5d8f;
}

.픽셀메모 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  margin: 0;
  padding: 7px 12px;
  border: 3px solid var(--line-gold);
  background: linear-gradient(180deg, #fff0a6, #ffd95b);
  box-shadow: 4px 4px 0 #d98a16;
  color: #7a4f15;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.패널머리 {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.모드줄 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.모드버튼 {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 122px;
  padding: 14px;
  border: 4px solid #d88cbc;
  background: linear-gradient(180deg, #fffdfb, #fff0fa);
  box-shadow: 0 5px 0 #efb1d2;
  text-align: left;
}

.모드버튼 strong,
.가이드칸 strong {
  font-size: 1.55rem;
  line-height: 1.12;
}

.가이드칸 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  align-items: center;
  gap: 8px 12px;
}

.가이드칸 strong,
.가이드칸 span {
  display: block;
}

.가이드칸 .픽셀메모 {
  margin-bottom: 0;
}

.가이드칸 strong {
  margin-top: 0;
}

.가이드칸 span {
  grid-column: 1 / -1;
}

.모드버튼 small {
  font-family: "Cute Font", cursive;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink-soft);
}

.모드번호 {
  font-size: 0.68rem;
  color: #d05f9b;
}

.모드버튼.선택됨,
.칩.선택됨,
.칩:hover,
.모드버튼:hover {
  transform: translateY(-2px);
}

.모드버튼.선택됨 {
  border-color: var(--line-dark);
  background: linear-gradient(180deg, var(--mode-main), #fff8d4);
  box-shadow: 0 6px 0 #c46c95;
}



.입력상자 {
  display: grid;
  gap: 0;
}

.입력영역 {
  gap: 10px;
}

.옵션상자 legend {
  font-size: 1.45rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 4px solid var(--line-dark);
  background: #fffef8;
  color: var(--ink);
  font-size: 1.45rem;
  box-shadow: inset 0 -4px 0 #ffd8eb;
}

input::placeholder {
  color: #be8db7;
}

.선택판 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.옵션상자 {
  min-width: 0;
  margin: 0;
}

.옵션상자 legend {
  padding: 0 6px;
}

.칩 {
  min-height: 40px;
  padding: 0 14px;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.칩.선택됨 {
  border-color: var(--line-dark);
  background: linear-gradient(180deg, #fff1af, #ffd975);
  color: #7a4a1d;
  box-shadow: 0 5px 0 #d98f1d;
}

.조작바 {
  display: flex;
  justify-content: center;
}

.픽셀버튼 {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 4px solid var(--line-dark);
  background: linear-gradient(180deg, #fff1aa, #ffc84f 46%, #ff95d6 100%);
  box-shadow: 0 6px 0 #c9791c;
  font-family: "DungGeunMo", monospace;
  font-size: 0.76rem;
  color: #6c3170;
  text-transform: uppercase;
}

.마법버튼 {
  min-width: min(320px, 100%);
  background: linear-gradient(180deg, #fff7ff 0%, #ffb7eb 28%, #ff7fc5 60%, #ffe06f 100%);
  border-color: #8f4d88;
  box-shadow: 0 8px 0 #c05b97, 0 16px 24px rgba(191, 86, 146, 0.22);
  color: #7a2469;
}

.픽셀버튼:active,
.모드버튼:active,
.칩:active,
.메뉴버튼:active,
.오프캔버스닫기:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}

.큰버튼 {
  min-height: 56px;
  padding: 0 20px;
}

.작은버튼 {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.7rem;
}

.보조버튼 {
  background: linear-gradient(180deg, #dff7ff, #aee9ff 48%, #ffd8f0 100%);
  box-shadow: 0 6px 0 #72b2d6;
}

.결과패널 {
  align-content: start;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.이름패널 {
  align-content: start;
}

.빈결과,
.생성중,
.단일결과 {
  min-height: 380px;
  align-content: center;
}

.단일결과 {
  justify-items: center;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
}

.결과본문,
.결과모드 {
  text-align: center;
}

.빈결과 {
  text-align: center;
}

.빈결과라벨,
.결과모드 {
  margin: 0;
  font-size: 0.72rem;
  color: #d55f9d;
  letter-spacing: 0.08em;
}

.생성중 {
  justify-items: center;
  text-align: center;
  padding-top: 28px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, #fff8ff, #ffe4f6 52%, #fff1bd 100%);
}

.처리안내 {
  margin: 0;
  font-family: "Cute Font", cursive;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  color: #c6468b;
}

.생성별 {
  display: flex;
  gap: 12px;
}

.생성별 span {
  width: 18px;
  height: 18px;
  background: linear-gradient(180deg, #fff3a7, #ff7fc2);
  border: 3px solid var(--line-dark);
  animation: 반짝 0.8s infinite alternate;
}

.공주별 span {
  width: 22px;
  height: 22px;
  background: linear-gradient(180deg, #fff7b5, #ff9fdb 55%, #bfeeff 100%);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.45);
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 57%, 79% 93%, 50% 72%, 21% 93%, 32% 57%, 2% 35%, 39% 34%);
}

.생성별 span:nth-child(2) {
  animation-delay: 0.12s;
}

.생성별 span:nth-child(3) {
  animation-delay: 0.24s;
}

.결과태그 {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.결과태그 span {
  min-width: 0;
  padding: 0 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.결과액션 {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 220px));
  justify-content: center;
}

.가이드띠 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.모드패널,
.이름패널 {
  width: 100%;
}

.가이드칸 {
  border-color: var(--line-dark);
  background: linear-gradient(180deg, #fff9fd, #fff1c7);
}

.바닥글 {
  padding: 0 0 36px;
}

.바닥글안쪽 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  padding: 18px;
  border: 4px solid var(--line-dark);
  background: linear-gradient(180deg, #fff6ff, #ffe8f6);
  box-shadow: var(--shadow-pixel);
}

.바닥글정보 p {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 700;
}

.바닥글정보 small {
  font-family: "Cute Font", cursive;
  font-size: 1.45rem;
  color: var(--ink-soft);
}

.오버레이 {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(100, 44, 97, 0.38);
  backdrop-filter: blur(3px);
}

.오프캔버스 {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: min(360px, 100%);
  height: 100vh;
  padding: 18px 14px;
}

.오프캔버스안쪽 {
  height: 100%;
  overflow-y: auto;
  align-content: start;
  grid-auto-rows: max-content;
  background: linear-gradient(180deg, #fff6ff, #ffe9f6 62%, #fff3c9 100%);
}

.오프섹션 {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 4px solid #da95c0;
  background: linear-gradient(180deg, #fffdfd, #fff0f9);
  box-shadow: inset 0 -5px 0 #ffd7eb;
}

.사이드목록 {
  padding-left: 22px;
}

.상단메뉴 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.상단메뉴 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 3px solid var(--line-dark);
  background: linear-gradient(180deg, #fff1aa, #ffd867);
  box-shadow: 0 4px 0 #d48b17;
  font-size: 0.66rem;
  color: #724716;
}

.문서페이지 {
  max-width: none;
}

.문서셸 {
  gap: 18px;
}

.문서메뉴버튼 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.문서패널 {
  align-content: start;
}

.문서미리보기 {
  min-height: 270px;
}

.문서섹션묶음 {
  display: grid;
  gap: 14px;
}

.문서카드 {
  padding: 24px;
}

.문서메타 {
  margin: 0;
  font-size: 0.68rem;
  color: #a5729c;
}

.문서강조 {
  padding: 12px 14px;
  border: 3px solid #e18cbf;
  background: linear-gradient(180deg, #fff8fd, #fff0f9);
  box-shadow: inset 0 -4px 0 #ffd7ec;
}

.문서링크묶음 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.문단묶음 h2 {
  font-size: clamp(1.5rem, 2.2vw, 2.2rem);
}

.문단묶음 a,
.문서카드 a,
.바닥글 a,
.오프링크묶음 a {
  color: #d93d91;
}

.숨김 {
  display: none !important;
}

@keyframes 반짝 {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

@media (max-width: 1120px) {
  .상단행,
  .이름패널안쪽 {
    grid-template-columns: 1fr;
  }

  .무대창,
  .빈결과,
  .생성중,
  .단일결과 {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .상단안쪽,
  .게임셸머리,
  .패널머리,
  .바닥글안쪽 {
    grid-template-columns: 1fr;
  }

  .상단안쪽 {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .상단표시판 {
    display: none;
  }

  .모드줄,
  .선택판,
  .가이드띠 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .상단,
  .페이지,
  .바닥글안쪽 {
    width: min(var(--content-width), calc(100% - 18px));
  }

  .페이지 {
    padding-top: 18px;
  }

  .게임셸,
  .무대패널,
  .조작패널,
  .결과패널,
  .오프캔버스안쪽,
  .문서카드 {
    padding: 14px;
  }

  .모드줄 {
    grid-template-columns: 1fr 1fr;
  }

  .선택판,
  .가이드띠 {
    grid-template-columns: 1fr;
  }

  .모드버튼 {
    min-height: 110px;
  }

  .짧은메모,
  .칩묶음,
  .결과태그,
  .결과액션,
  .바닥글링크,
  .오프링크묶음 {
    gap: 8px;
  }

  .결과패널,
  .단일결과,
  .결과태그 {
    min-width: 0;
    max-width: 100%;
  }

  .결과태그 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    overflow: hidden;
  }

  .결과태그 span {
    width: 100%;
    padding: 0 6px;
    font-size: clamp(1.02rem, 4.1vw, 1.16rem);
  }

  .결과액션 {
    grid-template-columns: 1fr;
  }

  .게임셸머리 h1,
  .무대창 h2,
  .결과이름 {
    white-space: normal;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .로고,
  .게임셸머리 > div,
  .무대창,
  .짧은메모 {
    min-width: 0;
  }

  .로고 strong,
  .무대창 h2,
  .짧은메모 .메모조각,
  .칩묶음 .칩 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .게임셸머리 h1 {
    white-space: nowrap;
    font-size: clamp(1.5rem, 6.6vw, 2.1rem);
    letter-spacing: -0.04em;
  }

  .로고 strong {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .무대창 h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .짧은메모,
  .칩묶음 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .짧은메모 .메모조각,
  .칩묶음 .칩 {
    width: 100%;
    min-width: 0;
    padding: 0 7px;
    font-size: clamp(1.1rem, 4.4vw, 1.32rem);
  }

  .짧은메모 .메모조각 {
    min-height: 44px;
  }

  .칩묶음 .칩 {
    min-height: 42px;
  }

  .픽셀버튼 {
    width: 100%;
  }

  .조작바 {
    display: block;
  }
}
