:root {
  --mint: #c8eee0;
  --mint-d: #4ba889;
  --mint-pale: #eef9f4;
  --ink: #2f3342;
  --pink: #ff7ba5;
  --pink-d: #d95681;
  --yellow: #ffd659;
  --yellow-d: #dda81b;
  --bg: #f5faf8;
  --radius: 18px;
  --shadow: 0 5px 0 #d5e6df;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--bg); line-height: 1.7;
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
}
button, select, input { font-family: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Header */
.site-header { background: var(--mint); padding: 18px 0; box-shadow: 0 4px 0 var(--mint-d); }
.header-inner { display: flex; flex-direction: column; gap: 6px; }
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-area h1 { margin: 0; font-size: 1.9rem; letter-spacing: .04em; }
.badge-pop { display: inline-block; background: #fff; border-radius: 999px; padding: 2px 12px; font-size: .75rem; font-weight: 800; color: var(--mint-d); }
.header-sub { margin: 0; font-size: .88rem; }
.pr-label { display: inline-block; font-size: .7rem; background: rgba(0,0,0,.09); border-radius: 6px; padding: 1px 7px; margin-left: 6px; vertical-align: middle; font-weight: 700; }

/* Illustration slots */
.illust-slot {
  border: 3px dashed var(--mint-d); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #fff, #fff 10px, #effaf5 10px, #effaf5 20px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: .78rem; color: var(--mint-d); font-weight: 700; flex-shrink: 0; overflow: hidden; padding: 8px;
}
.illust-slot code { background: #e1f5ec; padding: 1px 5px; border-radius: 4px; color: #246a52; font-size: .72rem; }
.illust-slot.has-img { border: none; background: transparent; padding: 0; }
/* 本番公開時（public-mode）は、まだ描いていないイラストの点線枠を自動で隠して綺麗に見せる */
body.public-mode .illust-slot:not(.has-img) { display: none !important; }
.illust-slot img { width: 100%; height: 100%; object-fit: contain; }
.mascot-mini { width: 64px; height: 64px; border-radius: 50%; font-size: 1.6rem; }
.chara-guide { width: 190px; height: 190px; }
.chara-thinking { width: 145px; height: 145px; }
.chara-result { width: 190px; height: 190px; }
.type-badge-illust { width: 190px; height: 95px; }
.mascot-gacha { width: 175px; height: 175px; cursor: pointer; }

/* Navigation Tabs */
.tool-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 22px; }
.tab-btn {
  border: 3px solid #fff; background: #fff; border-radius: var(--radius); padding: 14px 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); color: var(--ink); transition: .15s; text-align: left;
}
.tab-btn:hover { transform: translateY(-2px); }
.tab-btn.active { border-color: var(--mint-d); background: var(--mint-pale); box-shadow: 0 5px 0 var(--mint-d); }
.tab-btn.owner-only-tab { border-color: #ffe08a; background: #fffdf5; }
.tab-btn.owner-only-tab.active { border-color: #d99b00; background: #fff6d6; box-shadow: 0 5px 0 #d99b00; }
.tab-badge { font-size: .73rem; color: #6c7874; font-weight: 700; }
.tab-title { font-weight: 900; font-size: 1.05rem; }

.main-content { padding: 24px 20px 60px; }
.tab-panel { display: none; animation: fade .25s; }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; } }

/* Panel Header */
.panel-header {
  display: flex; gap: 24px; align-items: center; background: #fff; border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.intro-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.mini-pill { background: var(--mint-pale); color: var(--mint-d); font-size: .74rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.panel-intro h2 { margin: 0 0 8px; font-size: 1.32rem; line-height: 1.4; }
.panel-intro p { margin: 0; font-size: .93rem; color: #4e5564; }

/* Diagnosis Quiz */
.diagnosis-box, .diagnosis-result, .gacha-stage, .extra-tool-card, .spec-header-box {
  background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}
.quiz-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.quiz-step-label { font-size: .82rem; font-weight: 900; color: var(--mint-d); letter-spacing: .06em; }
.btn-back-q { background: none; border: 2px solid #d5e6df; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; color: #556; }
.progress-bar { height: 11px; background: #eaf2ef; border-radius: 999px; overflow: hidden; margin-bottom: 20px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--mint-d), var(--pink)); transition: width .3s; }

.quiz-body-layout { display: grid; grid-template-columns: 1fr 170px; gap: 22px; align-items: center; }
.q-title { font-size: 1.18rem; font-weight: 900; margin: 0 0 6px; }
.q-sub { font-size: .85rem; color: #667; margin: 0 0 14px; }
.q-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 11px; }
.q-opt {
  border: 3px solid #e1efe9; background: #fafdfc; border-radius: 14px; padding: 14px 16px;
  cursor: pointer; text-align: left; color: var(--ink); transition: .15s; display: flex; flex-direction: column; gap: 3px;
}
.q-opt strong { font-size: .98rem; }
.q-opt small { font-size: .78rem; color: #6a7382; }
.q-opt:hover { border-color: var(--mint-d); background: var(--mint-pale); transform: translateY(-2px); }

.quiz-mascot-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mascot-speech {
  background: var(--mint-pale); border: 2px solid var(--mint-d); border-radius: 12px;
  padding: 6px 10px; font-size: .78rem; font-weight: 700; text-align: center; margin: 0; width: 100%;
}

/* Diagnosis Result */
.result-header { display: flex; gap: 24px; align-items: flex-start; margin-bottom: 26px; }
.result-illust-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.result-tags-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.result-tag { background: var(--pink); color: #fff; border-radius: 999px; padding: 3px 14px; font-size: .82rem; font-weight: 800; }
.result-subtag { background: var(--mint-pale); color: var(--mint-d); border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 800; }
.result-summary h3 { margin: 8px 0; font-size: 1.42rem; }
.result-summary p { margin: 0 0 10px; font-size: .95rem; }
.advice-callout {
  background: #fff9e6; border-left: 5px solid var(--yellow-d); border-radius: 10px;
  padding: 10px 14px; font-size: .86rem; margin-bottom: 12px;
}
.share-row, .gacha-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-share-x { background: #14171a; color: #fff; border: none; border-radius: 999px; padding: 10px 20px; font-weight: 800; cursor: pointer; font-size: .9rem; }
.btn-retry, .btn-copy-prompt { background: #fff; border: 2px solid #ccd8d3; border-radius: 999px; padding: 9px 18px; font-weight: 700; cursor: pointer; font-size: .88rem; }

/* Affiliate Cards */
.showcase-title { font-size: 1.15rem; margin: 0 0 14px; }
.aff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.aff-card {
  border: 3px solid #e6f0ec; border-radius: 16px; padding: 18px; background: #fff;
  display: flex; flex-direction: column; gap: 6px; position: relative;
}
.aff-card.primary-pick { border-color: var(--mint-d); background: #fbfefd; }
.aff-top-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.aff-role { font-size: .75rem; font-weight: 900; color: var(--mint-d); }
.aff-badge { background: #ffeef4; color: var(--pink-d); font-size: .7rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.aff-card strong { font-size: 1.04rem; line-height: 1.4; }
.aff-price { font-size: .8rem; font-weight: 800; color: #556; }
.aff-card p { margin: 2px 0 8px; font-size: .85rem; color: #555; flex: 1; }
.aff-btn-group { display: flex; flex-direction: column; gap: 6px; }
.aff-btn {
  display: block; text-align: center; background: var(--yellow); color: var(--ink); text-decoration: none;
  font-weight: 900; border-radius: 999px; padding: 10px 12px; font-size: .88rem; box-shadow: 0 3px 0 var(--yellow-d); transition: .12s;
}
.aff-btn:hover { transform: translateY(-1px); }
.aff-btn-sub {
  display: block; text-align: center; background: #fff3f6; color: var(--pink-d); border: 2px solid #ffd0df;
  text-decoration: none; font-weight: 800; border-radius: 999px; padding: 6px 10px; font-size: .8rem;
}

.comparison-subbox { margin-top: 22px; background: #f7fbf9; border-radius: 16px; padding: 18px; border: 2px solid #e1efe9; }
.comparison-subbox h4 { margin: 0 0 12px; font-size: .98rem; }
.comp-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.comp-mini-card { background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid #dfece6; display: flex; flex-direction: column; gap: 4px; font-size: .84rem; }
.comp-mini-card a { color: var(--mint-d); font-weight: 800; text-decoration: none; margin-top: 4px; }

/* Extra Mini Tools (True-to-Scale Screen Size Simulator & Apple Pencil Checker) */
.extra-tools-stack { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.extra-tool-card h3 { margin: 4px 0 6px; font-size: 1.18rem; }
.extra-sub { font-size: .86rem; color: #58606e; margin: 0 0 14px; }

.size-sim-btns { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.size-btn {
  border: 2px solid #d7e8e1; background: #fff; border-radius: 999px; padding: 7px 13px;
  font-size: .81rem; font-weight: 800; cursor: pointer; color: var(--ink); transition: .12s;
}
.size-btn:hover { border-color: var(--mint-d); background: var(--mint-pale); }
.size-btn.active { background: var(--mint-d); color: #fff; border-color: var(--mint-d); box-shadow: 0 3px 0 #358268; }

.sim-toggles-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  background: #f4faf7; border: 2px solid #dfeee8; border-radius: 12px; padding: 9px 14px; margin-bottom: 14px; font-size: .82rem; font-weight: 700;
}
.toggle-bar-label { color: var(--mint-d); font-weight: 900; }
.sim-chk { cursor: pointer; display: flex; align-items: center; gap: 4px; user-select: none; }

/* 横70cm × 奥行き42cm（比率 5:3）の実寸比率デスク */
.size-sim-stage-wrap { width: 100%; overflow-x: auto; }
.sim-desk-surface {
  position: relative;
  width: 100%;
  min-width: 640px;
  aspect-ratio: 70 / 42;
  background-color: #e6dfd5;
  /* 5cm（70cm中5cm＝7.1428%、42cm中5cm＝11.9047%）ごとの方眼メモリ */
  background-image:
    linear-gradient(to right, rgba(90, 75, 60, .14) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(90, 75, 60, .14) 1px, transparent 1px);
  background-size: 7.142857% 11.90476%;
  border: 4px solid #c8beaf;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8%;
  padding: 28px 16px 14px;
  overflow: hidden;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.06);
}
.desk-scale-label {
  position: absolute; top: 7px; left: 12px;
  background: rgba(255,255,255,.86); border-radius: 999px; padding: 2px 10px;
  font-size: .73rem; font-weight: 800; color: #5a4e40; z-index: 5;
}

/* メイン機材（JSでcmから正確な%幅・高さを指定） */
.sim-device-Area {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: width .28s ease, height .28s ease;
  flex-shrink: 0;
}
.sim-device-body {
  width: 100%; height: 100%;
  background: #232730;
  border: 3px solid #12151a;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: all .28s ease;
}
.sim-device-body.is-ipad {
  background: #1d1f24;
  border-color: #686f7d;
  border-radius: 14px;
}
.sim-device-body.is-pentab {
  background: #2b2f38;
  border-color: #16181d;
}

/* 描画エリア（画面または板タブのアクティブ領域） */
.sim-active-screen {
  background: #ffffff;
  border: 2px solid #111;
  border-radius: 4px;
  display: flex;
  overflow: hidden;
  position: relative;
  transition: width .28s ease, height .28s ease;
}
.sim-device-body.is-pentab .sim-active-screen {
  background: #363b46;
  border: 2px dashed rgba(255,255,255,.45);
}
.sim-ui-left, .sim-ui-right {
  background: #3b4252; color: #d8dee9;
  font-size: .64rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; text-align: center;
  flex-shrink: 0; user-select: none;
}
.sim-ui-left { width: 28px; border-right: 1px solid #2b303c; }
.sim-ui-right { width: 52px; border-left: 1px solid #2b303c; }
.sim-canvas-center {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px; text-align: center; position: relative;
}
.canvas-center-tag {
  font-size: .74rem; font-weight: 900; color: var(--mint-d);
  background: rgba(238, 249, 244, .92); padding: 2px 8px; border-radius: 6px;
}
.sim-device-body.is-pentab .canvas-center-tag {
  background: rgba(0,0,0,.45); color: #fff;
}

/* A4コピー用紙オーバーレイ（29.7cm × 21.0cm） */
.ref-a4 {
  position: absolute;
  border: 3px dashed #1f9d6e;
  background: rgba(95, 191, 160, .13);
  border-radius: 4px;
  pointer-events: none;
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 4px 6px; z-index: 4;
  transition: all .25s ease;
}
.ref-a4 span {
  background: #1f9d6e; color: #fff; font-size: .66rem; font-weight: 800;
  padding: 1px 6px; border-radius: 4px;
}

/* 大人の手＋ペン（実寸約17cm × 14.5cm 相当） */
.ref-hand {
  position: absolute;
  right: 4%; bottom: -6%;
  z-index: 6;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,.25));
}
.hand-svg { width: 100%; height: auto; display: block; }
.hand-label {
  background: rgba(47, 51, 66, .9); color: #fff; font-size: .65rem; font-weight: 800;
  padding: 1px 7px; border-radius: 999px; margin-top: -6px; white-space: nowrap;
}

/* スマホ比較（6.1インチ：横7.1cm × 縦14.7cm → 70cm×42cm机に対する正確な比率） */
.ref-phone {
  width: 10.14%; /* 7.1 / 70 */
  height: 35.0%; /* 14.7 / 42 */
  background: #181c24;
  border: 3px solid #495163;
  border-radius: 12px;
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 4px; flex-shrink: 0;
  box-shadow: 0 5px 12px rgba(0,0,0,.2);
  position: relative;
}
.phone-notch { width: 36%; height: 4px; background: #495163; border-radius: 99px; position: absolute; top: 5px; }
.ref-phone span { font-size: .66rem; font-weight: 800; line-height: 1.25; }
.ref-phone small { font-size: .56rem; color: #cbd2e1; }

/* 14インチノートPC比較（横31.2cm × 縦22.1cm → 70cm×42cm机に対する正確な比率） */
.ref-laptop {
  width: 44.57%; /* 31.2 / 70 */
  height: 52.6%; /* 22.1 / 42 */
  background: #ced4de;
  border: 3px solid #6b7382;
  border-radius: 10px;
  padding: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
}
.laptop-screen {
  width: 100%; height: 100%; background: #2c3340; color: #fff; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 800; text-align: center;
}

/* サイズ詳細フッター */
.sim-info-footer {
  margin-top: 14px; background: var(--mint-pale); border: 2px solid var(--mint-d);
  border-radius: 14px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.sim-info-text { flex: 1; min-width: 240px; }
.sim-info-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.sim-info-badges strong { font-size: 1.08rem; }
.sim-spec-nums { margin: 0 0 4px; font-size: .82rem; font-weight: 800; color: #246a52; }
.sim-spec-desc { margin: 0; font-size: .85rem; color: #445; }
.sim-info-cta { flex-shrink: 0; }

.checker-select { width: 100%; padding: 10px 12px; border: 2px solid var(--mint-d); border-radius: 12px; font-size: .92rem; font-weight: 700; margin-bottom: 12px; background: #fff; }
.checker-result-box { background: var(--mint-pale); border-radius: 14px; padding: 14px; font-size: .86rem; display: flex; flex-direction: column; gap: 6px; }
.checker-ok { color: #1f7a58; font-weight: 900; font-size: .95rem; }
.checker-warn { color: #c93b5b; font-weight: 800; font-size: .82rem; background: #ffeef2; padding: 6px 10px; border-radius: 8px; }
.checker-link { align-self: flex-start; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 800; padding: 6px 14px; border-radius: 999px; font-size: .82rem; margin-top: 4px; }

/* Gacha Tool */
.gacha-controls-top { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.gacha-mode-select { display: flex; flex-wrap: wrap; gap: 8px; }
.mode-chip {
  background: #f2f7f5; border: 2px solid transparent; border-radius: 999px;
  padding: 5px 13px; font-size: .85rem; font-weight: 700; cursor: pointer; transition: .12s;
}
.mode-chip.active { background: var(--mint-pale); border-color: var(--mint-d); color: #246a52; }
.gacha-sub-options { display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; font-weight: 700; align-items: center; }
.gacha-sub-options select { padding: 5px 10px; border-radius: 8px; border: 2px solid #d5e6df; font-weight: 700; }

.gacha-spin-bar { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-gacha-spin {
  background: linear-gradient(135deg, var(--pink), #ffa25b); color: #fff; border: none; border-radius: 999px;
  padding: 15px 36px; font-size: 1.12rem; font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 var(--pink-d); transition: .1s;
}
.btn-gacha-spin:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--pink-d); }
.btn-unlock-all { background: #f2f7f5; border: 2px solid #d5e6df; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: .84rem; cursor: pointer; }

.lock-hint { font-size: .8rem; color: #6a7470; margin: 16px 0 10px; text-align: center; }
.gacha-themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.theme-item {
  background: #f6fbf9; border: 2px solid #e2f0ea; border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px; position: relative; text-align: left; transition: .15s;
}
.theme-item.locked { background: #fff9e6; border-color: var(--yellow-d); }
.theme-item-top { display: flex; justify-content: space-between; align-items: center; }
.theme-label { font-size: .74rem; color: #6c7874; font-weight: 700; }
.btn-lock-item {
  background: #fff; border: 1px solid #d5e6df; border-radius: 999px; padding: 2px 8px;
  font-size: .72rem; cursor: pointer; font-weight: 700;
}
.theme-item.locked .btn-lock-item { background: var(--yellow); border-color: var(--yellow-d); }
.theme-item strong { font-size: 1.04rem; display: block; min-height: 1.7em; }

/* スロット回転中（まだ止まっていない枠） */
.theme-item.slot-rolling {
  background: #f0f6f4;
  border-color: #c5ddd4;
}
.theme-item.slot-rolling strong {
  color: #7c968d;
  filter: blur(0.6px);
  animation: slotScroll .09s infinite linear;
}
@keyframes slotScroll {
  0%   { transform: translateY(-4px); opacity: .45; }
  50%  { transform: translateY(0px);  opacity: .85; }
  100% { transform: translateY(4px);  opacity: .45; }
}

/* 順番に「でん！」と止まった瞬間のポップ演出（ゆっくり・重みのあるバウンス） */
.theme-item.slot-landed {
  animation: dendenPop .55s cubic-bezier(.18, 1.45, .32, 1) forwards;
  border-color: var(--mint-d);
  background: #ffffff;
  box-shadow: 0 5px 0 #bfe3d5, 0 0 18px rgba(75, 168, 137, .35);
}
@keyframes dendenPop {
  0%   { transform: scale(.82) translateY(10px); background: #ffe885; border-color: var(--pink); }
  45%  { transform: scale(1.11) translateY(-4px); background: #fff9d2; border-color: var(--pink); }
  75%  { transform: scale(.98) translateY(1px); }
  100% { transform: scale(1) translateY(0); background: #ffffff; border-color: var(--mint-d); }
}

/* パレットも順番にポンポン出る演出 */
.swatch.swatch-hidden {
  opacity: 0;
  transform: scale(.65) translateY(12px);
}
.swatch.swatch-pop {
  animation: swatchPopIn .45s cubic-bezier(.22, 1.35, .36, 1) forwards;
}
@keyframes swatchPopIn {
  0%   { opacity: 0; transform: scale(.7) translateY(10px); }
  70%  { opacity: 1; transform: scale(1.06) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Palette & Timer */
.palette-box { margin-top: 20px; position: relative; text-align: left; background: #fafdfc; border: 2px solid #e6f2ed; border-radius: 14px; padding: 14px; }
.palette-header-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.palette-title { font-size: .85rem; font-weight: 800; }
.palette-actions { display: flex; gap: 8px; }
.btn-mini-action { background: #fff; border: 2px solid #d5e6df; border-radius: 999px; padding: 4px 12px; font-size: .76rem; font-weight: 700; cursor: pointer; }
.btn-mini-action[data-locked="true"] { background: #fff9e6; border-color: var(--yellow-d); }
.palette-swatches { display: flex; gap: 8px; margin-top: 10px; }
.swatch {
  flex: 1; height: 76px; border-radius: 12px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; font-size: .74rem; font-weight: 800; padding-bottom: 6px;
  border: 2px solid rgba(0,0,0,.07); transition: .15s;
}
.swatch small { font-size: .65rem; opacity: .85; }
.swatch:hover { transform: translateY(-3px); }
.copy-toast { position: absolute; top: 12px; right: 14px; background: var(--ink); color: #fff; border-radius: 8px; padding: 3px 12px; font-size: .8rem; font-weight: 700; }

.gacha-bottom-toolbar {
  margin-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 14px; border-top: 2px dashed #e3efe9;
}
.onedraw-timer-box {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--mint-pale); border-radius: 999px; padding: 6px 14px; font-size: .84rem; font-weight: 800;
}
.onedraw-timer-box select { border-radius: 8px; border: 1px solid var(--mint-d); padding: 3px 6px; font-weight: 700; }
.timer-display { font-family: monospace; font-size: 1.2rem; font-weight: 900; color: #1f5e48; min-width: 58px; text-align: center; }
.btn-timer-ctrl { background: var(--mint-d); color: #fff; border: none; border-radius: 999px; padding: 5px 12px; font-weight: 800; cursor: pointer; }
.btn-timer-reset { background: #fff; border: 1px solid #ccc; border-radius: 999px; padding: 4px 10px; font-size: .76rem; cursor: pointer; }

.wiggle { animation: wiggle .5s; }
@keyframes wiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.05); } 75% { transform: rotate(8deg) scale(1.05); } }

/* Sub Monetize Bar */
.sub-monetize-bar { margin-top: 22px; background: #fffbea; border: 3px solid #ffe699; border-radius: var(--radius); padding: 20px; }
.sub-monetize-bar h4 { margin: 0 0 12px; font-size: 1.02rem; }
.mini-aff-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.mini-aff-card {
  background: #fff; border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 5px; box-shadow: 0 3px 0 #eadca8; transition: .15s;
}
.mini-aff-card:hover { transform: translateY(-2px); }
.aff-tag { font-size: .72rem; font-weight: 800; color: var(--pink-d); }
.aff-cta { font-size: .8rem; color: var(--mint-d); font-weight: 800; margin-top: auto; }

/* Owner Illustration Specification Tab */
.spec-header-box { margin-bottom: 20px; border: 3px solid #ffe08a; background: #fffdf5; }
.spec-header-box h2 { margin: 0 0 8px; }
.spec-summary-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.spec-stat-pill { background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: .84rem; font-weight: 800; }
.spec-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; }
.spec-card {
  background: #fff; border: 3px solid #e2ece8; border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
}
.spec-card.is-ready { border-color: var(--mint-d); background: #f7fdfb; }
.spec-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.spec-priority { font-size: .74rem; font-weight: 900; padding: 2px 10px; border-radius: 999px; background: #ffeef4; color: var(--pink-d); }
.spec-priority.p1 { background: #ff7ba5; color: #fff; }
.spec-status { font-size: .78rem; font-weight: 800; color: #888; }
.spec-card.is-ready .spec-status { color: #1b855e; }
.spec-filename { font-family: monospace; background: #eef5f2; padding: 4px 8px; border-radius: 6px; font-weight: 800; font-size: .88rem; color: #1d5742; }
.spec-meta { font-size: .8rem; color: #556; font-weight: 700; }
.spec-detail-list { margin: 4px 0 0; padding-left: 18px; font-size: .85rem; color: #3f4654; }
.spec-detail-list li { margin-bottom: 4px; }

.site-footer { text-align: center; font-size: .76rem; color: #78827e; padding: 24px 0 44px; }

@media (max-width: 820px) {
  .panel-header, .result-header, .quiz-body-layout, .extra-tools-grid { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
  .palette-swatches { flex-wrap: wrap; }
  .swatch { min-width: 30%; }
}
