/* Launcher consumer of the byte-exact #99 foundation. Material/art stays upstream. */
:root {--text-child-button-size:30px;--text-child-hud-size:34px}
@media (min-width:768px) and (min-height:768px) {
  :root {--text-child-button-size:36px;--text-child-hud-size:38px}
}
[data-text-role] {
  font-family:var(--font-ui-ko)!important;
  font-synthesis:none!important;font-style:normal!important;font-stretch:normal!important;
  font-variation-settings:"wdth" 100!important;letter-spacing:normal!important;
}
[data-text-role="child.body"] {font-size:var(--text-child-body-size)!important;font-weight:400!important;line-height:1.35!important}
[data-text-role="child.caption"] {font-size:var(--text-child-caption-size)!important;font-weight:400!important;line-height:1.35!important}
[data-text-role="child.button"] {font-size:var(--text-child-button-size)!important;font-weight:700!important;line-height:1.1!important}
[data-text-role="child.hud"] {font-size:var(--text-child-hud-size)!important;font-weight:700!important;line-height:1.1!important}
[data-text-role="child.heading"] {font-size:var(--text-child-heading-size)!important;font-weight:800!important;line-height:1.1!important}
[data-text-role="parent.body"] {font-size:var(--text-parent-body-size)!important;font-weight:400!important;line-height:1.45!important}
[data-text-role="parent.secondary"] {font-size:var(--text-parent-secondary-size)!important;font-weight:400!important;line-height:1.45!important}
[data-text-role="debug"] {font-family:monospace!important;font-size:var(--text-debug-size)!important;font-weight:400!important;line-height:1.4!important}
[data-font-role="display.ko"] {font-family:var(--font-display-ko)!important;font-weight:400!important}
[data-font-role="latin"],[data-font-role="numeral"] {font-family:var(--font-latin)!important}
button,input,select,textarea {font-synthesis:none;font-family:var(--font-ui-ko)}
.danu-button-content {font:inherit!important;white-space:normal;min-width:0;text-align:center}
/* Live glyphs never inherit the old 790/1280px scaled stage. */
#frame:not(.ready) {overflow:auto;overscroll-behavior:contain}
#frame:not(.ready) .brand-lockup {left:50%!important;top:8px!important;width:300px!important;height:166px!important;transform:translateX(-50%)!important}
#frame:not(.ready) .brand-danu {width:170px!important;height:170px!important;left:126px!important;top:-20px!important}
#frame:not(.ready) .brand-logo {width:290px!important;height:164px!important;left:0!important;bottom:0!important}
#frame:not(.ready) .center-panel {position:relative!important;top:auto!important;left:auto!important;right:auto!important;transform:none!important;width:min(480px,calc(100% - 32px))!important;margin:188px auto 24px!important}
#frame:not(.ready) .panel-help {margin:16px 0 20px}
#frame:not(.ready) .pin-keypad {width:100%!important;gap:10px!important}
#frame:not(.ready) .pin-keypad button {height:64px!important;min-height:64px!important;min-width:0}
#frame:not(.ready) .pin-dots {margin-bottom:16px;gap:16px}
#frame:not(.ready) #progress {width:100%;max-width:580px}
#frame:not(.ready) .center-panel h1 {overflow-wrap:break-word}
#pin-error,.pin-message {min-height:1.35em}
#dialog,#dialog[data-kind] {width:min(600px,calc(100vw - 24px));padding:32px 22px 26px}
.launcher-modal-content {max-height:calc(100dvh - 90px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0 4px 6px}
#dialog h2 {overflow-wrap:break-word}
#dialog .actions {flex-wrap:wrap}
#dialog .actions .danu-button {min-width:0;flex:1 1 180px;min-height:64px;padding:12px}
#dialog .pin-keypad button {min-height:64px;height:64px;min-width:0}
#dialog .guardian-form+.danu-button {min-height:64px}
#dialog .pin-keypad {width:100%!important}
#dialog p {overflow-wrap:break-word}

@media (min-width:768px) and (min-height:768px) {
  #frame:not(.ready) .brand-lockup {top:28px!important;width:430px!important;height:240px!important}
  #frame:not(.ready) .brand-logo {width:430px!important;height:240px!important}
  #frame:not(.ready) .brand-danu {width:250px!important;height:250px!important;left:180px!important;top:-30px!important}
  #frame:not(.ready) .center-panel {margin-top:300px!important}
  #frame:not(.ready) .pin-keypad button {height:76px!important}
}
@media (orientation:landscape) and (max-height:767px) {
  #frame:not(.ready) .brand-lockup {left:23%!important;top:calc(50% - 100px)!important}
  #frame:not(.ready) .center-panel {width:calc(52% - 32px)!important;margin:16px 16px 24px auto!important}
  #frame:not(.ready) .pin-keypad {gap:8px!important}
  #frame:not(.ready) .pin-dots {margin-bottom:12px}
}
/* Shadow Options: larger real type needs reflow, never whole-panel scaling. */
.options-shell {font-family:var(--font-ui-ko);font-synthesis:none}
.options-panel {max-height:calc(100dvh - 32px);min-width:0}
.options-head {padding:18px 22px 12px;gap:16px}
.options-head h1 {line-height:1.1}
.icon-close {width:56px;height:56px;flex:none}
.options-grid {padding:16px 22px;grid-template-columns:repeat(2,minmax(0,1fr))}
.option-card {min-width:0;padding:18px}
.section-title {align-items:flex-start}
.section-title p {line-height:1.35}
.section-icon {flex:none;font-style:normal}
.toggle-row {min-height:86px;gap:12px;padding:10px 0}
.switch-ui {flex:0 0 54px}
.slider-row {grid-template-columns:minmax(0,1fr) 100px;gap:6px;padding:12px 0}
.slider-row>span {grid-column:1}
.slider-row output {grid-column:2;grid-row:1}
.slider-row input {grid-column:1/-1;min-height:56px;min-width:0}
.segmented {grid-template-columns:1fr}
.segmented button,.guardian-button,.favorite-item,.foot-actions button {min-height:64px;padding:12px;overflow-wrap:break-word}
.favorite-list {grid-template-columns:1fr}
.favorite-star {flex:none}
.options-foot {padding:12px 22px 18px;flex-wrap:wrap}
.foot-actions {min-width:0;flex:1;justify-content:flex-end}
.foot-actions button {min-width:0;flex:1}
@media (max-width:720px),(max-height:600px) {
  .options-shell {padding:0}
  .options-panel {width:100vw;height:100dvh;max-height:none;border-radius:0;border:0}
  .mobile-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:4px 14px 10px}
  .mobile-tabs button {min-height:56px;padding:8px}
  .options-grid {display:block;padding:12px 14px 20px}
  .option-card {display:none;min-height:100%}
  .options-grid[data-active-section="sound"] [data-section="sound"],
  .options-grid[data-active-section="display"] [data-section="display"],
  .options-grid[data-active-section="games"] [data-section="games"],
  .options-grid[data-active-section="guardian"] [data-section="guardian"] {display:block}
  .options-foot {padding:12px 14px max(14px,env(safe-area-inset-bottom))}
  .version-line {display:none}
  .foot-actions {width:100%}
}
@media (orientation:landscape) and (max-height:600px) {
  .options-kicker {display:none}
  .options-head {padding:8px 18px}
  .mobile-tabs {grid-template-columns:repeat(4,minmax(0,1fr));padding-bottom:8px}
  .options-foot {padding-top:8px;padding-bottom:8px}
}
/* The reference portrait Exit label previously used ID-level 13px/900 rules. */
@media (orientation:portrait) {
  #exit-button[data-text-role] {font-size:var(--text-child-button-size)!important;font-weight:700!important;line-height:1.1!important}
}
