/* =====================================================================
   NTO Idle Project — landing page (screen-login)
   madeira escura, pergaminho, cobre, laranja queimado. Tudo escopado em .landing
   ===================================================================== */
.landing {
  --ld-ink: #120b07;
  --ld-wood-0: #170f09;
  --ld-wood-1: #21160d;
  --ld-wood-2: #2d1e12;
  --ld-wood-line: #4f331d;
  --ld-copper: #b07040;
  --ld-copper-2: #d99a5f;
  --ld-orange: #b8461b;
  --ld-orange-2: #d9622a;
  --ld-parch: #eadbb8;
  --ld-parch-2: #d8c296;
  --ld-parch-ink: #3a2615;
  --ld-parch-ink-2: #5e4127;
  --ld-beige: #f2e6cc;
  --ld-beige-2: #cdb893;
  --ld-focus: #ffcf7a;
  --ld-header-h: 72px;
  --ld-display: "NjNaruto", "Inter", system-ui, sans-serif;

  background: var(--ld-ink);
  color: var(--ld-beige);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-padding-top: calc(var(--ld-header-h) + 2px);   /* + borda do cabeçalho */
}
.landing [hidden] { display: none !important; }
.landing *:focus-visible { outline: 3px solid var(--ld-focus); outline-offset: 3px; border-radius: 4px; }
.landing input:focus-visible { outline-offset: 1px; }

.ld-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ld-parch); color: var(--ld-parch-ink); font-weight: 700; border-radius: 4px; text-decoration: none; }
.ld-skip:focus { top: 10px; }

/* ---------- botões ---------- */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  font: 700 14px/1.1 var(--font); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 1px solid; border-radius: 4px; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.ld-btn:active { transform: translateY(1px); }
.ld-btn-primary {
  background: var(--ld-orange); border-color: #e48a4f; color: #fff7ea;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), inset 0 1px 0 3px rgba(255,190,130,.18), 0 3px 0 #5a210b, 0 8px 18px rgba(0,0,0,.45);
}
.ld-btn-primary:hover { background: var(--ld-orange-2); }
.ld-btn-ghost { background: rgba(18,11,7,.72); border-color: var(--ld-copper); color: var(--ld-beige); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.ld-btn-ghost:hover { border-color: var(--ld-copper-2); color: #fff; background: rgba(45,30,18,.9); }
.ld-btn-lg { min-height: 54px; padding: 14px 28px; font-size: 15px; }

/* ---------- cabeçalho ---------- */
.ld-header {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #24170e, #1a110a);
  border-bottom: 2px solid var(--ld-wood-line);
  box-shadow: 0 1px 0 rgba(217,154,95,.18), 0 6px 18px rgba(0,0,0,.5);
}
.ld-header-in { max-width: 1240px; margin: 0 auto; height: var(--ld-header-h); padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.ld-logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: .9; text-decoration: none; color: var(--ld-beige); margin-right: auto; }
.ld-logo-main { font-family: var(--ld-display); font-size: 34px; letter-spacing: 1px; text-shadow: 0 2px 0 #000, 0 0 16px rgba(217,98,42,.35); }
.ld-logo-main span { color: var(--ld-orange-2); }
.ld-logo-sub { font-family: var(--ld-display); font-size: 15px; letter-spacing: 4px; color: var(--ld-copper-2); margin-top: 2px; }
.ld-nav { display: flex; align-items: center; gap: 6px; }
.ld-nav a { color: var(--ld-beige-2); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 2px solid transparent; }
.ld-nav a:hover { color: var(--ld-beige); border-bottom-color: var(--ld-copper); }
.ld-nav .ld-nav-enter { display: none; }
.ld-header-cta { min-height: 42px; padding: 8px 18px; font-size: 13px; }
.ld-menu-btn { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--ld-wood-line); border-radius: 4px; background: var(--ld-wood-2); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ld-menu-btn span { display: block; width: 22px; height: 2px; background: var(--ld-beige); border-radius: 1px; transition: transform .2s, opacity .2s; }
.menu-open .ld-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .ld-menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .ld-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.ld-hero { position: relative; isolation: isolate; min-height: calc(100vh - var(--ld-header-h)); min-height: calc(100svh - var(--ld-header-h)); display: flex; align-items: center; }
.ld-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("../assets/ui/landing-bg.webp") center 38% / cover no-repeat, var(--ld-wood-0);
}
.landing.ld-no-bg .ld-hero-bg { background-image: url("../assets/ui/login-bg.jpg"); filter: sepia(.35) saturate(.9) brightness(.8); }
.ld-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,11,7,.78) 0%, rgba(18,11,7,.45) 42%, rgba(18,11,7,.15) 70%, rgba(18,11,7,.35) 100%),
    linear-gradient(180deg, rgba(18,11,7,.2) 0%, rgba(18,11,7,0) 45%, rgba(18,11,7,.7) 85%, var(--ld-ink) 100%);
}
.ld-hero-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 56px 24px 88px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: 48px; align-items: center; }
.ld-kicker { margin: 0 0 14px; color: var(--ld-copper-2); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; text-shadow: 0 1px 2px #000; }
.ld-title { margin: 0; font-family: var(--ld-display); font-weight: 400; font-size: clamp(40px, 5.4vw, 74px); line-height: 1.02; color: var(--ld-beige); text-shadow: 0 3px 0 #000, 0 6px 22px rgba(0,0,0,.65); max-width: 13ch; }
.ld-title em { display: block; font-style: normal; color: var(--ld-orange-2); }
.ld-lead { margin: 20px 0 0; max-width: 46ch; font-size: 18px; color: #f4ead6; text-shadow: 0 1px 3px #000, 0 0 12px rgba(0,0,0,.7); }
.ld-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- painéis de madeira (borda desenhada + cravos de cobre) ---------- */
.ld-panel, .landing .ld-login .login-card {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.012) 0 2px, rgba(0,0,0,.03) 2px 5px),
    linear-gradient(180deg, var(--ld-wood-2), var(--ld-wood-1));
  border: 2px solid #120a05;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px var(--ld-copper), inset 0 0 0 4px #1a1009, inset 0 0 0 5px rgba(217,154,95,.28), 0 14px 34px rgba(0,0,0,.6);
  backdrop-filter: none;
}
.ld-panel::before, .ld-panel::after { content: ""; position: absolute; width: 8px; height: 8px; top: 7px; background: var(--ld-copper-2); border: 1px solid #3b240f; border-radius: 50%; box-shadow: 0 1px 0 rgba(0,0,0,.6); }
.ld-panel::before { left: 7px; }
.ld-panel::after { right: 7px; }

/* login (mesmos ids/forms do fluxo atual) */
.ld-login { scroll-margin-top: 16px; }
.ld-login:focus { outline: none; }
.landing .ld-login .login-card { width: 100%; padding: 22px 24px 20px; color: var(--ld-beige); }
.ld-panel-title { margin: 0 0 14px; font-family: var(--ld-display); font-weight: 400; font-size: 24px; letter-spacing: 1px; text-align: center; color: var(--ld-beige); text-shadow: 0 2px 0 #000; }
/* abas: visual próprio da landing, independente do ?tema= */
.landing .login-tabs { border-bottom: 1px solid var(--ld-wood-line); }
.landing .login-tabs .tab { color: var(--ld-beige-2); font: 600 14px/1.3 var(--font); padding: 10px 12px; margin: 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; text-shadow: none; }
.landing .login-tabs .tab.active { color: var(--ld-copper-2); background: none; border-bottom-color: var(--ld-orange-2); text-shadow: none; }
.landing .login-card .field { color: var(--ld-beige-2); font-size: 13px; }
.landing .login-card .field input { background: #140d08; border-color: var(--ld-wood-line); color: var(--ld-beige); border-radius: 4px; padding: 11px 12px; font-size: 15px; }
.landing .login-card .field input::placeholder { color: #8a7458; }
.landing .login-card .field input:focus { border-color: var(--ld-copper-2); }
.landing .login-card .remember { color: var(--ld-beige-2); font-size: 13px; }
.landing .login-card .remember input { accent-color: var(--ld-orange-2); width: 16px; height: 16px; }
.landing .login-card .btn-primary { background: var(--ld-orange); border-color: #e48a4f; color: #fff7ea; border-radius: 4px; letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 2px rgba(0,0,0,.22), 0 3px 0 #5a210b; }
.landing .login-card .btn-primary:hover { background: var(--ld-orange-2); }
.landing .login-card .login-mode { color: #a68f6e; }

/* ---------- seções ---------- */
.ld-main { position: relative; }
.ld-section { padding: 72px 0; background: var(--ld-ink); }
#sobre { background: linear-gradient(180deg, var(--ld-ink), var(--ld-wood-0)); }
#novidades { background: var(--ld-wood-0); border-top: 1px solid #2a1b10; }
#comunidade { background: linear-gradient(180deg, var(--ld-wood-0), var(--ld-ink)); border-top: 1px solid #2a1b10; }
.ld-section-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.ld-h2 { margin: 0; font-family: var(--ld-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: 1px; color: var(--ld-beige); text-shadow: 0 2px 0 #000; display: flex; align-items: center; gap: 14px; }
.ld-h2::after { content: ""; flex: 1; height: 2px; max-width: 240px; background: linear-gradient(90deg, var(--ld-copper), transparent); }
.ld-sub { margin: 12px 0 0; max-width: 62ch; color: var(--ld-beige-2); }

.ld-features { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ld-feature {
  position: relative; padding: 26px 22px 24px;
  background: linear-gradient(180deg, var(--ld-parch), var(--ld-parch-2));
  color: var(--ld-parch-ink);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(90,58,30,.45), inset 0 0 28px rgba(120,80,40,.28), 0 0 0 3px #2a1a0e, 0 0 0 4px var(--ld-copper), 0 12px 26px rgba(0,0,0,.5);
}
.ld-feature-ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 14px; font-size: 24px; line-height: 1; color: var(--ld-copper-2); background: var(--ld-wood-1); border: 2px solid var(--ld-copper); border-radius: 50%; box-shadow: inset 0 0 0 2px #120a05; }
.ld-feature h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: var(--ld-parch-ink); }
.ld-feature p { margin: 0; font-size: 15px; color: var(--ld-parch-ink-2); }

/* novidades (pergaminho) */
.ld-scroll {
  margin-top: 30px; padding: 22px 26px;
  background: linear-gradient(180deg, var(--ld-parch), var(--ld-parch-2));
  color: var(--ld-parch-ink); border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(90,58,30,.45), inset 0 0 36px rgba(120,80,40,.3), 0 0 0 3px #2a1a0e, 0 0 0 4px var(--ld-copper), 0 14px 30px rgba(0,0,0,.55);
}
.ld-news { list-style: none; margin: 0; padding: 0; }
.ld-news-item { padding: 16px 0; border-bottom: 1px solid rgba(90,58,30,.3); }
.ld-news-item:first-child { padding-top: 4px; }
.ld-news-item:last-child { border-bottom: 0; padding-bottom: 4px; }
.ld-news-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.ld-news-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--ld-parch-ink); }
.ld-news-title a { color: inherit; text-decoration-color: var(--ld-copper); text-underline-offset: 3px; }
.ld-news-title a:hover { color: #8a3612; }
.ld-news-date { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ld-parch-ink-2); }
.ld-news-text { margin: 6px 0 0; color: var(--ld-parch-ink-2); }
.ld-news-empty { margin: 0; padding: 10px 0; text-align: center; font-weight: 600; color: var(--ld-parch-ink-2); }

/* comunidade */
.ld-community { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.ld-btn-social { min-width: 180px; background: var(--ld-wood-2); border-color: var(--ld-copper); color: var(--ld-beige); box-shadow: inset 0 0 0 2px #120a05, 0 3px 0 #0a0603; }
.ld-btn-social:hover { background: #3a2716; border-color: var(--ld-copper-2); }

/* rodapé */
.ld-footer { background: #0d0805; border-top: 2px solid var(--ld-wood-line); box-shadow: inset 0 1px 0 rgba(217,154,95,.15); }
.ld-footer-in { max-width: 1240px; margin: 0 auto; padding: 28px 24px 34px; font-size: 13px; color: #a8916f; }
.ld-footer-in p { margin: 0 0 6px; max-width: 90ch; }
.ld-footer-in .ld-footer-main { color: var(--ld-beige-2); font-weight: 600; font-size: 14px; }

/* ---------- entrada suave (desligada com prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .landing.active .ld-hero-text { animation: ld-rise .6s ease-out both; }
  .landing.active .ld-login { animation: ld-rise .6s .12s ease-out both; }
  @keyframes ld-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { transition: none !important; animation: none !important; }
}

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .ld-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-hero-in { grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 32px; }
}

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .landing { --ld-header-h: 62px; font-size: 15px; }
  .ld-header-in { padding: 0 16px; gap: 12px; }
  .ld-logo-main { font-size: 26px; }
  .ld-logo-sub { font-size: 12px; letter-spacing: 3px; }
  .ld-header-cta { display: none; }
  .ld-menu-btn { display: inline-flex; }
  .ld-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px;
    background: #1a110a; border-bottom: 2px solid var(--ld-wood-line); box-shadow: 0 12px 24px rgba(0,0,0,.6);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s;
  }
  .menu-open .ld-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
  .ld-nav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid #2c1d11; }
  .ld-nav a:hover { border-bottom-color: #2c1d11; }
  .ld-nav .ld-nav-enter { display: flex; justify-content: center; margin-top: 12px; padding: 14px; border: 1px solid #e48a4f; border-radius: 4px; background: var(--ld-orange); color: #fff7ea; font-weight: 700; }

  .ld-hero { min-height: 0; align-items: stretch; }
  .ld-hero-bg { background-position: 64% top; background-size: auto 100vh; background-size: auto 100svh; }
  .ld-hero-bg::after {
    background: linear-gradient(180deg, rgba(18,11,7,.35) 0%, rgba(18,11,7,.55) 34%, rgba(18,11,7,.82) 62%, var(--ld-ink) 92%);
  }
  .ld-hero-in { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 40px 16px 56px; }
  .ld-title { font-size: clamp(36px, 11vw, 48px); }
  .ld-lead { font-size: 16px; }
  .ld-actions { flex-direction: column; }
  .ld-actions .ld-btn { width: 100%; }
  .landing .ld-login .login-card { padding: 20px 18px 18px; }

  .ld-section { padding: 52px 0; }
  .ld-section-in { padding: 0 16px; }
  .ld-features { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ld-scroll { padding: 18px 18px; }
  .ld-community .ld-btn { flex: 1 1 100%; }
  .ld-footer-in { padding: 24px 16px 30px; }
}

/* NjNaruto não tem letras acentuadas: cedilha desenhada (o h1 tem aria-label com o texto correto) */
.ld-ced { position: relative; display: inline-block; }
.ld-ced::after { content: ""; position: absolute; left: 50%; bottom: -.14em; width: .16em; height: .16em; margin-left: -.06em; border: .055em solid currentColor; border-top: 0; border-left: 0; border-radius: 0 0 .12em 0; transform: skewX(-8deg); }
