.strategy-screen {
  --strategy-violet: #aa83ff;
  --strategy-gold: #f4c96b;
}

.strategy-step {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid rgba(170, 131, 255, 0.34);
  border-radius: 999px;
  color: #d9c9ff;
  background: rgba(170, 131, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.strategy-profile-layout,
.strategy-build-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
}

.strategy-form,
.strategy-deck-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(14, 17, 26, 0.78);
}

.strategy-form {
  display: grid;
  gap: 24px;
}

.strategy-prepared-summary {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(244, 201, 107, 0.28);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(244, 201, 107, 0.08), rgba(170, 131, 255, 0.06));
}

.strategy-prepared-summary.is-ready {
  border-color: rgba(77, 232, 223, 0.42);
  box-shadow: inset 0 0 0 1px rgba(77, 232, 223, 0.05);
}

.strategy-prepared-summary-head,
.strategy-prepared-counts,
.strategy-prepared-actions,
.strategy-deck-persistence > div,
.strategy-prepared-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.strategy-prepared-summary-head {
  justify-content: space-between;
}

.strategy-prepared-summary h2 {
  margin: 5px 0 0;
  font-size: 1.08rem;
}

.strategy-prepared-summary > p,
.strategy-deck-persistence p,
.strategy-deck-lock-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.7;
}

.strategy-prepared-badge {
  padding: 8px 11px;
  border: 1px solid rgba(244, 201, 107, 0.36);
  border-radius: 999px;
  color: var(--strategy-gold);
  background: rgba(244, 201, 107, 0.08);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.strategy-prepared-summary.is-ready .strategy-prepared-badge {
  border-color: rgba(77, 232, 223, 0.38);
  color: #7ff4ed;
  background: rgba(77, 232, 223, 0.08);
}

.strategy-prepared-counts span {
  min-width: 124px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #9aa4b9;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.strategy-prepared-counts b {
  margin-left: 6px;
  color: #f2f5ff;
}

.strategy-prepared-actions {
  align-items: stretch;
}

.strategy-deck-persistence {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 17px;
  border: 1px solid rgba(77, 232, 223, 0.22);
  border-radius: 14px;
  background: rgba(77, 232, 223, 0.045);
}

.strategy-deck-persistence > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #d9faf7;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.5;
}

.strategy-deck-persistence .strategy-deck-storage-status {
  color: #b8c8d8;
}

.strategy-deck-persistence input {
  margin-top: 3px;
  accent-color: #4de8df;
}

.strategy-prepared-guide p {
  grid-template-columns: 26px minmax(0, 1fr);
}

.strategy-prepared-footer {
  justify-content: flex-end;
}

.strategy-normal-route {
  width: 100%;
  margin-top: 10px;
}

.strategy-deck-lock-note {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(244, 201, 107, 0.2);
  border-radius: 10px;
  color: #d6c595;
  background: rgba(244, 201, 107, 0.05);
}

.strategy-clue-fieldset,
.strategy-reaction-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.strategy-clue-fieldset legend,
.strategy-reaction-fieldset legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.strategy-clue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
}

.strategy-clue-row > input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.weakness-selector {
  grid-row: 1;
  min-width: 70px;
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #707a90;
  background: #0c0f17;
  text-align: center;
  cursor: pointer;
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.strategy-clue-row > input[type="radio"]:checked + .weakness-selector {
  border-color: rgba(255, 138, 91, 0.65);
  color: #ffad88;
  background: rgba(255, 138, 91, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.06);
}

.strategy-clue-input {
  grid-column: 2;
}

.strategy-handoff .handoff-card,
.strategy-round-result,
.strategy-gameover {
  border: 1px solid rgba(170, 131, 255, 0.23);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 131, 255, 0.12), transparent 40%),
    rgba(14, 17, 26, 0.92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.strategy-handoff .handoff-icon {
  color: #cbb3ff;
  border-color: rgba(170, 131, 255, 0.34);
  background: rgba(170, 131, 255, 0.09);
}

.strategy-withdraw-card .handoff-icon {
  color: #ff8a74;
  border-color: rgba(255, 138, 91, 0.35);
  background: rgba(255, 138, 91, 0.08);
}

.strategy-anonymous-head {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 880px;
  margin: 28px auto 38px;
}

.strategy-anonymous-head h1,
.strategy-versus-title h1 {
  margin: 6px 0 10px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.strategy-anonymous-head p,
.strategy-versus-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.strategy-anonymous-icon {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 131, 255, 0.4);
  border-radius: 32px;
  color: #d7c4ff;
  background: linear-gradient(145deg, rgba(170, 131, 255, 0.16), rgba(77, 232, 223, 0.05));
  font-family: var(--display);
  font-size: 3.3rem;
  box-shadow: 0 20px 60px rgba(105, 66, 190, 0.16);
}

.strategy-clue-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1040px;
  margin: 0 auto;
}

.strategy-clue-cards article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid rgba(170, 131, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(170, 131, 255, 0.075), rgba(255, 255, 255, 0.025));
}

.strategy-clue-cards small,
.strategy-scout-note > span {
  color: #bda2ff;
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.strategy-clue-cards p {
  margin: 24px 0 0;
  font-size: clamp(1rem, 2.3vw, 1.35rem);
  font-weight: 800;
  line-height: 1.65;
}

.strategy-intro-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.strategy-rule-note {
  max-width: 760px;
  margin: 16px auto 0;
  color: #737d91;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.6;
}

.strategy-scout-note {
  align-self: start;
  position: sticky;
  top: 90px;
  padding: 22px;
  border: 1px solid rgba(170, 131, 255, 0.28);
  border-radius: 18px;
  background: rgba(14, 17, 26, 0.86);
}

.strategy-scout-note h2 {
  margin: 6px 0 18px;
  font-size: 1.15rem;
}

.strategy-scout-note p {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: #d7dceb;
  font-size: 0.83rem;
  line-height: 1.6;
}

.strategy-scout-note p b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(170, 131, 255, 0.32);
  border-radius: 7px;
  color: #cbb3ff;
  font-size: 0.7rem;
}

.strategy-scout-note small {
  display: block;
  margin-top: 14px;
  color: #ffad88;
}

.strategy-deck-zone + .strategy-deck-zone {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.strategy-deck-zone .deck-toolbar {
  margin-top: 0;
}

.strategy-deck-zone .deck-toolbar p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.strategy-deck-zone.reserve .eyebrow,
.strategy-deck-zone.reserve .deck-counter strong {
  color: var(--strategy-gold);
}

.strategy-deck-grid,
.strategy-pick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.strategy-deck-grid .deck-slot:not(.empty) {
  aspect-ratio: auto;
  display: grid;
  grid-template-rows: auto auto auto;
  overflow: visible;
}

.strategy-deck-grid .deck-slot > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 14px 14px 0 0;
  object-fit: cover;
}

.strategy-deck-grid .deck-label {
  position: static;
  margin: -42px 8px 7px;
  z-index: 1;
}

.deck-audio {
  display: grid;
  gap: 7px;
  padding: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 9, 15, 0.96);
}

.deck-audio-add {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  overflow: hidden;
  border: 1px dashed rgba(170, 131, 255, 0.5);
  border-radius: 9px;
  cursor: pointer;
  color: #cfc2f3;
  font-size: 0.66rem;
  font-weight: 900;
}

.deck-audio-add input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.strategy-deck-zone .is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

.deck-audio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-width: 0;
}

.deck-audio-head span {
  overflow: hidden;
  color: var(--strategy-gold);
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-audio-head button {
  flex: 0 0 auto;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: #ff8b9e;
  cursor: pointer;
  font-size: 0.55rem;
}

.deck-audio audio {
  width: 100%;
  height: 30px;
}

.deck-audio > label:not(.deck-audio-add) {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 6px;
  color: var(--muted);
  font-size: 0.55rem;
}

.deck-audio input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--strategy-violet);
}

.strategy-identity-screen {
  min-height: 690px;
  display: grid;
  align-content: center;
}

.strategy-versus-title {
  margin-bottom: 30px;
  text-align: center;
}

.strategy-identity-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto 30px;
}

.strategy-identity-card {
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(255, 74, 95, 0.32);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 74, 95, 0.09), rgba(255, 255, 255, 0.025));
}

.strategy-identity-card.player-2 {
  border-color: rgba(77, 232, 223, 0.32);
  background: linear-gradient(145deg, rgba(77, 232, 223, 0.08), rgba(255, 255, 255, 0.025));
  text-align: right;
}

.strategy-identity-card small {
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.strategy-identity-card h2 {
  overflow: hidden;
  margin: 10px 0 24px;
  font-size: clamp(1.7rem, 4vw, 3rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-identity-card div {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-right: 18px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.strategy-identity-card div strong {
  color: var(--text);
  font-size: 1.35rem;
}

.strategy-vs-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(-6deg);
  border: 1px solid rgba(244, 201, 107, 0.5);
  border-radius: 50%;
  color: var(--strategy-gold);
  background: #10131d;
  font-family: var(--display);
  font-size: 1.4rem;
  box-shadow: 0 10px 38px rgba(0, 0, 0, 0.4);
}

.strategy-center-button {
  display: block;
  width: min(360px, 100%);
  margin: 24px auto 0;
}

.strategy-hud {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 10, 18, 0.72);
}

.strategy-compact-head {
  margin-top: 34px;
}

.strategy-compact-head h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
}

.strategy-pick-card {
  padding: 0;
  border: 1px solid var(--line);
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.strategy-pick-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  border-color: rgba(170, 131, 255, 0.65);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.strategy-pick-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
}

.strategy-pick-card span {
  display: block;
  padding: 12px;
  color: #cfd5e4;
  background: #0c0f17;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 900;
}

.strategy-reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}

.strategy-reveal-grid.single {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}

.strategy-battle-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #06080d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24);
}

.strategy-battle-image > .strategy-image-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(14, 17, 26, 0.96);
}

.strategy-battle-image > .strategy-image-head span {
  color: var(--strategy-violet);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.13em;
}

.strategy-battle-image > .strategy-image-head b {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-battle-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: #05070b;
}

.strategy-image-media {
  position: relative;
  overflow: hidden;
}

.strategy-battle-image.is-concealed .strategy-image-media img {
  filter: blur(26px) brightness(.22) saturate(.4);
  transform: scale(1.08);
}

.strategy-media-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #c7bddf;
  background: rgba(7, 8, 14, 0.36);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
}

.strategy-media-lock b {
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0;
}

.strategy-card-audio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--strategy-gold);
  background: rgba(13, 15, 24, 0.98);
  font-size: 0.64rem;
  font-weight: 900;
}

.strategy-card-audio button {
  padding: 5px 8px;
  border: 1px solid rgba(244, 201, 107, 0.3);
  border-radius: 999px;
  color: #f6dda5;
  background: rgba(244, 201, 107, 0.07);
  cursor: pointer;
  font: inherit;
}

.strategy-card-audio.is-empty {
  justify-content: center;
  color: var(--muted);
}

.strategy-open-media {
  box-shadow: 0 0 0 3px rgba(170, 131, 255, 0.08), 0 14px 34px rgba(74, 44, 126, 0.28);
}

.strategy-rating-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 20px;
  max-width: 1120px;
  margin: 34px auto 0;
}

.strategy-score-panel {
  align-content: start;
}

.strategy-reaction-fieldset {
  margin-top: 22px;
}

.strategy-reaction-fieldset label {
  position: relative;
  display: block;
}

.strategy-reaction-fieldset input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.strategy-reaction-fieldset label span {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-reaction-fieldset label small {
  color: var(--muted);
}

.strategy-reaction-fieldset input:checked + span {
  border-color: rgba(170, 131, 255, 0.6);
  background: rgba(170, 131, 255, 0.1);
}

.strategy-reaction-fieldset .reaction-low input:checked + span {
  border-color: rgba(255, 138, 91, 0.6);
  background: rgba(255, 138, 91, 0.09);
}

.strategy-reaction-fieldset .reaction-high input:checked + span {
  border-color: rgba(244, 201, 107, 0.65);
  background: rgba(244, 201, 107, 0.09);
}

.strategy-reaction-fieldset input:disabled + span {
  cursor: not-allowed;
  opacity: 0.38;
}

.strategy-action-reveal blockquote {
  margin: 12px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(244, 201, 107, 0.35);
  border-radius: 14px;
  color: #f6dda1;
  background: rgba(244, 201, 107, 0.07);
  text-align: center;
  font-weight: 850;
}

.strategy-round-result {
  max-width: 980px;
  margin: 32px auto 0;
  padding: clamp(26px, 6vw, 58px);
  text-align: center;
}

.strategy-round-result > h1,
.strategy-gameover > h1 {
  margin: 8px 0 28px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  letter-spacing: -0.06em;
}

.strategy-power-versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.strategy-power-versus article {
  display: grid;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-power-versus article.winner {
  border-color: rgba(244, 201, 107, 0.5);
  background: rgba(244, 201, 107, 0.07);
}

.strategy-power-versus article small {
  color: var(--muted);
}

.strategy-power-versus article strong {
  margin: 5px 0 0;
  color: var(--strategy-gold);
  font-family: var(--display);
  font-size: 4rem;
  line-height: 1;
}

.strategy-power-versus article span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.strategy-power-versus article b {
  margin-top: 12px;
  color: #ff8a74;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.strategy-vs-small {
  color: #747e92;
  font-family: var(--display);
  font-weight: 900;
}

.strategy-round-breakdown {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.strategy-round-breakdown p,
.strategy-history p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
}

.strategy-round-breakdown p b,
.strategy-history p b {
  color: var(--text);
}

.strategy-result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.strategy-result-actions .button {
  min-width: min(300px, 100%);
}

.strategy-result-actions small {
  flex-basis: 100%;
  color: #f39aab;
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
}

.strategy-weakness-head {
  max-width: 900px;
  margin: 28px auto 24px;
  text-align: center;
}

.strategy-weakness-head h1 {
  margin: 8px 0 10px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  letter-spacing: -0.06em;
}

.strategy-weakness-head p,
.strategy-weakness-break-banner p {
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.strategy-weakness-guess {
  display: grid;
  gap: 24px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(170, 131, 255, 0.3);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(170, 131, 255, 0.12), transparent 44%), rgba(10, 13, 22, 0.88);
}

.strategy-weakness-guess fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.strategy-weakness-guess legend {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.strategy-guess-card {
  position: relative;
  cursor: pointer;
}

.strategy-guess-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.strategy-guess-card span {
  display: grid;
  align-content: center;
  gap: 9px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: 160ms ease;
}

.strategy-guess-card small {
  color: #8d97aa;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.strategy-guess-card strong {
  color: var(--text);
  line-height: 1.55;
}

.strategy-guess-card input:checked + span {
  border-color: rgba(255, 138, 91, 0.72);
  background: rgba(255, 138, 91, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.07), 0 18px 46px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.strategy-guess-card input:focus-visible + span {
  outline: 3px solid rgba(94, 219, 255, 0.82);
  outline-offset: 3px;
}

.strategy-weakness-guess > .button {
  justify-self: center;
}

.strategy-weakness-choice {
  display: grid;
  gap: 22px;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(94, 219, 255, 0.3);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(94, 219, 255, 0.11), transparent 48%), rgba(10, 13, 22, 0.9);
}

.strategy-weakness-choice fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.strategy-weakness-choice legend {
  width: 100%;
  margin-bottom: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.strategy-choice-readiness {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(94, 219, 255, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(94, 219, 255, 0.09), rgba(255, 79, 109, 0.06));
}

.strategy-choice-readiness > div {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 10, 18, 0.72);
  text-align: center;
}

.strategy-choice-readiness small {
  color: #91a9ba;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.strategy-choice-readiness strong {
  color: #f7fbff;
  font-size: clamp(1.65rem, 4vw, 2.2rem);
  line-height: 1;
}

.strategy-choice-readiness strong span {
  margin-left: 5px;
  color: #9af4ed;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

.strategy-choice-readiness em {
  color: var(--muted);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.strategy-choice-readiness > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #c5d6e1;
  font-size: 0.75rem;
  line-height: 1.65;
  text-align: center;
}

.strategy-choice-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.strategy-choice-card {
  position: relative;
  cursor: pointer;
}

.strategy-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.strategy-choice-card span {
  display: grid;
  gap: 8px;
  min-height: 164px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  transition: 160ms ease;
}

.strategy-choice-card small {
  color: #8d97aa;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.strategy-choice-card strong {
  color: var(--text);
  font-size: 1.45rem;
}

.strategy-choice-card em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.65;
}

.strategy-choice-card.is-guess input:checked + span {
  border-color: rgba(255, 79, 109, 0.75);
  background: rgba(255, 79, 109, 0.1);
  box-shadow: 0 0 0 3px rgba(255, 79, 109, 0.07), 0 18px 46px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.strategy-choice-card.is-pass input:checked + span {
  border-color: rgba(94, 219, 255, 0.72);
  background: rgba(94, 219, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(94, 219, 255, 0.06), 0 18px 46px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.strategy-choice-card input:focus-visible + span {
  outline: 3px solid rgba(94, 219, 255, 0.82);
  outline-offset: 3px;
}

.strategy-choice-candidates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 4px !important;
}

.strategy-choice-candidates legend {
  grid-column: 1 / -1;
}

.strategy-choice-security {
  margin: 0;
  color: #91a9ba;
  font-size: 0.72rem;
  line-height: 1.6;
  text-align: center;
}

.strategy-weakness-choice > .button {
  justify-self: center;
  min-width: min(320px, 100%);
}

.strategy-chain-screen,
.strategy-chain-result {
  --overkill-red: #ff4f6d;
}

.strategy-weakness-break-banner {
  max-width: 960px;
  margin: 28px auto 22px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 109, 0.5);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 79, 109, 0.2), transparent 58%), rgba(15, 10, 18, 0.9);
  text-align: center;
  box-shadow: 0 0 50px rgba(255, 79, 109, 0.08);
  animation: weakness-break-in 600ms cubic-bezier(.2,.75,.25,1) both;
}

.strategy-weakness-break-banner > span {
  color: var(--overkill-red);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.strategy-weakness-break-banner h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(2rem, 6vw, 4.5rem);
  letter-spacing: -0.05em;
  text-shadow: 0 0 30px rgba(255, 79, 109, 0.28);
}

.strategy-chain-counter {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 9px 16px;
  border: 1px solid rgba(244, 201, 107, 0.35);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(244, 201, 107, 0.055);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.strategy-chain-counter strong {
  color: var(--strategy-gold);
  font-size: 1rem;
}

.strategy-chain-result > .strategy-weakness-head h1 {
  color: var(--overkill-red);
  text-shadow: 0 0 36px rgba(255, 79, 109, 0.32);
  animation: overkill-pulse 900ms ease-out both;
}

.strategy-guess-summary,
.strategy-chain-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto 20px;
}

.strategy-guess-summary article {
  display: grid;
  gap: 5px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-guess-summary article.success {
  border-color: rgba(255, 79, 109, 0.42);
  background: rgba(255, 79, 109, 0.07);
}

.strategy-guess-summary article.passed {
  border-color: rgba(94, 219, 255, 0.38);
  background: rgba(94, 219, 255, 0.065);
}

.strategy-guess-summary small,
.strategy-guess-summary span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
}

.strategy-guess-summary article.success span {
  color: #ff8195;
}

.strategy-guess-summary article.passed span {
  color: #85dff7;
}

.strategy-chain-lane {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(170, 131, 255, 0.22);
  border-radius: 18px;
  background: rgba(12, 15, 24, 0.86);
}

.strategy-chain-lane.is-empty {
  display: grid;
  place-content: center;
  min-height: 180px;
  text-align: center;
}

.strategy-chain-lane h2 {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.strategy-chain-lane.is-empty p {
  margin: 0;
  color: var(--muted);
}

.strategy-chain-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.strategy-chain-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  animation: pursuit-chain-in 520ms cubic-bezier(.16,.8,.3,1) both;
  animation-delay: calc(var(--chain-index) * 180ms);
}

.strategy-chain-card.is-playing {
  z-index: 2;
  filter: brightness(1.2);
  transform: translateY(-7px) scale(1.025);
}

.strategy-chain-card.is-playing .strategy-battle-image {
  border-color: rgba(255, 79, 109, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 79, 109, 0.12), 0 0 36px rgba(255, 79, 109, 0.3);
}

.strategy-chain-play {
  min-height: 54px;
  font-family: var(--display);
  letter-spacing: 0.06em;
}

.strategy-surrender {
  border-color: rgba(255, 255, 255, 0.2);
  color: #d8ddea;
}

.strategy-chain-card .strategy-battle-image {
  min-height: 0;
}

.strategy-chain-card .strategy-battle-image img {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.strategy-chain-card blockquote {
  margin: 0;
  color: #e8dffd;
  font-size: 0.68rem;
  line-height: 1.5;
}

.strategy-chain-card > b {
  color: var(--strategy-gold);
  font-family: var(--display);
  font-size: 1.05rem;
}

.strategy-chain-total {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.strategy-chain-total strong {
  color: var(--strategy-gold);
  font-size: 1.4rem;
}

.strategy-chain-total em {
  margin-left: auto;
  color: var(--overkill-red);
  font-size: 0.9rem;
  font-style: normal;
  text-shadow: 0 0 20px rgba(255, 79, 109, 0.3);
}

@keyframes weakness-break-in {
  from { opacity: 0; transform: scale(.94); filter: brightness(1.8); }
  to { opacity: 1; transform: scale(1); filter: brightness(1); }
}

@keyframes pursuit-chain-in {
  from { opacity: 0; transform: translateX(-28px) scale(.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes overkill-pulse {
  0% { opacity: 0; transform: scale(1.22); }
  55% { opacity: 1; transform: scale(.97); }
  100% { transform: scale(1); }
}

.strategy-gameover {
  max-width: 1040px;
  margin: 20px auto;
  padding: clamp(26px, 6vw, 58px);
  text-align: center;
}

.strategy-gameover > p {
  margin: -12px auto 28px;
  color: var(--muted);
}

.strategy-final-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.strategy-final-grid > article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-final-grid > article.winner {
  border-color: rgba(244, 201, 107, 0.5);
  background: rgba(244, 201, 107, 0.07);
}

.strategy-final-grid h2 {
  margin: 6px 0 18px;
}

.strategy-final-grid article div {
  display: inline-grid;
  gap: 3px;
  min-width: 30%;
}

.strategy-final-grid article div span {
  color: var(--muted);
  font-size: 0.68rem;
}

.strategy-final-grid article div strong {
  font-size: 1.5rem;
}

.strategy-final-grid article > em {
  display: block;
  margin-top: 14px;
  color: #ff4f6d;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.strategy-final-guess-summary {
  margin-top: 22px;
}

.strategy-bluff-reveal,
.strategy-history {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.strategy-bluff-reveal > h2 {
  margin: 5px 0 16px;
}

.strategy-bluff-reveal > article {
  display: grid;
  grid-template-columns: 140px repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
  margin-top: 9px;
}

.strategy-bluff-reveal h3,
.strategy-bluff-reveal p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.75rem;
}

.strategy-bluff-reveal p {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.strategy-bluff-reveal p b {
  color: #75d99d;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}

.strategy-bluff-reveal p.is-weakness {
  border-color: rgba(255, 138, 91, 0.35);
  background: rgba(255, 138, 91, 0.06);
}

.strategy-bluff-reveal p.is-weakness b {
  color: #ff9f77;
}

.strategy-bluff-reveal p.is-bluff b {
  color: #a9b2c4;
}

.strategy-history {
  display: grid;
  gap: 8px;
}

.strategy-final-actions {
  justify-content: center;
  margin-top: 28px;
}

.strategy-chat-panel {
  width: min(820px, 100%);
  min-height: 410px;
  margin: 30px auto 0;
  border-color: rgba(170, 131, 255, 0.3);
  background: linear-gradient(145deg, rgba(19, 15, 31, 0.95), rgba(9, 12, 20, 0.96));
}

.strategy-chat-participants {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(170, 131, 255, 0.035);
}

.strategy-chat-participant {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-chat-participant.is-opponent {
  flex-direction: row-reverse;
  text-align: right;
}

.strategy-chat-participant > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.strategy-chat-participant small {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.strategy-chat-participant strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.76rem;
}

.strategy-chat-avatar {
  width: 40px;
  height: 40px;
  font-size: 0.76rem;
}

.strategy-chat-panel .chat-messages {
  height: 230px;
  min-height: 230px;
  flex: 0 1 auto;
}

.strategy-chat-message-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.strategy-chat-message-row.is-local {
  flex-direction: row-reverse;
}

.strategy-chat-message-row .strategy-chat-avatar {
  width: 32px;
  height: 32px;
  font-size: 0.64rem;
}

.strategy-chat-message-row .chat-message {
  max-width: calc(90% - 40px);
  margin: 0;
}

.strategy-chat-message-row.is-local .chat-message {
  margin-left: 0;
  text-align: right;
}

.strategy-chat-panel .chat-empty {
  min-height: 200px;
}

.strategy-review-invite {
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(170, 131, 255, 0.38);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(170, 131, 255, 0.11), rgba(77, 232, 223, 0.04));
  text-align: left;
}

.strategy-review-invite h2,
.strategy-review-invite p,
.strategy-review-invite small {
  margin: 0;
}

.strategy-review-invite p {
  color: #e7defb;
  line-height: 1.65;
}

.strategy-review-invite small {
  color: var(--muted);
  line-height: 1.6;
}

.strategy-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.strategy-review-screen {
  max-width: 1040px;
  margin-inline: auto;
}

.strategy-review-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(170, 131, 255, 0.35);
  border-radius: 24px;
  background: radial-gradient(circle at 85% 10%, rgba(77, 232, 223, 0.13), transparent 38%), rgba(14, 17, 26, 0.9);
}

.strategy-review-head h1 {
  margin: 7px 0 10px;
  font-size: clamp(2.1rem, 6vw, 4.3rem);
  letter-spacing: -0.055em;
}

.strategy-review-head p,
.strategy-review-notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.strategy-review-clock {
  min-width: 150px;
  padding: 18px;
  border: 1px solid rgba(77, 232, 223, 0.35);
  border-radius: 18px;
  background: rgba(77, 232, 223, 0.07);
  text-align: center;
}

.strategy-review-clock small {
  display: block;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.strategy-review-clock strong {
  display: block;
  margin-top: 5px;
  color: #8cf4eb;
  font-family: var(--display);
  font-size: 2rem;
}

.strategy-review-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-review-notice span {
  color: #83e1a8;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.strategy-review-leave {
  justify-content: center;
  margin-top: 18px;
}

.strategy-review-gallery,
.strategy-review-asset-panel {
  display: grid;
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(170, 131, 255, 0.035);
}

.strategy-review-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-review-media-head > div {
  display: grid;
  gap: 3px;
}

.strategy-review-media-head strong {
  color: #d8c6ff;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.strategy-review-media-head span,
.strategy-review-asset-status,
.strategy-review-asset-note,
.strategy-review-asset-empty {
  color: var(--muted);
  font-size: 0.64rem;
  line-height: 1.55;
}

.strategy-review-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  max-height: 440px;
  overflow: auto;
  scrollbar-width: thin;
}

.strategy-review-gallery-grid article,
.strategy-review-asset {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(2, 4, 9, 0.48);
}

.strategy-review-gallery-grid article.is-local,
.strategy-review-asset.is-local {
  border-color: rgba(77, 232, 223, 0.26);
}

.strategy-review-gallery-grid article > div,
.strategy-review-asset > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 8px 9px;
}

.strategy-review-gallery-grid small,
.strategy-review-asset small {
  color: var(--muted);
  font-size: 0.56rem;
}

.strategy-review-gallery-grid strong,
.strategy-review-asset strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.66rem;
}

.strategy-review-gallery-grid img,
.strategy-review-asset img,
.strategy-review-asset-pending img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #030407;
}

.strategy-review-gallery-grid .button {
  width: calc(100% - 12px);
  margin: 6px;
}

.strategy-review-asset-status,
.strategy-review-asset-empty {
  margin: 0;
}

.strategy-review-asset-toolbar,
.strategy-review-asset-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.strategy-review-asset-toolbar .file-button.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.strategy-review-media-head .is-receiving {
  border-color: rgba(77, 232, 223, 0.42);
  color: #9af4ed;
}

.strategy-review-recording-time {
  color: #ff8d82;
  font-size: 0.7rem;
  font-weight: 900;
}

.strategy-review-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-review-asset > div > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.strategy-review-asset > audio,
.strategy-review-asset-pending > audio {
  display: block;
  width: calc(100% - 18px);
  margin: 9px;
}

.strategy-review-asset > small {
  display: block;
  padding: 7px 9px;
}

.review-asset-delete {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.strategy-review-asset-pending {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(244, 201, 107, 0.34);
  border-radius: 14px;
  background: rgba(244, 201, 107, 0.045);
}

.strategy-review-asset-pending > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.66rem;
}

.strategy-review-asset-pending > div:first-child strong {
  color: var(--strategy-gold);
}

.strategy-review-asset-pending img {
  max-height: 340px;
}

.strategy-review-asset-progress {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid rgba(77, 232, 223, 0.24);
  border-radius: 10px;
  color: #9af4ed;
  font-size: 0.68rem;
}

.strategy-review-asset-progress[hidden] {
  display: none;
}

.strategy-video-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-bottom: 1px solid var(--line);
  background: rgba(77, 232, 223, 0.025);
}

.strategy-video-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-video-panel-head > div {
  display: grid;
  gap: 3px;
}

.strategy-video-panel-head strong {
  color: #9af4ed;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.strategy-video-panel-head span,
.strategy-video-status,
.strategy-video-empty,
.strategy-video-privacy {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.5;
}

.strategy-video-status,
.strategy-video-empty {
  margin: 0;
}

.strategy-video-clips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.strategy-video-clip {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.26);
}

.strategy-video-clip > div,
.strategy-video-clip > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
}

.strategy-video-clip small,
.strategy-video-clip > span {
  color: var(--muted);
  font-size: 0.58rem;
}

.strategy-video-clip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.7rem;
}

.strategy-video-clip video,
.strategy-video-preview-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #030407;
}

.strategy-video-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(170, 131, 255, 0.46);
  border-radius: 24px;
  color: var(--text);
  background: #10131d;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
}

.strategy-video-dialog::backdrop {
  background: rgba(2, 4, 9, 0.82);
  backdrop-filter: blur(8px);
}

.strategy-video-dialog-shell {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 5vw, 36px);
  background: radial-gradient(circle at 80% 0%, rgba(77, 232, 223, 0.09), transparent 38%);
}

.strategy-video-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.strategy-video-dialog-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
}

.strategy-recording-time {
  color: #ff806d;
  white-space: nowrap;
}

.strategy-video-preview-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #030407;
}

.strategy-video-preview-wrap.is-recording {
  border-color: rgba(255, 91, 84, 0.55);
}

.strategy-video-preview-wrap.is-recording > span {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(221, 50, 50, 0.86);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.strategy-video-dialog progress {
  width: 100%;
  height: 8px;
  accent-color: #ff655a;
}

.strategy-video-safety,
.strategy-video-permission-wait,
.strategy-video-send-progress {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.strategy-video-safety p,
.strategy-video-permission-wait p,
.strategy-video-dialog-note {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.strategy-video-permission-wait {
  display: grid;
  justify-items: center;
  text-align: center;
}

.strategy-video-audio-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.strategy-video-send-progress {
  display: flex;
  justify-content: space-between;
  color: #9af4ed;
  font-size: 0.75rem;
}

.strategy-video-send-progress[hidden] {
  display: none;
}

.strategy-video-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 900px) {
  .strategy-profile-layout,
  .strategy-build-layout,
  .strategy-rating-layout {
    grid-template-columns: 1fr;
  }

  .strategy-scout-note {
    position: static;
  }

  .strategy-deck-grid,
  .strategy-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-bluff-reveal > article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .strategy-choice-readiness {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .strategy-prepared-summary-head,
  .strategy-prepared-actions,
  .strategy-prepared-footer,
  .strategy-deck-persistence > div {
    display: grid;
    align-items: stretch;
  }

  .strategy-prepared-actions .button,
  .strategy-prepared-footer .button,
  .strategy-deck-persistence .button {
    width: 100%;
  }

  .strategy-prepared-counts span {
    flex: 1 1 100%;
  }

  .strategy-anonymous-head {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .strategy-anonymous-icon {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    font-size: 2.5rem;
  }

  .strategy-clue-cards,
  .strategy-identity-grid,
  .strategy-reveal-grid,
  .strategy-final-grid,
  .strategy-weakness-guess fieldset,
  .strategy-choice-options,
  .strategy-choice-candidates,
  .strategy-guess-summary,
  .strategy-chain-result-grid {
    grid-template-columns: 1fr;
  }

  .strategy-intro-actions,
  .strategy-final-actions {
    display: grid;
  }

  .strategy-intro-actions .button,
  .strategy-final-actions .button {
    width: 100%;
  }

  .strategy-deck-grid {
    grid-template-columns: 1fr;
  }

  .strategy-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-form,
  .strategy-deck-panel {
    padding: 18px;
  }

  .strategy-deck-zone .deck-toolbar {
    align-items: flex-start;
  }

  .strategy-deck-zone .upload-actions {
    width: 100%;
  }

  .strategy-identity-card.player-2 {
    text-align: left;
  }

  .strategy-vs-mark {
    top: 50%;
  }

  .strategy-hud {
    grid-template-columns: 1fr 74px 1fr;
    gap: 8px;
    padding: 10px;
  }

  .strategy-hud .round-badge {
    min-width: 0;
    padding: 8px;
  }

  .strategy-hud .hp-value {
    font-size: 0.56rem;
  }

  .strategy-power-versus {
    grid-template-columns: 1fr;
  }

  .strategy-vs-small {
    transform: rotate(90deg);
  }

  .strategy-round-breakdown p,
  .strategy-history p {
    display: grid;
  }

  .strategy-chat-panel {
    min-height: 0;
  }

  .strategy-chat-participant {
    padding: 7px;
  }

  .strategy-chat-panel .chat-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .strategy-review-head,
  .strategy-review-notice {
    grid-template-columns: 1fr;
  }

  .strategy-review-clock {
    width: 100%;
  }

  .strategy-review-actions,
  .strategy-review-media-head,
  .strategy-review-asset-toolbar,
  .strategy-review-asset-actions,
  .strategy-video-panel-head,
  .strategy-video-dialog-head,
  .strategy-video-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .strategy-review-actions .button,
  .strategy-review-media-head .button,
  .strategy-review-asset-toolbar .button,
  .strategy-review-asset-actions .button,
  .strategy-video-panel-head .button,
  .strategy-video-dialog-actions .button {
    width: 100%;
  }

  .strategy-review-gallery-grid,
  .strategy-review-assets {
    grid-template-columns: 1fr;
  }

  .strategy-video-clips {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .strategy-weakness-break-banner,
  .strategy-chain-result > .strategy-weakness-head h1,
  .strategy-chain-card {
    animation: none;
  }
}

.strategy-identity-card .match-achievement-showcase {
  display: grid;
  width: 100%;
  gap: 7px;
  margin: -8px 0 20px;
  color: inherit;
  font-size: inherit;
  text-align: left;
}

.strategy-identity-card.player-2 .match-achievement-showcase {
  justify-items: end;
  margin-right: 0;
  text-align: right;
}

.strategy-identity-card .match-achievement-showcase > small {
  color: #9ca7ba;
  font-size: 0.62rem;
  letter-spacing: 0.09em;
}

.strategy-identity-card .match-achievement-showcase .achievement-badges {
  display: flex;
  margin: 0;
  justify-content: flex-start;
  gap: 6px;
}

.strategy-identity-card.player-2 .match-achievement-showcase .achievement-badges {
  justify-content: flex-end;
}

.strategy-identity-card.player-2 .match-achievement-showcase .match-danwaku-badge {
  justify-self: end;
}

.strategy-final-grid article .match-achievement-showcase {
  display: grid;
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
}

@media (max-width: 640px) {
  .strategy-identity-card.player-2 .match-achievement-showcase {
    justify-items: start;
    text-align: left;
  }

  .strategy-identity-card.player-2 .match-achievement-showcase .achievement-badges {
    justify-content: flex-start;
  }


  .strategy-identity-card.player-2 .match-achievement-showcase .match-danwaku-badge {
    justify-self: start;
  }
}

/* 貼り合い本式（戦略型1on1 v3） */
.strategy-screen.is-refresh {
  animation: none;
}

.strategy-screen {
  --hariai-pink: #ff8aaa;
  --hariai-pink-soft: rgba(255, 138, 170, 0.12);
}

.strategy-persona-fieldset,
.strategy-penalty-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 138, 170, 0.28);
  border-radius: 16px;
  background: rgba(255, 138, 170, 0.04);
}

.strategy-persona-fieldset legend,
.strategy-penalty-fieldset legend {
  padding: 0 6px;
  font-weight: 900;
}

.strategy-persona-fieldset legend span,
.strategy-penalty-fieldset legend span {
  margin-left: 6px;
  color: var(--hariai-pink);
  font-size: 0.7rem;
}

.strategy-persona-fieldset p,
.strategy-penalty-fieldset > small {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.strategy-persona-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.strategy-persona-option,
.strategy-penalty-option,
.hariai-target-option,
.hariai-right-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.strategy-persona-option input,
.hariai-target-option input,
.hariai-right-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.strategy-persona-option span,
.hariai-target-option span,
.hariai-right-option span {
  display: grid;
  gap: 4px;
  height: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 11, 18, 0.72);
  transition: border-color 160ms ease, background 160ms ease;
}

.strategy-persona-option strong,
.hariai-target-option strong,
.hariai-right-option strong {
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.strategy-persona-option small,
.hariai-target-option small,
.hariai-right-option small {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.5;
}

.strategy-persona-option input:checked + span,
.hariai-target-option input:checked + span,
.hariai-right-option input:checked + span {
  border-color: rgba(255, 138, 170, 0.78);
  background: var(--hariai-pink-soft);
  box-shadow: 0 0 0 1px rgba(255, 138, 170, 0.14);
}

.strategy-persona-option input:focus-visible + span,
.hariai-target-option input:focus-visible + span,
.hariai-right-option input:focus-visible + span {
  outline: 2px solid var(--hariai-pink);
  outline-offset: 2px;
}

.hariai-target-option input:disabled + span,
.hariai-right-option.is-disabled span {
  opacity: 0.45;
  cursor: not-allowed;
}

.hariai-target-option.is-bluff small {
  color: var(--muted);
  text-decoration: line-through;
}

.hariai-target-option.is-weakness small {
  color: var(--hariai-pink);
}

.strategy-persona-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.strategy-penalty-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.strategy-penalty-option input {
  margin-top: 4px;
  accent-color: var(--hariai-pink);
}

.strategy-penalty-option span {
  display: grid;
  gap: 2px;
}

.strategy-penalty-option small {
  color: var(--muted);
  font-size: 0.72rem;
}

.strategy-penalty-option.is-fixed {
  cursor: default;
  opacity: 0.8;
}

.hariai-intro-persona,
.hariai-intro-penalty {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 138, 170, 0.3);
  border-radius: 14px;
  background: var(--hariai-pink-soft);
}

.hariai-intro-persona span {
  color: var(--muted);
  font-size: 0.72rem;
}

.hariai-intro-persona strong {
  color: var(--hariai-pink);
  font-size: 1.05rem;
}

.hariai-intro-persona small {
  color: var(--muted);
}

.hariai-intro-penalty {
  margin-top: 16px;
  font-size: 0.82rem;
}

.hariai-identity-persona,
.hariai-result-persona {
  margin: 0 0 10px;
  color: var(--hariai-pink);
  font-size: 0.78rem;
  font-weight: 800;
}

.hariai-persona-chip {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 138, 170, 0.4);
  border-radius: 999px;
  color: var(--hariai-pink);
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.hariai-turn-label {
  display: block;
  margin-top: 4px;
  color: var(--vs-rose-soft);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* ---------- 対戦画面：DMの密室 × 採点メーター ---------- */

/* 見出し。理性は、あなた＝ミント・相手＝ローズの細い線 */
.hariai-hud {
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--ha-surface);
  box-shadow: inset 0 0 0 1px var(--vs-line-soft);
}

.hariai-hud .hariai-reason-bar {
  height: 8px;
  border: 0;
  background: var(--ha-bubble-theirs);
}

.hariai-hud .hp-fill,
.hariai-hud .hud-player:last-child .hp-fill {
  background: var(--vs-rose);
  box-shadow: none;
}

.hariai-hud .hud-player.local-player .hp-fill {
  background: var(--vs-mint);
}

/* 接続状態は小さな札を横に並べる（スマホでも縦に積まない） */
.hariai-battle .online-room-strip {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vs-mist);
  font-size: 0.64rem;
}

.hariai-battle .online-room-strip .connection-pill,
.hariai-battle .online-room-strip .avatar-visibility-toggle {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 0.64rem;
}

/* スマホは読みメモ → スレッド → 自分の秘密。PCはスレッドの右にメモと秘密を並べる。 */
.hariai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "memo" "main" "side";
  gap: 14px;
  align-items: start;
}

.hariai-main {
  display: grid;
  grid-area: main;
  gap: 16px;
  min-width: 0;
}

.hariai-side {
  display: grid;
  grid-area: side;
  gap: 12px;
  min-width: 0;
}

.hariai-thread {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hariai-thread-empty {
  padding: 18px;
  border-radius: 16px;
  color: var(--vs-mist);
  background: var(--ha-surface);
  box-shadow: inset 0 0 0 1px var(--vs-line-soft);
  text-align: center;
}

.hariai-slot {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.hariai-slot-no {
  margin-right: 6px;
  color: var(--vs-pearl);
  font-weight: 900;
}

.hariai-slot-head .hariai-combo {
  margin-left: 6px;
  color: var(--vs-rose-soft);
  font-style: normal;
  font-weight: 900;
}

.hariai-thread .battle-avatar {
  width: 28px;
  height: 28px;
  flex: none;
  border: 0;
  font-size: 0.7rem;
  box-shadow: 0 0 0 1.5px var(--vs-violet);
}

.hariai-media {
  position: relative;
  display: grid;
  width: min(62vw, 260px);
  min-height: 120px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px 18px 18px 4px;
  background: var(--ha-hatch);
}

.ha-msg.is-mine .hariai-media {
  border-radius: 18px 18px 4px 18px;
}

.hariai-media img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.hariai-media.is-concealed img {
  filter: blur(24px) brightness(0.55);
}

.hariai-media.is-loading {
  min-height: 160px;
  color: var(--vs-mist);
  font-size: 0.8rem;
}

.hariai-open {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  color: var(--vs-pearl);
  background: transparent;
  font-weight: 900;
}

.hariai-audio {
  padding: 6px 12px;
  border: 1px solid var(--vs-line-soft);
  border-radius: 999px;
  cursor: pointer;
  color: var(--vs-pearl);
  background: var(--ha-surface);
  font-size: 0.74rem;
}

.hariai-caption {
  margin: 0;
}

.hariai-caption.is-break {
  box-shadow: inset 0 0 0 1.5px var(--vs-gold);
}

.hariai-target {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hariai-target::before {
  width: 13px;
  height: 13px;
  flex: none;
  content: "";
  background: currentColor;
  -webkit-mask: var(--vs-icon-target) center / contain no-repeat;
  mask: var(--vs-icon-target) center / contain no-repeat;
}

/* 点数は受け手の吹き出し。数字・ひとこと・70〜100のメーター */
.hariai-score {
  --meter-ring: var(--ha-bubble-theirs);
  display: grid;
  min-width: min(236px, 100%);
  gap: 10px;
}

.ha-msg.is-mine .hariai-score {
  --meter-ring: var(--ha-bubble-mine);
}

.hariai-score-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.hariai-score-head strong {
  font: 600 1.9rem/1 var(--vs-font-number);
  font-variant-numeric: tabular-nums;
}

.hariai-score-head strong small {
  margin-left: 2px;
  font-size: 0.8rem;
}

.hariai-score.band-question strong { color: #c9bcff; }
.hariai-score.band-instruction strong { color: var(--vs-gold); }
.hariai-score.band-combo strong { color: #ff8ab6; }

.hariai-score .ha-meter100 {
  width: 100%;
}

.ha-msg.is-mine .ha-meter100-scale {
  color: #f6d9e5;
}

.hariai-reply {
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.hariai-reply.is-surrender {
  margin: 0;
  color: var(--vs-rose-soft);
  font-weight: 800;
}

.hariai-score-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.ha-msg.is-mine .hariai-score-meta {
  justify-content: flex-end;
}

.hariai-band,
.hariai-damage {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  border-radius: 12px;
  color: var(--vs-mist);
  background: var(--ha-raised);
  font-size: 0.72rem;
  font-weight: 800;
}

.band-question .hariai-band { color: #c9bcff; }
.band-instruction .hariai-band { color: var(--vs-gold); }
.band-combo .hariai-band { color: #ff8ab6; }

.hariai-damage {
  color: var(--vs-rose-soft);
  background: rgba(255, 63, 134, 0.14);
}

/* 権利：攻め手の質問・指示と、受け手の答え */
.hariai-right > b {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 8px;
  color: #d6ccff;
  background: rgba(109, 85, 214, 0.4);
  font-size: 0.7rem;
}

.hariai-right.is-instruction > b {
  color: var(--vs-gold);
  background: rgba(230, 193, 122, 0.18);
}

.hariai-right.is-skipped,
.hariai-answer.is-waiting {
  justify-self: center;
  margin: 0;
  color: var(--vs-mist);
  font-size: 0.78rem;
}

.hariai-flavor {
  display: block;
  margin-top: 2px;
  color: var(--vs-mist);
  font-size: 0.78rem;
}

.ha-msg.is-mine .hariai-flavor {
  color: #f6d9e5;
}

.hariai-answer {
  margin: 0;
}

/* 看破と仕留め */
.hariai-break-body {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--ha-surface);
  box-shadow: inset 0 0 0 1px rgba(230, 193, 122, 0.3);
}

.hariai-break-wait {
  margin: 0;
  color: var(--vs-mist);
}

.hariai-break-result {
  margin: 0;
  font-weight: 800;
}

.hariai-break-result.is-hit {
  color: var(--vs-gold);
}

.hariai-break-result.is-miss {
  color: var(--vs-mist);
}

.hariai-bluffs {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 63, 134, 0.1);
  font-size: 0.8rem;
}

.hariai-bluffs b {
  color: var(--vs-rose-soft);
}

.hariai-finish {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.hariai-finish-card {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 8px;
  border-radius: 14px;
  background: var(--ha-raised);
  box-shadow: inset 0 0 0 1px var(--vs-line-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hariai-finish-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
}

.hariai-finish-card figcaption {
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.hariai-finish-card.is-playing {
  box-shadow: inset 0 0 0 1.5px var(--vs-rose);
  transform: scale(1.03);
}

/* 操作欄。スレッドの下に置く入力欄 */
.hariai-console {
  padding: 18px 16px 20px;
  border: 0;
  border-radius: 24px;
  background: var(--ha-surface);
  box-shadow: inset 0 0 0 1px var(--vs-line-soft);
}

.hariai-console:empty {
  display: none;
}

.hariai-console-wait {
  display: grid;
  gap: 6px;
  text-align: center;
}

.hariai-console-wait p {
  margin: 0;
  color: var(--vs-mist);
  font-size: 0.84rem;
}

.hariai-console-act,
.hariai-composer {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.hariai-console-act > p,
.hariai-composer > p {
  margin: 0;
  line-height: 1.6;
}

.hariai-console-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}

.hariai-console-head strong {
  font-size: 1rem;
  font-weight: 800;
}

.hariai-console-head small {
  color: var(--vs-mist);
  font-size: 0.74rem;
}

.hariai-console-head .hariai-combo {
  color: var(--vs-rose-soft);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
}

/* 「貼る／看破する…」と「質問／指示」は、押した方が白く浮く切り替え */
.hariai-tabs,
.hariai-right-tabs {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  background: var(--ha-ground);
}

.hariai-tabs button,
.hariai-right-tabs button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: var(--vs-mist);
  background: transparent;
  font-size: 0.86rem;
  font-weight: 800;
}

.hariai-tabs button.is-active,
.hariai-right-tabs button.is-active {
  color: var(--ha-ink);
  background: var(--vs-pearl);
}

.hariai-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vs-mist);
  font-size: 0.78rem;
  font-weight: 800;
}

.hariai-step b {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--vs-rose-soft);
  background: rgba(255, 63, 134, 0.14);
  font-size: 0.72rem;
}

.hariai-hand {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.hariai-hand-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  background: var(--ha-hatch-mine);
}

.hariai-hand-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hariai-hand-card.is-selected {
  border-color: var(--vs-rose);
  box-shadow: 0 0 0 2px rgba(255, 63, 134, 0.25);
}

.hariai-hand-audio,
.hariai-hand-order {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: var(--vs-pearl);
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.66rem;
  font-weight: 900;
}

.hariai-hand-order {
  color: var(--ha-ink);
  background: var(--vs-rose);
}

.hariai-targets,
.hariai-right-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.hariai-right-list {
  grid-template-columns: minmax(0, 1fr);
}

.hariai-target-option span,
.hariai-right-option span {
  border: 1.5px solid var(--vs-line-soft);
  border-radius: 14px;
  background: #1a1120;
}

.hariai-target-option input:checked + span {
  border-color: var(--vs-rose);
  background: rgba(255, 63, 134, 0.12);
  box-shadow: none;
}

.hariai-right-option input:checked + span {
  border-color: var(--vs-gold);
  background: rgba(230, 193, 122, 0.1);
  box-shadow: none;
}

.hariai-target-option input:focus-visible + span,
.hariai-right-option input:focus-visible + span {
  outline-color: var(--vs-gold-hi);
}

.hariai-caption-field {
  display: grid;
  gap: 6px;
}

.hariai-caption-field textarea,
.hariai-console-act textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  font: inherit;
}

.hariai-caption-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--vs-mist);
  font-size: 0.74rem;
}

.hariai-count {
  justify-self: end;
  color: var(--vs-mist);
  font-size: 0.74rem;
}

.hariai-effect,
.hariai-note {
  margin: 0;
  color: var(--vs-rose-soft);
  font-size: 0.76rem;
}

.hariai-note {
  color: var(--vs-mist);
}

.hariai-preview,
.hariai-prompt {
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: var(--ha-bubble-theirs);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.hariai-preview {
  justify-self: end;
  border-radius: 16px 16px 4px 16px;
  background: var(--ha-bubble-mine);
}

.hariai-submit {
  justify-self: stretch;
}

.hariai-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hariai-battle .button-primary {
  border-color: transparent;
  color: var(--ha-ink);
  background: var(--vs-rose);
  box-shadow: 0 12px 28px -14px rgba(255, 63, 134, 0.8);
}

.hariai-battle .button-primary:hover:not(:disabled) {
  background: #ff5a97;
}

.hariai-score-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 12px;
}

.hariai-score-input input[type="range"] {
  width: 100%;
  accent-color: var(--vs-rose);
}

.hariai-score-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hariai-score-quick button {
  --zone: var(--ha-zone-none);
  min-width: 48px;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: var(--vs-pearl);
  background: #1a1120;
  box-shadow: inset 0 0 0 1.5px var(--zone);
  font: 600 0.95rem/1 var(--vs-font-number);
}

.hariai-score-quick button.is-question { --zone: var(--ha-zone-question); }
.hariai-score-quick button.is-instruction { --zone: var(--ha-zone-instruction); }
.hariai-score-quick button.is-combo { --zone: var(--ha-zone-combo); }

.hariai-score-quick button.is-selected {
  color: var(--ha-ink);
  background: var(--zone);
}

.hariai-score-quick button.is-none.is-selected {
  color: var(--vs-pearl);
}

.hariai-score-preview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  font-size: 0.82rem;
}

.hariai-score-preview strong {
  font: 600 1.3rem/1 var(--vs-font-number);
}

.hariai-score-preview.band-question strong { color: #c9bcff; }
.hariai-score-preview.band-instruction strong { color: var(--vs-gold); }
.hariai-score-preview.band-combo strong { color: #ff8ab6; }

.hariai-score-preview .ha-meter100 {
  --meter-ring: var(--ha-surface);
  flex: 1 1 100%;
  width: 100%;
  margin-top: 4px;
}

.hariai-ko-warning,
.hariai-required {
  color: var(--vs-rose-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.hariai-required {
  margin-left: 8px;
}

.hariai-suggestions {
  display: grid;
  gap: 6px;
}

.hariai-suggestions button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--vs-line-soft);
  border-radius: 14px;
  cursor: pointer;
  color: var(--vs-pearl);
  background: #1a1120;
  font-size: 0.84rem;
  text-align: left;
}

.hariai-suggestions button:hover {
  border-color: rgba(255, 63, 134, 0.6);
}

.hariai-surrender-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--vs-mist);
  font-size: 0.8rem;
}

.hariai-surrender-check input {
  accent-color: var(--vs-rose);
}

.hariai-which {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* 読みメモ：罫線と赤い余白線のあるノート。閉じると1行の要約になる */
.hariai-memo {
  grid-area: memo;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #17101b;
  box-shadow: inset 0 0 0 1px rgba(230, 193, 122, 0.24);
}

.hariai-memo summary {
  position: relative;
  display: flex;
  min-height: 44px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 12px 64px 12px 14px;
  cursor: pointer;
  list-style: none;
}

.hariai-memo summary::-webkit-details-marker {
  display: none;
}

.hariai-memo summary::after {
  position: absolute;
  top: 14px;
  right: 14px;
  content: "たたむ";
  color: var(--vs-gold);
  font-size: 0.74rem;
  font-weight: 700;
}

.hariai-memo:not([open]) summary::after {
  content: "ひらく";
}

.hariai-memo-title {
  color: var(--vs-gold);
  font: 400 1.15rem/1.2 var(--ha-font-memo);
}

.hariai-memo summary small {
  color: var(--vs-mist);
  font-size: 0.72rem;
}

.hariai-memo-digest {
  display: none;
  flex-basis: 100%;
  color: var(--vs-mist);
  font-size: 0.74rem;
}

.hariai-memo:not([open]) .hariai-memo-digest {
  display: block;
}

.hariai-memo-page {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0 14px 0 40px;
  list-style: none;
  background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(248, 238, 242, 0.07) 39px 40px);
}

.hariai-memo-page::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 1px;
  content: "";
  background: rgba(255, 63, 134, 0.35);
}

.hariai-memo-page li {
  display: flex;
  min-height: 40px;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.hariai-memo-page strong {
  min-width: 4.5em;
  font: 400 1.1rem/1.2 var(--ha-font-memo);
  overflow-wrap: anywhere;
}

.hariai-memo-scores {
  display: flex;
  gap: 4px;
}

.hariai-memo-scores b {
  padding: 1px 6px;
  border-radius: 6px;
  background: #2a1c30;
  font: 500 0.8rem/1.3 var(--vs-font-number);
}

.hariai-memo-page em {
  margin-left: auto;
  padding: 0 4px;
  color: var(--vs-mist);
  font: 400 0.95rem/1.2 var(--ha-font-memo);
}

.hariai-memo-page li.is-hot em {
  color: var(--vs-pearl);
  background: linear-gradient(to top, rgba(230, 193, 122, 0.35) 45%, transparent 45%);
}

.hariai-memo-page li.is-bluff strong {
  color: var(--vs-mist);
  text-decoration: line-through;
}

.hariai-memo-page li.is-bluff em {
  color: #c9bcff;
}

.hariai-memo-page li.is-weakness strong,
.hariai-memo-page li.is-weakness em {
  color: var(--vs-rose-soft);
}

.hariai-memo-page small {
  flex-basis: 100%;
  margin: -6px 0 6px;
  color: var(--vs-mist);
  font-size: 0.7rem;
}

.hariai-memo-note {
  margin: 0;
  padding: 8px 14px 12px 40px;
  color: var(--vs-mist);
  font-size: 0.74rem;
  line-height: 1.6;
}

.hariai-self,
.hariai-rules {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  background: var(--ha-surface);
  box-shadow: inset 0 0 0 1px var(--vs-line-soft);
}

.hariai-self h2 {
  margin: 0;
  font-size: 0.95rem;
}

.hariai-self p {
  margin: 0;
  color: var(--vs-mist);
  font-size: 0.76rem;
  line-height: 1.55;
}

.hariai-self p b {
  color: var(--vs-pearl);
}

.hariai-self p small {
  display: block;
}

.hariai-rules summary {
  cursor: pointer;
  font-weight: 800;
}

.hariai-rules ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--vs-mist);
  font-size: 0.74rem;
  line-height: 1.55;
}

.hariai-penalty {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(255, 138, 170, 0.34);
  border-radius: 18px;
  background: var(--hariai-pink-soft);
  text-align: left;
}

.hariai-penalty h2,
.hariai-penalty p {
  margin: 0;
}

.hariai-penalty small {
  color: var(--muted);
}

.hariai-penalty-done {
  color: var(--hariai-pink);
  font-weight: 800;
}

.hariai-penalty-done b {
  margin-right: 8px;
  color: var(--muted);
}

.hariai-log {
  margin: 18px 0;
  text-align: left;
}

.hariai-log summary {
  font-weight: 800;
  cursor: pointer;
}

.hariai-log .hariai-thread {
  margin-top: 12px;
}

.hariai-review-penalty span {
  color: var(--hariai-pink);
}

/* PC：読みメモは右上でスレッドについてくる。自分の秘密とルールは操作欄の横 */
@media (min-width: 901px) {
  .hariai-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "main memo" "main side";
    gap: 14px 18px;
  }

  .hariai-memo {
    position: sticky;
    top: 16px;
  }

  .hariai-side {
    align-self: end;
  }
}

@media (max-width: 900px) {
  .strategy-persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hariai-hand {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .strategy-persona-row,
  .hariai-which {
    grid-template-columns: 1fr;
  }

  .hariai-score-input {
    grid-template-columns: minmax(0, 1fr) 80px;
  }

  .hariai-actions .button {
    flex: 1 1 100%;
  }
}

/* ---------- なりきりDM（戦略型1on1）：口調の吹き出し・権利のリボン・指示・看破の封蝋・入力中・チャット帯・匿名ヴェール ---------- */

/* 口調の吹き出し。色・線・角は chat-persona.css の口調ごとの変数を使う（:where で既定値の強さを0にする）。 */
:where(.sp-persona) {
  --chat-surface: var(--ha-bubble-theirs);
  --chat-text: var(--vs-pearl);
  --chat-border: transparent;
  --chat-border-width: 0px;
  --chat-border-style: solid;
  --chat-shadow: none;
  --chat-radius: 16px;
}

.hariai-thread .ha-msg .ha-bubble.sp-persona,
.hariai-console .ha-msg .ha-bubble.sp-persona {
  --meter-ring: rgba(20, 13, 24, 0.92);
  position: relative;
  color: var(--chat-text);
  border: var(--chat-border-width) var(--chat-border-style) var(--chat-border);
  border-radius: var(--chat-radius);
  background: var(--chat-surface);
  box-shadow: var(--chat-shadow);
}

.hariai-thread .ha-msg .ha-bubble.sp-persona::after,
.hariai-console .ha-msg .ha-bubble.sp-persona::after {
  position: absolute;
  z-index: 2;
  top: -11px;
  right: -7px;
  color: var(--chat-charm-color, #fff);
  font-size: 0.82rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

/* 点数の色は権利のリボンとメーターで見せ、吹き出しの中は口調の文字色にそろえる */
.hariai-score.sp-persona .hariai-score-head strong {
  color: inherit;
}

.sp-persona .ha-meter100-scale,
.sp-persona .hariai-flavor {
  color: inherit;
  opacity: 0.78;
}

/* 吹き出しの並び（リアクションの置き場） */
.ha-msg-body > .sp-react-row {
  max-width: 100%;
}

.ha-msg.is-mine .sp-react-row {
  flex-direction: row-reverse;
}

.ha-msg .sp-react-row .chat-bubble-anchor {
  max-width: 100%;
}

.ha-msg.is-mine .chat-reaction-sticker {
  right: auto;
  left: -10px;
}

.hariai-thread .chat-react-picker,
.hariai-console .chat-react-picker {
  margin-top: 2px;
}

/* 「語尾に♡」の残り回数 */
.sp-heart-count {
  position: absolute;
  z-index: 3;
  top: -11px;
  left: -10px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #2a0716;
  background: var(--vs-rose-soft);
  box-shadow: 0 0 0 2px var(--vs-night-1);
  font: 600 0.66rem/1 var(--vs-font-number);
  letter-spacing: 0.04em;
}

.hariai-finish-card figcaption .sp-heart-count {
  position: static;
  display: inline-block;
  margin-right: 6px;
  box-shadow: none;
}

/* 権利が開いた時のリボン */
.hariai-band.sp-band-ribbon {
  color: #1a0710;
  background: linear-gradient(135deg, #c9bcff, #8f78f0);
  box-shadow: 0 0 14px rgba(143, 120, 240, 0.5);
  font-weight: 900;
}

.band-instruction .hariai-band.sp-band-ribbon {
  background: linear-gradient(135deg, #fff0c9, #e6c17a);
  box-shadow: 0 0 14px rgba(230, 193, 122, 0.55);
}

.band-combo .hariai-band.sp-band-ribbon {
  background: linear-gradient(135deg, #ff8ab6, #ff3f86);
  box-shadow: 0 0 18px rgba(255, 63, 134, 0.6);
}

.hariai-band.sp-band-ribbon.is-fresh {
  animation: sp-pop 600ms var(--vs-ease-snap) both;
}

/* 質問は紫、指示は金色の「命令」の吹き出し */
.hariai-thread .ha-msg .ha-bubble.sp-order.is-question {
  color: #ece6ff;
  background: linear-gradient(135deg, #261a4a, #3c2a78);
  box-shadow: 0 0 0 1.5px #a88bff, 0 0 16px rgba(168, 139, 255, 0.35);
}

.hariai-thread .ha-msg .ha-bubble.sp-order.is-instruction {
  color: #fff3d2;
  background: linear-gradient(135deg, #3b2a0c, #6b4a12);
  box-shadow: 0 0 0 1.5px #e6c17a, 0 0 18px rgba(230, 193, 122, 0.32);
}

.hariai-thread .ha-msg .ha-bubble.sp-order.is-instruction > b {
  color: #2a1a08;
  background: var(--vs-gold);
}

.sp-order .hariai-flavor {
  color: inherit;
  opacity: 0.78;
}

/* 看破の宣言と封蝋 */
.hariai-thread .ha-msg .ha-bubble.sp-break {
  position: relative;
  padding-right: 40px;
  color: #ffe3e8;
  background: linear-gradient(135deg, #2a0710, #5c0f1f);
  box-shadow: 0 0 0 2px #ff5566, 0 0 22px rgba(255, 85, 102, 0.42);
}

.sp-seal {
  position: absolute;
  z-index: 3;
  top: -22px;
  right: -14px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff6b7d, #b3122e 70%);
  box-shadow: 0 0 0 3px rgba(179, 18, 46, 0.35), 0 6px 14px rgba(0, 0, 0, 0.5);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  transform: rotate(12deg);
}

.sp-seal.is-fresh {
  animation: sp-seal-press 700ms var(--vs-ease-snap) both;
}

.hariai-break-body.is-hit {
  background: linear-gradient(145deg, rgba(92, 15, 31, 0.55), var(--ha-surface));
  box-shadow: inset 0 0 0 1px rgba(255, 85, 102, 0.45), 0 0 26px rgba(255, 85, 102, 0.16);
}

.hariai-break-body.is-miss {
  box-shadow: inset 0 0 0 1px rgba(191, 170, 187, 0.25);
}

/* 「効いてないって言ったよね♡」の証拠は、打ち消し線付きで並べる */
.sp-receipts span {
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--vs-mist);
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--ha-font-memo);
  text-decoration: line-through 2px rgba(255, 85, 102, 0.85);
}

/* 相手の手番は、DMの「入力中」 */
.hariai-typing-console {
  justify-items: center;
}

.hariai-typing-console .ha-msg {
  justify-self: start;
}

.hariai-typing-console strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vs-pearl);
  font-size: 0.92rem;
}

.hariai-typing-bubble {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 10px 16px;
}

.hariai-typing-bubble .chat-typing-dots i {
  width: 7px;
  height: 7px;
  background: currentColor;
}

/* 対戦スレッドの上のDMの見出し。スクロールしても上に残る */
.hariai-dm-head {
  position: sticky;
  z-index: 6;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(20, 13, 24, 0.94);
  box-shadow: inset 0 0 0 1px rgba(255, 127, 166, 0.35), 0 10px 24px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hariai-dm-face {
  position: relative;
  flex: none;
}

.hariai-dm-face .hariai-dm-avatar {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px #ff4fa0, 0 0 14px rgba(255, 79, 160, 0.45);
}

.hariai-dm-badge {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--ha-ground);
}

.hariai-dm-badge .chat-persona-mark {
  width: 12px;
  height: 12px;
  margin: 0;
  vertical-align: 0;
}

.hariai-dm-who {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 1px;
}

.hariai-dm-who b {
  overflow: hidden;
  color: var(--vs-pearl);
  font-size: 0.92rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hariai-dm-who small {
  color: var(--vs-rose-soft);
  font-size: 0.7rem;
  font-weight: 700;
}

.hariai-dm-who em {
  overflow: hidden;
  color: var(--vs-dim);
  font-size: 0.68rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hariai-dm-reason {
  display: grid;
  flex: none;
  justify-items: end;
  gap: 2px;
  color: var(--vs-mist);
  font: 600 0.68rem/1 var(--vs-font-number);
  letter-spacing: 0.06em;
}

.hariai-dm-reason b {
  color: var(--vs-pearl);
  font-size: 1.05rem;
}

.hariai-dm-reason i {
  display: block;
  width: 64px;
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--vs-rose) var(--reason, 100%), var(--ha-bubble-theirs) var(--reason, 100%));
}

.hariai-persona-chip .chat-persona-mark {
  margin-right: 3px;
}

/* 匿名の間は、レース越しのような吹き出し */
.strategy-chat-panel.is-anonymous .chat-message p.sp-veil {
  position: relative;
  border: 0;
  border-radius: 16px 16px 16px 4px;
  color: var(--vs-pearl);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.07) 0 2px, transparent 3px) 0 0 / 9px 9px, rgba(44, 27, 47, 0.92);
  box-shadow: 0 0 0 1.5px rgba(248, 238, 242, 0.28);
}

.strategy-chat-panel.is-anonymous .chat-message.player-two p.sp-veil {
  border-radius: 16px 4px 16px 16px;
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.07) 0 2px, transparent 3px) 0 0 / 9px 9px, rgba(92, 15, 46, 0.72);
}

.strategy-chat-panel.is-anonymous .chat-message p.sp-veil::before {
  position: absolute;
  inset: -5px;
  border: 1px dashed rgba(248, 238, 242, 0.22);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

/* 正体判明：相手のカードのヴェールが外れる（画面に入った最初の1回だけ） */
.strategy-identity-card.is-opponent {
  position: relative;
  overflow: hidden;
}

.sp-veil-lift {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0 1.5px, transparent 2.5px) 0 0 / 12px 12px, linear-gradient(180deg, rgba(20, 13, 24, 0.4), rgba(20, 13, 24, 0.94));
}

.sp-veil-lift span {
  color: var(--vs-pearl);
  font: 400 clamp(1.1rem, 3.6vw, 1.5rem)/1.4 var(--ha-font-display);
  text-shadow: 0 0 20px rgba(255, 63, 134, 0.7);
}

.strategy-identity-screen:not(.is-refresh) .sp-veil-lift {
  animation: sp-veil-lift 1700ms ease both;
}

.strategy-identity-screen:not(.is-refresh) + .sc-dock .strategy-chat-panel .chat-message p.chat-persona-bubble {
  animation: sp-unveil 1100ms var(--vs-ease-out) 400ms both;
}

/* スマホ・タブレット：チャットは画面下の帯から開く（品評会は画面に置いたまま） */
.sc-dock-peek,
.sc-dock-close {
  display: none;
}

@media (max-width: 900px) {
  .sc-dock {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
  }

  .sc-dock-peek {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 14px;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    color: var(--vs-pearl);
    background: rgba(31, 20, 35, 0.95);
    box-shadow: inset 0 0 0 1px rgba(255, 127, 166, 0.28), 0 10px 26px rgba(0, 0, 0, 0.45);
    font-size: 0.8rem;
    text-align: left;
    pointer-events: auto;
  }

  .sc-dock-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--vs-mist);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sc-dock-text b {
    margin-right: 8px;
    color: var(--vs-violet);
  }

  .sc-dock-text.is-typing {
    color: var(--vs-rose-soft);
  }

  .sc-dock-empty {
    color: var(--vs-dim);
  }

  .sc-dock-label {
    position: relative;
    flex: none;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--vs-gold);
    box-shadow: inset 0 0 0 1px var(--vs-line);
    font-size: 0.74rem;
    font-weight: 700;
  }

  .sc-dock-peek.has-new .sc-dock-label::after {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    content: "";
    background: var(--vs-rose);
    box-shadow: 0 0 0 2px var(--vs-night-2), 0 0 10px var(--vs-rose);
  }

  .sc-dock.is-open {
    pointer-events: auto;
  }

  .sc-dock.is-open::before {
    position: fixed;
    inset: 0;
    content: "";
    background: rgba(0, 0, 0, 0.5);
  }

  .sc-dock-sheet {
    position: fixed;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    max-height: 82dvh;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 22px 22px 0 0;
    background: var(--vs-night-2);
    box-shadow: 0 -1px 0 var(--vs-line), 0 -24px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(105%);
    transition: transform 280ms var(--vs-ease-out), visibility 0s linear 280ms;
  }

  .sc-dock.is-open .sc-dock-sheet {
    visibility: visible;
    transform: none;
    transition: transform 280ms var(--vs-ease-out), visibility 0s;
  }

  .sc-dock-close {
    display: block;
    margin: 0 0 8px auto;
    padding: 8px 12px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--vs-mist);
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 700;
  }

  .sc-dock .strategy-chat-panel {
    width: 100%;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 16px;
    box-shadow: none;
  }

  body:has(.sc-dock) #app {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.sc-dock) .toast {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
}

@keyframes sp-pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

@keyframes sp-seal-press {
  0% { opacity: 0; transform: scale(2.2) rotate(-30deg); }
  60% { opacity: 1; transform: scale(0.92) rotate(16deg); }
  100% { opacity: 1; transform: rotate(12deg); }
}

@keyframes sp-veil-lift {
  0% { opacity: 1; }
  45% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-36px); }
}

@keyframes sp-unveil {
  from { filter: blur(6px); opacity: 0.4; }
  to { filter: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hariai-band.sp-band-ribbon.is-fresh,
  .sp-seal.is-fresh,
  .hariai-typing-bubble .chat-typing-dots i,
  .strategy-identity-screen:not(.is-refresh) .sp-veil-lift,
  .strategy-identity-screen:not(.is-refresh) + .sc-dock .strategy-chat-panel .chat-message p.chat-persona-bubble {
    animation: none;
  }

  .sc-dock-sheet,
  .sc-dock.is-open .sc-dock-sheet {
    transition: none;
  }
}
