/*
 * Design system for the ROUNDCORE reconstruction.
 * The visual source of truth is the ORIGINAL compiled stylesheet (src/original.css, linked in
 * __root.tsx). Tailwind utilities are intentionally NOT imported here: the original markup uses
 * Tailwind v3 class names whose compiled rules live in original.css, and generating v4 rules for
 * the same class names would double spacing utilities (space-x/space-y) and change layout.
 * This file only adds tokens and the few rules needed by reconstructed (non-archived) screens.
 */

:root {
  /* Mirrors the original palette (rgb triplets in original.css) as semantic tokens. */
  --background: oklch(0.1 0.008 285);
  --foreground: oklch(1 0 0);
  --card: oklch(0.22 0.012 285);
  --primary: oklch(0.77 0.16 60);
  --accent: oklch(0.78 0.12 240);
  --muted-foreground: oklch(0.81 0.02 285);
  --border: oklch(0.22 0.012 285);
  --destructive: oklch(0.68 0.19 28);
  --success: oklch(0.85 0.24 145);
}

/* Dialogs use explicit layout: the archived Tailwind bundle does not include
 * arbitrary positioning utilities used by newly added Radix components. */
.pw-dialog-overlay {
  position:fixed; inset:0; z-index:9980;
  background:rgba(4,5,9,.76); backdrop-filter:blur(3px);
}
.pw-dialog-content {
  position:fixed; left:50%; top:50%; z-index:9981;
  transform:translate(-50%,-50%); display:grid; gap:16px;
  width:calc(100% - 32px); max-width:512px;
  max-height:calc(100dvh - 32px); overflow-y:auto; overscroll-behavior:contain;
  padding:24px; border:1px solid #454958; border-radius:9px;
  background:#1c1e29; color:#e8eaf3; box-shadow:0 24px 80px #0009;
}
.pw-dialog-close {
  position:absolute; top:12px; right:12px; display:grid; place-items:center;
  width:28px; height:28px; border-radius:4px; cursor:pointer; opacity:.75;
}
.pw-dialog-close:hover { opacity:1; background:#ffffff0c; }
.pw-dialog-close:focus-visible { outline:2px solid #f69735; outline-offset:2px; }
.pw-dialog-close>svg { width:16px; height:16px; }
.pw-dialog-close>.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ---------- Reconstructed-screen helpers (built only from original tokens) ---------- */

.pw-note {
  border: 1px solid rgb(var(--color-gray-dark));
  border-radius: 0.375rem;
  background: rgb(var(--color-card));
  color: rgb(var(--color-secondary-default));
  font-size: 0.75rem;
  line-height: 1.125rem;
  padding: 0.75rem 1rem;
}
.pw-note strong { color: rgb(var(--color-default)); }

.pw-demo-bar {
  border-top: 1px solid rgb(var(--color-card));
  color: rgb(var(--color-secondary-darker));
  font-size: 0.75rem;
  line-height: 1.125rem;
  padding: 0.75rem 1.5rem;
  max-width: 1752px;
  margin: 0 auto;
}

.pw-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.pw-field {
  height: 2.5rem;
  border-radius: 0.375rem;
  border: 1px solid rgb(var(--color-gray-dark));
  background: rgb(var(--color-card));
  color: rgb(var(--color-default));
  font-size: 0.875rem;
  padding: 0 0.75rem;
  min-width: 0;
  font-family: inherit;
}
.pw-field:focus { outline: none; border-color: rgb(var(--color-cyan-default)); }
.pw-field::placeholder { color: rgb(var(--color-secondary-darker)); }
.pw-field-grow { flex: 1 1 220px; }
textarea.pw-field { height: auto; padding: 0.625rem 0.75rem; resize: vertical; }

.pw-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pw-tab {
  height: 2rem;
  padding: 0 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid rgb(var(--color-gray-dark));
  font-size: 0.875rem;
  font-weight: 700;
  color: rgb(var(--color-secondary-default));
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.pw-tab:hover { color: rgb(var(--color-default)); }
.pw-tab[aria-pressed="true"], .pw-tab.is-active {
  border-color: rgb(var(--color-orange-default));
  color: rgb(var(--color-default));
}

.pw-grid-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 1023.98px) { .pw-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639.98px) { .pw-grid-cards { grid-template-columns: minmax(0, 1fr); } }

.pw-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
@media (max-width: 1023.98px) { .pw-grid-3 { grid-template-columns: minmax(0, 1fr); } }

.pw-detail { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.5rem; }
@media (max-width: 1023.98px) { .pw-detail { grid-template-columns: minmax(0, 1fr); } }

.pw-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgb(var(--color-gray-dark)); border-radius: 0.375rem; overflow: hidden; }
@media (max-width: 767px) { .pw-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pw-stat-grid > div { background: rgb(var(--color-card)); padding: 1rem 1.25rem; }

.pw-badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  color: rgb(var(--color-secondary-default));
}
.pw-badge-live { color: rgb(var(--color-default)); }
.pw-badge-upcoming { color: rgb(var(--color-cyan-default)); }

.pw-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-cover-box { height: 15rem; background: rgb(var(--color-gray-dark)); border-radius: 0.375rem; overflow: hidden; }
@media (max-width: 639.98px) { .pw-cover-box { height: 11rem; } }

.pw-scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pw-empty { color: rgb(var(--color-secondary-default)); text-align: center; padding: 3rem 1rem; }
.pw-error { color: rgb(var(--color-red-default)); font-size: 0.875rem; }
.pw-success { color: rgb(var(--color-green-default)); font-size: 0.875rem; }
.pw-article p { color: rgb(var(--color-secondary-default)); margin-top: 1rem; line-height: 1.6; }
.pw-plan { border: 1px solid rgb(var(--color-gray-dark)); }
.pw-plan.is-featured { border-color: rgb(var(--color-cyan-default)); }
.pw-price { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; }
.pw-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pw-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.625rem;
  width: 100%; height: 2.5rem; border-radius: 0.375rem; font-weight: 700; font-size: 0.875rem; cursor: pointer;
}
.pw-google { background: #131314; border: 1px solid #8e918f; color: #e3e3e3; font-family: "Google Sans", Roboto, Arial, sans-serif; font-weight: 500; }
.pw-lovable { background: transparent; border: 1px solid rgb(var(--color-gray-dark)); color: rgb(var(--color-default)); }
.pw-divider { display: flex; align-items: center; gap: 0.75rem; color: rgb(var(--color-secondary-darker)); font-size: 0.75rem; }
.pw-divider::before, .pw-divider::after { content: ""; flex: 1; height: 1px; background: rgb(var(--color-gray-dark)); }
.pw-user-name { max-width: 9rem; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

html, body { overflow-x: hidden; }

.pw-auth-page { min-height:100vh; display:grid; place-items:center; padding:32px 20px; background-size:cover; background-position:center; }
.pw-submenu-button { display:inline-flex!important; align-items:center; justify-content:center; margin-left:8px; }
.pw-submenu-button svg { width:14px; height:14px; }
.pw-auth-card { width:min(100%,460px); padding:36px; border:1px solid #34343d; border-radius:8px; background:#15151c; box-shadow:0 16px 60px #0005; }
.pw-auth-card h1 { font-size:28px; font-weight:700; margin:24px 0 8px; }
.pw-auth-logo { display:inline-block; }
.pw-auth-logo img { width:160px; height:auto; }
.pw-auth-tabs { display:flex; margin:24px 0; border-bottom:1px solid #34343d; }
.pw-auth-tabs button { flex:1; padding:12px; border-bottom:2px solid transparent; color:#b8b8c6; }
.pw-auth-tabs button[aria-pressed=true] { color:white; border-bottom-color:#f69735; }
.pw-auth-form { display:grid; gap:18px; margin-top:24px; }
.pw-auth-form label { display:grid; gap:7px; font-size:14px; font-weight:600; }
.pw-auth-form .pw-field { width:100%; }
.pw-auth-form small { font-size:12px; font-weight:400; }
.pw-password-field { position:relative; }
.pw-password-field input { padding-right:64px; }
.pw-password-field button { position:absolute; right:12px; top:0; height:40px; color:#b8b8c6; font-size:12px; }
.pw-auth-links { display:flex; justify-content:space-between; gap:16px; margin-top:24px; font-size:14px; }
.pw-auth-legal { margin-top:24px; font-size:12px; color:#9999aa; text-align:center; }
.pw-account-links { display:grid; margin-top:18px; }
.pw-account-links a { padding:14px 0; border-bottom:1px solid #34343d; }
.pw-account-links a:hover,.pw-auth-legal a:hover { color:#f69735; }
.pw-cookie-notice { position:fixed; bottom:16px; left:16px; z-index:90; display:flex; align-items:center; gap:20px; width:min(620px,calc(100% - 32px)); padding:18px 20px; border:1px solid #3b3b48; border-radius:5px; background:#1b1b24; box-shadow:0 10px 40px #0008; font-size:14px; }
.pw-cookie-notice p { margin:0; color:#d0d0da; }
.pw-cookie-notice a { color:#f69735; text-decoration:underline; white-space:nowrap; }
.pw-cookie-notice button { flex-shrink:0; padding:10px 18px; background:#f69735; color:#111; border-radius:4px; font-weight:700; }
button:not(:disabled),a[href] { cursor:pointer; }
button:disabled { cursor:default; opacity:.6; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid #60beec; outline-offset:3px; }
@media(max-width:480px) { .pw-auth-card { padding:24px; } .pw-cookie-notice { align-items:flex-start; gap:12px; flex-direction:column; } .pw-cookie-notice button { align-self:flex-end; } }

/* Friends and team rosters use the original portal's palette and spacing. */
.pw-social-page { padding-top:8px; }
.pw-social-intro { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:24px 0; }
.pw-social-intro>p { color:#aaaab9; font-size:15px; }
.pw-social-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:24px; align-items:start; }
.pw-social-panel { min-width:0; border:1px solid #30303d; border-radius:6px; background:#1b1b24; overflow:hidden; }
.pw-social-panel h2 { font-size:18px; font-weight:700; }
.pw-social-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:38px; padding:8px 14px; border:1px solid #50505e; border-radius:4px; background:transparent; color:#eeeef3; font-family:inherit; font-size:14px; font-weight:600; line-height:20px; white-space:nowrap; transition:background .15s,border-color .15s; }
.pw-social-button:hover:not(:disabled) { background:#292934; border-color:#77778b; }
.pw-social-button.primary { background:#f69735; border-color:#f69735; color:#111118; }
.pw-social-button.primary:hover:not(:disabled) { background:#ffad55; border-color:#ffad55; }
.pw-social-button.quiet { border-color:transparent; color:#aaaabc; }
.pw-social-button.danger { border-color:#7a4249; color:#ee9999; }
.pw-social-tabs { display:flex; flex-wrap:wrap; padding:0 18px; border-bottom:1px solid #30303d; gap:8px; }
.pw-social-tabs button { display:flex; align-items:center; justify-content:center; gap:8px; min-height:58px; padding:12px 10px; border-bottom:2px solid transparent; color:#a5a5b7; font-size:14px; white-space:nowrap; }
.pw-social-tabs button[aria-selected=true] { color:white; border-bottom-color:#f69735; }
.pw-social-tabs button>span { display:inline-grid; place-items:center; min-width:21px; height:21px; padding:0 5px; border-radius:4px; background:#333341; font-size:12px; font-weight:700; }
.pw-player-lookup { padding:22px; }
.pw-lookup-search { display:flex; align-items:center; gap:10px; padding:6px 8px 6px 14px; border:1px solid #51515f; border-radius:5px; background:#121219; }
.pw-lookup-search>svg { flex-shrink:0; color:#9b9bab; }
.pw-lookup-search>input { width:100%; min-width:0; border:0; outline:0; background:transparent; padding:8px 0; font-family:inherit; font-size:15px; color:white; }
.pw-lookup-search>input::placeholder { color:#9090a2; }
.pw-lookup-search>button { flex-shrink:0; }
.pw-lookup-search>button[aria-label] { color:#9999ad; padding:6px; }
.pw-social-caption { color:#9696aa; font-size:12px; line-height:20px; }
.pw-search-results>.pw-social-caption,.pw-friend-suggestions>.pw-social-caption { margin:20px 0 4px; }
.pw-player-row { display:flex; align-items:center; gap:13px; min-height:88px; padding:16px 0; border-bottom:1px solid #30303d; }
.pw-player-row:last-child { border-bottom:0; }
.pw-player-avatar { flex:0 0 44px; width:44px; height:44px; display:grid; place-items:center; border:1px solid #4b4b5a; border-radius:6px; background:#252530; color:#e6e6ed; overflow:hidden; }
.pw-player-avatar img { width:100%; height:100%; object-fit:cover; }
.pw-player-row-copy { min-width:0; flex:1; }
.pw-player-row-copy>strong { display:flex; align-items:center; gap:7px; overflow-wrap:anywhere; font-size:15px; }
.pw-player-row-copy>span { display:flex; align-items:center; gap:5px; margin-top:3px; color:#9393a6; font-size:13px; }
.pw-friend-actions,.pw-inline-actions { display:flex; flex-wrap:wrap; align-items:center; gap:7px; }
.pw-social-status { display:inline-flex; align-items:center; gap:5px; color:#a5a5b8; font-size:12px; }
.pw-social-status.success { color:#8fd1a5; }
.pw-connection-list { padding:0 24px; }
.pw-social-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:64px 24px; color:#b6b6c8; text-align:center; }
.pw-social-empty>svg { color:#818197; }
.pw-social-empty h2 { color:white; font-size:21px; font-weight:700; }
.pw-social-empty p { max-width:470px; color:#9999ae; font-size:14px; line-height:1.6; }
.pw-social-empty.compact { padding:40px 18px; font-size:14px; }
.pw-social-empty.compact strong { color:#d4d4df; font-size:16px; }
.pw-social-aside { display:grid; gap:20px; }
.pw-social-help { padding:24px; }
.pw-social-help>svg { color:#7fbddd; margin-bottom:18px; }
.pw-social-help h2 { margin-bottom:12px; }
.pw-social-help p { color:#9e9eb2; font-size:14px; line-height:1.65; }
.pw-social-help>div { display:flex; justify-content:space-between; padding-top:16px; margin-top:16px; border-top:1px solid #323240; color:#9999ad; font-size:14px; }
.pw-social-help>div b { color:white; }
.pw-social-help>a { margin-top:22px; }
.pw-social-alert { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 18px; margin-bottom:20px; border:1px solid #775055; border-radius:5px; background:#38242b; color:#f2c7c9; font-size:14px; overflow-wrap:anywhere; }
.pw-social-alert button { display:flex; align-items:center; gap:7px; color:white; flex-shrink:0; }
.pw-team-workspace { display:grid; grid-template-columns:290px minmax(0,1fr); align-items:start; gap:24px; }
.pw-team-list>h2 { padding:20px; border-bottom:1px solid #30303d; display:flex; justify-content:space-between; }
.pw-team-list>h2>span,.pw-pending-team-invites>h2>span { color:#a0a0b4; font-size:14px; }
.pw-team-list-item { display:flex; align-items:center; gap:14px; width:100%; padding:19px; text-align:left; border-left:3px solid transparent; border-bottom:1px solid #30303d; }
.pw-team-list-item.selected { border-left-color:#f69735; background:#29262a; }
.pw-team-list-item:hover { background:#262630; }
.pw-team-list-item>span:last-child { min-width:0; display:grid; gap:5px; }
.pw-team-list-item strong { color:#eeeef3; overflow-wrap:anywhere; }
.pw-team-list-item small { color:#aaaabd; font-size:13px; }
.pw-team-list-item em { color:#88889e; font-size:12px; font-style:normal; }
.pw-team-tag { display:grid; place-items:center; flex:0 0 52px; width:52px; height:52px; padding:3px; border:1px solid #5a4b40; border-radius:7px; background:#312b29; color:#efa24e; font-size:14px; font-weight:800; letter-spacing:.04em; overflow:hidden; }
.pw-team-tag.large { width:76px; height:76px; flex-basis:76px; font-size:20px; }
.pw-team-tag.has-image { padding:0; background:#171720; }
.pw-team-tag>img { display:block; width:100%; height:100%; object-fit:cover; }
.pw-team-avatar-picker { display:flex; align-items:center; gap:22px; padding-bottom:24px; margin-bottom:24px; border-bottom:1px solid #353542; }
.pw-team-avatar-preview { flex-shrink:0; }
.pw-team-avatar-preview .pw-team-tag { width:96px; height:96px; border-radius:10px; font-size:23px; }
.pw-team-avatar-picker h3 { font-size:17px; font-weight:700; color:#e2e2ed; margin-bottom:7px; }
.pw-team-avatar-picker p { color:#9393aa; font-size:13px; line-height:1.6; margin-bottom:13px; }
.pw-team-avatar-picker .pw-error { color:#e6a6a0; margin:12px 0 0; }
.pw-team-avatar-picker .pw-inline-actions { flex-wrap:wrap; }
.pw-team-editor fieldset { min-width:0; border:0; margin:0; padding:0; }
@media(max-width:540px) { .pw-team-avatar-picker { align-items:flex-start; gap:14px; } .pw-team-avatar-preview .pw-team-tag { width:68px; height:68px; font-size:18px; } .pw-team-avatar-picker .pw-social-button { min-height:34px; padding:7px 11px; font-size:12px; } }
.pw-team-detail { display:grid; gap:24px; min-width:0; }
.pw-team-header { display:flex; flex-wrap:wrap; align-items:flex-start; gap:20px; padding:24px; }
.pw-team-header-copy { min-width:0; flex:1 1 200px; }
.pw-team-header-copy h2 { font-size:25px; margin:3px 0 8px; overflow-wrap:anywhere; }
.pw-team-header-copy p { font-size:14px; color:#a6a6ba; line-height:1.6; margin-bottom:12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.pw-social-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.pw-social-section-heading>h2 { display:flex; align-items:center; gap:9px; }
.pw-social-section-heading>span { font-size:13px; color:#9292a8; }
.pw-team-roster,.pw-invite-picker,.pw-team-editor,.pw-pending-team-invites { padding:24px; }
.pw-team-roster .pw-player-row { min-height:80px; }
.pw-you-badge { padding:1px 5px; border:1px solid #535368; border-radius:3px; color:#aaaabf; font-size:10px; font-weight:600; }
.pw-team-empty-slot { display:flex; align-items:center; gap:13px; padding:16px 0; color:#85859c; font-size:14px; }
.pw-team-empty-slot>span { display:grid; place-items:center; width:44px; height:44px; border:1px dashed #49495b; border-radius:6px; }
.pw-team-empty-slot small { display:block; font-size:12px; color:#6f6f85; margin-top:3px; }
.pw-invite-picker .pw-player-lookup { padding:10px 0 0; }
.pw-team-editor { margin-bottom:24px; border-color:#64503d; }
.pw-team-editor .pw-social-section-heading { margin-bottom:22px; }
.pw-team-form-grid { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(100px,.5fr) minmax(0,1fr) 110px; gap:18px; }
.pw-team-editor label { display:grid; gap:7px; color:#bbbbca; font-size:14px; }
.pw-team-editor .pw-field { width:100%; font-size:15px; }
.pw-team-description { position:relative; margin:22px 0; }
.pw-team-description>span { position:absolute; right:0; top:0; font-size:12px; color:#85859e; }
.pw-team-invitations { padding:24px; margin-bottom:24px; border-color:#435e70; }
.pw-team-invitations>h2 { display:flex; gap:9px; align-items:center; margin-bottom:12px; }
.pw-team-invitations>h2>span { color:#8cbcd5; font-size:14px; }
.pw-team-invite-row { display:flex; align-items:center; gap:15px; padding:16px 0; border-top:1px solid #343443; }
.pw-team-invite-row>div:not(.pw-inline-actions) { flex:1; min-width:0; }
.pw-team-invite-row strong { overflow-wrap:anywhere; }
.pw-team-invite-row p { font-size:13px; color:#9696ab; margin-top:3px; }
.pw-team-pending-row { display:flex; align-items:center; gap:13px; padding-top:18px; margin-top:18px; border-top:1px solid #30303d; }
.pw-team-pending-row>svg { color:#9696ae; }
.pw-team-pending-row>div { flex:1; min-width:0; }
.pw-team-pending-row small { display:block; color:#9191a6; font-size:12px; margin-top:3px; }
.pw-empty-team { min-height:365px; }
.pw-notification-count { position:absolute; top:-8px; right:-9px; display:grid; place-items:center; min-width:17px; height:17px; padding:0 4px; border-radius:8px; background:#f69735; color:#111; font-size:10px; font-weight:800; }
.pw-request-notifications { display:grid; gap:12px; min-width:190px; }
.pw-request-notifications a { color:#ecac63; }
.pw-queue-label { font-size:10px; font-weight:700; letter-spacing:.08em; color:#eab675; }
.pw-queue-timer small { color:#8e8e9f; font-size:12px; }
.pw-match-search-note { border-top:1px solid #383744; padding-top:14px; margin-top:20px; color:#9292a6; font-size:12px; line-height:1.6; }
.pw-match-overlay { z-index:9990; background:rgba(4,5,9,.86); backdrop-filter:blur(5px); }
.pw-match-modal { position:fixed; z-index:9991; top:50%; left:50%; transform:translate(-50%,-50%); width:calc(100% - 32px); max-width:470px; max-height:calc(100dvh - 32px); overflow:auto; border:1px solid #5c5042; border-radius:9px; background:#1b1b26; box-shadow:0 28px 90px #0009; padding:32px; }
.pw-ready-check { text-align:center; }
.pw-ready-symbol { display:grid; place-items:center; width:64px; height:64px; margin:0 auto 22px; border:1px solid #705133; background:#362b23; color:#f6ab56; border-radius:50%; }
.pw-ready-check h2 { font-size:31px; font-weight:800; color:#f5f5fa; margin:10px 0; }
.pw-ready-subtitle { font-size:14px; line-height:1.6; color:#a1a1b6; }
.pw-accept-clock { margin:20px auto; font-size:54px; color:#f7b262; line-height:1.1; font-variant-numeric:tabular-nums; }
.pw-accept-clock small { display:block; font-size:12px; color:#8c8ca3; margin-top:5px; }
.pw-ready-dots { display:flex; justify-content:center; gap:6px; margin:20px 0 10px; }
.pw-ready-dots>span { display:grid; place-items:center; width:27px; height:27px; border-radius:4px; border:1px solid #48485b; background:#272734; color:#99c6aa; }
.pw-ready-dots>span.ready { border-color:#55755e; background:#283b30; }
.pw-ready-count { font-size:13px; color:#a4a4b8; margin:12px 0 24px; }
.pw-accept-button { width:100%; justify-content:center; min-height:50px; font-size:17px; }
.pw-ready-decline { display:block; margin:18px auto 0; color:#9292a7; font-size:13px; text-decoration:underline; text-underline-offset:3px; }
.pw-ready-decline:hover { color:#e6bda3; }
.pw-ready-check .pw-error { margin-bottom:14px; font-size:13px; }
.pw-match-toast { position:fixed; bottom:24px; right:24px; display:flex; align-items:center; gap:20px; z-index:100; max-width:calc(100vw - 32px); padding:18px 22px; border:1px solid #715039; border-radius:6px; background:#29232a; box-shadow:0 8px 28px #0007; }
.pw-match-toast strong { font-size:15px; color:#eebc86; }
.pw-match-toast p { font-size:13px; color:#b3a7b2; margin-top:4px; }
.pw-match-toast button { font-size:13px; color:#e9e3e7; }
.pw-lobby-back { display:inline-flex; align-items:center; gap:8px; color:#9d9db1; margin:12px 0 25px; font-size:14px; }
.pw-lobby-header { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; margin-bottom:30px; }
.pw-lobby-header h1 { font-size:36px; font-weight:800; color:#f3f3f7; margin:8px 0; }
.pw-lobby-header>div>p:last-child { color:#8e8ea3; font-size:14px; }
.pw-lobby-status { display:flex; align-items:center; gap:8px; color:#b2b2c4; border:1px solid #444455; padding:11px 15px; border-radius:5px; font-size:13px; }
.pw-lobby-status.lobby { color:#aad2b6; background:#1f2a23; border-color:#415d49; }
.pw-lobby-status.cancelled { color:#dab0a5; border-color:#71534b; }
.pw-lobby-teams { display:grid; grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr); align-items:start; gap:16px; }
.pw-lobby-team { overflow:hidden; border-top:3px solid #e59d4d; }
.pw-lobby-team.side-b { border-top-color:#6ca9cb; }
.pw-lobby-vs { position:relative; align-self:center; justify-self:center; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:9px; width:104px; min-height:94px; padding:14px 8px; border:1px solid #8c613b; border-radius:12px; background:linear-gradient(155deg,#2d241d,#181d25); box-shadow:0 8px 24px #0004,inset 0 1px 0 #ffc98b1a; text-align:center; color:#fff1df; }
.pw-lobby-vs>svg { flex-shrink:0; color:#f6a64d; }
.pw-lobby-vs>span { font-size:15px; line-height:20px; font-weight:800; letter-spacing:.06em; white-space:nowrap; }
.pw-lobby-vs::before,.pw-lobby-vs::after { content:""; position:absolute; left:50%; width:1px; height:42px; pointer-events:none; }
.pw-lobby-vs::before { bottom:calc(100% + 12px); background:linear-gradient(transparent,#b77a42); }
.pw-lobby-vs::after { top:calc(100% + 12px); background:linear-gradient(#6ca9cb,transparent); }
.pw-lobby-team-heading { display:flex; align-items:center; gap:13px; padding:22px; border-bottom:1px solid #353543; }
.pw-lobby-team-heading>div { flex:1; min-width:0; }
.pw-lobby-team-heading>div>span { color:#8c8ca2; font-size:10px; letter-spacing:.08em; }
.pw-lobby-team-heading h2 { color:#e7e7f0; font-size:21px; font-weight:700; overflow-wrap:anywhere; margin-top:4px; }
.pw-lobby-team-heading>strong { color:#e7e7ef; font-size:21px; }
.pw-lobby-team-heading>strong>span { font-size:14px; color:#77778e; }
.pw-lobby-player { display:flex; align-items:center; gap:12px; padding:20px; min-height:90px; border-bottom:1px solid #30303e; }
.pw-player-number { width:12px; flex-shrink:0; color:#626279; font-size:12px; }
.pw-lobby-player>div { flex:1; min-width:0; }
.pw-lobby-player>div>strong { display:flex; align-items:center; flex-wrap:wrap; gap:6px; color:#e9e9f1; font-size:15px; overflow-wrap:anywhere; }
.pw-lobby-player>div>span { display:flex; align-items:center; gap:5px; color:#808096; font-size:12px; margin-top:4px; }
.pw-player-ready { display:flex; align-items:center; gap:5px; color:#8d8da4; font-size:12px; }
.pw-player-ready.ready { color:#95bd9f; }
.pw-lobby-team-bottom { display:flex; align-items:center; gap:8px; padding:15px 22px; color:#74748a; font-size:12px; }
.pw-lobby-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:20px; padding:24px; margin-top:25px; }
.pw-lobby-footer>div { flex:1 1 260px; }
.pw-lobby-footer h2 { color:#cfcfdf; font-size:16px; margin-bottom:8px; }
.pw-lobby-footer p { font-size:13px; line-height:1.6; color:#9090a6; max-width:700px; }
.pw-game-connection { display:flex; flex-wrap:wrap; align-items:center; gap:22px; }
.pw-game-connection>div:first-child { flex:1 1 240px; }
.pw-game-connection-action { display:grid; gap:9px; }
.pw-game-connection-action>span:first-child { display:flex; align-items:center; gap:6px; color:#a0a0b3; font-size:12px; }
.pw-game-connection-action .pw-social-button { min-height:43px; }
.pw-steam-overlay { position:fixed; inset:0; z-index:9990; background:rgba(4,6,10,.82); backdrop-filter:blur(3px); }
.pw-steam-modal { position:fixed; top:50%; left:50%; transform:translate(-50%,-50%); display:grid; gap:16px; z-index:9991; width:calc(100% - 32px); max-width:460px; max-height:calc(100dvh - 32px); overflow:auto; padding:30px; border:1px solid #454858; border-radius:9px; background:#1b1e28; color:#e4e7ef; text-align:center; box-shadow:0 25px 80px #0009; }
.pw-steam-close { position:absolute; top:15px; right:15px; display:grid; place-items:center; width:27px; height:27px; color:#a0a6b9; }
.pw-steam-modal>[id] { line-height:1.5; }
.pw-steam-modal h2 { font-size:25px; font-weight:800; margin-bottom:4px; }
.pw-steam-modal p { color:#9fa7ba; font-size:14px; line-height:1.65; }
.pw-steam-modal>.pw-social-button { width:100%; min-height:47px; justify-content:center; margin-top:10px; }
.pw-steam-symbol { display:grid; place-items:center; width:62px; height:62px; margin:0 auto 12px; border-radius:50%; background:#263746; border:1px solid #455f77; color:#9ac4e6; }
.pw-steam-official { display:flex; align-items:center; gap:13px; padding:17px; background:#222c38; border:1px solid #3a5064; border-radius:6px; text-align:left; }
.pw-steam-official>svg { flex-shrink:0; color:#94bcd9; }
.pw-steam-official strong { color:#cbdce9; font-size:14px; }
.pw-steam-official p { margin-top:4px; font-size:12px; color:#94a9bc; }
.pw-steam-secondary { display:flex; align-items:center; justify-content:center; gap:6px; width:100%; font-size:13px; padding:9px; color:#999fb0; }
.pw-steam-linked { display:flex; align-items:center; justify-content:center; gap:10px; padding:16px; border:1px solid #435f4d; background:#23332a; border-radius:6px; color:#a4ccb0; }
.pw-steam-linked span { display:block; font-size:13px; margin-top:5px; font-variant-numeric:tabular-nums; }
.pw-steam-return { padding-top:70px; }
.pw-steam-return>section { max-width:570px; margin:0 auto; padding:35px; text-align:center; }
.pw-steam-return h1 { font-size:27px; margin:18px 0; font-weight:800; }
.pw-steam-return p { color:#9ea4b7; line-height:1.7; margin-bottom:24px; }
.pw-steam-return .pw-inline-actions { justify-content:center; margin-top:24px; flex-wrap:wrap; }
@media(max-width:540px) { .pw-steam-modal { width:calc(100% - 28px); padding:24px 19px; } .pw-steam-return>section { padding:28px 20px; } }
.pw-lobby-footer>.pw-game-connection { flex:1 1 520px; }
.pw-lobby-leave { align-self:flex-end; }
@media(max-width:540px) { .pw-game-connection-action { width:100%; } .pw-lobby-footer>.pw-lobby-leave { width:100%; } }
@media(max-width:800px) { .pw-lobby-teams { grid-template-columns:1fr; } .pw-lobby-vs { width:122px; min-height:78px; padding:10px 12px; gap:6px; } .pw-lobby-vs>svg { width:23px; height:23px; } .pw-lobby-vs::before,.pw-lobby-vs::after { top:50%; bottom:auto; width:52px; height:1px; } .pw-lobby-vs::before { left:auto; right:calc(100% + 12px); background:linear-gradient(90deg,transparent,#b77a42); } .pw-lobby-vs::after { left:calc(100% + 12px); background:linear-gradient(90deg,#6ca9cb,transparent); } .pw-lobby-header h1 { font-size:30px; } }
@media(max-width:540px) { .pw-match-modal { padding:24px 18px; } .pw-ready-dots { gap:4px; } .pw-ready-dots>span { width:24px; height:24px; } .pw-ready-symbol { margin-bottom:15px; } .pw-lobby-player { padding:17px 12px; gap:9px; } .pw-lobby-player .pw-player-avatar { width:36px; height:36px; flex-basis:36px; } .pw-lobby-team-heading { padding:18px 14px; } .pw-lobby-team-heading h2 { font-size:19px; } .pw-player-ready { font-size:11px; gap:3px; } .pw-lobby-footer { padding:20px; } }
.pw-panel-note { max-width:620px; margin:6px 0 20px; color:#9393a9; font-size:13px; line-height:1.6; }
.pw-bot-picker,.pw-team-search { padding:24px; }
.pw-bot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.pw-bot-card { display:flex; flex-wrap:wrap; align-items:center; gap:10px; min-width:0; padding:13px; border:1px solid #353544; border-radius:5px; background:#1d1d28; }
.pw-bot-card.added { border-color:#4c544a; background:#242b27; }
.pw-bot-card .pw-player-avatar { width:40px; height:40px; flex-basis:40px; }
.pw-bot-card>div { flex:1; min-width:65px; }
.pw-bot-card strong { font-size:15px; color:#e8e8ef; }
.pw-bot-card small { display:block; font-size:11px; color:#8b8ba2; margin-top:3px; }
.pw-bot-card>.pw-social-button { width:100%; min-height:31px; padding:5px 10px; font-size:12px; }
.pw-bot-footer { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:14px; margin-top:18px; padding-top:18px; border-top:1px solid #343441; }
.pw-bot-footer>span { color:#9292a8; font-size:13px; }
.pw-bot-badge { color:#a6c7dc; border-color:#455b6a; }
.pw-team-search { border-color:#594b3c; }
.pw-team-search.active { border-color:#b27a3c; background:#27241f; }
.pw-queue-heading { display:flex; align-items:center; gap:12px; margin-bottom:16px; font-size:12px; color:#9c9cad; }
.pw-test-label { border:1px solid #6f573c; border-radius:3px; padding:3px 6px; color:#e9b572; font-size:10px; font-weight:700; letter-spacing:.07em; }
.pw-queue-main { display:flex; flex-wrap:wrap; align-items:center; gap:20px; }
.pw-queue-copy { flex:1 1 200px; }
.pw-queue-copy h2 { display:flex; align-items:center; gap:10px; font-size:20px; }
.pw-queue-copy p { color:#a3a3b7; margin-top:7px; font-size:13px; line-height:1.5; }
.pw-queue-timer { display:flex; align-items:center; gap:8px; font-size:25px; font-variant-numeric:tabular-nums; color:#f4bd78; }
.pw-queue-timer svg { color:#a38c70; }
.pw-test-note { border-top:1px solid #3b3740; padding-top:14px; margin-top:20px; color:#8d8d9d; font-size:12px; line-height:1.6; }
.pw-queue-hint { color:#a5a5ba; font-size:13px; line-height:1.5; }
.pw-search-pulse { width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:#f6a64c; animation:pw-queue-pulse 1.8s infinite; }
@keyframes pw-queue-pulse { 50% { opacity:.35; } }
@media(prefers-reduced-motion:reduce) { .pw-search-pulse { animation:none; } }
@media(max-width:1100px) { .pw-bot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .pw-bot-picker,.pw-team-search { padding:18px; } .pw-bot-grid { gap:8px; } .pw-bot-card { padding:10px; } .pw-bot-card>div { min-width:0; } .pw-bot-card small { font-size:10px; } .pw-bot-card .pw-player-avatar { width:32px; height:32px; flex-basis:32px; } .pw-queue-main>.pw-social-button { width:100%; } .pw-queue-heading { flex-wrap:wrap; gap:8px; } .pw-bot-footer>.pw-inline-actions { flex-wrap:wrap; } }
@media(max-width:1100px) { .pw-social-layout { grid-template-columns:minmax(0,1fr) 240px; gap:18px; } .pw-team-workspace { grid-template-columns:240px minmax(0,1fr); gap:18px; } .pw-team-form-grid { grid-template-columns:1fr 1fr; } .pw-friend-actions { justify-content:flex-end; max-width:240px; } }
@media(max-width:800px) { .pw-social-layout,.pw-team-workspace { grid-template-columns:minmax(0,1fr); } .pw-social-aside { grid-template-columns:1fr 1fr; } .pw-team-list { display:flex; flex-wrap:wrap; } .pw-team-list>h2 { width:100%; } .pw-team-list-item { width:50%; border-right:1px solid #30303d; } }
@media(max-width:540px) { .pw-social-intro { align-items:flex-start; flex-direction:column; } .pw-social-aside { grid-template-columns:minmax(0,1fr); } .pw-social-tabs { gap:0; padding:0 8px; } .pw-social-tabs button { flex:1 1 50%; min-height:48px; } .pw-player-lookup { padding:16px; } .pw-player-row { flex-wrap:wrap; } .pw-player-row-copy { flex:1 1 calc(100% - 65px); } .pw-friend-actions { width:100%; max-width:none; justify-content:flex-start; padding-left:57px; } .pw-lookup-search { gap:7px; padding-left:10px; } .pw-lookup-search>input { font-size:14px; } .pw-lookup-search>.pw-social-button { padding:7px 9px; } .pw-team-form-grid { grid-template-columns:minmax(0,1fr); } .pw-team-list-item { width:100%; } .pw-team-header,.pw-team-roster,.pw-invite-picker,.pw-team-editor,.pw-team-invitations,.pw-pending-team-invites { padding:18px; } .pw-team-invite-row { flex-wrap:wrap; } .pw-team-invite-row>.pw-inline-actions { width:100%; padding-left:67px; } .pw-player-row>.pw-social-button { margin-left:57px; } .pw-connection-list { padding:0 16px; } }
/* Local font fallbacks for scripts not included in the archived Proxima font. */
html:is([lang="ar"],[lang="he"],[lang="fa"],[lang="ur"],[lang="hi"],[lang="bn"]) body,
html:is([lang="ar"],[lang="he"],[lang="fa"],[lang="ur"],[lang="hi"],[lang="bn"]) .font-proxima {
  font-family: "Segoe UI", "Nirmala UI", Tahoma, Arial, sans-serif;
}
html[lang="ja"] body, html[lang="ja"] .font-proxima { font-family: "Yu Gothic", Meiryo, sans-serif; }
html[lang="ko"] body, html[lang="ko"] .font-proxima { font-family: "Malgun Gothic", sans-serif; }
html[lang="zh-Hans"] body, html[lang="zh-Hans"] .font-proxima { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
html[lang="zh-Hant"] body, html[lang="zh-Hant"] .font-proxima { font-family: "Microsoft JhengHei", "PingFang TC", sans-serif; }
html[lang="th"] body, html[lang="th"] .font-proxima { font-family: "Leelawadee UI", Tahoma, sans-serif; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="url"] { direction: ltr; text-align: left; }

/* Profile pictures share the player avatar used by friends and team rosters. */
.pw-profile-avatar-picker { display:flex; align-items:center; gap:22px; padding-bottom:24px; border-bottom:1px solid #34343d; }
.pw-profile-avatar-preview { flex-shrink:0; }
.pw-profile-avatar-preview .pw-player-avatar { width:100px; height:100px; border-radius:12px; }
.pw-profile-avatar-preview .pw-player-avatar>svg { width:42px; height:42px; color:#9696aa; }
.pw-profile-avatar-copy { min-width:0; }
.pw-profile-avatar-copy h3 { font-size:16px; font-weight:700; margin-bottom:6px; }
.pw-profile-avatar-copy p { color:#aaaab9; font-size:13px; line-height:1.6; margin:0 0 12px; }
.pw-profile-avatar-copy .pw-error { color:#e6a6a0; margin-top:12px; }
.pw-profile-avatar-copy .pw-inline-actions { flex-wrap:wrap; }
.pw-account-identity { display:inline-flex; align-items:center; gap:9px; vertical-align:middle; }
.pw-account-identity .pw-player-avatar { width:28px; height:28px; flex-basis:28px; border-radius:5px; }
.pw-account-identity .pw-player-avatar>svg { width:17px; height:17px; }
@media(max-width:540px) { .pw-profile-avatar-picker { align-items:flex-start; gap:14px; } .pw-profile-avatar-preview .pw-player-avatar { width:72px; height:72px; } .pw-profile-avatar-copy .pw-social-button { padding:7px 10px; font-size:12px; } }
