/* Playing with Fire: the game screen. The look comes from /rge/client/sticker.css. */

.pwf {
  height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) 290px;
}
.pwf-stage { height: 100%; }
.pwf-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); margin: 0;
  display: flex; gap: 6px; align-items: center; white-space: nowrap;
  background: rgb(29 27 47 / .82); color: #fff; font-weight: 600; font-size: .95rem;
  padding: .55em 1.1em; border-radius: 99px; box-shadow: 0 6px 16px rgb(0 0 0 / .35);
  transition: opacity .6s .4s; pointer-events: none;
}
.pwf-hint:empty, .pwf-hint.gone { opacity: 0; }
.pwf-offline {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); margin: 0;
  background: var(--hot); color: #fff; font-weight: 700; padding: .45em 1em; border-radius: 99px; box-shadow: var(--sticker);
}
.pwf-offline[hidden] { display: none; }
/* The pause card: over the whole field, which dims behind it. */
.pwf-pause {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgb(29 27 47 / .55);
}
.pwf-pause[hidden] { display: none; }
.pwf-pause-card { display: grid; gap: 10px; min-width: 260px; max-width: calc(100% - 32px); text-align: center; }
.pwf-pause-card h2 { font: 400 1.8rem var(--rtg-display); color: var(--hot); margin: 0; }
.pwf-pause-card p { margin: 0; }

.pwf-side {
  overflow-y: auto; overflow-x: hidden; padding: 14px 16px 24px 6px; display: grid; gap: 14px; align-content: start;
  grid-auto-rows: max-content; grid-template-columns: minmax(0, 1fr);
}
.pwf-side h2 { font: 400 1rem var(--rtg-display); letter-spacing: .04em; color: var(--hot); margin: 0 0 .4em; }
.pwf-brand { display: flex; align-items: center; gap: 10px; color: #fff; padding: 2px 4px; }
.pwf-brand h1 { margin: 0; font-size: 1.35rem; line-height: 1.05; }
.pwf-brand span { flex: 1; font-size: .85rem; }
.pwf-brand b { letter-spacing: .12em; color: var(--sun); }
.pwf-brand .rtg-btn { flex: none; }

.pwf-who { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; min-height: 1.6em; }
.pwf-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pwf-crown { color: var(--sun); -webkit-text-stroke: 1px var(--ink); font-size: 1.2rem; }
.pwf-away { margin-left: auto; flex: none; font-size: .72rem; font-weight: 700; color: #fff; background: var(--hot); border-radius: 99px; padding: .15em .65em; }
.pwf-hand, .pwf-dials label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.pwf-hand select, .pwf-dials select {
  flex: 1; min-width: 0; font: 600 .9rem var(--rtg-font); padding: .35em .5em;
  border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink);
}
.pwf-dials label:first-of-type { margin-top: 0; }
.pwf-note { margin: 0; font-size: .9rem; }
.pwf-small { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.rge-card .rtg-btn { margin-top: 8px; }

.pwf-crew { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; min-height: 1.6em; }
.pwf-crew li { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.pwf-crew li.me { color: var(--hot); }
.pwf-crew li.bot { color: var(--muted); font-weight: 500; }
.pwf-actions { display: flex; gap: 8px; justify-content: space-between; padding: 0 4px; }
.pwf-actions .rtg-btn { color: #fff; border-color: rgb(255 255 255 / .45); }
.pwf-actions .rtg-btn:not(.ghost) { background: var(--sun); color: var(--ink); border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }

/* The big screen: the whole yard, big, with the crew beside it. */
.pwf-big { grid-template-columns: minmax(0, 1fr) 260px; }
body:has(.pwf-big) #rtg-build { display: none; } /* the badge stays off the stream */

/* Phones: the yard on top, the panel under it. */
@media (max-width: 760px) {
  .pwf { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .pwf-side { max-height: 34dvh; padding: 10px 12px 18px; }
  .pwf-hint { display: none; }
}
