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

.rune-widget {
  position: fixed;
  z-index: 45;
  top: 26px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, Arial, sans-serif;
}

.rune-widget > button,
.rune-language-toggle {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(206, 171, 79, .72);
  cursor: pointer;
  font: 750 12px/1 Inter, Arial, sans-serif;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.rune-language-flag {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

.rune-widget > button:hover,
.rune-language-toggle:hover {
  transform: translateY(-1px);
  border-color: #f0cf6b;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .3);
}

.rune-widget > button:focus-visible,
.rune-language-toggle:focus-visible,
.rune-language-menu button:focus-visible,
.rune-close:focus-visible,
.rune-package button:focus-visible {
  outline: 3px solid rgba(255, 216, 105, .48);
  outline-offset: 2px;
}

.rune-language {
  position: relative;
  display: block;
}

.rune-language-toggle {
  display: inline-flex;
  min-width: 72px;
  padding: 0 14px 0 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #f6ecd3;
  background: rgba(7, 20, 17, .03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.rune-language-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #e7c96f;
  border-bottom: 1.5px solid #e7c96f;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}

.rune-language-toggle[aria-expanded="true"] .rune-language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.rune-language-menu[hidden] { display: none; }

.rune-language-menu {
  position: absolute;
  z-index: 60;
  top: calc(100% + 10px);
  right: 0;
  width: 218px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(224, 190, 96, .52);
  border-radius: 22px;
  background: rgba(7, 20, 17, .03);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px) saturate(1.22);
  -webkit-backdrop-filter: blur(20px) saturate(1.22);
}

.rune-cost-action {
  position: relative;
  margin-top: 24px !important;
  overflow: visible !important;
}

.rune-cost-action::after {
  content: attr(data-rune-cost);
  position: absolute;
  right: 2px;
  bottom: calc(100% + 6px);
  color: #f1cf65;
  font: 900 15px/1 Inter, Arial, sans-serif;
  letter-spacing: .02em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .78), 0 0 10px rgba(241, 207, 101, .16);
  white-space: nowrap;
  pointer-events: none;
}

.hero-card-actions .rune-cost-action::after {
  right: 0;
  font-size: 13px;
}

/* Keep paid actions visibly interactive; login is requested on click when needed. */
.rune-cost-action,
.rune-cost-action[disabled],
.rune-cost-action[aria-disabled="true"] {
  opacity: 1 !important;
  filter: none;
  pointer-events: auto !important;
  cursor: pointer !important;
}

/* Clear affordance for every clickable control and link. */
:where(a[href], button:not(:disabled), [role="button"], [role="menuitem"], [role="menuitemradio"], .cah-select-option) {
  cursor: pointer;
  transition: filter .18s ease, outline-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

:where(a[href], button:not(:disabled), [role="button"], [role="menuitem"], [role="menuitemradio"], .cah-select-option):hover {
  filter: brightness(1.16) saturate(1.08) !important;
  outline: 2px solid rgba(240, 207, 107, .72) !important;
  outline-offset: 2px !important;
}

:where(a[href], button:not(:disabled), [role="button"], [role="menuitem"], [role="menuitemradio"], .cah-select-option):active {
  filter: brightness(1.05);
  transform: translateY(1px);
}

:where(a[href], button, [role="button"], [role="menuitem"], [role="menuitemradio"], .cah-select-option):focus-visible {
  outline: 3px solid rgba(255, 216, 105, .72) !important;
  outline-offset: 3px !important;
}

.rune-language-menu button {
  display: flex;
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 14px;
  color: #f4ead0;
  background: transparent;
  font: 700 13px/1 Inter, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, background .16s ease;
}

.rune-language-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.rune-language-menu button:hover,
.rune-language-menu button:focus-visible {
  color: #fff3cb;
  background: rgba(226, 184, 73, .14);
}

.rune-language-menu button.is-current {
  color: #f6d778;
  background: rgba(226, 184, 73, .1);
}

.rune-language-check {
  color: #f0cb61;
  font-size: 14px;
}

.rune-balance {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 6px;
  padding: 7px 13px;
  color: #f5d87b;
  background: rgba(7, 25, 20, .94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .32);
}

.rune-balance span { grid-row: 1 / 3; font-size: 17px; }
.rune-balance b { font-size: 15px; text-align: left; }
.rune-balance small { color: #d8d0bd; font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.rune-buy { padding: 0 15px; color: #102c23; background: linear-gradient(135deg, #f0cf69, #bd8d2f); }
.rune-account { max-width: 130px; padding: 0 15px; overflow: hidden; text-overflow: ellipsis; color: #f0e5c7; background: rgba(7, 25, 20, .94); }

.rune-modal[hidden] { display: none; }
.rune-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(2, 4, 4, .86);
  backdrop-filter: blur(9px);
  font-family: Inter, Arial, sans-serif;
}

.rune-modal-open { overflow: hidden; }

.rune-store {
  position: relative;
  isolation: isolate;
  width: min(1180px, 100%);
  padding: 42px;
  overflow: hidden;
  color: #f7edda;
  border: 1px solid rgba(224, 177, 65, .84);
  border-radius: 24px;
  background: #160b09;
  box-shadow: 0 35px 110px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 229, 154, .08);
}

.rune-store::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -10px;
  background: url("/rune-store/dragon-background.webp") center / cover no-repeat;
  filter: blur(2.7px) saturate(.86);
  transform: scale(1.03);
}

.rune-store::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(131, 13, 6, .08), rgba(4, 6, 5, .4) 48%),
    linear-gradient(180deg, rgba(6, 8, 7, .43), rgba(6, 7, 7, .82));
}

.rune-store-heading {
  max-width: 760px;
  margin-bottom: 27px;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .8);
}

.rune-close {
  position: absolute;
  z-index: 4;
  top: 15px;
  right: 17px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(236, 195, 92, .65);
  border-radius: 50%;
  color: #fff0c9;
  background: rgba(9, 11, 10, .78);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.rune-eyebrow {
  margin: 0 0 8px;
  color: #efc85f;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.rune-store h2 {
  margin: 0;
  color: #fff4d8;
  font: 800 clamp(32px, 5vw, 52px)/1 Georgia, serif;
}

.rune-store-intro {
  max-width: 720px;
  margin: 14px 0 0;
  color: #e6dcc8;
  line-height: 1.6;
}

.rune-store-intro b { color: #ffd976; }

.rune-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.rune-package {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(221, 177, 70, .55);
  border-radius: 16px;
  background: rgba(7, 10, 9, .82);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .38);
  backdrop-filter: blur(7px);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.rune-package:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 213, 105, .88);
  box-shadow: 0 24px 45px rgba(0, 0, 0, .48), 0 0 25px rgba(190, 76, 24, .13);
}

.rune-package-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid rgba(220, 178, 73, .44);
}

.rune-package-body {
  display: flex;
  min-height: 146px;
  padding: 15px;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.rune-discount {
  align-self: center;
  padding: 5px 8px;
  border: 1px solid rgba(225, 181, 72, .42);
  border-radius: 999px;
  color: #f4d780;
  background: rgba(134, 73, 17, .22);
  font-size: 10px;
  font-weight: 800;
}

.rune-package-uses {
  margin: 10px 1px 14px;
  color: #d8d0c2;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.rune-package button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border: 1px solid #e3b94e;
  border-radius: 9px;
  color: #251408;
  background: linear-gradient(135deg, #ffe38a, #bf8328);
  font-weight: 900;
  cursor: pointer;
}

.rune-package button:disabled {
  color: #c6bba3;
  border-color: rgba(198, 171, 105, .34);
  background: rgba(39, 35, 31, .78);
  opacity: .72;
  cursor: not-allowed;
}

.rune-status {
  margin: 21px 0 0;
  padding: 11px 14px;
  border: 1px solid rgba(214, 175, 82, .24);
  border-radius: 9px;
  color: #d7c9aa;
  background: rgba(5, 8, 7, .62);
  font-size: 12px;
}

.analytics-consent {
  position: fixed;
  z-index: 110;
  left: 18px;
  bottom: 18px;
  width: min(470px, calc(100% - 36px));
  padding: 17px;
  border: 1px solid #bd9946;
  border-radius: 12px;
  color: #f4ead0;
  background: rgba(6, 25, 20, .97);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .45);
  font: 12px/1.5 Inter, Arial, sans-serif;
}

.analytics-consent p { margin: 0 0 12px; }
.analytics-consent div { display: flex; justify-content: flex-end; gap: 8px; }
.analytics-consent button { padding: 8px 13px; border: 1px solid #b9933e; border-radius: 7px; color: #f4ead0; background: transparent; cursor: pointer; }
.analytics-consent button[data-accept] { color: #132f26; background: #d0ad52; }

@media (max-width: 1160px) {
  .rune-widget { top: auto; right: 14px; bottom: 14px; }
  .rune-language-menu { top: auto; bottom: calc(100% + 10px); }
  .rune-account { display: none; }
  .rune-packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rune-store { width: min(760px, 100%); }
}

@media (max-width: 620px) {
  .rune-widget { left: 12px; right: 12px; justify-content: flex-end; }
  .rune-language-toggle { min-width: 66px; padding-inline: 14px; }
  .rune-buy { display: none; }
  .rune-modal { padding: 12px; place-items: start center; }
  .rune-store { padding: 36px 16px 20px; border-radius: 18px; }
  .rune-store-heading { margin-bottom: 20px; }
  .rune-packages { grid-template-columns: 1fr; }
  .rune-package-body { min-height: 125px; }
}

@media (prefers-reduced-motion: reduce) {
  .rune-widget > button,
  .rune-language-toggle,
  .rune-language-chevron,
  .rune-language-menu button,
  .rune-package { transition: none; }

  :where(a[href], button, [role="button"], [role="menuitem"], [role="menuitemradio"], .cah-select-option) {
    transition: none;
  }
}
