/* Mülakat: "Toplantı" görüntülü görüşme ekranı (src/view/interview.js). */
.toplanti {
  --tp-bg: #2a2024; --tp-panel: #3a2d31; --tp-ok: #2f7a43; --tp-line: #3b2d25;
  position: absolute; inset: 0; display: grid; gap: 12px; padding: 14px 18px 18px;
  grid-template: "bar bar" auto "rounds rounds" auto "stage side" 1fr "ctl ctl" auto / 1fr 260px;
  background: var(--tp-bg); color: var(--paper); font-family: "Fira Sans", system-ui, sans-serif;
  animation: tp-in .35s var(--ease) both;
}
.toplanti.is-leaving { animation: tp-out .24s ease-in both; }
@keyframes tp-in { from { opacity: 0; transform: scale(.98); } }
@keyframes tp-out { to { opacity: 0; } }

.tp-bar { grid-area: bar; display: flex; align-items: center; gap: 14px; }
.tp-logo { font-family: var(--head); font-size: 20px; background: var(--paper); color: var(--ink); padding: 2px 10px; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); rotate: -2deg; }
.tp-title { font-weight: 700; font-size: 14px; opacity: .8; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-rec { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; }
.tp-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--dop); animation: tp-blink 1.4s steps(2) infinite; }
@keyframes tp-blink { 50% { opacity: .2; } }

.tp-rounds { grid-area: rounds; display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tp-rounds li { flex: 1; padding: 6px 10px; border: 2px solid #5a4a4e; border-radius: 6px; font-weight: 700; font-size: 13px; color: #b9a8ab; }
.tp-rounds li.is-done { border-color: var(--tp-ok); color: #9fd3a8; }
.tp-rounds li.is-done b::after { content: " ✓"; }
.tp-rounds li.is-now { background: var(--dop-2); border-color: var(--ink); color: var(--ink); box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }

.tp-stage { grid-area: stage; position: relative; min-height: 0; }
.tp-tile { margin: 0; position: absolute; overflow: hidden; border: 2px solid var(--ink); border-radius: 12px; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .42); }
.tp-tile .tp-art, .tp-tile svg { width: 100%; height: 100%; display: block; }
.tp-tile.them { inset: 0; }
.tp-tile.me { right: 14px; bottom: 14px; width: min(32%, 280px); aspect-ratio: 16 / 10; z-index: 1; rotate: 1deg; }
.tp-name { position: absolute; left: 10px; bottom: 10px; background: rgba(20, 14, 14, .78); color: var(--paper); font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 5px; }
.tp-tile svg .poster { font: 900 11px "Fira Sans", sans-serif; fill: var(--tp-line); letter-spacing: .04em; }

.tp-bubble { position: absolute; left: 18px; top: 16px; max-width: min(62%, 460px); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; box-shadow: 0 2px 12px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
.tp-bubble::after { content: ""; position: absolute; left: 34px; bottom: -13px; width: 18px; height: 18px; background: var(--paper); border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.tp-bubble b { font-family: var(--head); font-weight: 400; font-size: clamp(15px, 2vw, 22px); line-height: 1.2; }
.tp-bubble.pop { animation: tp-pop .38s var(--spring) both; }
@keyframes tp-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* Kamera kapalı: kendi karon siyah, üstünde yazı. */
.tp-camoff { position: absolute; inset: 0; display: none; place-items: center; background: #151012; color: #b9a8ab; font-weight: 700; font-size: 14px; }
.is-camoff .tp-camoff { display: grid; }
.is-camoff .tp-note { visibility: hidden; }

/* Annen arkadan geçer. */
.mom-pass { visibility: hidden; }
.is-mom .mom-pass { visibility: visible; animation: tp-mom 6s 2.2s linear both; }
.is-camoff .mom-pass { animation: none; }
@keyframes tp-mom { from { transform: translate(-60px, 0); } to { transform: translate(380px, 0); } }

/* Kritik sıçış: internet donar. */
.tp-freeze { position: absolute; inset: 0; display: none; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--paper); background: rgba(20, 14, 14, .35); text-shadow: 0 1px 6px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); }
.is-frozen .them .tp-freeze { display: grid; }
.is-frozen .them .tp-art { filter: contrast(1.6) saturate(.4) blur(1.2px); animation: tp-glitch .5s steps(3) infinite; }
@keyframes tp-glitch { 0% { transform: translate(0); clip-path: inset(0 0 0 0); } 33% { transform: translate(-6px, 2px); clip-path: inset(20% 0 30% 0); } 66% { transform: translate(5px, -3px); clip-path: inset(0 0 60% 0); } }

.tp-side { grid-area: side; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.tp-nerves { background: var(--tp-panel); border: 2px solid #5a4a4e; border-radius: 8px; padding: 10px; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; }
.tp-nerves small { grid-column: 1 / -1; font-weight: 900; font-size: 11px; letter-spacing: .01em; opacity: .75; }
.tp-meter { height: 16px; border: 2px solid var(--ink); border-radius: 5px; background: #1a1315; overflow: hidden; }
.tp-meter i { display: block; height: 100%; background: linear-gradient(90deg, #ffd34d, var(--dop)); transition: width .8s var(--ease); }
.tp-nerves-t { font-weight: 900; font-size: 13px; }
[data-nerves="Panik"] .tp-meter i { animation: tp-shake .3s linear infinite; }
@keyframes tp-shake { 50% { transform: translateX(-2px); } }
.tp-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.tp-mod { font-weight: 700; font-size: 13px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 6px; background: #d6f0d6; color: var(--ink); }
.tp-mod.down { background: #ffd6cf; }
.tp-mod.spare { background: #ffe9a8; border-style: dashed; }
.tp-mod.spare.is-used { background: transparent; color: #ffe9a8; border-color: #ffe9a8; }
.tp-mods .mod { color: var(--ink); font-size: 13px; padding: 4px 8px; border-radius: 6px; animation: none; }
.tp-mods .mod.is-over { opacity: .6; }
.mod.is-rookie-cap { border-style: dashed; } /* Tur 8 Y1: acemiliğin yediği hazırlık, dice-card.js splitRookie */
.tp-mods .mod.cap { color: var(--paper); } /* "taban −3" koyu zeminde okunur */
.tp-mods-t { flex-basis: 100%; font-weight: 900; font-size: 11px; letter-spacing: .01em; opacity: .75; }
.tp-mod.none { background: transparent; color: #b9a8ab; border-color: #5a4a4e; }
.tp-note { margin: 0; font-size: 14px; line-height: 1.4; color: #d9c7c9; font-style: italic; }

.tp-controls { grid-area: ctl; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tp-ctl { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--tp-panel); color: var(--paper); font: 700 15px "Fira Sans", sans-serif; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); cursor: pointer; transition: transform .12s, background .15s; }
.tp-ctl svg { width: 22px; height: 22px; flex: none; }
.tp-ctl small { font-family: var(--mono); font-size: 11px; opacity: .75; }
.tp-ctl:hover:not(:disabled) { transform: translateY(-2px); background: #4a3a3f; }
.tp-ctl.primary, .tp-ctl.cam { background: var(--tp-ok); }
.tp-ctl.cam:not(.primary) { background: var(--tp-panel); }
.tp-ctl.primary:hover:not(:disabled) { background: #3a8f52; }
.tp-ctl.mic { width: 52px; padding: 0; justify-content: center; cursor: default; opacity: .7; }
.tp-ctl:disabled { opacity: .5; cursor: default; }
.tp-ctl:focus-visible { outline: 3px solid var(--dop-2); outline-offset: 3px; }
/* Dokunmatikte seçilen cevap (ikinci dokunuş söyler): sarı çerçeve, yanında küçük "tekrar dokun" notu. */
.tp-ctl.is-armed, .tp-ctl.is-armed:hover:not(:disabled) { background: var(--dop-2); color: var(--ink); transform: translateY(-2px); }
.tp-controls:has(.is-armed) .tp-ctl:not(.is-armed):focus-visible { outline: none; } /* dokunmatikte tek vurgu: seçili cevap (Tur 6 V10) */
.tp-ctl.is-armed small::after { content: " · tekrar dokun"; font-family: "Fira Sans", sans-serif; }
/* Hazırlıkla açılan cevap (Tur 8 Y22): "Toparlan hakkı" çipiyle aynı sarı kâğıt etiket. */
.tp-prep { flex: none; font: italic 700 11px "Fira Sans", sans-serif; padding: 1px 6px; border: 2px dashed var(--ink); border-radius: 5px; background: #ffe9a8; color: var(--ink); rotate: -2deg; }

/* Teklif balonu: konfeti buradan patlar. */
.tp-offer { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2; width: min(90%, 380px); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 16px 18px; box-shadow: 0 3px 18px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16), 0 0 0 4px #ffd34d; text-align: center; display: grid; gap: 4px; animation: tp-pop .5s var(--spring) both; }
.tp-offer small { font-family: var(--mono); font-weight: 700; font-size: 11px; color: var(--ink-soft); }
.tp-offer b { font-family: var(--head); font-weight: 400; font-size: 30px; }

/* Red: toplantıdan atılma ekranı. */
.toplanti.is-left { place-items: center; grid-template: 1fr / 1fr; background: #1d1719; }
.tp-left { display: grid; gap: 10px; justify-items: center; text-align: center; }
.tp-left b { font-family: var(--head); font-weight: 400; font-size: clamp(22px, 4vw, 34px); }
.tp-left span { font-size: 14px; color: #b9a8ab; }
.tp-left p { margin: 8px 0 0; font-size: 15px; }
.tp-stars { display: flex; gap: 4px; color: #b9a8ab; }
.tp-stars svg { width: 26px; height: 26px; }
.tp-back { margin-top: 10px; padding: 10px 22px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); color: var(--ink); font: 700 15px "Fira Sans", sans-serif; box-shadow: 0 2px 9px rgba(40, 24, 14, .24), 0 1px 1px rgba(40, 24, 14, .16); cursor: pointer; }

@media (max-width: 760px) {
  .toplanti { grid-template: "bar" auto "rounds" auto "stage" minmax(220px, 1fr) "side" auto "ctl" auto / 1fr; padding: 10px 16px 14px; gap: 10px; overflow-y: auto; }
  .tp-title { display: none; }
  .tp-rounds li { padding: 4px 6px; font-size: 12px; }
  .tp-tile.me { width: 42%; right: 8px; bottom: 8px; }
  .them .tp-name { max-width: 50%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-bubble { left: 10px; top: 10px; max-width: 80%; padding: 8px 10px; }
  .tp-side { gap: 8px; }
  .tp-note { display: none; }
  .tp-ctl { flex: 1 1 100%; justify-content: center; min-height: 48px; }
  .tp-ctl.mic { display: none; }
}

/* Hareketi azalt: oyuncu ayarı ya da işletim sistemi; ikisi de html.az-hareket olur (a11y/apply.js). */
.az-hareket .toplanti, .az-hareket .tp-bubble.pop, .az-hareket .tp-offer, .az-hareket .tp-rec i, .az-hareket [data-nerves="Panik"] .tp-meter i { animation: none; }
.az-hareket .is-mom .mom-pass { animation: none; transform: translate(40px, 0); }
.az-hareket .is-frozen .them .tp-art { animation: none; }
