/* Atmosphere, original vector lettering and progressive motion enhancements. */
body { position: relative; isolation: isolate; }
.world-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #090d10; }
.world-backdrop-art { position: absolute; inset: -65px -35px; background: url('assets/hero-minecraft.png') 52% 54% / cover no-repeat; opacity: .31; filter: blur(11px) saturate(.85); transform: translate3d(0, var(--world-shift, 0px), 0); }
.world-backdrop::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 32%, #090d10d1 15%, #090d1080 65%, #090d10a8 100%), linear-gradient(0deg, #090d1070, #090d101c); }
.world-backdrop::before { content: ''; position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 4% 75%, #d8a92b08, transparent 36%), radial-gradient(ellipse at 96% 49%, #779e300a, transparent 30%); }
.scene-load-line { position: fixed; inset: 0 0 auto; height: 2px; z-index: 95; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s; }
.scene-load-line::after { content: ''; display: block; height: 100%; width: 40%; background: linear-gradient(90deg, transparent, #ffe275, transparent); transform: translateX(-100%); }
.scene-loading .scene-load-line { opacity: 1; }
.scene-loading .scene-load-line::after { animation: scene-loading 1s ease-in-out infinite; }

.brand .brand-wordmark { width: 157px; height: auto; aspect-ratio: 730 / 190; object-fit: contain; mix-blend-mode: normal; transition: filter .25s, transform .25s; }
.brand:hover .brand-wordmark { filter: brightness(1.12); transform: translateY(-1px); }
.footer-brand .brand-wordmark { width: 122px; }
.hero-copy { animation: none; min-width: 0; }
.hero-title { width: clamp(350px, 43vw, 590px); max-width: 100%; aspect-ratio: 730 / 190; margin: 9px 0 3px -12px; padding: 0; transform: none; font-size: inherit; line-height: 0; letter-spacing: normal; text-shadow: none; -webkit-text-stroke: 0; }
.hero-title img { width: 100%; height: auto; aspect-ratio: 730 / 190; filter: drop-shadow(0 6px 12px #0008); }
.hero-copy .hero-modes { margin-top: 2px; }
.hero-inner { z-index: 1; }
.hero-art { animation: none; }
.hero.scene-preparing .hero-art { opacity: .12; transform: scale(1.045); }
.hero.scene-ready .hero-art { animation: scene-arrive 1.65s cubic-bezier(.16, 1, .3, 1) both; }
.hero-sequence { animation: element-arrive .8s cubic-bezier(.16, 1, .3, 1) var(--entrance-delay, 0ms) both; }
.hero-panel-entry { animation: panel-arrive .9s cubic-bezier(.16, 1, .3, 1) .36s both; }
.hero-particles { z-index: 0; }
.hero-particles span,
.hero-particles span:nth-child(n) { position: absolute; left: var(--x); top: var(--y); bottom: auto; width: var(--size); height: var(--size); border-radius: 1px; background: #ffdf7e; box-shadow: 0 0 7px #ffc628a0; opacity: 0; animation: ember-rise var(--life) linear var(--delay) infinite; pointer-events: none; }
.motion-paused .hero-particles span,
.tab-inactive .hero-particles span { animation-play-state: paused; }

.reveal-waiting, .shop-banner.reveal-waiting { opacity: 0; translate: 0 18px; transition: opacity .68s cubic-bezier(.2, .75, .25, 1) var(--reveal-delay, 0ms), translate .68s cubic-bezier(.2, .75, .25, 1) var(--reveal-delay, 0ms), transform .2s, border-color .2s, box-shadow .2s; }
.reveal-waiting.is-visible, .shop-banner.reveal-waiting.is-visible,
.reveal-waiting:focus-within { opacity: 1; translate: 0 0; }
.button-primary { position: relative; overflow: hidden; isolation: isolate; }
.button-primary::after { content: ''; position: absolute; inset: -40% auto -40% -60%; width: 30%; pointer-events: none; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, #fff9bd60, transparent); opacity: 0; }
.button-primary:not(:disabled):hover::after,
.button-primary:not(:disabled):focus-visible::after { animation: button-sheen .7s ease-out; }
.shop-banner { transition: border-color .25s, box-shadow .25s; }
.shop-banner:hover { border-color: #d5b83daa; box-shadow: 0 8px 35px #d6a3150a; }
.treasure { transition: filter .3s; }
.shop-banner:hover .treasure { filter: drop-shadow(0 0 18px #ffc73155); }
.info-card:hover .info-card-icon { box-shadow: inset 0 0 18px #ddb2221a, 0 0 20px #d6a81d0a; }
.benefit-icon { transition: border-color .3s, background .3s; }
.benefits > div:hover .benefit-icon { border-color: #c6a92c99; background: #d8bd2510; }

@keyframes scene-arrive { from { opacity: .12; transform: scale(1.045); } to { opacity: 1; transform: scale(1); } }
@keyframes element-arrive { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: 0 0; } }
@keyframes panel-arrive { from { opacity: 0; translate: 14px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes ember-rise { 0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(0); } 16% { opacity: var(--peak); } 72% { opacity: calc(var(--peak) * .65); } 100% { opacity: 0; transform: translate3d(var(--drift), calc(-1 * var(--rise)), 0) rotate(75deg); } }
@keyframes button-sheen { 0% { left: -60%; opacity: 0; } 20% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
@keyframes scene-loading { to { transform: translateX(350%); } }

@media (max-width: 1240px) { .brand .brand-wordmark { width: 146px; } .footer-brand .brand-wordmark { width: 118px; } .hero-title { width: clamp(340px, 44vw, 550px); } }
@media (max-width: 1000px) { .brand .brand-wordmark { width: 137px; } .footer-brand .brand-wordmark { width: 109px; } .hero-title { width: min(47vw, 470px); } }
@media (max-width: 760px) {
  .brand .brand-wordmark { width: 136px; }
  .footer-brand .brand-wordmark { width: 110px; }
  .hero-title { width: min(100%, 470px); max-width: calc(100% + 4px); margin: 12px 0 7px -9px; font-size: inherit; letter-spacing: normal; }
  .hero-copy .hero-modes { margin-top: 3px; }
  .hero-inner { padding-top: 42px; }
  .hero-particles span:nth-child(n + 11) { display: none; }
  .world-backdrop-art { opacity: .24; filter: blur(8px) saturate(.8); }
  .world-backdrop::after { background: linear-gradient(90deg, #090d10b8, #090d1099, #090d10b8); }
  .reveal-waiting { translate: 0 12px; }
}
@media (max-width: 380px) { .brand .brand-wordmark { width: 126px; } .footer-brand .brand-wordmark { width: 105px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art, .hero.scene-preparing .hero-art, .hero.scene-ready .hero-art { opacity: 1; transform: none; }
  .reveal-waiting, .shop-banner.reveal-waiting, .hero-sequence, .hero-panel-entry { opacity: 1; translate: none; }
  .hero-particles, .scene-load-line { display: none; }
  .world-backdrop-art { transform: none; }
  .button-primary::after { display: none; }
}

/* Match the original compact RawCraft composition and frameless server mark. */
.brand > .server-emblem {
  object-fit: contain;
  mix-blend-mode: normal;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
}
.brand .brand-wordmark { width: 164px; }
.footer-brand .brand-wordmark { width: 124px; }
.hero-copy .welcome { margin-left: 32px; padding: 6px 11px; letter-spacing: 1.4px; }
.hero-copy .hero-modes { margin-left: 22px; font-size: 11px; letter-spacing: 1px; gap: 11px; }
.hero-copy > p { margin: 17px 0 0 32px; font-size: 12px; line-height: 1.7; }
.hero-buttons { margin: 18px 0 0 32px; }
.hero-buttons .button { min-height: 41px; padding: 10px 18px; font-size: 11px; }
.hero-buttons .ip-button { padding: 7px 13px; min-width: 156px; }
.hero-buttons .ip-button small { font-size: 7px; }
.payment-preview { width: 178px; gap: 13px; padding-left: 21px; }
.payment-preview .payment-wordmark { font-size: 15px; font-weight: 750; letter-spacing: -.3px; color: #dbe5f4; }
.payment-wordmark .icon { color: #0cc6d3; width: 21px; height: 21px; }
.payment-preview .payment-title { font-size: 7px; letter-spacing: .5px; }
.payment-preview small { font-size: 7px; line-height: 1.5; }
.info-card h2 { font-size: 14px; }
.info-card p { font-size: 11px; }
.shop-banner { background: radial-gradient(ellipse at 5% 5%, #b1781333, transparent 57%), linear-gradient(125deg, #13160c, #080d12 64%); }
.treasure.treasure-image { width: calc(100% - 8px); height: calc(100% - 12px); max-width: none; max-height: 100%; inset: 6px 4px; object-fit: contain; object-position: center 65%; transform: none; }
.shop-banner h2 { font-weight: 850; color: #ffdf18; }
.profile-panel, .news-card { background: linear-gradient(125deg, #10161de8, #080e14f2); }
.benefit-icon .icon { fill: #ffdf2419; stroke-width: 2; }
.activity-panel { border-color: #4b535b; }
.activity-link { padding-top: 12px; }
.footer { padding: 17px 0; }
.home-content { padding-bottom: 23px; }
.footer p small { font-size: 7px; }

@media (min-width: 1001px) {
  .container { width: min(1240px, 86.5%); }
  .header-inner { height: 65px; gap: 22px; }
  .brand > .server-emblem { width: 53px; height: 53px; }
  .footer-brand > .server-emblem { width: 36px; height: 36px; }
  .desktop-nav { gap: 23px; }
  .hero, .hero-inner { min-height: 365px; }
  .hero-inner { padding-top: 22px; padding-bottom: 30px; gap: 22px; }
  .hero-copy { padding-left: 38px; max-width: 600px; }
  .hero-title { width: min(44vw, 510px); margin: 3px 0 0 0; }
  .hero-art { left: -180px; background-position: center 23%; }
  .activity-panel { width: 276px; padding: 14px 16px 7px; }
  .activity-heading { padding-bottom: 12px; }
  .activity-heading strong { font-size: 22px; }
  .recent-title { margin-top: 12px; }
  .purchase { padding: 8px 0; }
  .home-content { margin-top: 0; padding-top: 13px; }
  .benefits { padding: 12px 10px; margin-bottom: 20px; }
  .benefit-icon { width: 43px; height: 43px; }
  .benefits > div { padding: 0 14px; gap: 12px; }
  .main-grid { gap: 15px; }
  .shop-banner { min-height: 218px; }
  .shop-banner h2 { font-size: 25px; line-height: 1.13; margin: 8px 0 10px; }
  .shop-banner-copy { padding: 19px 5px 22px 0; }
  .shop-illustration { width: 33%; }
  .shop-banner .button { margin-top: 15px; min-height: 39px; }
  .lower-grid { gap: 15px; margin-top: 19px; }
  .news-thumbnail { min-height: 83px; width: 112px; }
  .info-card { padding: 21px 17px; gap: 14px; }
  .news-card { padding: 14px 15px; }
}
@media (min-width: 1600px) {
  .hero, .hero-inner { min-height: 390px; }
  .hero-art { background-position: center 28%; }
}
@media (min-width: 1001px) and (max-width: 1240px) {
  .header-inner { gap: 16px; }
  .brand .brand-wordmark { width: 143px; }
  .footer-brand .brand-wordmark { width: 110px; }
  .desktop-nav { gap: 19px; }
  .desktop-nav a { font-size: 11px; gap: 6px; }
  .hero-copy { padding-left: 10px; }
  .hero-title { width: min(43vw, 470px); }
  .hero-buttons .button { padding-left: 13px; padding-right: 13px; }
  .activity-panel { width: 259px; }
  .shop-banner h2 { font-size: 21px; }
  .shop-banner p { font-size: 10px; }
  .shop-illustration { width: 30%; }
  .payment-preview { width: 150px; padding-left: 14px; }
  .payment-preview .payment-wordmark { font-size: 12px; }
  .benefits strong { font-size: 11px; }
  .benefits small { font-size: 9px; }
  .info-card h2 { font-size: 13px; }
  .info-card p { font-size: 10px; }
}
@media (max-width: 1000px) {
  .brand .brand-wordmark { width: 137px; }
  .footer-brand .brand-wordmark { width: 109px; }
  .hero-copy .welcome { margin-left: 10px; }
  .hero-copy .hero-modes { margin-left: 0; }
  .hero-copy > p, .hero-buttons { margin-left: 0; }
}
@media (max-width: 760px) {
  .hero, .hero-inner { min-height: 440px; }
  .header-inner { gap: 10px; }
  .header .profile-button > .icon:last-child { display: none; }
  .hero-title { margin-top: 10px; }
  .hero-copy .welcome { margin-left: 12px; }
  .hero-copy .hero-modes { font-size: 9px; gap: 8px; letter-spacing: .5px; }
  .hero-copy > p { font-size: 12px; margin-top: 19px; }
  .hero-copy > p br { display: none; }
  .hero-buttons { margin-top: 22px; }
  .hero-buttons .button { min-height: 46px; padding: 11px 14px; }
  .info-card h2 { font-size: 13px; }
  .info-card p { font-size: 10px; }
  .shop-banner h2 { font-size: 24px; }
}
@media (max-width: 380px) {
  .brand .brand-wordmark { width: 124px; }
  .footer-brand .brand-wordmark { width: 102px; }
  .hero-buttons { gap: 8px; }
  .hero-buttons .button { font-size: 10px; padding: 10px 11px; }
  .hero-buttons .ip-button { min-width: 143px; }
  .hero-copy .hero-modes { font-size: 8px; gap: 7px; }
  .shop-banner h2 { font-size: 21px; }
}
