/* Stop! Taco — 바탕화면에 사는 문어
   색은 둘: 타코 주황(아이덴티티)과 바탕화면 파랑(대비색). 흰 면, 먹색 글자, 파랑의 옅은 틴트와 짙은 셰이드만 더한다.
   프로그램이 그리는 것(타코, 밥, 다이얼, 압수 장면)은 프로그램 색 그대로. */

/* ---------------------------------------------------------------- 토큰 */
:root {
  --orange: #ff9340;
  --orange-hi: #ffa55e;
  --orange-ink: #9a4a1e; /* 흰 바탕 위 주황 계열 글자 (6.2:1) */
  --blue: #2449d8;
  --blue-deep: #16308f;
  --blue-tint: #eaf0ff;
  --blue-soft: #d5dfff; /* 파랑 위 보조 글자 (5.2:1) */
  --paper: #ffffff;
  --ink: #141a33;
  --ink-2: #4a5270;
  --line: rgb(20 26 51 / 0.14);

  --font-display: 'Bagel Fat One', 'Pretendard Variable', system-ui, sans-serif;
  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-pixel: 'Galmuri11', 'Pretendard Variable', monospace;

  --stroke: 3px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --bar-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 18px 36px -20px rgb(12 22 80 / 0.55), 0 3px 8px -3px rgb(12 22 80 / 0.25);
  --focus: var(--ink);
  color-scheme: light;
}

/* ---------------------------------------------------------------- 기본 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
  scrollbar-color: var(--blue) var(--blue-tint);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--orange-ink);
}
body:lang(en) {
  word-break: normal;
}
img,
canvas,
svg {
  display: block;
  max-width: 100%;
}
canvas {
  image-rendering: pixelated;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
::selection {
  background: var(--orange);
  color: var(--ink);
}
:focus-visible {
  outline: var(--stroke) solid var(--focus);
  outline-offset: 3px;
}
.bar,
.hero,
.tricks,
.download,
.foot {
  --focus: var(--paper);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--orange);
  color: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-220%);
}
.skip:focus-visible {
  transform: none;
}
.wrap {
  width: min(var(--wrap), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.px-icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* ---------------------------------------------------------------- 글자 */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.h3 {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.35;
}
.lead {
  margin-top: 16px;
  max-width: 34em;
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.22rem);
  line-height: 1.7;
  color: var(--ink-2);
  text-wrap: pretty;
}
.note {
  margin-top: 14px;
  max-width: 46em;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 버튼 */
.btn {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: var(--stroke) solid var(--btn-bd);
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease-out), background-color 0.18s, box-shadow 0.18s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px) scale(0.98);
}
.btn--lg {
  min-height: 58px;
  padding: 0 28px;
  font-size: 1.06rem;
}
.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.95rem;
}
.btn--download {
  --btn-bg: var(--orange);
  box-shadow: var(--shadow);
}
.btn--download:hover {
  --btn-bg: var(--orange-hi);
}
.btn__meta {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  font-weight: 400;
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--paper);
}
.btn--ghost:hover {
  --btn-bg: rgb(255 255 255 / 0.14);
}
.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
}
.btn--dark:hover {
  --btn-bg: #262d52;
}

/* 말풍선: 프로그램 말풍선처럼 흰 바탕, 타코 진한 색 2px 테두리, 둥근 모서리, 아래 꼬리 */
.bubble {
  position: relative;
  display: inline-block;
  padding: 8px 13px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid #c0612a;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.45;
}
.bubble::after {
  content: '';
  position: absolute;
  left: 22px;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-right: 2px solid #c0612a;
  border-bottom: 2px solid #c0612a;
  transform: rotate(45deg) skew(10deg, 10deg);
}
.bubble--up::after {
  top: -9px;
  bottom: auto;
  transform: rotate(225deg) skew(10deg, 10deg);
}
.is-pop {
  animation: pop 0.22s var(--ease-back);
}
@keyframes pop {
  from {
    transform: scale(0.55);
  }
}

/* ---------------------------------------------------------------- 머리글 */
.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--bar-h);
  background: var(--blue);
  color: var(--paper);
  border-bottom: var(--stroke) solid transparent;
  transition: border-color 0.2s;
}
.bar.is-stuck {
  border-bottom-color: var(--ink);
}
.bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  width: min(1320px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand__taco canvas {
  width: 36px;
  height: 27px;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.bar__nav {
  margin-inline: auto;
}
.bar__nav ul {
  display: flex;
  gap: 4px;
}
.bar__nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--blue-soft);
  transition: background-color 0.15s, color 0.15s;
}
.bar__nav a:hover {
  color: var(--paper);
  background: rgb(255 255 255 / 0.12);
}
.bar__nav a[aria-current='true'] {
  color: var(--ink);
  background: var(--orange);
}
.bar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.tool {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  color: var(--paper);
  border: 2px solid rgb(255 255 255 / 0.5);
  border-radius: 50%;
}
.tool:hover {
  background: rgb(255 255 255 / 0.14);
}
.tool .px-icon {
  width: 24px;
  height: 24px;
}
/* 소리: 꺼져 있으면 음소거 아이콘, 켜져 있으면 스피커 */
.tool[data-sound] .i-on,
.tool[data-sound][aria-pressed='true'] .i-off {
  display: none;
}
.tool[data-sound][aria-pressed='true'] .i-on {
  display: block;
}
/* 움직임: 움직이는 중이면 멈춤 아이콘, 멈춰 있으면 재생 아이콘 */
.tool[data-motion] .i-off,
.tool[data-motion][aria-pressed='true'] .i-on {
  display: none;
}
.tool[data-motion][aria-pressed='true'] .i-off {
  display: block;
}
.bar__lang {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 2px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.bar__lang:hover {
  background: var(--paper);
  color: var(--blue);
  border-color: var(--paper);
}
.bar__menu {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-left: auto;
  padding: 0 14px 0 10px;
  background: none;
  color: var(--paper);
  border: 2px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}
.bar__menu[aria-expanded='true'] {
  background: var(--paper);
  color: var(--blue);
}

/* ---------------------------------------------------------------- 첫 화면: 바탕화면 */
.hero {
  padding-top: var(--bar-h);
  background: var(--blue);
  color: var(--paper);
}
.desk {
  --icon-w: 88px;
  --icon-col: 96px; /* 아이콘 격자 한 칸 (타코가 옮긴 아이콘도 이 격자에 놓인다) */
  --icon-row: 84px;
  --task-h: 56px;
  position: relative;
  height: clamp(640px, calc(100svh - var(--bar-h)), 960px);
  overflow: hidden;
  background: var(--blue);
  touch-action: manipulation;
}
.desk.is-over {
  cursor: grab;
}
.desk.is-dragging,
.desk.is-dragging * {
  cursor: grabbing !important;
}
.desk.is-grabbing,
.desk.is-grabbing * {
  cursor: none !important; /* 커서를 촉수가 쥐고 있는 동안: 진짜 커서 대신 가짜 커서 */
}
.desk__icons {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 2;
  width: var(--icon-w);
  user-select: none;
}
.desk__icon {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--icon-w);
  display: grid;
  justify-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}
.desk__icon:nth-child(2) {
  transform: translateY(var(--icon-row));
}
.desk__icon:nth-child(3) {
  transform: translateY(calc(var(--icon-row) * 2));
}
.desk__icon.is-moving {
  z-index: 1;
}
.folder {
  display: block;
  width: 46px;
  height: 36px;
  background:
    linear-gradient(#c99a22 0 0) 0 0 / 44% 22% no-repeat,
    linear-gradient(#f4c542 0 0) 0 20% / 100% 80% no-repeat,
    linear-gradient(#c99a22 0 0) 0 100% / 100% 14% no-repeat;
}
.desk__name {
  padding: 1px 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
  background: rgb(20 26 51 / 0.45);
  border-radius: 4px;
}
.desk__window {
  position: absolute;
  z-index: 1;
  right: max(4%, calc((100% - var(--wrap)) / 2));
  top: calc((100% - var(--task-h)) * 0.47);
  transform: translateY(-50%);
  width: min(40%, 560px);
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.desk__titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-pixel);
  font-size: 12px;
}
.desk__dots {
  display: flex;
  flex: none;
  gap: 6px;
}
.desk__tab {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.desk__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6b7394;
}
.desk__video {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 50px;
  bottom: 58px;
  background: radial-gradient(ellipse at 45% 40%, #27316a, #0c1130 75%);
  border-radius: 8px;
}
.desk__time {
  position: absolute;
  left: 14px;
  bottom: 24px;
  font-family: var(--font-pixel);
  font-size: 12px;
  color: rgb(255 255 255 / 0.85);
  font-variant-numeric: tabular-nums;
}
.desk__bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.25);
}
.desk__bar span {
  display: block;
  width: 56%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
}
.desk__next {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hero__copy {
  position: absolute;
  z-index: 2;
  left: max(calc(22px + var(--icon-w) + clamp(20px, 4vw, 64px)), calc((100% - var(--wrap)) / 2));
  top: calc((100% - var(--task-h)) * 0.47);
  transform: translateY(-50%);
  max-width: min(500px, 40%);
}
.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.4rem, 1.6rem + 5vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  -webkit-text-stroke: 4px var(--ink);
  paint-order: stroke fill;
}
.logo__stop {
  color: var(--orange);
}
.logo__taco {
  color: var(--paper);
}
.logo--small {
  font-size: 2.4rem;
  -webkit-text-stroke-width: 3px;
}
.hero__tagline {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem);
  line-height: 1.2;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 12px;
  font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem);
  color: var(--blue-soft);
  text-wrap: pretty;
}
.hero__cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero__hint {
  margin-top: 16px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--blue-soft);
}
.desk__canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.desk__bubble {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  max-width: 280px;
  font-size: 0.92rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
.desk__bubble.is-on,
.feedstage__bubble.is-on {
  opacity: 1;
}
.desk__bubble.is-side::after,
.feedstage__bubble.is-side::after {
  display: none;
}
.desk__cursor {
  position: absolute;
  z-index: 7;
  left: 0;
  top: 0;
  display: none;
  color: var(--paper);
  pointer-events: none;
  filter: drop-shadow(1px 0 0 var(--ink)) drop-shadow(-1px 0 0 var(--ink)) drop-shadow(0 1px 0 var(--ink)) drop-shadow(0 -1px 0 var(--ink));
}
.desk__cursor.is-on {
  display: block;
}
.desk__cursor .px-icon {
  width: 22px;
  height: 22px;
}
.desk__taskbar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--task-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: var(--blue-deep);
  border-top: var(--stroke) solid var(--ink);
}
.desk__start {
  width: 24px;
  height: 24px;
  background:
    linear-gradient(var(--orange) 0 0) 0 0 / 11px 11px no-repeat,
    linear-gradient(var(--paper) 0 0) 13px 0 / 11px 11px no-repeat,
    linear-gradient(var(--paper) 0 0) 0 13px / 11px 11px no-repeat,
    linear-gradient(var(--orange) 0 0) 13px 13px / 11px 11px no-repeat;
}
.desk__apps {
  display: flex;
  align-items: center;
  gap: 14px;
}
.desk__app {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 40px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.14);
  color: var(--paper);
}
.desk__app .px-icon {
  width: 22px;
  height: 22px;
}
.desk__app::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}
.desk__tray {
  display: flex;
  align-items: center;
  gap: 12px;
}
.desk__traytaco {
  display: grid;
  place-items: center;
  width: 44px;
  height: 40px;
  padding: 0;
  background: none;
  border: 2px solid transparent;
  border-radius: 8px;
}
.desk__traytaco:hover,
.desk__traytaco[aria-expanded='true'] {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.4);
}
.desk__traytaco canvas {
  width: 32px;
  height: 24px;
}
.desk__clock {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 우클릭 다이얼 (프로그램 dial.py 모양) */
.dial {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  --focus: #1e1e1e;
}
.dial[hidden] {
  display: none;
}
.dial__btn {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  padding: 0;
  background: #fffdf7;
  border: var(--dial-line, 3px) solid #1e1e1e;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.22s var(--ease-back), background-color 0.12s;
}
.dial.is-open .dial__btn {
  transform: translate(-50%, -50%) scale(1);
}
.dial.is-open .dial__btn:hover,
.dial.is-open .dial__btn:focus-visible {
  background: #ffe7a0;
  transform: translate(-50%, -50%) scale(1.12);
}
.dial__btn canvas {
  image-rendering: pixelated;
}
.dial__tag {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 1px 8px;
  background: #fffdf7;
  border: 2px solid #1e1e1e;
  color: #1e1e1e;
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
}
.dial__tag--center {
  z-index: 1;
  top: 0;
  transform: translate(-50%, -50%);
}
.dial__tag--center[hidden] {
  display: none;
}

/* ---------------------------------------------------------------- 공통 구역 */
.sec {
  position: relative;
  padding: clamp(80px, 10vw, 136px) 0;
}
.sec--tint {
  background: var(--blue-tint);
}
.sec__head {
  margin-bottom: clamp(36px, 5vw, 56px);
}
.sec__head--light .h2 {
  color: var(--paper);
}
.sec__head--light .lead {
  color: var(--blue-soft);
}

/* ---------------------------------------------------------------- 타코의 감시 (주황) */
.watch {
  background: var(--orange);
  --focus: var(--ink);
}
.watch .lead {
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}
.scene__screen {
  aspect-ratio: 16 / 10;
  background: #fffdf7;
  border: var(--stroke) solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 7px var(--ink);
}
.scene__screen canvas {
  width: 100%;
  height: 100%;
}
.watch__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chips li {
  padding: 8px 16px;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
}
.watch__cta {
  margin-top: 32px;
}
.watch .note {
  color: var(--ink);
}

/* ---------------------------------------------------------------- 풀화면일 땐 */
.corner__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.monitor__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11162e;
  border: 10px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.fsvideo {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 42% 38%, #27316a, #0c1130 72%);
}
.fsvideo__caption {
  position: absolute;
  left: 50%;
  bottom: 9%;
  transform: translateX(-50%);
  padding: 2px 10px;
  background: rgb(0 0 0 / 0.5);
  border-radius: 4px;
  color: var(--paper);
  font-size: clamp(12px, 1.3vw, 16px);
  white-space: nowrap;
}
.monitor__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.monitor__bubble {
  position: absolute;
  right: 3%;
  bottom: 40%;
  max-width: 62%;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}
.monitor__bubble.is-hidden {
  opacity: 0;
}

/* ---------------------------------------------------------------- 밥주기 */
.feed__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.foods {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.food {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 12px;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.15s var(--ease-out), background-color 0.15s;
}
.food:hover {
  transform: translateY(-2px);
  background: #fff4ea;
}
.food:active {
  transform: translateY(1px);
}
.food__icon canvas {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.feedstage {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feedstage canvas {
  width: 100%;
  height: 100%;
}
.feedstage__bubble {
  position: absolute;
  left: 0;
  top: 0;
  max-width: 70%;
  font-size: 0.92rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
.feedstage__bubble.is-on {
  opacity: 1;
}

/* ---------------------------------------------------------------- 장난 */
.pranks__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.prank__art {
  aspect-ratio: 4 / 3;
  background: var(--blue);
  border: var(--stroke) solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
}
.prank__art canvas {
  width: 100%;
  height: 100%;
}
.prank .h3 {
  margin-top: 18px;
}
.pranks .note {
  margin-top: 40px;
}

/* ---------------------------------------------------------------- 장기자랑 진열대 */
.tricks {
  background: var(--blue);
  color: var(--paper);
}
.shelf__title {
  margin: clamp(36px, 5vw, 52px) 0 14px;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 16px;
  color: var(--blue-soft);
}
.shelf__title:first-of-type {
  margin-top: 0;
}
.shelf {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 190px);
  grid-auto-flow: dense;
  gap: var(--stroke);
  background: var(--ink);
  border: var(--stroke) solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cell {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}
.cell canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cell--concert,
.cell--grow {
  grid-column: span 2;
  grid-row: span 2;
}
.cell--float,
.cell--shell,
.cell--glass {
  grid-row: span 2;
}
.cell--squish {
  grid-column: span 2;
}
.cell__name {
  position: absolute;
  left: 12px;
  top: 10px;
  font-weight: 800;
  font-size: 15px;
}
.cell__note {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 34px;
  max-width: 17em;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.shelf__menu {
  margin-top: 18px;
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--blue-soft);
}

/* ---------------------------------------------------------------- 조작법 */
.controls__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.manual {
  border-top: var(--stroke) solid var(--ink);
}
.manual__row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 2px solid var(--line);
}
.key {
  display: inline-block;
  margin-bottom: 3px;
  padding: 6px 13px 5px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 3px 0 var(--ink); /* 키캡 옆면 */
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}
.manual dd {
  display: grid;
  grid-template-columns: 56px 7.5em minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.manual__face canvas {
  width: 56px;
  height: 42px;
}
.manual__body {
  color: var(--ink-2);
}
.dialfig {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.dialfig canvas {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
}
.dialfig figcaption {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--ink-2);
}
.colors {
  margin-top: clamp(48px, 6vw, 72px);
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.swatch {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 112px;
  padding: 16px 8px 12px;
  background: var(--paper);
  border: var(--stroke) solid var(--line);
  border-radius: 18px;
  transition: border-color 0.15s, transform 0.15s var(--ease-out);
}
.swatch:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}
.swatch[aria-checked='true'] {
  border-color: var(--ink);
  background: var(--blue-tint);
}
.swatch__taco canvas {
  width: 72px;
  height: 54px;
}
.swatch__name {
  font-weight: 700;
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------- 대화 */
.chat__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.chat__text .note {
  margin-top: 24px;
}
.talk {
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.talk__stage {
  height: 230px;
  background: var(--blue);
  border-bottom: var(--stroke) solid var(--ink);
}
.talk__stage canvas {
  width: 100%;
  height: 100%;
}
.talk__log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 260px;
  padding: 18px 18px 22px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.talk__msg--taco {
  align-self: flex-start;
}
.talk__msg--you {
  align-self: flex-end;
}
.talk__msg--you .bubble {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.talk__msg--you .bubble::after {
  left: auto;
  right: 22px;
  border-color: var(--ink);
}
.talk__form {
  display: flex;
  gap: 10px;
  padding: 14px 18px 18px;
  border-top: 2px solid var(--line);
}
.talk__input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 16px;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 12px;
}
.talk__input::placeholder {
  color: #6b7390;
}
/* 대화 연출: 입력칸에 글자가 저절로 쳐지고 보내기가 눌린다 */
.talk__input--demo {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.talk__typed:empty::before {
  content: attr(data-placeholder);
  color: #6b7390;
}
.talk__caret {
  flex: none;
  width: 2px;
  height: 1.2em;
  margin-left: 1px;
  background: var(--ink);
  animation: caret 1s steps(1) infinite;
}
.talk__typed:empty + .talk__caret {
  order: -1;
  margin: 0 2px 0 0;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.talk__send {
  display: inline-flex;
  align-items: center;
  cursor: default;
  transition: transform 0.1s, background-color 0.1s;
}
.talk__send.is-pressed {
  transform: translateY(2px);
  background: var(--orange);
}

/* ---------------------------------------------------------------- 걱정 마세요 */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 44px) clamp(28px, 4vw, 52px);
}
.fact {
  padding-top: 16px;
  border-top: var(--stroke) solid var(--ink);
}
.fact p {
  margin-top: 8px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 더 꾸며 주기 (DLC)
   그림은 프로그램이 그린 1배 PNG 를 도트 그대로 키운다 (image-rendering: pixelated). 카드 셋이 같은 높이의 그림 칸을 쓴다. */
.dlc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  gap: clamp(20px, 3vw, 32px);
}
.dlc__card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 22px;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 18px;
}
.dlc__art {
  display: grid;
  place-items: end center;
  aspect-ratio: 90 / 52;
  margin-bottom: 18px;
  overflow: hidden;
  background: var(--blue-tint);
  border-radius: 10px;
}
.dlc__art img {
  display: block;
  image-rendering: pixelated;
}
.dlc__art--skins {
  grid-template-columns: repeat(4, 1fr);
  place-items: center;
  padding: 6% 4%;
}
.dlc__art--skins img {
  width: 90%;
  height: auto;
}
.dlc__art--house {
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  padding: 0 4% 6%;
  gap: 4%;
}
.dlc__art--house img {
  width: 100%;
  height: auto;
}
.dlc__art--backer,
.dlc__art--sound {
  place-items: stretch;
}
.dlc__art--backer img,
.dlc__art--sound img {
  width: 100%;
  height: 100%;
}
.dlc__note {
  margin-top: 28px;
  max-width: 40em;
}
.dlc__body {
  margin-top: 8px;
  color: var(--ink-2);
}
.dlc__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.dlc__tags li {
  padding: 4px 12px;
  background: var(--blue-tint);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-deep);
}

/* ---------------------------------------------------------------- 다운로드 */
.download {
  background: var(--blue);
  color: var(--paper);
}
.download .lead {
  color: var(--blue-soft);
}
.download__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.download__cta {
  position: relative;
  margin-top: 28px;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.specs li {
  padding: 8px 16px;
  border: 2px solid rgb(255 255 255 / 0.55);
  border-radius: 999px;
  font-weight: 700;
}
.float-bubble {
  position: absolute;
  z-index: 5;
  left: 0;
  top: calc(100% + 14px);
  animation: pop 0.22s var(--ease-back);
  transform-origin: 30px -10px;
}

/* ---------------------------------------------------------------- 자주 묻는 질문 */
.faq__wrap {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.qa {
  border-top: var(--stroke) solid var(--ink);
}
.qa details {
  border-bottom: 2px solid var(--line);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  font-weight: 700;
  font-size: 1.06rem;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary .px-icon {
  transition: transform 0.2s var(--ease-out);
}
.qa details[open] summary .px-icon {
  transform: rotate(45deg);
}
.qa p {
  max-width: 40em;
  padding: 0 0 20px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- 바닥글 */
.foot {
  background: var(--blue-deep);
  color: var(--paper);
  padding: clamp(60px, 8vw, 88px) 0 36px;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr);
  gap: 36px clamp(28px, 5vw, 72px);
}
.foot__tagline {
  margin-top: 10px;
  color: var(--blue-soft);
}
.foot__nav ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.foot__nav a {
  font-weight: 700;
  text-decoration: none;
}
.foot__nav a:hover {
  text-decoration: underline;
}
.foot__notes {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--blue-soft);
}
.foot__copy {
  margin-top: 6px;
  font-family: var(--font-pixel);
  font-size: 13px;
}
.foot__top {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border: 2px solid rgb(255 255 255 / 0.5);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.foot__top:hover {
  background: var(--paper);
  color: var(--blue-deep);
}

/* ---------------------------------------------------------------- 화면 압수 맛보기 */
.takeover {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--takeover-bg, #ffffff); /* 프로그램 압수 화면 색: 라이트 흰색, 다크 검정 (takeover.json bg) */
  color: var(--ink);
  cursor: not-allowed;
  overflow: hidden;
  --focus: var(--ink);
}
.takeover::backdrop {
  background: var(--takeover-bg, #ffffff);
}
.takeover[open] {
  animation: fade-in 0.25s linear;
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
.takeover__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* 프로그램이 그리는 장면 그대로: 가로 모니터 384×216, 세로로 긴 화면은 세로 모니터 216×384. 비율이 다르면 둘레는 같은 색 */
  image-rendering: pixelated;
}
.takeover__ui {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.takeover__esc {
  padding: 8px 12px;
  background: linear-gradient(90deg, var(--orange) calc(var(--esc, 0) * 100%), var(--paper) 0); /* Esc 꾹 누르는 동안 차오름 */
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--font-pixel);
  font-size: 13px;
  white-space: nowrap;
}
.takeover__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 12px;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
@media (hover: none), (pointer: coarse) {
  .takeover__esc {
    display: none;
  }
}

/* ---------------------------------------------------------------- 404 */
.lost {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 40px var(--gutter);
  text-align: center;
  background: var(--blue);
  color: var(--paper);
  --focus: var(--paper);
}
.lost .lead {
  margin-top: 0;
  color: var(--blue-soft);
}
.lost__en {
  color: var(--blue-soft);
}
.lost__stage {
  width: 260px;
  aspect-ratio: 4 / 3;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
}
.lost__stage canvas {
  width: 100%;
  height: 100%;
}
.lost__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* ---------------------------------------------------------------- 반응형 */
@media (max-width: 1100px) {
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desk__window {
    width: 34%;
    right: 3%;
  }
  .bar__menu {
    display: inline-flex;
  }
  .bar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 14px var(--gutter) 20px;
    background: var(--blue);
    border-bottom: var(--stroke) solid var(--ink);
    display: none;
  }
  .bar.is-open .bar__nav {
    display: block;
  }
  .bar__nav ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 640px;
    margin-inline: auto;
  }
  .bar__nav a {
    padding: 12px;
    text-align: center;
    border: 2px solid rgb(255 255 255 / 0.25);
    border-radius: 14px;
  }
  .no-js .bar__nav {
    display: block;
    position: static;
  }
  .pranks__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .dlc__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
  .watch__grid,
  .corner__grid,
  .feed__grid,
  .controls__grid,
  .chat__grid,
  .faq__wrap,
  .download__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .specs {
    justify-content: flex-start;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 42vw, 210px);
  }
  .foot__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk__window {
    width: 46%;
    right: 4%;
    top: 56%;
    height: 24%;
    transform: none;
    aspect-ratio: auto;
  }
  .hero__copy {
    top: 30px;
    transform: none;
    left: calc(22px + var(--icon-w) + 20px);
    max-width: none;
    right: 28px;
  }
  .desk__next {
    display: none;
  }
  .desk__video {
    bottom: 14px;
  }
}
@media (max-width: 640px) {
  :root {
    --bar-h: 56px;
  }
  body {
    font-size: 16px;
  }
  .brand__name {
    display: none;
  }
  .bar__inner {
    gap: 8px;
  }
  .tool {
    width: 36px;
    height: 36px;
  }
  .bar__lang,
  .bar__menu {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.85rem;
  }
  .bar__nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desk {
    --icon-w: 70px;
    --icon-col: 76px;
    --icon-row: 68px;
    --task-h: 50px;
    height: max(720px, calc(100svh - var(--bar-h)));
    max-height: 860px;
  }
  .desk__icons {
    left: auto;
    right: 6px;
    top: 16px;
  }
  .folder {
    width: 38px;
    height: 30px;
  }
  .desk__name {
    font-size: 12px;
  }
  .hero__copy {
    left: 20px;
    right: calc(var(--icon-w) + 14px);
    top: 20px;
  }
  .logo {
    font-size: 3.1rem;
    -webkit-text-stroke-width: 3px;
  }
  .hero__tagline {
    margin-top: 14px;
    font-size: 1.4rem;
  }
  .hero__lead {
    font-size: 1rem;
  }
  .hero__cta {
    margin-top: 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero__cta .btn--lg {
    min-height: 52px;
  }
  .hero__hint {
    margin-top: 12px;
  }
  .desk__window {
    left: 32%;
    right: 5%;
    width: auto;
    top: auto;
    bottom: calc(var(--task-h) + 120px);
    height: 110px;
  }
  .desk__video {
    top: 36px;
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .desk__titlebar {
    height: 28px;
  }
  .pranks__list {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }
  .manual__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .manual dd {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .manual__face canvas {
    width: 48px;
    height: 36px;
  }
  .manual__body {
    grid-column: 1 / -1;
  }
  .swatch {
    width: calc(33% - 10px);
  }
  .talk__log {
    height: 240px;
  }
  .talk__stage {
    height: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- 영상 (텀블벅 스토리의 장면: 프로그램 그림 코드로 그린 것) */
.footage__head { margin-bottom: clamp(28px, 4vw, 44px); }
.footage__box { padding: clamp(12px, 1.6vw, 20px); border: var(--stroke) solid var(--ink); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); }
.footage__tabs { display: flex; gap: 8px; padding: 2px 2px 14px; overflow-x: auto; scrollbar-width: none; }
.footage__tabs::-webkit-scrollbar { display: none; }
.footage__tab { flex: none; min-height: 44px; padding: 0 18px; border: var(--stroke) solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; transition: background 0.18s, color 0.18s, transform 0.18s; }
.footage__tab:hover { background: var(--blue-tint); transform: translateY(-2px); }
.footage__tab[aria-selected='true'] { background: var(--orange); }
.footage__body { display: grid; gap: 16px; }
@media (min-width: 980px) { .footage__body { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr); align-items: start; } }
.footage__stage { position: relative; overflow: hidden; border: var(--stroke) solid var(--ink); border-radius: 18px; background: var(--ink); aspect-ratio: 16 / 9; }
.footage__video { display: block; width: 100%; height: 100%; object-fit: contain; }
.footage__video.is-swap { animation: footage-in 0.4s ease-out; }
@keyframes footage-in { from { opacity: 0; transform: scale(0.985); } }
.footage__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgb(255 255 255 / 0.2); }
.footage__prog b { display: block; height: 100%; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }
.footage__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: fp; }
.footage__item { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; width: 100%; padding: 12px 14px; border: var(--stroke) solid transparent; border-radius: 16px; background: var(--blue-tint); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background 0.18s, border-color 0.18s, transform 0.18s; animation: footage-row 0.4s ease-out both; animation-delay: calc(var(--i) * 45ms); }
.footage__item::before { counter-increment: fp; content: counter(fp, decimal-leading-zero); grid-row: span 2; padding-top: 2px; font-family: var(--font-display); color: var(--orange-ink); }
.footage__item:hover { transform: translateX(3px); }
.footage__item[aria-current='true'] { border-color: var(--ink); background: var(--paper); }
.footage__item strong { font-weight: 800; }
.footage__item span { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
@keyframes footage-row { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .footage__video.is-swap, .footage__item { animation: none; } }
