/* ============================================================
   Media queries at the bottom into 4 categories:
     Cat 4: > 1024px
     Cat 3: 768–1024px
     Cat 2: 431–767px
     Cat 1: ≤ 430px
   ============================================================ */
   
/* ── Self-hosted Google Fonts (Courgette + Marcellus) ──────── */
@font-face {
  font-family: 'Courgette';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/courgette-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Courgette';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/courgette-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Marcellus';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/marcellus-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  font-family: var(--hh-font-body);
  background: transparent !important;
}

.member-user + .member-user {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.member-user #memberName {
  font-family: var(--hh-font-body);
  font-style: normal;
  font-size: 1em !important;
  opacity: 0.92;
}

.member-user:first-of-type, .member-user:first-of-type *:not(a) {
  color: var(--hh-accent-strong) !important;
  -webkit-text-fill-color: var(--hh-accent-strong) !important;
  text-shadow: none !important;
  animation: none !important;
}

.member-user:nth-of-type(2), .member-user:nth-of-type(2) *:not(a) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Sound toggle button — fixed position, strong overrides to avoid browser-default styling */
#sound_toggle_button {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  color: var(--hh-accent-strong) !important;
  font-size: 1.4rem !important;
  padding: 0.35rem 0.55rem !important;
  position: fixed !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  z-index: var(--hh-z-sound-btn) !important;
  margin: 0 !important;
}

.top-control-bar #sound_toggle_button {
  position: static !important;
  top: auto !important;
  right: auto !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  margin-left: 0.3rem !important;
}

#sound_toggle_button:hover, #sound_toggle_button:focus {
  filter: brightness(1.12);
}

/* SVG sizing for the inline speaker icon */
#sound_toggle_button svg {
  width: 1.0em;
  height: 1.0em;
  display: block;
  fill: none;
  stroke: currentColor;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  background: #000 url("../images/background.jpg") center/cover fixed no-repeat;
  background-image: url("../images/background.jpg");
  background-size: cover;
}

:root {
  --hh-font-body: "Segoe UI", Tahoma, Arial, sans-serif;
  --hh-font-heading: "Marcellus", "Times New Roman", serif;
  --hh-font-script: "Courgette", "Segoe Script", cursive;

  --hh-accent: #ffda6b;
  --hh-accent-2: #ffc94d;
  --hh-accent-strong: #ffd97a;
  --cybersoftware-link-color: #ffe793;
  --hh-muted-accent: rgba(255,230,150,0.85);
  --hh-card-bg: rgba(255,255,255,0.06);
  --hh-card-border: rgba(255,215,100,0.12);
  --hh-overlay: rgba(0,0,0,0.45);
  --hh-text-on-accent: #000000;

  --hh-login-btn-text: hsl(195,76%,30%);
  --hh-control-radius: 8px;
  --hh-btn-padding: 0 0.9rem;

  /* Text & Glow Effects */
  --hh-text-glow-base: 0 0 8px rgba(255, 230, 160, 0.9), 0 0 12px rgba(255, 210, 100, 0.45);
  --hh-text-glow-strong: 0 0 12px rgba(255, 235, 175, 1), 0 0 22px rgba(255, 215, 120, 0.75), 0 0 34px rgba(255, 210, 110, 0.55);
  --hh-button-shadow-base: drop-shadow(0 0 6px rgba(255, 220, 130, 0.45)) drop-shadow(0 0 14px rgba(255, 200, 90, 0.35));
  --hh-button-shadow-pulse: drop-shadow(0 0 10px rgba(255, 235, 175, 0.9)) drop-shadow(0 0 22px rgba(255, 215, 120, 0.7)) drop-shadow(0 0 36px rgba(255, 200, 90, 0.55));
  --hh-input-focus-shadow: 0 0 10px rgba(255, 215, 100, 0.4);
  --hh-image-shadow: 0 0 30px rgba(255, 215, 100, 0.5), 0 0 90px rgba(255, 180, 60, 0.25);

  /* Z-Index Stack */
  --hh-z-overlay: 0;
  --hh-z-content: 1;
  --hh-z-byline: 5;
  --hh-z-modal: 2000;
  --hh-z-lang-select: 10000;
  --hh-z-sound-btn: 10001;
  --hh-z-modal-box: 10002;
  --hh-z-modal-content: 10003;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: var(--hh-z-overlay);
  pointer-events: none;
}

/* Language selector (flags) */
.lang-select {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
  z-index: var(--hh-z-lang-select);
  background: transparent;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-flag {
  width: 25px;
  height: 18px;
  object-fit: contain;
  cursor: pointer;
  border-radius: 3px;
  border: 2px solid transparent;
}

.lang-flag.active {
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.15);
}

/* Place language flags top-left on HarmonyHealing pages to avoid overlapping
   the top-right control bar. Only shown on hh.html and main/main.html. */
body.index-page > .lang-select {
  top: 0.75rem !important;
  left: 0.75rem !important;
  right: auto !important;
  z-index: var(--hh-z-lang-select) !important;
}

.page-wrapper {
  position: relative;
  z-index: var(--hh-z-content);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vh, 2.5rem) 8%;
}

body.member-page .page-wrapper {
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.6rem;
}

.top-section {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.left-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  min-width: 260px;
  text-align: center;
}

.right-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  min-width: 300px;
  position: relative;
  padding-top: 1rem;
  margin-top: -2.5rem;
  --hh-image-width: 400px;
}

.title-section {
  position: relative;
  color: #f8e9b0;
  font-family: var(--hh-font-body);
  text-shadow: 0 0 10px rgba(255, 220, 130, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin: 0.2rem 0 0 0;
}

.title-section h1 {
  font-size: 2.8rem;
  margin: 0;
  letter-spacing: 1px;
  font-weight: 600;
  font-style: italic;
  color: var(--cybersoftware-link-color) !important;
  -webkit-text-fill-color: var(--cybersoftware-link-color) !important;
  font-family: var(--hh-font-script);
  order: 2;
  text-shadow: var(--hh-text-glow-base);
  animation: fadeInLeft 2s ease-in-out both;
  will-change: transform, opacity;
}

.title-section .app-version {
  order: 3;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.05em;
  font-weight: 400;
  font-family: var(--hh-font-body);
  color: rgba(255, 235, 170, 0.5);
  text-shadow: none;
  text-transform: uppercase;
}

.byline {
  margin-top: 0.25rem;
  margin-bottom: 0.1rem;
  font-size: 1.05rem;
  color: var(--hh-accent-strong);
  font-family: var(--hh-font-body);
  opacity: 1;
  animation: fadeInOnly 1.2s ease-out 0.6s both;
  text-align: center;
  white-space: nowrap;
  order: 1;
  text-shadow: var(--hh-text-glow-base);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0.6rem;
  margin: 0;
  z-index: var(--hh-z-byline);
  padding-bottom: 0.3rem;
  font-weight: 400;
  letter-spacing: normal;
}

.byline a {
  color: var(--cybersoftware-link-color);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: var(--hh-text-glow-base);
  animation: none;
  font-weight: inherit;
}

.byline a:hover {
  color: hsl(190, 100%, 72%);
  text-shadow:
    0 0 10px rgba(90, 240, 255, 0.8),
    0 0 20px rgba(90, 240, 255, 0.4),
    0 0 30px rgba(255, 255, 200, 0.3);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.slogan-area { display: none; }
.slogan-top, .slogan-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0.5rem;
  opacity: 1;
  animation: fadeInOnly 1.3s ease-out 0.3s forwards;
  will-change: opacity;
}
.slogan-top h2, .slogan-bottom h2 {
  font-family: var(--hh-font-script);
  font-size: 2.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--hh-accent-strong);
  letter-spacing: 1.1px;
  text-shadow:
    0 0 18px rgba(255, 230, 160, 0.9),
    0 0 30px rgba(255, 210, 100, 0.5);
  margin: 0;
  text-align: center;
  max-width: 92%;
  line-height: 1.2;
}

.login-section {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  animation: fadeInUp 1.5s ease-in-out 0s forwards;
  margin-top: 2rem;
  margin-bottom: 4.5rem;
}

.login-box {
  width: 100%;
  max-width: 300px;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(255, 215, 100, 0.3);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 0 20px rgba(255, 215, 100, 0.15);
  backdrop-filter: blur(6px);
  contain: layout style;
}

.login-box .register-area--inside {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  opacity: 1;
  visibility: visible;
}

.login-open-wrapper { display: none; }
.login-open-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2));
  color: var(--hh-text-on-accent);
  border: none;
  padding: 0.9rem 2.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,0.3);
  animation: loginPulse 2.8s ease-in-out infinite;
  filter: var(--hh-button-shadow-base);
  will-change: filter;
}
.body-modal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: var(--hh-z-modal-box);
  background: rgba(0,0,0,0.6);
  padding: 1rem;
}
.body-modal.open {
  display: flex;
  animation: modalFadeIn 0.15s ease-out;
}
.body-modal.open .body-modal-content {
  animation: modalSlideIn 0.15s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.body-modal .body-modal-content { max-width: 360px; z-index: var(--hh-z-modal-content); }

.login-box h2 {
  font-size: 1.1rem;
  color: var(--hh-accent-strong);
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-box input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 150, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-box input:focus {
  border-color: var(--hh-accent-strong);
  box-shadow: var(--hh-input-focus-shadow);
}

.login-box button {
  width: 46%;
  height: 2.4rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2));
  color: var(--hh-text-on-accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.8rem auto 0;
  animation: loginPulse 2.8s ease-in-out infinite;
  filter: var(--hh-button-shadow-base);
  will-change: filter;
}

.login-box button:hover {
  background: linear-gradient(90deg, #ffe793, #ffdb70);
  box-shadow: 0 0 18px rgba(255, 215, 100, 0.6);
  transform: scale(1.03);
}

.hh-btn {
  -webkit-appearance: none;
  appearance: none;
  height: 2.4rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2));
  color: var(--hh-text-on-accent);
  -webkit-text-fill-color: var(--hh-text-on-accent);
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  min-width: 150px;
  max-width: calc(100vw - 2rem);
  padding: 0 0.9rem;
  margin-top: 2.5rem;
  filter: var(--hh-button-shadow-base);
  will-change: filter;
}

#modalCloseBtn {
  animation: none !important;
  filter: none !important;
}

.hh-btn:hover, .hh-btn:focus {
  background: linear-gradient(90deg, #ffe793, #ffdb70);
  box-shadow: 0 0 18px rgba(255, 215, 100, 0.6);
  transform: scale(1.03);
}

.register-btn {
  background: hsl(195, 76%, 25%);
  color: #ffda6b;
  border: 2px solid #ffda6b;
  border-radius: 10px;
  padding: 0.9rem 2.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow:
    0 0 20px rgba(255, 215, 100, 0.6),
    0 0 50px rgba(255, 200, 60, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  text-decoration: none;
}

.register-btn:hover {
  background: linear-gradient(90deg, hsl(195, 76%, 30%), hsl(195, 76%, 25%));
  color: #fff8dc;
  transform: scale(1.08);
  box-shadow:
    0 0 35px rgba(255, 230, 150, 0.9),
    0 0 80px rgba(255, 210, 80, 0.6),
    0 0 20px rgba(64, 180, 255, 0.4);
}

/* Password visibility toggle */
.pw-wrap {
  position: relative;
  display: block;
  width: 100%;
}
/* Zero out input margins inside pw-wrap so the wrap height = input border-box height
   and top:50% on the toggle aligns with the visual centre of the field. */
.pw-wrap > input {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* Restore the 0.9rem gap below the login password field (was on the input) */
.login-box .pw-wrap {
  margin-bottom: 0.9rem;
}
.pw-toggle,
.login-box .pw-toggle,
.register-box .pw-toggle,
.body-modal .pw-toggle {
  position: absolute !important;
  right: 0.5rem !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  background-image: none !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  padding: 0.25rem !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  color: rgba(255, 220, 100, 0.55) !important;
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: inherit !important;
  font-weight: normal !important;
  animation: none !important;
  filter: none !important;
  transition: color 0.2s ease !important;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.pw-toggle:hover,
.login-box .pw-toggle:hover,
.register-box .pw-toggle:hover,
.body-modal .pw-toggle:hover {
  color: #ffda6b !important;
  background: none !important;
  filter: none !important;
}
.pw-toggle:focus-visible {
  outline: 2px solid #ffda6b;
  outline-offset: 2px;
}
.pw-toggle svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
  pointer-events: none;
  display: block;
}

/* Autofill: use dark text so it is readable on the browser's light autofill background */
.login-box input:-webkit-autofill,
.login-box input:-webkit-autofill:hover,
.login-box input:-webkit-autofill:focus,
.register-box input:-webkit-autofill,
.register-box input:-webkit-autofill:hover,
.register-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111 !important;
  caret-color: #111;
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.modal-forgot-password-link {
  display: none;
}

.forgot-password-link a,
.back-to-login-link a {
  color: #ffda6b;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.forgot-password-link a:hover,
.back-to-login-link a:hover {
  color: var(--hh-accent-strong);
  text-decoration: underline;
}

.login-trial-promo {
  margin: 0.65rem auto 0.2rem;
  position: relative;
  top: -0.18rem;
  max-width: 100%;
  color: #fff1b8;
  font-family: var(--hh-font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.42;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255, 238, 176, 0.85),
    0 0 18px rgba(255, 206, 82, 0.38);
}

.login-trial-promo a {
  color: #ffe27a;
  font-family: var(--hh-font-body);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-shadow:
    0 0 8px rgba(255, 226, 122, 0.8),
    0 0 18px rgba(255, 202, 70, 0.45);
}

.login-trial-promo--desktop,
.login-trial-promo--mobile {
  display: none;
}

.login-social-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  margin: 0.35rem auto 0.05rem;
}

.login-social-label {
  color: #fff1b8;
  font-family: var(--hh-font-body);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-block;
  transform: translateX(-0.5rem);
  margin-right: 1.15rem;
  text-shadow:
    0 0 8px rgba(255, 238, 176, 0.78),
    0 0 16px rgba(255, 206, 82, 0.33);
}

.login-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  opacity: 0.92;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.login-social-links a:hover,
.login-social-links a:focus-visible {
  opacity: 1;
  transform: translateY(-1px) scale(1.08);
  outline: none;
}

.login-social-links img {
  width: 16px;
  height: 16px;
  display: block;
}

.login-social-links--inside,
.login-social-links--desktop {
  display: none;
}

.mobile-status-link {
  display: none;
  margin: 0;
  text-align: center;
  font-size: 0.98rem;
}

.mobile-status-link .login-social-label {
  margin-right: 0.4rem;
}

.trial-register-cta {
  width: 100%;
  margin: 0 0 0.22rem;
  color: #fff1b8;
  font-family: var(--hh-font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-shadow:
    0 0 8px rgba(255, 238, 176, 0.9),
    0 0 20px rgba(255, 206, 82, 0.45);
}

.login-box .register-area--inside,
.mobile-action-bar .register-area {
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
}

/* Forgot Password Section */
.forgot-password-section {
  padding: 2rem 1rem;
}

.forgot-password-instructions {
  color: rgba(255, 250, 230, 0.85);
  font-size: 0.95rem;
  text-align: center;
  margin: 0.5rem 0 1.5rem 0;
  line-height: 1.5;
}

.back-to-login-link {
  text-align: center;
  margin-top: 1rem;
}

.register-box {
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 100, 0.12);
  padding: 1.25rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.25);
}

.register-box input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 230, 150, 0.18);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.register-box input:focus {
  border-color: var(--hh-accent-strong);
  box-shadow: 0 0 10px rgba(255, 215, 100, 0.25);
}

.main-image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.main-image img {
  width: 400px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--hh-image-shadow);
  animation: fadeIn 1.5s ease-in-out, glowPulse 6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  animation-delay: 0s, 1.5s;
  will-change: box-shadow, filter;
}

.body-map-section { margin-top: 1rem; text-align: center; }
.body-map { max-width: 420px; margin: 0.6rem auto; }
.body-map svg { width: 100%; height: auto; display: block; }
.body-map .hotspot { cursor: pointer; }
.body-modal { position: fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,0.6); z-index: 2000; padding: 1rem; }
.body-modal-content { background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 10px; max-width: 520px; width: 100%; color: #fff; box-shadow: 0 6px 30px rgba(0,0,0,0.6); }
.body-modal #bodyModalTitle { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.modal-button-group { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.9rem; }

.title-section {
  /* Negative margin to raise title section and align with image overlap */
  margin-bottom: -30px;
  margin-top: 30px;
}
.main-image {
  /* Overlap adjustment with title section above */
  margin-top: -20px;
}

.register-box {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}

.register-box form { display:block; }
.register-box label {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,215,100,0.06);
}

.register-box label:last-of-type { border-bottom: none; padding-bottom: 0; }
.register-box label span { display:block; margin:0; font-size:0.9rem; color:var(--hh-accent-strong); font-weight:600; }
.register-box label .field-hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.2;
  color: rgba(255,236,179,0.78);
  text-align: center;
}
.register-box input { width: 100%; box-sizing: border-box; }
.register-box .hh-btn { display:block; width:100%; margin-top:0.9rem; }
.register-box p { text-align:center; margin-top:0.9rem; }

.member-box {
  font-size: 1.5rem;
  line-height: 1.5;
}
.member-box > * + * {
  margin-top: 0.5rem;
}
.member-box p {
  margin: 0;
}
.member-box  {
  margin-top: 0.6rem;
}

.welcome.html .title-section,
.member-page .title-section,
body.member-page .title-section,
body.member-area .title-section,
body.member .title-section,
body.member-page .member-box,
.member-box {
  margin-top: 2.8rem;
  margin-bottom: 0.5rem;
}

body.member-page .top-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  max-width: 900px !important;
  gap: 1.6rem !important;
}

body.member-page .left-group {
  width: 100% !important;
  max-width: 820px !important;
  align-items: center !important;
  text-align: center !important;
  gap: 1.2rem !important;
}

body.member-page .member-box {
  width: 100% !important;
  max-width: 820px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 215, 100, 0.18) !important;
  border-radius: 16px !important;
  padding: 1.4rem 1.6rem !important;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35) !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  text-align: center !important;
}

body.member-page .member-box > p.member-user {
  flex: 0 0 auto !important;
  width: 100% !important;
  display: block !important;
  text-align: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  align-self: center !important;
  line-height: 1.2 !important;
}

body.member-page .member-box > p.member-user > span {
  line-height: 1.2 !important;
}

body.member-page .member-box > p.member-user:first-of-type {
  order: 1 !important;
  margin-right: 0 !important;
  font-size: 1.5rem !important;
}

body.member-page .member-box > p.member-user:nth-of-type(2) {
  order: 2 !important;
  font-size: 1.5rem !important;
  line-height: 1.2 !important;
  margin-top: 0.15rem !important;
}

body.member-page .member-box > *:not(.member-user) {
  order: 3 !important;
  flex: 1 0 100% !important;
}

body.member-page .member-box > p.member-user p[data-i18n="about_site_paragraph"],
body.member-page .member-box > p.member-user span[data-i18n="about_site_paragraph"],
body.member-page .member-box p.member-user [data-i18n="about_site_paragraph"] {
  text-align: center !important;
  font-size: 1.5rem !important;
}

body.member-page .member-box p:has(#memberLogout) {
  display: flex !important;
  justify-content: center !important;
  margin-top: 4rem !important;
  margin-bottom: 1.7rem !important;
  padding-top: 0 !important;
}

body.member-page .member-box p,
body.member-page .member-box strong,
body.member-page .member-box span {
  color: var(--hh-accent-strong) !important;
}

body.member-page .member-box p[data-i18n="about_site_paragraph"] {
  font-size: 1.5rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
  color: var(--hh-accent-strong) !important;
  font-weight: 600 !important;
}

body.member-page .member-box p[data-i18n="about_site_paragraph_2"] {
  font-size: 1rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
  margin-top: 0.4rem !important;
  margin-bottom: 0rem !important;
  padding-top: 0.25rem !important;
}

body.member-page .member-box p.admin-contact-text {
  margin-top: 0 !important;
}

body.member-page .member-box p.verification-status {
  font-size: 1rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
  margin-top: 0.3rem !important;
  margin-bottom: 0.2rem !important;
}

body.member-page .member-box p.verification-status + p.verification-status {
  margin-top: 0.1rem !important;
}

body.member-page .member-box > p.member-user:nth-of-type(2) + p.verification-status {
  margin-top: 3rem !important;
}

body.member-page .member-box p.subscription-request {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  text-align: center !important;
}

body.member-page .member-box p.verification-status + p.subscription-request {
  margin-top: 2rem !important;
}

body.member-page .member-box p.subscription-request + p.subscription-request {
  margin-top: 1.5rem !important;
}

body.member-page .member-box p.subscription-request + p[data-i18n="about_site_paragraph_2"] {
  margin-top: 2.3rem !important;
}

body.member-page .member-box p.subscription-request + p.admin-contact-text {
  margin-top: 2.8rem !important;
}

body.member-page .member-box p.subscription-request + div#contactFormSection {
  margin-top: 2.5rem !important;
}

body.member-page .member-box p.subscription-request .subscribe-btn {
  font-size: 0.95rem !important;
  padding: 0.5rem 1rem !important;
  height: auto !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease !important;
  animation: none !important;
}

body.member-page .member-box p.subscription-request #subscribeBtn {
  animation: loginPulse 2.8s ease-in-out infinite !important;
}

body.member-page .member-box p.subscription-request .subscribe-btn:hover:not(:disabled) {
  transform: scale(1.03) !important;
}

body.member-page .member-box p.subscription-request .subscribe-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  animation: none !important;
}

body.member-page .member-box p.verification-status span:last-child {
  font-size: 0.82rem !important;
  margin-left: 0.3rem !important;
}

body.member-page .member-box form.verification-status {
  display: grid !important;
  grid-template-columns: auto minmax(10rem, 1fr) auto !important;
  gap: 0.45rem !important;
  align-items: center !important;
  margin: 0.8rem auto 1.5rem !important;
  max-width: 34rem !important;
}

body.member-page .member-box form.verification-status input {
  min-width: 0 !important;
}

body.member-page .member-box form.verification-status #memberEmailStatus {
  grid-column: 1 / -1 !important;
  min-height: 1.2em !important;
  font-size: 0.82rem !important;
}

@media (max-width: 430px) {
  body.member-page .member-box form.verification-status {
    grid-template-columns: 1fr !important;
  }
}

body.member-page .member-box p.member-note,
body.member-page .member-box p[data-i18n="about_site_paragraph_3"] {
  margin-top: 3rem !important;
  margin-bottom: 1rem !important;
  font-size: 1rem !important;
  letter-spacing: 0.2px !important;
  text-align: center !important;
}

body.member-page .member-box .main-button {
  margin-top: 0.5rem !important;
  margin-bottom: 2rem !important;
}

body.member-page .member-box p:has(a[href^="mailto:"]) {
  order: 6 !important;
  margin-top: -0.35rem !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0.25rem !important;
  text-align: center !important;
}

body.member-page .member-box p.member-home-link {
  order: 9 !important;
  margin-top: 0.35rem !important;
  margin-bottom: 1.4rem !important;
}

body.member-page .member-box p:has(#memberLogout) {
  order: 8 !important;
}

body.member-page .member-box p:has(a[href^="mailto:"]) a {
  font-size: 1.08rem !important;
  color: var(--hh-accent-2) !important;
}

.member-box p[data-i18n="about_site_paragraph"] {
  display: block !important;
  margin-top: 0.6rem !important;
  margin-bottom: 0.6rem !important;
  line-height: 1.6 !important;
}

.member-box #memberLogout {
  height: auto !important;
  width: auto !important;
  min-width: 140px !important;
  max-width: none !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.95rem !important;
  margin-top: 0 !important;
  display: inline-flex !important;
  justify-content: center !important;
  color: var(--hh-login-btn-text) !important;
  -webkit-text-fill-color: var(--hh-login-btn-text) !important;
}

.member-welcome {
  margin-top: 0.5rem;
  margin-bottom: 0.1rem;
  font-size: 2.5rem;
  color: var(--hh-accent-strong);
  font-family: var(--hh-font-script);
  font-style: italic;
  font-weight: 600;
  text-align: center;
}

.member-link {
  margin: 0;
  text-align: left;
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 2;
}

.member-link a {
  color: #ffe793;
  text-decoration: none;
  font-family: var(--hh-font-heading);
  letter-spacing: 0.4px;
  text-shadow:
    0 0 10px rgba(255, 230, 160, 0.9),
    0 0 18px rgba(255, 210, 100, 0.6),
    0 0 28px rgba(255, 200, 90, 0.45);
}

.member-home-link {
  margin: 0.9rem 0 0.25rem !important;
  text-align: center;
}

.member-home-link a {
  color: #ffe793;
  text-decoration: none;
  font-family: var(--hh-font-body);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.4px;
  text-shadow:
    0 0 10px rgba(255, 230, 160, 0.9),
    0 0 18px rgba(255, 210, 100, 0.6),
    0 0 28px rgba(255, 200, 90, 0.45);
}

.member-home-link a:hover,
.member-home-link a:focus {
  text-decoration: underline;
}

.member-user {
  margin: 0.05rem 0 0.25rem !important;
  font-family: inherit;
  font-size: 1.7rem !important;
  font-weight: 500;
  text-align: center;
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(255, 230, 160, 0.9), 0 0 12px rgba(255, 210, 100, 0.45);
  animation: bylinePulse 2.6s ease-in-out infinite;
}

.member-box .member-home-btn {
  height: 2.6rem !important;
  width: auto !important;
  min-width: 150px !important;
  max-width: none !important;
  padding: 0 1.2rem !important;
  font-size: 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: nowrap !important;
  color: var(--hh-login-btn-text) !important;
  -webkit-text-fill-color: var(--hh-login-btn-text) !important;
}

.member-page .title-section,
body.member-page .title-section,
body.member-area .title-section,
body.member .title-section {
  margin-bottom: 0.15rem !important;
}

body.member-page .title-section {
  width: 100%;
  text-align: center;
  pointer-events: none;
}

body.member-page .top-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.2rem;
  width: 100%;
}

body.member-page .member-link {
  position: static;
  text-align: center;
  margin-bottom: 0.2rem;
}

.slogan-top h2 {
  width: 400px !important;
  max-width: 100% !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
}
.slogan-bottom h2 {
  width: 400px !important;
  max-width: 100% !important;
  text-align: center !important;
}

.slogan-top { margin-bottom: 1.4rem !important; }
.slogan-bottom { margin-top: 0.4rem !important; }

body.index-page .title-section {
  margin-top: 1.5rem !important;
}
body.index-page .main-image {
  margin-top: -3.5rem !important;
}

body.index-page .right-group .slogan-top {
  width: var(--hh-image-width, 400px);
  align-self: center;
  display: flex;
  justify-content: flex-start !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.index-page .right-group .slogan-top h2 {
  width: 100%;
  text-align: left !important;
  max-width: 100% !important;
  padding-left: 5px !important;
}
body.index-page .right-group .slogan-bottom {
  width: var(--hh-image-width, 400px);
  align-self: center;
  display: flex;
  justify-content: flex-end !important;
  padding-left: 0 !important;
  padding-right: 40px !important;
}
body.index-page .right-group .slogan-bottom h2 {
  width: 100%;
  text-align: right !important;
  max-width: 100% !important;
}

/* Strong overrides for register page placed at end to ensure they win in cascade */
.register-page {
  font-family: var(--hh-font-body);
}

.register-page .title-section h1 {
  font-size: clamp(2rem, 2vw + 0.8rem, 3rem) !important;
  letter-spacing: 1.2px;
}

.register-page .register-box {
  max-width: 420px !important;
  padding: 1.35rem !important;
  border-radius: 14px;
}

.register-page .register-box label {
  margin-bottom: 1rem !important;
}

.register-page .register-box label span {
  font-size: 1rem !important;
  letter-spacing: 0.3px;
}

.register-page .register-box input {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 1.02rem;
  border-radius: 10px;
}

.register-page .register-box p {
  font-size: 1.1rem;
  margin-top: 0.5rem !important;
  color: white;
}

.register-page .register-box p a {
  font-weight: 700;
  color: #FFD700;
  display: block;
  font-size: 1.15rem;
  text-decoration: underline !important;
  pointer-events: auto !important;
  cursor: pointer;
}

.register-page .register-box form { text-align: center !important; }
.register-page .register-box .hh-btn,
.register-page #regBtn {
  display: inline-flex !important;
  width: auto !important;
  margin: 1.5rem auto 0.8rem !important;
  border-radius: 10px !important;
  padding: 0.9rem 2.6rem !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  min-width: 200px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Ensure register page aligns content to top and removes unexpected top offsets.
   These rules must be present in the stylesheet (not just in register.html's inline <style>)
   so SPA navigation (which only swaps .page-wrapper) gets the correct layout. */
.page-wrapper.register-page { align-items: flex-start !important; justify-content: flex-start !important; padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }

/* Override the base grid layout of .top-section so register page stacks vertically */
.register-page .top-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  grid-template-columns: none !important;
  gap: 1.5rem !important;
}

/* Reset left-group large negative margin-top from the ≥900px media query */
.register-page .left-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-top: 0 !important;
  gap: 1rem !important;
  align-self: auto !important;
}
/* Use 3-class specificity (.page-wrapper.register-page .title-section = 0,3,0) to beat
   body.index-page .title-section { margin-top: 1.5rem !important } (0,2,0) at line ~2226.
   During SPA navigation body keeps class="index-page", which would otherwise win. */
.page-wrapper.register-page .title-section { margin-top: 0 !important; padding-top: 0 !important; margin-bottom: 0 !important; }

/* Suppress the slide-in animation so title renders immediately on SPA swap */
.page-wrapper.register-page .title-section h1 { animation: none !important; opacity: 1 !important; transform: none !important; }

/* Ensure byline isn't fixed on register page (overrides original fixed rule) */
.register-page .title-section .byline {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0.25rem 0 0 0 !important;
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-120px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInOnly {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; filter: brightness(0.8); }
  to { opacity: 1; filter: brightness(1); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); filter: brightness(0.9); }
  to { opacity: 1; transform: translateY(0); filter: brightness(1); }
}

@keyframes bylinePulse {
  0%, 100% {
    text-shadow:
      0 0 8px rgba(255, 230, 160, 0.8),
      0 0 14px rgba(255, 210, 100, 0.45),
      0 0 22px rgba(255, 200, 90, 0.3);
  }
  50% {
    text-shadow:
      0 0 12px rgba(255, 235, 175, 1),
      0 0 22px rgba(255, 215, 120, 0.75),
      0 0 34px rgba(255, 210, 110, 0.55);
  }
}

@keyframes loginPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 6px rgba(255, 220, 130, 0.45))
      drop-shadow(0 0 14px rgba(255, 200, 90, 0.35));
  }
  50% {
    filter:
      drop-shadow(0 0 10px rgba(255, 235, 175, 0.9))
      drop-shadow(0 0 22px rgba(255, 215, 120, 0.7))
      drop-shadow(0 0 36px rgba(255, 200, 90, 0.55));
  }
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.1); }
  100% { opacity: 1; transform: scale(1); }
}

/* CATEGORY 4: Large Screens (min-width: 1025px) */

@media (min-width: 1025px) {
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1.1rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 44px !important;
    min-height: 44px !important;
  }
  .title-section .byline,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .login-box button,
  .hh-btn,
  .main-image img,
  .login-section {
    animation: none !important;
  }
  #loginBtn, #loginOpenBtn, #modalLoginBtn, .login-open-btn, .mobile-action-bar .login-open-btn {
    color: hsl(195,76%,30%) !important;
  }
  .login-section {
    opacity: 1 !important;
    transform: none !important;
  }
  .left-group {
    align-self: flex-start;
    margin-top: -3.5rem !important;
    order: 2;
  }
  .register-page .left-group {
    width: 100%;
    max-width: 650px;
  }
  .login-box .register-area--inside {
    display: none !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .login-box .register-btn--inside {
    margin: 1.8rem auto 1rem auto !important;
  }
  .login-box button, .hh-btn {
    width: 100%;
  }
  .login-box, .register-box {
    max-width: 360px;
    width: 100%;
  }
  .login-open-wrapper {
    display: none !important;
  }
  .main-image {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    margin-top: 1rem !important;
    background: transparent !important;
  }
  .main-image img {
    box-shadow: none !important;
    opacity: 1;
    animation: none !important;
  }
  .mobile-action-bar {
    display: none !important;
  }
  .page-wrapper {
    padding-top: 2rem !important;
    align-items: center !important;
  }
  .register-page .register-box {
    max-width: 650px !important;
    width: 100% !important;
  }
  .register-area {
    margin-top: -2rem !important;
    opacity: 1;
    display: flex !important;
    justify-content: center !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }
  .register-area .register-btn {
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-box button,
  .login-box .register-btn--inside,
  .register-area .register-btn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .mobile-action-bar .register-btn {
    height: 44px !important;
    min-height: 44px !important;
    width: 160px !important;
    min-width: 160px !important;
    padding: 0 1rem !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  .right-group {
    margin-top: -3.5rem !important;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    order: 1;
  }
  body.index-page .right-group {
    margin-top: -6rem !important;
  }
  body.index-page .main-image {
    margin-top: -5rem !important;
  }
  body.index-page .right-group .slogan-top {
    margin-top: -0.8rem !important;
  }
  .slogan-bottom {
    order: 3;
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    padding-top: 0 !important;
    opacity: 0;
    animation: slideFromRightCat4 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top {
    order: 2;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 0 !important;
    opacity: 0;
    animation: slideFromLeftCat4 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1.2rem !important;
    width: 100% !important;
  }
  .slogan-top, .slogan-bottom {
    padding: 0.05rem 0 !important;
  }
  .title-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .title-section .byline {
    order: 1 !important;
    color: var(--hh-accent-strong) !important;
    -webkit-text-fill-color: var(--hh-accent-strong) !important;
    opacity: 1;
  }
  .title-section h1 {
    order: 2 !important;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards !important;
  }
  .register-page .title-section h1 {
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  .title-section .app-version {
    order: 3 !important;
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 0.2rem !important;
    font-size: 0.78rem !important;
  }
  .top-section {
    row-gap: 1.2rem;
    column-gap: 5rem;
    align-items: flex-start !important;
    margin-top: 0 !important;
  }
  .login-section {
    order: 4;
    width: 100%;
    display: none !important;
    margin-top: 2.4rem;
    margin-bottom: 1rem;
  }
  body.member-page .login-section,
  body.member-area .login-section,
  body.member .login-section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.member-page .member-box,
  body.member-area .member-box,
  body.member .member-box {
    width: 100% !important;
    max-width: 820px !important;
    animation: none !important;
    transform: none !important;
  }
  body.index-page #loginForm {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
  body.index-page .login-box {
    overflow: hidden !important;
  }
  body.index-page .login-box .register-area--inside {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    position: static !important;
    clear: both !important;
  }
  body.index-page .login-box .register-btn--inside {
    width: 100% !important;
    max-width: 160px !important;
    margin: 1.8rem auto 1rem auto !important;
  }
  body.index-page .login-box button, body.index-page .login-box .register-btn--inside {
    width: 100% !important;
    max-width: 160px !important;
    height: 44px !important;
    line-height: 1 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body.index-page .login-box button {
    margin: 0.7rem auto 0 auto !important;
    align-self: center !important;
  }
  body.index-page .login-section {
    display: flex !important;
    margin-top: 1rem !important;
  }
  body.index-page .mobile-action-bar {
    display: none !important;
  }
  body.index-page .mobile-action-bar, body.index-page .mobile-action-bar * {
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeftCat4 {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(46px) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRightCat4 {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(-46px) translateY(-0.6rem);
    }
  }
  body.index-page .register-area {
    display: none !important;
  }
  /* Reset pw-toggle inside login-box — overrides all .login-box button rules above */
  body .login-box .pw-wrap .pw-toggle,
  body.index-page .login-box .pw-wrap .pw-toggle {
    position: absolute !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.25rem !important;
    margin: 0 !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    align-self: auto !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: inherit !important;
    font-weight: normal !important;
    line-height: 0 !important;
    animation: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 220, 100, 0.55) !important;
    box-sizing: content-box !important;
  }
}

/* CATEGORY 3: Medium Screens (min-width: 768px and max-width: 1024px) */

@media (min-width: 768px) and (max-width: 1024px) {
  body.member-page .page-wrapper {
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
  }
  body.member-page .top-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.member-page .member-welcome {
    margin-top: 1.5rem !important;
    margin-bottom: 0.1rem !important;
  }
  .welcome.html .title-section,
  .member-page .title-section,
  body.member-page .title-section,
  body.member-area .title-section,
  body.member .title-section {
    margin-top: 0.5rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1.15rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 44px !important;
    min-height: 44px !important;
  }
  .title-section .byline,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .login-box button,
  .hh-btn,
  .main-image img,
  .login-section {
    animation: none !important;
  }
  .login-section {
    opacity: 1 !important;
    transform: none !important;
  }
  #loginBtn, #modalLoginBtn, .login-open-btn, .mobile-action-bar .login-open-btn {
    color: hsl(195,76%,30%) !important;
  }
  #loginOpenBtn {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 1.2rem !important;
    line-height: 44px !important;
  }
  .left-group, .right-group {
    padding: 0 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc(50% - 1.5rem);
    margin-top: 1.2rem !important;
  }
  .left-group {
    order: 2;
  }
  .right-group {
    order: 1;
  }
  .login-box .register-area--inside {
    display: none !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .login-box .register-btn--inside {
    margin: 1.8rem auto 1rem auto !important;
  }
  .login-box button, .hh-btn {
    width: 100%;
  }
  .login-box, .register-box {
    max-width: 360px;
    width: 100%;
  }
  .register-box label {
    margin-bottom: 0.45rem !important;
    padding-bottom: 0.2rem !important;
    gap: 0.28rem !important;
  }
  .register-box label span {
    margin-bottom: 0 !important;
  }
  .register-page .register-box label {
    margin-bottom: 0.4rem !important;
    padding-bottom: 0.15rem !important;
    gap: 0.2rem !important;
  }
  .register-page .register-box label span {
    margin-bottom: 0 !important;
  }
  .login-open-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn, .title-section .login-open-btn, .mobile-action-bar .login-open-btn,
  .register-area .register-btn, .mobile-action-bar .register-btn {
    height: 44px !important;
    min-height: 44px !important;
    min-width: 160px !important;
    width: 160px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }
  .login-open-wrapper {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 3;
    width: 100%;
    margin-top: 0.6rem;
    margin-bottom: 1.4rem;
  }
  .login-section {
    order: 4;
    width: 100%;
    display: none !important;
    margin-top: 2.4rem;
    margin-bottom: 1rem;
  }
  body.member-page .login-section,
  body.member-area .login-section,
  body.member .login-section {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  body.member-page .member-box,
  body.member-area .member-box,
  body.member .member-box {
    animation: none !important;
    transform: none !important;
  }
  .main-image {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    margin-top: 0.8rem !important;
    background: transparent !important;
  }
  .main-image img {
    width: 320px;
    box-shadow: none !important;
    animation: none !important;
  }
  .main-item .main-image, .main-item .twitch-frame {
    max-width: 260px;
    height: 150px;
  }
  .main-item:nth-of-type(1) {
    transform: scale(1.05);
  }
  .main-item:nth-of-type(1) .main-image, .main-item:nth-of-type(1) .twitch-frame {
    max-width: 280px;
    height: 160px;
  }
  .mobile-action-bar {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem !important;
    padding: 0 0.5rem;
    order: 99 !important;
    width: 100% !important;
    margin-top: 2.4rem !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .mobile-action-bar .login-open-btn {
    height: 44px !important;
  }
  .mobile-action-bar .login-open-btn, .mobile-action-bar .register-btn {
    height: 44px !important;
    min-width: 160px !important;
    width: 160px !important;
    padding: 0 1rem !important;
    font-size: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25) !important;
  }
  .mobile-action-bar .login-open-wrapper {
    order: 1 !important;
    margin: 0.8rem 0 0.6rem 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .mobile-action-bar .register-area {
    order: 2 !important;
    margin: 0.8rem 0 0.8rem 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .mobile-action-bar .forgot-password-link {
    order: 3 !important;
  }
  .mobile-action-bar .register-btn {
    margin-top: 0 !important;
  }
  .mobile-action-bar > * {
    width: auto !important;
    max-width: none !important;
    min-width: 110px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex: 0 0 auto !important;
  }
  .page-wrapper {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
  .register-area {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    order: 4;
    margin: 2.8rem 0 1rem 0;
  }
  .right-group {
    margin-top: 1.2rem !important;
    --hh-image-width: 320px;
  }
  .slogan-area {
    order: 4;
    width: 100%;
    padding: 2px 0;
    margin: 0;
    margin-bottom: 0;
    text-align: center;
  }
  .slogan-area h2 {
    font-size: 1.1rem;
  }
  .slogan-bottom {
    margin-top: 0 !important;
    margin-bottom: 1.5rem !important;
    order: 3;
    width: 100%;
    padding-top: 0 !important;
    opacity: 0;
    animation: slideFromRightCat3 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top {
    margin-top: 0;
    margin-bottom: 0.5rem !important;
    order: 2;
    width: 100%;
    padding-bottom: 0 !important;
    opacity: 0;
    animation: slideFromLeftCat3 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1.2rem;
    width: 100% !important;
  }
  .slogan-top, .slogan-bottom {
    padding: 0.05rem 0 !important;
  }
  .title-section {
    margin-top: 0 !important;
    padding-top: 0.2rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    order: 0;
    margin-bottom: 0 !important;
  }
  .title-section .byline {
    order: 1 !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.1rem !important;
    color: #1e6ef1 !important;
    -webkit-text-fill-color: #1e6ef1 !important;
    opacity: 1;
  }
  .title-section .login-open-wrapper {
    order: 3 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 1.6rem !important;
    margin-bottom: 1.8rem !important;
    position: static !important;
  }
  .title-section .login-open-wrapper .login-open-btn {
    margin: 0 !important;
  }
  .left-group .title-section .login-open-wrapper {
    margin-left: calc(-48% - 0.5rem) !important;
    width: calc(100vw - 1rem) !important;
    padding: 0 0.5rem !important;
  }
  .title-section h1 {
    font-size: 2.5rem;
    order: 2 !important;
    white-space: nowrap !important;
    font-style: italic;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards !important;
  }
  .register-page .title-section h1 {
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  .title-section .app-version {
    order: 3 !important;
    position: static !important;
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
    font-size: 0.78rem !important;
  }
  .top-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin: 0 auto;
  }
  body.member-page .top-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: 0 auto !important;
  }
  body.member-page .member-welcome {
    text-align: center !important;
    width: 100% !important;
  }
  body.member-page .member-box {
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1.6rem !important;
  }
  :root {
    font-size: 16px;
  }
  body.index-page #loginForm {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
  body.index-page .login-box .register-area--inside {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    position: static !important;
    clear: both !important;
  }
  body.index-page .login-box .register-btn--inside {
    width: 100% !important;
    max-width: 160px !important;
    margin: 1.8rem auto 1rem auto !important;
  }
  body.index-page .login-box button {
    width: 100% !important;
    max-width: 160px !important;
    margin: 0.7rem auto 0 auto !important;
    align-self: center !important;
  }
  body.index-page .login-section {
    display: flex !important;
    margin-top: 1rem !important;
  }
  body.index-page .mobile-action-bar {
    display: none !important;
  }
  body.index-page .mobile-action-bar, body.index-page .mobile-action-bar * {
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeftCat3 {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(12px) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRightCat3 {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(-12px) translateY(-0.6rem);
    }
  }
  body.member-page .member-box p:has(a[href^="mailto:"]) a {
    font-size: 1rem !important;
  }
  /* Reset pw-toggle inside login-box — overrides all .login-box button rules above */
  body .login-box .pw-wrap .pw-toggle {
    position: absolute !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0.25rem !important;
    margin: 0 !important;
    right: 0.5rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    align-self: auto !important;
    background: none !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: inherit !important;
    font-weight: normal !important;
    line-height: 0 !important;
    animation: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: rgba(255, 220, 100, 0.55) !important;
    box-sizing: content-box !important;
  }
}

/* CATEGORY 2: Small Screens (min-width: 431px and max-width: 767px) */

@media (min-width: 431px) and (max-width: 767px) {
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .login-open-wrapper .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .login-box .register-btn--inside,
  .register-area .register-btn,
  .login-box .register-area--inside .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  body.index-page .login-box button,
  body.index-page .login-box .register-btn--inside,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1.05rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 44px !important;
    min-height: 44px !important;
  }
  body.member-page .member-box {
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .title-section .byline,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .login-box button,
  .hh-btn,
  .main-image img,
  .login-section {
    animation: none !important;
  }
  .login-section {
    opacity: 1 !important;
    transform: none !important;
  }
  #loginModal.body-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 0.35rem !important;
  }
  #loginModal.body-modal .body-modal-content {
    margin-top: 0 !important;
  }
  #modalLoginBtn, .login-open-btn, #loginBtn, #loginOpenBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(90deg, var(--hh-accent), var(--hh-accent-2)) !important;
    color: hsl(195,76%,30%) !important;
    border: none !important;
    padding: 0.6rem 1rem !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
    font-weight: 700 !important;
    text-align: center !important;
  }
  .hh-btn {
    height: 3rem;
    font-size: 1.02rem;
  }
  .left-group, .right-group {
    display: contents;
  }
  .login-box {
    max-width: 260px;
    padding: 0.6rem;
  }
  .login-box button {
    width: 56%;
    height: 3rem;
    font-size: 1.02rem;
    border-radius: 8px;
    margin: 0.8rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .login-box h2 {
    margin-bottom: 1rem;
    font-size: 1.05rem;
  }
  .login-box input {
    font-size: 0.95rem;
    padding: 0.45rem 0.6rem;
  }
  .login-box input, .register-box input {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  .login-box, .register-box {
    padding: 0.7rem;
    border-radius: 10px;
  }
  .login-open-wrapper {
    order: 2;
    width: 100%;
    display: block;
    justify-content: center !important;
    margin-top: 0.6rem;
    margin-bottom: 1.4rem;
    text-align: center;
  }
  .login-open-wrapper .login-open-btn {
    width: 130px !important;
    min-width: 130px !important;
    height: 44px !important;
  }
  .login-section {
    margin-top: 2rem;
    margin-bottom: 1rem;
    order: 5;
    width: 100%;
    display: none !important;
  }
  .main-image {
    margin-top: 0 !important;
    margin-bottom: -3.5rem !important;
    padding-top: 0.2rem !important;
    order: 1 !important;
    padding: 0 !important;
    width: 100%;
    margin: 0 0 -4.5rem 0 !important;
  }
  .main-image img {
    box-shadow: none !important;
    animation: none !important;
    width: 260px;
    transform: none !important;
    transition: none !important;
  }
  .main-item .main-image, .main-item .twitch-frame {
    max-width: 200px;
    height: 120px;
  }
  .main-item:nth-of-type(1) .main-image, .main-item:nth-of-type(1) .twitch-frame {
    max-width: 220px;
    height: 130px;
  }
  .member-box {
    font-size: 1rem;
  }
  .mobile-action-bar {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0 0.6rem;
    margin-top: -0.5rem !important;
    margin-bottom: 1.2rem !important;
    pointer-events: auto;
    flex-wrap: nowrap !important;
    width: 100% !important;
    order: 5 !important;
  }
  .mobile-action-bar .login-open-btn, .mobile-action-bar .register-btn {
    width: 145px !important;
    min-width: 145px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0.45rem 0.5rem !important;
    font-size: 1rem !important;
    line-height: 1 !important;
    margin: 0.25rem 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28) !important;
    text-align: center !important;
    vertical-align: middle !important;
  }
  .mobile-action-bar .login-open-wrapper, .mobile-action-bar .register-area {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  .mobile-action-bar .login-open-wrapper {
    order: 1 !important;
  }
  .mobile-action-bar .register-area {
    order: 3 !important;
  }
  .mobile-action-bar .register-btn {
    text-decoration: none !important;
  }
  .mobile-action-bar .forgot-password-link {
    order: 2 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: auto !important;
  }
  .mobile-action-bar .forgot-password-link a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
  }
  .mobile-action-bar > * {
    width: 100% !important;
    max-width: none !important;
    display: flex !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .page-wrapper {
    padding: 0.8rem;
    align-items: flex-start;
    padding-top: 0.75rem;
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }
  .register-page .page-wrapper {
    padding: 1rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 1.5rem !important;
  }
  .register-page .register-area {
    margin-top: 0 !important;
    order: 2 !important;
  }
  .register-area {
    order: 6;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-top: 3.2rem;
  }
  .register-box {
    margin-top: 3.5rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .register-box label {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding-bottom: 0.35rem;
  }
  .register-box label span {
    margin-bottom: 0.35rem;
  }
  .register-page #regBtn, .register-page .register-box .hh-btn {
    min-width: 180px !important;
    font-size: 1rem !important;
    padding: 0.82rem 2rem !important;
    margin: 1rem auto 0.6rem !important;
  }
  .register-page .register-box {
    max-width: 360px !important;
    padding: 1rem !important;
  }
  .register-page .title-section h1 {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }
  .right-group {
    --hh-image-width: 260px;
    gap: 0.25rem !important;
  }
  .slogan-area {
    padding: 2px 0;
    margin: 0;
    order: 3;
    width: 100%;
  }
  .slogan-area h2 {
    font-size: 0.95rem;
  }
  .slogan-bottom {
    display: flex !important;
    justify-content: center !important;
    margin-top: 0.2rem !important;
    padding-top: 0 !important;
    order: 4 !important;
    margin-bottom: 2rem !important;
    padding: 0 !important;
    width: 100%;
    opacity: 0;
    animation: slideFromRightCat1 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-bottom h2 {
    text-align: left !important;
    font-size: 0.95rem !important;
  }
  .slogan-top {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    order: 3 !important;
    margin-top: 0.2rem !important;
    padding: 0 !important;
    width: 100%;
    opacity: 0;
    animation: slideFromLeftCat1 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2 {
    text-align: left !important;
    font-size: 1.05rem !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1.05rem !important;
    width: 234px !important;
  }
  .title-section {
    margin-bottom: 6rem !important;
    margin-top: 0 !important;
    order: 2 !important;
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding-top: 0 !important;
    gap: 0.35rem;
  }
  .title-section .byline {
    margin-bottom: 0.05rem !important;
    white-space: normal;
    margin-top: 0.1rem !important;
    text-align: center;
    width: 100%;
    order: 1 !important;
    color: var(--hh-accent-strong) !important;
    -webkit-text-fill-color: var(--hh-accent-strong) !important;
  }
  .title-section .login-open-wrapper {
    order: 3 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 2.2rem !important;
    margin-bottom: 1rem !important;
  }
  .title-section h1 {
    white-space: nowrap;
    overflow: visible;
    font-size: 2.2rem !important;
    line-height: 1 !important;
    font-style: italic;
    order: 2 !important;
    opacity: 0;
    animation: fadeIn 1s ease-in forwards !important;
  }
  .register-page .title-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    order: 1 !important;
  }
  .register-page .register-box {
    order: 2 !important;
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }
  .register-page .title-section h1 {
    margin-bottom: 0 !important;
  }
  .title-section .app-version {
    order: 3 !important;
    position: absolute !important;
    left: 50%;
    top: calc(100% + 0.9rem);
    transform: translateX(-50%);
    margin: 0 !important;
    font-size: 0.78rem !important;
    z-index: 2;
    pointer-events: none;
  }
  .top-section {
    gap: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 5.5rem !important;
  }
  .register-page .top-section {
    padding-top: 0 !important;
  }
  body.member-page .top-section {
    padding-top: 2rem !important;
  }
  :root {
    font-size: 15px;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeftCat1 {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(-10px) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRightCat1 {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(10px) translateY(-0.6rem);
    }
  }
  body.index-page .mobile-action-bar {
    margin-top: -0.4rem !important;
  }
}

/* CATEGORY 1: Very Small Screens (max-width: 430px) */

@media (max-width: 430px) {
  body.member-page .page-wrapper {
    padding-top: 0.3rem !important;
    padding-bottom: 0.75rem !important;
  }
  body.member-page .top-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.member-page .member-welcome {
    margin-top: 1.8rem !important;
    margin-bottom: 0.1rem !important;
  }
  body.member-page .member-box {
    margin-top: 1.5rem !important;
  }
  body.member-page .member-box p:has(#memberLogout) {
    margin-top: 2.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-top: 1rem !important;
  }
  body.index-page > .lang-select {
    left: 0.2rem !important;
  }

  body.index-page > .lang-select .lang-flag {
    width: 22px !important;
    height: 16px !important;
  }

  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-btn--inside,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn {
    font-size: 1rem !important;
  }
  #loginBtn,
  #loginOpenBtn,
  #modalLoginBtn,
  .login-open-btn,
  .mobile-action-bar .login-open-btn,
  .register-btn,
  .register-area .register-btn,
  .mobile-action-bar .register-btn,
  .login-box button,
  .register-box .hh-btn,
  .hh-btn,
  #regBtn,
  .member-box .member-home-btn {
    height: 40px !important;
    min-height: 40px !important;
  }
  #loginBtn, #loginOpenBtn, #modalLoginBtn, .login-open-btn, .mobile-action-bar .login-open-btn {
    color: hsl(195,76%,30%) !important;
  }
  #loginModal .modal-button-group {
    gap: 0.45rem !important;
  }
  #loginModal .hh-btn {
    height: 34px !important;
    min-height: 34px !important;
    width: 108px !important;
    min-width: 108px !important;
    max-width: 108px !important;
    font-size: 0.9rem !important;
    padding: 0 0.7rem !important;
  }
  body.member-page .member-box {
    max-width: 280px !important;
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
  }
  #loginModal.body-modal {
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 0.25rem !important;
  }
  #loginModal.body-modal .body-modal-content {
    margin-top: 0 !important;
  }
  .left-group {
    display: contents !important;
  }
  .page-wrapper {
    padding: 0 !important;
    padding-top: 0 !important;
    gap: 0 !important;
    margin-top: 0 !important;
  }
  .register-page .page-wrapper {
    padding: 0.75rem !important;
    padding-top: 0.5rem !important;
    padding-bottom: 1rem !important;
  }
  .login-open-wrapper {
    order: 5 !important;
    display: flex !important;
    justify-content: center !important;
  }
  .login-open-wrapper .login-open-btn {
    width: 145px !important;
    min-width: 145px !important;
    height: 40px !important;
    font-size: 1.05rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .main-image {
    order: 1 !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: none !important;
    transform: translateY(-3.5rem) !important;
  }
  .main-image img {
    width: 220px;
    height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow: none !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .mobile-action-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    order: 5 !important;
    margin-top: 2.3rem !important;
    margin-bottom: 1rem !important;
    padding: 0 0.5rem !important;
    transform: translateY(0.8rem) !important;
  }
  .mobile-action-bar .login-open-btn, .mobile-action-bar .register-btn {
    width: 120px !important;
    min-width: 120px !important;
    margin: 0.5rem auto !important;
    font-size: 1.05rem !important;
  }
  .register-area {
    order: 7 !important;
    margin-top: 0.5rem;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }
  .mobile-action-bar .forgot-password-link {
    order: 6 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 0.8rem !important;
    pointer-events: auto !important;
  }
  .mobile-action-bar .forgot-password-link a {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
  }
  .register-page .register-area {
    margin-top: 0 !important;
    order: 2 !important;
  }
  .register-box {
    margin-top: 0rem !important;
  }
  .register-page .register-box {
    padding-bottom: 0.5rem !important;
  }
  .slogan-area {
    order: 5 !important;
    width: 100%;
  }
  .slogan-area h2 {
    font-size: 0.95rem;
  }
  .slogan-top, .slogan-bottom {
    padding: 0 !important;
    overflow: hidden !important;
  }
  .slogan-top h2, .slogan-bottom h2 {
    font-size: 1rem !important;
    width: 210px !important;
    word-wrap: break-word !important;
  }
  .slogan-bottom {
    display: flex !important;
    justify-content: center !important;
    order: 4 !important;
    width: 100% !important;
    margin-top: 0.15rem !important;
    margin-bottom: 0.25rem !important;
    padding: 0 !important;
    opacity: 0;
    animation: slideFromRight 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-bottom h2 {
    text-align: left !important;
    width: 210px !important;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
  }
  .slogan-top {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    order: 3 !important;
    width: 100% !important;
    margin-top: 0.3rem !important;
    margin-bottom: 0.15rem !important;
    padding: 0 !important;
    opacity: 0;
    animation: slideFromLeft 1.2s ease-out 0.5s forwards !important;
  }
  .slogan-top h2 {
    text-align: left !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 210px !important;
    flex-shrink: 0 !important;
  }
  .title-section {
    margin-bottom: 0 !important;
    margin-top: -3.5rem !important;
    order: 2 !important;
    width: 100%;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    transform: translateY(-3.5rem) !important;
  }
  .title-section h1 {
    font-size: 1.95rem !important;
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }
  @keyframes slideFromLeft {
    from {
      opacity: 0;
      transform: translateX(-100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(0) translateY(-0.6rem);
    }
  }
  @keyframes slideFromRight {
    from {
      opacity: 0;
      transform: translateX(100px) translateY(-0.6rem);
    }
    to {
      opacity: 1;
      transform: translateX(0) translateY(-0.6rem);
    }
  }
  .title-section .byline {
    order: 1 !important;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    color: var(--hh-accent-strong) !important;
    -webkit-text-fill-color: var(--hh-accent-strong) !important;
  }
  .title-section .login-open-wrapper {
    order: 3 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 1.2rem !important;
    margin-bottom: 0.9rem !important;
  }
  .title-section h1 {
    font-size: 2rem !important;
    font-style: italic;
    order: 2 !important;
    margin: 0 !important;
    margin-top: -3.8rem !important;
    padding: 0 !important;
    line-height: 1 !important;
  }
  .register-page .title-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    transform: none !important;
    order: 1 !important;
  }
  .register-page .register-box {
    order: 2 !important;
    margin-top: 0 !important;
    padding-top: 1rem !important;
  }
  .register-page .title-section h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    transform: none !important;
    animation: fadeIn 1s ease-in forwards !important;
    opacity: 0;
  }
  .title-section .app-version {
    order: 3 !important;
    position: absolute !important;
    left: 50%;
    top: calc(100% - 0.65rem);
    transform: translateX(-50%);
    margin: 0 !important;
    font-size: 0.78rem !important;
    z-index: 2;
    pointer-events: none;
  }
  body {
    overflow-x: hidden !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  #loginModal {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0.5rem !important;
  }
  .login-box {
    max-width: calc(100% - 1rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .login-section {
    display: none !important;
  }
  .right-group {
    display: contents !important;
  }
  .top-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    align-items: center !important;
    margin-top: 0 !important;
    padding-top: 2rem !important;
  }
  .register-page .top-section {
    padding-top: 0 !important;
  }
  :root {
    font-size: 14px;
  }
}


  body.member-page .member-box > p.member-user {
    width: 100% !important;
    display: block !important;
  }

  body.member-page .member-box > p.member-user:first-of-type {
    margin-right: 0 !important;
  }

  body.member-page .member-box > p.member-user:nth-of-type(2) {
    margin-top: 0.15rem !important;
  }

  body.member-page .member-box > p.member-user:nth-of-type(2) + p.verification-status {
    margin-top: 2rem !important;
  }

  body.member-page .member-box p.subscription-request {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.member-page .member-box p.subscription-request + p.subscription-request {
    margin-top: 1.5rem !important;
  }

  body.member-page .member-box p.subscription-request + p[data-i18n="about_site_paragraph_2"] {
    margin-top: 2.3rem !important;
  }

  body.member-page .member-box p.subscription-request + p.admin-contact-text {
    margin-top: 2.8rem !important;
  }

  body.member-page .member-box p:has(#memberLogout) {
    margin-bottom: 1.45rem !important;
  }

  body.member-page .member-box p:has(a[href^="mailto:"]) {
    margin-bottom: 0.8rem !important;
  }

  body.member-page .member-box p.member-home-link {
    margin-top: 0.3rem !important;
    margin-bottom: 0.4rem !important;
  }

  body.member-page .member-box p.subscription-request + div#contactFormSection {
    margin-top: 1.2rem !important;
  }



/* ── Accessibility: screen-reader only utility ─────────────────────────── */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Accessibility: respect user motion preferences ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 430px) {
  body.index-page .title-section {
    margin-bottom: 1.05rem !important;
  }

  body.index-page .right-group .slogan-top {
    margin-top: 0.95rem !important;
  }
}

/* Final override: very small spacing between title and slogans */
@media (max-width: 430px) {
  body.index-page .title-section {
    margin-bottom: 0.95rem !important;
  }

  body.index-page .right-group .slogan-top {
    margin-top: 0.85rem !important;
  }
}

/* ── Install Dialog ────────────────────────────────────────────── */
.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  animation: installFadeIn 0.25s ease-out;
}
.install-overlay--hidden { display: none; }
.install-dialog {
  position: relative;
  max-width: 340px;
  width: calc(100vw - 2.5rem);
  padding: 1.6rem 1.4rem 1.2rem;
  border-radius: 14px;
  background: rgba(20, 20, 30, 0.97);
  border: 1px solid var(--hh-accent-2);
  box-shadow: 0 4px 32px rgba(255, 215, 100, 0.18);
  font-family: var(--hh-font-body);
  text-align: center;
  animation: installScaleIn 0.3s ease-out;
}
.install-msg {
  color: var(--hh-accent-strong);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1.2rem;
}
.install-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}
.install-actions .hh-btn.small { margin-top: 0; min-width: 90px; }
.install-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--hh-accent-strong);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.3rem;
  line-height: 1;
  opacity: 0.7;
}
.install-close:hover { opacity: 1; }
.install-share-icon { font-size: 1.1em; vertical-align: middle; }
@keyframes installFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes installScaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Login trial promo placement ─────────────────────────────── */
@media (min-width: 1025px) {
  body.index-page .login-trial-promo--inside,
  body.index-page .login-trial-promo--mobile {
    display: none !important;
  }

  body.index-page .login-trial-promo--desktop {
    display: block !important;
    position: static !important;
    order: 4 !important;
    width: min(90%, 560px);
    max-width: 560px;
    margin: clamp(1rem, 4vh, 2.8rem) auto 0 !important;
    text-align: center;
  }

  body.index-page .login-social-links--desktop {
    display: inline-flex !important;
  }

  body.index-page .login-social-links--inside {
    display: none !important;
  }

  body.index-page .login-box .register-area--inside .trial-register-cta {
    margin-bottom: 0.35rem !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.index-page .login-trial-promo--inside,
  body.index-page .login-trial-promo--mobile {
    display: none !important;
  }

  body.index-page .login-trial-promo--desktop {
    display: block !important;
    position: static !important;
    order: 4 !important;
    width: min(90%, 420px);
    max-width: 420px;
    margin: clamp(0.8rem, 3vh, 2rem) auto 0 !important;
    text-align: center;
  }

  body.index-page .login-social-links--desktop {
    display: inline-flex !important;
  }

  body.index-page .login-social-links--inside {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.index-page .login-trial-promo--desktop,
  body.index-page .login-trial-promo--inside {
    display: none !important;
  }

  #loginModal .modal-forgot-password-link {
    display: block;
    margin-top: 0.1rem;
    margin-bottom: 0.4rem;
  }

  body.index-page .mobile-action-bar .forgot-password-link {
    display: none !important;
  }

  body.index-page .login-social-links--desktop,
  body.index-page .login-social-links--inside {
    display: none !important;
  }

  body.index-page .mobile-action-bar .login-trial-promo--mobile {
    display: block !important;
    order: 1 !important;
    width: min(86vw, 320px) !important;
    min-width: 0 !important;
    max-width: 320px !important;
    margin: 0 auto 0.35rem !important;
    padding: 0 !important;
    font-size: 0.98rem !important;
  }

  body.index-page .mobile-action-bar .login-open-wrapper {
    order: 2 !important;
    margin-top: 0.35rem !important;
  }

  body.index-page .mobile-action-bar .forgot-password-link {
    order: 3 !important;
  }

  body.index-page .mobile-action-bar .register-area {
    order: 4 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.22rem !important;
  }

  body.index-page .title-section {
    margin-bottom: 0.95rem !important;
  }

  body.index-page .slogan-top {
    margin-top: 0.2rem !important;
  }

  body.index-page .slogan-top,
  body.index-page .slogan-bottom {
    animation: fadeInOnly 0.9s ease-out 0.2s forwards !important;
  }

  body.index-page .mobile-status-link {
    display: block !important;
    order: 6 !important;
    width: min(88vw, 320px) !important;
    margin: 0.65rem auto 0.25rem !important;
    font-size: 0.98rem !important;
  }

  body.index-page .login-social-links--mobile {
    display: inline-flex !important;
  }
}

@media (max-width: 430px) {
  body.index-page .top-section {
    padding-top: 0.6rem !important;
    justify-content: flex-start !important;
  }

  body.index-page .mobile-action-bar .login-trial-promo--mobile {
    order: 1 !important;
    width: min(88vw, 280px) !important;
    font-size: 0.9rem !important;
  }

  body.index-page .mobile-action-bar .login-open-wrapper {
    order: 2 !important;
    margin-top: 0.45rem !important;
  }

  body.index-page .mobile-action-bar .forgot-password-link {
    display: none !important;
  }

  body.index-page .mobile-action-bar .register-area {
    order: 4 !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.18rem !important;
  }

  body.index-page .title-section {
    order: 2 !important;
    margin-top: -0.15rem !important;
    margin-bottom: 0.55rem !important;
    transform: none !important;
  }

  body.index-page .title-section h1 {
    margin: 0 !important;
    max-width: 94vw !important;
    font-size: clamp(1.65rem, 8vw, 1.95rem) !important;
    line-height: 1.08 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.index-page .main-image {
    order: 1 !important;
    transform: none !important;
    margin-top: -6.7rem !important;
    margin-bottom: -3rem !important;
  }

  body.index-page .main-image img {
    transform: none !important;
  }

  body.index-page .right-group .slogan-top,
  body.index-page .right-group .slogan-bottom {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
  }

  body.index-page .right-group .slogan-top h2,
  body.index-page .right-group .slogan-bottom h2 {
    line-height: 1.05 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  body.index-page .slogan-top {
    margin-top: 0.45rem !important;
  }

  body.index-page .slogan-bottom {
    margin-top: 0.1rem !important;
  }

  body.index-page .mobile-action-bar {
    margin-top: 1.2rem !important;
  }

  body.index-page .mobile-status-link {
    display: block !important;
    order: 6 !important;
    width: auto !important;
    margin: 0 !important;
    font-size: 0.9rem !important;
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 2.25rem !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 8 !important;
    line-height: 1 !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.2rem !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile a,
  body.index-page .mobile-status-link .login-social-links--mobile img,
  body.index-page .mobile-status-link .login-social-label {
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.index-page .login-social-links a,
  body.index-page .login-social-links img {
    width: 15px;
    height: 15px;
  }
}

@media (min-width: 768px) {
  body.index-page .login-social-links--inside {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  body.index-page .login-box .register-area--inside .trial-register-cta {
    margin-bottom: 0.24rem !important;
    transform: translateY(1rem);
  }
}

@media (max-width: 767px) {
  body.index-page .mobile-action-bar .forgot-password-link {
    margin-bottom: 0.05rem !important;
  }

  body.index-page .mobile-action-bar .register-area {
    margin-top: 0.05rem !important;
  }

  body.index-page .mobile-action-bar .register-area .trial-register-cta {
    margin-bottom: 0.18rem !important;
  }
}

body.index-page #loginBtn,
body.index-page #loginOpenBtn,
body.index-page #modalLoginBtn,
body.index-page #modalCloseBtn,
body.index-page .login-open-btn,
body.index-page .register-btn,
body.index-page .register-btn--inside,
body.index-page .register-area .register-btn,
body.index-page .mobile-action-bar .login-open-btn,
body.index-page .mobile-action-bar .register-btn,
body.index-page .hh-btn {
  width: auto !important;
  min-width: 160px !important;
  max-width: calc(100vw - 2rem) !important;
  padding-left: 1.1rem !important;
  padding-right: 1.1rem !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}

@media (max-width: 767px) {
  body.index-page #loginOpenBtn,
  body.index-page .login-open-btn,
  body.index-page .register-btn,
  body.index-page .mobile-action-bar .login-open-btn,
  body.index-page .mobile-action-bar .register-btn {
    min-width: 145px !important;
  }
}

/* ── Accessibility: respect user motion preferences ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Absolute final override: very small spacing between title and slogans */
@media (max-width: 430px) {
  body.index-page .title-section {
    margin-bottom: 2rem !important;
  }

  body.index-page .right-group .slogan-top {
    margin-top: 1.45rem !important;
  }
}

/* Absolute final override: restore slogan animations on small + very small */
@keyframes hhSloganSlideLeft {
  from { transform: translateX(-96px); }
  to { transform: translateX(0); }
}

@keyframes hhSloganSlideRight {
  from { transform: translateX(96px); }
  to { transform: translateX(0); }
}

@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .slogan-top {
    opacity: 1 !important;
    animation: hhSloganSlideLeft 1.2s ease-out 0.2s both !important;
  }

  body.index-page .slogan-bottom {
    opacity: 1 !important;
    margin-bottom: 3rem !important;
    animation: hhSloganSlideRight 1.2s ease-out 0.28s both !important;
  }
}

@media (max-width: 430px) {
  body.index-page .slogan-top {
    opacity: 1 !important;
    animation: hhSloganSlideLeftVS 1.2s ease-out 0.2s both !important;
  }

  body.index-page .slogan-bottom {
    opacity: 1 !important;
    animation: hhSloganSlideRightVS 1.2s ease-out 0.28s both !important;
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .mobile-action-bar .login-open-wrapper {
    margin-bottom: 0.1rem !important;
  }

  body.index-page .mobile-action-bar .register-area {
    margin-top: 0.15rem !important;
  }
}

@media (max-width: 430px) {
  body.index-page .mobile-action-bar .login-open-wrapper {
    margin-bottom: 0.05rem !important;
  }

  body.index-page .mobile-action-bar .register-area {
    margin-top: 0.08rem !important;
  }
}

@keyframes hhSloganSlideLeftVS {
  from { transform: translateX(-96px); }
  to { transform: translateX(0); }
}

@keyframes hhSloganSlideRightVS {
  from { transform: translateX(96px); }
  to { transform: translateX(0); }
}

/* Login-page social links: desktop follows the promo; mobile has its own row. */
body.index-page .login-social-links--inside {
  display: none !important;
}

body.index-page .mobile-status-link {
  display: none !important;
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: calc(100dvh - 2.45rem - env(safe-area-inset-bottom, 0px)) !important;
  bottom: auto !important;
  width: max-content !important;
  height: fit-content !important;
  min-height: 0 !important;
  max-width: calc(100vw - 1.5rem) !important;
  margin: 0 !important;
  transform: translate(-50%, -100%) !important;
  z-index: 8 !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.index-page .mobile-status-link .login-social-links--mobile {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(0.8rem, 3.5vw, 1.6rem) !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body.index-page .mobile-status-link .login-social-label {
  margin-right: 0 !important;
  transform: none !important;
}

@media (max-width: 767px) {
  body.index-page .mobile-status-link .login-social-label {
    margin-left: -0.55rem !important;
  }
}

@media (min-width: 768px) {
  body.index-page .login-social-links--desktop {
    display: inline-flex !important;
    position: static !important;
    order: 5 !important;
    margin: 0.75rem auto 0 !important;
  }

  body.index-page .login-social-links--desktop a,
  body.index-page .login-social-links--desktop img {
    width: 24px !important;
    height: 24px !important;
  }
}

@media (min-width: 1025px) {
  body.index-page .login-social-links--desktop {
    margin-top: clamp(3.5rem, 8vh, 6rem) !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.index-page .login-social-links--desktop {
    margin-top: clamp(3rem, 7vh, 5rem) !important;
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .mobile-status-link {
    display: block !important;
    top: calc(100dvh - 2.45rem - env(safe-area-inset-bottom, 0px)) !important;
    transform: translate(-50%, -100%) !important;
  }
}

@media (max-width: 430px) {
  body.index-page .mobile-status-link {
    display: block !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile {
    gap: clamp(0.7rem, 4vw, 1rem) !important;
  }

  body.index-page .mobile-status-link .login-social-links--mobile a,
  body.index-page .mobile-status-link .login-social-links--mobile img {
    display: inline-flex !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (min-width: 431px) and (max-width: 767px) {
  body.index-page .title-section {
    margin-bottom: 4rem !important;
  }
}
