/* 星のかけら（会員の画面）で足した部分。色は既存の style.css のまま */
.loading{text-align:center;color:var(--ink-soft);padding:30px 0}
.net-error{text-align:center;background:#fff3f0;border:2px solid #f3d5cc;border-radius:20px;padding:16px;margin-top:10px}
.net-error p{margin:0 0 10px}
.restore{margin-top:18px;text-align:left;border-top:1px dashed var(--line);padding-top:12px}
.restore summary{cursor:pointer;font-weight:700;color:var(--sage-deep);min-height:44px;display:flex;align-items:center}
.restore form,.inline-form{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.restore label{font-size:13px;font-weight:700}
.restore input,.inline-form input{min-height:48px;border:2px solid var(--line);border-radius:14px;padding:8px 14px;font-size:18px;letter-spacing:.08em;font-family:var(--body);background:#fff;color:var(--ink)}
.restore input:focus,.inline-form input:focus{border-color:var(--sage);outline:0}
.settings{max-width:560px;margin:0 auto 30px}
.settings summary{cursor:pointer;font-weight:700;color:var(--sage-deep);min-height:44px;display:flex;align-items:center}
.settings p{font-size:14px}
.danger{border-color:#d9a99b;color:#9a4b38}
.danger-fill{background:#b0644f;box-shadow:0 5px 0 rgba(120,60,40,.25)}

/* 小さな画面 */
.sheet{width:min(440px,calc(100% - 32px));max-height:calc(100% - 40px);border:0;border-radius:26px;padding:22px 18px 20px;background:var(--paper);color:var(--ink);box-shadow:0 20px 50px rgba(0,0,0,.25)}
.sheet::backdrop{background:rgba(60,50,35,.5)}
.sheet h2{margin:0 0 10px;font-size:20px;padding-right:40px}
.sheet p{margin:0 0 12px;font-size:15px}
.sheet .btn{width:100%;margin-top:8px}
.sheet-close{position:absolute;top:10px;right:10px;margin:0}
.sheet-close button{width:44px;height:44px;border-radius:50%;border:0;background:var(--cream);font-size:22px;color:var(--ink);cursor:pointer}
.code{font-family:ui-monospace,Menlo,monospace;font-size:26px;font-weight:700;letter-spacing:.08em;text-align:center;background:#fff8dc;border:2px dashed var(--gold);border-radius:16px;padding:14px 8px;user-select:all;-webkit-user-select:all}
.quiz-q{font-family:var(--head);font-size:19px!important;color:var(--sage-deep)}
.quiz-choices{display:flex;flex-direction:column;gap:2px}
.new-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.new-list a{display:flex;min-height:48px;align-items:center;padding:8px 14px;border:2px solid var(--line);border-radius:14px;background:#fff;font-weight:700;text-decoration:none}

/* 特典の画像 */
.reward-photo{width:100%;max-width:300px;margin:0 auto;border-radius:16px;aspect-ratio:4/5;object-fit:cover;background:#f4efe0}
.reward .btn{display:flex}

/* 部屋の中：上の空きを少し小さく */
.room-inner::before{min-height:28vh}
