/* Player cards and optional profile import in the original ocean arcade palette.
   The title, ocean artwork, gameplay pads and base buttons remain in arcade.css. */

.meet-button {
  display:flex;align-items:center;justify-content:center;gap:9px;
  min-height:50px;background:#b4e5dd;color:var(--ink);
  font:14px Arcade,sans-serif;
}
.meet-button .icon {width:24px;height:24px}
#meet-players {order:4;width:100%;margin-top:15px;min-height:52px}
#learn {order:5;margin-top:12px;min-height:52px;font-size:22px}
#open-qr {order:6;margin-top:5px;min-height:44px;font-size:18px}
#result-meet {width:100%;margin-top:17px}
#board-meet {width:100%;margin:14px 0 4px}
.board-connect {
  display:block;min-height:44px;margin:6px 0 0;padding:8px 13px;
  border:2px solid var(--ink);border-radius:5px;background:#b4e5dd;
  color:var(--ink);box-shadow:0 3px 0 var(--ink);font:700 16px Barlow,sans-serif;
}
.board-connect:active {transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}

.players-dialog {width:min(calc(100% - 24px),570px)}
.players-dialog h2,.profile-dialog h2 {font-size:26px;margin:14px 35px 6px 0}
.players-intro {margin:0 0 18px!important}
.players-dialog #my-player-card {width:100%;min-height:50px;font-size:13px}
#player-search {display:flex;gap:8px;margin:22px 0 16px}
#player-search input {
  flex:1;min-width:0;min-height:48px;padding:11px;
  border:2px solid var(--ink);border-radius:5px;background:var(--cream);
  color:var(--ink);font:18px Barlow,sans-serif;
}
#player-search input::placeholder {color:#526b70}
#player-search button {flex:0 0 65px;width:auto;min-width:65px;font-size:12px;padding:8px}
#players-status:empty {display:none}
#players-list {display:flex;flex-direction:column;gap:12px}
.player-card {
  display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:10px;
  align-items:center;padding:15px;background:#123b49;
  border:2px solid #6fa49f;border-radius:7px;
}
.player-avatar {
  position:relative;overflow:hidden;width:42px;height:42px;
  display:grid;place-items:center;border-radius:5px;
  background:#b4e5dd;color:var(--ink);font:21px Arcade,sans-serif;
}
.player-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.player-card h3 {font:700 22px Barlow,sans-serif;margin:0;color:var(--cream);overflow-wrap:anywhere}
.player-card p {font-size:16px;margin:2px 0;color:#c9e4dc;overflow-wrap:anywhere}
.player-best {font:700 15px Barlow,sans-serif;color:var(--gold);white-space:nowrap}
.player-intro {grid-column:1/-1!important;padding-top:3px}
.contact-links {grid-column:1/-1;display:flex;flex-wrap:wrap;gap:9px;margin-top:5px}
.contact-link {
  flex:1 1 160px;display:block;text-align:center;min-height:48px;padding:12px 8px;
  border:2px solid var(--ink);border-radius:5px;box-shadow:0 3px 0 var(--ink);
  text-decoration:none;font:700 18px Barlow,sans-serif;
}
.contact-link.linkedin {background:#123f70;color:#fff;border-color:#80c4e2}
.contact-link.whatsapp {background:#164d3d;color:#d0ffe7;border-color:#71d4a6}
.contact-link:active {transform:translateY(2px);box-shadow:0 1px 0 var(--ink)}
#players-more {width:100%;margin-top:16px}

.profile-dialog {width:min(calc(100% - 24px),510px)}
.profile-dialog h2 {margin-bottom:18px}
.profile-dialog label {display:block;font:600 18px Barlow,sans-serif;color:var(--cream);margin:12px 0}
.profile-dialog label span {font-weight:400;color:#c9e4dc;font-size:14px}
.profile-dialog input:not([type=checkbox]),.profile-dialog select {
  display:block;width:100%;min-height:48px;margin-top:6px;padding:10px;
  border:2px solid var(--ink);border-radius:5px;background:var(--cream);
  color:var(--ink);font:18px Barlow,sans-serif;
  user-select:text;-webkit-user-select:text;
}
.profile-dialog input::placeholder {color:#526b70}
.profile-dialog select {color-scheme:light}
.profile-name-row {display:grid;grid-template-columns:1fr 1fr;gap:10px}
.profile-dialog .publish-choice {
  display:flex;align-items:flex-start;gap:10px;
  margin:15px 0 8px;font-size:16px;line-height:1.35;
}
.profile-dialog .publish-choice input {margin:2px 0 0;flex-shrink:0}
.profile-dialog .small-note {margin:8px 0 16px;font-size:14px;line-height:1.4;color:#c9e4dc}
#save-profile {width:100%;min-height:50px}
#remove-profile {display:block;width:100%;margin-top:12px;font-size:17px}
#profile-status {color:var(--gold);font-size:17px}
#profile-status:empty {display:none}
.profile-dialog [hidden] {display:none!important}

.contact-choices {display:flex;gap:10px;margin:19px 0 12px}
.contact-choices button {
  flex:1;min-height:48px;padding:8px 5px;background:#123b49;
  border:2px solid #8ebeb2;border-radius:5px;color:var(--cream);
  font:700 19px Barlow,sans-serif;
}
.contact-choices button[aria-pressed=true] {border-color:#a2e9c8;background:#164d3d;color:#d0ffe7}
.contact-choices #use-linkedin[aria-pressed=true] {border-color:#80c4e2;background:#123f70;color:#fff}
.quick-contact-row {display:grid;grid-template-columns:95px minmax(0,1fr) 52px;gap:5px;align-items:center}
.quick-contact-row.linkedin-entry {grid-template-columns:minmax(0,1fr) 52px}
.profile-dialog .quick-contact-row input,.profile-dialog .quick-contact-row select {
  min-width:0;margin:0;padding:10px 6px;font-size:17px;
}
.contact-paste {
  min-height:48px;padding:5px;background:#b4e5dd;border:2px solid var(--ink);
  border-radius:5px;color:var(--ink);font:700 16px Barlow,sans-serif;
}
.input-hint {font:15px/1.35 Barlow,sans-serif!important;color:#c9e4dc!important;margin:7px 0!important}
.profile-dialog details {margin:21px 0}
.profile-dialog summary {
  min-height:44px;padding:9px 0;line-height:26px;
  font:600 18px/1.4 Barlow,sans-serif;cursor:pointer;color:var(--cream);
}
.profile-dialog summary span {font-size:14px;font-weight:400;color:#c9e4dc}
#card-identity {
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:#123b49;border:1px solid #6fa49f;border-radius:5px;padding:10px 14px;margin:0 0 12px;
}
#card-identity strong {font:600 20px Barlow,sans-serif;color:var(--cream);overflow-wrap:anywhere}
#edit-card-identity {font-size:18px;min-height:44px}

/* Compact studio credits on the loading screen and menu. */
.playeye-credit,
#loading .splash-logo {
  width:clamp(76px, 11vw, 96px);
  height:auto;
}
#loading .splash-logo {margin:0 0 18px}
#welcome .playeye-credit {transform:translateX(-50%)}

/* Optional sign-in remains hidden until the server is configured. */
.linkedin-signin[hidden],#linkedin-photo[hidden] {display:none!important}
.linkedin-signin {margin:0 0 18px}
.linkedin-login {
  display:flex;align-items:center;justify-content:center;gap:12px;width:100%;
  min-height:50px;padding:10px 14px;border:2px solid #7fd3ff;border-bottom-width:5px;
  border-radius:6px;background:#0a66c2;color:#fff;font:700 19px Barlow,sans-serif;
}
.linkedin-login:active {transform:translateY(2px);border-bottom-width:3px}
.linkedin-login:disabled {opacity:.65}
.linkedin-mark {
  display:grid;place-items:center;width:26px;height:26px;background:#fff;color:#0a66c2;
  border-radius:2px;font:bold 22px/1 Arial,sans-serif;
}
.linkedin-note {font:14px/1.35 Barlow,sans-serif!important;margin:8px 0!important;color:#c9e4dc!important}
.linkedin-note a {color:inherit}
.linkedin-status {font:17px Barlow,sans-serif!important;color:var(--gold)!important}
.linkedin-status:empty {display:none}
#linkedin-photo {display:flex;align-items:center;gap:12px;margin:12px 0}
#linkedin-photo-preview {width:46px;height:46px;object-fit:cover;border-radius:5px}
#linkedin-photo label {display:flex;align-items:center;gap:8px;font-size:16px}
[data-linkedin-settings][hidden] {display:none!important}
[data-linkedin-settings] {font-size:17px;min-height:44px}
#linkedin-data-dialog {width:min(calc(100% - 24px),510px)}
#linkedin-data-dialog h2 {font-size:26px;margin-right:32px}
#linkedin-data-dialog p {font:17px/1.45 Barlow,sans-serif}
#linkedin-data-dialog a {color:var(--gold)}
#forget-linkedin {width:100%;font-size:15px;min-height:50px}
#linkedin-data-status:empty {display:none}

/* Compact the menu only on shorter phones; keep every action at least 44px. */
@media (orientation:portrait) and (max-height:780px) {
  #welcome {padding-top:63px;padding-bottom:18px}
  #welcome h1 {font-size:66px}
  #welcome h1 em {font-size:34px}
  #welcome .hero-scene {height:125px;margin:4px auto 5px}
  #welcome .hero-orca {width:230px;height:115px;left:calc(50% - 115px);top:9px}
  #welcome .hero-sun {top:13px;height:95px}
  #welcome .brand-tag {top:0;font-size:10px}
  #welcome .splash-ring {width:210px;left:calc(50% - 105px);bottom:0}
  #welcome .hero-spray {bottom:29px}
  #welcome .play-button {min-height:60px}
  #welcome .menu-grid {margin-top:12px}
  #welcome .menu-grid .secondary {min-height:48px}
  #meet-players {min-height:44px;margin-top:12px}
  #learn {min-height:44px;margin-top:10px;padding:7px 14px;font-size:21px}
  #open-qr {min-height:44px;margin-top:0;font-size:17px}
}
@media (orientation:portrait) and (max-height:700px) {
  #welcome h1 {font-size:64px}
  #welcome h1 em {font-size:33px}
  #welcome .hero-scene {height:100px;margin:3px auto 0}
  #welcome .hero-orca {width:205px;height:103px;left:calc(50% - 103px);top:2px}
  #welcome .hero-sun {top:8px;height:80px}
  #welcome .splash-ring {width:188px;height:34px;left:calc(50% - 94px);bottom:0}
  #welcome .spark-one {top:18px;font-size:24px}
  #welcome .spark-two {bottom:25px;font-size:20px}
}

/* The new menu and results action occupies its own row in landscape. */
@media (orientation:landscape) and (max-height:600px) {
  #welcome .hero-scene {grid-column:1;grid-row:2/6;align-self:center}
  #meet-players {grid-column:2;grid-row:3;min-height:44px;margin:10px 0 0;font-size:13px}
  #learn {grid-column:2;grid-row:4;min-height:44px;margin:8px 0 0;padding:7px 14px;font-size:20px}
  #open-qr {grid-column:2;grid-row:5;min-height:44px;margin:0;font-size:17px}
  #result-meet {grid-column:2;grid-row:4;min-height:44px;margin:0;font-size:12px}
  .result-footer {grid-column:2;grid-row:5}
  #loading .splash-logo {margin:0}
}
@media (orientation:landscape) and (max-height:360px) {
  #meet-players {margin-top:8px}
  #learn {margin-top:6px}
}
@media (max-width:380px) {
  .player-card {padding:12px;gap:8px;grid-template-columns:42px minmax(0,1fr)}
  .player-best {grid-column:2}
  .players-dialog h2,.profile-dialog h2 {font-size:23px}
  .contact-choices button {font-size:17px}
  .quick-contact-row {grid-template-columns:85px minmax(0,1fr) 48px}
}

/* Return to the PlayEye collection, including from the loading screen. */
#app { --games-back-width: 132px }
#games-back {
  position: absolute;
  top: var(--top);
  left: var(--left);
  z-index: 105;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: var(--games-back-width);
  min-height: 44px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font: 10px Arcade, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}
#games-back > :first-child {font: 23px/1 Barlow, sans-serif}
#games-back:active {transform: translateY(3px);box-shadow: none}
#home {margin-left: calc(var(--games-back-width) + 8px)}
#board-status {font-size: 17px}
@media (max-width: 480px) {
  #app[data-mode="play"] {--games-back-width: 44px}
  #app[data-mode="play"] .games-back-text {display: none}
  #app[data-mode="play"] #home {min-width: 49px;margin-left: calc(var(--games-back-width) + 4px);font-size: 9px;padding: 0 4px}
  #app[data-mode="play"] #home .menu-arrow {display: none}
}
@media (max-width: 380px) {
  #app[data-mode="play"] {
    --left: max(8px, env(safe-area-inset-left));
    --right: max(8px, env(safe-area-inset-right));
  }
  #app[data-mode="play"] #toolbar nav {gap: 3px}
}

/* Progress stays in the menu/result, with scroll room on embedded phones. */
.olympics-progression{display:flex;justify-content:center;margin:9px 0 0;min-height:0}
.olympics-xp-receipt{width:100%;max-width:340px;max-height:116px;overflow:auto;margin:12px auto 0}
#results .result-card{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
