@import url("https://fonts.googleapis.com/css2?family=Song+Myung&display=swap");

:root {
  --bg: #0e1525;
  --panel: #162542;
  --panel-soft: #1d2f52;
  --text: #edf3ff;
  --muted: #c7d6f2;
  --orange: #7ab0ff;
  --gold: #dbe8ff;
  --pink: #9dbfff;
  --teal: #7ec8ff;
  --line: rgba(173, 196, 232, 0.28);
  --shadow: 0 14px 34px rgba(0, 7, 18, 0.48);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, #244174 0%, transparent 35%),
    radial-gradient(circle at 85% 8%, #1f2f55 0%, transparent 30%),
    linear-gradient(180deg, #101a2f 0%, #0b1325 45%, #080f1d 100%);
  min-height: 100%;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.page.page-index {
  padding-bottom: 112px;
}

.top-hangul-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: "Song Myung", "Nanum Myeongjo", "Noto Serif KR", serif;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #f2e4bf;
  text-shadow:
    0 1px 0 rgba(9, 15, 30, 0.95),
    0 6px 14px rgba(6, 10, 22, 0.65);
}

.top-hangul-subtitle {
  margin: -8px 0 14px;
  text-align: center;
  font-family: "Song Myung", "Nanum Myeongjo", "Noto Serif KR", serif;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  line-height: 1.25;
  color: #4f6388;
  text-shadow: 0 3px 10px rgba(6, 10, 22, 0.52);
}

.title-pattern-band {
  height: 34px;
  margin: 0 auto 10px;
  width: 100%;
  border: 0;
  background: #fcf8f5 url("images/korean-pattern-band-2.png") center / auto 100% repeat-x;
}

.hero.tagline-compact h1 {
  font-size: clamp(1.75rem, 4.1vw, 2.95rem);
}

.language-switch {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.language-switch .contact-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.language-switch .lang-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  white-space: normal;
}

.lang-picker {
  grid-column: auto;
  justify-self: auto;
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
}

.lang-picker .lang-icon {
  display: none;
}

.lang-picker select {
  border: 0;
  background: transparent;
  color: #e7f0ff;
  font: inherit;
  font-size: 0.92rem;
  min-width: 130px;
  outline: none;
  cursor: pointer;
}

.lang-picker select option {
  color: #1c2f4f;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-switch a {
  text-decoration: none;
  font-size: 0.92rem;
  color: #e7f0ff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  padding: 6px 10px;
  border-radius: 999px;
  transition: transform 120ms ease, background-color 120ms ease;
}

.language-switch a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.language-switch a[aria-current="page"] {
  background: rgba(126, 200, 255, 0.2);
  border-color: rgba(126, 200, 255, 0.65);
  color: #e8f3ff;
  font-weight: 700;
}

.hero {
  border: 2px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fcf8f5;
  color: #1a2740;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(20, 35, 58, 0.06),
      rgba(20, 35, 58, 0.06) 1px,
      transparent 1px,
      transparent 6px
    );
  pointer-events: none;
  z-index: 1;
}

.hero.no-scan::before {
  content: none;
}

.hero.hunmin-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/hunmin.png") center / cover no-repeat;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 28px 46px;
}

.hero-top-image {
  display: block;
  width: min(50%, 320px);
  margin: 0 auto 16px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  transform: translateY(0);
}

.hero-top-image:hover {
  animation: hero-logo-cheer-jump 520ms cubic-bezier(0.2, 0.85, 0.35, 1) 1;
}

@keyframes hero-logo-cheer-jump {
  0% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-9px) scale(1.02);
  }
  65% {
    transform: translateY(1px) scale(0.995);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0e1b34;
  background: var(--gold);
  border-radius: 999px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.hero-accent {
  background: linear-gradient(transparent 66%, #dce8fb 66%);
  color: #1f4378;
  display: inline-block;
  padding: 0 4px 2px;
  border-radius: 4px;
  text-shadow: none;
}

.subtitle {
  width: 100%;
  max-width: none;
  margin: 16px 0 22px;
  font-size: 1.05rem;
  color: #334a6d;
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-badges li {
  border: 1px solid rgba(26, 51, 84, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  color: #1d3356;
  background: #eef4ff;
  backdrop-filter: blur(2px);
}

.dict-offer-title {
  margin: 12px 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2e4d79;
}

.dict-offer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.dict-offer-list li {
  font-size: 0.86rem;
  color: #324f78;
  background: rgba(51, 84, 130, 0.08);
  border: 1px solid rgba(46, 77, 121, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
}

.hero-download-title {
  margin: 22px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2e4d79;
}

.hero-os-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-os-support-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero-os-support-text {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero-download-links {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-download-links a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #1f457f;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35, 75, 135, 0.25);
  background: #edf4ff;
  transition: transform 120ms ease, background-color 120ms ease;
}

.hero-download-links a:hover {
  transform: translateY(-1px);
  background: #dfeeff;
}

.signal-band {
  height: 34px;
  margin-top: 24px;
  border-radius: 0;
  border: 0;
  background: #fcf8f5 url("images/korean-pattern-band-2.png") center / auto 100% repeat-x;
}

.section-title {
  margin: 42px 0 14px;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfe2ff;
}

.section-title.section-title-os {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title-os-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.download-combined-card .section-title {
  color: #234b87;
}

.download-combined-card > .section-title:not(:first-of-type) {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid #d8e4f3;
}

.download-combined-card .doc-link {
  margin: 16px 0 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.download-products {
  margin-top: 22px;
}

.card {
  border: 1px solid var(--line);
  background: #fcf8f5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  color: #1c2f4f;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}

.card h2 code {
  font-size: 0.88em;
  color: #234b87;
}

.card p {
  margin: 0;
  color: #31496d;
  line-height: 1.55;
}

.card.card-desktop-download {
  display: flex;
  flex-direction: column;
}

.card.card-desktop-download .card-link-bottom {
  margin-top: auto;
}

.workflow-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.workflow-card > .doc-link:last-child,
.workflow-card > .doc-link-row:last-child {
  margin-top: auto;
}

.workflow-card .doc-link-row {
  justify-content: center;
}

.workflow-card .doc-link {
  text-align: center;
}

.feature-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #2f466a;
  line-height: 1.6;
}

.feature-list li + li {
  margin-top: 4px;
}

.doc-link {
  margin: 22px 0 0;
}

.doc-link-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.doc-link-row .doc-link {
  margin: 0;
}

.donation-cta {
  margin-top: 64px;
  margin-bottom: 44px;
  text-align: center;
}

.donation-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(468px, 92vw);
  padding: 48px 24px;
  font-size: 1.2rem;
  font-weight: 800;
}

.floating-polar-btn {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 1100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.96rem;
  color: #1f457f;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(35, 75, 135, 0.25);
  background: #edf4ff;
  box-shadow: 0 8px 22px rgba(8, 20, 40, 0.26);
  transition: none;
}

.floating-polar-btn:hover,
.floating-polar-btn:focus-visible {
  color: #1f457f;
  background: #edf4ff;
  transform: none;
}

.doc-link a {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: #1f457f;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(35, 75, 135, 0.25);
  background: #edf4ff;
  transition: transform 120ms ease, background-color 120ms ease;
}

.doc-link a:hover {
  transform: translateY(-1px);
  background: #dfeeff;
}

.placeholder {
  margin-top: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  color: #375278;
  background:
    linear-gradient(135deg, rgba(115, 166, 228, 0.15), rgba(190, 211, 242, 0.2)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.4) 0 8px,
      rgba(255, 255, 255, 0.18) 8px 16px
    );
}

.placeholder strong {
  display: block;
  font-size: 1.05rem;
  color: #254877;
  margin-bottom: 6px;
}

.cta {
  margin-top: 28px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fcf8f5;
  color: #1e2f4d;
}

.cta p {
  margin: 0;
  color: #2f4569;
  line-height: 1.65;
}

.footer-note {
  margin-top: 32px;
  font-size: 0.92rem;
  color: #c2d4ef;
  opacity: 0.92;
}

.brand-footer {
  margin-top: 28px;
  text-align: center;
}

.brand-footer img {
  display: block;
  width: min(50%, 260px);
  max-width: 100%;
  margin: 12px auto 10px;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.brand-footer hr {
  border: 0;
  height: 1px;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.28);
}

.brand-footer p {
  margin: 0;
  font-size: 0.9rem;
  color: #d3e2f8;
}

.brand-footer a {
  color: #d7e9ff;
  font-weight: 700;
}

.issue-top-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.issue-top-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: #e7f0ff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.09);
  padding: 6px 10px;
  border-radius: 999px;
  transition: transform 120ms ease, background-color 120ms ease;
}

.issue-top-nav a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.issue-top-nav .lang-links {
  display: flex;
  gap: 10px;
  margin-left: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.issue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
}

.issue-card {
  border: 1px solid var(--line);
  background: #fcf8f5;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  color: #1d3152;
}

.issue-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #1f3f74;
}

.issue-card p,
.issue-card li,
.issue-card label {
  color: #324a6e;
  line-height: 1.6;
}

.issue-card ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.issue-form {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.issue-form input,
.issue-form select,
.issue-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(46, 77, 121, 0.28);
  background: #fffdfb;
  color: #233a60;
  font: inherit;
}

.issue-form textarea {
  min-height: 120px;
  resize: vertical;
}

.issue-form .submit-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.issue-form button {
  border: 1px solid rgba(35, 75, 135, 0.25);
  background: #edf4ff;
  color: #1f457f;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.issue-placeholder-note {
  margin: 0;
  font-size: 0.86rem;
  color: #44628f;
}

.google-form-wrap {
  margin-top: 8px;
  border: 1px solid rgba(46, 77, 121, 0.2);
  border-radius: 12px;
  overflow: hidden;
  background: #fffdfb;
}

.google-form-wrap iframe {
  display: block;
  width: 100%;
  height: 1850px;
  border: 0;
}

.letters {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #9cd6ff;
  margin-top: 8px;
}

.art-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.section-title-gallery {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Keep post-screenshot donation section aligned with top/full content width */
.art-gallery + .section-title {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.art-gallery + .section-title + .products {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  grid-template-columns: 1fr;
}

.license-note {
  margin: 16px 0 8px;
  font-size: 0.92rem;
  color: #3a547b;
}

.license-embed {
  margin-top: 6px;
  border: 1px solid rgba(46, 77, 121, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: #fffdfb;
}

.license-frame {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
  background: #fffdfb;
}

.emoji-burst {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1200;
}

.emoji-burst-item {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.25rem;
  line-height: 1;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
  animation: emoji-burst-fly var(--dur, 700ms) ease-out var(--delay, 0ms) forwards;
}

@keyframes emoji-burst-fly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(0.7);
  }
  15% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--dx, 0), var(--dy, -90px)) rotate(var(--dr, 0deg)) scale(1.15);
  }
}

.art-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fcf8f5;
  box-shadow: var(--shadow);
}

.art-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1a1035;
}

.image-slider {
  position: relative;
  overflow: hidden;
}

.image-slider .slider-image {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1a1035;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 18, 34, 0.38);
  color: #f2f7ff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background-color 120ms ease;
}

.slider-arrow:hover {
  background: rgba(8, 18, 34, 0.56);
}

.slider-arrow-left {
  left: 10px;
}

.slider-arrow-right {
  right: 10px;
}

.art-caption {
  margin: 0;
  padding: 10px 12px 12px;
  color: #2f466b;
  font-size: 0.92rem;
  border-top: 1px solid rgba(35, 75, 135, 0.15);
}

@media (max-width: 680px) {
  .hero-inner {
    padding: 30px 18px 34px;
  }

  .card {
    padding: 16px;
  }
}
