@font-face {
  font-family: 'YoonChildfundkoreaManSeh';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408@1.0/YoonChildfundkoreaManSeh.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root{
  --bg: #fed7e0;
  --ink: #111;
  --line: #e7e7e7;
}

/* Base */
html, body {
  width: 100%;
  min-height: 100vh;
}

body.page {
  font-family: 'YoonChildfundkoreaManSeh', Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  text-align: center;
  overflow-x: hidden;
  padding-top: 52px; /* fixed nav space */
}

/* Nav */
.top-nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 1000;
}

.top-nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
}

.top-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 10px;
}

.top-nav a:hover {
  background: #f2f6ff;
  color: #0b67c6;
}

/* Layout */
.container {
  width: 360px;
  max-width: 360px;
  margin: 0 auto;
  padding: 10px 0 20px;
}

/* Ads */
.ad-container,
.footer-ad-container{
  width: 360px;
  max-width: 100%;
  margin: 10px auto;
}

/* Counter badge */
.counter-badge{
  width: 360px;
  max-width: 360px;
  margin: 8px auto 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
}

/* Start screen */
.start-screen{
  display: block;
}

.start-image{
  width: 100%;
  height: auto;
  display: block;
  margin: 6px auto 12px;
}

/* Quiz */
.quiz-container{
  display: none;
}

.quiz-container img,
#result-image{
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Progress bar */
.progress-container {
  width: 360px;
  max-width: 360px;
  background: #fff;
  height: 10px;
  position: relative;
  display: none;
  margin: 0 auto 16px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 10px;
  background: #fff478;
}

/* Buttons */
.custom-jelly-button{
  font-family: 'YoonChildfundkoreaManSeh', Arial, sans-serif;
  background: linear-gradient(90deg, #a1c4fd, #c2e9fb);
  color: #000;
  padding: 15px 20px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: block;
  margin: 10px auto;
  width: 90%;
  max-width: 340px;
}

.custom-jelly-button:hover{
  background: linear-gradient(90deg, #76b0fc, #a6ddfa);
  color: #fff;
}

.mt-3{ margin-top: 12px; }

.result-container{
  margin-top: 10px;
}

.result-actions{
  margin-top: 16px;
}

.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;
}
