/* 本音ジャッジ・ショー */
.honne-intro, .honne-round, .honne-results { display: grid; gap: 10px; }
.honne-stage {
  --honne-gold: #ffe0a2;
  --honne-pink: #ff98bc;
  --honne-teal: #8af0e4;
  position: relative;
  aspect-ratio: 1080 / 1210;
  border-radius: var(--r-card);
  isolation: isolate;
  overflow: hidden;
  container-type: inline-size;
  background: #241421 var(--honne-art) center top / 100% auto no-repeat;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-plum-card);
}
.honne-round { grid-template-rows: minmax(252px, 1fr) auto; }
.honne-round .honne-stage {
  --honne-host-width: clamp(110px, 32cqw, 140px);
  aspect-ratio: auto;
  background-size: 100% calc(100% * 1918 / 1210);
}
.honne-screen {
  position: absolute;
  z-index: 1;
  inset: 25.8% 7.6% 32% 8.3%;
  display: grid;
  justify-items: center;
  align-content: center;
  border: 3px solid #d58b71;
  border-radius: 10% / 16%;
  background: radial-gradient(ellipse at 50% 5%, #412644, #221224 70%);
  box-shadow: 0 0 14px #ffba8570, inset 0 0 10px #0f0812;
  text-align: center;
}
.honne-bulbs {
  position: absolute;
  inset: -2px;
  z-index: 2;
  pointer-events: none;
  --bulb-color: #ffe6a8;
}
.honne-bulbs i {
  position: absolute;
  width: clamp(4px, 1.45cqw, 7px);
  aspect-ratio: 1;
  offset-path: inset(0 round 10% / 16%);
  background: var(--bulb-color);
  border-radius: 50%;
  box-shadow: 0 0 3px var(--bulb-color);
}
.honne-bulbs .is-off { background: #432532; box-shadow: 0 0 0 1px #6b454e; }
.honne-round[data-final] .honne-bulbs { --bulb-color: #ff6f78; }
.honne-round[data-phase="listen"] .honne-bulbs { animation: honne-bulb 1.6s ease-in-out infinite alternate; }
.honne-lights {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  --beam: #ffda9c76;
}
.honne-lights i {
  position: absolute;
  inset: 2% auto auto 49%;
  width: 48%;
  height: 93%;
  transform: translateX(-50%) rotate(0deg);
  transform-origin: 50% 0;
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  background: linear-gradient(var(--beam), transparent 90%);
  opacity: .16;
}
.honne-lights i:nth-child(2) { left: 13%; transform: translateX(-50%) rotate(-25deg); --beam: #ff89b289; }
.honne-lights i:nth-child(3) { left: 89%; transform: translateX(-50%) rotate(25deg); --beam: #75f3ed89; }
.honne-round[data-phase="listen"] .honne-lights i { height: 64%; opacity: .65; }
.honne-round[data-world="fluster"] .honne-lights { --beam: #ffa38580; }
.honne-round[data-fever] .honne-lights i { opacity: .72; }
.honne-round[data-outcome="hit"]:not([data-fever]) .honne-lights i { animation: none; opacity: .13; }
.honne-round[data-outcome="hit"][data-side="0"] .honne-lights i:nth-child(2) {
  animation: none; opacity: 1; transform: translateX(-50%) rotate(-17deg);
}
.honne-round[data-outcome="hit"][data-side="1"] .honne-lights i:nth-child(3) {
  animation: none; opacity: 1; transform: translateX(-50%) rotate(6deg);
}
.honne-host {
  position: absolute;
  z-index: 3;
  left: 12%;
  bottom: 5.5%;
  width: clamp(110px, 32cqw, 140px);
  translate: -50%;
}
.honne-round .honne-host { left: 18px; bottom: 21%; width: var(--honne-host-width); translate: none; }
.honne-host > .mg-doki, .honne-host .mg-mirror { display: block; width: 100%; height: auto; }
.honne-host > .mg-doki { animation: mg-mirror-breathe 3s ease-in-out infinite; }
.honne-round[data-fever] .honne-host img,
.honne-gold .mg-mirror-motion { filter: drop-shadow(0 0 4px #ffdc73); }
.honne-round[data-fever] .honne-host .mg-mirror-motion::after {
  content: '';
  position: absolute;
  inset: 49% 21% 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #ffca3bdf, #ffdb3350 48%, transparent 72%);
  opacity: .45;
}
.honne-marquee {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 8px;
  color: var(--ivory);
  font: 700 clamp(19px, 6.4cqw, 31px)/1.3 var(--font-ui-title);
  text-shadow: 0 2px 0 #7c3053, 0 0 12px #ffc57a60;
  text-wrap: balance;
}
.honne-player {
  position: absolute;
  inset: 1.8%;
  display: grid;
  place-items: center;
  border-radius: 8% / 14%;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 50% 16%, #4e3c58, #281a36 64%, #190f25);
}
.honne-player .cast-portrait {
  display: block;
  width: auto;
  height: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background: transparent;
  mask-image: radial-gradient(ellipse 48% 70% at 50% 56%, #000 55%, transparent);
}
.honne-player .cast-portrait img { filter: brightness(.8) saturate(.86); }
.honne-player::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, transparent 22%, #25153277 57%, #1a1029aa 100%);
}
.honne-poster { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: brightness(.33); }
.honne-ellipsis { position: relative; font-size: clamp(32px, 11cqw, 54px); color: var(--ivory); }
.honne-clock, .honne-progress-panel {
  position: absolute;
  color: var(--ivory);
  background: #241825;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font: 800 var(--text-sm)/1.2 var(--mg-digits);
  font-variant-numeric: tabular-nums;
}
.honne-clock { z-index: 3; bottom: 7%; right: 4%; min-width: 3.45ch; padding: 4px 7px; }
.honne-round[data-final] .honne-clock { color: #ff9ba0; border-color: #ff9ba0; }
.honne-progress-panel {
  z-index: 3;
  left: 3%;
  top: 4%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
}
.honne-marks {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.honne-marks li { display: grid; place-items: center; }
.honne-round-marks li { width: 15px; height: 15px; }
.honne-marks i { width: 5px; height: 5px; border-radius: 50%; background: #a58d9f; }
.honne-marks svg, .honne-choices span svg { width: 100%; height: auto; stroke: currentColor; stroke-width: 4; stroke-linecap: round; }
.honne-result-marks { width: min(92%, 270px); margin: 4px 0; }
.honne-result-marks li {
  gap: 1px;
  padding: 3px 1px;
  border: 1px solid #78546c;
  border-radius: 5px;
  background: #2f2030;
}
.honne-result-marks b { color: var(--ivory); font: 800 12px/1 var(--mg-digits); }
.honne-result-marks svg { max-width: 18px; }
.honne-marks [data-outcome="hit"] { color: #8affb1; }
.honne-marks [data-outcome="miss"] { color: #ffa0a9; }
.honne-focus-call {
  position: absolute;
  z-index: 3;
  left: 2.5%;
  bottom: 26%;
  padding: 4px 7px;
  border: 1px solid #a58067;
  border-radius: var(--r-pill);
  color: #ffe0a2;
  background: #322033;
  font: 800 var(--text-xs)/1.2 var(--font-ui-title);
}
.honne-fever {
  position: absolute;
  z-index: 3;
  top: 12%;
  left: 50%;
  translate: -50%;
  rotate: -3deg;
  padding: 5px 20px;
  background: #f4c76c;
  color: #321d2a;
  border: 1px solid #fff3c6;
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%);
  font: 900 18px/1.2 var(--mg-digits);
  white-space: nowrap;
}
.honne-round { touch-action: pan-y; }
.honne-choices {
  position: absolute;
  z-index: 4;
  inset: auto 4% 3% 4%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.honne-choices button {
  --podium: var(--honne-pink);
  display: grid;
  grid-template-columns: minmax(10px, auto) minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-height: clamp(54px, 15cqw, 70px);
  padding: 6px;
  border: 1px solid var(--podium);
  border-radius: 12px;
  color: var(--ivory);
  background: linear-gradient(160deg, #59263f, #3b2033);
  box-shadow: inset 0 2px 0 #fff3, 0 3px 0 #321729;
  font: 750 clamp(14px, 4cqw, 16px)/1.35 var(--f-ja);
  text-align: left;
  overflow-wrap: anywhere;
  line-break: strict;
  touch-action: pan-y;
  user-select: none;
  position: relative;
}
.honne-choices button:nth-child(2) {
  --podium: var(--honne-teal);
  background: linear-gradient(160deg, #19524f, #173638);
  box-shadow: inset 0 2px 0 #fff3, 0 3px 0 #102e33;
}
.honne-choices button span { color: var(--podium); font: 900 16px/1 system-ui; }
.honne-choices span svg { display: block; width: 17px; }
.honne-answering .honne-choices button:active { translate: 0 2px; }
.honne-choices button.honne-answer {
  --podium: #8affb1;
  background: linear-gradient(155deg, #275d43, #133728);
  box-shadow: 0 0 0 2px #8affb1, 0 0 16px #59ff9c9c;
}
.honne-choices button.honne-miss {
  --podium: #ffa0a9;
  background: linear-gradient(155deg, #8b3343, #541d30);
  box-shadow: 0 0 0 2px #ff7185, 0 0 16px #ff4f647d;
}
.honne-round[data-outcome="miss"] .honne-answer { animation: honne-reveal .54s ease-in-out 2 alternate; }
@keyframes honne-reveal {
  from { box-shadow: 0 0 0 2px #8affb1, 0 0 22px #59ff9ce0; }
  to { box-shadow: 0 0 0 1px #8affb1, 0 0 5px #59ff9c50; }
}
.honne-judgment-stamp {
  --stamp-size: clamp(72px, 23cqw, 104px);
  position: absolute;
  z-index: 2;
  inset: auto auto calc(100% + 5px) 50%;
  translate: -50%;
  width: var(--stamp-size);
  height: var(--stamp-size);
  border-radius: 50%;
  background: #1f432deb;
  box-shadow: 0 3px 0 #130c18ad, 0 0 20px #63ffad80;
  color: #aaffbf;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  pointer-events: none;
  animation: honne-judgment-stamp .32s cubic-bezier(.24,.75,.35,1) both;
}
.honne-round[data-outcome="miss"] .honne-judgment-stamp {
  color: #ffabb3;
  background: #642334f2;
  box-shadow: 0 3px 0 #130c18ad, 0 0 20px #ff637589;
}
@keyframes honne-judgment-stamp {
  0% { transform: scale(1.42) rotate(-14deg); opacity: .45; }
  52% { transform: scale(.94) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-9deg); }
}
.honne-answer-tag, .honne-score-pop {
  position: absolute;
  z-index: 3;
  inset: -15px 6px auto auto;
  padding: 3px 8px;
  border: 1px solid #aaffbf;
  border-radius: var(--r-pill);
  background: #153d28;
  color: #aaffbf;
  font: 900 13px/1.15 var(--f-ja);
}
.honne-score-pop {
  font: 900 20px/1 var(--mg-digits);
  animation: honne-score-rise .6s ease-out both;
}
@keyframes honne-score-rise {
  from { transform: translateY(7px) scale(.78); }
  40% { transform: translateY(-11px) scale(1.15); }
  to { transform: translateY(-17px); }
}
.honne-confetti { position: absolute; z-index: 5; inset: 0; overflow: hidden; pointer-events: none; }
.honne-confetti i {
  position: absolute;
  left: 42%;
  top: 79%;
  width: 6px;
  height: 9px;
  border-radius: 2px;
  opacity: 0;
  animation: honne-confetti .83s var(--delay) ease-out both;
}
.honne-confetti[data-side="1"] i { left: 79%; }
.honne-line {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  text-align: center;
  overflow-wrap: anywhere;
}
.honne-line :is(h3, p), .honne-call { margin: 0; }
.honne-line h3 { font: 800 var(--text-xs)/1.35 var(--font-ui-title); color: var(--mg-key); }
.honne-line p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.45; }
.honne-line p[lang="ko"] { color: var(--ivory); font: 800 var(--text-md)/1.28 var(--f-ko); }
.honne-fallback { color: var(--mg-key); font-size: var(--text-xs); }
.honne-response { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.honne-continuation {
  margin: 0;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ivory);
  font-size: var(--text-xs);
  line-height: 1.35;
}
.mg-view:not([data-mg-phase="judgment"]) .honne-continuation { display: none; }
.honne-call { font: 800 var(--text-md)/1.3 var(--font-ui-title); text-align: center; color: var(--mg-key); }
.honne-round[data-outcome="hit"] .honne-call { color: #ffe0a2; }
.honne-works { display: grid; gap: 6px; }
.honne-result-actions { grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; }
.honne-works-jump {
  display: grid; place-items: center; justify-self: center;
  width: 44px; min-height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--mg-key-line); color: var(--mg-key); background: var(--surface-2);
  font: 800 24px/1 system-ui;
}
.honne-works h3 { scroll-margin-top: 5px; }
.honne-works h3 { margin: 0; color: var(--mg-key); font: 800 var(--text-sm)/1.35 var(--font-ui-title); }
.honne-work {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 60px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 6px 10px;
  background: var(--surface-2);
  color: var(--ivory);
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.honne-work img { width: 42px; height: 48px; border-radius: var(--r-sm); object-fit: cover; }
.honne-work strong, .honne-work > span > span, .honne-work b { display: block; line-height: 1.35; font-size: var(--text-xs); }
.honne-work > span > span { color: var(--mg-muted); }
.honne-work b { color: var(--mg-key); }
.honne-work:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.honne-select-meta, .honne-milestones {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  color: var(--ivory);
  font-size: var(--text-sm);
}
.honne-select-meta p { margin: 0; }
.honne-select-meta strong, .honne-milestones strong { color: #ffe0a2; }
.honne-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.honne-stages button {
  display: grid;
  place-content: center;
  gap: 3px;
  min-height: 52px;
  border: 1px solid #986a87;
  border-radius: 9px;
  color: var(--ivory);
  background: var(--surface-2);
  font: 800 var(--text-md)/1 var(--mg-digits);
}
.honne-stages button[aria-pressed="true"] { border-color: #ffe0a2; background: #59334b; }
.honne-stages small { min-height: 14px; color: #ffe0a2; font: 700 var(--text-xs)/1 system-ui; }
.honne-stages button:disabled { color: var(--text-muted); background: #2b1c2c; border-color: #6d5268; }
.honne-lock { display: inline-block; width: 10px; height: 8px; position: relative; margin-top: 5px; border-radius: 2px; background: var(--text-muted); }
.honne-lock::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 2px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--text-muted);
  border-radius: 6px 6px 0 0;
}
.honne-intro .mg-reward-summary { justify-self: center; color: var(--text-muted); font-size: var(--text-xs); }
.honne-intro > .honne-stage {
  max-height: max(274px, calc(100dvh - 374px - var(--safe-t) - var(--safe-b)));
  background-size: 100% calc(100% * 1918 / 1210);
}
.honne-milestones progress { width: 100%; height: 8px; accent-color: #f2cc7b; }
.honne-ssr { color: #ffe0a2; font-weight: 800; }
.honne-results .honne-marquee { font-size: clamp(17px, 5.4cqw, 26px); }
.honne-results .mg-stars { margin: 1px 0; line-height: 1; }
.honne-results .mg-result-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.honne-results .honne-host { width: clamp(120px, 37cqw, 140px); left: 14%; }
.honne-gold-hat { position: absolute; top: 3.5%; left: 27%; width: 31%; height: 19%; rotate: -11deg; }
.honne-gold-hat i {
  position: absolute;
  inset: 0 12% 14%;
  border: 1px solid #fff1b3;
  border-radius: 25% 23% 8% 8%;
  background: linear-gradient(100deg, #9f621b, #fff2ae 52%, #d4871a 72%, #ffec99);
  box-shadow: inset 0 -6px #b77622;
}
.honne-gold-hat::after {
  content: '';
  position: absolute;
  inset: 72% -7% 0;
  border-radius: 50%;
  background: linear-gradient(#fff4ae, #b57020);
  box-shadow: 0 0 8px #ffda6a;
  animation: honne-gold .8s ease-in-out infinite alternate;
}
.mg-count-stage:has(.honne-stage)::after { background: #160e2180; }
.mg-count-stage > .honne-stage {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}
.mg-count-stage .honne-screen { display: none; }
.mg-count-stage .honne-host { top: 105.5cqw; bottom: auto; translate: -50% -100%; }
.honne-opening { display: none; }
.mg-count-in[data-beat="go"] .honne-opening {
  display: block;
  position: absolute;
  z-index: 2;
  top: 64%;
  inset-inline: 16px;
  margin: 0;
  color: var(--ivory);
  text-align: center;
  background: #241825;
  border-radius: var(--r-pill);
  padding: 9px 12px;
  font: 700 var(--text-md)/1.25 var(--font-ui-title);
}
.mg-dialog[data-game="honne"] .mg-count-face .mg-doki { visibility: hidden; }
.mg-paused .honne-stage * { animation-play-state: paused !important; }

.honne-round[data-phase="finale"] { grid-template-rows: minmax(252px, 1fr); }
.honne-round[data-phase="finale"] .honne-lights {
  background: radial-gradient(ellipse at 50% 18%, #ffe2a449, transparent 77%);
}
.honne-round[data-phase="finale"] .honne-lights i { opacity: 1; }
.honne-round[data-phase="finale"] .honne-host {
  left: 50%;
  bottom: 15%;
  width: clamp(170px, 58cqw, 220px);
  translate: -50%;
}
.honne-round[data-phase="finale"] .honne-host > .mg-doki {
  transform-origin: 50% 89%;
  animation: honne-bow 1.5s ease-in-out both;
}
@media (max-height: 720px) {
  .honne-intro > .honne-stage {
    max-height: max(218px, calc(100dvh - 425px - var(--safe-t) - var(--safe-b)));
  }
  .honne-results .honne-stage {
    aspect-ratio: 5 / 4;
    background-size: 100% calc(100% * 1918 / 1210);
  }
  .honne-results:has(.mg-shortening) .honne-stage {
    max-height: clamp(212px, calc(100dvh - 440px), 260px);
  }
  .honne-results:has(.mg-shortening) .honne-screen { inset-block: 15% 13%; }
}
@media (max-height: 640px) {
  .honne-intro > .honne-stage { aspect-ratio: auto; height: 218px; }
  .honne-results .honne-stage { aspect-ratio: auto; height: 220px; }
  .honne-results .honne-screen { inset-block: 15% 13%; }
  .honne-results .mg-stars { font-size: 34px; }
  .honne-results .mg-result-score { font-size: 36px; }
}
@media (prefers-reduced-motion: no-preference) {
  .mg-view[data-mg-phase="transition"] .honne-line { animation: mg-question-out .38s ease-in both; }
}
.honne-curtain { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.honne-curtain i {
  --curtain-edge: -102%;
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(50% + 1px);
  border-inline-end: 2px solid #e8b06d;
  border-bottom: 4px solid #e8b06d;
  background: repeating-linear-gradient(90deg, #431326, #8b2648 12%, #a63c57 18%, #4c152e 30%);
  box-shadow: 0 0 14px #24101d;
  transform: translateX(var(--curtain-edge));
  animation: honne-curtain .72s cubic-bezier(.25,.65,.3,1) both;
}
.honne-curtain i + i {
  --curtain-edge: 102%;
  inset-inline: auto 0;
  border-inline: 2px solid #e8b06d;
}

@keyframes honne-curtain {
  from { transform: none; }
  to { transform: translateX(var(--curtain-edge)); }
}
@keyframes honne-bow {
  0%, 38%, 100% { transform: none; }
  57%, 70% { transform: translateY(7%) scaleY(.82) rotate(-8deg); }
}
.honne-round[data-phase="finale"] .honne-screen { background: radial-gradient(ellipse at 50% 35%, #965575, #3b2349 75%); }
.honne-finale-confetti i { left: 50%; top: 62%; animation-delay: calc(.5s + var(--delay)); }
@keyframes honne-bulb { from { opacity: .64; } to { opacity: 1; } }
@keyframes honne-gold { from { opacity: .52; } to { opacity: 1; } }
@keyframes honne-confetti {
  0% { opacity: 0; transform: none; }
  12% { opacity: 1; }
  66% { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--turn)); }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 35px)) rotate(var(--turn)); }
}
@media (prefers-reduced-motion: reduce) {
  .honne-stage * { animation: none !important; transition: none !important; }
  .honne-answering .honne-choices button:active { translate: none; }
  .honne-round[data-fever] .honne-lights { background: radial-gradient(ellipse at top, #ffd88255, transparent 67%); }
}
