/* Individual images are cropped with cover, preserving their original aspect ratios. */
.card-art {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.art-story { background-image: linear-gradient(to top, rgba(5, 25, 31, .72), transparent 50%), url("images/feature-story.png"); }
.art-ai { background-image: linear-gradient(to top, rgba(5, 25, 31, .72), transparent 50%), url("images/feature-ai.png"); }
.art-portfolio { background-image: linear-gradient(to top, rgba(5, 25, 31, .72), transparent 50%), url("images/feature-portfolio.png"); }
.art-certificate { background-image: linear-gradient(to top, rgba(5, 25, 31, .72), transparent 50%), url("images/feature-certificate.png"); }
.card-art .scene,
.card-art .orbit,
.card-art .ai-core,
.card-art .paper,
.card-art .certificate { display: none; }

.bottom-nav { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .header-cta { display: none; }
  .lang-select-wrap { display: none !important; }
  .auth-entry-pending { visibility: hidden; }
  .bottom-nav a span[data-en], .bottom-nav button span[data-en] { display: inline; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    position: fixed;
    z-index: 20;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    min-height: 68px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(251, 250, 246, .98);
    border-top: 1px solid #dce3de;
    box-shadow: 0 -4px 22px rgba(11, 32, 51, .08);
  }
  .bottom-nav a, .bottom-nav button {
    min-width: 64px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    color: #274b50;
    font-size: .64rem;
    font-weight: 600;
    text-align: center;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav a span:first-child, .bottom-nav button span:first-child { font-size: 1.35rem; line-height: 1; color: #087e80; }
  .bottom-nav a:focus-visible, .bottom-nav button:focus-visible { outline: 2px solid #087e80; outline-offset: -2px; }
  section[id] { scroll-margin-top: 1rem; }
}
@media (max-width: 1100px) {
  .bottom-nav a span[data-en], .bottom-nav button span[data-en] { display: none; }
}
@media (max-width: 900px) {
  .bottom-nav a span[data-en], .bottom-nav button span[data-en] { display: inline; }
}

/* Mobile Account Submenu Sheet */
.account-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 32, 51, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.account-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.account-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(11, 32, 51, 0.25);
  z-index: 999;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.account-sheet.active {
  transform: translateY(0);
}

.sheet-pill {
  width: 44px;
  height: 5px;
  background: #d4ded8;
  border-radius: 999px;
  margin: 0 auto 12px;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2ee;
}

.sheet-user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0e8a7c, #064e46);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(14, 138, 124, 0.25);
}

.sheet-user-info {
  display: flex;
  flex-direction: column;
}

.sheet-user-info strong {
  font-size: 14px;
  font-weight: 700;
  color: #102c3b;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-user-info span {
  font-size: 11.5px;
  color: #617177;
}

.sheet-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #dce3de;
  background: #f7f9f7;
  color: #4b6360;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.15s ease;
}
.sheet-close-btn:hover {
  background: #e8eee9;
  color: #102c3b;
}

.sheet-section {
  margin-bottom: 16px;
}

.sheet-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #486561;
  margin-bottom: 10px;
}

.sheet-lang-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sheet-lang-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #dce5e0;
  background: #f8faf8;
  color: #1b3834;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  box-sizing: border-box;
}

.sheet-lang-btn .flag {
  font-size: 18px;
  margin-right: 6px;
}

.sheet-lang-btn .label {
  flex: 1;
  text-align: left;
}

.sheet-lang-btn .check {
  font-size: 14px;
  font-weight: 700;
  color: #0d8b7b;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

.sheet-lang-btn.active {
  border-color: #0d8b7b;
  background: #eaf6f3;
  color: #084c44;
  box-shadow: 0 2px 10px rgba(13, 139, 123, 0.12);
}

.sheet-lang-btn.active .check {
  opacity: 1;
  transform: scale(1);
}

.sheet-divider {
  height: 1px;
  background: #eef2ee;
  margin: 16px 0;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-action-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: #102c3b;
  background: #f7f9f7;
  border: 1px solid #e1e9e3;
  min-height: 48px;
  box-sizing: border-box;
  transition: all 0.15s ease;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
}

.sheet-action-link:hover {
  background: #edf3ee;
  border-color: #cedad1;
}

.sheet-action-link.primary {
  background: linear-gradient(135deg, #0e8a7c, #09685e);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(14, 138, 124, 0.25);
}

.sheet-action-link.primary:hover {
  background: linear-gradient(135deg, #09685e, #064e46);
}

.sheet-action-link.danger {
  color: #b71c1c;
  background: #fff5f5;
  border-color: #ffd6d6;
}

.sheet-action-link.danger:hover {
  background: #ffebee;
  border-color: #ffcdd2;
}

.sheet-action-link .icon {
  font-size: 18px;
  line-height: 1;
}
