@font-face {
  font-family: "Neko Room Maru";
  src: url("assets/fonts/neko-room-maru.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
* { box-sizing: border-box; }
body { margin: 0; background: #eee7dc; color: #44433c; font-family: "Neko Room Maru", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif; font-weight: 500; }
main { max-width: 1120px; margin: auto; padding: 40px 40px 24px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1 { font-size: 28px; letter-spacing: 3px; margin: 0; font-weight: 500; }
button { font: inherit; font-size: 12px; border: 1px solid #b5ae9f; background: transparent; border-radius: 24px; padding: 11px 20px; color: #555348; cursor: pointer; white-space: nowrap; }
button:hover { background: #e1d9cb; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible { outline: 3px solid #668375; outline-offset: 3px; }
.camera { position: relative; overflow: hidden; border-radius: 8px; background: #d9d0be; box-shadow: 0 12px 40px #67583a15; }
canvas { display: block; width: 100%; height: auto; }
.camera-label, .camera-bottom { position: absolute; left: 24px; right: 24px; display: flex; align-items: center; font-size: 10px; letter-spacing: 2px; color: #655f51; pointer-events: none; }
.camera-label { top: 22px; gap: 8px; }
.camera-label i { width: 5px; height: 5px; border-radius: 50%; background: #799b7e; }
.camera-bottom { bottom: 20px; letter-spacing: 1px; }
.below-camera { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; }
.moments { min-width: 0; font-size: 11px; color: #827c6f; line-height: 1.8; }
.moments p { margin: 0; }
@media (max-width: 600px) {
  main { padding: 24px 16px; }
  h1 { font-size: 21px; letter-spacing: 2px; }
  header { margin-bottom: 18px; }
  .header-actions > button { padding: 10px 12px; font-size: 10px; }
  .camera-label, .camera-bottom { left: 12px; right: 12px; font-size: 8px; }
  .camera-label { top: 12px; }
  .camera-bottom { bottom: 10px; }
}

.actions, .photo-actions { display: flex; gap: 10px; flex-shrink: 0; }
.below-camera { flex-wrap: wrap; }
.actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
dialog { width: min(680px, calc(100% - 32px)); padding: 20px; border: 0; border-radius: 12px; background: #eee7dc; color: #44433c; }
dialog::backdrop { background: #302a2266; }
#photo-close { display: block; margin: 0 0 12px auto; padding: 2px 10px; border: 0; font-size: 24px; }
#photo-preview { display: block; width: 100%; height: auto; border-radius: 6px; }
.photo-actions { margin-top: 16px; justify-content: flex-end; }
#photo-status { font-size: 11px; line-height: 1.7; margin: 12px 0 0; }
[hidden] { display: none !important; }

.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
#mute { border-color: transparent; padding-left: 6px; padding-right: 6px; }
@media(max-width:360px){h1{font-size:18px;letter-spacing:1px}.header-actions{gap:2px}.header-actions>button{padding:9px 8px}}

.settings { position: relative; }
#settings-button { padding: 9px; border-color: transparent; display: flex; align-items: center; }
#settings-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 2; width: 170px; padding: 16px; background: #f7f3ea; border: 1px solid #d0c7b7; border-radius: 8px; box-shadow: 0 6px 20px #67583a18; }
#settings-panel label { min-height: 44px; display: flex; align-items: center; gap: 9px; font-size: 12px; cursor: pointer; }
#show-text { accent-color: #668375; width: 16px; height: 16px; margin: 0; }

button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button svg { width: 18px; height: 18px; flex-shrink: 0; }
#photo-close { display: flex; padding: 8px 12px; font-size: 12px; }
#settings-button { padding: 8px; }
#mute { padding: 8px; }
.actions button { padding: 10px 12px; }
@media(max-width:360px){.header-actions{gap:2px}.header-actions>button{padding:8px 4px}#settings-button{padding:8px 4px}#mute{padding:8px 4px}.header-actions button{font-size:10px;gap:4px}h1{font-size:17px}}
/* Keep the action group within the room width before wrapping its buttons. */
.actions { flex: 0 1 auto; min-width: 0; max-width: 100%; }
@media (max-width: 600px) {
  .actions { width: 100%; }
  .header-actions { max-width: 100%; }
}

#light[aria-pressed="false"] svg { opacity: .5; }
