/* Groupthink. Everything scoped under .gtk-*. */
.gtk-room { width: min(100%, 350px); display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.gtk-room.enter .gtk-seat { animation: gtk-in .4s cubic-bezier(.2,.8,.2,1) both; }
.gtk-room.enter .gtk-seat:nth-child(2) { animation-delay: .06s; }
.gtk-room.enter .gtk-seat:nth-child(3) { animation-delay: .12s; }
.gtk-room.enter .gtk-seat:nth-child(4) { animation-delay: .18s; }
.gtk-room.enter .gtk-seat:nth-child(5) { animation-delay: .24s; }
.gtk-room.enter .gtk-seat:nth-child(6) { animation-delay: .30s; }
.gtk-room.enter .gtk-plan { animation: gtk-slide .6s .2s cubic-bezier(.2,.8,.2,1) both; }
.gtk-face { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #1A2136; border: 2px solid #3A4466; overflow: hidden; }
.gtk-face svg { display: block; width: 100%; height: 100%; }

/* the head of the table */
.gtk-boss { display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .4s; min-height: 46px; }
.gtk-boss .gtk-face { border-color: var(--gold); }
.gtk-boss b { font-size: 13px; font-weight: 800; color: var(--gold); }
.gtk-boss.gone { opacity: .2; }
.gtk-say { font-size: 14px; font-weight: 700; padding: 6px 10px; border-radius: 12px 12px 12px 4px; background: var(--gold); color: #1B1F2E; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.gtk-say.on { opacity: 1; transform: none; }

/* the table: the plan, and an adviser at each side */
.gtk-table { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 10px 0 12px; }
.gtk-table::before { content: ''; position: absolute; left: 30px; right: 30px; top: 0; bottom: 0; border-radius: 26px; background: #2A2016; border: 2px solid #4A3926; z-index: 0; }
.gtk-plan { position: relative; z-index: 1; margin: 0 40px; padding: 8px 10px; border-radius: 8px; background: #F4EFE6; color: #1B1F2E; box-shadow: 0 3px 0 #0d0a06; }
.gtk-plan small { display: block; font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #D85555; }
.gtk-plan span { font-size: 13px; line-height: 1.3; font-weight: 600; }
.gtk-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 0; }
.gtk-seat { display: flex; align-items: center; gap: 6px; min-height: 48px; text-align: left; }
.gtk-seat:nth-child(even) { flex-direction: row-reverse; text-align: right; }
.gtk-bub {
  font-size: 13px; line-height: 1.2; font-weight: 700; padding: 6px 9px; border-radius: 12px; max-width: 118px;
  opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s cubic-bezier(.3,1.6,.5,1), background .2s;
}
.gtk-bub.on { opacity: 1; transform: none; }
.gtk-bub.nod { background: var(--text); color: #1B1F2E; }
.gtk-bub.nod::before { content: '✓ '; color: #1F9E6E; }
.gtk-bub.think { background: #2B3350; color: var(--text); font-style: italic; font-weight: 600; border: 1.5px dashed var(--violet-bright); }
.gtk-bub.talk { background: var(--violet); color: #fff; }
.gtk-seat.lit .gtk-face { border-color: var(--violet-bright); box-shadow: 0 0 10px rgba(169,155,255,.6); }
.gtk-note { margin-top: 6px; font-size: 12px; color: var(--faint); text-align: center; }

/* the landing */
.gtk-beach { position: relative; width: min(100%, 330px); height: 220px; border-radius: 14px; overflow: hidden; background: #1F5A7A; }
.gtk-land { position: absolute; left: 0; right: 0; top: 0; height: 42%; background: #3E6B3A; }
.gtk-land span, .gtk-sea span { position: absolute; left: 10px; top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.gtk-sea span { top: auto; bottom: 8px; }
.gtk-sand { position: absolute; left: 0; right: 0; top: 42%; height: 14%; background: #CDB98A; }
.gtk-sea { position: absolute; left: 0; right: 0; top: 56%; bottom: 0; }
.gtk-boat { position: absolute; bottom: 10%; left: calc(14% + var(--i) * 20%); width: 34px; height: 12px; border-radius: 0 0 10px 10px; background: #5A4632; transition: transform 1.4s cubic-bezier(.4,0,.2,1); transition-delay: calc(var(--i) * .08s); }
.gtk-beach.go .gtk-boat { transform: translateY(-58px); }
.gtk-man { position: absolute; top: 47%; left: calc(8% + var(--i) * 6.2%); width: 8px; height: 8px; border-radius: 50%; background: #FCC050; opacity: 0; transition: opacity .3s, background .5s, transform .6s; transition-delay: calc(1.2s + var(--i) * .03s); }
.gtk-beach.go .gtk-man { opacity: 1; transform: translateY(-14px); }
.gtk-beach.lost .gtk-man { background: #6E6960; transition-delay: 0s; }
.gtk-tally { position: absolute; right: 10px; top: 10px; padding: 6px 10px; border-radius: 10px; background: rgba(10,14,26,.85); text-align: right; }
.gtk-tally b { display: block; font-family: var(--mono); font-size: 22px; color: var(--text); }
.gtk-tally span { font-size: 12px; color: var(--dim); }
.gtk-tally.on b { color: var(--streak); }

/* your manager */
.gtk-memo { display: flex; align-items: center; gap: 12px; width: min(100%, 320px); }
.gtk-memo .gtk-face { width: 64px; height: 64px; }
.gtk-face.you { border-color: var(--gold); }
.gtk-quote { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--raised); }
.gtk-quote b { font-size: 12px; font-weight: 800; color: var(--gold); }
.gtk-quote span { font-family: var(--serif); font-size: 21px; line-height: 1.25; }

@keyframes gtk-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes gtk-slide { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

@media (max-height: 700px) {
  .gtk-face { width: 36px; height: 36px; }
  .gtk-seat { min-height: 40px; }
  .gtk-grid { gap: 6px 0; }
  .gtk-plan span { font-size: 12px; }
  .gtk-bub { font-size: 12px; padding: 5px 8px; }
  .gtk-table { padding: 8px 0 8px; gap: 6px; }
  .gtk-plan { padding: 6px 9px; }
  .gtk-boss { min-height: 40px; }
  .gtk-beach { height: 190px; }
}
