/* Play in the browser (owner, 20/11/2026) — only the play pages load this file. Same tokens as styles.css. */
.play { padding: 28px 0 56px; }
.play h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 18px; }
.play h2 { font-size: 24px; margin: 26px 0 4px; }
.pcard { max-width: 460px; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pcard h2 { margin-top: 0; }
.pform { display: grid; gap: 12px; margin-top: 12px; }
.pform label { display: grid; gap: 6px; color: var(--soft); font-size: 14px; }
.pform input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font: inherit; }
.pform input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.perr { min-height: 1.4em; margin: 4px 0; color: #ff9db1; font-size: 14px; }
.note { color: var(--muted); font-size: 13px; margin: 0; }
.pbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.g-btn, .g-link { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; position: relative; }
.g-btn:focus-visible, .g-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 14px; }
.g-free { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--green); color: #06210f; font-weight: 900; font-size: 11px; }
.game-layer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: #000; }
.game-layer[hidden] { display: none; }
.gl-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg2); }
.game-layer iframe { flex: 1; width: 100%; border: 0; background: #000; }
body.playing { overflow: hidden; }
.pdialog { max-width: 440px; width: calc(100% - 32px); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg2); color: var(--text); }
.pdialog::backdrop { background: rgba(0,0,0,.6); }
.pcheck { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; color: var(--soft); font-size: 14px; }
.pcheck input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.prow { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
/* friends' rooms + ranking of the free social games (20/11/2026) */
.phead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 26px; }
.phead h2 { margin: 0; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.invites { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.invites li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid rgba(255,200,60,.35); }
.invites img { width: 48px; height: 48px; border-radius: 10px; flex: none; }
.invites li { flex-wrap: wrap; }
.invites .grow { flex: 1 1 180px; min-width: 0; }
.invites .grow small { display: block; color: var(--soft); }
.pcode { font-size: 30px; font-weight: 900; letter-spacing: 6px; color: var(--gold); margin: 6px 0; }
.pfriends { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.pfriends label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 12px; background: var(--card); cursor: pointer; }
.pfriends input { width: 22px; height: 22px; flex: none; }
.pfriends small { color: var(--green); margin-left: auto; }
.pdialog.wide { max-width: 560px; }
.prow.left { justify-content: flex-start; }
.pdialog select { min-height: 44px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); font: inherit; max-width: 100%; }
.ptable { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.ptable th, .ptable td { padding: 8px 6px; text-align: left; border-bottom: 1px solid var(--line); }
.ptable th:nth-child(n+3), .ptable td:nth-child(n+3) { text-align: right; }
.ptable tr.me td { color: var(--gold); font-weight: 900; }
.pdialog .prow { margin-top: 10px; }
