/* ISA Korea · YMUNK 2026 fair — pamphlet, gift screen and 404 styles.
 * Owner: template. Shared language switch / star bar / dialog styles stay in progress.css. */
:root {
  color-scheme: light;
  --green: #164638;
  --green-deep: #0f3329;
  --paper: #fffbef;
  --card: #fffdf6;
  --sand: #f3eddc;
  --sage: #e5edcf;
  --ink: #19291f;
  --muted: #475a4f;
  --lime: #e5f5a2;
  --orange: #ac422c;
  --dot: #1fabb3;
  --line: #cccebb;
  --star: #f2b705;
  --font: system-ui, -apple-system, "Pretendard", "Noto Sans KR", "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--font); word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja) body { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, sans-serif; word-break: normal; line-break: strict; }
a { color: inherit; text-underline-offset: .22em; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--dot); outline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { text-wrap: auto; }
p { text-wrap: pretty; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--green); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.top { background: rgba(255, 251, 239, .95); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 8px 0; }
.mark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: auto; color: var(--green); font-weight: 900; font-size: 1.08rem; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.mark-dot { display: inline-block; flex: none; width: .62em; height: .62em; border-radius: 50%; background: var(--dot); }
.top-stars { order: 3; }
@media (max-width: 559px) { .top-stars { flex: 1 1 100%; justify-content: center; } }
@media (min-width: 560px) { .top-lang { order: 4; } .top-stars { order: 3; } }
@media (min-width: 760px) { .top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); } }

/* ---------- shared bits ---------- */
.kicker { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eye { color: var(--orange); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 22px; border-radius: 999px; font-weight: 850; text-decoration: none; text-align: center; line-height: 1.3; }
.btn-lime { background: var(--lime); color: var(--green); }
.btn-lime:hover { background: #fff; }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .55); color: var(--paper); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.ticket-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; letter-spacing: .1em; white-space: nowrap; }
.ticket-brand.light { color: var(--paper); font-size: .8rem; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: 16px; padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: 8px 8px 72px 8px; background: var(--green); color: var(--paper); }
.hero-art { position: absolute; z-index: -1; right: -6%; top: -18%; width: min(58%, 600px); height: 136%; opacity: .92; }
.hero .kicker { color: var(--lime); }
.hero h1 { margin: .35em 0 .35em; max-width: 12ch; font-size: clamp(2.35rem, 8vw, 5.4rem); line-height: 1.04; letter-spacing: -.045em; }
html:lang(ja) .hero h1 { letter-spacing: -.02em; max-width: 13ch; }
.lead { margin: 0; max-width: 36ch; font-size: clamp(1.03rem, 2vw, 1.22rem); }
.ticket { position: relative; max-width: 640px; margin-top: 26px; border-radius: 16px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 34px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.ticket::before { left: -9px; } .ticket::after { right: -9px; }
.ticket-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 2px dashed #cfc8aa; color: var(--green); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ticket dl { display: grid; gap: 10px; margin: 0; padding: 14px 18px 16px; }
.ticket dl div { display: grid; grid-template-columns: 5.2em 1fr; gap: 10px; align-items: baseline; }
.ticket dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ticket dd { margin: 0; font-weight: 800; line-height: 1.35; }
@media (min-width: 760px) {
  .ticket dl { grid-template-columns: 1fr 1.2fr 1.2fr; }
  .ticket dl div { grid-template-columns: 1fr; gap: 2px; }
  .ticket dl div + div { border-left: 1px solid #e3dcc2; padding-left: 14px; }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 559px) { .cta-row .btn { flex: 1 1 100%; } .hero-art { opacity: .32; width: 82%; right: -26%; top: -22%; } .hero { border-bottom-right-radius: 44px; } }

/* ---------- sections ---------- */
.section { padding: clamp(42px, 7vw, 84px) 0; border-bottom: 1px solid var(--line); }
.section h2 { margin: .3rem 0 1rem; font-size: clamp(1.75rem, 4.6vw, 3.1rem); line-height: 1.15; letter-spacing: -.035em; }
html:lang(ja) .section h2 { letter-spacing: -.01em; }
.body-lg { margin: .4rem 0; max-width: 52ch; font-size: 1.12rem; }
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(22px, 4vw, 52px); align-items: start; }
.tagline { margin: 22px 0 0; padding: 14px 18px; border-left: 5px solid var(--dot); border-radius: 0 12px 12px 0; background: var(--sand); color: var(--green); font-size: 1.15rem; font-weight: 850; line-height: 1.45; }
.tagline-tr { margin: 8px 0 0 23px; color: var(--muted); font-weight: 650; }
.tagline-tr:empty { display: none; }
.idcard { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background-color: var(--card); background-image: repeating-radial-gradient(circle at 100% 0, transparent 0 13px, rgba(22, 70, 56, .05) 13px 14px); box-shadow: 0 10px 26px rgba(22, 70, 56, .1); }
.idcard-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 18px; background: var(--green); color: var(--paper); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.idcard dl { display: grid; gap: 0; margin: 0; padding: 6px 18px; }
.idcard dl div { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #ddd6bd; }
.idcard dt { color: var(--muted); font-size: .8rem; font-weight: 800; }
.idcard dd { margin: 0; font-weight: 800; line-height: 1.4; }
.mrz { margin: 0; padding: 10px 18px 14px; color: #6b7b70; font: 700 .78rem/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .12em; overflow-wrap: anywhere; word-break: break-all; }
.programs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.prog { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(20px, 3vw, 28px); border-radius: 16px; background: var(--sand); }
.prog.online { background: var(--sage); }
.prog h3 { margin: 0; font-size: 1.32rem; line-height: 1.3; }
.prog p { margin: 0; }
.tag { padding: 3px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .06em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.chips li { padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 750; }
.note { color: var(--muted); font-size: .93rem; font-weight: 700; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; color: var(--green); font-weight: 850; }
@media (max-width: 759px) { .about, .programs { grid-template-columns: 1fr; } .idcard dl div { grid-template-columns: 7.2em 1fr; } }

/* ---------- star journey (passport) ---------- */
.journey-sec { border-bottom: 0; }
.passport { position: relative; overflow: hidden; padding: clamp(22px, 4.5vw, 48px); border-radius: 26px; background-color: var(--green); background-image: repeating-radial-gradient(circle at 0 100%, transparent 0 18px, rgba(229, 245, 162, .05) 18px 19px); color: var(--paper); }
.passport-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.passport .kicker { color: var(--lime); }
.passport h2 { max-width: 22ch; }
.journey-lead { margin: 0; max-width: 60ch; color: #e8efe2; }
.meter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 22px 0 6px; }
.meter-count { color: var(--star); font-size: 1.25rem; white-space: nowrap; }
.meter { flex: 1 1 160px; height: 12px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--star); transition: width .5s ease; }
.route { display: grid; gap: 18px; margin: 22px 0 24px; padding: 0; list-style: none; }
.route li { position: relative; }
.route li:not(:last-child)::after { content: ""; position: absolute; z-index: 1; left: 51px; top: calc(100% - 6px); height: 30px; border-left: 3px dashed var(--lime); opacity: .8; }
.stop { position: relative; z-index: 2; display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; min-height: 104px; padding: 14px 16px 14px 14px; border-radius: 18px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .15s ease; }
.stop:hover { transform: translateY(-2px); }
.stamp { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border: 3px dashed #b9b6a3; border-radius: 50%; background: #f5f0dd; font-size: 1.85rem; }
.stamp-num { position: absolute; top: -6px; left: -6px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--green); color: #fff; font-size: .82rem; font-weight: 900; }
.stamp-ink { display: none; flex-direction: column; align-items: center; color: var(--orange); font-size: 1.9rem; font-weight: 900; line-height: 1; }
.stamp-ink small { font-size: .62rem; letter-spacing: .18em; }
.stop-text { display: grid; gap: 3px; min-width: 0; }
.stop-n { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stop-name { font-size: 1.14rem; line-height: 1.25; }
.stop-rule { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.stop-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 5px; }
.pill { padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 850; }
.stop-go { color: var(--green); font-size: .9rem; font-weight: 850; }
.route li[data-state="done"] .stamp { border: 5px double var(--orange); background: #fbeee7; transform: rotate(-10deg); }
.route li[data-state="done"] .stamp-icon { display: none; }
.route li[data-state="done"] .stamp-ink { display: flex; }
.route li[data-state="done"] .stamp-num { background: var(--orange); transform: rotate(10deg); }
.route li[data-state="done"] .pill { background: #f8e2d9; color: var(--orange); }
.route li[data-state="ready"] .stop { box-shadow: 0 0 0 4px var(--lime); }
.route li[data-state="ready"] .stamp { border: 3px solid var(--green); background: #fff; animation: isa-ready 2s ease-in-out infinite; }
.route li[data-state="ready"] .pill { background: var(--lime); color: var(--green); }
.route li[data-state="locked"] .stop { background: #e6e3d2; color: #4d5b52; }
.route li[data-state="locked"] .stamp-icon { opacity: .35; filter: grayscale(1); }
.route li[data-state="locked"] .stamp::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: #5c6a60 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / 16px no-repeat; }
.route li[data-state="locked"] .pill { background: #d3d0be; color: #3f4b44; }
.route li[data-state="locked"] .stop-go { color: #4d5b52; }
@keyframes isa-ready { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 70, 56, .35); } 50% { box-shadow: 0 0 0 8px rgba(22, 70, 56, 0); } }
@media (min-width: 900px) {
  .route { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .route li:not(:last-child)::after { left: calc(100% - 8px); top: 58px; width: 36px; height: 0; border-left: 0; border-top: 3px dashed var(--lime); }
  .stop { grid-template-columns: 1fr; justify-items: center; align-content: start; height: 100%; padding: 22px 14px 18px; text-align: center; }
  .stop-foot { justify-content: center; }
}
.done-panel { margin: 0 0 14px; padding: 14px 18px; border-radius: 16px; background: rgba(242, 183, 5, .16); border: 1px solid rgba(242, 183, 5, .5); }
.done-panel strong { color: var(--star); font-size: 1.2rem; }
.done-panel p { margin: 4px 0 0; }
.cta-big { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 62px; padding: 12px 24px; border-radius: 999px; background: var(--lime); color: var(--green); font-size: 1.14rem; font-weight: 900; line-height: 1.3; text-align: center; text-decoration: none; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.cta-big:hover { background: #fff; }
.passport[data-complete="true"] .cta-big { background: var(--star); color: var(--ink); }
.journey-note { margin: 14px 0 0; color: #cfdccd; font-size: .9rem; text-align: center; }

/* ---------- connect + footer ---------- */
.links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.link { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; }
.link strong { color: var(--green); font-size: 1.06rem; }
.link span { color: var(--muted); font-size: .94rem; }
.link:hover { border-color: var(--green); background: var(--lime); }
@media (max-width: 559px) { .links { grid-template-columns: 1fr; } }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 26px 0 40px; color: var(--muted); font-size: .9rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-weight: 800; }

/* ---------- gift screen ---------- */
.gift-main { padding: 18px 0 48px; }
.gift-card { position: relative; isolation: isolate; overflow: hidden; max-width: 640px; margin: 0 auto; padding: clamp(22px, 5vw, 42px); border-radius: 26px; background: var(--green); color: var(--paper); text-align: center; }
.gift-card h1 { margin: 6px 0 8px; font-size: clamp(1.8rem, 7vw, 2.7rem); line-height: 1.15; letter-spacing: -.03em; }
.gift-card .kicker { color: var(--lime); }
.gift-card p { margin: 0 auto; max-width: 42ch; }
.gift-card.live::before { content: ""; position: absolute; z-index: -1; inset: -60%; background: conic-gradient(from 0deg, transparent 0 62%, rgba(229, 245, 162, .2) 74%, transparent 86%); animation: isa-spin 7s linear infinite; }
.gift-stars { display: flex; justify-content: center; gap: clamp(4px, 2vw, 12px); margin: 4px 0 10px; }
.gift-stars span { display: inline-block; color: rgba(255, 255, 255, .28); font-size: clamp(2.6rem, 14vw, 4.4rem); line-height: 1; }
.gift-stars span.on { color: var(--star); text-shadow: 0 4px 18px rgba(242, 183, 5, .45); }
.live .gift-stars span.on { animation: isa-twinkle 2.4s ease-in-out infinite; }
.live .gift-stars span:nth-child(2) { animation-delay: .3s; }
.live .gift-stars span:nth-child(3) { animation-delay: .6s; }
.live .gift-stars span:nth-child(4) { animation-delay: .9s; }
.gift-count { margin: 0 0 6px; color: var(--star); font-size: 1.15rem; font-weight: 900; }
.facts { display: grid; gap: 10px; margin: 20px 0 0; text-align: left; }
.fact { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 12px 16px; border-radius: 14px; background: var(--paper); color: var(--ink); }
.fact dt { color: var(--muted); font-size: .84rem; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.fact dd { margin: 0; font-weight: 900; font-variant-numeric: tabular-nums; }
.fact.code dd { color: var(--green); font: 900 1.7rem/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; }
.fact.clock dd { font-size: 1.5rem; letter-spacing: .02em; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #d93a2b; animation: isa-blink 1s steps(2, start) infinite; }
.sec-ring { display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--s, 0) * 1turn / 60), #ddd6bd 0); vertical-align: -3px; margin-left: 8px; }
.gift-actions { display: grid; gap: 10px; margin-top: 20px; }
.gift-actions .btn { width: 100%; }
.btn-quiet { color: var(--paper); text-decoration: underline; }
.staff { margin-top: 22px; padding: 16px; border: 2px dashed rgba(255, 255, 255, .45); border-radius: 18px; }
.staff h2 { margin: 0 0 4px; font-size: 1.05rem; letter-spacing: .04em; }
.staff p { margin-bottom: 12px; color: #dfe8da; font-size: .93rem; }
.hold { position: relative; overflow: hidden; width: 100%; min-height: 66px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--paper); color: var(--green); font: inherit; font-size: 1.06rem; font-weight: 900; cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.hold-fill { position: absolute; inset: 0; background: var(--lime); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.hold-label { position: relative; }
.hold.holding { box-shadow: 0 0 0 4px var(--lime); }
.given { display: inline-grid; gap: 2px; margin: 18px auto 6px; padding: 14px 22px; border: 6px double var(--orange); border-radius: 14px; background: var(--paper); color: var(--orange); transform: rotate(-5deg); text-transform: uppercase; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); }
.given strong { font-size: clamp(1.7rem, 8vw, 2.4rem); line-height: 1.05; letter-spacing: .06em; }
.given span { font-size: 1.05rem; font-weight: 900; }
.given .given-time { font: 900 1.5rem/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.given.fresh { animation: isa-stamp .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.gift-card.redeemed { background: #2f3b35; }
.redeemed-note { margin-top: 10px !important; font-weight: 800; }
@keyframes isa-spin { to { transform: rotate(1turn); } }
@keyframes isa-twinkle { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) rotate(6deg); } }
@keyframes isa-blink { to { visibility: hidden; } }
@keyframes isa-stamp { 0% { transform: scale(2.2) rotate(-18deg); opacity: 0; } 100% { transform: scale(1) rotate(-5deg); opacity: 1; } }

/* ---------- 404 ---------- */
.nf { max-width: 560px; margin: 28px auto 60px; text-align: center; }
.nf .gift-card { text-align: center; }
.nf .kicker { font-size: 2.4rem; letter-spacing: .1em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .top-lang, .top-stars, .skip { display: none; }
  .hero, .passport, .idcard-head { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
