/* «Шляпа / Крокодил» — стили поверх ../../shared/party.css */

.hat-hero {
  text-align: center;
  padding: var(--s4) var(--s2) var(--s2);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: center;
}

.hat-hero-title {
  background: linear-gradient(100deg, #ff8a5c 10%, var(--accent) 55%, var(--ok) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hat-hero-sub {
  max-width: 34rem;
}

.hat-kicker {
  color: #ff8a5c;
}

.hat-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
}

.hat-mode {
  padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.hat-mode:first-of-type {
  border-top: none;
  padding-top: 0;
}

.hat-mode--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.hat-mode--split > div {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.hat-mode .p-toggle + .p-hint {
  margin-left: calc(50px + var(--s3));
}

.hat-cats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.hat-cat {
  -webkit-tap-highlight-color: transparent;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg2);
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 650;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 120ms var(--ease-pop);
}

.hat-cat:active {
  transform: scale(0.95);
}

.hat-cat[aria-pressed='true'] {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.hat-team-row {
  padding: var(--s2);
  gap: var(--s2);
}

.hat-team-dot {
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: hsl(var(--team-hue, 215) 70% 55%);
  box-shadow: 0 0 10px hsl(var(--team-hue, 215) 70% 55% / 0.5);
}

.hat-team-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  font-weight: 700;
}

.hat-team-input:focus {
  background: var(--bg2);
}

.hat-stage-label {
  text-align: center;
}

.hat-center {
  text-align: center;
}

/* Handoff */

.hat-handoff {
  text-align: center;
}

.hat-handoff-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
}

.hat-nextround {
  text-align: center;
}

/* Turn */

.hat-turn-screen {
  min-height: calc(100dvh - 90px);
}

.hat-turn-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2);
}

.hat-timer {
  width: min(38vw, 150px);
}

.hat-word {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 160px;
  padding: var(--s4);
}

.hat-word-text {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.hat-turn-actions {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s3);
}

.hat-skip {
  min-height: 58px;
}

.hat-guessed {
  font-size: 1.15rem;
}

.hat-row-winner {
  border-color: rgba(255, 181, 69, 0.55);
  background: var(--accent-soft);
  box-shadow: var(--glow-accent);
}

@media (max-width: 420px) {
  .hat-mode--split {
    grid-template-columns: 1fr;
  }

  .hat-mode .p-toggle + .p-hint {
    margin-left: 0;
  }
}
