#settings .usage-choices{border:0;padding:0;margin:0 0 24px;min-width:0}#settings .usage-choices legend{font-size:16px;font-weight:600;margin-bottom:12px}#settings .usage-choice{display:flex;align-items:flex-start;gap:12px;min-height:56px;padding:16px;margin:0 0 10px;border:1px solid var(--border);border-radius:8px;font-size:15px;line-height:1.7;cursor:pointer}#settings .usage-choice:has(input:checked){background:rgba(245,246,245,.08);border-color:var(--button-fill)}#settings .usage-choice input{width:20px;height:20px;min-width:20px;margin:3px 0 0;padding:0;accent-color:var(--button-fill)}#settings .usage-choice span{min-width:0}#settings .simple-shop-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#settings .simple-shop-actions .shop-count{flex:1;min-width:120px;font-size:14px;line-height:1.7}#settings .simple-shop-actions button{min-height:44px;white-space:nowrap}#settings .registered-shop-url{margin-top:0}#settings #shop-registration[hidden]{display:none}#settings .advanced-body>.advanced-group:first-child{margin-top:0}#settings #settings-message:empty{margin:0}@media(max-width:480px){#settings .usage-choice{padding:13px 12px;font-size:15px}#settings .simple-shop-actions{gap:7px}#settings .simple-shop-actions .shop-count{flex-basis:100%}#settings .simple-shop-actions button{flex:1}}

/* 2026-11-12 UI layout: original text and button colors are retained. */
.scenery{position:absolute;inset:0 0 auto;height:760px;background-position:50% 50%;background-size:cover;-webkit-mask-image:linear-gradient(#000 0%,#000 78%,transparent 100%);mask-image:linear-gradient(#000 0%,#000 78%,transparent 100%)}
html[data-theme=temple] .scenery{background-position:50% 54%}
.veil{position:absolute;inset:0 0 auto;height:760px;background:linear-gradient(180deg,rgba(6,23,17,.55),rgba(7,24,18,.2) 32%,rgba(8,23,18,.55) 70%,transparent 100%)}
html[data-theme=temple] .veil{background:linear-gradient(180deg,rgba(0,0,0,.6),rgba(0,0,0,.25) 32%,rgba(0,0,0,.6) 70%,transparent 100%)}
.topbar{padding:20px 28px;gap:16px}
main{max-width:1016px;padding:0 24px}
.intro{width:fit-content;max-width:100%;margin:12px auto 20px;padding:12px 24px;border-radius:12px;background:rgba(13,35,27,.64)}
html[data-theme=temple] .intro{background:rgba(0,0,0,.64)}
.intro .eyebrow{font-size:10px}
.intro h1{margin:6px 0;font-size:clamp(25px,3vw,32px);line-height:1.65}
.intro p{margin:6px 0 0;font-size:14px;line-height:1.7}
.themes{margin-bottom:20px;max-width:460px}
.themes button{min-height:48px;font-size:16px}
.ceremony{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:0;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;backdrop-filter:none}
.ceremony-top{grid-column:1/-1;padding:10px 16px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-size:13px;margin-bottom:16px;gap:8px}
.phase-badge{padding:4px 10px}
.name-stage{display:flex;flex-direction:column;justify-content:center;padding:24px 20px;margin:0 16px 0 0;border-radius:16px;background:var(--surface);min-width:0}
.ornament{font-size:20px}
.name-stage>p:first-of-type{font-size:14px;letter-spacing:.1em;margin:8px 0 10px;line-height:1.7}
.name{font-size:clamp(36px,5vw,58px);line-height:1.55;min-height:110px;letter-spacing:.1em;padding-left:.1em}
.name-stage #guidance{font-size:14px;line-height:1.8;min-height:52px;margin:8px 0 0}
.stage-line{display:none}
.control-dock{min-width:0;padding:16px;background:rgba(13,35,27,.96);border:1px solid var(--border);border-radius:16px}
html[data-theme=temple] .control-dock{background:rgba(0,0,0,.96)}
.main-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.action{min-height:80px;padding:22px 8px 12px;font-size:17px;letter-spacing:.02em}
.action>span{font-size:11px;left:10px;top:6px}
.action small{font-size:12px;line-height:1.5;margin-top:5px}
#stop{grid-column:1/-1;min-height:62px;padding:14px 12px;font-size:20px;display:flex;align-items:center;justify-content:center;gap:12px}
#stop small{margin:0;font-size:13px}
.after-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px 0 0}
.after-controls button{min-width:0;width:100%;min-height:50px;font-size:16px;line-height:1.5;padding:10px 8px}
.after-controls #finalize{grid-column:1/-1;min-height:54px;font-size:17px}
.check-strip{margin-top:16px;padding:10px 0 0;font-size:13px;gap:8px;flex-wrap:wrap;line-height:1.7}
.check-strip>span:nth-child(2){min-width:0}
.check-strip button{min-height:48px;font-size:14px;padding:8px 0;margin-left:auto}
.collection{margin-top:20px;background:rgba(13,35,27,.96);padding:0 18px}
html[data-theme=temple] .collection{background:rgba(0,0,0,.96)}
.collection-head{gap:12px}
.tabs{width:100%;gap:20px;justify-content:flex-start}
.tabs button{min-height:54px;font-size:15px}
.tabs span{font-size:12px;min-width:22px}
.name-list{max-height:420px;padding:16px 0;gap:12px}
.empty{font-size:14px;line-height:1.8;padding:8px 0;margin:0}
.record{flex-basis:calc(50% - 6px);min-width:0;padding:14px}
.record strong{font-size:28px;overflow-wrap:anywhere}
.record small{font-size:12px;line-height:1.7}
.record button{font-size:14px;min-height:48px;padding:9px 12px}
.device-note{font-size:12px;line-height:1.8;margin:18px 0 24px}
footer{padding:18px 28px 22px;line-height:1.8}
/* Keep the existing two choices, minimal store rows, and two advanced fields. */
#settings{width:min(700px,calc(100vw - 24px));max-height:90svh;background:rgb(19,43,34);overflow-y:auto;overscroll-behavior:contain}
html[data-theme=temple] #settings{background:rgb(0,0,0)}
#settings .dialog-head{padding:16px 20px;gap:12px}
#settings .dialog-head h2{font-size:22px;line-height:1.5}
#settings-close{min-height:48px;min-width:48px}
#settings .dialog-body{padding:20px}
#settings .usage-choices legend{font-size:16px;line-height:1.6}
#settings .usage-choice{padding:15px;min-height:60px;font-size:16px;line-height:1.7;margin-bottom:12px}
#settings .usage-choice:has(input:checked){border-width:2px;padding:14px}
#settings .usage-choice input{margin-top:4px}
#settings .registration-label{font-size:16px;line-height:1.6}
#settings .registration-inputs{gap:10px}
#settings .registration-inputs input,#settings .registration-inputs .save-button{min-height:52px;font-size:16px}
#settings .registered-shop-url{font-size:14px;line-height:1.7}
#settings .simple-shop-actions{gap:10px}
#settings .simple-shop-actions .shop-count{font-size:15px;line-height:1.7}
#settings .simple-shop-actions button{min-height:48px;font-size:15px;padding:10px 16px}
#settings .shop-card{padding:16px;margin:16px 0}
#settings #shop-add{min-height:50px;font-size:15px}
#settings .help,#settings #shop-register-message,#settings .advanced-group .help{font-size:14px;line-height:1.8}
#settings .advanced-settings>summary{min-height:54px;font-size:16px}
#settings .advanced-group>label{font-size:16px}
#settings .advanced-group input[type=range]{min-height:44px;margin:0}
#settings .dialog-foot{padding:14px 20px max(14px,env(safe-area-inset-bottom));background:rgb(19,43,34);z-index:2}
html[data-theme=temple] #settings .dialog-foot{background:rgb(0,0,0)}
#settings #settings-save{min-height:54px;font-size:17px}
#complete{background:rgb(19,43,34)}
html[data-theme=temple] #complete{background:rgb(0,0,0)}
.modal-close{min-height:48px;min-width:48px}
.complete-inner{padding-top:54px}
.sponsor a,#new-ceremony{min-height:50px}
@media(max-width:760px){
  .scenery{height:650px;background-position:50% 68%}
  .veil{height:650px}
  html[data-theme=temple] .scenery{background-position:50% 48%}
  .topbar{padding:14px 12px;gap:8px}
  .brand{flex:0 1 clamp(132px,40vw,220px)}
  .top-actions{gap:6px;flex-shrink:0}
  .icon-button{min-height:48px;padding:9px 10px;font-size:13px}
  .free{display:none}
  main{padding:0 12px;max-width:620px}
  .intro{margin:4px auto 10px;padding:10px 14px}
  .intro h1{font-size:clamp(23px,6.2vw,26px);letter-spacing:.04em;line-height:1.5}
  .mobile-break{display:block}
  .intro p{font-size:13px;letter-spacing:.02em}
  .intro .eyebrow{display:none}
  .themes{width:100%;margin-bottom:12px}
  .themes button{font-size:16px;min-height:48px;padding:9px 6px}
  .themes button small{display:none}
  .ceremony{display:block}
  .ceremony-top{padding:10px 12px;font-size:12px;margin-bottom:10px}
  .name-stage{padding:12px 14px;margin:0 0 10px;border-radius:12px;background:rgba(13,35,27,.4)}
  html[data-theme=temple] .name-stage{background:rgba(0,0,0,.55)}
  .name-stage>p:first-of-type{font-size:14px;margin:4px 0 8px}
  .name{font-size:clamp(28px,9vw,42px);min-height:68px;line-height:1.6}
  .name-stage #guidance{font-size:14px;min-height:42px;margin-top:8px}
  .ornament{display:none}
  .control-dock{padding:14px;border-radius:16px}
  .main-controls{gap:8px}
  .action{min-height:78px;font-size:16px;padding:22px 6px 10px}
  .action small{font-size:12px;line-height:1.6}
  #stop{min-height:62px;font-size:20px;padding:14px 10px}
  #stop small{font-size:13px}
  .after-controls{gap:8px;padding-top:12px}
  .after-controls button{font-size:16px;min-height:50px;padding:10px 6px}
  .after-controls #finalize{font-size:17px;min-height:54px}
  .check-strip{font-size:13px;margin-top:14px;padding-top:8px;gap:6px}
  .check-strip button{font-size:14px;min-height:48px}
  .collection{margin-top:16px;padding:0 14px}
  .tabs{gap:12px;justify-content:space-between}
  .tabs button{font-size:14px;min-height:54px}
  .record{flex-basis:100%;padding:12px}
  .record strong{font-size:28px}
  .device-note{font-size:12px;margin:16px 8px 22px}
  footer{padding:16px 16px 20px}
  #settings .dialog-head{padding:14px 16px}
  #settings .dialog-body{padding:16px}
  #settings .usage-choice{padding:14px 12px;font-size:15px;gap:10px}
  #settings .usage-choice:has(input:checked){padding:13px 11px}
  #settings .registration-inputs{grid-template-columns:minmax(0,1fr)}
  #settings .registration-inputs .save-button{width:100%}
  #settings .shop-card{padding:12px}
  #settings .simple-shop-actions .shop-count{flex-basis:100%}
  #settings .simple-shop-actions button{flex:1}
  #settings .dialog-foot{padding-left:16px;padding-right:16px}
  .complete-inner{padding:54px 20px 24px}
}
@media(max-width:480px) and (orientation:portrait){
  /* Frame the torii inside the name stage, rather than leaving tree tops dominant. */
  .scenery{background-size:auto 850px;background-position:50% 40%}
  html[data-theme=temple] .scenery{background-size:cover;background-position:50% 48%}
}

/* Explicit usage reset; store registration and exclusions are retained. */
#settings .usage-reset-area{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
#settings #usage-reset{min-height:52px;font-size:16px;padding:12px}
#settings #usage-reset-help{margin:10px 0 0}
#reset-usage-dialog{width:min(480px,calc(100vw - 24px));max-height:90svh;background:rgb(19,43,34);overflow-y:auto;overscroll-behavior:contain}
html[data-theme=temple] #reset-usage-dialog{background:rgb(0,0,0)}
#reset-usage-dialog .dialog-head{padding:18px 20px}
#reset-usage-dialog h2{font:600 20px/1.5 var(--sans);letter-spacing:0;margin:0;overflow-wrap:anywhere}
#reset-usage-dialog .dialog-body{padding:18px 20px;font-size:15px;line-height:1.8}
#reset-usage-dialog .dialog-body p{margin:0 0 14px}
#reset-usage-dialog .dialog-body p:last-child{margin-bottom:0}
#reset-usage-message:empty{display:none}
#reset-usage-message{color:#ffbca9}
#reset-usage-dialog .dialog-foot{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 20px max(14px,env(safe-area-inset-bottom));background:rgb(19,43,34)}
html[data-theme=temple] #reset-usage-dialog .dialog-foot{background:rgb(0,0,0)}
#reset-usage-dialog .dialog-foot button{width:100%;min-width:0;min-height:52px;font-size:16px;padding:12px 6px;line-height:1.6}
@media(max-width:480px){#reset-usage-dialog .dialog-head,#reset-usage-dialog .dialog-body{padding:16px}#reset-usage-dialog .dialog-foot{padding-left:16px;padding-right:16px;gap:10px}}
