/* ===== 更新636: かくれが(ハウス)。このページだけで読む(style.css にはさわらない) ===== */
.hs-head h1 { margin: 0; font-size: 1.15rem; }
.hs-pre { margin: 8px 0 0; padding: 6px 10px; border-radius: 10px; background: var(--hilite, #fff7cc); color: #5a4a00; font-size: .85rem; }
.hs-app { max-width: 520px; margin: 0 auto; }
.hs-stage { display: flex; justify-content: center; background: #2f7a35; border: 3px solid var(--green-dark, #237a35); border-radius: 14px; overflow: hidden; line-height: 0; }
#hs-cv { display: block; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
.hs-app.is-edit #hs-cv { touch-action: none; cursor: grab; }
.hs-hint { margin: 6px 2px 8px; min-height: 1.4em; font-size: .82rem; color: var(--muted, #606f60); }
.hs-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.hs-bar[hidden], .hs-edit[hidden], .hs-held[hidden], .hs-msg[hidden], .hs-ov[hidden] { display: none !important; }
.hs-edit { margin-top: 8px; padding: 10px; }
.hs-held { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; padding: 6px 10px; border-radius: 10px; background: var(--green-soft, #e6f6d6); color: #243024; font-size: .85rem; font-weight: 700; }
.hs-tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 6px; -webkit-overflow-scrolling: touch; }
.hs-tab { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line, #e1ecd2); border-radius: 999px; background: var(--card, #fff); color: inherit; font: inherit; font-size: .8rem; cursor: pointer; }
.hs-tab[aria-selected="true"] { background: var(--green, #2f9e44); border-color: var(--green, #2f9e44); color: #fff; font-weight: 700; }
.hs-tray { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 208px; overflow-y: auto; padding: 2px; }
.hs-it { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 84px; padding: 6px 2px 4px; border: 1px solid var(--line, #e1ecd2); border-radius: 12px; background: var(--card, #fff); color: inherit; font: inherit; font-size: .68rem; line-height: 1.25; cursor: pointer; }
.hs-it .hs-th { width: 48px; height: 44px; display: flex; align-items: flex-end; justify-content: center; }
.hs-it img { max-width: 48px; max-height: 44px; image-rendering: pixelated; image-rendering: crisp-edges; }
.hs-it .hs-n { font-weight: 700; color: var(--muted, #606f60); }
.hs-it.is-on { border: 2px solid var(--green, #2f9e44); background: var(--green-soft, #e6f6d6); color: #243024; }
.hs-it.is-on .hs-n { color: #237a35; }
.hs-it.is-out { opacity: .45; }
.hs-empty { grid-column: 1 / -1; margin: 8px 2px; font-size: .82rem; color: var(--muted, #606f60); }
.hs-name { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; }
.hs-name input { flex: 1 1 auto; min-width: 0; max-width: 12em; padding: 6px 8px; border: 1px solid var(--line, #e1ecd2); border-radius: 8px; font: inherit; background: var(--card, #fff); color: inherit; }
.hs-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hs-done { padding-top: 10px; border-top: 1px dashed var(--line, #e1ecd2); }
.hs-msg { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--hilite, #fff7cc); color: #5a4a00; font-size: .85rem; }
.hs-msg.is-err { background: #ffe3e0; color: #8a1f17; }
.hs-foot { margin-top: 12px; }
.hs-ov { position: fixed; inset: 0; z-index: 900; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .45); }
.hs-sheet { width: 100%; max-width: 520px; padding: 12px 14px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; background: var(--card, #fff); color: var(--text, #243024); }
.hs-sh-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hs-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.3rem; cursor: pointer; }
.hs-sh-body { display: flex; align-items: center; gap: 12px; }
.hs-sh-body img { width: 64px; image-rendering: pixelated; image-rendering: crisp-edges; }
@media (min-width: 700px) { .hs-ov { align-items: center; } .hs-sheet { border-radius: 16px; } }
html.hs-editing #pk-wpill { display: none !important; }
/* ===== 更新636 ここまで ===== */

/* ===== 更新637: 絵を飾る(がく・ドール)・アバターをえらぶ/描く ===== */
.hs-heldbtns { display: flex; gap: 6px; flex: 0 0 auto; }
#hs-pick[hidden], #hs-av-copy[hidden], .hs-avov[hidden] { display: none !important; }
.hs-sheet { max-height: 92vh; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hs-sh-body.hs-picview, .hs-sh-body.hs-pick { flex-direction: column; align-items: stretch; gap: 8px; }
.hs-sh-body .hs-big { width: auto; max-width: 100%; max-height: 56vh; margin: 0 auto; border-radius: 8px; background: #fff; image-rendering: auto; }
.hs-cap { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.hs-capti { font-size: .78rem; color: var(--muted, #606f60); overflow-wrap: anywhere; }
.hs-sh-body.hs-picview .btn, .hs-sh-body.hs-pick .btn { align-self: flex-start; }
.hs-pnote { margin: 0; font-size: .8rem; color: var(--muted, #606f60); }
.hs-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 52vh; overflow-y: auto; padding: 2px; }
.hs-pc { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 3px; border: 1px solid var(--line, #e1ecd2); border-radius: 10px; background: var(--card, #fff); color: inherit; font: inherit; font-size: .78rem; cursor: pointer; }
.hs-sh-body .hs-pc img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; border-radius: 6px; }
.hs-pc.is-on { border: 2px solid var(--green, #2f9e44); background: var(--green-soft, #e6f6d6); }
.hs-pc-none { border-style: dashed; color: var(--muted, #606f60); }
.hs-avov { z-index: 910; }
.hs-av-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.hs-av-it { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 6px; border: 1px solid var(--line, #e1ecd2); border-radius: 12px; background: var(--card, #fff); color: inherit; font: inherit; font-size: .7rem; line-height: 1.25; cursor: pointer; }
.hs-av-it.is-on { border: 2px solid var(--green, #2f9e44); background: var(--green-soft, #e6f6d6); color: #243024; }
.hs-av-it .hs-n { font-weight: 700; color: #237a35; }
.hs-av-th, .hs-av-prev, .hs-av-cv { image-rendering: pixelated; image-rendering: crisp-edges; }
.hs-av-draw { margin-top: 12px; }
.hs-av-tabs { margin-bottom: 4px; }
.hs-av-note { margin: 0 0 6px; min-height: 2.6em; font-size: .78rem; color: var(--muted, #606f60); }
.hs-av-edwrap { display: flex; gap: 10px; align-items: flex-start; }
.hs-av-cv { flex: 0 1 auto; width: min(256px, calc(100% - 92px)); height: auto; border: 2px solid var(--line, #e1ecd2); border-radius: 6px; touch-action: none; cursor: crosshair; }
.hs-av-side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.hs-av-lbl { font-size: .68rem; color: var(--muted, #606f60); }
.hs-av-prev { border-radius: 8px; }
.hs-av-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hs-av-tool.is-on { background: var(--green, #2f9e44); border-color: var(--green, #2f9e44); color: #fff; font-weight: 700; }
.hs-av-pal { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: 8px; max-width: 336px; }
.hs-av-sw { aspect-ratio: 1 / 1; min-height: 30px; border: 1px solid rgba(0, 0, 0, .25); border-radius: 6px; padding: 0; cursor: pointer; }
.hs-av-sw.is-on { outline: 3px solid var(--green, #2f9e44); outline-offset: 1px; }
.hs-av-base { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .82rem; }
.hs-av-base select { font: inherit; padding: 4px 6px; border: 1px solid var(--line, #e1ecd2); border-radius: 8px; background: var(--card, #fff); color: inherit; }
html.hs-m1 #pk-wpill, html.hs-m2 #pk-wpill { display: none !important; }   /* 窓が出ている間は、はじめての方への案内(下の丸い帯)を隠す。窓のボタンにかぶるため */
/* ===== 更新637 ここまで ===== */

/* ===== 更新638: ハブ(「自分のこと」の入り口)・部屋をしまう・描く画面の使い方 ===== */
.hs-hub { margin-top: 12px; padding: 12px; }
.hs-hub-ttl { margin: 0 0 8px; font-size: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }   /* h2 にすると、カードの見出しの帯(こい色)になって、そえ書きが読めない */
.hs-hub-sub { font-size: .72rem; font-weight: 400; color: var(--muted, #606f60); }
.hs-hubg { padding: 8px 0; border-top: 1px dashed var(--line, #e1ecd2); }
.hs-hubg > b { display: block; font-size: .85rem; margin-bottom: 4px; }
.hs-hubg ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hs-hubg a, .hs-hublink { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line, #e1ecd2); border-radius: 10px; background: var(--card, #fff); color: inherit; font-size: .85rem; text-decoration: none; }
.hs-hub-n { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; background: #d6453d; color: #fff; font-size: .72rem; text-align: center; }
.hs-hub-n[hidden] { display: none; }
.hs-hubfoot { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed var(--line, #e1ecd2); }
.hs-sh-body.hs-hubv { flex-direction: column; align-items: stretch; gap: 6px; }
.hs-notes { list-style: none; margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--hilite, #fff7cc); color: #5a4a00; font-size: .88rem; display: flex; flex-direction: column; gap: 4px; }
.hs-notes .hs-none { color: #6b5d1a; }
.hs-app.is-noroom .hs-stage, .hs-app.is-noroom .hs-hint, .hs-app.is-noroom .hs-bar, .hs-app.is-noroom .hs-foot { display: none !important; }
.hs-av-how { margin: 0 0 4px; padding: 8px 10px 8px 30px; border-radius: 10px; background: var(--green-soft, #e6f6d6); color: #243024; font-size: .85rem; line-height: 1.6; }
.hs-av-how2 { margin: 0 0 8px; font-size: .78rem; color: var(--muted, #606f60); }
/* ===== 更新638 ここまで ===== */

/* ===== 更新639: 絵をえらぶ窓(みんなの絵)・入り口の窓の中身・PC の文字 ===== */
.hs-popts { display: flex; gap: 6px; flex-wrap: wrap; }
.hs-pc.hs-popt { aspect-ratio: auto; min-height: 40px; padding: 6px 12px; font-size: .85rem; border-style: dashed; }
.hs-pc.hs-popt.is-on { border-style: solid; font-weight: 700; color: #243024; }
.hs-ptabs { margin: 2px 0 0; }
.hs-pick .hs-pgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 50vh; }
.hs-pick .hs-pgrid .hs-empty, .hs-pick .hs-pgrid .btn { grid-column: 1 / -1; justify-self: start; }
.hs-pick .hs-pc.is-on { outline: 3px solid var(--green, #2f9e44); outline-offset: -1px; }
#hs-pmore { align-self: center; min-height: 40px; padding: 6px 18px; }
#hs-pmore[hidden], #hs-pin[hidden] { display: none; }
.hs-hl-ttl { display: block; margin: 6px 0 0; font-size: .82rem; color: var(--muted, #606f60); }
.hs-hl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hs-hl li { display: flex; align-items: center; gap: 6px; }
.hs-hl a { flex: 1 1 auto; min-width: 0; display: block; padding: 9px 12px; border: 1px solid var(--line, #e1ecd2); border-radius: 10px; background: var(--card, #fff); color: inherit; font-size: .9rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-hl .hs-none { padding: 4px 2px; font-size: .82rem; color: var(--muted, #606f60); }
.hs-hublink.hs-hubsub { min-height: 34px; padding: 4px 10px; font-size: .8rem; align-self: flex-start; }
.hs-stampn { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--green-soft, #e6f6d6); color: #243024; font-weight: 700; }
@media (min-width: 700px) {      /* PC では文字が小さく見えた(ユーザーの声)→ ひとまわり大きく */
  .hs-hint { font-size: .95rem; }
  .hs-av-how { font-size: 1rem; } .hs-av-how2, .hs-av-note { font-size: .9rem; }
  .hs-av-draw { font-size: 1rem; padding: 10px 18px; }
  .hs-av-it { font-size: .82rem; } .hs-it { font-size: .78rem; } .hs-tab { font-size: .9rem; }
  .hs-pnote, .hs-capti, .hs-hub-sub, .hs-av-lbl { font-size: .88rem; }
  .hs-pick .hs-pgrid { grid-template-columns: repeat(4, 1fr); }
}
/* ===== 更新639 ここまで ===== */

/* ===== 更新641: メダル・おみせ ここから ===== */
.hs-shopbtn { display: inline-flex; align-items: center; gap: 6px; }
.hs-ptn { display: inline-block; padding: 0 8px; border-radius: 999px; background: #fff3c4; color: #5a4a00; font-size: .85em; }
.hs-sh-body.hs-shop { flex-direction: column; align-items: stretch; gap: 6px; }
.hs-shoptop { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hs-shopme { font-size: 1rem; } .hs-shopme b { font-size: 1.25rem; }
.hs-shopwk { font-size: .78rem; color: var(--muted, #606f60); }
.hs-sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hs-sc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 104px; padding: 6px 4px; border: 1px solid var(--line, #e1ecd2); border-radius: 10px; background: var(--card, #fff); color: inherit; font: inherit; font-size: .74rem; line-height: 1.3; text-align: center; cursor: pointer; }
.hs-sc .hs-th { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; }
.hs-sh-body.hs-shop .hs-sc img { width: auto; height: auto; max-width: 64px; max-height: 48px; min-width: 32px; object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; }
.hs-thgrow { font-size: 1.7rem; }
.hs-sp { padding: 0 8px; border-radius: 999px; background: #fff3c4; color: #5a4a00; font-weight: 700; }
.hs-sh { font-size: .68rem; color: var(--muted, #606f60); }
.hs-sc.is-on { border-color: var(--green, #2f9e44); box-shadow: 0 0 0 2px var(--green, #2f9e44) inset; }
.hs-sc.is-rare { border: 2px solid #e0b030; }
.hs-sc.is-out { opacity: .55; cursor: default; }
.hs-shopfoot { position: sticky; bottom: calc(-16px - env(safe-area-inset-bottom, 0px)); margin: 4px -14px calc(-16px - env(safe-area-inset-bottom, 0px)); padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--card, #fff); border-top: 1px solid var(--line, #e1ecd2); box-shadow: 0 -4px 10px rgba(0, 0, 0, .08); }
.hs-shopnote { margin: 0 0 6px; padding: 8px 10px; border-radius: 10px; background: var(--hilite, #fff7cc); color: #5a4a00; font-size: .85rem; }
.hs-shopnote.is-err { background: #ffe3e0; color: #8a1f17; }
.hs-shopnote:last-child { margin-bottom: 0; }
.hs-buybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.hs-buytxt { font-size: .9rem; font-weight: 700; }
.hs-buyno { font-size: .85rem; color: #8a1f17; }
.hs-how { margin-top: 6px; font-size: .82rem; color: var(--muted, #606f60); }
.hs-how summary { cursor: pointer; padding: 6px 0; }
.hs-how ul { margin: 4px 0; padding-left: 1.2em; } .hs-how p { margin: 4px 0 0; }
/* 更新645: ため方(1回の数 × 1日の回数・きょうの数)。おみせの いちばん上 */
.hs-how { border: 1px solid var(--line, #e1ecd2); border-radius: 10px; padding: 0 10px; background: var(--card, #fff); }
.hs-how[open] { padding-bottom: 8px; }
.hs-how summary { font-weight: 700; color: var(--text, #2b3a2b); }
.hs-hw-sum { display: inline-block; margin-left: 6px; font-weight: 400; font-size: .78rem; color: var(--muted, #606f60); }
.hs-how ul.hs-hw { list-style: none; margin: 2px 0 6px; padding: 0; }
.hs-hw li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line, #e1ecd2); }
.hs-hw-n { grid-column: 1; font-weight: 700; color: var(--text, #2b3a2b); }
.hs-hw-n small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted, #606f60); }
.hs-hw-x { grid-column: 1; font-size: .8rem; }
.hs-hw-t { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg, #f4f8ee); color: var(--text, #2b3a2b); }
.hs-hw-t.is-full { background: #dff3d6; color: #256b2c; }
.hs-hw-tot { color: var(--text, #2b3a2b); }
.hs-hw-full { font-weight: 700; color: #a2590d; }
.hs-mythbox { display: flex; flex-direction: column; gap: 4px; }

@media (min-width: 700px) { .hs-sgrid { grid-template-columns: repeat(4, 1fr); } .hs-sc { font-size: .85rem; } .hs-shopfoot { bottom: -16px; margin-bottom: -16px; } }
/* ===== 更新641: メダル・おみせ ここまで ===== */

/* ===== 更新646: 動かし方の自由(十字ボタン・画面を引っぱる・出口・ベッド)ここから ===== */
.hs-stage { position: relative; }
.hs-app.is-pannable #hs-cv { cursor: grab; }
.hs-app.is-pan #hs-cv { cursor: grabbing; }
.hs-camback { position: absolute; top: 6px; right: 6px; min-height: 32px; padding: 4px 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #243024; font: inherit; font-size: .78rem; font-weight: 700; line-height: 1.4; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); cursor: pointer; }
.hs-camback[hidden], .hs-pad[hidden], .hs-night[hidden] { display: none !important; }
.hs-pad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-areas: ". u ." "l d r"; gap: 4px; justify-content: center; margin: 8px 0 2px; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.hs-pad button { height: 46px; border: 1px solid var(--line, #e1ecd2); border-radius: 12px; background: var(--card, #fff); color: var(--green-dark, #237a35); font: inherit; font-size: 1.05rem; line-height: 1; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; }
.hs-pad [data-d="u"] { grid-area: u; } .hs-pad [data-d="l"] { grid-area: l; } .hs-pad [data-d="d"] { grid-area: d; } .hs-pad [data-d="r"] { grid-area: r; }
.hs-pad button.is-on, .hs-pad button:active { background: var(--green, #2f9e44); border-color: var(--green, #2f9e44); color: #fff; }
.hs-app.is-edit .hs-pad, .hs-app.is-noroom .hs-pad { display: none !important; }
#hs-padbtn[aria-pressed="true"] { background: var(--green-soft, #e6f6d6); color: #243024; }
.hs-sh-body.hs-ask { flex-direction: column; align-items: stretch; gap: 12px; }
.hs-asktxt { margin: 4px 0 0; font-size: 1rem; }
.hs-askrow { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-askrow .btn, .hs-askrow .mini { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding-left: 16px; padding-right: 16px; }
html.hs-sleep #pk-wpill { display: none !important; }
.hs-night { position: fixed; inset: 0; z-index: 950; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(14, 20, 44, 0); color: rgba(255, 255, 255, 0); font-size: 1.4rem; cursor: pointer; transition: background-color 1.6s ease, color 1s ease .8s; }
.hs-night span { font-size: .9rem; }
.hs-night.is-on { background: rgba(14, 20, 44, .96); color: #fff; }
@media (prefers-reduced-motion: reduce) { .hs-night { transition: none; } }
/* ===== 更新646: ここまで ===== */
/* ===== 更新648: 公開(スイッチ・お知らせを出すか・ボーナスの行)ここから ===== */
.hs-pre .mini { margin-left: 6px; }
.hs-pre.hs-pub { background: var(--green-soft, #e6f6d6); color: #243024; }
.hs-notesw { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 10px 0 0; font-size: .85rem; cursor: pointer; }
.hs-notesw input { width: 20px; height: 20px; }
.hs-notesw small { flex-basis: 100%; padding-left: 28px; font-size: .74rem; color: var(--muted, #606f60); }
.hs-hw-bonus { padding: 6px 8px; border-radius: 8px; background: var(--hilite, #fff7cc); color: #5a4a00; }
/* ===== 更新648: ここまで ===== */
/* ===== 更新649: これから できるようになること ここから ===== */
.hs-soon { margin-top: 12px; padding: 12px; border-style: dashed; }
.hs-soon-ttl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .95rem; }
.hs-soon-ttl span { padding: 1px 8px; border-radius: 999px; background: var(--hilite, #fff7cc); color: #5a4a00; font-size: .7rem; font-weight: 700; }
.hs-soon ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .88rem; }
.hs-soon li { display: flex; gap: 8px; align-items: baseline; }
.hs-soon li span { flex: 0 0 1.4em; text-align: center; }
.hs-soon-note { margin: 8px 0 0; font-size: .76rem; color: var(--muted, #606f60); }
/* ===== 更新649: ここまで ===== */
/* ===== 更新650: 両替 ここから ===== */
.hs-ex { margin-top: 6px; }
.hs-ex-t { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; font-size: .78rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg, #f4f8ee); color: var(--text, #2b3a2b); }
.hs-ex-t.is-full { background: #dff3d6; color: #256b2c; }
.hs-exbtn { grid-column: 2; grid-row: 1 / span 2; min-height: 40px; white-space: nowrap; }
/* ===== 更新650: ここまで ===== */
/* ===== 更新651: みんなのデザイン(住民の作るアイテム)ここから ===== */
.hs-by { font-size: .64rem; line-height: 1.25; color: var(--muted, #606f60); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-bychip { position: absolute; left: 6px; top: 6px; max-width: calc(100% - 12px); margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #243024; font-size: .78rem; font-weight: 700; line-height: 1.5; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.hs-bychip[hidden], .hs-dzwait[hidden], #hs-dz-msg[hidden] { display: none !important; }
.hs-dzwait { display: inline-block; min-width: 1.5em; margin-left: 5px; padding: 0 5px; border-radius: 999px; background: #d9480f; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.5; text-align: center; }
.hs-dzin { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: .8rem; color: var(--muted, #606f60); }
.hs-dzin .mini { min-height: 36px; }
.hs-sh-body.hs-dz { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.hs-sh-body.hs-dz > .hs-av-how, .hs-sh-body.hs-dz > .hs-av-pal { margin-left: 0; margin-right: 0; }
#hs-dz-send { min-height: 40px; }
.hs-sh-body.hs-dz > .mini { align-self: flex-start; min-height: 36px; }
.hs-dz-admbtn { align-self: flex-start; }
.hs-dz-kinds { margin-bottom: 0; }
.hs-dz-kinds .hs-tab { min-height: 36px; }
.hs-dz-wrap { display: flex; gap: 10px; align-items: flex-start; }
.hs-dz-wrap.is-wide { flex-direction: column; align-items: center; }
.hs-dz-wrap .hs-av-side { flex: 0 0 94px; min-width: 0; text-align: center; }
.hs-dz-wrap .hs-av-lbl { line-height: 1.35; }
.hs-dz-wrap.is-wide .hs-av-side { flex: 0 0 auto; flex-direction: row; gap: 10px; }
.hs-dz-cv { flex: 0 1 auto; width: min(256px, calc(100% - 104px)); height: auto; border: 2px solid var(--line, #e1ecd2); border-radius: 6px; touch-action: none; cursor: crosshair; image-rendering: pixelated; image-rendering: crisp-edges; }
.hs-dz-wrap.is-wide .hs-dz-cv { width: min(352px, 100%); }
.hs-dz-prev { border-radius: 8px; image-rendering: pixelated; image-rendering: crisp-edges; }
.hs-sh-body.hs-dz .hs-av-pal, .hs-sh-body.hs-dz .hs-av-tools { margin-top: 0; }
.hs-sh-body.hs-dz .hs-av-tool, .hs-sh-body.hs-dz .hs-av-tools .mini { min-height: 36px; }
.hs-dz-f { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; font-size: .85rem; }
.hs-dz-f input { min-width: 0; max-width: 16em; padding: 7px 8px; border: 1px solid var(--line, #e1ecd2); border-radius: 8px; font: inherit; font-size: 16px; background: var(--card, #fff); color: inherit; }
.hs-dz-f small { grid-column: 1 / -1; font-size: .72rem; color: var(--muted, #606f60); }
.hs-sh-body.hs-dz .hs-acts { margin-top: 0; }
.hs-dz-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hs-dz-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line, #e1ecd2); border-radius: 10px; background: var(--card, #fff); }
.hs-sh-body.hs-dz .hs-dz-list img { flex: 0 0 auto; width: 48px; height: auto; max-height: 56px; object-fit: contain; image-rendering: pixelated; image-rendering: crisp-edges; }
.hs-sh-body.hs-dz .hs-dz-admlist img { width: 96px; max-height: 108px; background: #d3a166; border-radius: 6px; }
.hs-dz-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: .84rem; line-height: 1.4; overflow-wrap: anywhere; }
.hs-dz-t small { font-size: .72rem; color: var(--muted, #606f60); }
.hs-dz-st { align-self: flex-start; margin-top: 2px; padding: 1px 8px; border-radius: 999px; background: var(--bg, #f4f8ee); color: var(--text, #2b3a2b); font-size: .74rem; font-weight: 700; }
.hs-dz-st.is-st1 { background: #dff3d6; color: #256b2c; }
.hs-dz-st.is-st0 { background: #fff3c4; color: #5a4a00; }
.hs-dz-bs { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.hs-dz-bs .mini, .hs-dz-bs .btn, .hs-dz-list li > .mini { min-height: 38px; white-space: nowrap; }
@media (max-width: 480px) { .hs-dz-admlist li { flex-wrap: wrap; } .hs-dz-admlist .hs-dz-bs { flex-direction: row; width: 100%; } }
/* ===== 更新651: ここまで ===== */

/* ===== 更新652: わたしのデザインの一覧のボタン(せまい画面では、下の だんに横ならび)・2つの保存ボタン ===== */
@media (max-width: 480px) { .hs-dz-list li { flex-wrap: wrap; } .hs-dz-list .hs-dz-bs { flex-direction: row; flex-wrap: wrap; width: 100%; } }
.hs-sh-body.hs-dz .hs-done { flex-wrap: wrap; gap: 8px; }
.hs-sh-body.hs-dz .hs-dz-kinds { flex-wrap: wrap; }

/* ===== 更新654: アバターの出品(みんなのアバター)ここから ===== */
.hs-av-ubox, .hs-av-minebox { margin: 8px 12px 0; }
.hs-av-ubox:empty, .hs-av-minebox:empty { display: none; }
.hs-av-ubox .hs-hl-ttl, .hs-av-minebox .hs-hl-ttl { margin-bottom: 6px; }
.hs-av-it .hs-by { display: block; }
.hs-av-list canvas { flex: 0 0 auto; background: #d3a166; border-radius: 6px; }
.hs-av-sell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 12px 12px 0; padding-top: 10px; border-top: 1px dashed var(--line, #e1ecd2); }
.hs-av-sell > .mini { min-height: 40px; }
.hs-av-sellnote { font-size: .74rem; line-height: 1.5; color: var(--muted, #606f60); }
.hs-av-sellbox { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; padding: 10px; border: 1px solid var(--line, #e1ecd2); border-radius: 10px; background: var(--bg, #f4f8ee); box-sizing: border-box; }
.hs-av-sellbox[hidden], #hs-av-sellmsg[hidden] { display: none !important; }
.hs-av-sellbox .hint, .hs-av-sellbox .hs-msg { margin: 0; }
.hs-av-sellbox .btn { align-self: flex-start; min-height: 40px; }
.hs-scav .hs-th canvas { background: #d3a166; border-radius: 6px; }
.hs-buyav { display: inline-flex; padding: 2px; border-radius: 6px; background: #d3a166; line-height: 0; }
.hs-sh-body.hs-dz .hs-dz-admlist img.is-av { width: 144px; max-height: 60px; }
/* ===== 更新654: ここまで ===== */

/* ===== 更新655: クッションの ふくらみ・大きいクッション ===== */
#hs-dz-price { white-space: pre-line; }
/* ===== 更新659 ここから: 壁紙・床の見本(ならべた絵)は、はばに 合わせて ちぢめる ===== */
#hs-dz-prev { max-width: 100%; height: auto; image-rendering: pixelated; }
/* ===== 更新659 ここまで ===== */
/* ===== 更新660 ここから: みんなのデザインを飾る・もらえるメダルの札 ===== */
.hs-big.is-dz, .hs-pgrid.is-dz img { image-rendering: pixelated; }
.hs-ptabs { flex-wrap: wrap; overflow-x: visible; }   /* タブが 3つに なったので、せまい画面では 2段に */
.hs-pgrid.is-dz img { object-fit: contain; background: var(--bg, #f4f8ee); }
.hs-dz-gain { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 10px 0 8px; padding: 8px 10px; border: 1px solid #e6c65a; border-radius: 10px; background: #fff8dc; color: #4a3a00; font-size: .86rem; line-height: 1.5; }
.hs-dz-gain b { font-size: .95rem; }
.hs-dz-gain small { flex: 1 0 100%; font-size: .74rem; color: #6b5a1a; }
.hs-av-sell .hs-dz-gain { align-self: stretch; margin: 0; }
html[data-theme="dark"] .hs-dz-gain { background: #3a3210; border-color: #7a6a20; color: #ffe9a0; }
html[data-theme="dark"] .hs-dz-gain small { color: #d9c880; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hs-dz-gain { background: #3a3210; border-color: #7a6a20; color: #ffe9a0; } :root:not([data-theme="light"]) .hs-dz-gain small { color: #d9c880; } }
/* ===== 更新660 ここまで ===== */
