:root {
  color-scheme: light;
  --ink: #172348;
  --paper: #f8fbff;
  --blue: #70c8ff;
  --lavender: #b9a7ff;
  --pink: #ff9fbd;
  --yellow: #ffe76d;
  --mint: #95e1bf;
  --line: #14234a;
  font-family: "Noto Sans KR", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 17px 17px, #87b9ec2b 2px, transparent 2.5px) 0 0 / 34px 34px,
    linear-gradient(145deg, #f7fcff, #f8f3ff 60%, #f1fbff);
}
a { color: inherit; }
.page { width: min(100% - 28px, 1120px); margin: auto; padding: 12px 0 40px; }

.site-header { display: flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand img { width: 43px; height: 43px; object-fit: contain; }
.brand small { display: block; color: #69748d; font-size: 8px; letter-spacing: .1em; }
.header-links a { display: inline-block; padding: 7px 13px; border: 3px solid var(--line); border-radius: 999px; background: var(--yellow); font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--line); }

.hub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 20px; margin-top: 15px; }
.hub-main { min-width: 0; }
.hero { position: relative; min-height: 230px; padding: 22px 225px 21px 26px; border: 5px solid var(--line); border-radius: 27px; background: linear-gradient(135deg, #71caff, #b5a8ff 57%, #ffb0ca); box-shadow: 7px 8px 0 var(--line); overflow: hidden; }
.hero::before, .hero::after { position: absolute; border: 4px solid var(--line); background: var(--yellow); content: ""; transform: rotate(12deg); }
.hero::before { top: 20px; right: 236px; width: 22px; height: 22px; clip-path: polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%); }
.hero::after { right: 33px; bottom: 28px; width: 18px; height: 18px; transform: rotate(-8deg); clip-path: polygon(50% 0,61% 36%,100% 50%,61% 64%,50% 100%,39% 64%,0 50%,39% 36%); }
.eyebrow { display: inline-block; padding: 5px 11px; border: 3px solid var(--line); border-radius: 999px; background: var(--yellow); font-family: "Gaegu", cursive; font-size: 17px; font-weight: 700; line-height: 1; box-shadow: 2px 2px 0 var(--line); transform: rotate(-1deg); }
.hero h1 { margin: 8px 0; font-family: "Gaegu", cursive; font-size: clamp(40px, 5vw, 53px); line-height: .92; letter-spacing: -.065em; text-shadow: 2px 3px 0 #fff; }
.hero h1 em { color: #fff; font-style: normal; text-shadow: 3px 3px 0 var(--line); }
.hero-copy > p { max-width: 520px; margin: 0; color: #15234a; font-size: 16px; font-weight: 700; line-height: 1.5; }
.hero-stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 13px; }
.hero-stats span { padding: 5px 9px; border: 3px solid var(--line); border-radius: 11px; background: #fff; font-size: 12px; font-weight: 700; box-shadow: 2px 2px 0 var(--line); }
.hero-stats span:nth-child(2) { background: #e8f8ef; }
.hero-stats span:nth-child(3) { background: #fff2b7; }
.hero-characters { position: absolute; top: 25px; right: 25px; width: 174px; height: 174px; border: 5px solid var(--line); border-radius: 50%; background: #fdfdff; box-shadow: 5px 6px 0 var(--line); }
.hero-characters img { position: absolute; width: 111px; height: 111px; object-fit: contain; filter: drop-shadow(2px 4px 1px #1d285b25); }
.hero-characters img:first-child { top: 1px; right: 5px; transform: rotate(7deg); }
.hero-characters img:nth-child(2) { bottom: 1px; left: 4px; transform: rotate(-8deg); }
.hero-characters span { position: absolute; right: -9px; bottom: 19px; padding: 5px 10px; border: 3px solid var(--line); border-radius: 999px; background: var(--yellow); font-family: "Gaegu", cursive; font-size: 18px; font-weight: 700; box-shadow: 2px 2px 0 var(--line); transform: rotate(3deg); }

.test-section { margin-top: 31px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 0 4px 14px; }
.section-heading span { color: #6754c3; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.section-heading h2 { margin: 1px 0 0; font-family: "Gaegu", cursive; font-size: 38px; line-height: 1; }
.section-heading > b { padding: 5px 10px; border: 3px solid var(--line); border-radius: 999px; background: var(--mint); font-family: "Gaegu", cursive; font-size: 17px; box-shadow: 2px 2px 0 var(--line); }
.test-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.test-card { position: relative; display: grid; grid-template-columns: 145px minmax(0, 1fr); align-items: center; min-height: 208px; gap: 15px; padding: 16px; border: 5px solid var(--line); border-radius: 25px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 5px 6px 0 var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.test-card:hover { transform: translate(-2px, -3px) rotate(-.25deg); box-shadow: 8px 10px 0 var(--line); }
.test-card:focus-visible { outline: 5px dashed #f04376; outline-offset: 5px; }
.test-card.featured { grid-column: 1 / -1; grid-template-columns: 210px minmax(0, 1fr); min-height: 250px; background: linear-gradient(135deg, #eaf8ff, #eee7ff 58%, #ffe7ef); }
.new-badge { position: absolute; top: -13px; right: 18px; padding: 3px 11px; border: 3px solid var(--line); border-radius: 999px; background: #ff729c; color: #fff; font-family: "Gaegu", cursive; font-size: 17px; font-weight: 700; box-shadow: 2px 2px 0 var(--line); transform: rotate(2deg); }
.card-art { display: grid; width: 100%; aspect-ratio: 1; place-items: center; border: 4px solid var(--line); border-radius: 22px; background: #daf3ff; overflow: hidden; }
.card-art.peach { background: #ffe6c8; }
.card-art.purple { background: #eee5ff; }
.card-art.mint { background: #dcf8eb; }
.card-art.yellow { background: #fff2aa; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card-copy { display: block; min-width: 0; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card-tags b { padding: 3px 7px; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow); font-size: 10px; }
.card-tags b:nth-child(2) { background: var(--mint); }
.card-copy > strong { display: block; margin-top: 9px; font-family: "Gaegu", cursive; font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.featured .card-copy > strong { font-size: 36px; }
.card-copy > small { display: block; margin-top: 8px; color: #56617a; font-size: 14px; font-weight: 600; line-height: 1.55; }
.start { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 3px dashed #c9d1e2; color: #4c42ad; font-size: 14px; font-weight: 900; }
.start i { display: grid; width: 29px; height: 29px; place-items: center; border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); color: var(--line); font-style: normal; }

.hub-side { display: grid; gap: 14px; }
.desktop-ad:not([hidden]) { display: grid; width: 300px; min-height: 268px; grid-template-rows: 12px 250px; place-items: center; gap: 6px; color: #6d7282; font-size: 9px; }
.pick-card { padding: 17px; border: 5px solid var(--line); border-radius: 23px; background: #e9e3ff; box-shadow: 5px 6px 0 var(--line); }
.pick-card > span { font-family: "Gaegu", cursive; font-size: 18px; font-weight: 700; }
.pick-card > strong { display: block; margin: 3px 0 13px; font-family: "Gaegu", cursive; font-size: 26px; line-height: 1.05; }
.pick-card a { display: grid; grid-template-columns: 67px 1fr; align-items: center; gap: 8px; padding: 8px; border: 3px solid var(--line); border-radius: 15px; background: #fff; text-decoration: none; box-shadow: 2px 3px 0 var(--line); }
.pick-card img { grid-row: 1 / 3; width: 67px; height: 67px; object-fit: contain; }
.pick-card b { align-self: end; font-size: 14px; }
.pick-card small { align-self: start; color: #5545bd; font-weight: 900; }
.mobile-ad { display: none; width: min(100%, 380px); min-height: 118px; grid-template-rows: 10px 100px; place-items: center; gap: 6px; margin: 26px auto 0; }

.guide { margin-top: 34px; padding: 25px; border: 5px solid var(--line); border-radius: 27px; background: #fff; box-shadow: 6px 7px 0 var(--line); }
.guide-heading { display: flex; align-items: center; gap: 12px; }
.guide-heading > span { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border: 4px solid var(--line); border-radius: 50%; background: var(--yellow); font-size: 25px; box-shadow: 3px 3px 0 var(--line); }
.guide-heading small { color: #6651c6; font-weight: 900; letter-spacing: .13em; }
.guide h2 { margin: 0; font-family: "Gaegu", cursive; font-size: 34px; line-height: 1; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.guide-grid article { padding: 16px; border: 3px solid var(--line); border-radius: 17px; background: #e5f6ff; }
.guide-grid article:nth-child(2) { background: #f0eaff; }
.guide-grid article:nth-child(3) { background: #e7f8e9; }
.guide-grid strong { font-family: "Gaegu", cursive; font-size: 21px; }
.guide-grid p { margin: 7px 0 0; font-size: 14px; line-height: 1.65; }
.guide-grid a { color: #3c50b5; font-weight: 800; }
.faq { margin-top: 28px; }
.faq h2 { padding-bottom: 8px; border-bottom: 4px solid var(--pink); font-size: 29px; }
.faq details { border-bottom: 2px dashed #c7cede; }
.faq summary { padding: 14px 4px; font-weight: 800; cursor: pointer; }
.faq details p { margin: -3px 4px 15px; color: #515d75; font-size: 15px; line-height: 1.65; }
.site-footer { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 38px; padding: 16px 9px 0; border-top: 4px dashed var(--line); font-family: "Gaegu", cursive; font-size: 17px; }
.site-footer nav { display: flex; gap: 13px; flex-wrap: wrap; }
.site-footer a { font-weight: 700; }

@media (max-width: 980px) {
  .hub-layout { grid-template-columns: 1fr; }
  .hub-side { display: none; }
  .mobile-ad:not([hidden]) { display: grid; }
}

@media (max-width: 720px) {
  .page { width: min(100% - 18px, 1120px); padding-top: 7px; }
  .brand { font-size: 13px; }
  .brand img { width: 38px; height: 38px; }
  .header-links a { padding: 6px 10px; border-width: 2px; font-size: 12px; box-shadow: 2px 2px 0 var(--line); }
  .hub-layout { margin-top: 10px; }
  .hero { min-height: 0; padding: 10px 12px 11px; border-width: 4px; border-radius: 20px; box-shadow: 5px 6px 0 var(--line); }
  .hero::before, .hero::after { display: none; }
  .hero h1 { margin: 6px 0 5px; font-size: clamp(31px, 9.6vw, 39px); line-height: .86; }
  .hero-copy > p { display: none; }
  .eyebrow { padding: 3px 8px; border-width: 2px; font-size: 12px; }
  .hero-stats { gap: 4px; margin-top: 6px; }
  .hero-stats span { padding: 4px 6px; border-width: 2px; font-size: 10px; }
  .hero-characters { display: none; }
  .test-section { margin-top: 26px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading > b { font-size: 14px; }
  .test-grid { grid-template-columns: 1fr; gap: 14px; }
  .test-card, .test-card.featured { grid-column: auto; grid-template-columns: 115px minmax(0, 1fr); min-height: 172px; gap: 11px; padding: 12px; border-width: 4px; border-radius: 21px; box-shadow: 4px 5px 0 var(--line); }
  .card-art { border-width: 3px; border-radius: 17px; }
  .card-copy > strong, .featured .card-copy > strong { font-size: 24px; }
  .card-copy > small { font-size: 12px; }
  .start { margin-top: 8px; padding-top: 7px; font-size: 12px; }
  .start i { width: 25px; height: 25px; }
  .guide { margin-top: 28px; padding: 18px 14px; border-width: 4px; border-radius: 22px; box-shadow: 4px 5px 0 var(--line); }
  .guide-heading > span { flex-basis: 46px; width: 46px; height: 46px; border-width: 3px; font-size: 21px; }
  .guide h2 { font-size: 28px; }
  .guide-grid { grid-template-columns: 1fr; gap: 9px; }
  .guide-grid article { padding: 13px; }
  .faq h2 { font-size: 27px; }
  .site-footer { font-size: 15px; }
}

@media (max-width: 390px) {
  .hero { padding-right: 13px; padding-left: 13px; }
  .test-card, .test-card.featured { grid-template-columns: 96px minmax(0, 1fr); gap: 9px; }
  .card-copy > strong, .featured .card-copy > strong { font-size: 22px; }
  .card-copy > small { font-size: 11px; }
  .card-tags b { padding: 2px 5px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
