@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@200;400;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  /* Zen garden palette */
  --bg: #1c1e26;           /* night stone */
  --bg2: #242630;          /* dark slate */
  --bg3: #2a2d3a;          /* card surface */
  --bg4: #323545;          /* raised surface */
  --text: #e8e4df;         /* warm white */
  --text2: #c4bfb6;        /* soft parchment */
  --muted: #7a7580;        /* stone grey */
  --accent: #d4564e;       /* torii red */
  --accent2: #e8695f;      /* light red */
  --accent-dim: rgba(212,86,78,0.12);
  --green: #6aab73;        /* bamboo */
  --green-dim: rgba(106,171,115,0.12);
  --gold: #c9a84c;         /* lantern gold */
  --red: #d4564e;
  --border: #383b4a;       /* subtle edge */
  --border-light: #444860;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.35);
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  height: 100vh; overflow: hidden;
}

/* Subtle gradient overlay on body */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(212,86,78,0.03) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(106,171,115,0.02) 0%, transparent 50%);
}

#app { position: relative; z-index: 1; height: 100vh; overflow-y: auto; padding: 28px 36px; max-width: 840px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 14px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 8px rgba(212,86,78,0.15); } 50% { box-shadow: 0 0 20px rgba(212,86,78,0.25); } }
@keyframes breathe { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ===== HOME — zen garden feel ===== */
.home-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 88vh; text-align: center;
}
.logo {
  font-family: 'Noto Sans JP', serif; font-size: 60px; font-weight: 200;
  color: var(--text); letter-spacing: 8px; margin-bottom: 4px;
  animation: fadeIn 0.8s ease;
}
.tagline {
  font-size: 12px; color: var(--muted); letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 36px; animation: fadeIn 1s ease;
}
.home-stats {
  display: flex; gap: 12px; margin-bottom: 28px; animation: slideUp 0.6s ease 0.2s both;
}
.home-stat {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 22px; min-width: 90px; box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.home-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.hs-num { font-size: 26px; font-weight: 700; color: var(--accent); }
.hs-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }

.home-unit-nav {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
  animation: slideUp 0.6s ease 0.3s both;
}
.home-unit-box {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 32px; text-align: center; min-width: 280px;
  box-shadow: var(--shadow-sm); transition: opacity 0.25s, transform 0.25s;
}
.home-unit-box.slide-left { opacity: 0; transform: translateX(-40px); }
.home-unit-box.slide-right { opacity: 0; transform: translateX(40px); }
.home-unit-box.slide-in { opacity: 1; transform: translateX(0); }
.home-unit-name { font-size: 22px; font-weight: 600; margin-bottom: 4px; }
.home-unit-sub { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.home-unit-pct { font-size: 16px; font-weight: 600; color: var(--accent); }

.start-btn {
  background: transparent; border: 1.5px solid var(--text2);
  border-radius: var(--radius); color: var(--text2); padding: 14px 52px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all 0.3s; letter-spacing: 2px; text-transform: uppercase;
  animation: slideUp 0.6s ease 0.4s both;
}
.start-btn:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
  transform: translateY(-2px); box-shadow: 0 4px 20px rgba(212,86,78,0.3);
}

/* ===== ARROWS ===== */
.unit-arrow {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; font-size: 16px; color: var(--muted);
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.unit-arrow:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.1); }
.unit-arrow:active { transform: scale(0.92); }
.unit-arrow.disabled { opacity: 0.15; cursor: not-allowed; }
.unit-arrow.disabled:hover { border-color: var(--border); color: var(--muted); transform: none; }

/* ===== UNIT PAGE — dojo interior ===== */
.unit-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.unit-name { font-family: 'Noto Sans JP', serif; font-size: 30px; font-weight: 600; margin-bottom: 2px; }
.unit-subtitle { font-size: 13px; color: var(--muted); }
.unit-progress-ring {
  display: flex; flex-direction: column; align-items: center;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 20px; box-shadow: var(--shadow-sm);
}
.upr-num { font-size: 28px; font-weight: 700; color: var(--accent); }
.upr-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; }

.section-title {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px;
  color: var(--muted); margin-bottom: 12px;
}

/* Phase cards — wooden planks feel */
.phase-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.phase-card {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; cursor: pointer; transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}
.phase-card:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow-md); }
.phase-card.locked { opacity: 0.35; cursor: not-allowed; }
.phase-card.locked:hover { border-color: var(--border); transform: none; box-shadow: var(--shadow-sm); }
.phase-card.done { border-left: 3px solid var(--green); }

.phase-left { display: flex; align-items: center; gap: 14px; }
.phase-step {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg4); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--muted); flex-shrink: 0;
  transition: all 0.2s;
}
.phase-card.active .phase-step { background: var(--accent); border-color: var(--accent); color: #fff; animation: glow 2s ease infinite; }
.phase-card.done .phase-step { background: var(--green); border-color: var(--green); color: #fff; }
.phase-name { font-size: 15px; font-weight: 600; }
.phase-detail { font-size: 12px; color: var(--muted); margin-top: 2px; }
.phase-right { text-align: right; min-width: 70px; }
.phase-status { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.phase-status.complete { color: var(--green); }
.phase-bar { width: 70px; height: 4px; background: var(--bg4); border-radius: 2px; overflow: hidden; }
.phase-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.5s ease; }
.phase-bar-fill.complete { background: var(--green); }

/* Hiragana chart — stone tablet */
.unit-kana-chart { margin-top: 20px; }
.unit-kana-chart .kana-grid { border-spacing: 3px; }
.unit-kana-chart .kg-cell { padding: 8px 10px; font-size: 22px; min-width: 42px; }
.unit-kana-chart .kg-header { font-size: 11px; padding: 4px 6px; }
.unit-kana-chart .kg-empty { padding: 8px 10px; min-width: 42px; }

.kana-grid { border-collapse: separate; border-spacing: 4px; }
.kg-header { font-size: 11px; color: var(--muted); font-weight: 600; text-align: center; padding: 4px 8px; }
.kg-cell {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; text-align: center; font-family: 'Noto Sans JP', serif;
  font-size: 24px; min-width: 52px; transition: all 0.15s; cursor: default;
  box-shadow: var(--shadow-sm);
}
.kg-cell:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kg-cell.unlearned { color: var(--border); opacity: 0.25; box-shadow: none; }
.kg-cell.unlearned:hover { border-color: var(--border); background: var(--bg3); transform: none; box-shadow: none; }
.kg-empty { padding: 10px 12px; min-width: 52px; }

.kana-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.kana-chip {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: 16px; box-shadow: var(--shadow-sm);
}
.kana-chip .chip-sub { font-size: 9px; color: var(--muted); display: block; text-align: center; }

/* ===== QUIZ VIEWS — focused, minimal ===== */
.mc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 460px; margin-bottom: 16px; }
.mc-choice {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; font-family: 'Noto Sans JP', serif; font-size: 22px;
  text-align: center; cursor: pointer; transition: all 0.15s;
  box-shadow: var(--shadow-sm); color: var(--text);
}
.mc-choice:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mc-choice:active { transform: scale(0.97); }
.mc-choice.correct { border-color: var(--green); background: var(--green-dim); animation: popIn 0.2s ease; }
.mc-choice.wrong { border-color: var(--red); background: var(--accent-dim); animation: popIn 0.2s ease; }
.mc-choice.disabled { pointer-events: none; opacity: 0.35; }
.mc-choice.disabled.correct { opacity: 1; }
.mc-romaji { display: block; font-family: 'Inter', sans-serif; font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ===== TEACH — spotlight feel ===== */
.teach-label { font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: var(--muted); margin-bottom: 20px; }
.teach-char {
  font-family: 'Noto Sans JP', serif; font-size: 140px; font-weight: 200;
  line-height: 1; margin-bottom: 12px; animation: popIn 0.4s ease;
  color: var(--text);
}
.teach-rom { font-size: 28px; color: var(--accent); margin-bottom: 10px; letter-spacing: 2px; }
.teach-notes { font-size: 14px; color: var(--muted); margin-bottom: 32px; max-width: 400px; line-height: 1.6; }

/* ===== VOCAB PAGE — scroll-like ===== */
.vocab-layout { display: flex; gap: 28px; align-items: flex-start; }
.vocab-left { flex: 1; min-width: 0; }
.vocab-right { width: 240px; flex-shrink: 0; position: sticky; top: 24px; }
.vocab-practice-box {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.vocab-practice-box .section-title { margin-top: 0; }
.vocab-practice-list { display: flex; flex-direction: column; gap: 8px; }
.vocab-practice-btn {
  display: block; width: 100%; background: var(--bg4); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; text-align: left; cursor: pointer;
  transition: all 0.15s; font-size: 13px; color: var(--text);
}
.vocab-practice-btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.vocab-practice-btn .vpb-name { font-weight: 600; margin-bottom: 3px; }
.vocab-practice-btn .vpb-count { font-size: 11px; color: var(--muted); }

.vocab-group-title {
  font-size: 11px; font-weight: 600; color: var(--gold); text-transform: uppercase;
  letter-spacing: 1.5px; margin-top: 20px; margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.vocab-group-title:first-child { margin-top: 0; }

/* Word rows */
.word-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(56,59,74,0.5); font-size: 14px;
}
.word-row.clickable { cursor: pointer; transition: all 0.12s; border-radius: var(--radius-sm); padding: 10px 8px; margin: 0 -8px; }
.word-row.clickable:hover { background: var(--accent-dim); }
.word-row .jp { font-family: 'Noto Sans JP', serif; font-size: 18px; display: block; }
.word-row .jp-rom { font-size: 10px; color: var(--muted); display: block; margin-top: -1px; }
.word-row .en { color: var(--text2); }
.mastery-dots { font-size: 10px; margin-left: 8px; }

/* Practice items */
.mode-grid { display: flex; flex-direction: column; gap: 8px; }
.practice-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; cursor: pointer; transition: all 0.15s; text-align: left; width: 100%;
  box-shadow: var(--shadow-sm); color: var(--text);
}
.practice-item:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.practice-item.current { border-left: 3px solid var(--accent); }
.pi-left { flex: 1; } .pi-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.pi-count { font-size: 12px; color: var(--muted); } .pi-right { font-size: 14px; color: var(--muted); }

/* Quiz preview */
.quiz-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.qp-chip {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 13px; font-size: 15px; text-align: center; box-shadow: var(--shadow-sm);
  animation: slideUp 0.3s ease both; color: var(--text);
}
.qp-chip .qp-sub { font-size: 9px; color: var(--muted); display: block; }
.qp-chip.clickable { cursor: pointer; }
.qp-chip.clickable:hover { border-color: var(--accent); background: var(--accent-dim); }
.qp-label { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; width: 100%; margin-top: 10px; margin-bottom: 4px; }

/* ===== BUTTONS ===== */
.back-btn {
  background: none; border: none; color: var(--muted);
  font-size: 14px; cursor: pointer; padding: 4px 0; margin-bottom: 16px;
  transition: color 0.15s;
}
.back-btn:hover { color: var(--text); }

.btn {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 11px 26px; font-size: 14px; cursor: pointer;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.accent:hover { background: var(--accent2); border-color: var(--accent2); box-shadow: 0 4px 16px rgba(212,86,78,0.25); }
.btn.pass { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.btn.pass:hover { background: var(--green); color: #fff; }
.btn.fail { background: var(--accent-dim); border-color: var(--red); color: var(--red); }
.btn.fail:hover { background: var(--red); color: #fff; }

/* ===== REVIEW SCREENS ===== */
.review-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.counter {
  font-size: 12px; color: var(--muted); letter-spacing: 1px;
  background: var(--bg3); border: 1px solid var(--border); border-radius: 20px;
  padding: 4px 14px;
}
.card-area { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 380px; text-align: center; }
.card-big { font-family: 'Noto Sans JP', serif; font-size: 52px; font-weight: 600; margin-bottom: 8px; animation: popIn 0.25s ease; }
.card-mid { font-size: 18px; color: var(--accent); margin-bottom: 6px; }
.card-small { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 500px; }

.flashcard { width: 480px; height: 300px; cursor: pointer; position: relative; perspective: 1000px; }
.flashcard-front, .flashcard-back {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
  border-radius: var(--radius); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 28px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.flashcard-front { background: var(--bg3); }
.flashcard-back { background: var(--bg2); transform: rotateY(-180deg); }
.flashcard.flipped .flashcard-front { transform: rotateY(180deg); }
.flashcard.flipped .flashcard-back { transform: rotateY(0deg); }
.card-hint { margin-top: 16px; font-size: 11px; color: var(--muted); letter-spacing: 1px; animation: breathe 3s ease infinite; }
.nav-row { display: flex; gap: 12px; margin-top: 24px; }

.answer-box {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 36px; margin-bottom: 18px; min-width: 300px;
  box-shadow: var(--shadow-sm); animation: slideUp 0.25s ease;
}
.grade-row { display: flex; gap: 12px; }

.input-row { display: flex; gap: 10px; margin-bottom: 16px; }
#typ-input {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); padding: 13px 20px; font-size: 17px; width: 320px; outline: none;
  transition: all 0.2s; box-shadow: var(--shadow-sm);
  font-family: 'Inter', sans-serif;
}
#typ-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212,86,78,0.12); }
#typ-input::placeholder { color: var(--muted); }

.result-box {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 36px; min-width: 300px; box-shadow: var(--shadow-sm);
  animation: slideUp 0.25s ease;
}
.result-status { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.result-status.correct { color: var(--green); }
.result-status.incorrect { color: var(--red); }

.complete-score {
  font-size: 64px; font-weight: 700; color: var(--accent); margin: 24px 0 12px;
  animation: popIn 0.5s ease;
  text-shadow: 0 2px 20px rgba(212,86,78,0.2);
}
.complete-detail { font-size: 15px; color: var(--muted); margin-bottom: 36px; line-height: 1.6; }

/* Complete screen decoration */
#view-complete .card-area h2 {
  font-family: 'Noto Sans JP', serif; font-size: 28px; font-weight: 400;
  letter-spacing: 2px; animation: fadeIn 0.4s ease;
}

/* ===== WORD DETAIL MODAL — paper scroll ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 100;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); animation: fadeIn 0.15s ease;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px 40px; max-width: 500px; width: 92%; max-height: 80vh; overflow-y: auto;
  position: relative; box-shadow: var(--shadow-lg);
  animation: popIn 0.3s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 24px; color: var(--muted); cursor: pointer; transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }
.modal-char { font-family: 'Noto Sans JP', serif; font-size: 56px; font-weight: 200; margin-bottom: 4px; }
.modal-rom { font-size: 16px; color: var(--accent); margin-bottom: 3px; letter-spacing: 1px; }
.modal-eng { font-size: 24px; font-weight: 600; margin-bottom: 16px; }
.modal-section {
  font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted);
  background: var(--bg4); display: inline-block; padding: 4px 12px;
  border-radius: 4px; margin-bottom: 16px;
}
.modal-notes { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 16px; white-space: pre-line; }
.modal-examples { font-size: 13px; color: var(--muted); line-height: 1.7; }
.modal-examples .ex-jp { font-family: 'Noto Sans JP', serif; font-size: 17px; color: var(--text); margin-bottom: 1px; }
.modal-examples .ex-rom { font-size: 12px; color: var(--accent); margin-bottom: 2px; font-style: italic; }
.modal-examples .ex-en { font-size: 13px; color: var(--text2); margin-bottom: 12px; }
.modal-examples .ex-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 2px; color: var(--gold);
  margin-bottom: 10px; margin-top: 6px;
}

/* Quiz help button */
.quiz-help-btn {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 50%;
  width: 32px; height: 32px; font-size: 14px; font-weight: 700; color: var(--muted);
  cursor: pointer; transition: all 0.2s; margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.quiz-help-btn:hover { border-color: var(--gold); color: var(--gold); transform: scale(1.15); }

/* Auth Gate */
.gate-text { color: var(--text2); font-size: 15px; margin-bottom: 28px; animation: slideUp 0.6s ease 0.3s both; }
.gate-buttons { display: flex; gap: 12px; animation: slideUp 0.6s ease 0.4s both; }
.gate-btn { padding: 13px 36px; font-size: 15px; letter-spacing: 0.5px; }

/* Auth */
.auth-bar { margin-top: 20px; font-size: 13px; color: var(--muted); animation: slideUp 0.6s ease 0.5s both; }
.auth-link { background: none; border: none; color: var(--accent); font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.auth-link:hover { color: var(--accent2); }
.auth-sep { margin: 0 6px; }
.auth-username { color: var(--text2); margin-right: 10px; }

.auth-box { max-width: 380px; }
.auth-box h2 { font-family: 'Noto Sans JP', serif; font-size: 24px; margin-bottom: 16px; }
.auth-error { background: var(--accent-dim); border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--accent); padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.auth-field { margin-bottom: 14px; }
.auth-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 1px; }
.auth-field input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); padding: 11px 14px; font-size: 15px; outline: none; transition: border-color 0.2s;
}
.auth-field input:focus { border-color: var(--accent); }
.cf-turnstile { margin-bottom: 12px; }
.auth-submit { width: 100%; margin-top: 4px; padding: 12px; font-size: 15px; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.auth-switch button { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px; }

::-webkit-scrollbar { display: none; }
#app { -ms-overflow-style: none; scrollbar-width: none; }
