﻿@font-face {
    font-family: 'PfStardust30';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2506-1@1.0/PFStardust.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'PfStardust30';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2506-1@1.0/PFStardustBold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'PfStardust30';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2506-1@1.0/PFStardustExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
:root{
  --bg: #0b0d1a;
  --bg-start: #0b0d1a;
  --bg-end: #06080f;
  --bg-glow-1: rgba(255,255,255,0.06);
  --bg-glow-2: rgba(255,255,255,0.08);
  --surface: rgba(10, 15, 32, 0.88);
  --surface-strong: rgba(18, 23, 45, 0.96);
  --ink: #f8f8ff;
  --ink-dim: #9aa3c1;
  --accent: #ffd85c;
  --accent-soft: rgba(255, 216, 92, 0.24);
  --border: rgba(255, 255, 255, 0.14);
  color-scheme: dark;
}

:root[data-theme="light"]{
  --bg: #f2f6ff;
  --bg-start: #f6f8ff;
  --bg-end: #e9efff;
  --bg-glow-1: rgba(255,255,255,0.85);
  --bg-glow-2: rgba(190, 215, 255, 0.42);
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --ink: #1b2438;
  --ink-dim: #566481;
  --accent: #7a4300;
  --accent-soft: rgba(185, 122, 0, 0.18);
  --border: rgba(27, 36, 56, 0.16);
  color-scheme: light;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ min-height:100%; }
body{
  margin:0;
  min-height:100vh;
  font-family: 'Noto Sans KR', 'Malgun Gothic', 'Apple SD Gothic Neo', Arial, sans-serif;
  font-weight: 400;
  font-variant-ligatures: none;
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: radial-gradient(circle at top, var(--bg-glow-1), transparent 22%),
              radial-gradient(circle at 80% 10%, var(--bg-glow-2), transparent 12%),
              linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
  overflow-x:hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.eyebrow, .hero-title, .node-label {
  font-family: 'PfStardust30', monospace;
}

.home-fab{
  position:fixed;
  top:20px;
  left:20px;
  z-index:30;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:var(--ink);
  background: transparent;
  border:none;
  text-decoration:none;
  font-size:20px;
  box-shadow:none;
  backdrop-filter: none;
}
.home-fab::after{
  content: 'home';
  position:absolute;
  left:50%;
  top:52px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.home-fab:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.home-fab:hover::after{
  opacity: 1;
}
.home-fab-icon{
  width:35px;
  height:35px;
  object-fit:contain;
  display:block;
}
.theme-icon{
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
}
.home-fab.hidden{
  display: none;
}

.theme-fab{
  position:fixed;
  top:20px;
  right:20px;
  z-index:30;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  color:var(--ink);
  background: transparent;
  border:none;
  text-decoration:none;
  font-size:20px;
  box-shadow:none;
  cursor:pointer;
}
.theme-fab::after{
  content: 'mode';
  position:absolute;
  left:50%;
  top:52px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.theme-fab:hover{
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}
.theme-fab:hover::after{
  opacity: 1;
}
.theme-fab.hidden{
  display: none;
}

:root[data-theme="light"] .landing-panel,
:root[data-theme="light"] .note-modal-panel{
  background: rgba(255, 255, 255, 0.9);
}

:root[data-theme="light"] .info-card,
:root[data-theme="light"] .word-card,
:root[data-theme="light"] .metric-card,
:root[data-theme="light"] .word-item,
:root[data-theme="light"] .post-card,
:root[data-theme="light"] .input-wrap,
:root[data-theme="light"] .sentence-input,
:root[data-theme="light"] .sentence-check-btn,
:root[data-theme="light"] .sentence-speak-btn,
:root[data-theme="light"] .pagination-btn,
:root[data-theme="light"] .cta,
:root[data-theme="light"] .btn-primary-flat,
:root[data-theme="light"] .btn-secondary,
:root[data-theme="light"] .footer-links a,
:root[data-theme="light"] .policy-links a{
  background: rgba(245, 248, 255, 0.84);
  border-color: rgba(27, 36, 56, 0.16);
}

:root[data-theme="light"] .hero-description,
:root[data-theme="light"] .intro-copy,
:root[data-theme="light"] .section-text,
:root[data-theme="light"] .policy-panel,
:root[data-theme="light"] .footer-copy,
:root[data-theme="light"] .noscript-copy,
:root[data-theme="light"] .post-text,
:root[data-theme="light"] .sentence-text,
:root[data-theme="light"] .sentence-feedback,
:root[data-theme="light"] .answer-vocab,
:root[data-theme="light"] .post-source,
:root[data-theme="light"] .metric-label,
:root[data-theme="light"] .word-item .m,
:root[data-theme="light"] .pron-text,
:root[data-theme="light"] .answer-sentence .diff-ignored,
:root[data-theme="light"] .sentence-input::placeholder{
  color: #000000;
}

:root[data-theme="light"] .home-fab::after,
:root[data-theme="light"] .theme-fab::after{
  background: rgba(27, 36, 56, 0.86);
}
.page-shell{
  position:relative;
  min-height:100vh;
  padding: 48px 24px 52px;
}

.star-field{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.star{
  position:absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 0 16px rgba(255,255,255,0.18);
}
.star-1{ top: 10%; left: 14%; }
.star-2{ top: 18%; left: 78%; width: 6px; height: 6px; }
.star-3{ top: 36%; left: 50%; width: 3px; height: 3px; opacity:0.9; }
.star-4{ top: 62%; left: 22%; width: 5px; height: 5px; }
.star-5{ top: 74%; left: 82%; width: 4px; height: 4px; }
.star-6{ top: 88%; left: 44%; width: 3px; height: 3px; opacity:0.7; }
.star-7{ top: 6%; left: 58%; width: 6px; height: 6px; }
.star-8{ top: 92%; left: 10%; width: 5px; height: 5px; opacity:0.8; }

.landing-panel{
  position:relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 32px 40px;
  border-radius: 40px;
  background: rgba(8, 11, 23, 0.84);
  border: none;
  box-shadow: none;
}

.title-block{
  max-width: 720px;
  margin: 0 auto 40px;
  text-align:center;
}
.eyebrow{
  margin: 0 0 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-title{
  margin: 0;
  font-size: clamp(40px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-description{
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  text-align: center;
}

.footer-links,
.policy-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.footer-links a,
.policy-links a{
  color: var(--ink);
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  padding: 10px 14px;
  border-radius: 999px;
}

.footer-links a:hover,
.policy-links a:hover{
  background: rgba(255,255,255,0.1);
}

.constellation-panel{
  position:relative;
  padding: 20px 0 24px;
}
.constellation{
  position:relative;
  min-height: 600px;
}

.node{
  position:absolute;
  border:none;
  background:transparent;
  cursor:pointer;
  padding:0;
  transition: transform .22s ease, filter .22s ease;
}
.node:hover{
  transform: scale(1.08);
  filter: brightness(1.15);
}
.node-core{
  position:relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 0 40px rgba(255,255,255,0.08);
}
.node-icon{
  position:relative;
  display:block;
  object-fit:contain;
  pointer-events:none;
}
.node-icon-typing{
  width: 72px;
  height: 72px;
}
.node-icon-notes{
  width: 84px;
  height: 84px;
}
.node-icon-privacy{
  width: 60px;
  height: 60px;
}
.node-icon-about{
  width: 88px;
  height: 88px;
}
.node-icon-contact{
  width: 74px;
  height: 74px;
}
.node-icon-soon{
  width: 68px;
  height: 68px;
  opacity: 0.84;
  filter: saturate(0.8) brightness(0.92);
}
.node-1 .node-core{
  width: 62px;
  height: 62px;
  background: radial-gradient(circle at 35% 35%, #8ddcff, #2e7ef2 60%, #0f1c3b 100%);
  box-shadow: 0 0 30px rgba(80, 180, 255, 0.28);
}
.node-2 .node-core{
  width: 84px;
  height: 84px;
  background: radial-gradient(circle at 30% 30%, #fff6b5, #f8c53b 55%, rgba(255,213,76,0.18) 100%);
  box-shadow: 0 0 42px rgba(255, 215, 90, 0.28);
}
.node-3 .node-core{
  width: 70px;
  height: 70px;
  background: radial-gradient(circle at 35% 35%, #ffc0e8, #d96bd8 60%, #33113c 100%);
  box-shadow: 0 0 34px rgba(218, 107, 216, 0.26);
}
.node-4 .node-icon-about{ filter: drop-shadow(0 0 18px rgba(255, 216, 92, 0.32)); }
.node-5 .node-icon-contact{ filter: drop-shadow(0 0 16px rgba(120, 192, 255, 0.28)); }
.planet-ring{
  position:absolute;
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: rotate(-25deg);
}
.node-label{
  position:absolute;
  top: 118%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  color: var(--ink);
  font-size: 8px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1.6;
}
.node-1 .node-label{ font-size: 10px; }
.node-2 .node-label{ font-size: 10px; color: var(--accent); }
.node-3 .node-label{ font-size: 10px; }
.node-soon{
  cursor: default;
}
.node-soon:hover{
  transform: scale(1.03);
  filter: brightness(1.05);
}
.node-soon .node-label{
  color: rgba(255,255,255,0.62);
}
.node-1{ top: 18%; left: 16%; transform: translate(-50%, -50%); }
.node-2{ top: 54%; left: 43%; transform: translate(-50%, -50%); }
.node-3{ top: 20%; left: 81%; transform: translate(-50%, -50%); }
.node-4{ top: 35%; left: 62%; transform: translate(-50%, -50%) rotate(-7deg); }
.node-5{ top: 76%; left: 74%; transform: translate(-50%, -50%) rotate(4deg); }
.node-6{ top: 12%; left: 43%; transform: translate(-50%, -50%) rotate(-8deg); }
.node-7{ top: 70%; left: 14%; transform: translate(-50%, -50%) rotate(9deg); }
.node-8{ top: 84%; left: 52%; transform: translate(-50%, -50%) rotate(-5deg); }

.site-info-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.info-card{
  padding: 22px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.info-card h2{
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 18px;
}

.info-card p{
  margin: 0;
  color: var(--ink-dim);
  line-height: 1.7;
}

.typing-page .landing-panel{
  max-width: 760px;
  padding: 40px 28px;
}
.screen{ display:none; }
.screen.active{ display:block; }
.home{ text-align:center; }
.profile-avatar{ display:block; width:96px; height:96px; margin:0 auto 20px; border-radius:50%; }
.title{ margin:0 0 16px; font-size:32px; line-height:1.2; }
.intro-copy{ margin:0 auto 24px; max-width:560px; color: rgba(255,255,255,0.78); line-height:1.7; }
.cta, .btn-primary-flat, .btn-secondary{
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  cursor:pointer;
  font-family: inherit;
}
.cta{ margin-top:8px; }
.practice-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:24px; }
.progress-track{ display:flex; gap:8px; }
.segment{ width:12px; height:12px; border-radius:50%; border:1px solid rgba(255,255,255,0.24); }
.segment.filled{ background: rgba(255,255,255,0.7); }
.segment.current{ border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.word-card{ padding:24px; border-radius:24px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); margin-bottom:20px; }
.pos-text{ color:var(--accent); margin-bottom:10px; text-transform:uppercase; }
.meaning-text{ font-size:24px; margin-bottom:8px; }
.pron-text{ color: rgba(255,255,255,0.72); }
.input-box{ margin-top:16px; }
.input-wrap{ position:relative; padding:16px; border-radius:20px; border:1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); }
#typingInput{ width:100%; border:none; outline:none; background:transparent; color:var(--ink); font-size:20px; font-family:inherit; }
.char-overlay{ display:flex; gap:2px; flex-wrap:wrap; margin-bottom:10px; color: rgba(255,255,255,0.8); }
.typing-page .word-card{ text-align:center; }
.typing-page .input-wrap{ border:none; background: transparent; }
.typing-page .char-overlay{ justify-content:center; }
.typing-page #typingInput{ text-align:center; }
.char-overlay .ph{ color: rgba(255,255,255,0.44); }
.char-overlay .ok{ color:#8ff0b0; }
.char-overlay .bad{ color:#ff8d8d; }
.char-overlay .cursor{ display:inline-block; width:2px; height:16px; background:#fff; animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity:0; } }
.result-header{ text-transform:uppercase; letter-spacing:0.24em; color:var(--accent); margin-bottom:8px; }
.result-title{ margin:0 0 24px; font-size:28px; }
.metric-grid{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; margin-bottom:24px; }
.metric-card{ padding:18px; border-radius:20px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); }
.metric-value{ font-size:24px; margin-bottom:8px; }
.metric-label{ color: rgba(255,255,255,0.72); }
.word-list{ margin-top:18px; }
.word-list-title{ margin-bottom:12px; color:var(--accent); }
.word-item{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; border-radius:14px; margin-bottom:8px; background: rgba(255,255,255,0.05); }
.word-item.ok{ border:1px solid rgba(143,240,176,0.24); }
.word-item.bad{ border:1px solid rgba(255,141,141,0.24); }
.word-item .w{ flex:1; }
.word-item .m{ display:block; color: rgba(255,255,255,0.68); font-size:12px; margin-top:4px; }
.result-actions{ display:flex; gap:12px; margin-top:24px; }
.page-panel{ padding:24px; border-radius:24px; background: transparent; border:none; }
.section-title{ font-size:22px; margin-bottom:12px; color:var(--accent); }
.section-text{ color: rgba(255,255,255,0.78); line-height:1.8; margin:0 0 34px; white-space: pre-line; text-align: center; }
.section-text.align-left{ text-align:left; }
.content-summary{ margin-bottom: 18px; }
.seo-copy-panel{ margin-top: 14px; }
.site-footer{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-copy{
  margin: 0 0 14px;
  color: rgba(255,255,255,0.66);
  line-height: 1.7;
  text-align: center;
}

.noscript-copy{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.66);
  line-height: 1.7;
}

.post-card-static{
  cursor: default;
}

.policy-panel{
  line-height: 1.8;
  color: rgba(255,255,255,0.8);
}

.policy-panel h2{
  margin: 28px 0 10px;
  color: var(--accent);
  font-size: 20px;
}

.policy-panel p{
  margin: 0 0 12px;
}

.policy-links{
  margin-top: 24px;
}

.resource-panel,
.typing-title-block{
  margin-bottom: 24px;
}
.post-card{ padding:14px 16px; border-radius:16px; background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1); margin-bottom:10px; cursor:pointer; }
.post-card{
  display: block;
  color: inherit;
  text-decoration: none;
}
.post-row{ display:grid; grid-template-columns: 1fr 2.5fr 2.5fr; gap:12px; align-items:start; }
.post-number{ color:var(--accent); min-width:28px; font-weight:700; }
.post-text{ color: rgba(255,255,255,0.9); line-height:1.6; }
.note-pagination{ display:flex; justify-content:center; align-items:center; gap:12px; margin-top:16px; }
.pagination-btn{ border:1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.06); color:var(--ink); padding:8px 12px; border-radius:999px; cursor:pointer; text-decoration: none; display: block; width: fit-content; margin: 0 auto; }
.note-modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; padding:20px; z-index:20; }
.note-modal.hidden{ display:none; }
.note-modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,0.65); }
.note-modal-panel{ position:relative; width:min(92vw, 900px); height:min(88vh, 860px); max-height:88vh; overflow:auto; padding:54px 30px 28px; border-radius:24px; background: rgba(8, 11, 23, 0.96); border:1px solid rgba(255,255,255,0.12); z-index:1; }
.note-close-btn{ position:absolute; top:14px; right:14px; background:none; border:none; color: var(--ink); font-size:24px; cursor:pointer; }
.post-sentence{ display:grid; grid-template-columns: 24px 1fr; gap:10px 16px; align-items:start; margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,0.08); }
.sentence-label{ color:var(--accent); font-weight:700; line-height:1.8; }
.sentence-content{ display:flex; flex-direction:column; gap:12px; margin-bottom:40px; }
.sentence-text{ margin:0; color: rgba(255,255,255,0.9); line-height:1.8; font-size:1.3rem; font-weight:700; }
.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;
}
.sentence-input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}
.sentence-input{
  flex:1 1 auto;
  min-width:0;
  border:none;
  background: rgba(255,255,255,0.07);
  color: var(--ink);
  border-radius:12px;
  padding:10px 12px;
  font-size:0.95rem;
  font-family:inherit;
}
.sentence-input::placeholder{ color: rgba(255,255,255,0.5); }
.sentence-input:focus{
  outline:none;
  border-color: rgba(255,216,92,0.72);
  box-shadow: 0 0 0 2px rgba(255,216,92,0.16);
}
.sentence-check-btn{
  flex:0 0 auto;
  border:none;
  background:rgba(255,255,255,0.08);
  color:var(--ink);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
}
.sentence-check-btn:hover{ background: rgba(255,255,255,0.16); }
.sentence-feedback{
  margin:0;
  min-height:1.4em;
  font-size:0.92rem;
  line-height:1.6;
  color: rgba(255,255,255,0.72);
}
.sentence-feedback.feedback-correct{ color: #8ff0b0; }
.sentence-feedback.feedback-wrong{ color: #ffb3b3; }
.answer-sentence .diff-correct{ color: #8ff0b0; }
.answer-sentence .diff-wrong{ color: #ff8d8d; }
.answer-sentence .diff-ignored{ color: rgba(255,255,255,0.74); }
.answer-sentence .diff-space{ color: inherit; }
.sentence-answer.hidden{ display:none; }
.answer-sentence-row{ display:flex; align-items:flex-start; gap:10px; }
.sentence-speak-btn{
  flex:0 0 auto;
  width:34px;
  height:34px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: var(--ink);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
  line-height:1;
}
.sentence-speak-btn:hover{ background: rgba(255,255,255,0.14); }
.sentence-speak-btn:disabled{
  opacity:0.45;
  cursor:not-allowed;
}
.answer-sentence-row .answer-sentence{ margin-top:5px; }
.answer-sentence{ color:var(--accent); margin:8px 0 6px; }
.answer-vocab{ color: rgba(255,255,255,0.74); margin:0; line-height:1.7; white-space: pre-line; }
.post-source{ margin-top:20px; color: rgba(255,255,255,0.64); line-height:1.6; font-size:0.8rem; text-align:right; opacity:0.85; }

@media (max-width: 880px){
  .landing-panel{
    padding: 40px 24px 36px;
  }
  .constellation{
    min-height: 680px;
  }
  .node-1{ top: 15%; left: 20%; }
  .node-2{ top: 47%; left: 50%; }
  .node-3{ top: 20%; left: 78%; }
  .node-4{ top: 36%; left: 68%; }
  .node-5{ top: 74%; left: 72%; }
  .node-6{ top: 8%; left: 48%; }
  .node-7{ top: 68%; left: 18%; }
  .node-8{ top: 84%; left: 46%; }
}

@media (max-width: 640px){
  .page-shell{
    padding: 20px 10px 20px;
  }
  .home-fab,
  .theme-fab{
    top: 14px;
    width: 40px;
    height: 40px;
  }
  .home-fab{ left: 14px; }
  .theme-fab{ right: 14px; }
  .landing-panel{
    padding: 28px 16px 24px;
    border-radius: 32px;
  }
  .notes-panel{
    padding: 60px 10px 18px;
  }
  .notes-panel .title-block{
    margin-bottom: 20px;
  }
  .notes-panel .page-panel{
    padding: 8px 0 4px;
  }
  .notes-panel .section-text{
    margin-bottom: 18px;
    line-height: 1.68;
  }
  .notes-panel .post-card{
    padding: 12px 10px;
  }
  .notes-panel .post-row{
    gap: 10px;
  }
  .note-modal{
    padding: 12px;
  }
  .note-modal-panel{
    width: 100%;
    height: 92vh;
    max-height: 92vh;
    padding: 48px 20px 20px;
    border-radius: 20px;
    overflow-x: hidden;
  }
  .sentence-input-wrap{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .sentence-input{
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
  }
  .sentence-check-btn{
    align-self: stretch;
    width: 100%;
    padding: 12px 14px;
  }
  .answer-sentence-row{
    gap: 8px;
  }
  .answer-sentence-row .answer-sentence,
  .answer-vocab,
  .sentence-feedback,
  .post-source{
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .sentence-speak-btn{
    width: 32px;
    height: 32px;
  }
  .answer-sentence{
    margin: 6px 0 4px;
    line-height: 1.7;
    word-break: break-word;
  }
  .answer-vocab{
    font-size: 0.92rem;
  }
  .post-source{
    text-align: left;
    margin-top: 16px;
    font-size: 0.78rem;
    word-break: break-word;
  }
  .hero-title{
    font-size: clamp(30px, 8.5vw, 44px);
  }
  .constellation{
    min-height: 760px;
  }
  .node-1,
  .node-2,
  .node-3,
  .node-4,
  .node-5,
  .node-6,
  .node-7,
  .node-8{
    transform: translate(-50%, -50%);
  }
  .node-1{ top: 13%; left: 24%; }
  .node-2{ top: 42%; left: 68%; }
  .node-3{ top: 24%; left: 76%; }
  .node-4{ top: 33%; left: 24%; }
  .node-5{ top: 69%; left: 74%; }
  .node-6{ top: 58%; left: 18%; }
  .node-7{ top: 82%; left: 28%; }
  .node-8{ top: 88%; left: 62%; }
  .site-info-grid{
    grid-template-columns: 1fr;
  }
  .footer-links,
  .policy-links{
    justify-content: center;
  }
}

@media (max-width: 420px){
  .page-shell{
    padding: 20px 6px 12px;
  }
  .constellation{
    min-height: 720px;
  }
  .notes-panel{
    border-radius: 22px;
    padding: 60px 8px 14px;
  }
  .notes-panel .page-panel{
    padding: 6px 0 2px;
  }
  .notes-panel .post-row{
    grid-template-columns: 34px 1fr 1fr;
    gap: 8px;
    align-items: start;
  }
  .note-modal{
    padding: 8px;
  }
  .note-modal-panel{
    padding: 48px 20px 18px;
    border-radius: 18px;
    overflow-x: hidden;
  }
  .sentence-text{
    line-height: 1.7;
    font-size:1.2rem;
  }
  .sentence-feedback{
    font-size: 0.88rem;
  }
}

@media (max-width: 400px){
  .note-modal-panel{
    padding: 48px 20px 16px;
  }
  .post-sentence{
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 8px 10px;
  }
  .sentence-content{
    min-width: 0;
  }
  .setence-text{
    font-size:1.2rem;
  }
  .sentence-text,
  .sentence-feedback,
  .answer-sentence,
  .answer-vocab,
  .post-source{
    min-width: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .sentence-input-wrap{
    gap: 12px;
  }
  .sentence-input,
  .sentence-check-btn{
    width: 100%;
  }
  .sentence-check-btn{
    padding: 11px 12px;
  }
  .answer-sentence-row{
    align-items: center;
  }
  .sentence-speak-btn{
    flex-shrink: 0;
  }
}
