.play-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.play-body {
  flex: 1;
  padding: 8px 16px 24px;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.join-card {
  margin-top: 24px;
}

.join-card h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.waiting {
  text-align: center;
  padding: 40px 8px;
}

.waiting .orb {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: conic-gradient(var(--pink), var(--gold), var(--cyan), var(--pink));
  animation: spin 3s linear infinite;
  mask: radial-gradient(circle 34px, transparent 98%, #000 100%);
  -webkit-mask: radial-gradient(circle 34px, transparent 98%, #000 100%);
}

.opponent-card {
  text-align: center;
  padding: 28px 10px;
}

.opponent-card .you,
.opponent-card .them {
  font-family: var(--display);
  font-size: 1.8rem;
}

.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.ans {
  min-height: 22vh;
  border-radius: 22px;
  color: white;
  font-size: 1.15rem;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, filter 0.1s ease;
}

.ans:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.ans .shape {
  width: 36px;
  height: 36px;
}

.ans.red { background: linear-gradient(180deg, #ff6b6b, var(--red)); }
.ans.blue { background: linear-gradient(180deg, #6aa6ff, var(--blue)); }
.ans.yellow { background: linear-gradient(180deg, #ffe08a, #e0b000); color: #2a1f00; }
.ans.green { background: linear-gradient(180deg, #5ff0c0, var(--green)); color: #04261c; }

.ans.selected {
  outline: 4px solid white;
  filter: brightness(1.05);
}

.q-text {
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 12px 0;
}

.q-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.result-hero {
  text-align: center;
  padding: 24px 8px;
}

.result-hero .stamp {
  font-family: var(--display);
  font-size: 3rem;
  animation: pop 0.45s ease;
}

.result-hero.win .stamp { color: var(--green); }
.result-hero.lose .stamp { color: var(--danger); }
.result-hero.draw .stamp { color: var(--gold); }
.result-hero.bye .stamp { color: var(--cyan); }

.rps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.rps-btn {
  min-height: 120px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  font-size: 2.6rem;
  box-shadow: 0 8px 0 #0a0e22;
}

.rps-btn.picked {
  background: var(--gold);
  color: #2a1f00;
}

.rps-reveal {
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 4rem;
  margin: 24px 0;
  animation: shake 0.45s ease;
}

.predict-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.predict-match .choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.predict-match button {
  min-height: 72px;
  border-radius: 16px;
  background: var(--surface2);
  color: var(--text);
  font-size: 1.05rem;
}

.predict-match button.picked {
  background: var(--gold);
  color: #2a1f00;
}

.rank-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface2);
}

.done-wait {
  text-align: center;
  padding: 40px 8px;
  color: var(--muted);
}

.answers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ans, .predict-match button { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 360px) { .answers { gap: 8px; } .ans { font-size: 1rem; padding: 12px 8px; } }

.play-body { max-width:600px; padding:32px 20px; }
.join-card { padding:32px; margin-top:28px; box-shadow:0 12px 40px #18253908; }
.join-card h1 { font-size:28px; letter-spacing:-.04em; }
#pin { font-size:24px; letter-spacing:.2em; font-variant-numeric:tabular-nums; }
.waiting,.done-wait,.opponent-card,.result-hero { padding:40px 12px; }
.waiting .orb { width:48px; height:48px; background:conic-gradient(var(--cyan),#d9e6e3); mask:radial-gradient(circle 18px, transparent 98%,#000 100%); -webkit-mask:radial-gradient(circle 18px,transparent 98%,#000 100%); }
.answers { gap:12px; }
.ans { min-height:150px; padding:20px 12px; border-radius:12px; box-shadow:none; font-size:16px; border:2px solid transparent; }
.ans.red { background:#b73e4a; } .ans.blue { background:#2866ac; }
.ans.yellow { background:#f0d277; color:#49380c; } .ans.green { background:#217d69; color:white; }
.ans:active { box-shadow:none; transform:translateY(1px); }
.ans.selected { outline:3px solid var(--text); outline-offset:3px; }
.ans .shape { width:28px; height:28px; }
.q-text { font-size:24px; line-height:1.4; margin:24px 0; letter-spacing:-.025em; }
.q-meta { font-size:13px; font-weight:600; }
.rps-btn { min-height:100px; border-radius:12px; border:1px solid var(--line); background:white; box-shadow:none; }
.rps-btn.picked,.predict-match button.picked { background:#e1f1eb; color:var(--cyan); outline:2px solid var(--cyan); }
.predict-match button { border:1px solid var(--line); border-radius:9px; background:var(--bg2); padding:12px; }
.rank-chip { border-radius:8px; font-size:14px; padding:10px 16px; }
@keyframes spin { to { transform:rotate(360deg); } }
@media(max-width:420px) { .play-body { padding:20px 16px; } .join-card { padding:24px; margin-top:16px; } .ans { min-height:135px; } .q-text { font-size:21px; } }
