/* Browser layout: kept outside the generated/native asset directory. */
html[data-oraculum-app="numeroscope"] {
  --deep: #0f0b22; --mid: #1a1438; --text: #ece8f7; --text-dim: #aba1c1;
  --silver: #aba1c1; --premium: #e6cf86; --premium-dim: #8a743c;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
html[data-oraculum-app="numeroscope"] body { overflow: auto; user-select: text; font-family: system-ui, sans-serif; }
html[data-oraculum-app="numeroscope"] #app { max-width: 1120px !important; margin: 0 auto !important; padding-top: 70px; min-height: calc(100dvh - 80px); overflow: visible; }
html[data-oraculum-app="numeroscope"] .screen { display: none; position: relative; inset: auto; overflow: visible; padding: 24px 24px 100px; }
html[data-oraculum-app="numeroscope"] .screen.active { display: block; }
html[data-oraculum-app="numeroscope"] .screen:not(.active) { display: none !important; }
html[data-oraculum-app="numeroscope"] [hidden] { display: none !important; }
html[data-oraculum-app="numeroscope"] #splash { display: none !important; }
html[data-oraculum-app="numeroscope"] #s-form { width: min(100%,620px); max-width: 100%; min-width: 0; box-sizing: border-box; margin: auto; }
html[data-oraculum-app="numeroscope"] .field-group { min-width: 0; max-width: 100%; }
html[data-oraculum-app="numeroscope"] input { display: block; box-sizing: border-box; min-width: 0; width: 100%; max-width: 100%; font-size: 16px; min-height: 48px; }
html[data-oraculum-app="numeroscope"] input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
html[data-oraculum-app="numeroscope"] button { min-height: 44px; letter-spacing: normal; }
html[data-oraculum-app="numeroscope"] .btn-primary { color: #171023; background: linear-gradient(135deg,#c9a84c,#e6cf86); border-radius: 14px; }
html[data-oraculum-app="numeroscope"] :is(.btn-secondary,.btn-premium,.field-input,.ritual-card,.num-card,.ai-block) { border-radius: 14px; }
html[data-oraculum-app="numeroscope"] :is(.form-title,.section-title,.logo-title) { font-family: Georgia, serif; letter-spacing: normal; }
html[data-oraculum-app="numeroscope"] #bottom-nav { max-width: 1120px; padding-bottom: max(8px,env(safe-area-inset-bottom)); background: #1a1438; }
html[data-oraculum-app="numeroscope"] .coin-price { white-space: normal; }
html[data-oraculum-app="numeroscope"] .btn-primary .coin-price { color: #171023; font-weight: 700; opacity: 1; }
html[data-oraculum-app="numeroscope"] :focus-visible { outline: 2px solid #e6cf86; outline-offset: 3px; }
html[data-oraculum-app="numeroscope"] .num-card { animation: none; background: #1a1438; }
html[data-oraculum-app="numeroscope"] :is(.ad-banner,#daily-gift-btn,#streak-restore-btn) { display: none !important; }
@media(min-width:769px) {
  html[data-oraculum-app="numeroscope"] .screen { padding-left: 24px !important; padding-right: 24px !important; }
  html[data-oraculum-app="numeroscope"] #bottom-nav { display: none !important; }
}
@media(max-width:768px) {
  html[data-oraculum-app="numeroscope"] .screen { padding: 20px 16px 100px; }
  html[data-oraculum-app="numeroscope"] .menu-btn .coin-price { position: static; display: block; transform: none; margin: 6px 0 0; }
}
@media(prefers-reduced-motion:reduce) {
  html[data-oraculum-app="numeroscope"] * { animation: none !important; scroll-behavior: auto !important; }
}
html[data-oraculum-app="numeroscope"] .mandala-bg { opacity: .012; animation: none; width: 720px; height: 720px; }
html[data-oraculum-app="numeroscope"] #stars-canvas { opacity: .35; }
html[data-oraculum-app="numeroscope"] #particles-canvas { display: none; }
.nw-dashboard { display: grid; grid-template-columns: minmax(280px,.85fr) minmax(0,1.4fr); gap: 32px; align-items: start; margin: 12px 0 28px; }
.nw-intro { padding: 32px; background: linear-gradient(145deg,#211a3f,#151028); border: 1px solid #48395e; border-radius: 24px; text-align: center; }
#s-welcome .nw-intro .app-header { padding: 0; margin: 0; }
#s-welcome .nw-intro .logo-title { font-size: 30px; margin-top: 12px; }
#s-welcome .nw-intro .logo-sub { font-size: 11px; letter-spacing: 1.5px; }
#s-welcome .nw-intro .hero { padding: 24px 0 !important; }
#s-welcome .nw-intro .hero-text { font-style: normal; font-size: 15px; max-width: 300px; line-height: 1.7; }
#s-welcome .nw-intro .menu-btn { margin: 0; padding: 16px; min-height: 54px; font-size: 14px; }
#s-welcome .nw-profile-actions { display: grid; gap: 12px; }
#s-welcome .nw-profile-actions > button { width: 100%; }
html[data-oraculum-app="numeroscope"] .btn-back {
  box-sizing: border-box !important; width: 44px !important; height: 44px !important;
  padding: 0 !important; justify-content: center; gap: 0; border-radius: 50%;
  font-size: 20px; letter-spacing: 0; line-height: 1;
}
/* Share the desktop row with Back rather than leaving a whole empty row above the summary. */
html[data-oraculum-app="numeroscope"] #s-results > .btn-back { box-sizing: border-box; height: 44px; margin: 0; position: static; }
#s-results > .results-header { padding: 8px 0 4px; }
html[data-oraculum-app="numeroscope"] #s-compat > .btn-back { box-sizing: border-box; height: 44px; margin: 0; position: static; }
html[data-oraculum-app="numeroscope"] #s-compat > .compat-header { padding: 8px 0 10px; }
@media(min-width:769px) {
  html[data-oraculum-app="numeroscope"] #s-results > .btn-back { position: absolute; top: 24px; left: 24px; }
  #s-results > .results-header { padding: 0 60px 4px; }
  html[data-oraculum-app="numeroscope"] #s-compat > .btn-back { position: absolute; top: 24px; left: 24px; }
  html[data-oraculum-app="numeroscope"] #s-compat > .compat-header { padding: 0 60px 10px; min-height: 54px; }
}
html[data-oraculum-app="numeroscope"] .screen[id^="s-forecast-"] > .btn-back { position: static; box-sizing: border-box; height: 44px; margin: 0; }
.screen[id^="s-forecast-"] > .results-header { padding: 8px 0 4px; }
.screen[id^="s-forecast-"] > div:has(> .num-card) { display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; align-items: start; }
.screen[id^="s-forecast-"] > div > .num-card { margin: 0; padding: 16px 20px; min-width: 0; }
.screen[id^="s-forecast-"] .card-desc { max-width: none; }
.screen[id^="s-forecast-"] .num-card:has(> button) { display: flex; flex-direction: column; gap: 12px; }
.screen[id^="s-forecast-"] .num-card:has(> button) > .card-desc { margin: 0 !important; text-align: left; }
.screen[id^="s-forecast-"] .num-card:has(> button) > button { margin: 0 !important; }
@media(min-width:769px) {
  html[data-oraculum-app="numeroscope"] .screen[id^="s-forecast-"] > .btn-back { position: absolute; top: 24px; left: 24px; }
  .screen[id^="s-forecast-"] > .results-header { padding: 0 60px 4px; }
  .screen[id^="s-forecast-"] > div:has(> .num-card) { display: block; columns: 2; column-gap: 16px; }
  .screen[id^="s-forecast-"] > div > .num-card { display: inline-block; width: 100%; box-sizing: border-box; break-inside: avoid; margin-bottom: 12px; }
  .screen[id^="s-forecast-"] .num-card:has(> button) { column-span: all; display: flex; flex-direction: row; align-items: center; justify-content: space-between; }
  .screen[id^="s-forecast-"] .num-card:has(> button) > button { width: auto !important; min-width: 190px; flex-shrink: 0; padding: 12px 20px; }
}
#s-welcome .menu-btn .btn-txt { padding-right: 0; }
.nw-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.nw-section-heading { grid-column: 1/-1; font: 28px Georgia,serif; margin: 4px 0 10px; color: #ece8f7; }
#welcome-probing { grid-column: 1/-1; }
#s-welcome .nw-actions .menu-btn { flex-wrap: wrap; justify-content: flex-start; align-content: center; gap: 10px; text-align: left; padding: 20px; margin: 0; min-height: 108px; background: #1a1434; border: 1px solid #443653; border-radius: 18px; transition: background .15s,border-color .15s,transform .15s; }
#s-welcome .nw-actions .menu-btn:hover { background: #251c43; border-color: #b89b51; transform: translateY(-2px); }
#s-welcome .nw-actions .menu-btn .btn-txt { font-size: 16px; font-weight: 600; }
#s-welcome .nw-actions .menu-btn .coin-price { position: static; transform: none; margin: 0; }
#s-welcome .nw-actions .menu-btn::after { flex-basis: 100%; font: 12px/1.5 system-ui,sans-serif; color: #aba1c1; }
#btn-core-nav::after { content: 'Характер, сильные стороны и ваш путь'; }
#btn-compat-nav::after { content: 'Как ваши числа сочетаются с другим человеком'; }
#btn-day-forecast::after { content: 'На что обратить внимание сегодня'; }
#btn-week-forecast::after { content: 'Темы и возможности ближайших семи дней'; }
#btn-month-forecast::after { content: 'Главные акценты вашего месяца'; }
#btn-year-forecast::after { content: 'Общая картина и ориентиры на год'; }
#btn-advice::after { content: 'Небольшая подсказка для вашего дня'; }
#s-welcome .nw-disclaimer { background: transparent !important; border: 0 !important; padding: 8px 0 !important; color: #8f859f; font-size: 11px !important; }
#s-welcome .ritual-card { background: #19132e; padding: 20px; border-color: #443653; }
#s-welcome .ritual-actions { grid-template-columns: minmax(0,1fr); justify-items: center; }
#s-welcome .ritual-actions #daily-advice-btn { width: 100%; max-width: 520px; }
#deep-reading-wrap { min-width: 0; }
#deep-reading-wrap > .num-card { margin: 0 !important; min-width: 0; }
html[data-oraculum-app="numeroscope"] .ai-unlock-btn { border-radius: 12px; padding: 12px 16px; font: 600 13px/1.4 system-ui,sans-serif; letter-spacing: normal; text-transform: none; background: #2b2148; }
html[data-oraculum-app="numeroscope"] .ai-unlock-btn .cost { white-space: nowrap; color: #e6cf86; }
html[data-oraculum-app="numeroscope"] .ai-locked { border-radius: 12px; margin-bottom: 0; }
html[data-oraculum-app="numeroscope"] .ai-section-label { letter-spacing: 1px; color: #aba1c1; }
@media(min-width:769px) {
  #results-grid.section-core { grid-template-areas: "core-intro core-intro" "core-dest core-soul" "core-pers core-year" "core-deep core-deep" "core-prem core-prem" "core-reward core-reward" "core-actions core-actions"; }
  #results-grid #deep-reading-wrap { grid-area: core-deep; grid-column: 1/-1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 12px !important; }
  #deep-reading-wrap > .divider, #deep-reading-wrap > div:not(.num-card) { grid-column: 1/-1; margin: 0 !important; }
  #deep-reading-wrap > div:not(.num-card):not(.divider) { font: 24px/1.4 Georgia,serif !important; letter-spacing: normal !important; text-transform: none !important; text-align: left !important; margin-bottom: 4px !important; }
  #deep-reading-wrap .num-card { padding: 20px; display: flex; flex-direction: column; }
  #deep-reading-wrap .ai-locked { margin-top: 8px; }
  #s-results .core-actions { display: flex; justify-content: flex-end; padding-top: 12px; }
  #s-results .core-actions .btn-primary { max-width: 320px; min-height: 48px; text-transform: none; font-size: 14px; }
}
@media(max-width:768px) {
  #deep-reading-wrap { display: grid; gap: 12px; }
  #deep-reading-wrap > .divider { margin: 8px 0 !important; }
}
@media(max-width:850px) {
  .nw-dashboard { grid-template-columns: 1fr; gap: 24px; }
  .nw-intro { padding: 24px; }
  #s-welcome .nw-intro .hero { padding: 16px 0 !important; }
  #s-welcome .nw-intro .number-orbit { width: 100px !important; height: 100px !important; }
  .nw-section-heading { font-size: 25px; }
}
@media(max-width:480px) {
  .nw-actions { gap: 10px; }
  #s-welcome .nw-actions .menu-btn { padding: 14px; min-height: 128px; gap: 8px; }
  #s-welcome .nw-actions .menu-btn .btn-txt { font-size: 14px; }
  #s-welcome .nw-actions .menu-btn::after { font-size: 11px; }
}
/* Vertical web view follows the native welcome screen, not the desktop cards. */
@media(max-width:768px) {
  html[data-oraculum-app="numeroscope"] :is(#s-results,#s-compat,.screen[id^="s-forecast-"]) > .btn-back {
    position: absolute; top: 20px; left: 16px; width: 44px; padding: 0;
  }
  html[data-oraculum-app="numeroscope"] :is(#s-results,.screen[id^="s-forecast-"]) > .results-header,
  html[data-oraculum-app="numeroscope"] #s-compat > .compat-header {
    box-sizing: border-box; min-height: 44px; padding: 0 0 0 56px;
    display: flex; flex-direction: column; justify-content: center;
  }
  html[data-oraculum-app="numeroscope"] .screen[id^="s-forecast-"] > .results-header .results-name {
    letter-spacing: 1.4px; line-height: 1.4; margin-bottom: 4px;
  }
  html[data-oraculum-app="numeroscope"] .screen[id^="s-forecast-"] > .results-header .results-greeting {
    margin: 0; line-height: 1.3;
  }
  html[data-oraculum-app="numeroscope"] :is(#s-results,#s-compat,.screen[id^="s-forecast-"]) > .divider {
    margin: 12px 0 10px !important;
  }
  #s-welcome .nw-dashboard { grid-template-columns: minmax(0,1fr); gap: 14px; margin: 0 0 16px; }
  #s-welcome .nw-intro { padding: 0; background: transparent; border: 0; border-radius: 0; }
  #s-welcome .nw-intro .hero { padding: 24px 0 18px !important; }
  #s-welcome .nw-intro .number-orbit { width: 130px !important; height: 130px !important; }
  #s-welcome .nw-intro .hero-text { font-style: italic; }
  #s-welcome .nw-profile-actions { gap: 8px; }
  #s-welcome .nw-intro .menu-btn { padding: 12px 20px; min-height: 44px; }
  #s-welcome .nw-actions { grid-template-columns: minmax(0,1fr); gap: 7px; }
  #s-welcome .nw-section-heading { display: none; }
  #s-welcome .nw-actions .menu-btn {
    flex-wrap: nowrap; align-items: center; justify-content: center;
    text-align: center; padding: 10px 20px; min-height: 44px;
    gap: 0; background: transparent; border-color: var(--silver-dim);
    border-radius: 14px; transform: none;
  }
  #s-welcome .nw-actions .menu-btn .btn-txt { font-size: 13px; font-weight: 400; padding-right: 48px; }
  #s-welcome .nw-actions .menu-btn .coin-price {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    display: inline-flex; margin: 0; white-space: nowrap;
  }
  #s-welcome .nw-actions .menu-btn::after { content: none; display: none; }
  #s-welcome .nw-actions .menu-btn:hover { background: transparent; transform: none; border-color: var(--silver); }
}
