:root {
  --bg: #140b09;
  --bg2: #1d100d;
  --panel: rgba(255, 244, 230, 0.045);
  --panel2: rgba(255, 244, 230, 0.08);
  --line: rgba(255, 228, 200, 0.12);
  --cream: #fff4e6;
  --text: #f6e9db;
  --muted: #b39d8c;
  --red: #e8412c;
  --red2: #ff7448;
  --deep: #a8160f;
  --leaf: #b9df73;
  --gold: #f5b841;
  --paper: #fbf3e6;
  --ink: #2a1410;
  --radius: 22px;
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --han: "Black Han Sans", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
main, section { overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(232, 65, 44, 0.32), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(185, 223, 115, 0.08), transparent 60%),
    radial-gradient(800px 800px at 50% 120%, rgba(232, 65, 44, 0.16), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
#flakes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 1; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 30% { transform: translate(-3%,2%) } 60% { transform: translate(2%,-3%) } }
header, main, footer, .marquee, .practice { position: relative; z-index: 2; }
a { color: inherit; }
em { font-style: italic; color: var(--red2); font-family: var(--display); font-weight: 500; }
code { font-family: var(--mono); font-size: 0.86em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  font: 600 0.95rem var(--sans); border-radius: 999px; padding: 0.7rem 1.2rem; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.25s, background 0.2s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn.red {
  color: #fff; background: linear-gradient(135deg, var(--red2), var(--red) 55%, var(--deep));
  box-shadow: 0 10px 30px -10px rgba(232, 65, 44, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.red:hover { box-shadow: 0 16px 44px -10px rgba(255, 116, 72, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.4); transform: translateY(-1px); }
.btn.ghost { color: var(--cream); background: var(--panel); border-color: var(--line); backdrop-filter: blur(8px); }
.btn.ghost:hover { background: var(--panel2); border-color: rgba(255, 228, 200, 0.25); }
.btn.big { padding: 0.95rem 1.6rem; font-size: 1.02rem; }
.btn.full { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem clamp(16px, 4vw, 48px);
  background: linear-gradient(to bottom, rgba(20, 11, 9, 0.88), rgba(20, 11, 9, 0.55)); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); z-index: 20;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { filter: drop-shadow(0 4px 12px rgba(232, 65, 44, 0.55)); }
.wordmark { font: 800 1.35rem var(--display); letter-spacing: 0.02em; color: var(--cream); }
.wordmark b, .foot-brand b { color: var(--red2); }
.hangul { font-family: var(--han); color: var(--muted); font-size: 0.9rem; letter-spacing: 0.06em; }
.links { display: flex; gap: 1.4rem; margin-left: 1rem; }
.links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.links a:hover { color: var(--cream); }
.nav-actions { margin-left: auto; display: flex; gap: 0.6rem; }

.practice {
  margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); margin-top: 14px; padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.85rem; color: var(--gold); background: rgba(245, 184, 65, 0.08); border: 1px solid rgba(245, 184, 65, 0.25);
  display: block; text-align: center;
}
.practice .dot { display: inline-block; vertical-align: middle; margin-right: 0.4rem; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 50% { opacity: 0.35 } }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 5vw, 72px) 56px; max-width: 1320px; margin: 0 auto;
}
.eyebrow { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.4rem; }
.chip { font-size: 0.8rem; font-weight: 600; padding: 0.35rem 0.8rem; border-radius: 999px; background: rgba(232, 65, 44, 0.15); color: var(--red2); border: 1px solid rgba(232, 65, 44, 0.35); }
.chip.outline { background: transparent; color: var(--muted); border-color: var(--line); }
h1 {
  font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 7.6vw, 6.6rem); line-height: 0.95; letter-spacing: -0.035em;
  margin: 0 0 1.4rem; color: var(--cream);
}
h1 em { font-weight: 800; background: linear-gradient(100deg, var(--red2), var(--red) 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.08em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: #dcc9b8; max-width: 36rem; margin: 0 0 2rem; }
.lead b { color: var(--cream); }
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 2.2rem; margin-top: 2.8rem; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { font: 800 2rem var(--display); color: var(--cream); letter-spacing: -0.02em; }
.hero-meta span { font-size: 0.82rem; color: var(--muted); }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 116, 72, 0.55), rgba(232, 65, 44, 0.12) 50%, transparent 70%); filter: blur(20px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: 0.8 } }
img[src="/kimchi.png"] { image-rendering: pixelated; }
.jar { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 40px rgba(232, 65, 44, 0.4)); animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-2deg) } }
.steam { position: absolute; left: 50%; top: 2%; width: 120px; height: 120px; transform: translateX(-50%); }
.steam i { position: absolute; bottom: 0; width: 16px; height: 70px; border-radius: 50%; background: linear-gradient(to top, rgba(255, 244, 230, 0.45), transparent); filter: blur(7px); animation: steam 3.6s ease-in infinite; }
.steam i:nth-child(1) { left: 25px; } .steam i:nth-child(2) { left: 52px; animation-delay: 1.2s; } .steam i:nth-child(3) { left: 78px; animation-delay: 2.4s; }
@keyframes steam { 0% { transform: translateY(20px) scaleX(1); opacity: 0 } 30% { opacity: 1 } 100% { transform: translateY(-60px) scaleX(2.2); opacity: 0 } }
.ticket {
  position: absolute; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 0.72rem; padding: 0.8rem 0.9rem 0.9rem;
  border-radius: 6px; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.7); min-width: 190px;
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) bottom / 12px 100% repeat-x;
  mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) 0 0 / 12px 100% repeat-x;
}
.ticket.t1 { left: -4%; bottom: 12%; transform: rotate(-6deg); animation: float1 7s ease-in-out infinite; }
.ticket.t2 { right: -2%; top: 14%; transform: rotate(5deg); animation: float2 8s ease-in-out infinite; min-width: 150px; }
@keyframes float1 { 50% { transform: rotate(-4deg) translateY(-10px) } }
@keyframes float2 { 50% { transform: rotate(7deg) translateY(8px) } }
.t-head { font-weight: 600; letter-spacing: 0.12em; border-bottom: 1px dashed rgba(42, 20, 16, 0.35); padding-bottom: 0.4rem; margin-bottom: 0.4rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--deep); }
.t-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.12rem 0; }
.t-row.tot { border-top: 1px dashed rgba(42, 20, 16, 0.35); margin-top: 0.35rem; padding-top: 0.4rem; font-weight: 600; }
.t-big { font: 800 1.15rem var(--display); color: var(--ink); }
.orbit { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orbit span { position: absolute; font-family: var(--han); font-size: 1.6rem; color: rgba(255, 244, 230, 0.18); }
.orbit span:nth-child(1) { top: 0; left: 50%; } .orbit span:nth-child(2) { bottom: 4%; right: 8%; } .orbit span:nth-child(3) { top: 46%; left: 0; font-size: 1.3rem; opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(232, 65, 44, 0.12), rgba(232, 65, 44, 0.03), rgba(232, 65, 44, 0.12)); overflow: hidden; padding: 0.85rem 0; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: scroll 40s linear infinite; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; gap: 0.5rem; align-items: center; white-space: nowrap; }
.marquee-track b { color: var(--cream); font-weight: 600; }
.marquee-track .r { color: var(--red2); }
.marquee-track img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
@keyframes scroll { to { transform: translateX(-50%) } }

/* ---------- sections ---------- */
section { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(16px, 5vw, 72px); }
.section-head { margin-bottom: 2.6rem; }
.section-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; }
.kicker { font: 600 0.78rem var(--mono); text-transform: uppercase; letter-spacing: 0.22em; color: var(--red2); margin: 0 0 0.7rem; }
h2 { font: 800 clamp(2.1rem, 4.6vw, 3.8rem) / 1 var(--display); letter-spacing: -0.03em; margin: 0; color: var(--cream); }
.sub { color: var(--muted); font-size: 1.08rem; margin: 1rem 0 0; max-width: 38rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step {
  position: relative; padding: 2rem 1.7rem 1.8rem; border-radius: var(--radius); background: linear-gradient(160deg, var(--panel2), var(--panel));
  border: 1px solid var(--line); overflow: hidden; transition: transform 0.3s, border-color 0.3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(232, 65, 44, 0.45); }
.step::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 65, 44, 0.25), transparent 70%); }
.num { font: 600 0.8rem var(--mono); color: var(--muted); letter-spacing: 0.1em; }
.icon { font-size: 2.6rem; margin: 1rem 0 0.6rem; }
.step h3 { font: 800 1.7rem var(--display); margin: 0 0 0.5rem; color: var(--cream); }
.step p { color: #cdb9a7; margin: 0; }
.step b { color: var(--cream); }
.proof { margin-top: 1.2rem; display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.4rem; border-radius: 16px; border: 1px dashed rgba(185, 223, 115, 0.35); background: rgba(185, 223, 115, 0.05); }
.proof p { margin: 0; color: #cdb9a7; }
.proof b { color: var(--leaf); }
.proof code { color: var(--cream); background: rgba(0, 0, 0, 0.3); padding: 0.1rem 0.4rem; border-radius: 6px; }
.lock { font-size: 1.3rem; }

/* ---------- coin grid ---------- */
.filters { display: flex; gap: 0.7rem; flex-wrap: wrap; }
input, textarea, select {
  font: inherit; color: var(--cream); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); border-radius: 14px; padding: 0.72rem 0.95rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; width: 100%;
}
input:focus, textarea:focus, select:focus { border-color: rgba(255, 116, 72, 0.6); box-shadow: 0 0 0 4px rgba(232, 65, 44, 0.15); }
#search { width: min(320px, 100%); }
.seg { display: inline-flex; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { font: 600 0.88rem var(--sans); color: var(--muted); background: none; border: 0; padding: 0.5rem 1rem; border-radius: 999px; cursor: pointer; transition: all 0.2s; }
.seg button.on { background: var(--cream); color: var(--ink); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; padding: 0.7rem; font-size: 1rem; }
#side button[data-side="sell"].on { background: #3a1814; color: var(--red2); }
#side button[data-side="buy"].on { background: var(--leaf); color: #15240a; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.card { border-radius: var(--radius); background: linear-gradient(170deg, var(--panel2), var(--panel)); border: 1px solid var(--line); overflow: hidden; text-decoration: none; display: block; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
a.card:hover { transform: translateY(-5px); border-color: rgba(255, 116, 72, 0.5); box-shadow: 0 24px 50px -24px rgba(232, 65, 44, 0.6); }
.cc-img { position: relative; aspect-ratio: 1.25; background: #24130f; overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
a.card:hover .cc-img img { transform: scale(1.06); }
.badge { position: absolute; top: 12px; left: 12px; font: 600 0.7rem var(--mono); letter-spacing: 0.1em; background: var(--red); color: #fff; padding: 0.25rem 0.55rem; border-radius: 6px; }
.badge.grad { background: var(--leaf); color: #15240a; }
.cc-body { padding: 1rem 1.1rem 1.1rem; }
.cc-title { display: flex; justify-content: space-between; gap: 0.6rem; align-items: baseline; }
.cc-title b { font: 800 1.2rem var(--display); color: var(--cream); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-title span { font: 600 0.8rem var(--mono); color: var(--red2); flex: none; }
.cc-desc { color: var(--muted); font-size: 0.86rem; margin: 0.35rem 0 0.9rem; height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cc-foot { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-top: 0.7rem; }
.cc-foot b { color: var(--cream); }
.bar { height: 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--deep), var(--red), var(--gold)); box-shadow: 0 0 14px rgba(255, 116, 72, 0.6); transition: width 0.8s; }
.bar.green i { background: linear-gradient(90deg, #5d8f2a, var(--leaf)); box-shadow: 0 0 14px rgba(185, 223, 115, 0.5); }
.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-jar { font-size: 3.6rem; }
.empty h3 { font: 800 1.8rem var(--display); margin: 0.6rem 0 0.3rem; }
.empty p { color: var(--muted); margin: 0 0 1.4rem; }
.skeleton { height: 330px; border-radius: var(--radius); background: linear-gradient(100deg, var(--panel) 30%, var(--panel2) 50%, var(--panel) 70%) 0 0 / 200% 100%; animation: shimmer 1.4s infinite; border: 1px solid var(--line); }
@keyframes shimmer { to { background-position: -200% 0 } }

/* ---------- kitchen ---------- */
.counter { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.receipts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.receipt {
  background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 0.76rem; padding: 1rem 1rem 1.2rem; border-radius: 6px 6px 0 0; position: relative;
  -webkit-mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
  mask: radial-gradient(circle 6px at 50% 100%, transparent 98%, #000) 0 0 / 14px 100% repeat-x;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); transition: transform 0.25s; text-decoration: none; display: block;
}
.receipt:nth-child(odd) { transform: rotate(-0.8deg); } .receipt:nth-child(even) { transform: rotate(0.8deg); }
.receipt:hover { transform: rotate(0) translateY(-4px); }
.receipt .rh { display: flex; justify-content: space-between; font-weight: 600; color: var(--deep); letter-spacing: 0.08em; border-bottom: 1px dashed rgba(42, 20, 16, 0.3); padding-bottom: 0.45rem; margin-bottom: 0.45rem; }
.receipt .rr { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.1rem 0; }
.receipt .rr span:last-child { text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt .rt { border-top: 1px dashed rgba(42, 20, 16, 0.3); margin-top: 0.45rem; padding-top: 0.45rem; font-weight: 600; display: flex; justify-content: space-between; }
.receipt .stamp { position: absolute; right: 10px; bottom: 20px; font: 800 0.9rem var(--display); color: var(--red); border: 2px solid var(--red); border-radius: 6px; padding: 0.05rem 0.4rem; transform: rotate(-12deg); opacity: 0.75; letter-spacing: 0.05em; }
.receipt.waiting { opacity: 0.85; }
.receipt.waiting .stamp { color: var(--gold); border-color: var(--gold); }
.receipt.waiting ~ .receipts-empty { grid-column: auto; display: grid; place-items: center; }
.receipts-empty { grid-column: 1 / -1; padding: 2.4rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.board { background: linear-gradient(170deg, #22120e, #1a0d0a); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem; }
.board h4 { margin: 0 0 1rem; font: 800 1.35rem var(--display); color: var(--cream); }
.menu-row { display: flex; gap: 0.6rem; align-items: baseline; padding: 0.35rem 0; color: #d8c5b3; }
.menu-row .dots { flex: 1; border-bottom: 2px dotted rgba(255, 228, 200, 0.2); transform: translateY(-4px); }
.menu-row b { color: var(--gold); font-family: var(--mono); font-size: 0.9rem; }
.log ul { list-style: none; margin: 0; padding: 0; font: 0.78rem/1.5 var(--mono); max-height: 260px; overflow: auto; }
.log li { padding: 0.35rem 0; border-bottom: 1px solid rgba(255, 228, 200, 0.06); color: #d2bfae; }
.log li time { color: var(--muted); margin-right: 0.5rem; }

/* ---------- faq ---------- */
.faq details { border-top: 1px solid var(--line); padding: 1.2rem 0; max-width: 820px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 500 1.35rem var(--display); color: var(--cream); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--red2); font-family: var(--sans); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0.7rem 0 0; max-width: 680px; }

/* ---------- coin page ---------- */
#coin { max-width: 1320px; margin: 0 auto; padding: 32px clamp(16px, 5vw, 72px) 80px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 1.4rem; font-weight: 500; }
.back:hover { color: var(--cream); }
.coin-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 1.6rem; align-items: start; }
.coin-main, .trade { border-radius: var(--radius); background: linear-gradient(170deg, var(--panel2), var(--panel)); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); }
.trade { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 0.9rem; }
.coin-head { display: flex; gap: 1.3rem; align-items: center; }
.coin-head img { width: 112px; height: 112px; border-radius: 26px; object-fit: cover; border: 1px solid var(--line); box-shadow: 0 20px 40px -18px rgba(232, 65, 44, 0.7); background: #24130f; flex: none; }
.coin-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; overflow-wrap: anywhere; }
.c-sym { font: 600 1rem var(--mono); color: var(--red2); margin: 0.3rem 0 0.6rem; }
.c-links { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.c-links a { font-size: 0.8rem; text-decoration: none; padding: 0.3rem 0.7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.c-links a:hover { color: var(--cream); border-color: rgba(255, 228, 200, 0.3); }
.c-desc { color: #d2bfae; margin: 1.3rem 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.c-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1.2rem; }
.c-stats div { background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 16px; padding: 0.9rem 1rem; }
.c-stats span { display: block; font-size: 0.78rem; color: var(--muted); }
.c-stats b { font: 800 1.45rem var(--display); color: var(--cream); }
.ferment, .bowl { margin-bottom: 1.1rem; }
.ferment-top, .bowl-top { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.92rem; color: #d2bfae; }
.ferment-top b, .bowl-top b { font-family: var(--mono); color: var(--cream); }
.ferment p { margin: 0.45rem 0 0; }
.addr-row { display: grid; gap: 0.5rem; margin: 1.4rem 0; }
.addr-row div { display: flex; align-items: center; gap: 0.7rem; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); border-radius: 12px; padding: 0.55rem 0.8rem; min-width: 0; }
.addr-row span { font-size: 0.78rem; color: var(--muted); width: 84px; flex: none; }
.addr-row code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cream); min-width: 0; }
.copy { font: 600 0.75rem var(--sans); background: var(--panel2); border: 1px solid var(--line); color: var(--cream); border-radius: 8px; padding: 0.3rem 0.6rem; cursor: pointer; flex: none; }
.mini-head { font: 800 1.4rem var(--display); margin: 1.6rem 0 1rem; }
.receipts.small { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.amt { position: relative; }
.amt input { font: 600 1.5rem var(--mono); padding-right: 4.5rem; }
.amt em { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); font: 600 0.9rem var(--mono); color: var(--muted); font-style: normal; }
.quick { display: flex; gap: 0.4rem; }
.quick button { flex: 1; font: 600 0.8rem var(--mono); background: rgba(0, 0, 0, 0.28); border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: 0.45rem 0; cursor: pointer; }
.quick button:hover { border-color: rgba(255, 116, 72, 0.5); }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.tiny { width: 62px; padding: 0.25rem 0.4rem; font-size: 0.85rem; text-align: right; display: inline-block; margin-right: 0.2rem; }
.trade-msg { min-height: 1.2em; margin: 0; font-size: 0.9rem; text-align: center; color: var(--muted); overflow-wrap: anywhere; }
.trade-msg.err { color: #ff8c7a; }
.trade-msg.ok { color: var(--leaf); }
.trade-msg a { color: var(--cream); }
.fine { font-size: 0.75rem; color: var(--muted); margin: 0; text-align: center; }

/* ---------- launch sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 5, 4, 0.75); backdrop-filter: blur(8px); animation: fade 0.25s; }
.sheet-card {
  position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 28px; padding: clamp(1.3rem, 3vw, 2.2rem);
  background: radial-gradient(600px 300px at 100% 0, rgba(232, 65, 44, 0.2), transparent 70%), #1b0e0b; border: 1px solid var(--line);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8); animation: rise 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(0.98) } }
.x { position: absolute; right: 18px; top: 14px; font-size: 1.8rem; background: none; border: 0; color: var(--muted); cursor: pointer; line-height: 1; }
.x:hover { color: var(--cream); }
.sheet-card h2 { margin-bottom: 1.6rem; }
.launch-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.6rem; margin-bottom: 1.4rem; }
.fields { display: flex; flex-direction: column; gap: 0.9rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.drop { border: 2px dashed rgba(255, 228, 200, 0.2); border-radius: 18px; min-height: 130px; display: grid; place-items: center; text-align: center; color: var(--muted); cursor: pointer; transition: border-color 0.2s, background 0.2s; overflow: hidden; position: relative; }
.drop:hover, .drop.over { border-color: rgba(255, 116, 72, 0.6); background: rgba(232, 65, 44, 0.06); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.drop span { position: relative; font-weight: 600; color: var(--cream); }
.drop small { color: var(--muted); font-weight: 400; }
.socials summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.socials .field { margin-bottom: 0.6rem; }
.preview .coin-card { pointer-events: none; }
.preview .cc-img img:not([src]) { display: none; }
.preview .cc-img { background: radial-gradient(circle at 50% 40%, #3a1a14, #1f0f0c); }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.5rem; color: #d2bfae; font-size: 0.9rem; }
.checks li::before { content: "✓"; color: var(--leaf); font-weight: 700; margin-right: 0.6rem; }

/* ---------- footer / toast ---------- */
.foot { border-top: 1px solid var(--line); padding: 2.6rem clamp(16px, 5vw, 72px) 3rem; text-align: center; color: var(--muted); }
.foot-brand { display: flex; gap: 0.55rem; align-items: center; justify-content: center; font: 800 1.3rem var(--display); color: var(--cream); margin-bottom: 0.6rem; }
.foot p { margin: 0.3rem auto; max-width: 640px; overflow-wrap: anywhere; }
.xbtn { padding: 0.7rem 0.85rem; }
.foot-x { color: var(--cream); font-weight: 600; text-decoration: none; }
.foot-x:hover { color: var(--red2); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--paper); color: var(--ink); padding: 0.7rem 1.1rem; border-radius: 12px; font-weight: 600; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6); animation: rise 0.3s; max-width: calc(100% - 32px); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { max-width: 380px; order: -1; }
  .counter, .coin-wrap { grid-template-columns: 1fr; }
  .trade { position: static; }
  .links { display: none; }
}
@media (max-width: 720px) {
  .steps, .launch-grid { grid-template-columns: 1fr; }
  .hangul { display: none; }
  .nav { gap: 0.6rem; }
  .nav .btn { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
  #connect { display: none; }
  .c-stats { grid-template-columns: 1fr 1fr; }
  .preview { display: none; }
  .hero-meta { gap: 1.4rem; }
  .ticket { font-size: 0.62rem; min-width: 150px; }
  .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
