/* My Arcade (/me): one column of cards on a phone, two on a wide screen. Shares games.css's look. */
.me { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; display: grid; gap: 16px; }
.me .card { padding: 16px; min-width: 0; }
.me h2 { font-size: 22px; margin: 0 0 10px; }
.me-profile { display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; }
.me-face { width: 92px; height: 92px; min-height: 92px; padding: 0; border-radius: 50%; background: #1a1d23; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; }
.me-face svg { width: 84px; height: 84px; }
.me-who { display: grid; gap: 6px; min-width: 0; }
.me-who label { font-weight: 700; }
.me-who input, .add-row input { width: 100%; box-sizing: border-box; min-height: 48px; font-size: 18px; padding: 8px 12px; border-radius: 14px; border: 3px solid var(--ink); background: #fff8ec; color: var(--ink); }
.me-acct { margin: 0; font-size: 17px; }
.me-pick { grid-column: 1 / -1; justify-self: start; }
.me-streak { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.me-streak h2 { margin-bottom: 4px; }
.me-streak p { margin: 0; }
.streak-num { width: 92px; height: 92px; border-radius: 24px; background: #ff7a3d; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); display: grid; place-items: center; align-content: center; line-height: 1; }
.streak-num .flame { font-size: 28px; }
.streak-num b { font-size: 40px; color: #fff; text-shadow: 0 2px 0 var(--ink); }
.streak-num.cold { background: #2c313b; }
.daily-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.daily-row a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 17px; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #1a1d2366; border: 2px solid var(--line); min-width: 0; }
.rows .g { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .v { font-weight: 700; color: var(--accent); white-space: nowrap; }
.rows .u { color: var(--soft); font-size: 17px; }
.rows .when { color: var(--soft); font-size: 17px; white-space: nowrap; }
.rows .none { color: var(--soft); }
.rows a.g { color: var(--text); text-decoration: none; }
.empty { margin: 0; color: var(--soft); }
.code-box { display: grid; gap: 4px; justify-items: start; margin-bottom: 12px; }
.code-big { font-size: 34px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.add-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 10px 0 4px; }
.add-row input { text-transform: uppercase; letter-spacing: .1em; }
.add-msg { min-height: 1.3em; margin: 4px 0 8px; font-weight: 600; }
.add-msg.bad { color: #ff9db5; }
.friend { display: grid; gap: 8px; padding: 12px; border-radius: 16px; background: #1a1d2366; border: 2px solid var(--line); }
.friend-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.friend-top .nm { font-weight: 700; font-size: 19px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-top .st { white-space: nowrap; font-weight: 700; }
.vs { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 17px; }
.vs li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.vs .them, .vs .you { min-width: 4.5em; text-align: right; font-weight: 700; }
.vs .win { color: var(--accent); }
.vs .head { color: var(--soft); font-size: 17px; }
.friend .rm { justify-self: end; }
.friend-list { display: grid; gap: 10px; margin-top: 12px; }
.faces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.faces button { min-height: 72px; padding: 4px; background: #1a1d23; border: 3px solid var(--line); box-shadow: none; border-radius: 16px; display: grid; place-items: center; }
.faces button[aria-pressed="true"] { border-color: var(--accent); background: #2c313b; }
.faces svg { width: 60px; height: 60px; }
.me-note { font-size: 17px; margin: 0; }
@media (min-width: 820px) {
  .me { grid-template-columns: 1fr 1fr; align-items: start; }
  .me-profile, .me-streak, #friends, .me-note { grid-column: span 1; }
  #friends, .me-note { grid-column: 1 / -1; }
}
@media (max-width: 360px) { .me-face, .streak-num { width: 76px; height: 76px; min-height: 76px; } .me-face svg { width: 68px; height: 68px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Play with a friend and invite alerts (Doug, 6 Oct: invite a friend to a game, they get a notification). */
.play-with[hidden] { display: none; }
.play-open { width: 100%; min-height: 44px; }
.play-with { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.play-with .muted { flex: 1 0 100%; font-size: 17px; }
.play-with button { flex: 1 1 calc(50% - 6px); min-width: 0; min-height: 44px; margin: 0; }
.play-note { margin: 0; min-height: 1.2em; font-size: 17px; }
.play-note:empty { display: none; }
.alerts-box { display: grid; gap: 6px; margin: 4px 0 10px; }
.alerts-box .alerts-note { margin: 0; font-size: 17px; line-height: 1.35; }

/* Your photo in games (src/pics.ts) */
.me-face img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.photo-choices { display: grid; gap: 8px; }
.photo-choices button { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 64px; margin: 0; }
.photo-choices button[aria-pressed="true"] { outline: 3px solid #ffd23f; outline-offset: 2px; }
.photo-choices .ph-thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: #1a1d23; }
.photo-choices .ph-thumb img, .photo-choices .ph-thumb svg { width: 52px; height: 52px; object-fit: cover; }
.photo-choices small { display: block; opacity: .8; font-weight: 500; }
/* friends online (Doug, 9 Oct) */
.friend .online { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-weight: 700; flex-wrap: wrap; }
.friend .online .dot { width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px #3ddc8444; }
.friend .online .join { margin-left: auto; min-height: 44px; }
/* friend messages (Doug, 9 Oct) */
.friend .msg-open .unread { color: var(--ink); background: #ffd23f; border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-size: 17px; }
.friend .thread { display: grid; gap: 6px; margin: 6px 0; }
.friend .thread .lines { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.friend .thread .lines p { margin: 0; max-width: 85%; padding: 6px 10px; border-radius: 12px; display: grid; }
.friend .thread .lines p.them { background: #ffffff1a; justify-self: start; }
.friend .thread .lines p.me { background: #3ddc8433; justify-self: end; text-align: right; }
.friend .thread .lines small { opacity: .7; font-size: 17px; }
.friend .thread .say { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.friend .thread .say input { min-height: 44px; min-width: 0; border-radius: 12px; padding: 0 10px; font-size: 17px; }
