/* HermitcLab 사이트
   참고: thatgamecompany(큰 문장, 어두운 바탕), Innersloth(화면 가득 새 소식, 게임 타일, 태그 붙은 소식, 두 칸 띠),
   Supergiant·Landfall(게임마다 자기 색의 넓은 띠).
   색과 글꼴은 HermitcLab 것: 소라게 껍데기 하늘색, 집게 빨강, 경고 노랑, 깊은 남색. Baloo 2 + IBM Plex Sans KR. */
:root {
  --bg: #10162b;
  --bg-2: #172042;
  --card: #1d2750;
  --line: #2c3868;
  --text: #f2eadb;
  --dim: #a9b0c8;
  --shell: #8fb6ea;
  --shell-deep: #3f6fb4;
  --crab: #e0493c;
  --crab-deep: #c8352a;
  --warn: #f5c518;
  --wordmark: #5fa596;
  --ink: #111111;
  --night: #0b0a10;
  --display: "Baloo 2", "IBM Plex Sans KR", system-ui, sans-serif;
  --body: "IBM Plex Sans KR", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 14px;
  --gutter: max(24px, calc((100% - 1180px) / 2 + 24px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding-inline: 24px; }
em { font-style: normal; }
.c-y { color: var(--warn); }
.c-r { color: var(--crab); }
.c-b { color: var(--shell); }
.pixel { image-rendering: pixelated; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--warn); outline-offset: 3px; border-radius: 6px; }

/* ───── 머리 ───── */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  transition: box-shadow .2s;
}
.top.scrolled { box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.01em; line-height: 1; }
.w-hermit { color: var(--wordmark); }
.w-clab { color: var(--crab); }
.nav { display: flex; gap: 26px; font-family: var(--display); font-weight: 600; font-size: 17px; }
.nav a { text-decoration: none; color: var(--dim); }
.nav a:hover { color: var(--text); }
.top-cta { font-size: 15px; padding: 5px 16px 4px; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; color: var(--dim); font-family: var(--display); font-weight: 700; font-size: 13px; padding: 3px 10px 2px; border-radius: 999px; cursor: pointer; }
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; gap: 5px; }
.menu-btn span { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }

/* ───── 버튼 ───── */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  padding: 8px 22px 7px;
  border: 2px solid var(--text);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn.solid { background: var(--text); color: var(--bg); }
.btn.solid:hover { background: var(--warn); border-color: var(--warn); }
.btn.solid.red { background: var(--crab); border-color: var(--crab); color: #fff; }
.btn.solid.red:hover { background: var(--crab-deep); border-color: var(--crab-deep); }
.btn.solid.yellow { background: var(--warn); border-color: var(--warn); color: var(--ink); }
.btn.solid.yellow:hover { background: #fff; border-color: #fff; }
.btn.light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn.soon, .btn.soon:hover { background: none; color: var(--dim); border: 2px dashed currentColor; cursor: default; }
.btn.light.soon, .btn.light.soon:hover { color: rgba(255, 255, 255, .7); }

/* ───── 공통 글자 ───── */
.kicker { margin: 0 0 8px; color: var(--warn); font-family: var(--display); font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.sec-title { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; margin: 0 0 24px; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: .02em; white-space: nowrap; }
.stamp { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.25; color: var(--crab); border: 4px double var(--crab); padding: 0 14px; transform: rotate(-2deg); background: rgba(10, 14, 30, .55); letter-spacing: .06em; white-space: nowrap; }
.pill { display: inline-block; font-size: 14px; font-weight: 600; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; margin: 0 0 14px; }

/* ───── 대문: Stop, You Jerk! ───── */
.feature { position: relative; isolation: isolate; min-height: min(84vh, 760px); display: flex; align-items: center; overflow: hidden; }
.feature-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: drift 30s ease-in-out infinite alternate; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(10, 10, 14, .85) 0%, rgba(10, 10, 14, .45) 45%, rgba(10, 10, 14, 0) 70%),
  linear-gradient(0deg, var(--bg) 0%, rgba(16, 22, 43, 0) 30%); }
.feature-in { padding-block: 96px 120px; }
.feature-title { margin: 4px 0 18px; }
.feature-title img { width: min(460px, 78vw); filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)); }
.feature-line { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; margin: 0 0 28px; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.fl-big { display: block; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin-bottom: 8px; }
.fl-sub { display: block; color: var(--warn); }
.fl-sub.red { color: #ff8a7a; }
button.btn { cursor: pointer; background: none; }
.stamp.big { font-size: clamp(40px, 5.6vw, 76px); border-width: 6px; padding: 0 .3em; }

/* 대문 넘기기: 두 장을 겹쳐 두고 보이는 장만 바꾼다 */
.hero-slider { position: relative; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.hs-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(10, 10, 14, .35); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s, color .2s; }
.hs-arrow:hover { background: #fff; color: var(--ink); }
.hs-prev { left: max(12px, calc((100% - 1180px) / 2 - 64px)); }
.hs-next { right: max(12px, calc((100% - 1180px) / 2 - 64px)); }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hs-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .3s, background .3s; }
.hs-dots button[aria-pressed="true"] { width: 28px; background: #fff; }
/* 은곡리 장: 마을 배경 위에 인물 두 명을 오른쪽에 세운다 */
.eg-cast { position: absolute; right: max(8px, calc((100% - 1180px) / 2 - 90px)); bottom: 0; height: 56%; display: flex; align-items: flex-end; gap: 0; pointer-events: none; }
.eg-cast img { height: 100%; width: auto; image-rendering: pixelated; filter: drop-shadow(0 0 30px rgba(0, 0, 0, .5)); }
.eg-cast img + img { height: 92%; margin-left: -12vh; }
.eg-slide .feature-in { position: relative; }
.eg-slide .feature-line { max-width: 560px; }

@keyframes drift { from { transform: scale(1.03); } to { transform: scale(1.09) translateX(-1.5%); } }

/* ───── 스튜디오 한 문장 ───── */
.hero { padding-block: 72px 96px; }
.statement { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.2vw, 50px); line-height: 1.22; margin: 0; max-width: 30ch; text-wrap: balance; }
.statement .w-hermit, .statement .w-clab { font-weight: 800; }

/* ───── 게임: 그림 한 장 + 짧은 글 ───── */
.games { padding-block: 24px 40px; }
.game-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: center; margin-top: 56px; }
.game-row.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.game-row.flip .gr-art { order: 2; }
.gr-art { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.gr-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gr-art:hover img { transform: scale(1.04); }
.gr-logo { width: min(280px, 80%); margin-bottom: 14px; }
.gr-title { margin: 0 0 18px; }
.gr-meta { font-size: 14px; font-weight: 600; color: var(--shell); letter-spacing: .02em; margin: 0 0 12px; }
.gr-text > p:not(.gr-meta) { color: var(--dim); margin: 0 0 24px; max-width: 44ch; }
.games-more { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 72px 0 0; padding: 22px; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--dim); font-family: var(--display); font-weight: 600; font-size: 18px; }
.games-more img { opacity: .55; filter: grayscale(.4); }

/* ───── 소식 ───── */
.news { padding-block: 64px 104px; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* 옆으로 흐르는 소식: 카드 줄을 두 번 이어 붙이고 절반만큼 밀면 끊김 없이 돈다 */
.news-marquee { overflow: hidden; padding-block: 8px 16px; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.news-flow { display: flex; gap: 24px; width: max-content; animation: newsflow 50s linear infinite; }
.news-flow .news-card { flex: none; width: 360px; }
.news-marquee:hover .news-flow, .news-marquee:focus-within .news-flow { animation-play-state: paused; }
@keyframes newsflow { to { transform: translateX(calc(-50% - 12px)); } }
.news-art { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.logo-art { background: radial-gradient(circle at 50% 40%, #26336a, var(--bg-2)); }
.logo-art img { height: 76%; width: auto; }
.trap-mosaic { background: #0b0e18; }
.trap-mosaic img { object-fit: contain !important; padding: 8px; }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.news-card { text-decoration: none; display: flex; flex-direction: column; transition: transform .25s; }
.news-card:hover { transform: translateY(-4px); }
.news-card > img, .map-mosaic { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.news-card > img { transition: transform .5s; }
.news-card:hover > img { transform: scale(1.04); }
.map-mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; }
.map-mosaic img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.news-body { position: relative; background: var(--card); padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0; text-wrap: balance; }
.news-body p { color: var(--dim); font-size: 15px; margin: 0; }
.news-body .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 1px 9px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: var(--text); }
.t-red { background: var(--crab); color: #fff; }
.t-yellow { background: var(--warn); color: var(--ink); }
.t-blue { background: var(--shell); color: var(--bg); }
.news-body time { font-size: 13px; color: var(--shell); font-weight: 600; }

/* ───── 스튜디오 ───── */
.studio { background: var(--bg-2); padding-block: 104px; }
.studio-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.big-line { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 5vw, 68px); line-height: 1.05; margin: 0 0 20px; }
.studio-in p { color: var(--dim); max-width: 46ch; }
.team { display: grid; gap: 14px; }
.team li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: var(--card); border-radius: var(--radius); }
.team strong { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.2; }
.team strong span { color: var(--dim); font-family: var(--body); font-size: 15px; font-weight: 500; margin-left: 4px; }
.team div > span { color: var(--dim); font-size: 15px; }
.avatar { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--bg); }
.a1 { background: var(--shell); }
.a2 { background: var(--warn); }
.a3 { background: var(--crab); color: #fff; }

/* ───── 두 칸 띠: 플레이테스트 / 연락 ───── */
.split { background: linear-gradient(90deg, var(--shell-deep) 50%, var(--night) 50%); }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; }
.split-a, .split-b { padding-block: 72px; }
.split-a { background: var(--shell-deep); padding-right: 48px; }
.split-b { background: var(--night); padding-left: 48px; }
.split h2 { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 38px); line-height: 1.15; margin: 0 0 10px; text-wrap: balance; }
.split p { margin: 0 0 22px; color: #dfe6f3; }
.split-b p { color: var(--dim); }
.mail { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); overflow-wrap: anywhere; }
.mail a { color: var(--warn); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ───── 바닥 ───── */
.foot { background: var(--night); border-top: 1px solid var(--line); padding-block: 48px 32px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
.foot-brand p { color: var(--dim); font-size: 15px; margin: 10px 0 0; }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 56px; }
.foot-cols h3 { font-family: var(--display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 0 0 8px; }
.foot-cols a { display: block; color: var(--text); text-decoration: none; font-size: 15px; padding: 3px 0; }
.foot-cols a:hover { color: var(--warn); }
.copy { grid-column: 1 / -1; color: var(--dim); font-size: 14px; margin: 8px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }

/* ───── Stop, You Jerk! 상세 페이지 ───── */
.sticker { display: inline-block; margin: 0 0 18px; padding: 2px 14px; background: var(--crab); color: #fff; font-family: var(--body); font-weight: 700; font-size: 18px; border-radius: 6px; transform: rotate(-3deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.sy-lead { color: var(--dim); max-width: 46ch; margin: 0; }

/* 미니 게임 */
.sy-trapper { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-block: 104px; }
.cabinet { background: #0b0e18; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
#trapper-canvas { display: block; width: 100%; aspect-ratio: 192 / 72; image-rendering: pixelated; cursor: crosshair; background: #070910; border-radius: 8px; }
.cabinet-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.fire { font-family: var(--display); font-weight: 800; font-size: 20px; padding: 8px 28px 6px; color: #fff; background: var(--crab); border: 0; border-bottom: 4px solid var(--crab-deep); border-radius: 999px; cursor: pointer; }
.fire:active, .fire.is-down { transform: translateY(3px); border-bottom-width: 1px; }
.fire[disabled] { background: #5a2a2a; border-bottom-color: #3a1b1b; color: #c9a3a0; cursor: wait; }
.tally { display: flex; gap: 20px; margin: 0; font-weight: 600; color: var(--dim); }
.tally b { font-family: var(--display); font-size: 24px; color: var(--text); margin-left: 4px; }
.restart { margin-left: auto; background: none; border: 0; padding: 6px 0; color: var(--dim); font: 600 14px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.restart:hover { color: var(--text); }
.cabinet-hint { margin: 10px 0 0; font-size: 13px; color: var(--dim); }

/* 한 판의 흐름 */
.sy-round { background: var(--bg-2); padding-block: 104px; }
.steps { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 22px 22px 24px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--warn); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 14px; }
.steps h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0 0 8px; }
.steps p { color: var(--dim); font-size: 15px; margin: 0; }
.sy-shot { margin: 0; }
.sy-shot img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 0, 0, .45); }
.sy-shot figcaption { color: var(--dim); font-size: 14px; margin-top: 10px; }

/* 맵 */
.sy-maps { padding-block: 104px 88px; }
.map-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* 함정 */
.sy-traps { padding-block: 32px 104px; }
.sy-traps .sec-title { margin-bottom: 10px; }
.sy-traps .sy-lead { margin-bottom: 32px; }
.hotbar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hotbar li { position: relative; background: var(--card); border-radius: var(--radius); padding: 18px 16px 18px; text-align: center; transition: transform .2s, background .2s; }
.hotbar li:hover { transform: translateY(-4px); background: #243063; }
.hotbar kbd { position: absolute; top: 10px; left: 10px; min-width: 26px; padding: 1px 6px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--dim); font: 700 13px var(--body); }
.hotbar img { width: 72px; height: 72px; margin: 4px auto 10px; object-fit: contain; }
.hotbar h3 { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; margin: 0 0 4px; }
.hotbar p { color: var(--dim); font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
.cost { display: inline-block; font: 700 13px var(--body); color: var(--ink); background: var(--warn); border-radius: 999px; padding: 0 10px; }
.cost::before { content: "◆ "; font-size: 10px; }

/* ───── 문의하기 창: 사이트와 같은 남색 카드, 노란 강조, 둥근 버튼 ───── */
.cm { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); overflow: auto; }
.cm::backdrop { background: rgba(5, 7, 15, .75); backdrop-filter: blur(4px); }
.cm-form { position: relative; padding: 0 32px 32px; }
.cm-form::before { content: ""; display: block; height: 8px; margin: 0 -32px 28px; background: repeating-linear-gradient(-45deg, var(--warn) 0 14px, var(--ink) 14px 28px); }
.cm h2 { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; margin: 0 0 24px; }
.cm-close { position: absolute; top: 24px; right: 22px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: none; color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cm-close:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.cm-grid label { display: flex; flex-direction: column; gap: 8px; font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--dim); }
.cm-wide { grid-column: 1 / -1; }
.cm input, .cm select, .cm textarea { width: 100%; font: 400 15px var(--body); color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; transition: border-color .2s, box-shadow .2s; }
.cm textarea { resize: vertical; min-height: 120px; }
.cm input:focus, .cm select:focus, .cm textarea:focus { outline: none; border-color: var(--warn); box-shadow: 0 0 0 3px rgba(245, 197, 24, .18); }
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cm-status { min-height: 22px; margin: 14px 0 8px; font-size: 14px; color: var(--dim); }
.cm-status[data-kind="err"] { color: #ff8a7a; }
.cm-status[data-kind="ok"] { color: #8fdca8; font-weight: 600; }
.cm-send { width: 100%; padding: 12px 22px 10px; border: 2px solid var(--crab); border-radius: 999px; background: var(--crab); color: #fff; font-family: var(--display); font-weight: 700; font-size: 18px; cursor: pointer; transition: background .2s, border-color .2s; }
.cm-send:hover { background: var(--crab-deep); border-color: var(--crab-deep); }
.cm-send:disabled { opacity: .55; cursor: wait; }

/* 스크롤하면 살짝 떠오르기 (보이는 상태가 기본이고, 효과만 더한다) */
.rise { transition: transform .7s ease, opacity .7s ease; }
.rise.below { transform: translateY(24px); opacity: .35; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-bg { animation: none; }
  .rise, .rise.below { transform: none; opacity: 1; transition: none; }
  .gr-art img, .news-card, .news-card > img, .hotbar li, .slide { transition: none; }
  /* 흐르는 소식 대신 손으로 넘기는 줄 */
  .news-flow { animation: none; }
  .news-marquee { overflow-x: auto; mask-image: none; padding-inline: 16px; }
  .news-flow > [aria-hidden="true"] { display: none; }
}

/* ───── 중간 화면 ───── */
@media (max-width: 1080px) {
  .nav { gap: 18px; font-size: 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───── 좁은 화면 ───── */
@media (max-width: 860px) {
  .wrap { padding-inline: 16px; }
  .top { padding-inline: 16px; gap: 12px; }
  .menu-btn { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 4px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; font-size: 22px; }
  .wordmark { font-size: 22px; }
  .feature { min-height: 0; }
  .feature::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 14, .65) 45%, rgba(10, 10, 14, .3) 100%); }
  .feature-in { padding-block: 72px 64px; }
  .hero { padding-block: 48px 56px; }
  .game-row, .game-row.flip { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 40px; }
  .game-row.flip .gr-art { order: 0; }
  .games { padding-bottom: 72px; }
  .games-more { margin-top: 48px; font-size: 16px; }
  .studio-in { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sy-trapper { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 64px; }
  .sy-round, .sy-maps { padding-block: 64px; }
  .sy-traps { padding-bottom: 72px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 32px; }
  .map-grid { grid-template-columns: minmax(0, 1fr); }
  .hotbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sy-shot img { aspect-ratio: 16 / 9; }
  .news, .studio { padding-block: 72px; }
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .news-flow { gap: 16px; animation-duration: 40s; }
  .news-flow .news-card { width: 78vw; }
  @keyframes newsflow { to { transform: translateX(calc(-50% - 8px)); } }
  .stamp.big { font-size: min(34px, 8.4vw); border-width: 5px; }
  .eg-cast { right: 0; height: 52%; opacity: .55; }
  .hs-arrow { top: auto; bottom: 22px; translate: none; width: 40px; height: 40px; font-size: 24px; }
  .hs-prev { left: 16px; }
  .hs-next { right: 16px; }
  .hs-dots { bottom: 36px; }
  .feature-in { padding-bottom: 96px; }
  .cm-form { padding: 0 20px 24px; }
  .cm-form::before { margin: 0 -20px 22px; }
  .cm h2 { font-size: 28px; }
  .cm-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .split { background: var(--night); }
  .split-grid { grid-template-columns: minmax(0, 1fr); padding-inline: 0; }
  .split-a, .split-b { padding: 56px 16px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 420px) {
  .top-cta { display: none; }
}
