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

/* Daily Korean Kit — Entry Flow V1 */
:root{
  --dkk-green:#0d473a;
  --dkk-green-2:#145f4c;
  --dkk-gold:#d3a43a;
  --dkk-ivory:#f8f5ec;
  --dkk-ink:#102820;
  --dkk-muted:#66756f;
  --dkk-line:#d8e4de;
  --dkk-soft:#edf4f0;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--dkk-ivory);color:var(--dkk-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR","Noto Sans JP",Arial,sans-serif}
body{min-height:100svh}
button,a{font:inherit}
button{cursor:pointer}
.dkk-start{min-height:100svh;display:flex;flex-direction:column;background:linear-gradient(180deg,#fbfaf5 0%,#f7f4eb 100%)}
.dkk-topbar{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px max(18px,env(safe-area-inset-right)) 10px max(18px,env(safe-area-inset-left));border-bottom:1px solid rgba(13,71,58,.08);background:rgba(255,255,255,.55);backdrop-filter:blur(10px)}
.dkk-brand-mini{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:-.02em}
.dkk-brand-mini img{width:32px;height:32px;object-fit:contain}
.dkk-lang-mini{display:flex;gap:4px;padding:4px;background:#edf3ef;border-radius:999px}
.dkk-lang-mini button{border:0;background:transparent;color:#5b6d64;border-radius:999px;padding:7px 10px;font-size:12px;font-weight:900}
.dkk-lang-mini button.active{background:#fff;color:var(--dkk-green);box-shadow:0 2px 10px rgba(15,54,42,.08)}
.dkk-stage{flex:1;display:grid;place-items:center;padding:20px 16px calc(22px + env(safe-area-inset-bottom))}
.dkk-onboard{width:min(720px,100%);background:rgba(255,255,255,.78);border:1px solid rgba(13,71,58,.12);border-radius:28px;box-shadow:0 20px 60px rgba(27,54,43,.07);overflow:hidden;position:relative}
.dkk-slide{display:none;padding:26px 24px 24px;min-height:min(790px,calc(100svh - 118px));animation:dkkFade .28s ease}
.dkk-slide.active{display:flex;flex-direction:column}
@keyframes dkkFade{from{opacity:.25;transform:translateX(8px)}to{opacity:1;transform:none}}
.dkk-kicker{align-self:center;display:inline-flex;padding:7px 13px;border-radius:999px;background:#e8f2ec;color:var(--dkk-green);font-size:11px;font-weight:950;letter-spacing:.13em;text-transform:uppercase}
.dkk-visual{height:300px;display:flex;align-items:center;justify-content:center;margin:10px 0 2px;overflow:hidden}
.dkk-visual img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 18px 28px rgba(14,52,41,.06))}
.dkk-copy{text-align:center;max-width:580px;margin:0 auto}
.dkk-copy h1{margin:6px 0 13px;font-size:clamp(31px,6vw,50px);line-height:1.13;letter-spacing:-.045em}
.dkk-copy p{margin:0 auto;color:#4f6259;font-size:clamp(15px,2.2vw,18px);line-height:1.75;max-width:550px;word-break:keep-all}
.dkk-micro{display:inline-flex;align-items:center;gap:8px;margin:16px auto 0;padding:9px 12px;border-radius:999px;background:#eff5f1;color:#36584a;font-size:13px;font-weight:760;line-height:1.45}
.dkk-feature-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px auto 0;width:100%;max-width:590px}
.dkk-feature{padding:13px 8px;border:1px solid #dce6e1;background:#fff;border-radius:16px;text-align:center}
.dkk-feature b{display:block;color:var(--dkk-green);font-size:16px;margin-bottom:3px}.dkk-feature span{color:#6b7b73;font-size:11px;line-height:1.35}
.dkk-actions{margin-top:auto;padding-top:22px;display:grid;gap:10px}
.dkk-btn{min-height:54px;border-radius:16px;border:1px solid var(--dkk-green);font-weight:900;font-size:16px;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}
.dkk-btn.primary{background:linear-gradient(135deg,#0d473a,#17664f);color:#fff;box-shadow:0 12px 28px rgba(13,71,58,.18)}
.dkk-btn.secondary{background:#fff;color:#36534a}.dkk-btn.tertiary{border-color:transparent;background:transparent;color:#61736a;min-height:40px;font-size:13px}
.dkk-btn:hover{transform:translateY(-1px)}
.dkk-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}
.dkk-dots{display:flex;gap:7px;align-items:center;justify-content:center;flex:1}.dkk-dot{width:8px;height:8px;border:0;padding:0;border-radius:50%;background:#d8dbd7}.dkk-dot.active{background:var(--dkk-green);transform:scale(1.12)}
.dkk-count{font-size:12px;color:#7b8781;font-weight:800;min-width:38px;text-align:right}
.dkk-back{border:0;background:transparent;color:#6c7d75;padding:7px;font-size:13px;font-weight:800;min-width:45px;text-align:left}.dkk-back[disabled]{opacity:0;pointer-events:none}

/* Language gate */
.dkk-gate{position:fixed;inset:0;z-index:10000;background:radial-gradient(circle at 50% 20%,#fff 0%,#f8f5ec 64%,#f1eee5 100%);display:grid;place-items:center;padding:24px}
.dkk-gate.hidden{display:none}.dkk-gate-card{width:min(520px,100%);text-align:center}.dkk-gate-logo{width:112px;height:112px;object-fit:contain;margin-bottom:12px}.dkk-gate h1{font-size:clamp(26px,5vw,38px);margin:5px 0 8px;letter-spacing:-.04em}.dkk-gate p{color:#66766e;line-height:1.65;margin:0 0 22px}.dkk-lang-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.dkk-lang-choice{min-height:74px;border:1px solid #cfddd6;border-radius:18px;background:#fff;color:var(--dkk-ink);font-weight:900;box-shadow:0 8px 24px rgba(18,60,45,.04)}.dkk-lang-choice:hover,.dkk-lang-choice.suggested{border-color:#87ad9d;background:#f6faf8}.dkk-lang-choice span{display:block;font-size:11px;color:#819088;margin-top:3px;font-weight:700}

/* Splash */
.dkk-splash{position:fixed;inset:0;z-index:9999;background:#f8f5ec;display:flex;align-items:center;justify-content:center;opacity:1;transition:opacity .35s ease;overflow:hidden}.dkk-splash.hidden{opacity:0;pointer-events:none}.dkk-splash video{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;background:#f8f5ec;opacity:0;transition:opacity .18s ease}.dkk-splash.is-playing video{opacity:1}.dkk-splash-fallback{position:absolute;inset:0;z-index:0;display:grid;place-items:center;background:#f8f5ec}.dkk-splash-fallback img{width:min(180px,35vw);height:auto}.dkk-skip{position:absolute;z-index:2;top:calc(14px + env(safe-area-inset-top));right:16px;border:1px solid rgba(13,71,58,.18);background:rgba(255,255,255,.82);color:#466057;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:850;backdrop-filter:blur(8px);opacity:0;transition:opacity .2s}.dkk-skip.show{opacity:1}

.dkk-install-note{display:none;margin-top:10px;padding:11px 12px;background:#fff7df;border:1px solid #ead8a2;border-radius:13px;color:#5f532e;font-size:12px;line-height:1.55;text-align:left}.dkk-install-note.show{display:block}

@media(min-width:900px){
 .dkk-onboard{width:min(980px,calc(100vw - 50px))}
 .dkk-slide{min-height:660px;padding:38px 44px 30px;display:none}
 .dkk-slide.active{display:grid;grid-template-columns:minmax(330px,.92fr) minmax(380px,1.08fr);grid-template-rows:auto 1fr auto;column-gap:38px;align-items:center}
 .dkk-kicker{grid-column:1/-1;justify-self:start;align-self:start}
 .dkk-visual{grid-column:1;grid-row:2;height:430px;margin:0}
 .dkk-copy{grid-column:2;grid-row:2;text-align:left;margin:0;align-self:center}
 .dkk-copy h1{font-size:52px}.dkk-copy p{margin:0;max-width:520px}.dkk-micro{margin-left:0}.dkk-feature-row{margin-left:0}
 .dkk-actions,.dkk-nav{grid-column:1/-1}.dkk-actions{grid-template-columns:1fr 1fr;gap:12px}.dkk-actions .primary:only-child{grid-column:1/-1}
}
@media(max-width:540px){
 .dkk-topbar{min-height:54px}.dkk-brand-mini span{font-size:13px}.dkk-brand-mini img{width:28px;height:28px}
 .dkk-stage{padding:12px 10px calc(14px + env(safe-area-inset-bottom))}.dkk-onboard{border-radius:23px}.dkk-slide{padding:20px 17px 17px;min-height:calc(100svh - 82px)}.dkk-visual{height:270px}.dkk-copy h1{font-size:34px}.dkk-copy p{font-size:15px;line-height:1.68}.dkk-feature-row{gap:7px}.dkk-feature{padding:10px 4px}.dkk-feature b{font-size:14px}.dkk-feature span{font-size:10px}.dkk-actions{padding-top:16px}.dkk-btn{min-height:50px}.dkk-nav{margin-top:12px}.dkk-gate{padding:18px}.dkk-lang-grid{grid-template-columns:1fr}.dkk-lang-choice{min-height:58px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.dkk-splash video{display:none}}


/* Japanese typography — Daily Korean Kit standard */
html[lang="ja"],
html[lang="ja"] body,
html[lang="ja"] button,
html[lang="ja"] a,
html[lang="ja"] input,
html[lang="ja"] select,
html[lang="ja"] textarea,
html[lang="ja"] .dkk-start,
html[lang="ja"] .dkk-gate,
html[lang="ja"] .dkk-onboard {
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif !important;
}

/* The Japanese choice itself should already look correct before JA is selected. */
.dkk-lang-choice[data-dkk-lang="ja"],
.dkk-lang-mini button[data-dkk-lang="ja"] {
  font-family:"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;
}

/* Japanese benefits from slightly calmer tracking than Korean/Latin UI headings. */
html[lang="ja"] .dkk-copy h1,
html[lang="ja"] .dkk-gate h1 {
  letter-spacing:-0.025em;
  font-weight:800;
  word-break:auto;
  line-break:strict;
}
html[lang="ja"] .dkk-copy p,
html[lang="ja"] .dkk-micro {
  word-break:normal;
  overflow-wrap:anywhere;
  line-break:strict;
}


/* V1.5 — onboarding image/title polish */
.dkk-visual{
  background:transparent;
}
.dkk-visual img{
  display:block;
}
.dkk-copy h1{
  font-size:clamp(29px,5.1vw,46px);
  line-height:1.12;
  text-wrap:balance;
  max-width:560px;
}
@media(min-width:900px){
  .dkk-copy h1{
    font-size:46px;
    line-height:1.12;
    max-width:540px;
  }
  .dkk-slide[data-step="2"] .dkk-copy h1,
  .dkk-slide[data-step="3"] .dkk-copy h1,
  .dkk-slide[data-step="4"] .dkk-copy h1{
    font-size:44px;
  }
}
@media(max-width:540px){
  .dkk-copy h1{
    font-size:31px;
    line-height:1.14;
  }
}

/* Japanese title balance after explicit line breaks */
html[lang="ja"] .dkk-copy h1{
  font-size:clamp(28px,4.7vw,43px);
  line-height:1.2;
}
@media(min-width:900px){
  html[lang="ja"] .dkk-copy h1{
    font-size:42px;
  }
}
