/* Verdathold TCG — lobby landing (gameshow-style) */

.landing-page,
.landing-page *,
.landing-page *::before,
.landing-page *::after {
  box-sizing: border-box;
}

.landing-page {
  position: relative;
  min-height: 100vh;
  background-color: #060a0e;
  color: #e8eaed;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden;
}

.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 34%, rgba(4, 23, 24, 0.28) 0%, rgba(4, 23, 24, 0.06) 58%, transparent 100%),
    linear-gradient(180deg, rgba(4, 23, 24, 0.06) 0%, rgba(4, 23, 24, 0.22) 45%, rgba(2, 5, 6, 0.72) 100%),
    url('/hub/assets/verdanthold-bg.png') center 18% / cover no-repeat;
  pointer-events: none;
  filter: saturate(1.12) contrast(1.05);
}


.landing-page.game-bg-tcg::before {
  background:
    radial-gradient(ellipse 85% 55% at 50% 34%, rgba(4, 16, 28, 0.32) 0%, rgba(4, 16, 28, 0.06) 58%, transparent 100%),
    linear-gradient(180deg, rgba(4, 16, 28, 0.08) 0%, rgba(4, 16, 28, 0.24) 45%, rgba(2, 5, 10, 0.78) 100%),
    url('/hub/assets/game-bg-tcg.png') center 22% / cover no-repeat;
}

.landing-page.game-bg-echoes::before {
  background:
    radial-gradient(ellipse 85% 55% at 50% 34%, rgba(4, 24, 14, 0.32) 0%, rgba(4, 24, 14, 0.06) 58%, transparent 100%),
    linear-gradient(180deg, rgba(4, 24, 14, 0.08) 0%, rgba(4, 24, 14, 0.24) 45%, rgba(2, 8, 5, 0.78) 100%),
    url('/hub/assets/game-bg-echoes.png') center 22% / cover no-repeat;
}

.landing-page.game-bg-idle-rpg::before {
  background:
    radial-gradient(ellipse 85% 55% at 50% 34%, rgba(28, 18, 4, 0.32) 0%, rgba(28, 18, 4, 0.06) 58%, transparent 100%),
    linear-gradient(180deg, rgba(28, 18, 4, 0.08) 0%, rgba(28, 18, 4, 0.24) 45%, rgba(10, 6, 2, 0.78) 100%),
    url('/hub/assets/game-bg-idle-rpg.png') center 22% / cover no-repeat;
}

.landing-page.game-bg-relics::before {
  background:
    radial-gradient(ellipse 85% 55% at 50% 34%, rgba(18, 10, 32, 0.32) 0%, rgba(18, 10, 32, 0.06) 58%, transparent 100%),
    linear-gradient(180deg, rgba(18, 10, 32, 0.08) 0%, rgba(18, 10, 32, 0.24) 45%, rgba(8, 4, 14, 0.78) 100%),
    url('/hub/assets/game-bg-relics.png') center 22% / cover no-repeat;
}

.landing-page.game-bg-tavern::before {
  background:
    radial-gradient(ellipse 85% 55% at 50% 34%, rgba(32, 18, 4, 0.36) 0%, rgba(32, 18, 4, 0.08) 58%, transparent 100%),
    linear-gradient(180deg, rgba(32, 18, 4, 0.1) 0%, rgba(32, 18, 4, 0.28) 45%, rgba(12, 6, 2, 0.82) 100%),
    url('/hub/assets/game-bg-tavern.png') center 22% / cover no-repeat;
}

.landing-page.game-bg-lore::before {
  background:
    radial-gradient(ellipse 90% 60% at 50% 30%, rgba(24, 18, 8, 0.28) 0%, rgba(8, 14, 24, 0.08) 55%, transparent 100%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.1) 0%, rgba(6, 10, 18, 0.55) 50%, rgba(4, 6, 10, 0.82) 100%),
    url('/hub/assets/verdanthold-bg.png') center 20% / cover no-repeat;
}

.landing-page.game-bg-arena::before {
  background:
    radial-gradient(ellipse 85% 55% at 50% 34%, rgba(30, 27, 75, 0.42) 0%, rgba(30, 27, 75, 0.08) 58%, transparent 100%),
    linear-gradient(180deg, rgba(30, 27, 75, 0.12) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(5, 8, 22, 0.88) 100%),
    url('/hub/assets/game-bg-arena.png') center 22% / cover no-repeat;
}

.landing-page.game-bg-tcg::before,
.landing-page.game-bg-echoes::before,
.landing-page.game-bg-idle-rpg::before,
.landing-page.game-bg-relics::before,
.landing-page.game-bg-tavern::before,
.landing-page.game-bg-lore::before,
.landing-page.game-bg-arena::before {
  filter: saturate(1.15) contrast(1.05);
}

.landing-wrap {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  overflow-x: clip;
}

.landing-header {
  margin-bottom: 2rem;
}

.landing-header-home {
  margin-bottom: 1.25rem;
}

.landing-nav-home {
  margin-top: 1rem;
}

.landing-logo-link {
  text-decoration: none;
  color: inherit;
}

.landing-logo-brand {
  display: block;
  text-align: center;
}

.landing-logo-img {
  display: block;
  width: min(100%, 420px);
  max-height: 148px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.65));
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.landing-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #22d3ee, #0891b2);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.landing-logo-text {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.landing-logo-text strong {
  color: #fff;
}

.landing-logo-text span {
  color: #38bdf8;
  font-weight: 700;
}

.landing-panel {
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 0.5rem;
  background: rgba(8, 14, 22, 0.82);
  backdrop-filter: blur(10px);
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, 0.1),
    0 10px 28px rgba(0, 0, 0, 0.48);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.landing-panel h2 {
  margin: -1rem -1.1rem 0.85rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 0.5rem 0.5rem 0 0;
  background: rgba(12, 24, 38, 0.92);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
  text-shadow: none;
}

.landing-panel > p {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2e8f0;
  text-shadow: none;
}

.landing-panel-support h2 {
  color: #5eead4;
}

.landing-panel-flat {
  padding-top: 1rem;
  padding-bottom: 1.25rem;
}

.landing-center-title {
  text-align: center;
  margin-bottom: 1rem !important;
}

.landing-room-status {
  font-size: 0.82rem !important;
  color: #7dd3fc !important;
  margin: -0.35rem 0 0.85rem !important;
}

.landing-game-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.landing-game-chip {
  flex: 1 1 calc(33% - 0.5rem);
  min-width: 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.65rem 0.45rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 0.35rem;
  background: #0a0d12;
  color: #cbd5e1;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.landing-game-chip:hover:not(:disabled) {
  border-color: var(--game-accent, #38bdf8);
}

.landing-game-chip.is-selected {
  border-color: var(--game-accent, #38bdf8);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
  background: #101620;
}

.landing-game-chip.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.landing-game-chip-icon {
  font-size: 1.35rem;
}

.landing-game-chip-name {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.landing-game-tagline {
  font-size: 0.78rem !important;
  color: #64748b !important;
  margin: -0.35rem 0 0.85rem !important;
}

.landing-subcopy,
.landing-warn-copy {
  font-size: 0.82rem !important;
  color: #e2e8f0 !important;
  margin-top: 0.85rem !important;
  text-shadow: none;
}

.landing-warn-copy {
  margin-bottom: 0.75rem !important;
}

.landing-tabs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 0;
  padding-bottom: 0.35rem;
}

.landing-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: #cbd5e1;
  min-width: 4.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 0.4rem;
  background: rgba(10, 18, 30, 0.88);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.landing-tab:hover {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, 0.14),
    0 0 12px rgba(56, 189, 248, 0.28);
}

.landing-tab.is-active {
  color: #7dd3fc;
  border-color: #38bdf8;
  background: rgba(14, 28, 44, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, 0.18),
    0 0 14px rgba(56, 189, 248, 0.45),
    0 0 24px rgba(56, 189, 248, 0.18);
}

.landing-tab-icon {
  font-size: 1.65rem;
  line-height: 1;
}

.landing-tab-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-tab.is-active .landing-tab-icon {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.55));
}

.landing-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 0.3rem;
  background: #0a0d12;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.landing-profile-meta {
  min-width: 0;
}

.landing-profile-name {
  display: block;
  font-size: 1.05rem;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-profile-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  background: #1a1f28;
  border: 1px solid rgba(71, 85, 105, 0.65);
}

.landing-profile-kind {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
}

.landing-profile-logout {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.landing-profile-logout:hover {
  text-decoration: underline;
}

.landing-rejoin-btn {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(71, 85, 105, 0.65);
  border-radius: 0.35rem;
  background: #12161d;
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.15s, background 0.15s;
}

.landing-rejoin-btn:hover {
  border-color: rgba(56, 189, 248, 0.55);
  background: #161b24;
}

.landing-rejoin-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.landing-rejoin-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.landing-rejoin-icon {
  font-size: 1.35rem;
}

.landing-rejoin-code {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #38bdf8;
}

.landing-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-top: 0.35rem;
  color: #e2e8f0;
  background: #1a1f28;
}

.landing-btn-danger {
  background: #1a1f28;
  color: #f8fafc;
  margin-top: 0.35rem;
  position: relative;
  overflow: hidden;
}

.landing-btn-danger.is-holding {
  background: #3f1212;
  border: 1px solid rgba(248, 113, 113, 0.55);
}

.landing-hold-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.landing-btn-support {
  color: #5eead4;
  border: 1px solid rgba(94, 234, 212, 0.25);
}

.landing-btn-support:hover {
  background: #1a2428;
}

.landing-btn-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1rem;
}

.landing-btn-done span {
  color: #38bdf8;
  font-size: 1.15rem;
}

.landing-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  max-width: 100%;
}

.landing-avatar-option {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  border: 2px solid transparent;
  background: #1a1f28;
  font-size: 1.55rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}

.landing-avatar-option:hover {
  transform: scale(1.05);
}

.landing-avatar-option.is-selected {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.landing-center-error {
  text-align: center;
}

.hub-btn-link {
  margin-top: 0.65rem;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

#joinForm,
#joinOnlineFields,
#joinOtherForm {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.landing-input-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.landing-input-wrap-room {
  border-radius: 0.3rem;
}

.landing-input {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(71, 85, 105, 0.65);
  border-radius: 0.3rem;
  background: #0a0d12;
  color: #f1f5f9;
  font: inherit;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.landing-input::placeholder {
  color: #64748b;
  font-weight: 600;
}

.landing-input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.landing-input.is-invalid {
  border-color: rgba(248, 113, 113, 0.75);
}

.landing-input-room {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.85rem 0.5rem;
}

.landing-input-room::placeholder {
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  text-transform: none;
}

.account-page .landing-wrap {
  padding-bottom: 2rem;
}

.landing-field {
  margin-bottom: 0.85rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.landing-field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}

.landing-field-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.35rem;
  min-height: 1.25rem;
}

.landing-char-count {
  font-size: 0.72rem;
  color: #64748b;
}

.landing-required {
  font-size: 0.72rem;
  font-weight: 700;
  color: #f87171;
  opacity: 0;
  transition: opacity 0.15s;
}

.landing-required.is-visible {
  opacity: 1;
}

.landing-social-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.45);
}

.landing-social-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: none;
}

.landing-social-chip:hover {
  color: #5865f2;
}

.landing-social-chip svg {
  width: 1.1rem;
  height: 1.1rem;
}

.landing-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 0.3rem;
  background: #1a1f28;
  color: #38bdf8;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.landing-btn:hover {
  background: #222833;
}

.landing-btn:active {
  transform: scale(0.99);
}

.landing-btn-primary {
  background: linear-gradient(180deg, #1e2836 0%, #151a22 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-top: 1rem;
  transition: background 0.15s, box-shadow 0.2s, transform 0.1s;
}

.landing-btn-primary:hover {
  background: linear-gradient(180deg, #243044 0%, #1a1f28 100%);
  box-shadow:
    0 0 14px rgba(56, 189, 248, 0.35),
    0 0 24px rgba(56, 189, 248, 0.15);
}

.landing-btn-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.landing-btn-row .landing-btn {
  flex: 1;
  margin-top: 0;
}

.landing-or {
  font-size: 0.82rem;
  font-style: italic;
  color: #64748b;
}

.landing-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
}

.landing-footer-links a {
  color: rgba(203, 213, 225, 0.82);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.landing-footer-links a:hover {
  color: #38bdf8;
}

.landing-error {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #f87171;
  min-height: 1.2em;
}

.account-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.account-tab {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 0.4rem;
  background: rgba(10, 18, 30, 0.88);
  color: #cbd5e1;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.account-tab:hover {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, 0.14),
    0 0 12px rgba(56, 189, 248, 0.28);
}

.account-tab.is-active {
  border-color: #38bdf8;
  color: #7dd3fc;
  background: rgba(14, 28, 44, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(125, 211, 252, 0.18),
    0 0 14px rgba(56, 189, 248, 0.45),
    0 0 24px rgba(56, 189, 248, 0.18);
}

.account-form {
  display: grid;
  gap: 0.75rem;
}

.landing-stats-panel {
  margin-bottom: 1rem;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
}

.account-stats strong {
  display: block;
  font-size: 1.6rem;
  color: #f8fafc;
}

.account-stats span {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.account-quick-links {
  display: none;
}

.hub-tools-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin: -0.75rem 0 1.35rem;
  padding: 0.65rem 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.hub-tools-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  text-decoration: none;
}

.hub-tools-link:hover,
.hub-tools-link.is-active {
  color: #38bdf8;
}

.hub-back-link {
  display: block;
  margin: 0.5rem 0 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #94a3b8;
  text-decoration: none;
}

.hub-back-link:hover {
  color: #38bdf8;
}

.account-page .hub-back-link {
  margin-top: 0.75rem;
}

.hub-footer .hub-footer-link.is-active {
  color: #38bdf8;
}

.linked-account-row.is-linked {
  border-color: rgba(56, 189, 248, 0.28);
}

.linked-account-status.is-linked {
  color: #7dd3fc;
  font-weight: 600;
}

.linked-account-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  white-space: nowrap;
}

.account-page .landing-header {
  margin-bottom: 1.25rem;
}

.account-page .landing-nav-home,
.landing-header-home + .hub-tools-nav {
  margin-top: 0;
}

#profilePanel > .landing-btn-secondary {
  margin-top: 0.75rem;
}

.oauth-buttons {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: #f8fafc;
  border: 1px solid transparent;
  transition: filter 0.15s, transform 0.1s;
}

.oauth-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.oauth-discord {
  background: #5865f2;
  border-color: #4752c4;
}

.oauth-twitch {
  background: #9146ff;
  border-color: #772ce8;
}

.oauth-icon {
  font-size: 1.1rem;
}

.oauth-disabled-note {
  margin-bottom: 1rem;
}

.oauth-setup-hint {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.08);
  font-size: 0.92rem;
  line-height: 1.5;
}

.oauth-redirect-uri {
  display: block;
  margin-top: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  color: #c7d2fe;
  word-break: break-all;
  font-size: 0.85rem;
}

.email-auth-toggle {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.email-auth-toggle summary {
  cursor: pointer;
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
}

.email-auth-toggle[open] summary {
  margin-bottom: 1rem;
}

.linked-accounts {
  display: grid;
  gap: 0.75rem;
}

.linked-account-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.45rem;
  background: rgba(8, 14, 22, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.22);
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.06);
}

.linked-account-label {
  font-weight: 600;
  color: #e2e8f0;
}

.linked-account-status {
  font-size: 0.88rem;
  color: #94a3b8;
}

.linked-account-btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.cloud-saves-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}

.cloud-save-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.45);
}

.cloud-save-game {
  font-weight: 600;
  color: #e2e8f0;
}

.cloud-save-meta {
  font-size: 0.82rem;
  color: #94a3b8;
  text-align: right;
}

.cloud-saves-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cloud-saves-status {
  margin-top: 0.65rem;
  min-height: 1.25rem;
}

@media (max-width: 560px) {
  .cloud-save-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cloud-save-meta {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .landing-wrap {
    padding: 1.75rem 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px));
  }

  .landing-btn-row {
    flex-direction: column;
  }

  .landing-or {
    display: none;
  }

  .linked-account-row {
    grid-template-columns: 1fr;
  }

  .linked-account-btn {
    width: 100%;
    min-height: 44px;
  }

  .account-tab {
    min-height: 44px;
  }
}
