/* SNES homepage liquid-glass buttons
   Loaded AFTER styles.css so these rules restore the glass design
   without replacing the rest of the homepage styling. */

.header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.header-actions .inventory-button {
  position: relative;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-height: 66px;
  min-width: 220px;
  padding: 0 28px !important;

  border: 1px solid rgba(255, 255, 255, 0.48) !important;
  border-radius: 22px !important;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.20) 48%,
      rgba(255, 255, 255, 0.14) 100%
    ) !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    0 14px 30px rgba(0, 0, 0, 0.28),
    0 3px 8px rgba(0, 0, 0, 0.20) !important;

  -webkit-backdrop-filter: blur(18px) saturate(155%) !important;
  backdrop-filter: blur(18px) saturate(155%) !important;

  color: #ffffff !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  font-size: 0.96rem;
  line-height: 1.2;
  white-space: nowrap;

  overflow: hidden;
  cursor: pointer;
  transform: translateZ(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.header-actions .inventory-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 1px auto 1px;
  height: 48%;
  border-radius: 20px 20px 45% 45%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.48),
    rgba(255, 255, 255, 0.06)
  );
  pointer-events: none;
}

.header-actions .inventory-button::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 190%;
  top: -55%;
  left: -62%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.34),
    transparent
  );
  transition: left 420ms ease;
  pointer-events: none;
}

.header-actions .inventory-button:hover {
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.72) !important;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.24) 52%,
      rgba(255, 255, 255, 0.17) 100%
    ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 18px 34px rgba(0, 0, 0, 0.32),
    0 4px 10px rgba(0, 0, 0, 0.22) !important;
}

.header-actions .inventory-button:hover::after {
  left: 122%;
}

.header-actions .inventory-button:active {
  transform: translateY(0) scale(0.985);
}

.header-actions .inventory-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.header-actions .inventory-button span {
  position: relative;
  z-index: 2;
  color: inherit !important;
  text-decoration: none !important;
}

@media (max-width: 1100px) {
  .header-actions {
    gap: 12px !important;
  }

  .header-actions .inventory-button {
    min-width: 188px;
    min-height: 58px;
    padding: 0 20px !important;
    font-size: 0.83rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start !important;
    gap: 18px;
  }

  .header-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .header-actions .inventory-button {
    flex: 1 1 210px;
  }
}

@media (max-width: 520px) {
  .header-actions {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .header-actions .inventory-button {
    width: 100%;
    min-width: 0;
  }
}


/* School seal refinement — Aug. 15, 2026
   Remove the decorative wrapper border and keep the logo in a true 1:1 box. */
.school-brand .seal-wrap {
  width: 68px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 68px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.school-brand .school-seal {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 820px) {
  .school-brand .seal-wrap {
    width: 60px !important;
    flex-basis: 60px !important;
  }
}

@media (max-width: 520px) {
  .school-brand .seal-wrap {
    width: 54px !important;
    flex-basis: 54px !important;
  }
}
