@import url("https://fonts.googleapis.com/css2?family=Lilita+One&family=Montserrat:wght@500;600;700;800;900&display=swap");

:root {
  --bg: #061024;
  --bg-2: #0a1a38;
  --panel: #0b1d3d;
  --panel-2: #10284f;
  --edge: #1d4c94;
  --edge-hi: #2f6fd6;
  --blue: #2f7bff;
  --blue-dk: #1b56c7;
  --sky: #6fb2ff;
  --ink: #eef4ff;
  --ink-2: #a9bfe2;
  --ink-3: #6f87b0;
  --ok: #4ade80;
  --sale: #ff5d6c;
  --r: 14px;
  --r-sm: 9px;
  --wrap: 1010px;
}

/* ---------- dawn variables, dark blue ---------- */
:root,
:root.color-scheme-dark,
:root.color-scheme-auto,
:root.color-scheme-light {
  color-scheme: dark;
  --color-text: #eef4ff;
  --color-text-darker: #ffffff;
  --color-text-secondary: #a9bfe2;
  --color-text-dark: #eef4ff;
  --color-bg: #061024;
  --color-brighter-bg: #0b1d3d;
  --color-input-bg: #10284f;
  --color-popup-bg: #0b1d3d;
  --color-primary: #2f7bff;
  --color-primary-hover: #1b56c7;
  --color-primary-text: #ffffff;
  --color-primary-text-hover: #ffffff;
  --color-secondary: #16346a;
  --color-secondary-hover: #1d4c94;
  --color-secondary-text: #cfe1ff;
  --color-secondary-text-hover: #ffffff;
  --color-tertiary: #10284f;
  --color-tertiary-hover: #16346a;
  --color-tertiary-text: #a9bfe2;
  --color-tertiary-text-hover: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.eo {
  margin: 0; min-height: 100vh;
  font-family: "Montserrat", system-ui, sans-serif; font-weight: 500;
  color: var(--ink);
  background: var(--bg);
}
/* Background: Minecraft night screenshot (Mojang, "Amplified Village Night"), hosted on apply.earthora.net */
body.eo::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(6,16,36,.1) 0%, rgba(6,16,36,.35) 35%, rgba(6,16,36,.85) 75%, #061024 100%),
    #061024 url(https://apply.earthora.net/bg-2400.webp) center 35% / cover no-repeat;
  filter: saturate(1.15) brightness(1.15);
}
@media (max-width: 900px) {
  body.eo::before { background-image: linear-gradient(180deg, rgba(6,16,36,.15) 0%, rgba(6,16,36,.45) 35%, rgba(6,16,36,.88) 75%, #061024 100%), url(https://apply.earthora.net/bg-1200.webp); }
}
body.eo .site { position: relative; z-index: 1; display: block; max-width: none; margin: 0; padding: 0; background: none; }
body.eo .site-bg-image { display: none; }
.eo a { color: inherit; text-decoration: none; }
.eo img { max-width: 100%; }
.eo h1, .eo h2, .eo h3 { font-weight: 900; letter-spacing: -.01em; }
.wrap { width: min(var(--wrap), calc(100% - 32px)); margin: 0 auto; }

/* ---------- top line ---------- */
.topline { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 34px 0 0; min-height: 96px; }
.topline__item {
  display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0;
  color: var(--ink); font: inherit; cursor: pointer; text-align: left;
}
.topline__item--right { text-align: right; }
.round {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(180deg, var(--sky), var(--blue));
  box-shadow: 0 0 0 4px rgba(47, 123, 255, .25), 0 10px 24px rgba(47, 123, 255, .35);
  color: #fff; transition: transform .15s;
}
.round svg { width: 26px; height: 26px; }
.topline__item:hover .round { transform: scale(1.06) rotate(-4deg); }
.topline__text b { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; text-transform: uppercase; }
.topline__item--right .topline__text b { justify-content: flex-end; }
.topline__text small { display: block; margin-top: 2px; color: var(--sky); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.count { font-style: normal; font-size: 11px; font-weight: 800; background: var(--blue); color: #fff; border-radius: 5px; padding: 3px 8px; }

.wordmark {
  position: absolute; left: 50%; top: 40px; z-index: 3; transform: translateX(-50%) rotate(-2deg);
  font-family: "Lilita One", "Montserrat", sans-serif; font-size: 66px; line-height: 1; letter-spacing: .02em;
  white-space: nowrap; transition: transform .2s;
}
.wordmark:hover { transform: translateX(-50%) rotate(0deg) scale(1.03); }
.wordmark img { max-height: 92px; }
.wordmark span { -webkit-text-stroke: 3px #04102a; paint-order: stroke fill; }
.wordmark__a { color: #e9f1ff; text-shadow: 0 5px 0 #8aa6cf, 0 9px 0 #04102a, 0 16px 22px rgba(0, 0, 0, .45); }
.wordmark__b { color: var(--sky); text-shadow: 0 5px 0 var(--blue-dk), 0 9px 0 #04102a, 0 16px 22px rgba(0, 0, 0, .45); }

/* ---------- store bar ---------- */
.bar {
  position: relative; z-index: 2; margin-top: 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 30px; border: 3px solid var(--edge); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(11, 29, 61, .96), rgba(6, 16, 36, .96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.bar__store { display: flex; align-items: center; gap: 16px; }
.bar__globe { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--edge); background: var(--panel-2); color: var(--ink); }
.bar__globe svg { width: 26px; height: 26px; }
.bar__store b { display: block; font-size: 19px; font-weight: 800; }
.bar__store small { color: var(--sky); font-size: 12px; font-weight: 700; }
.bar__actions { display: flex; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px;
  border-radius: var(--r-sm); border: 2px solid var(--sky); background: var(--blue); color: #fff;
  font: 800 14px "Montserrat", sans-serif; cursor: pointer; transition: background .15s, transform .15s;
}
.pill:hover { background: var(--blue-dk); transform: translateY(-1px); }
.pill svg { width: 18px; height: 18px; }
.pill img { width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; }
.pill--ghost { background: var(--panel-2); border-color: var(--edge); }
.pill--ghost:hover { background: #16346a; }

/* ---------- category nav on inner pages ---------- */
.crumbnav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.crumbnav a {
  padding: 8px 14px; border-radius: 8px; background: rgba(16, 40, 79, .7); border: 1px solid var(--edge);
  color: var(--ink-2); font-size: 13px; font-weight: 700;
}
.crumbnav a:hover, .crumbnav a.is-active { background: var(--blue); border-color: var(--sky); color: #fff; }

.content { padding: 30px 0 60px; }

/* ---------- banner ---------- */
.banner {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr .9fr; align-items: center; gap: 10px;
  min-height: 210px; padding: 0 40px; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, #3d8bff, #1e5fd8 75%, #174bb0);
  border-bottom: 6px solid #133f97;
  box-shadow: 0 20px 40px rgba(20, 70, 170, .35);
}
.banner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 55% 110%, rgba(255, 255, 255, .25), transparent 70%);
}
.banner h1 { margin: 0 0 10px; font-size: 31px; line-height: 1.12; text-transform: uppercase; }
.banner p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.6; color: #e3eeff; }
.banner__art { position: relative; align-self: end; height: 200px; }
.banner__skin { position: absolute; bottom: -8px; image-rendering: pixelated; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.banner__skin--m { left: 50%; transform: translateX(-30%); height: 190px; z-index: 2; }
.banner__skin--l { left: 50%; transform: translateX(-110%); height: 160px; opacity: .9; }
.cube { position: absolute; width: 22px; height: 22px; background: linear-gradient(135deg, #7cc46a 0 40%, #6b4a2d 40%); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2); animation: bob 4s ease-in-out infinite; }
.cube--1 { left: 6%; top: 40%; }
.cube--2 { right: 4%; top: 18%; width: 16px; height: 16px; animation-delay: -1.3s; }
.cube--3 { left: 30%; top: 8%; width: 12px; height: 12px; background: linear-gradient(135deg, #9fd8ff 0 50%, #5aa2ff 50%); animation-delay: -2.6s; }
@keyframes bob { 50% { transform: translateY(-9px) rotate(12deg); } }
.banner__ip { position: relative; z-index: 2; justify-self: end; text-align: right; }
.banner__ip small { display: block; margin-bottom: 8px; color: #cfe0ff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.banner__ip button {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 10px;
  background: rgba(6, 16, 36, .35); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2);
  color: #fff; font: 800 16px "Montserrat", sans-serif; cursor: pointer;
}
.banner__ip button:hover { background: rgba(6, 16, 36, .5); }
.banner__ip button svg { width: 17px; height: 17px; }
.banner__online { display: block; margin-top: 9px; font-size: 12px; font-weight: 700; color: #dbe8ff; }
.banner__online.is-up::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* ---------- category cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 32px; }
.card {
  --c1: #0f3a86; --c2: #2f7bff; --hi: #8cc4ff; --line: #3f8cff;
  position: relative; display: flex; justify-content: space-between; align-items: flex-end;
  min-height: 228px; padding: 40px 40px 46px; border-radius: var(--r); overflow: hidden;
  border: 3px solid var(--line);
  background:
    radial-gradient(circle at 115% -10%, rgba(255, 255, 255, .12) 0 38%, transparent 38.5%),
    linear-gradient(120deg, var(--c1), var(--c2));
  transition: transform .18s, box-shadow .18s;
}
.card::after { content: ""; position: absolute; left: 40px; bottom: -3px; width: 58px; height: 8px; border-radius: 6px 6px 0 0; background: var(--line); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0, 0, 0, .35), 0 0 0 1px var(--hi); }
.card__text { position: relative; z-index: 1; padding-right: 130px; }
.card__text b { display: block; font-size: 38px; font-weight: 900; line-height: 1.05; color: #fff; }
.card__text small { display: block; margin-top: 8px; color: var(--hi); font-size: 13px; font-weight: 800; }
.card__icon { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); color: var(--hi); transition: transform .2s; }
.card__icon svg, .card__icon img { width: 104px; height: 104px; filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, .28)); }
.card__icon img { object-fit: contain; image-rendering: pixelated; }
.card:hover .card__icon { transform: translateY(-50%) rotate(-6deg) scale(1.05); }
.card--wide { grid-column: 1 / -1; }
.card--blue   { --c1: #0c2d6b; --c2: #2f7bff; --hi: #9ccbff; --line: #4b93ff; }
.card--ember  { --c1: #5a1d08; --c2: #e8641c; --hi: #ffc46b; --line: #ff8a2a; }
.card--violet { --c1: #2c1466; --c2: #7046e6; --hi: #c6b3ff; --line: #8f6bff; }
.card--teal   { --c1: #07444a; --c2: #17a3a0; --hi: #7af0de; --line: #2ccfc0; }
.card--navy   { --c1: #071a3b; --c2: #0f5fc4; --hi: #63b8ff; --line: #1d8cf0; }

/* ---------- text blocks ---------- */
.note {
  margin-top: 30px; padding: 26px 30px; border-radius: var(--r);
  background: rgba(11, 29, 61, .85); border: 2px solid var(--edge); color: var(--ink-2); line-height: 1.7;
}
.text-content h1, .text-content h2, .text-content h3 { color: var(--ink); margin-top: 0; }
.text-content a { color: var(--sky); font-weight: 700; }
.text-content p:last-child { margin-bottom: 0; }

.cat-banner {
  padding: 24px 32px; border-radius: var(--r); text-align: center;
  background: linear-gradient(180deg, #3d8bff, #1e5fd8); border-bottom: 5px solid #133f97;
  font-weight: 700; line-height: 1.6;
}
.cat-banner h1 { margin: 0; font-size: 28px; text-transform: uppercase; }
.cat-banner .text-content { margin-top: 6px; color: #eaf2ff; font-size: 14px; }
.cat-banner .text-content a { color: #fff; text-decoration: underline; }

/* ---------- package cards (dawn package-entry) ---------- */
.eo .packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 30px; }
.eo .store-product {
  position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 26px 24px 24px;
  border: 3px solid var(--edge); border-radius: var(--r); text-align: center;
  background: linear-gradient(180deg, var(--panel), #081631);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.eo .store-product:hover { transform: translateY(-4px); border-color: var(--edge-hi); box-shadow: 0 16px 32px rgba(0, 0, 0, .35); }
.eo .store-product .image-link { display: grid; place-items: center; width: 100%; height: 150px; margin: -10px 0 0; background: none; border-radius: 0; }
.eo .store-product .image-link .image { width: 170px; height: 170px; max-height: none; max-width: 115%; object-fit: contain; image-rendering: pixelated; background: none; border-radius: 0; transition: transform .2s; }
.eo .store-product:hover .image-link .image { transform: scale(1.06) rotate(-3deg); }
.eo .store-product .image-default { width: 80px; height: 80px; border-radius: 16px; background: linear-gradient(135deg, var(--panel-2), var(--edge)); }
.eo .store-product .product-title { margin: 14px 0 0; padding: 0; font-size: 17px; font-weight: 900; text-align: center; }
.eo .store-product .product-title a { color: #fff; }
.eo .store-product .countdown { display: block; margin-top: 4px; color: #ffd166; font-size: 12px; font-weight: 800; }
.eo .store-product .product-actions { width: 100%; margin-top: auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.eo .store-product .price { width: 100%; margin: 6px 0 12px; font-size: 18px; font-weight: 900; color: var(--ok); text-align: center; }
.eo .store-product .price strong { font-weight: 900; }
.eo .store-product .price del { color: var(--sale); font-size: 13px; margin-right: 6px; }

.eo .btn-primary, .eo .btn-secondary, .eo .btn-tertiary,
.eo .product-actions a, .eo .product-actions button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-sm);
  font: 800 14px "Montserrat", sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s;
}
.eo .btn-primary { background: var(--blue); color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18); }
.eo .btn-primary:hover { background: var(--blue-dk); color: #fff; }
.eo .btn-secondary { background: #16346a; color: #cfe1ff; }
.eo .btn-secondary:hover { background: #1d4c94; color: #fff; }
.eo .btn-tertiary { background: var(--panel-2); color: var(--ink-2); }
.eo .btn-tertiary:hover { color: #fff; }
.eo .product-actions .wide { flex: 1 1 100%; }
.eo .product-actions .half { flex: 1 1 40%; }
.eo .quantity-field { display: flex; gap: 6px; }
.eo .quantity-field .open-basket { flex: 1; background: #16346a; color: #fff; }
.eo .quantity-field input { display: none; }
.eo [hidden] { display: none !important; }

/* ---------- login ---------- */
.auth { display: grid; place-items: center; padding: 20px 0; }
.auth__card {
  width: min(440px, 100%); padding: 32px; border-radius: var(--r);
  background: linear-gradient(180deg, var(--panel), #081631); border: 3px solid var(--edge); box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.auth__card h2 { margin: 0 0 6px; font-size: 24px; }
.auth__card > p { margin: 0 0 18px; color: var(--ink-2); font-size: 14px; }
.edition { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 14px; border-radius: 10px; background: #081631; border: 1px solid var(--edge); }
.edition button { height: 38px; border: 0; border-radius: 7px; background: none; color: var(--ink-2); font: 800 13px "Montserrat", sans-serif; cursor: pointer; }
.edition button.is-on { background: var(--blue); color: #fff; }
.auth__row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.auth__row img { width: 46px; height: 46px; border-radius: 8px; image-rendering: pixelated; background: var(--panel-2); }
.field, .eo .store-form input[type=text], .eo .popup input[type=text], .eo .popup input[type=email], .eo .popup select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-sm); border: 2px solid var(--edge);
  background: #081631; color: var(--ink); font: 600 15px "Montserrat", sans-serif; outline: none;
}
.field:focus { border-color: var(--sky); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border: 0; border-radius: var(--r-sm); background: var(--blue); color: #fff; font: 800 15px "Montserrat", sans-serif; cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18);
}
.btn:hover { background: var(--blue-dk); }
.btn--block { width: 100%; }

/* ---------- popups and basket (dawn main.js) ---------- */
.eo .popup { background: rgba(2, 8, 22, .7); backdrop-filter: blur(3px); }
.eo .popup-content, .eo .basket-popup-content {
  background: var(--panel); color: var(--ink); border: 2px solid var(--edge); border-radius: var(--r); box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
}
.eo .popup .auth { padding: 0; }
.eo .popup .auth__card { border: 0; box-shadow: none; background: none; }
.eo .basket-item { border-color: var(--edge); }
.eo .basket-item a[href*="remove"] {
  width: auto !important; min-width: 74px; padding: 0 12px; font-size: 12px; white-space: nowrap; overflow: visible; text-indent: 0;
}
body.eo > .site { display: flex; flex-direction: column; min-height: 100vh; }
body.eo > .site > .wrap { flex: 1 0 auto; }
.eo input, .eo select, .eo textarea { font-family: inherit; }

/* ---------- tebex modules ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 30px; }
.modules .store-sidebar, .modules > aside { display: contents; }
.modules > *, .modules .store-sidebar > * {
  padding: 20px; border-radius: var(--r); background: rgba(11, 29, 61, .85); border: 2px solid var(--edge); color: var(--ink-2); font-size: 13px;
}
.modules h2, .modules h3, .modules h4, .modules .widget-title { margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--sky); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.modules img { image-rendering: pixelated; }
.modules a { color: var(--sky); }
.modules .progress { height: 20px; background: #081631; border-radius: 6px; overflow: hidden; }
.modules .progress-bar { height: 100%; background: linear-gradient(90deg, var(--blue-dk), var(--sky)); color: #fff; font-size: 11px; font-weight: 800; }
.modules input { height: 38px; border: 2px solid var(--edge); border-radius: var(--r-sm); background: #081631; color: var(--ink); padding: 0 10px; }
.modules button, .modules .btn { height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--blue); color: #fff; font-weight: 800; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; margin-top: 20px; padding: 34px 0; background: #040b1a; border-top: 3px solid #0c2149; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.foot__copy { color: var(--sky); font-weight: 700; }
.foot__copy b { color: #fff; }
.foot__note { margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; font-weight: 700; }
.foot__links a { color: var(--ink-2); }
.foot__links a:hover { color: #fff; }
.foot__social { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #5865f2; color: #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .2); }
.foot__social svg { width: 24px; height: 24px; }

/* ---------- toast ---------- */
.eo-toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 9999; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 20px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transition: opacity .2s, transform .2s; pointer-events: none;
}
.eo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .eo .packs { grid-template-columns: repeat(3, 1fr); }
  .banner { grid-template-columns: 1fr 1fr; padding: 30px; }
  .banner__art { display: none; }
}
@media (max-width: 760px) {
  .topline { flex-wrap: wrap; padding-top: 110px; }
  .wordmark { top: 22px; font-size: 52px; }
  .topline__text b { font-size: 15px; }
  .round { width: 48px; height: 48px; }
  .bar { flex-direction: column; align-items: stretch; padding: 18px; }
  .bar__actions .pill { flex: 1; justify-content: center; }
  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card { min-height: 170px; padding: 28px 28px 36px; }
  .card__text { padding-right: 90px; }
  .card__text b { font-size: 30px; }
  .card__icon svg, .card__icon img { width: 76px; height: 76px; }
  .eo .packs { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .banner { grid-template-columns: 1fr; }
  .banner__ip { justify-self: start; text-align: left; }
  .foot__in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 440px) {
  .eo .packs { grid-template-columns: 1fr; }
  .topline__text small { display: none; }
}
