/* 見た目の考え方：白に近い地、こげ茶に近い黒の文字、太くて字間の広い見出し、
   黒い線で囲んだ角丸のボタン、色つきの札を並べた一覧。差し色は青を1色だけ。
   端末の設定（明るい・暗い）に従う。色はここ以外に直接書かない */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --soft: #f0eeed;
  --line: #e2dfdd;
  --line-strong: #b7b0ac;
  --fg: #2f2725;
  --fg-dim: #6b625f;
  --link: #0b5fd6;
  --accent: #0b63e5;
  --accent-ink: #ffffff;
  --live: #178a4a;
  --mark: #fff1bd;
  --error: #c0271a;
  --tile-0: #e6edf6;
  --tile-1: #f6e9e1;
  --tile-2: #e4f0e8;
  --tile-3: #f6f0d6;
  --tile-4: #eee7f4;
  --tile-5: #e7eded;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --latin: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1918;
    --surface: #252221;
    --soft: #302c2b;
    --line: #3a3634;
    --line-strong: #7b736f;
    --fg: #f2efed;
    --fg-dim: #b5ada9;
    --link: #8fbcff;
    --accent: #74abff;
    --accent-ink: #0c1b33;
    --live: #6fd39a;
    --mark: #4b4120;
    --error: #ff9d8a;
    --tile-0: #27313d;
    --tile-1: #3b2f29;
    --tile-2: #27362e;
    --tile-3: #39341f;
    --tile-4: #332b3a;
    --tile-5: #2b3233;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { height: 100%; }
body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.75 var(--sans);
  letter-spacing: .05em;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); }
h1, h2, p { margin: 0; }
button, input, textarea, select { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---- 上の帯：左にサイト名とひとこと、右に検索 ---- */
.top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
  max-width: 1040px; margin: 0 auto; padding: 22px 24px 14px;
}
.brand {
  font-family: var(--latin), var(--sans); font-size: 27px; font-weight: 800; letter-spacing: .1em; line-height: 1.2;
  color: var(--fg); text-decoration: none;
}
.brand-sub { font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.top-link { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--fg); }
.top .filter[type="search"] { width: 260px; margin-left: auto; }

/* ---- ボタンと入力 ---- */
.btn {
  display: inline-block; padding: 6px 16px;
  border: 1px solid var(--fg); border-radius: 7px;
  background: var(--surface); color: var(--fg);
  font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--soft); }
.btn-main { background: var(--fg); color: var(--bg); }
.btn-main:hover { background: var(--fg); }
.btn-small { padding: 3px 12px; font-size: 12px; }
.btn:disabled { cursor: default; border-style: dashed; }

input[type="text"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
  width: 100%; padding: 8px 12px;
  border: 1px solid var(--line-strong); border-radius: 7px;
  background: var(--surface);
}
textarea { resize: vertical; line-height: 1.6; }
::placeholder { color: var(--fg-dim); opacity: 1; }
label { font-size: 12px; font-weight: 800; color: var(--fg); }
.opt { font-weight: 400; color: var(--fg-dim); }
.error { font-size: 13px; font-weight: 800; color: var(--error); }
.error:empty { display: none; }
.note { padding: 40px 0; font-weight: 800; color: var(--fg-dim); }
.note:empty { display: none; }

/* ---- 一覧 ---- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.sorts { display: flex; flex-wrap: wrap; gap: 6px; }
.sorts button {
  padding: 5px 14px; border: 1px solid var(--fg); border-radius: 7px;
  background: var(--surface); color: var(--fg); font-size: 12px; font-weight: 800; cursor: pointer;
}
.sorts button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.filter { width: 240px; max-width: 100%; }
.filter[type="search"] { border-color: transparent; background: var(--soft); font-size: 13px; }
/* タグ。一覧の上の「しぼる」ボタンと、部屋を立てる欄の「よく使うタグ」は同じ形 */
.tagbar, .tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tagbar { margin-top: 12px; }
.tag-picks { margin-top: 6px; }
.tagbar button, .tag-picks button {
  padding: 3px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--fg); font-size: 12px; font-weight: 800; cursor: pointer;
}
.tagbar button[aria-pressed="true"], .tag-picks button[aria-pressed="true"] { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.r-tags { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 8px; }
.r-tag { padding: 0 9px; border-radius: 999px; background: var(--soft); color: var(--fg); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.list-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.list-count { font-size: 12px; color: var(--fg-dim); }
.list-rule { margin: -6px 0 16px; font-size: 12px; color: var(--fg-dim); }
.list-head { margin-bottom: 10px; }

.create {
  display: grid; gap: 4px; max-width: 560px; margin-top: 16px; padding: 18px 20px 20px;
  border: 1px solid var(--fg); border-radius: 7px; background: var(--surface);
}
.create label { margin-top: 10px; }
.create label:first-child { margin-top: 0; }
.create-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* 部屋は札として並べる。上が色の面（部屋の名前）、下が小さな数字 */
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; margin: 0; padding: 0; list-style: none; }
.room-row { display: block; color: var(--fg); text-decoration: none; }
.r-tile {
  display: flex; align-items: flex-end; aspect-ratio: 16 / 10; padding: 18px;
  border: 1px solid var(--line); background: var(--tile-0);
  transition: transform .15s ease-out;
}
.r-tile.t1 { background: var(--tile-1); }
.r-tile.t2 { background: var(--tile-2); }
.r-tile.t3 { background: var(--tile-3); }
.r-tile.t4 { background: var(--tile-4); }
.r-tile.t5 { background: var(--tile-5); }
.room-row:hover .r-tile { transform: translateY(-3px); }
.r-title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  font-size: 20px; font-weight: 800; line-height: 1.45; letter-spacing: .06em; overflow-wrap: anywhere;
}
.r-meta {
  display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 9px;
  font-size: 12px; font-weight: 800; color: var(--fg-dim); font-variant-numeric: tabular-nums;
}
/* 人がいる部屋には点をともす */
.r-on { color: var(--fg); }
.r-on::before { content: "●"; margin-right: 5px; color: var(--live); }
.r-off::before { content: "○"; margin-right: 5px; }
.r-when { margin-left: auto; }

.foot {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  max-width: 1040px; margin: 64px auto 0; padding: 18px 24px 40px;
  border-top: 1px solid var(--line); font-size: 12px; font-weight: 800;
}
.foot a { color: var(--fg); }
.counter { margin-left: auto; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.counter b { font-family: var(--latin); font-size: 14px; font-weight: 800; color: var(--fg); }

/* 画面の右端に立てる札（広い画面だけ） */
.side { display: none; }
@media (min-width: 1180px) {
  .side { position: fixed; top: 0; right: 0; z-index: 2; display: grid; gap: 6px; }
  .side a, .side button {
    writing-mode: vertical-rl; padding: 20px 9px; border: 0; border-radius: 12px 0 0 12px;
    background: var(--fg); color: var(--bg);
    font-size: 13px; font-weight: 800; letter-spacing: .14em; text-decoration: none; cursor: pointer;
  }
  .side > :first-child { border-top-left-radius: 0; }
  .side .side-main { background: var(--accent); color: var(--accent-ink); }
}

/* ---- 部屋 ---- */
.room { display: flex; flex-direction: column; height: 100vh; height: 100dvh; position: relative; }
.roombar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px max(24px, calc((100% - 820px) / 2 + 24px));
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.back {
  flex-shrink: 0; padding: 3px 12px; border: 1px solid var(--fg); border-radius: 7px;
  font-size: 12px; font-weight: 800; color: var(--fg); text-decoration: none;
}
.back::before { content: "← "; }
.roombar-main { flex: 1; min-width: 0; }
.roombar-main h1 { font-size: 17px; font-weight: 800; line-height: 1.45; letter-spacing: .06em; overflow-wrap: anywhere; }
.roombar-sub { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 12px; font-weight: 800; color: var(--fg-dim); }
#room-online { color: var(--fg); }
#room-online:not(:empty)::before { content: "●"; margin-right: 5px; color: var(--live); }

.scroller { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.room .wrap { max-width: 820px; }
.older {
  display: block; width: 100%; margin: 12px 0 0; padding: 8px;
  border: 1px dashed var(--line-strong); border-radius: 7px;
  background: none; color: var(--fg-dim); font-size: 12px; font-weight: 800; cursor: pointer;
}
.posts { padding: 8px 0 16px; }
.post { padding: 11px 10px 12px; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; }
.post.is-mine { border-left-color: var(--accent); }
.post.is-same { background: var(--mark); }
/* 目立たせた背景の上では、薄い文字色だと読みにくくなる */
.post.is-same .p-head, .post.is-same .p-id, .post.is-same .p-report { color: var(--fg); }
.post.is-flash { animation: flash 1.4s ease-out; }
@keyframes flash { from { background: var(--mark); } to { background: transparent; } }

.p-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-size: 12px; color: var(--fg-dim); }
.p-head button { padding: 0; border: 0; background: none; cursor: pointer; }
.p-no { font-family: var(--latin); font-size: 14px; font-weight: 800; color: var(--fg); font-variant-numeric: tabular-nums; }
.p-name { font-weight: 800; color: var(--fg); overflow-wrap: anywhere; }
.p-time { font-variant-numeric: tabular-nums; }
.p-id { color: var(--fg-dim); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; letter-spacing: 0; }
.p-report { margin-left: auto; color: var(--fg-dim); font-size: 12px; text-decoration: underline; }
.p-body { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.p-gone { font-size: 12px; }

/* ---- アンケート ---- */
.poll { display: grid; gap: 6px; max-width: 480px; margin-top: 8px; }
.poll-opt {
  padding: 7px 14px; border: 1px solid var(--fg); border-radius: 7px;
  background: var(--surface); color: var(--fg); font-size: 14px; font-weight: 800; text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.poll-opt:hover { background: var(--soft); }
.poll-row {
  position: relative; display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); overflow: hidden;
}
.poll-row.is-picked { border-color: var(--fg); font-weight: 800; }
.poll-bar { position: absolute; inset: 0 auto 0 0; background: var(--mark); }
.poll-label, .poll-num { position: relative; }
.poll-label { overflow-wrap: anywhere; }
.poll-num { flex-shrink: 0; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.poll-foot { font-size: 12px; color: var(--fg-dim); }

/* サイトが出した書き込み（クイズの進行） */
.post.is-sys { border-left-color: var(--fg); background: var(--surface); }

/* ---- クイズ（書き込み欄の上に出る） ---- */
.quiz { border-top: 2px solid var(--fg); background: var(--surface); padding: 10px 0 12px; max-height: 50vh; overflow-y: auto; }
.quiz-head { font-size: 12px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.quiz-q { margin-top: 2px; font-size: 19px; font-weight: 800; line-height: 1.5; overflow-wrap: anywhere; }
.quiz-opts { margin-top: 10px; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.quiz-grid.quiz-chars { grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); }
.quiz-chars .quiz-opt { text-align: center; font-size: 18px; padding: 8px 0; }
.quiz-opt {
  padding: 8px 14px; border: 1px solid var(--fg); border-radius: 7px;
  background: var(--surface); color: var(--fg); font-weight: 800; text-align: left; cursor: pointer; overflow-wrap: anywhere;
}
.quiz-opt:disabled { cursor: default; border: 1px dashed var(--line-strong); font-weight: 400; }
.quiz-opt.is-picked { border: 2px solid var(--fg); font-weight: 800; }
.quiz-opt.is-correct { border: 2px solid var(--live); background: var(--mark); font-weight: 800; }
.quiz-opt.is-correct::after { content: "　正解"; }
.quiz-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.quiz-acts .quiz-text { flex: 1 1 200px; width: auto; }
.quiz-built {
  min-height: 2em; margin-bottom: 8px; padding: 2px 4px; border-bottom: 1px dashed var(--line-strong);
  font-size: 21px; font-weight: 800; letter-spacing: .16em; overflow-wrap: anywhere;
}
.quiz-mine { margin-top: 6px; font-size: 14px; overflow-wrap: anywhere; }
.quiz-answer { margin-top: 6px; font-weight: 800; overflow-wrap: anywhere; }
.quiz-note { margin-top: 6px; font-size: 12px; color: var(--fg-dim); }
.quiz-host { display: flex; gap: 8px; margin-top: 8px; }
.quiz-host:empty { display: none; }
.quiz-ox-pick { display: inline-flex; align-items: center; gap: 4px; margin-right: 16px; font-size: 18px; }
.quiz-ox-pick input { width: 18px; height: 18px; accent-color: var(--accent); }

.composer-tools { display: flex; gap: 6px; margin-bottom: 8px; }
.composer-tools button {
  padding: 2px 12px; border: 1px solid var(--fg); border-radius: 7px;
  background: var(--surface); color: var(--fg); font-size: 12px; font-weight: 800; cursor: pointer;
}
.composer-tools button:hover { background: var(--soft); }
.dialog-note { margin-top: 8px; font-size: 12px; color: var(--fg-dim); }
.dialog-label { margin-top: 8px; font-size: 12px; font-weight: 800; }
.quiz-new-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.quiz-new-mark { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--accent); }

.jump-anchor { position: relative; height: 0; }
.jump {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  padding: 6px 18px; border: 0; border-radius: 7px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; cursor: pointer;
}

.composer { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 0 12px; }
.composer .error { margin-bottom: 6px; }
.composer-row { display: flex; align-items: flex-end; gap: 8px; }
.composer .composer-name { flex: 0 0 9em; width: 9em; }
.composer textarea { flex: 1; min-width: 0; min-height: 42px; resize: none; }
.composer input, .composer textarea { border-color: transparent; background: var(--soft); }
.composer .btn-main { padding: 9px 20px; }

/* ---- 消えた部屋・文書 ---- */
.gone { padding-top: 56px; padding-bottom: 56px; }
.gone h1 { font-size: 24px; font-weight: 800; letter-spacing: .08em; }
.gone p { margin: 10px 0 22px; color: var(--fg-dim); }

.doc { max-width: 760px; padding-top: 8px; padding-bottom: 40px; }
.doc h1 { margin-top: 24px; font-size: 26px; font-weight: 800; letter-spacing: .1em; }
.doc h2 { margin-top: 36px; padding-bottom: 6px; border-bottom: 1px solid var(--fg); font-size: 14px; font-weight: 800; letter-spacing: .1em; }
.doc p, .doc ul { margin: 12px 0 0; }
.doc ul { padding-left: 1.4em; }
.doc li { margin-top: 5px; }

.dialog {
  width: min(440px, calc(100vw - 32px)); padding: 22px 22px 20px;
  border: 1px solid var(--fg); border-radius: 7px;
  background: var(--surface); color: var(--fg);
}
.dialog::backdrop { background: rgb(0 0 0 / .45); }
.dialog form { display: grid; gap: 4px; }
.dialog h2 { font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.dialog label { margin-top: 10px; }
.report-target { padding: 6px 10px; border-left: 3px solid var(--line-strong); font-size: 12px; color: var(--fg-dim); overflow-wrap: anywhere; }

/* ---- 狭い画面 ---- */
@media (max-width: 860px) {
  .rooms { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .r-title { font-size: 17px; }
  .r-tile { padding: 14px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top { padding: 16px 16px 10px; }
  .brand { font-size: 23px; }
  .top .filter[type="search"] { flex-basis: 100%; width: 100%; margin-left: 0; }
  .rooms { grid-template-columns: 1fr; gap: 22px; }
  .r-tile { aspect-ratio: auto; min-height: 96px; }
  .foot { padding: 16px 16px 32px; }
  .composer-row { display: grid; grid-template-columns: 1fr auto; align-items: end; }
  .composer .composer-name { grid-column: 1 / -1; width: 12em; padding: 4px 12px; }
  .roombar { gap: 10px; padding: 8px 16px; }
  .roombar-main h1 { font-size: 15px; }
  .roombar .btn-small { padding: 3px 9px; }
  .quiz-grid:not(.quiz-chars) { grid-template-columns: 1fr; }
}
/* 触って使う端末では、入力欄の文字が 16px 未満だと画面が勝手に拡大される */
@media (pointer: coarse) {
  input[type="text"], input[type="search"], input[type="password"], input[type="number"], textarea, select { font-size: 16px; }
}

/* ---- 管理画面 ---- */
.adm { max-width: 1100px; }
.adm h2 { margin-top: 30px; }
.adm-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 10px; }
.adm-row > label { display: grid; gap: 2px; }
.adm-row input, .adm-row select { width: auto; }
.adm-table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: 13px; letter-spacing: .02em; }
.adm-table th, .adm-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.adm-table th { color: var(--fg-dim); font-size: 12px; font-weight: 800; white-space: nowrap; }
.adm-table td.adm-text { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 14em; }
.adm-table td.adm-fixed { white-space: nowrap; font-variant-numeric: tabular-nums; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-scroll { overflow-x: auto; }
.adm-struck { text-decoration: line-through; }

/* 人による操作かの確かめの枠（必要なときだけ中身が入る） */
.human-box { position: fixed; left: 12px; bottom: 96px; z-index: 30; }

/* ==== 見た目（紙ふぶき） ====
   <html data-look="confetti"> で効く。下の部品は、この見た目が使う分だけを後ろの指定で出す */
.hero-cta, .about, .r-ava, .p-ava, .ticker { display: none; }

/* ---- 紙ふぶきと大きな数字（白い角丸の札、青と黄。事業募集サイトを参考） ---- */
[data-look="confetti"] {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --soft: #eef1f6;
  --line: #e3e6ec;
  --line-strong: #c3c8d2;
  --fg: #1b2230;
  --fg-dim: #5b6373;
  --blue: #1f4fd8;
  --sun: #ffd21f;
  --link: #1f4fd8;
  --accent: #1f4fd8;
  --accent-ink: #ffffff;
  --live: #178a4a;
  --mark: #fff1bd;
  --error: #c0271a;
}
@media (prefers-color-scheme: dark) {
  [data-look="confetti"] {
    --bg: #14171d;
    --surface: #1f232b;
    --soft: #2a2f39;
    --line: #333946;
    --line-strong: #6c7484;
    --fg: #eef1f6;
    --fg-dim: #aeb5c2;
    --blue: #6f97ff;
    --link: #8fb0ff;
    --accent: #6f97ff;
    --accent-ink: #0b1630;
    --live: #6fd39a;
    --mark: #4b4120;
    --error: #ff9d8a;
  }
}
[data-look="confetti"] body { letter-spacing: .03em; }
[data-look="confetti"] .side { display: none; }

/* 上：白い面に、輪と点の紙ふぶき。中央に大きなサイト名 */
[data-look="confetti"] .top {
  display: grid; justify-items: center; gap: 0; max-width: none; padding: 78px 20px 96px;
  background-color: var(--surface);
  background-image:
    radial-gradient(circle at 9% 26%, transparent 20px, var(--blue) 21px 30px, transparent 31px),
    radial-gradient(circle at 88% 20%, transparent 26px, var(--sun) 27px 38px, transparent 39px),
    radial-gradient(circle at 80% 78%, transparent 14px, var(--blue) 15px 22px, transparent 23px),
    radial-gradient(circle at 17% 80%, var(--sun) 0 13px, transparent 14px),
    radial-gradient(circle at 32% 14%, var(--blue) 0 7px, transparent 8px),
    radial-gradient(circle at 66% 12%, var(--sun) 0 9px, transparent 10px),
    radial-gradient(circle at 94% 56%, var(--blue) 0 6px, transparent 7px),
    radial-gradient(circle at 4% 58%, var(--sun) 0 8px, transparent 9px);
}
[data-look="confetti"] .brand-sub { order: -1; padding: 5px 16px; border-radius: 999px; background: var(--sun); color: #1b2230; font-size: 13px; }
[data-look="confetti"] .brand { margin: 16px 0 30px; font-size: 68px; font-weight: 900; letter-spacing: .08em; line-height: 1.1; }
[data-look="confetti"] .top .filter[type="search"] { width: min(440px, 100%); margin: 0; padding: 13px 20px; border: 2px solid var(--fg); border-radius: 999px; background: var(--surface); font-size: 15px; }
[data-look="confetti"] .hero-cta {
  display: block; margin-top: 14px; padding: 13px 34px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 800; letter-spacing: .1em; cursor: pointer;
}
[data-look="confetti"] .top:not(:has(.hero-cta)) { display: flex; justify-content: space-between; padding: 14px 24px; background-image: none; border-bottom: 1px solid var(--line); }
[data-look="confetti"] .top:not(:has(.hero-cta)) .brand { margin: 0; font-size: 24px; }

/* 数字の札：上の帯に半分かかるように浮かせる */
[data-look="confetti"] .list-layout { display: flex; flex-direction: column; max-width: 1000px; }
[data-look="confetti"] .about { display: block; order: -1; margin: -46px auto 0; padding: 20px 34px 18px; border-radius: 20px; background: var(--surface); box-shadow: 0 6px 24px rgb(20 30 60 / .08); }
[data-look="confetti"] .about-head, [data-look="confetti"] .about p { display: none; }
[data-look="confetti"] .stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 44px; margin: 0; }
[data-look="confetti"] .stats div { display: flex; align-items: baseline; gap: 12px; }
[data-look="confetti"] .stats dt { font-size: 14px; font-weight: 800; }
[data-look="confetti"] .stats dd { margin: 0; font-size: 14px; font-weight: 800; }
[data-look="confetti"] .stats b { margin-right: 4px; font-family: var(--latin); font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
[data-look="confetti"] .stats div:nth-child(2) b { color: var(--blue); box-shadow: inset 0 -6px 0 var(--sun); }
[data-look="confetti"] #open-create { display: none; }
[data-look="confetti"] .tools { justify-content: center; margin-top: 30px; }

/* ボタンは丸く */
[data-look="confetti"] .btn, [data-look="confetti"] .sorts button, [data-look="confetti"] .composer-tools button, [data-look="confetti"] .back { border-radius: 999px; border: 2px solid var(--fg); }
[data-look="confetti"] .btn-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[data-look="confetti"] .sorts button[aria-pressed="true"] { background: var(--fg); color: var(--surface); }
[data-look="confetti"] input[type="text"], [data-look="confetti"] textarea, [data-look="confetti"] select, [data-look="confetti"] input[type="password"] { border-radius: 12px; }

/* 一覧：白い角丸の札 */
[data-look="confetti"] .list-head { justify-content: center; margin: 34px 0 6px; font-size: 22px; letter-spacing: .08em; }
[data-look="confetti"] .list-rule { text-align: center; margin: 0 0 20px; }
[data-look="confetti"] .rooms { grid-template-columns: repeat(3, 1fr); gap: 18px; }
[data-look="confetti"] .room-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-content: start; height: 100%; padding: 20px 20px 16px; border-radius: 20px; background: var(--surface); transition: transform .15s ease-out; }
[data-look="confetti"] .room-row:hover { transform: translateY(-3px); }
[data-look="confetti"] .r-ava, [data-look="confetti"] .p-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tile-0); font-size: 16px; font-weight: 800; letter-spacing: 0; }
[data-look="confetti"] .t1 { background: var(--tile-1); }
[data-look="confetti"] .t2 { background: var(--tile-2); }
[data-look="confetti"] .t3 { background: var(--tile-3); }
[data-look="confetti"] .t4 { background: var(--tile-4); }
[data-look="confetti"] .t5 { background: var(--tile-5); }
[data-look="confetti"] .r-tile { display: block; aspect-ratio: auto; min-height: 0; padding: 0; border: 0; background: none; transform: none; align-self: center; }
[data-look="confetti"] .room-row:hover .r-tile { transform: none; }
[data-look="confetti"] .r-title { font-size: 16px; -webkit-line-clamp: 2; }
[data-look="confetti"] .tagbar { justify-content: center; margin-top: 14px; }
[data-look="confetti"] .r-tags { grid-column: 1 / -1; margin-top: 12px; }
[data-look="confetti"] .r-meta { grid-column: 1 / -1; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
[data-look="confetti"] .foot { max-width: 1000px; }
[data-look="confetti"] .create { margin: 20px auto 0; border: 0; border-radius: 20px; }

/* 部屋 */
[data-look="confetti"] .roombar { border-bottom: 0; box-shadow: 0 2px 12px rgb(20 30 60 / .06); }
[data-look="confetti"] .posts { display: grid; gap: 10px; padding: 16px 0; }
[data-look="confetti"] .post { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; padding: 14px 18px; border: 0; border-radius: 16px; background: var(--surface); }
[data-look="confetti"] .post > :not(.p-ava) { grid-column: 2; }
[data-look="confetti"] .p-ava { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
[data-look="confetti"] .post.is-del { grid-template-columns: minmax(0, 1fr); background: none; }
[data-look="confetti"] .post.is-del > * { grid-column: 1; }
[data-look="confetti"] .post.is-mine { box-shadow: inset 4px 0 0 var(--blue); }
[data-look="confetti"] .post.is-sys { background: var(--soft); }
[data-look="confetti"] .post.is-same { background: var(--mark); }
[data-look="confetti"] .composer { border-top: 0; box-shadow: 0 -2px 12px rgb(20 30 60 / .06); }
[data-look="confetti"] .composer input, [data-look="confetti"] .composer textarea { border-radius: 14px; }
[data-look="confetti"] .composer .composer-name { border-radius: 999px; }
[data-look="confetti"] .poll-opt, [data-look="confetti"] .quiz-opt, [data-look="confetti"] .poll-row { border-radius: 12px; border-color: var(--line-strong); }
[data-look="confetti"] .quiz { border-top: 4px solid var(--sun); }
[data-look="confetti"] .jump { border-radius: 999px; }
[data-look="confetti"] .dialog { border: 0; border-radius: 20px; }
[data-look="confetti"] .doc h2 { border-bottom: 3px solid var(--sun); }
@media (max-width: 860px) {
  [data-look="confetti"] .rooms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  [data-look="confetti"] .top { padding: 54px 16px 78px; }
  [data-look="confetti"] .brand { font-size: 48px; margin: 14px 0 24px; }
  [data-look="confetti"] .rooms { grid-template-columns: 1fr; }
  [data-look="confetti"] .about { margin-top: -40px; padding: 16px 18px; }
  [data-look="confetti"] .stats { gap: 6px 22px; }
  [data-look="confetti"] .stats b { font-size: 32px; }
  [data-look="confetti"] .post { padding: 12px 14px; }
}
