/*
  Floating Cinematic Header
  Integrates top bar, navigation and hero into one continuous scene.
*/

:root {
  --eira-floating-header-height: clamp(4.6rem, 5.25vw, 5.9rem);
  --eira-floating-topbar-height: 1.05rem;
}

.eira-site-header {
  position: fixed !important;
  inset: 0 0 auto 0;
  z-index: 80;
  color: var(--eira-final-ivory, #f5f1e8);
  border-bottom: 1px solid rgb(199 169 107 / 0.18);
  background:
    radial-gradient(circle at 14% 18%, rgb(183 227 107 / 0.18), transparent 23rem),
    radial-gradient(circle at 82% 12%, rgb(199 169 107 / 0.16), transparent 26rem),
    linear-gradient(180deg, #2e5b4d, #10251f) !important;
  box-shadow: 0 16px 42px rgb(3 5 4 / 0.26);
  backdrop-filter: blur(16px) saturate(1.14);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    backdrop-filter 260ms ease;
}

.eira-site-header.is-scrolled {
  border-bottom-color: rgb(199 169 107 / 0.32);
  background:
    radial-gradient(circle at 14% 18%, rgb(183 227 107 / 0.18), transparent 23rem),
    radial-gradient(circle at 82% 12%, rgb(199 169 107 / 0.16), transparent 26rem),
    linear-gradient(180deg, #2e5b4d, #10251f) !important;
  box-shadow: 0 18px 44px rgb(3 5 4 / 0.34);
  backdrop-filter: blur(18px) saturate(1.16);
}

[data-theme-mode="day"] .eira-site-header {
  background:
    radial-gradient(circle at 14% 18%, rgb(183 227 107 / 0.18), transparent 23rem),
    radial-gradient(circle at 82% 12%, rgb(199 169 107 / 0.16), transparent 26rem),
    linear-gradient(180deg, #2e5b4d, #10251f) !important;
}

[data-theme-mode="day"] .eira-site-header.is-scrolled {
  background:
    radial-gradient(circle at 14% 18%, rgb(183 227 107 / 0.18), transparent 23rem),
    radial-gradient(circle at 82% 12%, rgb(199 169 107 / 0.16), transparent 26rem),
    linear-gradient(180deg, #2e5b4d, #10251f) !important;
}

.eira-site-header__topbar {
  min-height: var(--eira-floating-topbar-height) !important;
  height: var(--eira-floating-topbar-height);
  padding: 0 max(1.25rem, calc((100vw - min(94vw, 1880px)) / 2)) !important;
  border-bottom: 1px solid rgb(199 169 107 / 0.16);
  background: rgb(3 5 4 / 0.12) !important;
  color: rgb(245 241 232 / 0.82);
  font-size: clamp(0.56rem, 0.62vw, 0.68rem);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: none;
}

.eira-site-header__topbar strong {
  position: relative;
  color: var(--eira-final-candle, #e6c26a);
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.16em;
  cursor: help;
}

.eira-site-header__ethics {
  color: rgb(245 241 232 / 0.82);
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}

.eira-site-header__ethics:hover,
.eira-site-header__ethics:focus-visible {
  color: var(--eira-final-candle, #e6c26a);
  text-shadow: 0 0 16px rgb(230 194 106 / 0.28);
}

.eira-site-header__registered-tip {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  z-index: 120;
  width: max-content;
  max-width: min(82vw, 360px);
  padding: 0.58rem 0.78rem;
  border: 1px solid rgb(199 169 107 / 0.5);
  border-radius: 0.88rem;
  background:
    radial-gradient(circle at 15% 10%, rgb(230 194 106 / 0.18), transparent 8rem),
    rgb(7 19 15 / 0.96);
  color: var(--eira-final-ivory, #f5f1e8);
  box-shadow: 0 16px 36px rgb(3 5 4 / 0.42), inset 0 1px 0 rgb(245 241 232 / 0.08);
  font-family: var(--eira-font-body, sans-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -0.35rem) scale(0.98);
  transition: opacity 180ms ease, transform 180ms ease;
}

.eira-site-header__registered-tip::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 0.76rem;
  height: 0.76rem;
  border-left: 1px solid rgb(199 169 107 / 0.5);
  border-top: 1px solid rgb(199 169 107 / 0.5);
  background: rgb(7 19 15 / 0.96);
  transform: translate(-50%, 50%) rotate(45deg);
}

.eira-site-header__registered:hover .eira-site-header__registered-tip,
.eira-site-header__registered:focus-visible .eira-site-header__registered-tip {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.eira-site-header__inner {
  width: min(94vw, 1880px) !important;
  max-width: 1880px !important;
  min-height: calc(var(--eira-floating-header-height) - var(--eira-floating-topbar-height)) !important;
  padding-block: 0.18rem !important;
  align-items: center;
}

.eira-site-header__brand {
  width: clamp(92px, 6.35vw, 124px) !important;
}

.eira-site-header__brand::before {
  inset: -6% -14% 0 !important;
  opacity: 0.7 !important;
  filter: blur(8px);
}

.eira-site-header__logo img {
  max-height: clamp(56px, 4.45vw, 74px);
  object-fit: contain;
}

.eira-site-header__nav {
  position: relative;
  z-index: 12;
  gap: clamp(0.95rem, 1.35vw, 1.8rem) !important;
  justify-content: center;
}

.eira-site-header__nav-utility {
  display: none !important;
}

.eira-site-header__nav a {
  font-size: clamp(0.66rem, 0.58vw, 0.8rem);
  letter-spacing: 0.055em;
  line-height: 1;
  max-width: none;
  text-align: center;
  white-space: nowrap;
}

.eira-site-header__actions {
  display: flex !important;
  align-items: center;
  gap: clamp(0.28rem, 0.48vw, 0.58rem) !important;
  position: relative;
  z-index: 4;
  opacity: 0.82;
}

.eira-site-header__actions:hover,
.eira-site-header__actions:focus-within {
  opacity: 1;
}

.eira-site-header__actions > a,
.eira-theme-mode-toggle__button {
  display: inline-grid;
  place-items: center;
  width: 2.02rem;
  min-width: 2.02rem;
  height: 2.02rem;
  min-height: 2.02rem;
  padding: 0;
  border: 1px solid rgb(199 169 107 / 0.26);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(7 19 15 / 0.58), rgb(16 37 31 / 0.38));
  color: rgb(245 241 232 / 0.74);
  font-size: 0.86rem;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(245 241 232 / 0.06);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.eira-site-header__actions > a:hover,
.eira-site-header__actions > a:focus-visible,
.eira-theme-mode-toggle__button:hover,
.eira-theme-mode-toggle__button:focus-visible {
  border-color: rgb(199 169 107 / 0.46);
  background:
    linear-gradient(135deg, rgb(16 37 31 / 0.76), rgb(7 19 15 / 0.58));
  color: var(--eira-final-candle, #e6c26a);
  box-shadow: 0 0 16px rgb(230 194 106 / 0.12), inset 0 1px 0 rgb(245 241 232 / 0.08);
  transform: translateY(-1px);
}

.eira-site-header__actions > a span {
  display: grid;
  place-items: center;
}

.eira-site-header__account svg {
  width: 1rem;
  height: 1rem;
}

.eira-site-header__actions > .eira-site-header__account {
  display: inline-grid !important;
  visibility: visible;
  opacity: 1;
  flex: 0 0 auto;
}

.eira-language-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0.78;
}

.eira-language-selector__form {
  margin: 0;
  position: relative;
}

.eira-language-selector__options {
  display: inline-flex;
  align-items: center;
  gap: 0.04rem;
  min-height: 2.02rem;
  padding: 0.12rem 0.14rem;
  border: 1px solid rgb(199 169 107 / 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(7 19 15 / 0.52), rgb(16 37 31 / 0.34));
  box-shadow: inset 0 1px 0 rgb(245 241 232 / 0.05);
}

.eira-language-selector__compact {
  position: relative;
  display: none;
}

.eira-language-selector__compact[open] {
  z-index: 25;
}

.eira-language-selector__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  min-width: 3.35rem;
  min-height: 2.02rem;
  padding: 0.12rem 0.32rem;
  border: 1px solid rgb(199 169 107 / 0.18);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgb(7 19 15 / 0.52), rgb(16 37 31 / 0.34));
  color: rgb(245 241 232 / 0.7);
  cursor: pointer;
}

.eira-language-selector__summary::-webkit-details-marker {
  display: none;
}

.eira-language-selector__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.48rem);
  display: grid;
  gap: 0.12rem;
  min-width: 4.4rem;
  padding: 0.3rem;
  border: 1px solid rgb(199 169 107 / 0.28);
  border-radius: 0.8rem;
  background: rgb(7 19 15 / 0.96);
  box-shadow: 0 18px 38px rgb(3 5 4 / 0.42);
}

.eira-language-option {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  white-space: nowrap;
  min-height: 1.56rem;
  padding: 0.1rem 0.26rem;
  border: 0;
  border-radius: 999px;
  color: rgb(245 241 232 / 0.62);
  background: transparent;
  font-family: var(--eira-font-heading), "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.eira-language-option--fallback {
  cursor: default;
}

.eira-language-option:hover,
.eira-language-option:focus-visible {
  color: #fff4c7;
  background: rgb(199 169 107 / 0.1);
  box-shadow: 0 0 12px rgb(230 194 106 / 0.1);
  transform: translateY(-1px);
}

.eira-language-option:focus-visible {
  outline: 2px solid rgb(230 194 106 / 0.72);
  outline-offset: 3px;
}

.eira-language-option.is-active {
  color: var(--eira-final-candle, #e6c26a);
  background: rgb(199 169 107 / 0.13);
  box-shadow: inset 0 0 0 1px rgb(230 194 106 / 0.12);
}

.eira-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.88rem;
  height: 0.58rem;
  flex: 0 0 auto;
  font-size: 0.82rem;
  line-height: 1;
}

img.eira-lang-flag {
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgb(3 5 4 / 0.2);
}

.eira-lang-code {
  line-height: 1;
}

[data-theme-mode="day"] .eira-language-selector__options {
  background:
    linear-gradient(135deg, rgb(20 50 42 / 0.88), rgb(46 91 77 / 0.7));
}

[data-theme-mode="day"] .eira-language-option {
  color: #f8e8b8;
}

[data-theme-mode="day"] .eira-language-option:hover,
[data-theme-mode="day"] .eira-language-option:focus-visible,
[data-theme-mode="day"] .eira-language-option.is-active {
  color: #fff6d1;
  background: rgb(246 219 151 / 0.17);
}

@media (min-width: 990px) {
  .eira-language-selector {
    opacity: 0.68;
  }

  .eira-language-selector__options {
    gap: 1px !important;
    min-height: 26px !important;
    padding: 1px 3px !important;
    border-radius: 15px !important;
    border-color: rgb(199 169 107 / 0.16) !important;
  }

  .eira-language-option {
    gap: 4px !important;
    width: auto !important;
    min-width: 42px !important;
    min-height: 23px !important;
    padding: 2px 7px !important;
    border-radius: 13px !important;
    font-size: 9px !important;
    letter-spacing: 0.035em !important;
    line-height: 1 !important;
  }

  .eira-lang-flag,
  img.eira-lang-flag {
    width: 10px !important;
    height: 7px !important;
    font-size: 10px !important;
  }

  .eira-lang-code {
    font-size: 9px !important;
    line-height: 1 !important;
  }

  .eira-language-option.is-active {
    box-shadow: inset 0 0 0 1px rgb(230 194 106 / 0.08) !important;
  }
}

.eira-main {
  margin-top: 0 !important;
}

.eira-hero {
  min-height: 100svh !important;
  padding-block: 0 !important;
}

.eira-hero__grid {
  min-height: 100svh !important;
  padding-top: clamp(5.8rem, 7.6vw, 7.8rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.eira-hero__content {
  align-self: center;
  max-width: min(43vw, 760px) !important;
  padding-block: clamp(1rem, 2vw, 2.5rem) 0 !important;
}

.eira-hero__microclaim {
  margin-bottom: clamp(0.9rem, 1.3vw, 1.35rem) !important;
}

.eira-hero h1 {
  max-width: 11ch !important;
  margin-bottom: clamp(1.1rem, 1.8vw, 1.8rem) !important;
  font-size: clamp(3.85rem, 5.45vw, 7.35rem) !important;
  line-height: 0.96 !important;
}

.eira-hero .eira-rune-divider {
  margin-block: clamp(0.85rem, 1.4vw, 1.35rem);
}

.eira-hero__claim {
  max-width: min(42vw, 690px) !important;
  margin-top: clamp(1rem, 1.5vw, 1.5rem) !important;
  margin-bottom: clamp(1.1rem, 1.6vw, 1.6rem) !important;
  font-size: clamp(0.96rem, 1.15vw, 1.22rem) !important;
  line-height: 1.55;
}

.eira-hero__story {
  max-width: min(38vw, 620px) !important;
}

.eira-hero__actions {
  margin-top: clamp(1.2rem, 1.9vw, 2rem);
}

.eira-hero .eira-button {
  min-height: 46px;
  min-width: 190px;
  padding: 0.82rem 1.35rem;
}

@media (min-width: 1600px) {
  .eira-hero__grid {
    padding-top: clamp(6.1rem, 6.8vw, 8rem);
  }

  .eira-hero h1 {
    font-size: clamp(5rem, 4.75vw, 7.9rem) !important;
  }
}

@media (max-width: 1180px) {
  .eira-site-header__nav {
    gap: 1rem !important;
  }

  .eira-site-header__nav a {
    font-size: 0.76rem;
  }
}

@media (min-width: 1200px) {
  .eira-site-header__toggle {
    display: none !important;
  }

  .eira-site-header__nav {
    display: flex !important;
    position: relative;
    grid-column: auto;
    justify-self: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none;
    justify-content: space-between;
  }

  .eira-site-header__actions > a {
    display: inline-grid;
  }
}

@media (max-width: 1199px) {
  :root {
    --eira-floating-header-height: 5.05rem;
    --eira-floating-topbar-height: 0.9rem;
  }

  .eira-site-header__inner {
    position: relative;
    grid-template-columns: auto 1fr auto !important;
    min-height: calc(var(--eira-floating-header-height) - var(--eira-floating-topbar-height)) !important;
    width: min(92vw, 1800px) !important;
  }

  .eira-site-header__brand {
    width: clamp(86px, 12vw, 108px) !important;
  }

  .eira-site-header__logo img {
    max-height: 54px;
  }

  .eira-site-header__toggle {
    display: grid !important;
    grid-column: 3;
    justify-self: end;
    width: 2.08rem;
    height: 2.08rem;
    border-radius: 999px;
  }

  .eira-site-header__nav {
    display: none !important;
    position: absolute;
    top: calc(100% - 0.2rem);
    right: 4vw;
    left: 4vw;
    z-index: 20;
    grid-column: 1 / -1;
    padding: 1rem;
    border: 1px solid rgb(199 169 107 / 0.3);
    border-radius: 0.9rem;
    background: rgb(3 8 7 / 0.96) !important;
    box-shadow: 0 22px 52px rgb(3 5 4 / 0.38);
    backdrop-filter: blur(16px);
    gap: 0.08rem !important;
    justify-items: stretch;
  }

  .eira-site-header__nav.is-open {
    display: grid !important;
    grid-auto-rows: minmax(3rem, auto);
  }

  .eira-site-header__nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    width: 100%;
    padding: 0.44rem 0.72rem;
    border-radius: 0.6rem;
    line-height: 1.16;
    text-align: center;
  }

  .eira-site-header__nav-utility {
    display: block !important;
    color: var(--eira-final-candle, #e6c26a) !important;
  }

  .eira-site-header__actions {
    position: absolute;
    right: 2.65rem;
    top: 50%;
    z-index: 15;
    grid-column: auto;
    justify-content: flex-end;
    min-height: 0;
    margin-top: 0;
    transform: translateY(-50%);
  }

  .eira-site-header__actions > a:not(.eira-site-header__account) {
    display: none !important;
  }

  .eira-language-selector__options--inline {
    display: none;
  }

  .eira-language-selector__compact {
    display: inline-block;
  }

  .eira-language-selector {
    opacity: 0.72;
  }
}

@media (max-width: 989px) {
  :root {
    --eira-floating-header-height: 5.45rem;
    --eira-floating-topbar-height: 1.32rem;
  }

  .eira-site-header__topbar {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    justify-items: center;
    gap: 0;
    padding-inline: 0.75rem !important;
    overflow: hidden;
    font-size: 0.49rem;
    letter-spacing: 0.08em;
    line-height: 1;
  }

  .eira-site-header__topbar span {
    display: none;
  }

  .eira-site-header__ethics {
    display: block !important;
    max-width: 100%;
    overflow: hidden;
    color: rgb(245 241 232 / 0.78);
    font-size: 0.92em;
    font-weight: 600;
    letter-spacing: 0.065em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .eira-site-header__topbar strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.92em;
    letter-spacing: 0.075em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .eira-site-header__registered-tip {
    display: none;
  }

  .eira-site-header__actions a {
    min-width: 1.88rem;
    min-height: 1.88rem;
  }

  .eira-language-selector__options {
    gap: 0.02rem;
    min-height: 1.88rem;
    padding: 0.08rem 0.1rem;
  }

  .eira-language-option {
    min-height: 1.42rem;
    padding-inline: 0.2rem;
    font-size: 0.48rem;
    letter-spacing: 0.035em;
  }

  .eira-lang-flag {
    width: 0.76rem;
    height: 0.52rem;
    font-size: 0.76rem;
  }

  .eira-hero {
    min-height: 100svh !important;
  }

  .eira-hero__grid {
    min-height: 100svh !important;
    padding-top: 7.35rem;
    padding-bottom: 1.35rem;
  }

  .eira-hero__content {
    max-width: min(92vw, 680px) !important;
    padding-top: 0 !important;
  }

  .eira-hero h1 {
    font-size: clamp(3.1rem, 15.6vw, 4.7rem) !important;
    line-height: 0.95 !important;
  }

  .eira-hero__claim {
    max-width: none !important;
    font-size: clamp(0.9rem, 3.6vw, 1.04rem) !important;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 480px) {
  :root {
    --eira-floating-header-height: 5.16rem;
    --eira-floating-topbar-height: 1.26rem;
  }

  .eira-site-header__brand {
    width: clamp(72px, 23vw, 86px) !important;
  }

  .eira-site-header__logo img {
    max-height: 46px;
  }

  .eira-site-header__actions {
    right: 2.45rem;
    gap: 0.22rem !important;
  }

  .eira-site-header__actions a[href*="/search"] {
    display: none;
  }

  .eira-site-header__actions > .eira-site-header__account {
    display: inline-grid !important;
    width: 1.78rem;
    min-width: 1.78rem;
    height: 1.78rem;
    min-height: 1.78rem;
  }

  .eira-site-header__account svg {
    width: 0.86rem;
    height: 0.86rem;
  }

  .eira-theme-mode-toggle__button {
    width: 1.78rem;
    min-width: 1.78rem;
    height: 1.78rem;
  }

  .eira-language-option {
    min-height: 1.34rem;
    padding-inline: 0.16rem;
    font-size: 0.44rem;
  }

  .eira-language-selector__summary {
    min-width: 2.48rem;
    min-height: 1.78rem;
    padding-inline: 0.18rem;
    gap: 0.08rem;
  }

  .eira-language-selector__summary .eira-lang-code {
    font-size: 0.38rem;
    letter-spacing: 0.025em;
  }

  .eira-language-selector__summary .eira-lang-flag {
    width: 0.66rem;
    height: 0.45rem;
  }

  .eira-hero__grid {
    padding-top: 6.95rem;
  }

  .eira-hero__microclaim {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .eira-hero h1 {
    font-size: clamp(2.95rem, 15.2vw, 4.15rem) !important;
  }

  .eira-hero__actions {
    gap: 0.7rem;
  }

  .eira-hero .eira-button {
    width: auto !important;
    min-width: min(100%, 168px);
    min-height: 42px;
    padding-inline: 1rem;
    font-size: 0.72rem;
  }

  .eira-hero .eira-button--ghost {
    background: rgb(3 8 7 / 0.42);
    color: var(--eira-final-candle, #e6c26a);
    text-shadow: 0 1px 8px rgb(3 5 4 / 0.7);
  }
}

/* Frontend polish: keep headings premium and prevent the fixed header from covering simple pages. */
.eira-site-header__nav a.is-active,
.eira-site-header__nav a[aria-current="page"] {
  color: var(--eira-final-candle, #e6c26a);
}

.eira-tarot__actions .eira-button {
  min-width: min(100%, 164px);
  min-height: 46px;
  border-radius: 5px;
  font-family: var(--eira-font-heading, serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.eira-tarot__actions .eira-button--primary {
  border-color: rgb(183 227 107 / 0.34);
  background:
    radial-gradient(circle at 18% 12%, rgb(183 227 107 / 0.22), transparent 58%),
    linear-gradient(180deg, #2f6a4f, #174333);
  color: var(--eira-final-ivory, #f5f1e8);
  box-shadow:
    inset 0 1px 0 rgb(245 241 232 / 0.12),
    inset 0 0 18px rgb(183 227 107 / 0.08),
    0 14px 28px rgb(3 5 4 / 0.2);
}

.eira-tarot__actions .eira-button--secondary,
.eira-tarot__actions .eira-button--ghost {
  border-color: rgb(230 194 106 / 0.72);
  background:
    radial-gradient(circle at 20% 12%, rgb(230 194 106 / 0.12), transparent 60%),
    linear-gradient(180deg, rgb(16 55 42 / 0.82), rgb(7 19 15 / 0.74));
  color: var(--eira-final-candle, #e6c26a);
  box-shadow:
    inset 0 1px 0 rgb(245 241 232 / 0.08),
    inset 0 0 18px rgb(230 194 106 / 0.06),
    0 12px 26px rgb(3 5 4 / 0.16);
}

.eira-tarot__actions .eira-button:hover,
.eira-tarot__actions .eira-button:focus-visible {
  transform: translateY(-1px);
}

.eira-tarot__actions .eira-button--primary:hover,
.eira-tarot__actions .eira-button--primary:focus-visible {
  border-color: rgb(183 227 107 / 0.54);
  background:
    radial-gradient(circle at 22% 14%, rgb(183 227 107 / 0.3), transparent 60%),
    linear-gradient(180deg, #3d7c5d, #123f2f);
  box-shadow:
    0 0 24px rgb(183 227 107 / 0.14),
    0 16px 30px rgb(3 5 4 / 0.24);
}

.eira-tarot__actions .eira-button--secondary:hover,
.eira-tarot__actions .eira-button--secondary:focus-visible,
.eira-tarot__actions .eira-button--ghost:hover,
.eira-tarot__actions .eira-button--ghost:focus-visible {
  border-color: rgb(230 194 106 / 0.92);
  background:
    radial-gradient(circle at 22% 14%, rgb(230 194 106 / 0.18), transparent 62%),
    linear-gradient(180deg, rgb(27 74 57 / 0.9), rgb(7 19 15 / 0.8));
  color: rgb(245 230 200 / 0.98);
  box-shadow:
    0 0 24px rgb(230 194 106 / 0.12),
    0 16px 30px rgb(3 5 4 / 0.22);
}

.eira-tarot-service-card > .eira-button,
.eira-service-list .eira-tarot-service-card > .eira-button {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgb(230 194 106 / 0.72);
  border-radius: 5px;
  background:
    radial-gradient(circle at 18% 14%, rgb(230 194 106 / 0.12), transparent 58%),
    linear-gradient(180deg, rgb(28 68 53 / 0.92), rgb(8 26 20 / 0.86));
  color: var(--eira-final-candle, #e6c26a);
  font-family: var(--eira-font-heading, serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgb(245 241 232 / 0.08),
    inset 0 0 18px rgb(230 194 106 / 0.06),
    0 12px 26px rgb(3 5 4 / 0.16);
}

.eira-tarot-service-card > .eira-button:hover,
.eira-tarot-service-card > .eira-button:focus-visible,
.eira-service-list .eira-tarot-service-card > .eira-button:hover,
.eira-service-list .eira-tarot-service-card > .eira-button:focus-visible {
  border-color: rgb(230 194 106 / 0.92);
  background:
    radial-gradient(circle at 22% 14%, rgb(230 194 106 / 0.18), transparent 62%),
    linear-gradient(180deg, rgb(42 88 68 / 0.96), rgb(8 26 20 / 0.9));
  color: rgb(245 230 200 / 0.98);
  box-shadow:
    0 0 24px rgb(230 194 106 / 0.12),
    0 16px 30px rgb(3 5 4 / 0.22);
  transform: translateY(-1px);
}

.eira-main > .shopify-section:first-child .eira-section:not(.eira-hero):not(.eira-tarot--hero):not(.eira-events-hero):not(.eira-collection-hero--premium) {
  padding-top: clamp(6.6rem, 8.2vw, 8.6rem);
}

.eira-main > .shopify-section:first-child .eira-commerce {
  padding-top: clamp(6.6rem, 8.2vw, 8.6rem) !important;
}

.eira-hero h1 {
  font-size: clamp(3.05rem, 4.35vw, 5.55rem) !important;
  line-height: 1.02 !important;
}

.eira-section__header h1,
.eira-section__header h2,
.eira-story h2,
.eira-tarot h2,
.eira-newsletter h2,
.eira-events h2,
.eira-blog h2 {
  font-size: clamp(1.85rem, 2.65vw, 2.9rem) !important;
  line-height: 1.08 !important;
}

.eira-tarot--hero h1,
.eira-events-hero h1,
.eira-newsletter-preferences__intro h1,
.eira-collection-hero--premium h1 {
  font-size: clamp(2.55rem, 4.2vw, 4.85rem) !important;
  line-height: 1.06 !important;
}

.eira-commerce__header h1,
.eira-product-summary h1,
.eira-auth-card h1,
.eira-article-page h1,
.eira-blog-page h1 {
  font-size: clamp(2rem, 3vw, 3.35rem) !important;
  line-height: 1.12 !important;
}

.eira-article-card h2,
.eira-article-card h3,
.eira-product-card h2,
.eira-product-card h3,
.eira-cart-item h2,
.eira-result-card h2 {
  font-size: clamp(1.05rem, 1.2vw, 1.32rem) !important;
  line-height: 1.18 !important;
}

@media (min-width: 1600px) {
  .eira-hero h1 {
    font-size: clamp(3.7rem, 4.25vw, 6.1rem) !important;
  }
}

@media (max-width: 989px) {
  .eira-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.75rem) !important;
    line-height: 1 !important;
  }

  .eira-tarot--hero h1,
  .eira-events-hero h1,
  .eira-newsletter-preferences__intro h1,
  .eira-collection-hero--premium h1 {
    font-size: clamp(2.15rem, 9vw, 3.35rem) !important;
  }

  .eira-section__header h1,
  .eira-section__header h2,
  .eira-story h2,
  .eira-tarot h2,
  .eira-newsletter h2,
  .eira-events h2,
  .eira-blog h2 {
    font-size: clamp(1.65rem, 7vw, 2.35rem) !important;
  }
}

@media (max-width: 480px) {
  .eira-hero h1 {
    font-size: clamp(2.35rem, 11.4vw, 3.25rem) !important;
  }
}

/* Launch polish: fairs, physical store and standby ecommerce states. */
.eira-events-list-section .eira-events-grid {
  align-items: stretch;
}

.eira-events-list-section .eira-event-card {
  min-height: 100%;
}

.eira-events-list-section .eira-event-card__media {
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.eira-events-list-section .eira-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.eira-events-list-section .eira-event-card h3 {
  font-size: clamp(1.18rem, 1.45vw, 1.62rem) !important;
  line-height: 1.14 !important;
}

.eira-events-list-section .eira-event-card__actions {
  margin-top: auto;
}

.eira-physical-store__info {
  margin-top: clamp(2.4rem, 4vw, 4rem);
}

.eira-physical-store__info .eira-booking-steps {
  margin-top: clamp(1.4rem, 2.4vw, 2rem);
}

.eira-collection-page .eira-empty-state,
.eira-search-page .eira-empty-state {
  max-width: min(760px, 92vw);
  margin-inline: auto;
  text-align: center;
}

.eira-collection-page .eira-empty-state h1,
.eira-search-page .eira-empty-state h2 {
  font-size: clamp(2rem, 3.4vw, 3.4rem) !important;
  line-height: 1.12 !important;
}

/* Mobile logo integration: keep the brand mark present without making it feel pasted onto the header. */
@media (max-width: 640px) {
  .eira-site-header__brand {
    display: inline-grid !important;
    width: 58px !important;
    min-width: 58px !important;
    height: 48px;
    place-items: center;
    margin-left: 0.08rem;
    padding: 0.2rem 0.22rem;
    border: 1px solid rgb(230 194 106 / 0.16);
    border-radius: 18px;
    background:
      radial-gradient(circle at 50% 45%, rgb(183 227 107 / 0.2), transparent 58%),
      linear-gradient(135deg, rgb(7 19 15 / 0.4), rgb(245 241 232 / 0.08));
    box-shadow:
      inset 0 1px 0 rgb(245 241 232 / 0.1),
      0 8px 18px rgb(3 5 4 / 0.2);
  }

  .eira-site-header__brand::before {
    inset: 0 !important;
    opacity: 0.34 !important;
    filter: blur(9px) !important;
  }

  .eira-site-header__brand::after {
    inset: 0.3rem !important;
    opacity: 0.38;
  }

  .eira-site-header__logo {
    display: grid;
    width: 100%;
    place-items: center;
  }

  .eira-site-header__logo img {
    width: auto !important;
    max-width: 50px;
    max-height: 41px !important;
    filter:
      saturate(1.08)
      contrast(1.05)
      brightness(1.04)
      drop-shadow(0 0 9px rgb(183 227 107 / 0.24))
      drop-shadow(0 5px 10px rgb(3 5 4 / 0.26)) !important;
    opacity: 0.94;
    mix-blend-mode: normal !important;
  }

  .eira-footer__logo {
    display: inline-grid;
    width: 112px !important;
    height: 112px;
    place-items: center;
    margin: 0 0 1.35rem;
    padding: 0.65rem;
    border: 1px solid rgb(230 194 106 / 0.16);
    border-radius: 28px;
    background:
      radial-gradient(circle at 50% 42%, rgb(183 227 107 / 0.18), transparent 58%),
      linear-gradient(135deg, rgb(245 241 232 / 0.08), rgb(7 19 15 / 0.18));
    box-shadow:
      inset 0 1px 0 rgb(245 241 232 / 0.08),
      0 16px 34px rgb(3 5 4 / 0.22);
  }

  .eira-footer__logo img {
    width: 92px !important;
    max-width: 92px;
    height: auto;
    margin: 0 !important;
    filter:
      saturate(1.04)
      contrast(1.03)
      brightness(1.03)
      drop-shadow(0 0 12px rgb(183 227 107 / 0.2))
      drop-shadow(0 8px 14px rgb(3 5 4 / 0.24)) !important;
    opacity: 0.92;
    mix-blend-mode: normal !important;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0 67%, rgb(0 0 0 / 0.84) 76%, transparent 91%);
    mask-image: radial-gradient(ellipse at center, #000 0 67%, rgb(0 0 0 / 0.84) 76%, transparent 91%);
  }
}

/* Final button system: all theme CTAs match the EIRA SEREN primary button. */
.eira-button,
.eira-button--primary,
.eira-button--secondary,
.eira-button--ghost,
.button,
.button--primary,
.button--secondary,
.btn,
.btn-primary,
.btn-secondary,
.cta,
.cta-primary,
.cta-secondary,
input[type="submit"],
button[type="submit"],
.shopify-payment-button__button,
.eira-hero .eira-button,
.eira-tarot .eira-button,
.eira-tarot__actions .eira-button,
.eira-service-list .eira-tarot-service-card > .eira-button,
.eira-tarot-service-card > .eira-button,
.eira-event-card__actions .eira-button,
.eira-event-detail .eira-event-card__actions .eira-button,
.eira-product-page--premium .eira-product-form .eira-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  min-height: 45px !important;
  padding: 0.78rem 1.45rem !important;
  border: 1px solid rgb(230 194 106 / 0.72) !important;
  border-radius: 2px !important;
  background:
    linear-gradient(180deg, rgb(50 112 54 / 0.94), rgb(30 86 54 / 0.96) 48%, rgb(14 49 34 / 0.98)) !important;
  color: var(--color-ivory, #f5f1e8) !important;
  font-family: var(--eira-font-heading, Georgia, "Times New Roman", serif) !important;
  font-size: clamp(0.76rem, 0.82vw, 0.9rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  line-height: 1.05 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 0 rgb(3 5 4 / 0.18) !important;
  box-shadow:
    inset 0 1px 0 rgb(245 241 232 / 0.14),
    0 10px 24px rgb(3 5 4 / 0.18) !important;
  cursor: pointer !important;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    color 160ms ease !important;
}

.eira-button:hover,
.eira-button:focus-visible,
.eira-button--primary:hover,
.eira-button--primary:focus-visible,
.eira-button--secondary:hover,
.eira-button--secondary:focus-visible,
.eira-button--ghost:hover,
.eira-button--ghost:focus-visible,
.button:hover,
.button:focus-visible,
.button--primary:hover,
.button--primary:focus-visible,
.button--secondary:hover,
.button--secondary:focus-visible,
.btn:hover,
.btn:focus-visible,
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible,
.cta:hover,
.cta:focus-visible,
.cta-primary:hover,
.cta-primary:focus-visible,
.cta-secondary:hover,
.cta-secondary:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
.shopify-payment-button__button:hover,
.shopify-payment-button__button:focus-visible,
.eira-hero .eira-button:hover,
.eira-hero .eira-button:focus-visible,
.eira-tarot .eira-button:hover,
.eira-tarot .eira-button:focus-visible,
.eira-tarot__actions .eira-button:hover,
.eira-tarot__actions .eira-button:focus-visible,
.eira-service-list .eira-tarot-service-card > .eira-button:hover,
.eira-service-list .eira-tarot-service-card > .eira-button:focus-visible,
.eira-tarot-service-card > .eira-button:hover,
.eira-tarot-service-card > .eira-button:focus-visible,
.eira-event-card__actions .eira-button:hover,
.eira-event-card__actions .eira-button:focus-visible,
.eira-event-detail .eira-event-card__actions .eira-button:hover,
.eira-event-detail .eira-event-card__actions .eira-button:focus-visible,
.eira-product-page--premium .eira-product-form .eira-button:hover,
.eira-product-page--premium .eira-product-form .eira-button:focus-visible {
  border-color: rgb(248 232 184 / 0.9) !important;
  background:
    linear-gradient(180deg, rgb(61 127 64 / 0.98), rgb(37 99 61 / 0.98) 48%, rgb(13 55 37 / 0.98)) !important;
  color: #fff6d8 !important;
  box-shadow:
    inset 0 1px 0 rgb(245 241 232 / 0.2),
    0 0 18px rgb(230 194 106 / 0.16),
    0 14px 28px rgb(3 5 4 / 0.22) !important;
  transform: translateY(-1px) !important;
}

.eira-button:focus-visible,
.button:focus-visible,
.btn:focus-visible,
.cta:focus-visible,
input[type="submit"]:focus-visible,
button[type="submit"]:focus-visible,
.shopify-payment-button__button:focus-visible {
  outline: 2px solid rgb(248 232 184 / 0.88) !important;
  outline-offset: 3px !important;
}

.eira-button:active,
.button:active,
.btn:active,
.cta:active,
input[type="submit"]:active,
button[type="submit"]:active,
.shopify-payment-button__button:active {
  transform: translateY(0) !important;
}

.eira-button[disabled],
.eira-button[aria-disabled="true"],
button[disabled],
input[type="submit"][disabled],
.shopify-payment-button__button[disabled] {
  opacity: 0.56 !important;
  cursor: not-allowed !important;
  transform: none !important;
}
