:root {
  --tw-ink: #252044;
  --tw-muted: #6b667d;
  --tw-paper: rgba(255, 255, 255, 0.94);
  --tw-line: rgba(43, 37, 77, 0.15);
  --tw-pink: #f34f87;
  --tw-coral: #ff735f;
  --tw-yellow: #ffc94e;
  --tw-mint: #62cfac;
  --tw-cyan: #49bde0;
  --tw-violet: #9878df;
  --tw-navy: #2b295f;
}

body:has(.tier-wolf-app),
body:has(.tier-wolf-home) {
  min-height: 100vh;
  color: var(--tw-ink);
  background:
    linear-gradient(rgba(255, 252, 248, 0.2), rgba(255, 252, 248, 0.38)),
    url("/assets/tier-wolf/tier-wolf-party-studio.webp?v=20260726-tier-wolf-1") center top / cover fixed no-repeat,
    #fff7ec;
}

.tier-wolf-home {
  min-height: 100vh;
  background: transparent;
}

.tier-wolf-home .public-nav,
.tier-wolf-home .public-footer {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.tier-wolf-home-hero {
  align-items: center;
}

.tier-wolf-home-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.tier-wolf-home-title img {
  width: 124px;
  height: 124px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(47, 38, 83, 0.2);
}

.tier-wolf-home-title h1 {
  margin: 4px 0 0;
  color: var(--tw-ink);
  font-size: clamp(2.5rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0;
}

.tier-wolf-home-title .eyebrow {
  color: #bd255f;
}

.tier-wolf-home .home-copy > p {
  color: #504b64;
  font-weight: 700;
  line-height: 1.9;
}

.tier-wolf-home .home-points span:nth-child(1) {
  background: #ffe9a6;
}

.tier-wolf-home .home-points span:nth-child(2) {
  background: #dff8ee;
}

.tier-wolf-home .home-points span:nth-child(3) {
  background: #e5f5fc;
}

.tier-wolf-home .play-card {
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, var(--tw-pink), var(--tw-yellow), var(--tw-mint), var(--tw-cyan), var(--tw-violet)) 1;
  background: rgba(255, 255, 255, 0.96);
}

.tier-wolf-app {
  width: min(1500px, calc(100% - 28px));
  margin: 14px auto 48px;
  padding: 0;
  background: transparent;
}

.tier-wolf-app .topbar {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 10px 30px rgba(43, 34, 72, 0.13);
  backdrop-filter: blur(14px);
}

.tier-wolf-app .topbar .title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier-wolf-app .topbar .title img {
  border-radius: 8px;
}

.tier-wolf-app .topbar h1 {
  color: var(--tw-ink);
  font-size: 1.35rem;
}

.tier-wolf-app .topbar .badge {
  border-color: rgba(243, 79, 135, 0.25);
  background: #fff0f6;
  color: #a82457;
}

.tier-wolf-lobby {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.tier-wolf-lobby > .panel {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 34px rgba(43, 35, 72, 0.14);
  backdrop-filter: blur(15px);
}

.tier-wolf-lobby-main {
  position: relative;
  overflow: hidden;
  border-top: 5px solid transparent !important;
  border-image: linear-gradient(90deg, var(--tw-coral), var(--tw-yellow), var(--tw-mint), var(--tw-cyan), var(--tw-violet)) 1 !important;
}

.tier-wolf-room-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 9px 13px;
  border: 1px solid rgba(73, 189, 224, 0.28);
  border-radius: 8px;
  background: #edf9fc;
}

.tier-wolf-room-code span {
  color: #187690;
  font-size: 0.75rem;
  font-weight: 900;
}

.tier-wolf-room-code strong {
  font-size: 1.2rem;
  letter-spacing: 0.14em;
}

.tier-wolf-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.tier-wolf-player-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 66px;
  padding: 10px;
  border: 1px solid var(--tw-line);
  border-radius: 8px;
  background: #fff;
}

.tier-wolf-player-grid article > span {
  min-width: 0;
}

.tier-wolf-player-grid article > span strong,
.tier-wolf-player-grid article > span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-wolf-player-grid article > span strong {
  font-size: 0.92rem;
}

.tier-wolf-player-grid article > span small {
  margin-top: 3px;
  color: #39836c;
  font-size: 0.68rem;
  font-weight: 800;
}

.tier-wolf-player-grid article > b {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff1b5;
  color: #705500;
  font-size: 0.7rem;
}

.tier-wolf-player-grid article.is-away {
  opacity: 0.55;
}

.tier-wolf-lobby-settings {
  border-top: 5px solid var(--tw-pink) !important;
  text-align: center;
}

.tier-wolf-settings-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: #b32159;
  font-size: 0.75rem;
  font-weight: 900;
}

.tier-wolf-lobby-settings h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.tier-wolf-round-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tier-wolf-round-options button {
  display: grid;
  min-width: 0;
  min-height: 82px;
  padding: 10px 4px;
  border: 2px solid rgba(43, 37, 77, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--tw-ink);
  box-shadow: none;
}

.tier-wolf-round-options button strong {
  font-size: 1.65rem;
  line-height: 1;
}

.tier-wolf-round-options button span {
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 800;
}

.tier-wolf-round-options button.is-selected {
  border-color: var(--tw-pink);
  background: #fff0f6;
  box-shadow: 0 0 0 3px rgba(243, 79, 135, 0.12);
  color: #a82457;
}

.tier-wolf-lobby-settings > p {
  margin: 18px 0;
  color: var(--tw-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.7;
}

.tier-wolf-game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 14px;
}

.tier-wolf-main {
  min-width: 0;
}

.tier-wolf-side {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 12px;
}

.tier-wolf-phase-rail,
.tier-wolf-secret,
.tier-wolf-action-panel,
.tier-wolf-reveal,
.tier-wolf-board,
.tier-wolf-voting,
.tier-wolf-round-result,
.tier-wolf-final-result,
.tier-wolf-players-panel,
.tier-wolf-guide-panel,
.tier-wolf-wait {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(43, 36, 72, 0.12);
  backdrop-filter: blur(14px);
}

.tier-wolf-phase-rail {
  margin-bottom: 12px;
  padding: 14px 16px;
}

.tier-wolf-round-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-wolf-round-heading > span {
  color: #b3255d;
  font-size: 0.76rem;
  font-weight: 1000;
}

.tier-wolf-round-heading > strong {
  font-size: 1rem;
}

.tier-wolf-round-heading > time,
.tier-wolf-discussion-banner time {
  min-width: 76px;
  margin-left: auto;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--tw-navy);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 1000;
  text-align: center;
}

.tier-wolf-round-heading > time.is-urgent,
.tier-wolf-discussion-banner time.is-urgent {
  background: #c52e5f;
}

.tier-wolf-phase-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.tier-wolf-phase-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  padding: 7px 4px;
  border-radius: 6px;
  background: #f2f0f5;
  color: #827c91;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
}

.tier-wolf-phase-steps span i {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #d8d4dd;
  color: #fff;
  font-size: 0.66rem;
  font-style: normal;
}

.tier-wolf-phase-steps span.is-done {
  background: #e4f7f0;
  color: #287c63;
}

.tier-wolf-phase-steps span.is-done i {
  background: var(--tw-mint);
}

.tier-wolf-phase-steps span.is-current {
  background: #fff0f6;
  color: #a82457;
}

.tier-wolf-phase-steps span.is-current i {
  background: var(--tw-pink);
}

.tier-wolf-secret {
  position: relative;
  margin-bottom: 12px;
  padding: 18px 22px;
  overflow: hidden;
  border-left: 6px solid var(--tw-violet);
}

.tier-wolf-secret::after {
  position: absolute;
  top: -32px;
  right: -22px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  background: rgba(152, 120, 223, 0.1);
  content: "";
}

.tier-wolf-secret > span {
  color: #6f4db5;
  font-size: 0.72rem;
  font-weight: 1000;
}

.tier-wolf-secret h2 {
  margin: 5px 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.tier-wolf-secret p {
  margin: 0;
  color: var(--tw-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.tier-wolf-action-panel,
.tier-wolf-reveal,
.tier-wolf-voting {
  padding: 22px;
}

.tier-wolf-action-panel > header,
.tier-wolf-reveal > header,
.tier-wolf-voting > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tier-wolf-action-panel > header span,
.tier-wolf-reveal > header span,
.tier-wolf-voting > header span {
  color: #b1275b;
  font-size: 0.72rem;
  font-weight: 1000;
}

.tier-wolf-action-panel > header h2,
.tier-wolf-reveal > header h2,
.tier-wolf-voting > header h2 {
  margin: 4px 0 0;
  font-size: 1.3rem;
}

.tier-wolf-action-panel > p,
.tier-wolf-reveal > header small,
.tier-wolf-voting > header small {
  color: var(--tw-muted);
  font-weight: 700;
}

.tier-wolf-focus-word {
  display: grid;
  place-items: center;
  min-height: 130px;
  margin-bottom: 18px;
  padding: 18px;
  border: 2px solid rgba(255, 201, 78, 0.55);
  border-radius: 8px;
  background: #fff9df;
  text-align: center;
}

.tier-wolf-focus-word small {
  color: #82620b;
  font-weight: 900;
}

.tier-wolf-focus-word strong {
  margin-top: 6px;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

.tier-wolf-focus-word em {
  margin-top: 5px;
  color: #8b6d85;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.tier-wolf-focus-word.is-round2 {
  border-color: rgba(73, 189, 224, 0.45);
  background: #eefaff;
}

.tier-wolf-tier-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.tier-wolf-tier-picker button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 92px;
  padding: 10px 5px;
  border: 3px solid transparent;
  border-radius: 8px;
  color: var(--tw-ink);
  box-shadow: none;
}

.tier-wolf-tier-picker button b {
  font-size: 2rem;
  line-height: 1;
}

.tier-wolf-tier-picker button span {
  margin-top: 7px;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.tier-wolf-tier-picker button.is-s {
  background: #ffe0dd;
}

.tier-wolf-tier-picker button.is-a {
  background: #fff0ba;
}

.tier-wolf-tier-picker button.is-b {
  background: #dff6e8;
}

.tier-wolf-tier-picker button.is-c {
  background: #def2fb;
}

.tier-wolf-tier-picker button.is-d {
  background: #eee6fb;
}

.tier-wolf-tier-picker button.is-selected {
  border-color: var(--tw-navy);
  transform: translateY(-3px);
  box-shadow: 0 7px 0 rgba(43, 41, 95, 0.18);
}

.tier-wolf-private-note {
  margin: 10px 0 0;
  color: var(--tw-muted);
  font-size: 0.72rem;
  text-align: center;
}

.tier-wolf-warning {
  margin: -4px 0 16px;
  padding: 10px 12px;
  border-left: 4px solid var(--tw-yellow);
  background: #fff9de;
  color: #705b17;
  font-size: 0.78rem;
  font-weight: 800;
}

.tier-wolf-word-create label {
  display: block;
  margin: 16px 0 7px;
  font-size: 0.82rem;
  font-weight: 900;
}

.tier-wolf-action-panel > .tier-wolf-word-create-heading {
  display: block;
  margin: -4px -4px 18px;
  padding: 14px 16px;
  border-left: 6px solid var(--tw-pink);
  border-radius: 7px;
  background: linear-gradient(90deg, #fff0f6 0%, rgba(255, 255, 255, 0.72) 100%);
  text-align: left;
}

.tier-wolf-word-create-heading h2 {
  margin-top: 5px;
  line-height: 1.35;
}

.tier-wolf-word-create-heading h2 em {
  color: #c42661;
  font-size: 1.12em;
  font-style: normal;
}

.tier-wolf-word-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tier-wolf-word-input input {
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.tier-wolf-word-create > small {
  display: block;
  margin-top: 10px;
  color: var(--tw-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.tier-wolf-board {
  margin-top: 14px;
  padding: 16px;
}

.tier-wolf-board > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tier-wolf-board > header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.tier-wolf-board > header small {
  color: var(--tw-muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.tier-wolf-lanes {
  display: grid;
  gap: 6px;
}

.tier-wolf-lane {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  min-height: 94px;
  overflow: hidden;
  border: 1px solid rgba(43, 37, 77, 0.11);
  border-radius: 8px;
}

.tier-wolf-lane-label {
  display: grid;
  align-content: center;
  padding: 10px 13px;
}

.tier-wolf-lane-label strong {
  font-size: 2rem;
  line-height: 1;
}

.tier-wolf-lane-label span {
  margin-top: 6px;
  font-size: 0.61rem;
  font-weight: 900;
  line-height: 1.2;
}

.tier-wolf-lane.is-s .tier-wolf-lane-label {
  background: #ffb9b2;
}

.tier-wolf-lane.is-a .tier-wolf-lane-label {
  background: #ffe27d;
}

.tier-wolf-lane.is-b .tier-wolf-lane-label {
  background: #aee7c6;
}

.tier-wolf-lane.is-c .tier-wolf-lane-label {
  background: #aee0f1;
}

.tier-wolf-lane.is-d .tier-wolf-lane-label {
  background: #cbb9ec;
}

.tier-wolf-word-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  align-items: stretch;
  gap: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.tier-wolf-word-card {
  position: relative;
  min-width: 0;
  padding: 30px 10px 10px;
  border: 1px solid rgba(43, 37, 77, 0.15);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(43, 37, 77, 0.08);
}

.tier-wolf-word-card.is-round-2 {
  border-color: rgba(238, 91, 143, 0.32);
  background: linear-gradient(145deg, #fff 0%, #fff5f8 100%);
}

.tier-wolf-round-tag {
  position: absolute;
  top: 7px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e9f7fb;
  color: #2b687b;
  font-size: 0.58rem;
  font-weight: 1000;
}

.tier-wolf-word-card.is-round-2 .tier-wolf-round-tag {
  background: #ffe5ef;
  color: #a72556;
}

.tier-wolf-word-card > strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--tw-ink);
  font-size: 1rem;
}

.tier-wolf-word-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.tier-wolf-word-card > div span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef8fb;
  color: #315f70;
  font-size: 0.65rem;
  font-weight: 900;
}

.tier-wolf-word-card > div span:nth-child(2) {
  background: #fff0f6;
  color: #9d315b;
}

.tier-wolf-word-card > div span.is-system {
  background: #f2eef9;
  color: #66548d;
}

.tier-wolf-word-card > div i {
  color: #858091;
  font-size: 0.56rem;
  font-style: normal;
}

.tier-wolf-empty {
  align-self: center;
  padding: 10px;
  color: #aaa4b3;
  font-size: 0.72rem;
  font-weight: 800;
}

.tier-wolf-board.is-compact .tier-wolf-lane {
  min-height: 74px;
}

.tier-wolf-board.is-compact .tier-wolf-lane-label strong {
  font-size: 1.55rem;
}

.tier-wolf-discussion-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-left: 6px solid var(--tw-mint);
  border-radius: 8px;
  background: rgba(238, 253, 247, 0.95);
  box-shadow: 0 12px 28px rgba(43, 36, 72, 0.12);
}

.tier-wolf-discussion-banner.is-runoff {
  border-left-color: var(--tw-coral);
  background: rgba(255, 244, 240, 0.96);
}

.tier-wolf-discussion-banner span {
  color: #247c62;
  font-size: 0.72rem;
  font-weight: 1000;
}

.tier-wolf-discussion-banner h2 {
  margin: 3px 0 0;
  font-size: 1.2rem;
}

.tier-wolf-ready-btn,
.tier-wolf-next-btn {
  display: block;
  width: min(100%, 420px);
  margin: 16px auto 0;
}

.tier-wolf-ready-count {
  color: var(--tw-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.tier-wolf-evidence {
  display: grid;
  gap: 2px;
}

.tier-wolf-voting {
  margin-top: 14px;
}

.tier-wolf-voting > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.tier-wolf-voting > header > span,
.tier-wolf-voting > header > h2 {
  grid-column: 1;
}

.tier-wolf-voting > header > span {
  grid-row: 1;
}

.tier-wolf-voting > header > h2 {
  grid-row: 2;
}

.tier-wolf-voting > header > small {
  grid-column: 2;
  grid-row: 1 / 3;
  padding: 8px 12px;
  border: 1px solid rgba(67, 183, 148, 0.28);
  border-radius: 999px;
  background: #eafaf3;
  color: #216c57;
  white-space: nowrap;
}

.tier-wolf-voting > header > small strong {
  margin-right: 2px;
  color: #12634c;
  font-size: 1.15rem;
}

.tier-wolf-runoff-candidates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.tier-wolf-vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.tier-wolf-vote-grid button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 68px;
  padding: 9px;
  border: 2px solid rgba(43, 37, 77, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--tw-ink);
  box-shadow: none;
  text-align: left;
}

.tier-wolf-vote-grid button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-wolf-vote-grid button span {
  grid-column: 2;
  color: #b12a5d;
  font-size: 0.65rem;
}

.tier-wolf-vote-grid button.is-selected {
  border-color: var(--tw-pink);
  background: #fff0f6;
  box-shadow: 0 0 0 3px rgba(243, 79, 135, 0.11);
}

.tier-wolf-voting > #submitVoteBtn {
  display: block;
  width: min(100%, 420px);
  margin: 0 auto;
}

.tier-wolf-vote-note {
  margin: 10px 0 0;
  color: var(--tw-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.tier-wolf-round-result {
  padding: 28px;
  border-top: 6px solid var(--tw-mint);
  text-align: center;
}

.tier-wolf-round-result.is-wolf {
  border-top-color: var(--tw-violet);
}

.tier-wolf-round-result > span {
  color: #726998;
  font-size: 0.75rem;
  font-weight: 1000;
}

.tier-wolf-round-result h2 {
  margin: 6px 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.tier-wolf-round-result > p {
  color: var(--tw-muted);
  font-weight: 800;
}

.tier-wolf-topic-reveal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.tier-wolf-topic-reveal > div {
  padding: 15px;
  border-radius: 8px;
  background: #e9f9f3;
}

.tier-wolf-topic-reveal > div:nth-child(2) {
  background: #f0e9fb;
}

.tier-wolf-topic-reveal small,
.tier-wolf-topic-reveal strong {
  display: block;
}

.tier-wolf-topic-reveal small {
  margin-bottom: 5px;
  color: var(--tw-muted);
  font-weight: 900;
}

.tier-wolf-topic-reveal strong {
  font-size: 1.05rem;
}

.tier-wolf-score-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 12px 0;
}

.tier-wolf-score-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(43, 37, 77, 0.11);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.tier-wolf-final-result {
  padding: 32px;
  text-align: center;
}

.tier-wolf-final-result > img {
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(43, 36, 72, 0.2);
}

.tier-wolf-final-result > span {
  display: block;
  margin-top: 14px;
  color: #b5255c;
  font-size: 0.75rem;
  font-weight: 1000;
}

.tier-wolf-final-result h2 {
  margin: 6px 0 22px;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
}

.tier-wolf-ranking {
  width: min(100%, 620px);
  margin: 0 auto 20px;
}

.tier-wolf-ranking > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tw-line);
  text-align: left;
}

.tier-wolf-ranking > div.is-winner {
  background: #fff6cd;
}

.tier-wolf-ranking > div b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0edf3;
}

.tier-wolf-ranking > div.is-winner b {
  background: var(--tw-yellow);
}

.tier-wolf-result-actions {
  justify-content: center;
  margin-top: 18px;
}

.tier-wolf-players-panel,
.tier-wolf-guide-panel {
  padding: 14px;
}

.tier-wolf-players-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tier-wolf-players-panel > header h2 {
  margin: 0;
  font-size: 1rem;
}

.tier-wolf-players-panel > header span {
  color: var(--tw-muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.tier-wolf-players-panel > div {
  display: grid;
  gap: 6px;
}

.tier-wolf-players-panel article {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 7px;
  border: 1px solid var(--tw-line);
  border-radius: 7px;
  background: #fff;
}

.tier-wolf-players-panel article > span {
  min-width: 0;
}

.tier-wolf-players-panel article > span strong,
.tier-wolf-players-panel article > span small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-wolf-players-panel article > span strong {
  font-size: 0.82rem;
}

.tier-wolf-players-panel article > span small {
  color: #47806d;
  font-size: 0.62rem;
}

.tier-wolf-players-panel article > b {
  font-size: 0.78rem;
}

.tier-wolf-players-panel article > em {
  position: absolute;
  top: -5px;
  right: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #fff0b5;
  color: #725900;
  font-size: 0.55rem;
  font-style: normal;
  font-weight: 900;
}

.tier-wolf-players-panel article.is-away {
  opacity: 0.55;
}

.tier-wolf-players-panel article.is-candidate {
  border-color: var(--tw-coral);
  background: #fff3ef;
}

.tier-wolf-players-panel article.is-voted > span small {
  color: #147253;
  font-weight: 1000;
}

.tier-wolf-players-panel article.is-thinking > span small {
  color: #9a6b08;
  font-weight: 900;
}

.tier-wolf-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(43, 37, 77, 0.15);
  color: #3a3151;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 1000;
}

.tier-wolf-avatar.is-coral,
.tier-wolf-avatar.is-rose {
  background: #ffb9bf;
}

.tier-wolf-avatar.is-cyan,
.tier-wolf-avatar.is-blue {
  background: #b6e7f5;
}

.tier-wolf-avatar.is-mint {
  background: #bdebd8;
}

.tier-wolf-avatar.is-yellow,
.tier-wolf-avatar.is-orange {
  background: #ffe394;
}

.tier-wolf-avatar.is-violet {
  background: #d6c7f2;
}

.tier-wolf-guide-panel {
  border-top: 4px solid var(--tw-cyan);
}

.tier-wolf-guide-panel > span {
  color: #19758e;
  font-size: 0.7rem;
  font-weight: 1000;
}

.tier-wolf-guide-panel p {
  margin: 7px 0 0;
  color: #585267;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.7;
}

.tier-wolf-wait {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 30px;
  text-align: center;
}

.tier-wolf-wait > span {
  color: #b1275b;
  font-size: 0.75rem;
  font-weight: 1000;
}

.tier-wolf-wait h2 {
  margin: 8px 0 0;
  font-size: 1.4rem;
}

.tier-wolf-wait p {
  color: var(--tw-muted);
  font-weight: 700;
}

.tier-wolf-wait i {
  width: 38px;
  height: 38px;
  margin-top: 18px;
  border: 5px solid #e7e2ec;
  border-top-color: var(--tw-pink);
  border-radius: 50%;
  animation: tier-wolf-spin 1s linear infinite;
}

@keyframes tier-wolf-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .tier-wolf-lobby,
  .tier-wolf-game-layout {
    grid-template-columns: 1fr;
  }

  .tier-wolf-side {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.55fr);
  }
}

@media (max-width: 720px) {
  body:has(.tier-wolf-app),
  body:has(.tier-wolf-home) {
    background-attachment: scroll;
  }

  .tier-wolf-app {
    width: min(100% - 14px, 1500px);
    margin-top: 7px;
  }

  .tier-wolf-home-title {
    align-items: flex-start;
  }

  .tier-wolf-home-title img {
    width: 88px;
    height: 88px;
  }

  .tier-wolf-home-title h1 {
    font-size: 2.35rem;
  }

  .tier-wolf-phase-steps {
    grid-template-columns: repeat(5, 92px);
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tier-wolf-tier-picker {
    grid-template-columns: repeat(5, 92px);
    overflow-x: auto;
    padding: 4px 2px 10px;
  }

  .tier-wolf-lane {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .tier-wolf-lane-label {
    padding: 8px;
  }

  .tier-wolf-lane-label strong {
    font-size: 1.55rem;
  }

  .tier-wolf-word-cards {
    grid-template-columns: 1fr;
  }

  .tier-wolf-side {
    grid-template-columns: 1fr;
  }

  .tier-wolf-word-input,
  .tier-wolf-topic-reveal {
    grid-template-columns: 1fr;
  }

  .tier-wolf-discussion-banner {
    align-items: flex-start;
  }

  .tier-wolf-voting > header {
    grid-template-columns: 1fr;
  }

  .tier-wolf-voting > header > small {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: 9px;
  }

  .tier-wolf-action-panel,
  .tier-wolf-reveal,
  .tier-wolf-voting,
  .tier-wolf-final-result {
    padding: 16px;
  }
}
