@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Sora:wght@600;700;800&display=swap');

:root {
  --dt-bg: #0b1730;
  --dt-bg-deep: #071124;
  --dt-surface: #102440;
  --dt-surface-2: #173253;
  --dt-surface-3: #1c3b61;
  --dt-text: #f7fbff;
  --dt-muted: #9fb3c9;
  --dt-outline: #2d4d70;
  --dt-blue: #5f86c7;
  --dt-orange: #f15a3b;
  --dt-orange-strong: #ff704f;
  --dt-success: #4fd19a;
  --dt-danger: #ff6b6b;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--dt-text);
  background: var(--dt-bg-deep);
}

html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--dt-text);
  background:
    radial-gradient(circle at 14% 0%, rgba(50, 91, 142, .42), transparent 35%),
    radial-gradient(circle at 92% 8%, rgba(241, 90, 59, .12), transparent 24%),
    linear-gradient(155deg, var(--dt-bg) 0%, var(--dt-bg-deep) 72%);
  background-attachment: fixed;
}

h1, h2, h3, .launch-menu-button strong, .timer, .player-score, .friend-play-code {
  font-family: Sora, Inter, ui-sans-serif, sans-serif;
}

.app-shell { width: min(1480px, 96vw); }
body.launch-home .topbar,
body.launch-home #setup,
body.launch-custom .topbar { display: none !important; }

.public-launch-screen {
  min-height: calc(100vh - 56px);
  display: grid;
  place-items: center;
  padding: 24px 0 40px;
}
.public-launch-screen.hidden { display: none !important; }
.launch-shell-card {
  width: min(920px, 94vw);
  border: 1px solid rgba(95, 134, 199, .32);
  background: linear-gradient(155deg, rgba(16, 36, 64, .97), rgba(9, 24, 46, .98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, .36);
  border-radius: 28px;
  padding: clamp(24px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.launch-shell-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 90, 59, .2), transparent 68%);
  pointer-events: none;
}
.launch-brand { text-align: center; position: relative; z-index: 1; }
.launch-logo {
  display: block;
  width: min(430px, 78vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .24));
}
.launch-tagline { margin: 0; color: #d5e1ed; font-size: clamp(1rem, 2.2vw, 1.25rem); font-weight: 600; }
.launch-welcome-copy { margin: 26px auto 18px; max-width: 610px; text-align: center; color: var(--dt-muted); line-height: 1.55; }
.launch-auth-mount { max-width: 620px; margin: 24px auto 0; }

.launch-menu-head { display: flex; align-items: center; gap: 18px; margin: 28px 0 22px; }
.launch-menu-avatar {
  position: relative;
  flex-shrink: 0;
  line-height: 1;
  width: 58px; height: 58px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center; background: var(--dt-surface-2); border: 1px solid var(--dt-outline);
  font-weight: 900; font-size: 1.2rem;
}
.launch-menu-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.launch-menu-head-copy { min-width: 0; flex: 1; }
.launch-menu-kicker { display: block; color: var(--dt-orange); font-size: .7rem; font-weight: 900; letter-spacing: .16em; }
.launch-menu-head h2 { margin: 3px 0 0; font-size: clamp(1.4rem, 4vw, 2.1rem); }
.launch-account-email { display: block; color: #7f96ad; font-size: .72rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.launch-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.launch-menu-button {
  min-height: 96px;
  border-radius: 18px;
  border: 1px solid var(--dt-outline);
  background: linear-gradient(145deg, rgba(23, 50, 83, .94), rgba(14, 34, 60, .96));
  color: var(--dt-text);
  padding: 17px 18px;
  text-align: left;
  display: grid;
  align-content: center;
  gap: 5px;
  transition: transform .14s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.launch-menu-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(241, 90, 59, .8);
  background: linear-gradient(145deg, rgba(28, 59, 96, .98), rgba(17, 39, 68, .98));
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}
.launch-menu-button strong { font-size: 1.05rem; }
.launch-menu-button span { color: var(--dt-muted); font-size: .78rem; line-height: 1.35; }
.launch-menu-button.primary-launch {
  border-color: rgba(241, 90, 59, .58);
  background: linear-gradient(145deg, rgba(241, 90, 59, .98), rgba(200, 65, 40, .98));
}
.launch-menu-button.primary-launch span { color: rgba(255,255,255,.82); }
.launch-menu-button:disabled { opacity: .5; cursor: not-allowed; }
.launch-menu-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 18px; }
.launch-menu-footer small { color: #7089a3; }
.launch-account-action, .launch-back-button {
  background: transparent; color: var(--dt-muted); border: 1px solid var(--dt-outline); border-radius: 999px; padding: 9px 14px;
}
.launch-account-action:hover, .launch-back-button:hover { color: var(--dt-text); border-color: var(--dt-blue); }

.launch-custom-card { width: min(780px, 94vw); }
.launch-custom-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.launch-custom-head h2 { margin: 0; }
#launchCustomMount .friend-play-panel { display: block !important; margin: 0; }

.launch-service-bin { display: none !important; }
.launch-auth-modal {
  position: fixed; inset: 0; z-index: 220; padding: 22px; display: grid; place-items: center;
  background: rgba(4, 12, 25, .82); backdrop-filter: blur(12px);
}
.launch-auth-modal.hidden { display: none !important; }
.launch-auth-card { width: min(620px, 94vw); background: var(--dt-surface); border: 1px solid var(--dt-outline); border-radius: 24px; padding: 24px; box-shadow: 0 28px 80px rgba(0,0,0,.46); }
.launch-auth-card-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 12px; }
.launch-auth-card-head button { background: transparent; color: var(--dt-muted); border: 0; font-size: 1.6rem; }

/* Existing auth surface, recolored for the welcome/menu shell. */
.auth-panel { background: rgba(9, 25, 47, .72) !important; border-color: var(--dt-outline) !important; box-shadow: none !important; }
.auth-kicker { color: var(--dt-orange) !important; }
.continue-as-guest, .auth-signout, .profile-v1-open-button { border-color: var(--dt-outline) !important; color: var(--dt-text) !important; background: var(--dt-surface-2) !important; }

/* App-wide public brand skin. */
.topbar { align-items: center; }
.topbar .eyebrow { color: var(--dt-orange); }
.tagline, .alpha-note, .muted { color: var(--dt-muted); }
.alpha-note { border-color: var(--dt-outline); }
.panel, .modal-card, .game-intro-card, .match-result-card, .forfeit-confirm-card, .profile-v1-card {
  background: linear-gradient(150deg, rgba(16,36,64,.98), rgba(10,27,51,.98)) !important;
  border-color: var(--dt-outline) !important;
  color: var(--dt-text);
}
input { background: #0a1b32 !important; border-color: var(--dt-outline) !important; color: var(--dt-text) !important; }
input:focus { border-color: var(--dt-blue) !important; box-shadow: 0 0 0 3px rgba(95,134,199,.18) !important; }
.primary { background: var(--dt-orange) !important; color: #fff !important; }
.primary:hover { background: var(--dt-orange-strong) !important; }
.secondary, .mode, .match-details-button {
  background: var(--dt-surface-2) !important; color: #dce8f4 !important; border-color: var(--dt-outline) !important;
}
.secondary:hover, .mode:hover, .match-details-button:hover { background: var(--dt-surface-3) !important; }
.mode.active { background: #e6eef7 !important; color: var(--dt-bg-deep) !important; border-color: #e6eef7 !important; }
.scorebar { border-color: var(--dt-outline); }
.player-card.active { background: rgba(33, 68, 107, .58) !important; }
.turn-card { border-color: var(--dt-outline) !important; }
.board { background: #061126 !important; }
.cell { background: #102039 !important; border-color: #28425f !important; color: #708aa5 !important; }
.cell:hover { border-color: var(--dt-blue) !important; }
.tile, .rack-tile { background: #f4ead6 !important; color: #172238 !important; }
.tile.pending, .rack-tile.selected { outline-color: var(--dt-orange) !important; border-color: var(--dt-orange) !important; }
.selection-summary, .message:not(:empty) { background: #0a1b32 !important; border-color: var(--dt-outline) !important; }
.timer { background: #08172b !important; color: var(--dt-orange) !important; }
.definition-option { background: var(--dt-surface-2) !important; border-color: var(--dt-outline) !important; }
.definition-option:hover { background: var(--dt-surface-3) !important; border-color: var(--dt-blue) !important; }

.doug-brand-avatar { padding: 0 !important; overflow: hidden; background: #0b1930 !important; border: 1px solid var(--dt-outline); }
.doug-brand-avatar img { width: 100%; height: 100%; object-fit: contain; display: block; }

.scorebar { grid-template-columns: minmax(0, 1fr) minmax(104px, .45fr) minmax(0, 1fr); }
.scorebar .turn-card { min-width: 0; overflow: visible; padding: 4px; gap: 1px; }
.scorebar .player-identity, .scorebar .player-copy { min-width: 0; }
.scorebar .player-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.scorebar #turnLabel { overflow-wrap: anywhere; line-height: 1.15; font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.turn-brand-logo {
  display: block;
  width: min(60px, 100%);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
#gameMenu { width: 100%; min-height: 44px; padding: 9px 14px; font-size: .85rem; text-align: left; background: var(--dt-surface-2); color: var(--dt-text); }
#gameMenuStatus:empty { display: none; }
#gameMenuStatus { max-width: 160px; font-size: .65rem; }
.launch-active-games { margin-top: 24px; }
.launch-active-games h2 { font-size: 1rem; }
.active-game-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--dt-outline); }
.active-game-row p { margin: 5px 0; font-size: .85rem; }
.active-game-row small { color: var(--dt-muted); }
.active-game-row button { flex-shrink: 0; }
@media (max-width: 620px) {
  body.mobile-game-fit .scorebar { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); }
  body.mobile-game-fit .scorebar .turn-card { padding: 2px; }
  body.mobile-game-fit .scorebar .player-card { grid-template-areas: "name name" "avatar score" "resources resources"; gap: 3px 6px; padding: 5px 7px; }
  body.mobile-game-fit .scorebar .player-identity { display: contents; }
  body.mobile-game-fit .scorebar .player-copy { grid-area: name; }
  body.mobile-game-fit .scorebar .player-avatar { grid-area: avatar; }
  body.mobile-game-fit .turn-brand-logo { width: min(60px, 100%); }
  body.mobile-game-fit .scorebar #turnLabel { font-size: .68rem; }
  body.mobile-game-fit .scorebar .player-avatar { width: 30px; height: 30px; flex-basis: 30px; }
  body.mobile-game-fit .scorebar .player-identity { gap: 5px; }
  .active-game-row { gap: 8px; }
  .active-game-row strong { font-size: .85rem; }
}

.launch-menu-button .menu-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-left: 5px; padding: 0 5px; border-radius: 12px; background: var(--dt-surface-3); color: var(--dt-text); font-size: .8rem; }
.launch-menu-button.needs-turn { border-color: var(--dt-orange); }
.launch-menu-button.needs-turn #activeGamesWaiting { color: #ffba9b; }
.game-overflow { position: relative; }
.controls-actions .mode-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
.game-overflow #gameOverflow { width: 44px; min-height: 44px; padding: 4px; font-size: 1.6rem; line-height: 1; background: var(--dt-surface-2); color: var(--dt-text); border: 1px solid var(--dt-outline); border-radius: 10px; }
.game-overflow-panel { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 100; width: 195px; padding: 6px; border: 1px solid var(--dt-outline); border-radius: 12px; background: var(--dt-bg); box-shadow: 0 8px 25px #0008; }
.game-overflow-panel #gameMenuStatus { display: block; padding: 6px; max-width: none; }
.game-overflow-panel #gameMenuStatus:empty { display: none; }
.controls-panel:has(.game-overflow-panel:not(.hidden)) { z-index: 101; overflow: visible; }
.friend-search-form { display: grid; gap: 8px; }
.friend-search-row { display: flex; gap: 8px; }
.friend-search-row input { flex: 1; min-width: 0; width: 100%; }
.friend-search-row button, #friendInvite, #friendCancel, .friend-search-results button { min-height: 44px; }
.friend-search-results { display: grid; gap: 6px; margin: 12px 0; }
.friend-search-results button { text-align: left; overflow-wrap: anywhere; background: var(--dt-surface-2); color: var(--dt-text); border: 1px solid var(--dt-outline); }
.friend-search-results button[aria-pressed="true"] { border-color: var(--dt-orange); }
.invitation-row { flex-wrap: wrap; }
.invitation-row strong { flex: 1 1 100%; overflow-wrap: anywhere; }

.matches-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 12px 0; }
.matches-tabs button { min-width: 0; min-height: 44px; padding: 8px 4px; font-size: .75rem; }
.matches-tabs [aria-selected="true"] { background: var(--dt-blue); color: white; }
.completed-game-row, .active-game-row { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #ffffff22; }
.completed-game-row > div, .active-game-row > div { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.match-opponent-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; text-align: center; font-size: 1.2rem; }
.match-opponent-avatar-image { display: block; width: 36px; height: 36px; object-fit: contain; }
.active-game-row button { min-height: 44px; padding: 8px; flex-shrink: 0; }

@media (max-width: 620px) {
  #launchMenu.public-launch-screen { min-height: auto; padding: 8px 0 18px; }
  #launchMenu .launch-shell-card { padding: 16px; border-radius: 22px; }
  #launchMenu .launch-logo { width: min(190px, 56vw); }
  #launchMenu .launch-tagline { font-size: .78rem; }
  #launchMenu .launch-menu-head { gap: 12px; margin: 14px 0; }
  #launchMenu .launch-menu-avatar { width: 46px; height: 46px; border-radius: 14px; }
  #launchMenu .launch-menu-head h2 { font-size: 1.15rem; overflow-wrap: anywhere; }
  #launchMenu .launch-menu-grid { gap: 7px; }
  #launchMenu .launch-menu-button { min-height: 62px; padding: 10px 12px; border-radius: 13px; gap: 3px; }
  #launchMenu .launch-menu-button strong { font-size: .9rem; }
  #launchMenu .launch-menu-button > span { font-size: .72rem; }
  #launchMenu .launch-menu-footer { margin-top: 12px; font-size: .7rem; }
  body.mobile-game-fit .controls-panel .mode-row { flex: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; }
  body.mobile-game-fit .controls-actions { grid-template-columns: minmax(0, 1fr); grid-template-areas: "submit" "mode" "secondary"; }
  body.mobile-game-fit .controls-panel .action-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; }
  body.mobile-game-fit .controls-panel .action-row button,
  body.mobile-game-fit .controls-panel .mode-row button,
  body.mobile-game-fit .controls-panel .primary.wide { min-width: 0; min-height: 44px; white-space: normal; }
  body.mobile-game-fit .controls-panel .rack { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); width: 100%; }
  body.mobile-game-fit .rack-tile { min-width: 0; width: 100%; min-height: 44px; }
  body.mobile-game-fit .game-overflow #gameOverflow { min-height: 44px; font-size: 1.6rem; }
}

.beta-title-badge { display: none !important; }

@media (max-width: 700px) {
  .public-launch-screen { min-height: calc(100dvh - 20px); padding: max(10px, env(safe-area-inset-top)) env(safe-area-inset-right) max(24px, env(safe-area-inset-bottom)) env(safe-area-inset-left); }
  .launch-shell-card { padding: 24px 18px; border-radius: 22px; }
  .launch-menu-grid { grid-template-columns: 1fr; }
  .launch-menu-button { min-height: 80px; }
  .launch-menu-head { margin-top: 20px; }
  .launch-menu-footer { align-items: flex-start; flex-direction: column; }
}


/* Approved mobile polish: entry, custom setup, invitations, and completed matches only. */
#launchWelcome .launch-shell-card { width: min(560px, 94vw); padding: 28px 22px; }
#launchWelcome .launch-logo { width: min(320px, 100%); }
#launchWelcome .launch-welcome-copy { margin: 18px auto; font-size: .95rem; }
#launchWelcome .auth-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 16px; border-radius: 18px; }
#launchWelcome .auth-actions { width: 100%; justify-items: stretch; }
#launchWelcome .auth-copy > span:last-child { color: #afc3db; font-size: .82rem; line-height: 1.5; }
#launchWelcome .auth-copy strong { line-height: 1.35; }
#launchWelcome .continue-as-guest { min-height: 48px; border-radius: 12px; }
.google-signin-slot { min-width: 0; width: 100%; display: grid; place-items: center; }
/* Native Android keeps its original text, accessible name, and click handler.
   This full button image is Google's unmodified, pre-approved artwork. */
#googleSignInButton > button {
  display: block; width: 216px; height: 48px; min-height: 48px; max-width: 100%;
  padding: 0; border: 0; border-radius: 5px; color: transparent;
  background: transparent url('/brand/google-sign-in-light.svg') center / contain no-repeat;
  box-shadow: none; font-size: 14px;
}
#googleSignInButton > button:disabled { opacity: .55; cursor: wait; }
#googleSignInButton > button:focus-visible { outline: 3px solid #7bbaff; outline-offset: 4px; }
.launch-custom-card { width: min(520px, 94vw); padding: 24px; }
.launch-custom-card .launch-custom-head { align-items: flex-start; margin-bottom: 14px; }
.launch-custom-card h2 { font-size: clamp(1.3rem, 5vw, 1.75rem); }
.launch-custom-card > p { color: #c5d5e7; font-size: .9rem; line-height: 1.45; }
.launch-custom-card .launch-back-button { min-height: 44px; padding: 9px 12px; font-size: .7rem; font-weight: 800; }
.launch-custom-card .launch-menu-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.launch-custom-card .launch-menu-button { min-height: 82px; padding: 16px; border-radius: 16px; position: relative; }
.launch-custom-card .launch-menu-button strong { font-size: .95rem; }
.launch-custom-card .launch-menu-button span { font-size: .82rem; font-weight: 400; line-height: 1.45; color: #b8cce4; }
.launch-custom-card .launch-menu-button[aria-expanded="true"] { border-color: #ff704f; box-shadow: 0 0 0 1px #ff704f33, 0 0 20px #f15a3b14; }
#customPlayDoug { padding-left: 78px; }
.custom-doug-icon { position: absolute; width: 48px; height: 48px; left: 16px; top: calc(50% - 24px); object-fit: contain; }
#dougDifficultyChoices h3 { font-size: .9rem; margin: 22px 0 10px; }
#dougDifficultyChoices [data-doug-difficulty="EXPERT"] { border-color: #e9cd50; background: linear-gradient(135deg, #55461980, #172c44); box-shadow: 0 0 18px #e9cd5012; }
#dougDifficultyChoices [data-doug-difficulty="EXPERT"] strong { color: #ffe77b; }
#customFriendChoices { margin-top: 18px; }
#launchCustomMount .friend-play-panel { padding: 16px; border-radius: 18px; background: #0a1c33; border: 1px solid #355a82; margin-top: 12px; }
#launchCustomMount .friend-play-kicker { color: #a7c5e5; font-size: .7rem; letter-spacing: .12em; }
#launchCustomMount .friend-play-head h3 { color: #f7fbff; font-size: 1.1rem; margin: 5px 0; }
#launchCustomMount .friend-play-copy { color: #b8cce4; font-size: .85rem; line-height: 1.45; }
#launchCustomMount .friend-search-form label { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: #b8cce4; }
#launchCustomMount .friend-search-row input { min-height: 48px; font-size: 16px; }
#launchCustomMount .friend-search-row button { min-height: 48px; padding: 10px 12px; }
#launchCustomMount .friend-search-results button { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px; border-radius: 13px; }
#launchCustomMount .friend-search-results button strong { min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }
.friend-result-monogram { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border: 1px solid #74b8ef; border-radius: 50%; color: #e5f2ff; background: #193b60; font-size: .85rem; font-weight: 800; }
#launchCustomMount .friend-search-results button[aria-pressed="true"] { border-color: #5ad6ad; background: #103841; box-shadow: 0 0 16px #4fd19a12; }
#launchCustomMount #friendInvite { width: 100%; min-height: 48px; background: linear-gradient(135deg, #fff345, #ffd72e); color: #142038; border: 1px solid #fff36a; border-radius: 12px; font-weight: 900; }
#launchCustomMount #friendInvite:disabled { opacity: .4; cursor: not-allowed; }
.launch-custom-card button:focus-visible { outline: 3px solid #8fcaff; outline-offset: 3px; }
#matchResultModal { padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
#matchResultModal .match-result-card { width: min(580px, 100%); max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 22px; overscroll-behavior: contain; }
#matchResultModal .match-result-confetti { color: #f7e467; font-size: 1.25rem; margin-bottom: 8px; }
#matchResultModal .match-result-kicker { color: #e8e59a; font-size: .7rem; }
#matchResultModal h2 { font-size: clamp(1.35rem, 5vw, 2rem); overflow-wrap: anywhere; line-height: 1.2; }
#matchResultModal .match-result-subtitle { color: #bacbdf; font-size: .85rem; line-height: 1.45; }
#matchResultModal .match-result-score { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
#matchResultModal .final-score-vs { display: none; }
#matchResultModal .final-score-player { min-width: 0; padding: 12px; gap: 6px; background: #071b31; border-color: #355a82; }
#matchResultModal .final-score-player > span { overflow-wrap: anywhere; font-size: .8rem; }
#matchResultModal .final-score-player.winner { border-color: #def268; background: linear-gradient(140deg, #39462680, #081a2e); }
.result-player-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; background: #193b60; border: 1px solid #6485ab; }
.result-player-avatar img { width: 100%; height: 100%; object-fit: contain; }
#matchResultModal .match-result-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#matchResultModal .match-highlight { min-width: 0; background: #08141f; padding: 13px 10px; border-color: #294050; }
#matchResultModal .match-highlight > span:not(.match-highlight-icon) { color: #afc3d2; font-size: .65rem; }
#matchResultModal .match-highlight small { color: #aebdcc; font-size: .72rem; max-height: none; overflow: visible; line-height: 1.4; }
#matchResultModal .match-result-breakdown { grid-template-columns: minmax(0, 1fr); }
#matchResultModal .result-breakdown-player { background: #091722; border-color: #294050; }
#matchResultModal .result-breakdown-player > div { color: #aebdcc; font-size: .78rem; }
#matchResultModal .result-breakdown-head { flex-wrap: wrap; overflow-wrap: anywhere; }
#matchResultModal .match-result-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#matchResultModal .match-result-actions button { min-height: 48px; white-space: normal; }
#matchResultModal #matchRematch { grid-column: 1 / -1; border-radius: 12px; background: linear-gradient(110deg, #ff713f, #f04443) !important; }
@media (max-width: 420px) {
  #launchWelcome .launch-shell-card, .launch-custom-card { padding: 20px 14px; }
  #launchWelcome .auth-panel { padding: 12px; }
  .launch-custom-card .launch-custom-head { gap: 8px; }
  .launch-custom-card .launch-back-button { font-size: .65rem; padding: 8px; }
  #launchCustomMount .friend-play-panel { padding: 12px; }
  #matchResultModal .match-result-card { padding: 16px 12px; }
}
@media (prefers-reduced-motion: reduce) { #matchResultModal .match-result-card { animation: none; } }
