/*
 * หน้านักเรียน (index.html): จอใหญ่ = landing page เลื่อนยาว, จอ < 900px = แอปมือถือ (ทีละหน้าจอ + เมนูล่าง)
 * โหลดหลัง style.css และ ui.css
 */
.app-only { display: none !important; }

/* ---------- แถบบน ---------- */
.top-nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.top-nav a { position: relative; padding: 6px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; transition: color .2s, background-color .25s, box-shadow .25s; }
.top-nav a:hover { color: var(--ink); }
.top-nav a.is-current { background: var(--surface); color: var(--primary); box-shadow: 0 4px 12px hsla(var(--h), 40%, 20%, .1); }
.top-nav a:focus-visible { outline: 3px solid var(--primary-glow); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero-sec { position: relative; padding: 56px 0 72px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(hsla(var(--h), 40%, 50%, .16) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: blob 16s ease-in-out infinite alternate; }
.b1 { width: 520px; height: 520px; background: var(--primary-2); top: -220px; right: -120px; }
.b2 { width: 420px; height: 420px; background: var(--primary); bottom: -200px; left: -160px; opacity: .3; animation-delay: -5s; }
.b3 { width: 280px; height: 280px; background: var(--accent-2); top: 40%; left: 42%; opacity: .2; animation-delay: -9s; }
[data-theme="dark"] .blob { opacity: .3; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.hero-copy { display: grid; gap: 18px; padding-top: 12px; animation: rise .8s var(--ease) backwards; }
.hero-side { display: grid; gap: 16px; animation: rise .8s .15s var(--ease) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hero-month { font-size: .88rem; font-weight: 600; color: var(--muted); }
.hero-title {
  font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.15; font-weight: 600; letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--ink) 30%, var(--primary) 65%, var(--primary-2)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 8s ease-in-out infinite;
}
@keyframes shine { 50% { background-position: 100% 0; } }
.q-bubble { position: relative; padding: 22px 24px 22px 26px; border-radius: 26px 26px 26px 8px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.q-bubble .question { background: none; padding: 0; font-family: var(--font-head); font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.55; }
.q-bubble .question.is-pending { font-family: var(--font); font-size: 1rem; }
.q-mark {
  position: absolute; top: -22px; right: 18px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: #fff;
  background: linear-gradient(145deg, var(--primary-2), var(--primary)); box-shadow: 0 10px 24px var(--primary-glow);
  animation: wobble 4s ease-in-out infinite;
}
@keyframes wobble { 0%, 100% { transform: rotate(8deg); } 50% { transform: rotate(-8deg) translateY(-4px); } }

/* นาฬิกานับถอยหลัง */
.clock { display: grid; gap: 10px; }
.clock-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.clock-label { font-weight: 600; }
.clock-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 460px; }
.cb { display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cb b { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--primary); display: inline-block; }
.cb b.is-tick { animation: tick .45s var(--spring); }
@keyframes tick { 0% { transform: translateY(-40%) scale(.9); opacity: 0; } }
.cb span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.clock-bar { height: 8px; max-width: 460px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.clock-bar i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: transform 1s linear; }
.clock.is-hurry .cb b { color: var(--danger); }
.clock.is-hurry .clock-bar i { background: linear-gradient(90deg, var(--warn), var(--danger)); }
.clock.is-closed .cb b, .clock.is-upcoming .clock-bar i { color: var(--muted); }

/* กล่องส่งคำตอบ: ขอบไล่สีหมุนรอบ */
.play-card {
  display: grid; gap: 14px; padding: 24px; border: 2px solid transparent; box-shadow: var(--shadow-lg);
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang, 0deg), var(--primary), var(--primary-2), var(--accent-2), var(--primary)) border-box;
  animation: spin-border 6s linear infinite;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin-border { to { --ang: 360deg; } }
.play-title { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.play-title .ic { width: 34px; height: 34px; padding: 7px; border-radius: 11px; background: var(--primary-soft); color: var(--primary); }
.who { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--bg-2); }
.who-text { display: grid; line-height: 1.3; flex: 1; min-width: 0; }
.who-text small { font-size: .75rem; color: var(--muted); }
.who-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.answer-input { position: relative; display: block; }
.answer-input input { padding-right: 64px; font-size: 1.05rem; min-height: 52px; }
.answer-len { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; pointer-events: none; }
.quota-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quota { font-size: .85rem; color: var(--muted); }
.quota-dots { display: flex; gap: 5px; }
.quota-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.quota-dots i.is-used { background: var(--line); box-shadow: none; }
.closed-msg { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 6px 0; }
.closed-msg i { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.closed-msg .ic { width: 22px; height: 22px; }

.avatar {
  --ah: 225; width: 40px; height: 40px; flex: none; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: #fff;
  background: linear-gradient(140deg, hsl(calc(var(--ah) + 30), 80%, 62%), hsl(var(--ah), 65%, 46%));
}

/* ผลประกาศ */
.result { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; animation: modal-in .6s var(--spring); }
.result.is-win { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 75%); }
.result h2 { font-size: 1.45rem; overflow-wrap: anywhere; }
.result-body { position: relative; min-width: 0; }
.result .result-icon { position: relative; z-index: 1; }
.result.is-win .result-icon { animation: trophy 2.6s ease-in-out infinite; }
.rays { position: absolute; left: 44px; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, hsla(44, 95%, 60%, .22) 0 10deg, transparent 10deg 24deg); animation: spin 14s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%); }
@keyframes spin { to { transform: rotate(360deg); } }

.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ms { display: grid; justify-items: start; gap: 0; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.ms .ic { width: 20px; height: 20px; color: var(--primary); margin-bottom: 4px; }
.ms b { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ms span { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ---------- ส่วนอื่นของ landing ---------- */
.sec { padding: 72px 0; position: relative; }
.sec-head { display: grid; justify-items: center; text-align: center; gap: 6px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.sec-head .eyebrow { color: var(--primary); text-transform: none; padding: 4px 14px; border-radius: 99px; background: var(--primary-soft); }
.count-pill { display: inline-grid; place-items: center; min-width: 36px; height: 32px; padding: 0 10px; border-radius: 99px; background: var(--primary); color: var(--primary-ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.count-pill:empty { display: none; }

.steps-sec { padding: 8px 0 40px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step > .ic { width: 46px; height: 46px; padding: 11px; border-radius: 15px; background: linear-gradient(145deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 10px 22px var(--primary-glow); }
.step p { color: var(--muted); font-size: .94rem; }
.step-no { position: absolute; right: 16px; top: 2px; font-family: var(--font-head); font-size: 5rem; font-weight: 600; line-height: 1; color: var(--primary); opacity: .08; }

.answers-tools { display: flex; justify-content: center; margin-bottom: 18px; }
.search { position: relative; display: block; width: min(560px, 100%); }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding: 14px 16px 14px 46px; border-radius: 99px; font-size: 1rem; background: var(--surface); box-shadow: var(--shadow); }
.answer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.answer-wall { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.answer {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow);
  animation: item-in .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 35ms);
  transition: transform .25s var(--spring), border-color .2s;
}
.answer:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
@keyframes item-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.a-body { min-width: 0; }
.a-text { font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.a-meta { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.a-meta time { font-variant-numeric: tabular-nums; }
.a-side { display: grid; justify-items: end; gap: 4px; }
.no { font-size: .76rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.answer.is-mine { border-color: color-mix(in srgb, var(--primary) 50%, var(--line)); background: linear-gradient(135deg, var(--primary-soft), var(--surface) 80%); }
.answer.is-correct .no { color: var(--ok); }
.answer.is-win { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 80%); box-shadow: 0 10px 30px rgba(226, 163, 0, .2); }
.answer.is-new { animation: arrive 1.1s var(--spring); }
@keyframes arrive { 0% { opacity: 0; transform: translateY(-14px) scale(.9); box-shadow: 0 0 0 6px var(--primary-glow); } 60% { box-shadow: 0 0 0 6px var(--primary-glow); } }

/* ผู้ชนะ: เส้นเวลา */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; display: grid; gap: 22px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 3px; margin-left: -1.5px; border-radius: 3px; background: linear-gradient(var(--accent-2), var(--primary), transparent); }
.tl-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 2; }
.tl-dot { position: absolute; left: 50%; top: 18px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: linear-gradient(145deg, #ffd66b, #f2a51f); color: #4a2a00; border: 4px solid var(--bg); box-shadow: 0 8px 18px rgba(242, 165, 31, .35); }
.tl-dot .ic { width: 18px; height: 18px; }
.tl-item.is-now .tl-dot { animation: ring-gold 2s ease-out infinite; }
@keyframes ring-gold { 0% { box-shadow: 0 0 0 0 rgba(242, 165, 31, .5); } 100% { box-shadow: 0 0 0 16px rgba(242, 165, 31, 0); } }
.tl-card { display: grid; gap: 8px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; }
.tl-item.is-now .tl-card { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.tl-month { font-size: .8rem; font-weight: 600; color: var(--primary); }
.tl-q { overflow-wrap: anywhere; }
.tl-win { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: var(--bg-2); }
.tl-win span { display: grid; line-height: 1.35; min-width: 0; }
.tl-win small { color: var(--muted); overflow-wrap: anywhere; }
.tl-none { font-size: .88rem; color: var(--muted); }

/* วิธีเล่น + FAQ */
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.how-main .sec-head { justify-items: start; text-align: left; }
.rules { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { counter-increment: r; position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 64px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rules li::before { content: counter(r); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; color: var(--primary-ink); background: linear-gradient(145deg, var(--primary-2), var(--primary)); }
.rules span { color: var(--muted); font-size: .92rem; }
.rules-note { margin-top: 14px; padding: 12px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--warn); }
.faq { display: grid; gap: 10px; padding-top: 6px; }
.faq-title { font-size: 1.2rem; margin-bottom: 4px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transition: transform .35s var(--spring); }
.faq details[open] summary .ic { transform: rotate(180deg); color: var(--primary); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }
.faq details[open] p { animation: hint-in .35s var(--ease); }

/* แถบชวนตอบ */
.cta-band { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 48px; border-radius: 30px;
  background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 40%, var(--primary-2))); color: #fff; box-shadow: 0 30px 60px var(--primary-glow); }
[data-theme="dark"] .cta-band { background: linear-gradient(120deg, hsl(var(--h), 60%, 32%), hsl(calc(var(--h) + 40), 60%, 34%)); }
.cta-bg { position: absolute; inset: 0; z-index: -1; }
.cta-bg .floater { color: #fff !important; opacity: .16; }
.cta-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; }
.cta-copy p { opacity: .88; margin-top: 4px; }

.foot { padding: 28px 0 36px; border-top: 1px solid var(--line); margin-top: 24px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.foot-brand { font-size: .95rem; }
.foot-brand .brand-mark { width: 28px; height: 28px; }
.foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; }
.foot a .ic { width: 16px; height: 16px; }

/* ================= มือถือ / LINE LIFF: หน้าตาแบบแอป ================= */
@media (max-width: 899px) {
  .app-only { display: block !important; }
  .demo-bar { font-size: .74rem; padding: 5px 12px; }
  .top-in { min-height: 56px; }
  .top .brand { font-size: 1rem; }
  .brand-mark { width: 32px; height: 32px; }
  html.is-app .screen { display: none; }
  html.is-app .screen.is-active { display: block; }
  .screen-in { animation: screen-in .4s var(--ease); }
  @keyframes screen-in { from { opacity: 0; transform: translateY(14px); } }

  .hero-sec { padding: 14px 0 6px; overflow: visible; }
  .hero-bg { overflow: hidden; }
  .b1 { width: 300px; height: 300px; top: -140px; right: -100px; }
  .b2, .b3 { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 14px; }
  .hero-copy, .hero-side { animation-duration: .55s; }
  /* การ์ดคำถามสีเต็มแบบแอป */
  .hero-copy {
    position: relative; overflow: hidden; gap: 12px; padding: 18px 16px 16px; border-radius: 26px; color: #fff;
    background: linear-gradient(140deg, var(--primary), color-mix(in srgb, var(--primary) 45%, var(--primary-2)));
    box-shadow: 0 18px 40px var(--primary-glow);
  }
  [data-theme="dark"] .hero-copy { background: linear-gradient(140deg, hsl(var(--h), 55%, 30%), hsl(calc(var(--h) + 40), 55%, 30%)); }
  .hero-copy::after { content: '?'; position: absolute; right: -10px; bottom: -46px; font-family: var(--font-head); font-size: 11rem; font-weight: 600; line-height: 1; opacity: .1; pointer-events: none; }
  .hero-copy .chip { background: rgba(255, 255, 255, .2); color: #fff; }
  .hero-month { color: rgba(255, 255, 255, .8); }
  .hero-title { font-size: 1.35rem; background: none; color: #fff; -webkit-text-fill-color: #fff; animation: none; }
  .q-bubble { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .22); box-shadow: none; padding: 14px 16px; border-radius: 18px 18px 18px 6px; }
  .q-bubble .question { color: #fff; font-size: 1.12rem; }
  .q-bubble .question.is-pending { color: rgba(255, 255, 255, .85); }
  .q-mark { display: none; }
  .hero-copy .note { color: rgba(255, 255, 255, .82); font-size: .86rem; }
  .clock-top { font-size: .86rem; }
  .clock .countdown { color: rgba(255, 255, 255, .78); font-size: .8rem; }
  .clock-boxes { gap: 6px; }
  .cb { padding: 8px 4px 6px; border-radius: 14px; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
  .cb b, .clock.is-hurry .cb b, .clock.is-closed .cb b { color: #fff; font-size: 1.45rem; }
  .cb span { color: rgba(255, 255, 255, .78); font-size: .68rem; }
  .clock-bar { background: rgba(255, 255, 255, .18); border-color: transparent; height: 6px; }
  .clock-bar i { background: #fff; }
  .clock.is-hurry .clock-bar i { background: #ffd0d0; }

  .play-card { padding: 18px 16px; box-shadow: var(--shadow); }
  
  .play-title { font-size: 1.1rem; }
  .play-card .muted { font-size: .92rem; }
  input:not([type=checkbox]):not([type=range]), textarea { font-size: 16px; } /* กัน iPhone ซูมเองตอนแตะช่อง */
  .answer-input input { font-size: 16px; }
  .mini-stats { gap: 8px; }
  .ms { padding: 10px 12px; border-radius: 16px; }
  .ms b { font-size: 1.25rem; }
  .ms .ic { width: 18px; height: 18px; margin-bottom: 2px; }
  .result { padding: 16px; }
  .result h2 { font-size: 1.25rem; }

  .latest { padding-top: 18px; padding-bottom: 8px; }
  .latest-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
  .latest-head h2 { font-size: 1.05rem; }

  .sec { padding: 18px 0 10px; }
  .sec-head { justify-items: start; text-align: left; margin-bottom: 14px; }
  .sec-head h2 { font-size: 1.35rem; justify-content: flex-start; }
  .sec-head .eyebrow { padding: 2px 10px; font-size: .74rem; }
  .answers-tools { position: sticky; top: 56px; z-index: 5; margin: 0 -16px 12px; padding: 8px 16px; background: var(--top-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .search { width: 100%; }
  .search input { box-shadow: none; padding-top: 12px; padding-bottom: 12px; }
  .answer-wall { grid-template-columns: 1fr; gap: 8px; }
  .answer { padding: 10px 12px; gap: 10px; border-radius: 16px; box-shadow: none; }
  .answer .avatar { width: 36px; height: 36px; border-radius: 12px; font-size: .95rem; }
  .answer:hover { transform: none; }

  .timeline::before { left: 19px; }
  .tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 52px; }
  .tl-item:nth-child(n) .tl-card { grid-column: 1; }
  .tl-dot { left: 0; margin-left: 0; top: 12px; }
  .tl-card { padding: 14px 16px; }
  .timeline { gap: 14px; }

  .how-grid { grid-template-columns: 1fr; gap: 22px; }
  .rules li { padding: 12px 14px 12px 58px; border-radius: 16px; box-shadow: none; }
  .rules li::before { left: 12px; top: 12px; width: 34px; height: 34px; }
  .faq details { box-shadow: none; border-radius: 16px; }
  .faq summary { min-height: 52px; padding: 12px 16px; }

  .foot { margin-top: 18px; padding: 18px 0 8px; }
  .foot-in { justify-content: center; }
  .foot-brand { display: none; }
}
@media (max-width: 380px) {
  .mini-stats .ms span { font-size: .7rem; }
  .cb b, .clock.is-hurry .cb b, .clock.is-closed .cb b { font-size: 1.25rem; }
  .answer { grid-template-columns: auto minmax(0, 1fr); }
  .a-side { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; }
}
