/* removes underline from link*/
a {
    text-decoration: none;
}

/*buttons in general on all pages*/
.button {
  padding: 12px 24px;
  min-height: 48px;
  border-radius: 20px;
  border: 2px solid #25aafc;
  font-weight: 600;
  font-size: 16px;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  width: 100px;
  white-space: nowrap;
  background-color: #e2dee8;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Sign in (primary) */
.btn-login {
  background: rgba(255,255,255,0.25);
  color: rgb(140, 140, 140,0.9);
  box-shadow:
      0 4px 12px rgba(0,0,0,0.2);
 
}
.btn-login:hover {
  background: rgba(120,180,255,0.4);

  border-color: rgba(120,180,255,0.8);

  transform: scale(1.04);

  transition: all 0.25s ease;
}

.btn-login:focus-visible {
  outline: 3px solid rgba(37,170,252,0.45);
  outline-offset: 3px;
}

.input-group {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: #555;
  border: #2575fc;
}
.input-field {
  width: 280px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: #f9fafb;
  font-size: 14px;
  outline: none;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.input-field:focus {
  border-color: #2575fc;
  background:rgb(255, 255, 255);
  box-shadow: 0 0 0 3px rgba(37,117,252,0.15);
}
label {
  display: block;
  margin-bottom: 6px;
  font-size: 25px;
  color: #555;
  text-align: center;
}
.input-group {
  margin-bottom: 18px;
}
.input-field::placeholder {
  color: #9ca3af;
  
}
body {
  position: relative;
  background: linear-gradient(
    135deg,
    #dbeafe 0%,   /* slightly darker blue (top-left) */
    #f5f7ff 50%,  /* light center */
    #e9d5ff 100%  /* slightly darker purple (bottom-right) */
  );
  min-height: 100vh;
}

body > :not(#penrose) {
  position: relative;
  z-index: 1;
}
.page {
  display: flex;
  flex-direction: column; 
  align-items: center; 
  justify-content: center;   /* horizontal center */
  height: 100vh;  
}
.cards {
  max-width: 400px;
  margin: 50px auto;
  padding: 30px;
  background: rgb(255, 255, 255);
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.top-bar {
  display: flex;
  justify-content: flex-end;
}
.Rpage{
  display: flex;
  justify-content: center;   /* horizontal center */
  align-items: center;       /* vertical center */
  height: 100vh;
  max-width: 400px;
  margin: 50px auto;
  margin-top: 40px;
  padding: 30px;
  padding-top: 0px;
  background: rgb(255, 255, 255);
  border-radius: 25px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  flex-direction: column;

}

.register-page {
  display: grid;
  min-height: auto;
  padding: 34px 20px 12px;
  place-items: center;
  box-sizing: border-box;
}

.register-card {
  position: relative;
  overflow: hidden;
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.82);
  border-radius: 28px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.84), rgba(247,241,229,0.7) 48%, rgba(232,242,247,0.66)),
    rgba(255,255,255,0.58);
  box-shadow:
    0 28px 70px rgba(38, 48, 78, 0.24),
    0 0 0 1px rgba(214, 170, 74, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(13, 51, 82, 0.05);
  box-sizing: border-box;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.register-badge {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #25aafc, #8b6ee8);
  box-shadow: 0 10px 24px rgba(71, 116, 220, 0.28);
  font-size: 24px;
}

.register-card h1 {
  margin: 0;
  color: #2f3547;
  font: 700 30px/1.15 "Poppins", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.03em;
  text-align: center;
}

.register-intro {
  max-width: 320px;
  margin: 10px auto 26px;
  color: #71798c;
  font: 400 14px/1.5 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: center;
}

.register-form {
  display: grid;
  gap: 17px;
}

.auth-message {
  display: none;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font: 600 13px/1.4 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: center;
}

.auth-message:not(:empty) {
  display: block;
}

.auth-message.error {
  color: #9a3445;
  background: #fff0f3;
}

.auth-message.success {
  color: #257451;
  background: #eafaf2;
}

.register-field label {
  display: block;
  margin: 0 0 7px;
  color: #42495a;
  font: 600 13px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.register-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid #dfe3ec;
  border-radius: 13px;
  color: #303747;
  background: rgba(250,251,255,0.92);
  box-sizing: border-box;
  font: 400 15px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.register-input::placeholder {
  color: #a4aaba;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .register-input {
  padding-right: 78px;
}

.password-input-wrap .input-field {
  width: 100%;
  padding-right: 78px;
}

.login-password-wrap {
  position: relative;
  width: 100%;
}

.login-password-wrap .input-field {
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 58px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #326aa9;
  background: rgba(75,170,250,0.12);
  font: 700 12px/1 "Poppins", "Segoe UI", Arial, sans-serif;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease;
}

.login-password-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  right: 8px;
  z-index: 5;
  min-width: 44px;
  width: 44px;
  min-height: 38px;
  padding: 0;
  border: 1.5px solid rgba(6,57,95,0.42);
  place-items: center;
  color: #06395f;
  background: rgba(255,255,255,0.98);
  box-shadow:
    0 3px 10px rgba(54,70,110,0.16),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.password-eye-icon {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-icon path,
.password-eye-icon circle {
  stroke: currentColor;
}

.password-eye-icon circle {
  fill: currentColor;
  stroke: none;
}

.password-eye-slash {
  opacity: 0;
  transition: opacity 0.16s ease;
}

.password-toggle.is-showing .password-eye-icon {
  color: #ffffff;
}

.password-toggle.is-showing .password-eye-slash {
  opacity: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #ffffff;
  background: #4baafa;
  outline: none;
}

.password-help {
  margin: 7px 0 0;
  color: #687184;
  font: 500 12px/1.45 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.register-input:focus {
  border-color: #4baafa;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37,170,252,0.13);
}

.consent-group {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.consent-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  margin: 0;
  color: #4c5364;
  font: 500 12px/1.45 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.consent-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #2575fc;
}

.consent-option a {
  color: #277fd1;
  font-weight: 700;
}

.consent-option a:hover {
  text-decoration: underline;
}

.policy-card {
  width: min(720px, 100%);
}

.policy-content {
  display: grid;
  gap: 14px;
  color: #4c5364;
  font: 400 14px/1.55 "Poppins", "Segoe UI", Arial, sans-serif;
}

.policy-content h2 {
  margin: 8px 0 0;
  color: #303747;
  font: 700 17px/1.25 "Poppins", "Segoe UI", Arial, sans-serif;
}

.policy-content p {
  margin: 0;
}

.register-submit,
.register-resend {
  width: 100%;
  min-height: 50px;
  margin-top: 5px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #25aafc, #6f79e8);
  box-shadow: 0 10px 22px rgba(50, 125, 222, 0.25);
}

.register-submit:hover,
.register-resend:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #159de9, #626ade);
}

.register-resend {
  margin-top: 22px;
}

.register-login {
  margin: 22px 0 0;
  color: #7a8191;
  font: 400 13px/1.4 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: center;
}

.register-login a {
  color: #277fd1;
  font-weight: 700;
}

.register-login a:hover {
  text-decoration: underline;
}

.auth-home-button {
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #25aafc, #6f79e8);
  box-shadow: 0 10px 22px rgba(50, 125, 222, 0.25);
}

.auth-home-button:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #159de9, #626ade);
}

.auth-text-button {
  border: 0;
  color: #277fd1;
  background: transparent;
  cursor: pointer;
  font: 700 13px/1.4 "Poppins", "Segoe UI", Arial, sans-serif;
}

.auth-text-button:hover {
  text-decoration: underline;
}

.login-card {
  position: relative;
  overflow: hidden;
  width: min(390px, calc(100% - 32px));
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.82);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.84), rgba(247,241,229,0.7) 48%, rgba(232,242,247,0.66)),
    rgba(255,255,255,0.58);
  box-shadow:
    0 28px 70px rgba(38, 48, 78, 0.24),
    0 0 0 1px rgba(214, 170, 74, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.92),
    inset 0 -1px 0 rgba(13, 51, 82, 0.05);
  box-sizing: border-box;
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
}

.login-card::before,
.register-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 170, 74, 0.2), transparent 31%),
    radial-gradient(circle at 90% 14%, rgba(37, 170, 252, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.22), transparent 44%);
  pointer-events: none;
}

.login-card > *,
.register-card > * {
  position: relative;
  z-index: 1;
}

.login-logo-badge {
  display: grid;
  width: clamp(58px, 7vw, 86px);
  height: clamp(58px, 7vw, 86px);
  margin: 0 auto clamp(14px, 2.1vw, 20px);
  place-items: center;
  justify-self: center;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(12, 48, 82, 0.12);
  border-radius: clamp(16px, 2vw, 22px);
  background: #fbf4e9;
  box-shadow: 0 12px 26px rgba(12, 48, 82, 0.18);
  box-sizing: border-box;
  padding: clamp(5px, 0.8vw, 8px);
}

.login-logo-badge img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.login-card h1 {
  margin: 0;
  color: #2f3547;
  font: 700 30px/1.15 "Poppins", "Segoe UI", Arial, sans-serif;
  letter-spacing: -0.03em;
  text-align: center;
}

.login-intro {
  margin: 9px 0 25px;
  color: #71798c;
  font: 400 14px/1.5 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: center;
}

.login-form {
  display: grid;
  gap: 16px;
  width: 100%;
}

.remember-me-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  margin: -3px 0 0;
  color: #71798c;
  font: 500 13px/1.4 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.remember-me-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #277fd1;
  flex: 0 0 auto;
}

.login-card .input-group {
  width: 100%;
  margin: 0;
}

.login-card .input-group label {
  margin: 0 0 7px;
  color: #42495a;
  font: 600 13px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: left;
}

.login-card .input-field {
  width: 100%;
  min-height: 48px;
  margin: 0;
  box-sizing: border-box;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #25aafc, #6f79e8);
}

.profile-top-bar {
  display: flex;
  position: relative;
  z-index: 2;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(20px, 5vw, 64px);
}

.profile-logout {
  width: auto;
  min-width: 96px;
}

.profile-page {
  display: grid;
  min-height: calc(100vh - 100px);
  padding: 20px 20px 70px;
  place-items: center;
  box-sizing: border-box;
}

.profile-card {
  width: min(520px, 100%);
  padding: 38px;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 28px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 24px 60px rgba(61,72,110,0.2);
  box-sizing: border-box;
  text-align: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.profile-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  place-items: center;
  border: 4px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #25aafc, #806ee8);
  box-shadow: 0 12px 28px rgba(65,106,205,0.28);
  font: 700 36px/1 "Poppins", "Segoe UI", Arial, sans-serif;
}

.profile-welcome {
  margin: 0 0 5px;
  color: #4680bd;
  font: 700 12px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-card h1 {
  margin: 0;
  color: #2f3547;
  font: 750 34px/1.15 "Poppins", "Segoe UI", Arial, sans-serif;
}

.profile-handle {
  margin: 5px 0 27px;
  color: #8a91a1;
  font: 500 14px/1.3 "Poppins", "Segoe UI", Arial, sans-serif;
}

.profile-details {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

.profile-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 17px;
  border-radius: 13px;
  background: rgba(241,244,250,0.9);
}

.profile-details span {
  color: #7b8394;
  font: 500 13px/1.3 "Poppins", "Segoe UI", Arial, sans-serif;
}

.profile-details strong {
  overflow-wrap: anywhere;
  color: #3b4354;
  font: 650 13px/1.3 "Poppins", "Segoe UI", Arial, sans-serif;
  text-align: right;
}

.profile-details .access-active {
  color: #25805b;
}

.profile-games-link {
  display: block;
  padding: 14px 18px;
  border-radius: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #25aafc, #6f79e8);
  box-shadow: 0 10px 22px rgba(50,125,222,0.22);
  font: 700 14px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-games-link:hover {
  box-shadow: 0 14px 28px rgba(50,125,222,0.3);
  transform: scale(1.02);
}

@media (max-width: 520px) {
  .register-page {
    padding: 14px 14px 10px;
  }

  .register-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .register-card h1 {
    font-size: 26px;
  }

  .auth-footer {
    width: min(390px, calc(100% - 28px));
    margin: 0 auto max(18px, env(safe-area-inset-bottom));
    padding: 12px 16px;
    border-radius: 20px;
  }

  .page {
    height: auto;
    min-height: 100svh;
    padding: 18px 12px;
    box-sizing: border-box;
  }

  .login-card {
    width: min(100%, 390px);
    padding: 28px 22px;
    border-radius: 22px;
  }

  .login-logo-badge {
    width: clamp(54px, 17vw, 66px);
    height: clamp(54px, 17vw, 66px);
  }

  .login-card h1 {
    font-size: clamp(26px, 8vw, 30px);
  }
}

.home-hero {
    position: relative;
    top: -20px;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.hero-kicker {
    margin: 0 0 10px;
    color: rgba(255,255,255,0.86);
    font: 700 clamp(17px, 2.5vw, 26px)/1.1 "Trebuchet MS", "Poppins", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow:
        0 0 10px rgba(255,255,255,0.46),
        0 0 18px rgba(100,150,255,0.52);
    opacity: 0;
    animation: fadeIn 2s forwards;
}

#title {
  
    max-width: min(920px, calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 2s forwards;
    font-size: clamp(2.7rem, 8vw, 5rem);
    line-height: 0.98;
    color: white;
    overflow-wrap: normal;
    text-wrap: balance;
    text-shadow:
        0 0 10px rgba(255,255,255,0.8),
        0 0 20px rgba(100,150,255,0.8),
        0 0 40px rgba(100,150,255,0.6);
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#penrose {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}
nav {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 2;
}

.home-top-bar {
    display: flex;
    width: min(1120px, calc(100% - 36px));
    margin: 22px auto 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #092f56;
    font: 800 20px/1.05 Georgia, "Times New Roman", serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.home-brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(12, 48, 82, 0.12);
    border-radius: 14px 14px 17px 17px;
    background: #fbf4e9;
    box-shadow: 0 8px 18px rgba(12, 48, 82, 0.16);
}

.home-brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: none;
}

.home-top-line {
    flex: 1;
    height: 1px;
    min-width: 60px;
    background: linear-gradient(90deg, rgba(197,138,37,0.5), rgba(9,47,86,0.22), rgba(37,170,252,0.34));
    pointer-events: none;
}

#account-navigation {
    display: flex;
    gap: 12px;
    align-items: stretch;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.home-auth-button {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    width: 154px;
    min-width: 154px;
    max-width: 154px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 9px 18px;
    align-items: center;
    justify-content: center;
    flex: 0 0 154px;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    border: 1.5px solid rgba(9,47,86,0.26);
    border-radius: 999px;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,0.68), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,0.62), rgba(220,242,252,0.36));
    color: #092f56;
    font-weight: 700;
    font-size: 16px;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow:
        0 8px 18px rgba(5,33,62,0.11),
        inset 0 1px 0 rgba(255,255,255,0.92),
        inset 0 -1px 0 rgba(9,47,86,0.05);
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
    backdrop-filter: blur(10px) saturate(1.08);
    -webkit-backdrop-filter: blur(10px) saturate(1.08);
}

@media (max-width: 960px) {
    .home-top-bar {
        align-items: flex-start;
        gap: 12px;
    }

    .home-top-line {
        display: none;
    }

    #account-navigation {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
        gap: 10px;
    }

    .home-auth-button {
        width: 100%;
        min-width: 0;
        max-width: none;
        flex: initial;
        padding-right: 10px;
        padding-left: 10px;
        font-size: 14px;
    }
}

.home-premium-button {
    border-color: rgba(197, 138, 37, 0.62);
    background:
        radial-gradient(circle at 46% 0%, rgba(255, 255, 255, 0.36), transparent 42%),
        linear-gradient(135deg, rgba(185, 120, 21, 0.96), rgba(244, 189, 63, 0.94) 58%, rgba(217, 148, 32, 0.96));
    color: #fff;
    text-shadow: 0 1px 0 rgba(90, 52, 7, 0.24);
    isolation: isolate;
}

.home-premium-button::after {
    content: "";
    position: absolute;
    top: -45%;
    left: -75%;
    width: 42px;
    height: 190%;
    z-index: 1;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), rgba(255, 246, 178, 0.98), transparent);
    opacity: 0.02;
    pointer-events: none;
    transform: rotate(22deg);
    animation: home-premium-glint 180s ease-in-out infinite;
}

.home-premium-button:hover,
.home-premium-button:focus-visible {
    color: #fff;
}

@keyframes home-premium-glint {
    0%,
    96% {
        left: -75%;
        opacity: 0.02;
    }

    97% {
        opacity: 0.9;
    }

    99% {
        left: 130%;
        opacity: 0.35;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

.home-auth-button:not(.home-premium-button):hover,
.home-auth-button:not(.home-premium-button):focus-visible {
    border-color: rgba(161,62,62,0.5);
    color: #9a3445;
    background:
        radial-gradient(circle at 18% 12%, rgba(244,199,93,0.26), transparent 34%),
        linear-gradient(135deg, rgba(255,250,250,0.94), rgba(255,238,242,0.82));
    box-shadow:
        0 10px 22px rgba(106,38,54,0.14),
        inset 0 1px 0 rgba(255,255,255,0.92);
    transform: translateY(-1px);
}

.category-gateway {
    display: flex;
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0 60px;
    box-sizing: border-box;
}

.category-button {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 32px;
    gap: 34px;
    align-items: center;
    width: min(500px, 100%);
    flex: 1 1 420px;
    min-height: 112px;
    padding: 18px 22px;
    border: 2px solid #25aafc;
    border-radius: 22px;
    color: #31394d;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0.14)),
      rgba(255,255,255,0.22);
    box-shadow:
      0 8px 20px rgba(0,0,0,0.12),
      inset 0 1px 0 rgba(255,255,255,0.56);
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.category-button:hover {
    border-color: rgba(120,180,255,0.8);
    background:
      linear-gradient(135deg, rgba(120,180,255,0.24), rgba(255,255,255,0.2)),
      rgba(255,255,255,0.32);
    box-shadow:
      0 13px 28px rgba(0,0,0,0.16),
      inset 0 1px 0 rgba(255,255,255,0.68);
    transform: translateY(-3px);
}

.category-button:focus-visible {
    outline: 3px solid rgba(37,170,252,0.5);
    outline-offset: 4px;
}

.category-icon,
.games-heading-icon {
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #25aafc, #7c70e8);
    box-shadow: 0 10px 24px rgba(64,111,214,0.28);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}

.category-icon {
    width: 68px;
    height: 68px;
    border: 1px solid rgba(255,255,255,0.74);
    border-radius: 19px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.5), rgba(231,240,247,0.22)),
      rgba(255,255,255,0.22);
    box-shadow:
      0 10px 24px rgba(64,111,214,0.14),
      inset 0 1px 0 rgba(255,255,255,0.84);
    color: #2e688c;
    font-size: 25px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.word-category-icon {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 10px;
}

.word-category-icon span,
.card-category-icon span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 22px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 9px;
    background: rgba(255,255,255,0.58);
    box-shadow: 0 3px 8px rgba(54,70,110,0.1);
    font: 800 16px/1 "Poppins", "Segoe UI", Arial, sans-serif;
}

.word-category-icon span:nth-child(3) {
    grid-column: 1 / -1;
    color: #8f6794;
}

.card-category-icon {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 10px;
    color: #8b4c6f;
}

.card-category-icon span {
    font: 800 18px/1 Georgia, "Times New Roman", serif;
}

.card-category-icon span:nth-child(2),
.card-category-icon span:nth-child(3) {
    color: #a13e3e;
}

.category-copy {
    min-width: 0;
    padding-left: 4px;
}

.category-copy strong {
    display: block;
    margin-bottom: 5px;
    font: 800 24px/1.08 "Trebuchet MS", "Poppins", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.01em;
}

.category-copy small {
    color: #5f687b;
    font: 600 14px/1.38 "Trebuchet MS", "Poppins", "Segoe UI", Arial, sans-serif;
}

.category-arrow {
    color: #477bd3;
    font-size: 30px;
    transition: transform 0.2s ease;
}

.category-button:hover .category-arrow {
    transform: translateX(6px);
}

.card-heading-icon {
    background: linear-gradient(135deg, #e8667d, #7457bd);
}

.card-eyebrow {
    color: #9b4c79;
}

.games-header {
    position: relative;
    z-index: 2;
    padding: 24px clamp(20px, 5vw, 64px);
}

.back-home {
    display: inline-flex;
    padding: 10px 16px;
    border: 1px solid rgba(255,255,255,0.75);
    border-radius: 999px;
    color: #465069;
    background: rgba(255,255,255,0.72);
    box-shadow: 0 8px 20px rgba(54,70,110,0.12);
    font: 650 14px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, background 0.2s ease;
}

.back-home:hover {
    background: rgba(255,255,255,0.94);
    transform: translateX(-3px);
}

.games-page {
    width: min(1400px, calc(100% - 40px));
    margin: 28px auto 70px;
}

.home-games {
    width: min(1500px, calc(100% - 40px));
    margin: 34px auto 70px;
}

.home-invite {
    width: min(760px, 100%);
    margin: 0 auto 34px;
    color: rgba(255,255,255,0.98);
    font: 800 clamp(22px, 3vw, 34px)/1.18 "Trebuchet MS", "Poppins", "Segoe UI", Arial, sans-serif;
    text-align: center;
    text-shadow:
      0 2px 10px rgba(9,47,86,0.52),
      0 0 16px rgba(37,170,252,0.58),
      0 0 36px rgba(67,137,255,0.5),
      0 0 62px rgba(161,208,255,0.32);
}

.home-games .games-grid {
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(clamp(170px, 15vw, 240px), 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}

.home-games .game-card {
    min-height: clamp(218px, 21vw, 286px);
    border: 1.5px solid rgba(255,255,255,0.34);
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,0.08), transparent 34%),
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(238,248,252,0.02));
    box-shadow:
      0 10px 24px rgba(54,70,110,0.1),
      inset 0 1px 0 rgba(255,255,255,0.46);
}

.home-games .game-door {
    height: clamp(104px, 9.2vw, 138px);
}

.home-games .featured-game {
    box-shadow:
      0 18px 46px rgba(54,70,110,0.24),
      inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-6px);
}

.home-games .featured-game:hover {
    transform: translateY(-11px);
}

.games-heading {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 32px;
}

.games-heading-icon {
    flex: 0 0 auto;
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 28px;
}

.games-eyebrow {
    margin: 0 0 3px;
    color: #337fc4;
    font: 700 12px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.games-heading h1 {
    margin: 0;
    color: #30384b;
    font: 750 clamp(34px, 5vw, 52px)/1 "Poppins", "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.04em;
}

.games-heading div > p:last-child {
    margin: 8px 0 0;
    color: #697388;
    font: 400 15px/1.4 "Poppins", "Segoe UI", Arial, sans-serif;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(210px, 24vw, 320px), 1fr));
    gap: 20px;
}

.game-card {
    --game-accent: 37, 170, 252;
    --game-accent-deep: 47, 102, 125;
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: clamp(260px, 30vw, 340px);
    padding: 18px;
    border: 1.5px solid rgba(var(--game-accent),0.32);
    border-radius: 22px;
    color: #31394d;
    background:
      radial-gradient(circle at 50% 0%, rgba(var(--game-accent),0.05), transparent 36%),
      linear-gradient(180deg, rgba(255,255,255,0.08), rgba(245,250,251,0.02));
    box-shadow:
      0 12px 26px rgba(54,70,110,0.1),
      inset 0 1px 0 rgba(255,255,255,0.46);
    box-sizing: border-box;
    flex-direction: column;
    perspective: 900px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.game-card:nth-child(n + 4) {
    content-visibility: auto;
    contain-intrinsic-size: 320px 340px;
}

.game-card:nth-child(2) {
    --game-accent: 81, 149, 116;
    --game-accent-deep: 42, 105, 78;
}

.game-card:nth-child(3) {
    --game-accent: 160, 117, 74;
    --game-accent-deep: 103, 72, 43;
}

.game-card:nth-child(4) {
    --game-accent: 197, 138, 37;
    --game-accent-deep: 131, 86, 20;
}

.game-card:nth-child(5) {
    --game-accent: 92, 129, 190;
    --game-accent-deep: 44, 74, 126;
}

.game-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, rgba(var(--game-accent),0.18), rgba(var(--game-accent),0.82), rgba(255,255,255,0.44));
    pointer-events: none;
}

.game-card.available {
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.game-card.available:hover {
    border-color: rgba(var(--game-accent),0.68);
    box-shadow:
      0 18px 38px rgba(54,70,110,0.16),
      0 0 0 4px rgba(var(--game-accent),0.08),
      inset 0 1px 0 rgba(255,255,255,0.52);
    transform: translateY(-5px);
    background:
      radial-gradient(circle at 50% 0%, rgba(var(--game-accent),0.1), transparent 38%),
      linear-gradient(180deg, rgba(255,255,255,0.14), rgba(247,252,253,0.04));
}

.game-door {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: clamp(118px, 15vw, 170px);
    padding: 13px 13px 17px;
    border: 1px solid rgba(var(--game-accent-deep), 0.26);
    border-radius: 16px;
    background:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,0.74), transparent 42%),
      linear-gradient(135deg, rgba(var(--game-accent),0.18), rgba(252,244,229,0.72));
    box-shadow:
      inset 0 0 0 5px rgba(255,255,255,0.42),
      inset 0 -8px 0 rgba(var(--game-accent-deep), 0.08),
      0 9px 18px rgba(54,70,110,0.13);
    box-sizing: border-box;
    transform-origin: left center;
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.game-preview {
    position: absolute;
    inset: 13px 13px 17px;
    z-index: 3;
    width: calc(100% - 26px);
    height: calc(100% - 30px);
    border-radius: 12px;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.03);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.game-card.full-card-preview .game-preview {
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: fill;
    transform: none;
}

.full-card-preview.has-video-preview:is(:hover, :focus-visible) > :is(.game-door, .game-card-copy) {
    opacity: 0;
}

.game-card.has-video-preview:hover .game-preview,
.game-card.has-video-preview:focus-visible .game-preview {
    opacity: 1;
    transform: scale(1);
}

.game-card.has-video-preview:hover .game-door img,
.game-card.has-video-preview:focus-visible .game-door img {
    opacity: 0;
}

.game-door::before {
    content: "";
    position: absolute;
    inset: 8px 8px 12px;
    border: 2px solid rgba(255,255,255,0.72);
    border-radius: 12px;
    box-shadow:
      inset 0 0 0 1px rgba(69,82,110,0.12),
      0 0 0 1px rgba(89,93,102,0.08);
    pointer-events: none;
    z-index: 2;
}

.game-image-fallback {
    position: absolute;
    inset: 13px 13px 17px;
    z-index: 1;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: rgba(var(--game-accent-deep), 0.9);
    background:
      radial-gradient(circle at 50% 18%, rgba(255,255,255,0.82), transparent 48%),
      linear-gradient(135deg, rgba(var(--game-accent),0.2), rgba(255,255,255,0.66));
    font: 800 clamp(18px, 2vw, 30px)/1.05 "Poppins", "Segoe UI", Arial, sans-serif;
    text-align: center;
}

.game-card.available:hover .game-door {
    filter: saturate(0.9) brightness(1.03);
    box-shadow:
      inset 0 0 0 5px rgba(255,255,255,0.5),
      inset 0 -9px 0 rgba(118, 102, 78, 0.1),
      0 15px 28px rgba(54,70,110,0.2);
    transform: rotateY(-7deg) translateX(2px);
}

.game-card img,
.future-game-icon {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-sizing: border-box;
}

.card-game-cover {
    display: grid;
    width: 100%;
    height: 155px;
    padding: 19px 34px;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background:
      radial-gradient(circle at 24% 20%, rgba(255,255,255,0.2), transparent 28%),
      linear-gradient(135deg, #254f68, #493b72);
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
    font: 700 31px/1 Georgia, "Times New Roman", serif;
}

.card-game-cover span:nth-child(1),
.card-game-cover span:nth-child(4) {
    color: #ff8da1;
}

.card-game-cover span:nth-child(2),
.card-game-cover span:nth-child(3) {
    color: #8de0c3;
}

.card-game-cover span:nth-child(5) {
    color: #d5bbff;
}

.card-game-cover span:nth-child(6) {
    color: #add6ff;
}

.card-future-icon {
    color: rgba(92,65,112,0.45);
    font-size: 40px;
    letter-spacing: 0.16em;
}

.game-card img {
    display: block;
    position: relative;
    z-index: 2;
    object-fit: cover;
    filter: saturate(0.9) contrast(0.96);
}

.future-game-icon {
    display: grid;
    place-items: center;
    color: rgba(67,80,112,0.45);
    background:
      linear-gradient(135deg, rgba(230,239,255,0.9), rgba(236,228,255,0.9));
    font: 700 52px/1 Georgia, "Times New Roman", serif;
}

.anagram-icon {
    font-size: 35px;
    letter-spacing: 0.08em;
}

.tafl-card-art {
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 50% 50%, rgba(240,195,91,0.2), transparent 34%),
      linear-gradient(135deg, rgba(45,27,87,0.9), rgba(9,47,86,0.78));
}

.tafl-mini-board {
    display: grid;
    width: min(118px, 72%);
    aspect-ratio: 1;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 4px;
    padding: 8px;
    border: 2px solid rgba(240,195,91,0.68);
    border-radius: 14px;
    background: rgba(255,248,235,0.16);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
}

.tafl-mini-board i {
    position: relative;
    display: block;
    border-radius: 4px;
    background: rgba(255,248,235,0.32);
}

.tafl-mini-board i:nth-child(1),
.tafl-mini-board i:nth-child(5),
.tafl-mini-board i:nth-child(21),
.tafl-mini-board i:nth-child(25),
.tafl-mini-board i:nth-child(13) {
    background: rgba(240,195,91,0.78);
}

.tafl-mini-board i:nth-child(3)::after,
.tafl-mini-board i:nth-child(11)::after,
.tafl-mini-board i:nth-child(15)::after,
.tafl-mini-board i:nth-child(23)::after,
.tafl-mini-board i:nth-child(13)::after {
    content: "";
    position: absolute;
    inset: 22%;
    border-radius: 50%;
    background: #f8f0dc;
    box-shadow: 0 3px 6px rgba(0,0,0,0.22);
}

.tafl-mini-board i:nth-child(13)::after {
    border-radius: 30%;
    background: linear-gradient(135deg, #f0c35b, #c58a25);
}

.game-card-copy {
    display: flex;
    padding: 14px 3px 0;
    flex: 1;
    flex-direction: column;
}

.game-card-copy strong {
    color: #283149;
    font: 800 clamp(18px, 1.45vw, 23px)/1.15 "Poppins", "Segoe UI", Arial, sans-serif;
}

.game-card-copy small {
    margin-top: 8px;
    color: #657087;
    font: 600 clamp(12px, .92vw, 13px)/1.38 "Poppins", "Segoe UI", Arial, sans-serif;
}

.game-card-copy b {
    display: inline-flex;
    width: fit-content;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 8px 13px;
    border: 1px solid rgba(var(--game-accent),0.24);
    border-radius: 999px;
    color: rgb(var(--game-accent-deep));
    background: rgba(255,255,255,0.58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.76), 0 5px 12px rgba(54,70,110,0.08);
    font: 800 12px/1.1 "Poppins", "Segoe UI", Arial, sans-serif;
}

.home-footer {
    display: flex;
    flex-wrap: wrap;
    width: min(1080px, calc(100% - 40px));
    margin: 18px auto 28px;
    padding: 18px 22px;
    align-items: center;
    justify-content: center;
    gap: 8px clamp(12px, 2vw, 22px);
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 22px;
    color: #5f687b;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.58), rgba(236,246,252,0.34));
    box-shadow:
      0 12px 28px rgba(54,70,110,0.13),
      inset 0 1px 0 rgba(255,255,255,0.82);
    box-sizing: border-box;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font: 700 13px/1.3 "Poppins", "Segoe UI", Arial, sans-serif;
}

.home-footer > * {
    min-width: 0;
    max-width: 100%;
}

.home-footer > span:first-child,
.home-footer > a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.home-footer > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 2px 4px;
    box-sizing: border-box;
}

.home-footer .footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2px 6px;
}

.home-footer .footer-contact a {
    min-width: 0;
    overflow-wrap: anywhere;
}

.home-footer a {
    color: #277fd1;
    font-weight: 800;
}

.home-footer a:hover {
    text-decoration: underline;
}

.footer-contact {
    text-align: center;
}

.auth-footer {
    margin: 14px auto max(24px, env(safe-area-inset-bottom));
    padding: 14px 18px;
}

.live-games-home-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(260px, 100%);
    min-height: 54px;
    margin: 0 auto 24px;
    box-sizing: border-box;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #c58a25, #f0c35b);
    box-shadow: 0 12px 26px rgba(137, 89, 23, 0.22);
}

.live-games-page {
    width: min(980px, calc(100% - 40px));
    margin: 40px auto 58px;
}

.live-games-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin: 0 0 20px;
    padding: 0 8px;
}

.live-games-title-row h1 {
    margin: 0 0 8px;
    color: #092f56;
    font: 800 clamp(38px, 6vw, 68px)/0.96 Georgia, "Times New Roman", serif;
}

.live-games-intro {
    max-width: 560px;
    margin: 0;
    color: #6f788d;
    font: 500 15px/1.5 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-join-button,
.live-cancel-button,
.live-post-button {
    width: auto;
    min-width: 124px;
}

.live-request-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: clamp(18px, 4vw, 42px);
    align-items: center;
    margin-bottom: 20px;
    padding: 24px 28px 24px 30px;
    border: 1px solid rgba(255,255,255,0.86);
    border-radius: 24px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.9), rgba(244,250,253,0.7)),
      repeating-linear-gradient(120deg, rgba(37,170,252,0.08) 0 1px, transparent 1px 32px),
      linear-gradient(135deg, rgba(9,47,86,0.05), rgba(197,138,37,0.1));
    box-shadow:
      0 20px 44px rgba(39,55,86,0.16),
      0 0 0 1px rgba(37,170,252,0.07),
      inset 0 1px 0 rgba(255,255,255,0.94);
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    box-sizing: border-box;
}

.live-signup-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(37,170,252,0.24);
    border-radius: 22px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.9), rgba(236,247,252,0.72)),
      linear-gradient(135deg, rgba(240,195,91,0.12), rgba(37,170,252,0.09));
    box-shadow: 0 16px 34px rgba(39,55,86,0.13);
    box-sizing: border-box;
}

.live-signup-panel[hidden] {
    display: none;
}

.live-signup-panel h2 {
    margin: 0 0 6px;
    color: #2f3547;
    font: 800 22px/1.16 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-signup-panel p {
    max-width: 600px;
    margin: 0;
    color: #6f788d;
    font: 500 13px/1.45 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-request-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 8px;
    background: linear-gradient(180deg, #25aafc, #f0c35b 54%, #8b6ee8);
    box-shadow: 0 0 24px rgba(37,170,252,0.22);
    z-index: 0;
}

.live-request-panel::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 18px;
    width: 142px;
    height: 86px;
    border: 1px solid rgba(37,170,252,0.13);
    background:
      repeating-linear-gradient(90deg, rgba(9,47,86,0.07) 0 1px, transparent 1px 18px),
      repeating-linear-gradient(0deg, rgba(197,138,37,0.06) 0 1px, transparent 1px 18px);
    opacity: 0.42;
    transform: rotate(-8deg);
    z-index: 0;
}

.live-request-copy,
.live-request-form,
.live-request-message {
    position: relative;
    z-index: 1;
}

.live-request-copy {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 16px;
}

.live-request-badge {
    display: inline-grid;
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.78);
    border-radius: 18px;
    color: #ffffff;
    background:
      linear-gradient(135deg, rgba(9,47,86,0.92), rgba(37,170,252,0.9)),
      #092f56;
    box-shadow:
      0 14px 28px rgba(9,47,86,0.2),
      inset 0 1px 0 rgba(255,255,255,0.36);
}

.live-request-icon {
    display: block;
    width: 38px;
    height: 38px;
    color: #ffffff;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.8;
    transform: rotate(-7deg);
}

.live-request-icon .room-icon-frame {
    fill: rgba(255,255,255,0.1);
    stroke: currentColor;
    stroke-width: 2.2;
}

.live-request-icon .room-player {
    stroke: rgba(9,47,86,0.22);
    stroke-width: 1.1;
}

.live-request-icon .room-player circle,
.live-request-icon .room-player path {
    stroke: inherit;
}

.live-request-icon .room-player-back {
    fill: rgba(240,195,91,0.92);
    opacity: 0.9;
}

.live-request-icon .room-player-front {
    fill: #ffffff;
}

.live-request-eyebrow {
    display: inline-flex;
    margin-bottom: 7px;
    color: #c58a25;
    font: 900 11px/1.1 "Poppins", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.live-request-panel h2 {
    margin: 0 0 6px;
    color: #2f3547;
    font: 800 22px/1.15 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-request-panel p {
    margin: 0;
    color: #6f788d;
    font: 500 13px/1.45 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-request-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 11px;
    align-items: end;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(9,47,86,0.08);
    border-radius: 18px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.82), rgba(237,247,252,0.68));
    box-shadow:
      0 12px 26px rgba(9,47,86,0.08),
      inset 0 1px 0 rgba(255,255,255,0.86);
    box-sizing: border-box;
}

.live-field {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.live-request-form label {
    margin: 0;
    color: #42495a;
    font: 700 12px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
    text-transform: uppercase;
}

.live-game-select {
    width: 100%;
    min-height: 48px;
    padding: 0 44px 0 15px;
    border: 1.5px solid rgba(37,170,252,0.34);
    border-radius: 15px;
    color: #233044;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.96), rgba(238,248,253,0.9));
    box-shadow:
      0 8px 18px rgba(9,47,86,0.08),
      inset 0 1px 0 rgba(255,255,255,0.9);
    font: 800 14px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.live-select-wrap {
    position: relative;
    min-width: 0;
}

.live-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 9px;
    height: 9px;
    border-right: 3px solid #092f56;
    border-bottom: 3px solid #092f56;
    pointer-events: none;
    transform: translateY(-64%) rotate(45deg);
}

.live-game-select:hover {
    border-color: rgba(37,170,252,0.62);
    box-shadow:
      0 11px 22px rgba(9,47,86,0.11),
      inset 0 1px 0 rgba(255,255,255,0.95);
}

.live-game-select:focus-visible {
    border-color: rgba(37,170,252,0.9);
    box-shadow:
      0 0 0 4px rgba(37,170,252,0.18),
      0 11px 22px rgba(9,47,86,0.11),
      inset 0 1px 0 rgba(255,255,255,0.95);
}

.live-game-select:disabled {
    opacity: 0.64;
    cursor: not-allowed;
}

.live-game-select option {
    color: #233044;
    background: #f8fbff;
    font-weight: 700;
}

.live-premium-request-panel {
    margin-top: -2px;
    border-color: rgba(240,195,91,0.4);
    background:
      linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,250,244,0.72)),
      repeating-linear-gradient(120deg, rgba(240,195,91,0.09) 0 1px, transparent 1px 32px),
      linear-gradient(135deg, rgba(9,47,86,0.06), rgba(139,110,232,0.1));
}

.live-premium-request-panel::before {
    background: linear-gradient(180deg, #f0c35b, #25aafc 58%, #8b6ee8);
    box-shadow: 0 0 24px rgba(240,195,91,0.24);
}

.live-premium-request-panel.is-premium-locked {
    border-color: rgba(197,138,37,0.26);
}

.live-premium-badge {
    position: relative;
    overflow: hidden;
    border-color: rgba(255,255,255,0.9);
    border-radius: 20px;
    color: #092f56;
    background:
      radial-gradient(circle at 28% 18%, rgba(255,255,255,0.95) 0 10%, rgba(255,255,255,0) 22%),
      linear-gradient(135deg, #c58a25 0%, #f0c35b 38%, #25aafc 73%, #8b6ee8 100%);
    box-shadow:
      0 16px 30px rgba(37,170,252,0.18),
      0 8px 18px rgba(197,138,37,0.16),
      inset 0 1px 0 rgba(255,255,255,0.62);
}

.live-premium-badge::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255,255,255,0.46);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 62%);
}

.live-premium-badge::after {
    content: "";
    position: absolute;
    top: 8px;
    left: -18px;
    width: 54px;
    height: 18px;
    background: rgba(255,255,255,0.42);
    filter: blur(0.2px);
    opacity: 0.72;
    transform: rotate(-32deg);
}

.live-premium-badge-mark {
    position: relative;
    z-index: 1;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(9,47,86,0.1);
    border-radius: 50%;
    background:
      radial-gradient(circle at 35% 26%, #ffffff 0 16%, rgba(255,255,255,0) 17%),
      linear-gradient(145deg, #ffffff 0%, #fff3c6 44%, #d8effb 100%);
    box-shadow:
      0 8px 14px rgba(9,47,86,0.18),
      inset 0 -3px 7px rgba(197,138,37,0.16),
      inset 0 1px 0 rgba(255,255,255,0.96);
    font: 900 25px/1 "Poppins", "Segoe UI", Arial, sans-serif;
    text-shadow: 0 1px 0 rgba(255,255,255,0.78);
}

.live-premium-badge-mark::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 24px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #fff2a8 0%, #d8a135 46%, #9b6417 100%);
    box-shadow: 0 2px 4px rgba(9,47,86,0.18);
    clip-path: polygon(0 100%, 0 42%, 20% 70%, 34% 18%, 50% 70%, 66% 18%, 80% 70%, 100% 42%, 100% 100%);
    transform: translateX(-50%);
}

.live-premium-badge-mark::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-top: 2px solid rgba(255,255,255,0.74);
    border-left: 1px solid rgba(255,255,255,0.46);
    border-radius: 50%;
    pointer-events: none;
}

.live-premium-form {
    grid-template-columns: repeat(auto-fit, minmax(min(184px, 100%), 1fr));
}

.live-premium-post-button,
.live-premium-upgrade {
    width: 100%;
    min-width: 0;
}

.live-premium-post-button {
    padding-inline: 12px;
    font-size: 14px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
}

.live-premium-upgrade {
    grid-column: 1 / -1;
    min-height: 48px;
    min-width: 126px;
    border-color: rgba(197,138,37,0.45);
    color: #092f56;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,244,212,0.82));
    box-shadow:
      0 12px 22px rgba(137,89,23,0.11),
      inset 0 1px 0 rgba(255,255,255,0.92);
}

.live-premium-upgrade[hidden] {
    display: none;
}

.live-premium-post-button:disabled,
.live-premium-post-button:disabled:hover {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.live-game-card.is-premium-room {
    border-color: rgba(240,195,91,0.48);
    background:
      linear-gradient(135deg, rgba(255,252,242,0.9), rgba(238,247,252,0.64));
    box-shadow: 0 14px 30px rgba(137,89,23,0.13);
}

.live-game-card.is-premium-locked-room {
    border-color: rgba(197,138,37,0.32);
}

.live-premium-locked-button {
    border-color: rgba(197,138,37,0.48);
    color: #092f56;
    background: linear-gradient(135deg, #fff8e4, #f0c35b);
}


.live-post-button {
    min-height: 48px;
    border-color: rgba(197,138,37,0.5);
    color: #ffffff;
    background: linear-gradient(135deg, #092f56, #25aafc 52%, #f0c35b);
    box-shadow:
      0 14px 24px rgba(37,170,252,0.2),
      inset 0 1px 0 rgba(255,255,255,0.34);
}

.live-post-button:hover {
    border-color: rgba(197,138,37,0.8);
    transform: translateY(-1px);
}

.live-post-button:disabled,
.live-post-button:disabled:hover {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.live-request-message {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
    font: 700 13px/1.35 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-request-message.success {
    color: #257451;
}

.live-request-message.error {
    color: #9a3445;
}

.live-games-list {
    display: grid;
    gap: 14px;
}

.live-game-card,
.live-game-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.74);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255,255,255,0.78), rgba(236,246,252,0.54));
    box-shadow: 0 12px 28px rgba(54,70,110,0.12);
}

.live-game-card h2 {
    margin: 3px 0 5px;
    color: #2f3547;
    font: 800 24px/1.15 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-game-card.is-own-room {
    border-color: rgba(37,116,81,0.42);
    background:
      linear-gradient(135deg, rgba(250,255,251,0.86), rgba(231,247,240,0.64));
    box-shadow: 0 12px 30px rgba(37,116,81,0.14);
}

.live-game-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.live-cancel-button {
    border-color: rgba(154,52,69,0.45);
    color: #9a3445;
    background: rgba(255,255,255,0.52);
}

.live-cancel-button:hover {
    border-color: rgba(154,52,69,0.72);
    background: rgba(255,238,241,0.74);
}

.live-signin-button {
    width: auto;
    min-width: 124px;
    border-color: rgba(9,47,86,0.24);
    color: #092f56;
    background: rgba(255,255,255,0.62);
}

.live-signin-button:hover {
    border-color: rgba(37,170,252,0.55);
    background: rgba(236,247,252,0.78);
}

.live-game-card p,
.live-game-empty span {
    margin: 0;
    color: #6f788d;
    font: 500 13px/1.4 "Poppins", "Segoe UI", Arial, sans-serif;
}

.live-game-kicker {
    color: #c58a25;
    font: 800 12px/1.2 "Poppins", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-game-empty {
    display: grid;
    justify-content: stretch;
}

.live-signup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.live-game-empty strong {
    color: #2f3547;
    font: 800 17px/1.25 "Poppins", "Segoe UI", Arial, sans-serif;
}

@media (max-width: 740px) {
    .live-games-title-row,
    .live-signup-panel,
    .live-request-panel,
    .live-game-card {
        align-items: stretch;
        display: grid;
    }

    .live-games-title-row {
        padding: 0;
    }

    .live-request-panel {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 18px 20px 22px;
    }

    .live-request-panel::after {
        width: 96px;
        height: 62px;
        opacity: 0.3;
    }

    .live-request-copy {
        align-items: flex-start;
    }

    .live-request-badge {
        width: 54px;
        height: 54px;
        flex-basis: 54px;
        border-radius: 15px;
        font-size: 15px;
    }

    .live-request-form,
    .live-premium-form {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .live-join-button,
    .live-cancel-button,
    .live-signin-button,
    .live-post-button,
    .live-premium-upgrade {
        width: 100%;
    }

    .live-game-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.coming-soon {
    opacity: 0.86;
}


.game-card.coming-soon {
    --game-accent: 122, 112, 164;
    --game-accent-deep: 70, 65, 112;
    cursor: default;
}

.game-card.coming-soon .game-door {
    filter: saturate(0.94) contrast(0.98);
}

.game-card.coming-soon .game-card-copy b {
    min-height: 0;
    justify-content: flex-start;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #76698c;
    background: none;
    box-shadow: none;
    text-transform: uppercase;
    letter-spacing: 0;
}

@media (max-width: 800px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .home-games .featured-game,
    .home-games .featured-game:hover {
        transform: none;
    }

    .game-card {
        min-height: 280px;
    }
}

@media (orientation: landscape) and (max-height: 520px) and (max-width: 1000px) {
    .home-hero,
    .home-invite,
    .live-games-home-button {
        display: none;
    }

    .home-top-bar {
        width: min(100% - 28px, 1120px);
        margin-top: 10px;
        gap: 10px;
    }

    #account-navigation {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 154px));
        gap: 8px;
        justify-content: center;
    }

    .home-auth-button {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        padding: 8px 10px;
        flex: initial;
        font-size: 13px;
    }

    .home-games {
        width: min(100% - 24px, 1120px);
        margin: 12px auto 28px;
    }

    .home-games .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr));
        gap: 10px;
    }

    .home-games .game-card {
        display: grid;
        grid-template-columns: minmax(118px, 42%) minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        min-height: 128px;
        padding: 10px;
        border-radius: 16px;
    }

    .home-games .game-card::after {
        height: 4px;
    }

    .home-games .game-door {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        padding: 8px;
        border-radius: 13px;
    }

    .game-card-copy {
        min-width: 0;
        padding: 0;
    }

    .game-card-copy strong {
        font-size: clamp(15px, 2.7vw, 18px);
    }

    .game-card-copy small {
        font-size: 11px;
        line-height: 1.25;
    }

    .game-card-copy b {
        min-height: 28px;
        padding: 7px 11px;
        font-size: 12px;
    }
}

@media (max-width: 520px) {
    .home-hero {
        display: none;
    }

    .home-top-bar {
        width: calc(100% - 28px);
        max-width: 1120px;
        min-width: 0;
        margin-top: 12px;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        box-sizing: border-box;
    }

    .home-brand {
        font-size: 17px;
    }

    .home-brand-mark {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        border-radius: 12px 12px 15px 15px;
    }

    .home-brand-mark img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: none;
    }

    #account-navigation {
        display: grid;
        width: 100%;
        max-width: calc(100vw - 44px);
        box-sizing: border-box;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-auth-button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: 42px;
        min-height: 42px;
        max-height: 42px;
        padding: 8px 6px;
        flex: initial;
        font-size: 13px;
    }

    .live-games-home-button {
        display: none;
    }

    .home-games {
        width: min(100% - 24px, 1080px);
        margin: 18px auto 42px;
    }

    .home-invite {
        display: none;
    }

    .games-grid,
    .home-games .games-grid {
        align-items: stretch;
        gap: 14px;
        grid-template-columns: 1fr;
    }

    .game-card,
    .home-games .game-card {
        display: grid;
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        min-height: 164px;
        padding: 14px;
        border-radius: 18px;
    }

    .game-card::after,
    .home-games .game-card::after {
        width: 5px;
        height: auto;
        inset: 0 auto 0 0;
        background: linear-gradient(180deg, rgba(var(--game-accent),0.16), rgba(var(--game-accent),0.86), rgba(255,255,255,0.42));
    }

    .game-door,
    .home-games .game-door {
        height: 104px;
        padding: 10px;
        border-radius: 15px;
    }

    .game-card-copy {
        min-width: 0;
        padding: 0;
    }

    .game-card-copy strong {
        font-size: 19px;
    }

    .game-card-copy small {
        font-size: 12px;
        line-height: 1.35;
    }

    .game-card-copy b {
        min-height: 30px;
        margin-top: 12px;
        padding: 7px 12px;
    }

    .home-top-line {
        width: 100%;
        flex: none;
    }

    .home-footer {
        margin-top: 24px;
        gap: 8px 12px;
        text-align: center;
    }

    .home-footer > span {
        flex-basis: 100%;
    }

    .category-button {
        grid-template-columns: 52px minmax(0, 1fr) 22px;
        gap: 20px;
        padding: 15px;
    }

    .category-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 21px;
    }

    .word-category-icon,
    .card-category-icon {
        gap: 4px;
        padding: 7px;
    }

    .word-category-icon span,
    .card-category-icon span {
        min-height: 15px;
        border-radius: 7px;
        font-size: 12px;
    }

    .card-category-icon span {
        font-size: 14px;
    }

    .category-copy {
        padding-left: 2px;
    }

    .category-copy strong {
        font-size: 19px;
    }

    .games-heading {
        align-items: flex-start;
    }

    .games-heading-icon {
        width: 58px;
        height: 58px;
        border-radius: 17px;
        font-size: 23px;
    }
}

.game-tile {
    width: 250px;
    cursor: pointer;
    transition: transform 0.2s;
}

.game-tile:hover {
    transform: scale(1.05);
}

/* Premium gate */
.premium-page {
    min-height: 100vh;
    color: #092f56;
}

.premium-top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 24px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.premium-shell {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 72px;
}

.premium-hero {
    max-width: 720px;
    padding: 28px 0 34px;
}

.premium-kicker {
    margin: 0 0 10px;
    color: #a13e3e;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.premium-hero h1,
.premium-gate-card h1 {
    margin: 0;
    color: #092f56;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

.premium-hero h1 {
    font-size: clamp(40px, 8vw, 86px);
    line-height: 0.95;
}

.premium-hero p:not(.premium-kicker) {
    max-width: 620px;
    margin: 18px 0 24px;
    color: #315a77;
    font-size: 20px;
    line-height: 1.5;
}

.premium-purchase {
    display: grid;
    justify-items: center;
    gap: 10px;
    margin: 0 0 28px;
    padding: 0;
}

.premium-buy-button {
    appearance: none;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-width: 178px;
    min-height: 52px;
    border: 1px solid rgba(197, 138, 37, 0.58);
    border-radius: 999px;
    padding: 15px 34px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2)),
        linear-gradient(135deg, rgba(255, 212, 90, 0.42), rgba(161, 62, 62, 0.16));
    color: #092f56;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 10px 22px rgba(5, 33, 62, 0.14),
        0 0 0 4px rgba(244, 189, 63, 0.1);
    backdrop-filter: blur(12px) saturate(1.12);
    -webkit-backdrop-filter: blur(12px) saturate(1.12);
    cursor: pointer;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.premium-buy-button::before {
    content: "";
    position: absolute;
    inset: 1px;
    z-index: -1;
    border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0) 54%);
    pointer-events: none;
}

.premium-buy-button:hover {
    border-color: rgba(197, 138, 37, 0.82);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.82),
        0 14px 28px rgba(5, 33, 62, 0.16),
        0 0 0 5px rgba(244, 189, 63, 0.16);
    transform: translateY(-2px);
}

.premium-buy-button:focus-visible {
    outline: 3px solid rgba(37,170,252,0.45);
    outline-offset: 4px;
}

.premium-buy-button:disabled {
    cursor: wait;
    opacity: 0.78;
    transform: none;
}

.premium-portal-button {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.24)),
        linear-gradient(135deg, rgba(37, 170, 252, 0.32), rgba(37, 116, 81, 0.18));
}

.premium-status-message {
    color: #315a77;
    line-height: 1.4;
    text-align: center;
    min-height: 20px;
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.premium-success-action {
    width: auto;
    min-width: 220px;
}

.premium-comparison {
    display: grid;
    gap: 16px;
    margin: 0 0 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.1));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.44),
        0 18px 34px rgba(5, 33, 62, 0.1);
    backdrop-filter: blur(8px) saturate(1.08);
    -webkit-backdrop-filter: blur(8px) saturate(1.08);
}

.premium-comparison-heading h2 {
    margin: 0;
    color: #092f56;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: 0;
    text-align: center;
}

.premium-comparison-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(9, 47, 86, 0.12);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.62);
}

.premium-comparison-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    color: #092f56;
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.premium-comparison-table th,
.premium-comparison-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(9, 47, 86, 0.1);
    vertical-align: middle;
}

.premium-comparison-table thead th {
    color: #315a77;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px) saturate(1.05);
    -webkit-backdrop-filter: blur(6px) saturate(1.05);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.premium-comparison-table th:first-child {
    text-align: left;
}

.premium-comparison-table td,
.premium-comparison-table thead th:not(:first-child) {
    text-align: center;
}

.premium-comparison-table tbody th {
    color: #233044;
    font-size: 15px;
    font-weight: 800;
}

.premium-comparison-table tbody tr:last-child th,
.premium-comparison-table tbody tr:last-child td {
    border-bottom: 0;
}

.premium-comparison-table tbody tr:nth-child(even) th,
.premium-comparison-table tbody tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(3px) saturate(1.03);
    -webkit-backdrop-filter: blur(3px) saturate(1.03);
}

.premium-feature-row th {
    color: #092f56;
}

.premium-check {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #257451;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

.premium-dash {
    color: #8b95a7;
    font-size: 22px;
    font-weight: 800;
}

.premium-price-row th,
.premium-price-row td {
    color: #092f56;
    font-weight: 900;
}

.premium-price-row td:last-child {
    color: #a13e3e;
}

.premium-game-actions {
    display: flex;
    justify-content: center;
    margin: 0 0 28px;
}

.premium-game-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    min-width: 190px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    border: 1px solid rgba(17, 108, 104, 0.44);
    border-radius: 999px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent),
        linear-gradient(135deg, #108f8b, #0e6f87);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        0 10px 22px rgba(5, 33, 62, 0.14);
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.premium-game-button:hover,
.premium-game-button:focus-visible {
    border-color: rgba(239, 189, 79, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        0 14px 28px rgba(5, 33, 62, 0.16),
        0 0 0 5px rgba(17, 108, 104, 0.12);
    transform: translateY(-2px);
}

.premium-game-button:focus-visible {
    outline: 3px solid rgba(37,170,252,0.45);
    outline-offset: 4px;
}

.premium-gate {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(9, 47, 86, 0.42);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.premium-gate[hidden],
.premium-shell[hidden] {
    display: none;
}

.premium-gate-card {
    width: min(440px, 100%);
    padding: 30px;
    border: 1px solid rgba(9, 47, 86, 0.18);
    border-radius: 8px;
    background: #fffaf2;
    box-shadow: 0 26px 60px rgba(5, 33, 62, 0.28);
}

.premium-gate-card h1 {
    font-size: 34px;
    line-height: 1.05;
}

.premium-gate-card p:not(.premium-kicker):not(.premium-gate-error) {
    margin: 14px 0 22px;
    color: #315a77;
    line-height: 1.45;
}

.premium-password-label {
    display: block;
    margin-bottom: 8px;
    color: #092f56;
    font-weight: 800;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
}

.premium-gate-card input {
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1.5px solid rgba(9, 47, 86, 0.28);
    border-radius: 8px;
    box-sizing: border-box;
    color: #092f56;
    font: inherit;
    background: #fff;
}

.premium-gate-card input:focus {
    border-color: #a13e3e;
    outline: 3px solid rgba(161, 62, 62, 0.16);
}

.premium-gate-error {
    min-height: 22px;
    margin: 10px 0 16px;
    color: #a13e3e;
    font-weight: 800;
}

.premium-gate-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.premium-gate-actions .button {
    flex: 1 1 128px;
    width: auto;
    min-width: 128px;
    margin-top: 0;
}

.premium-back-button {
    color: #092f56;
}

.premium-lock-button {
    width: auto;
}

@media (max-width: 760px) {
    .premium-top-bar {
        width: min(100% - 28px, 1120px);
        align-items: flex-start;
        flex-direction: column;
    }

    .premium-shell {
        width: min(100% - 28px, 1120px);
        padding: 26px 0 54px;
    }

    .premium-purchase {
        margin-bottom: 22px;
    }

    .premium-comparison {
        gap: 12px;
        padding: 14px;
    }

    .premium-comparison-heading h2 {
        font-size: 22px;
    }

    .premium-comparison-table th,
    .premium-comparison-table td {
        padding: 12px 8px;
    }

    .premium-comparison-table {
        min-width: 0;
        table-layout: fixed;
    }

    .premium-comparison-table th:first-child {
        width: 46%;
    }

    .premium-comparison-table th,
    .premium-comparison-table td {
        overflow-wrap: anywhere;
    }

    .premium-comparison-table thead th {
        font-size: 11px;
    }

    .premium-comparison-table tbody th,
    .premium-comparison-table td {
        font-size: 13px;
    }

    .premium-check {
        width: 24px;
        height: 24px;
        font-size: 15px;
    }

    .premium-buy-button {
        width: 100%;
        max-width: 320px;
    }

    .premium-gate-card {
        padding: 24px;
    }

    .premium-gate-card h1 {
        font-size: 28px;
    }
}

/* Let homepage cards fit their pictures and descriptions without a tall empty base. */
.home-games .game-card {
    min-height: 0;
}

.home-games .game-card-copy {
    flex: 0 1 auto;
}

.home-games .game-card:nth-child(n + 4) {
    contain-intrinsic-size: 320px auto 250px;
}

.home-games .game-card-copy b {
    margin-top: 12px;
}

@media (max-width: 520px) {
    .home-games .game-card:nth-child(n + 4) {
        contain-intrinsic-size: 320px auto 132px;
    }
}
