/* Wspólne światło nagłówków, ilustracji i stopki. */
.header .header-inner { background: linear-gradient(120deg,#ffffff05,#ffffff00); }
.header:not(.is-scrolled) .header-inner { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.header.is-scrolled .header-inner { background: linear-gradient(120deg,#3540485e,#29303670); border-color: #f3e8bf24; box-shadow: 0 6px 20px #0002; backdrop-filter: blur(12px) saturate(1.15); }
.home-intro .hero::before { background: linear-gradient(180deg,#10182070,#10182024 45%,transparent); }
.header .profile-button { background: #1d24286b; }
.header .profile-button:hover { background: #303637a3; }
.minecraft-icon { stroke: none !important; fill: none; image-rendering: pixelated; }
.minecraft-icon.item-illustration { image-rendering: auto; }
.site-symbol { color: #e8cb68; stroke: none; image-rendering: auto; shape-rendering: geometricPrecision; }
.desktop-nav a .minecraft-icon { width: 20px; height: 20px; }
.benefit-icon .minecraft-icon { width: 34px; height: 34px; filter: drop-shadow(0 2px 2px #0006); }
.benefit-icon .site-symbol { width: 34px; height: 34px; filter: none; }
.header-actions .profile-button > .minecraft-icon { width: 20px; height: 20px; }
.item-icon .minecraft-icon { width: 32px; height: 32px; filter: drop-shadow(0 2px 2px #0008); }
.activity-icon .minecraft-icon { width: 36px; height: 36px; }
.activity-icon:has(.site-symbol) { width: 42px; height: 42px; flex: 0 0 42px; background: transparent; }
.activity-icon .site-symbol { width: 40px; height: 40px; fill: none; filter: none; }
.product-relic .minecraft-icon { width: 88px; height: 88px; filter: drop-shadow(3px 5px 0 #0005); }
.product-relic { width: 104px; height: 104px; background: none; border: none; box-shadow: none; transform: translateY(-4px); }
.product-relic::before { content: none; }
.product-card:hover .product-relic { transform: translateY(-10px) rotate(-4deg); box-shadow: none; }
.product-card.purple .product-relic .minecraft-icon { filter: hue-rotate(245deg) drop-shadow(3px 5px 0 #0005); }
.page-hero { --page-art: url('assets/hero-minecraft.png'); --subpage-height: clamp(300px,24vw,410px); }
.page-hero--rules { --page-art: url('assets/podstrona-regulamin-v1.png'); }
.page-hero--contact { --page-art: url('assets/podstrona-kontakt-v1.png'); }
.page-hero--faq { --page-art: url('assets/podstrona-faq-v1.png'); }
.shop-page .shop-hero { --page-art: url('assets/podstrona-sklep-v1.png'); min-height: clamp(310px,24vw,410px); }
.page-hero::before { content: none; background-image: none; animation: none; }
.page-hero-art { position: absolute; inset: 0 0 0 auto; width: min(1800px,100%); pointer-events: none; mask-image: linear-gradient(90deg,transparent,#000 28%,#000 98%,transparent),linear-gradient(180deg,transparent,#000 16%,#000 65%,transparent); mask-composite: intersect; }
.page-hero-art img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; opacity: .94; }
.page-hero-art.art-preparing { opacity: 0; }
.page-hero-art.art-preparing.art-ready { opacity: 1; will-change: opacity; animation: page-art-arrive 1.8s cubic-bezier(.25,.46,.45,.94) both; }
@keyframes page-art-arrive { from { opacity: 0; } to { opacity: 1; } }
.page-hero h1,.page-hero p { text-shadow: 0 2px 18px #080d13e6; }
.page-hero .container { z-index: 1; }
.shop-hero-inner { display: block; }
.shop-hero-copy { max-width: 620px; }
.shop-hero-art { display: none; }
.contact-grid--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.rules-page { max-width: 1100px; }
.rules-document-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.rules-document-heading > div { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 700; }
.rules-document-heading .minecraft-icon { width: 36px; height: 36px; }
.rules-document-heading small { display: block; color: #aeb8c5; font-size: 11px; font-weight: 400; margin-top: 3px; }
.rules-download { font-size: 11px; white-space: nowrap; }
.rules-intro { padding: 26px 30px; margin-bottom: 24px; background: #0f1820e8; }
.rules-intro p { white-space: pre-line; color: #bcc7d4; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.rules-intro p + p { margin-top: 16px; }
.rules-intro p:first-child { color: #f2df9b; font-weight: 600; }
.rules-sections { display: grid; gap: 12px; }
.rules-section { background: #0f1720ed; scroll-margin-top: 105px; }
.rules-section summary { display: flex; align-items: center; gap: 17px; list-style: none; padding: 21px 24px; cursor: pointer; border-radius: inherit; transition: background .2s; }
.rules-section summary::-webkit-details-marker { display: none; }
.rules-section summary:hover { background: #f4d57906; }
.rules-section summary h2 { font-size: 14px; font-weight: 650; line-height: 1.6; }
.rules-number { min-width: 40px; color: #e3c56e; font-size: 13px; font-weight: 650; flex-shrink: 0; }
.rules-toggle { margin-left: auto; color: #c8b578; flex-shrink: 0; }
.rules-toggle .icon { width: 16px; height: 16px; transition: transform .22s; }
.rules-section[open] { border-color: #cbb86b65; }
.rules-section[open] .rules-toggle .icon { transform: rotate(180deg); }
.rules-section.is-collapsing .rules-toggle .icon { transform: rotate(0); }
.rules-section-body { margin: 0 24px; border-top: 1px solid #ffffff0e; padding: 21px 0 25px; color: #bfc9d5; font-size: 12px; line-height: 1.95; overflow-wrap: anywhere; }
.rules-section-body ol { padding-left: 25px; margin: 0; display: grid; gap: 13px; }
.rules-section-body li { padding-left: 6px; }
.rules-section-body li::marker { color: #d0bb7d; font-size: 11px; }
.rules-section-body p + p,.rules-section-body ol + p { margin-top: 18px; }
.rules-attachment p { white-space: pre-line; }
.faq-item { transition: border-color .25s,background .25s; }
.faq-item[open] { border-color: #cbb86b65; }
.faq-item summary { position: relative; padding-right: 54px; transition: background .2s; }
.faq-item summary:hover { background: #f4d57906; }
.faq-item summary::before,.faq-item summary::after { content: ''; position: absolute; top: 50%; background: #e3c56e; border-radius: 1px; pointer-events: none; }
.faq-item summary::before { width: 12px; height: 2px; right: 20px; transform: translateY(-50%); }
.faq-item summary::after { width: 2px; height: 12px; right: 25px; transform: translateY(-50%); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.faq-item[open] summary::after { content: ''; transform: translateY(-50%) rotate(90deg); }
.faq-item.is-collapsing summary::after { transform: translateY(-50%); }
@media(max-width:760px) {
  .contact-grid--two { grid-template-columns: minmax(0,1fr); }
  .page-hero-art { mask-image: linear-gradient(90deg,#0004,#000),linear-gradient(180deg,transparent,#000 20%,#000 60%,transparent); }
  .page-hero-art img { opacity: .66; object-position: 67% center; }
  .rules-document-heading { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .rules-document-heading > div { font-size: 15px; }
  .rules-intro { padding: 22px 20px; }
  .rules-section summary { padding: 18px 16px; gap: 12px; }
  .rules-section summary h2 { font-size: 12px; }
  .rules-number { min-width: 32px; font-size: 11px; }
  .rules-section-body { margin: 0 18px; padding-top: 18px; }
  .rules-section-body li { padding-left: 3px; }
  .faq-item summary { padding-right: 48px; }
}
@media(prefers-reduced-motion:reduce) {
  /* Samo przenikanie bez przesunięcia; pozostałe ograniczenia ruchu pozostają aktywne. */
  .page-hero-art.art-preparing.art-ready { animation: page-art-arrive .8s ease-out both !important; }
  .rules-toggle .icon,.rules-section summary { transition: none; }
}
.shop-hero::before { --panorama-opacity: .94; }
body { position: relative; isolation: isolate; }
.footer { position: relative; isolation: auto; border-top: 0; background: linear-gradient(180deg,#20262518,#242a2c70); margin-top: 65px; }
.footer::before { content: ''; position: absolute; inset: -240px 0 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg,#10161c24,#10161c65 45%,#10161cb8), url('assets/stopka-dolina-v1.png') center 58% / cover no-repeat; mask-image: linear-gradient(180deg,transparent,#0009 38%,#000 75%); filter: blur(5px) brightness(.78) saturate(.82); clip-path: inset(0); opacity: .52; }
.footer::after { --footer-glow-width: clamp(160px,28vw,420px); content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; pointer-events: none; background-image: linear-gradient(90deg,transparent,#e6bd4b66 30%,#fff0a8 52%,#f5cc5966 72%,transparent),linear-gradient(90deg,transparent,#d5c78c30,transparent); background-size: var(--footer-glow-width) 100%,100% 100%; background-repeat: no-repeat; background-position: calc(0px - var(--footer-glow-width)) 0,0 0; mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); filter: drop-shadow(0 0 3px #ebc95170); animation: footer-line-sweep 14s ease-in-out infinite; }
@keyframes footer-line-sweep { 0%,8% { background-position: calc(0px - var(--footer-glow-width)) 0,0 0; } 85%,100% { background-position: calc(100% + var(--footer-glow-width)) 0,0 0; } }
.footer-inner { min-height: 96px; }
.footer { padding: 28px 0 32px; }
.footer .footer-inner { display: block; min-height: 0; }
.footer::after { content: none; }
.footer-crown { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 28px; margin-bottom: 29px; }
.footer .footer-brand { display: inline-flex; align-items: center; gap: 11px; margin: 0; }
.footer .footer-brand > .server-emblem { width: 52px; height: 52px; }
.footer .footer-brand .brand-wordmark { width: 156px; }
.footer-rail { --footer-glow-width: clamp(160px,28vw,420px); display: block; height: 1px; min-width: 0; background-image: linear-gradient(90deg,transparent,#e6bd4b66 30%,#fff0a8 52%,#f5cc5966 72%,transparent),linear-gradient(90deg,transparent,#d5c78c30,transparent); background-size: var(--footer-glow-width) 100%,100% 100%; background-repeat: no-repeat; background-position: calc(0px - var(--footer-glow-width)) 0,0 0; mask-image: linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent); filter: drop-shadow(0 0 3px #ebc95170); animation: footer-line-sweep 14s ease-in-out infinite; }
.footer-rail:last-child { animation-delay: -7s; }
.footer-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(270px,1fr) minmax(190px,.65fr); gap: 50px; align-items: start; }
.footer .footer-copy p { margin: 0; color: #c3cad2; font-size: 11px; line-height: 1.8; }
.footer .footer-copy p + p { margin-top: 7px; color: #919eac; }
.footer h2 { margin: 0 0 15px; font-size: 12px; font-weight: 650; color: #e7e9e5; }
.footer .footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 9px 20px; margin: 0; font-size: 11px; line-height: 1.6; }
.footer-links a { color: #a7b2bf; transition: color .2s; }
.footer-links a:hover { color: #f4d87e; }
.footer-discord { display: inline-flex; align-items: center; gap: 11px; padding: 0; appearance: none; border: 0; background: transparent; color: #d6dce2; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.footer-discord-symbol { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; border: 1px solid #b7c5d030; border-radius: 11px; background: #19232c73; color: #e7cc79; transition: background .2s,border-color .2s; }
.footer-discord .discord-button-icon .icon { width: 23px; height: 23px; }
.footer-discord small { display: block; margin-top: 5px; color: #8f9dab; font-size: 9px; }
.footer-discord > .icon { width: 14px; height: 14px; color: #b9a369; transition: translate .2s; }
.footer-discord:is(:hover,:focus-visible) .footer-discord-symbol { background: #b9a24315; border-color: #d7b95575; }
.footer-discord:is(:hover,:focus-visible) .discord-button-icon .icon { transform-origin: center; animation: discord-icon-greet .75s cubic-bezier(.2,.8,.2,1); }
.footer-discord .discord-button-icon circle { transform-box: fill-box; transform-origin: center; }
.footer-discord:is(:hover,:focus-visible) .discord-button-icon circle:last-of-type { animation: discord-icon-wink .75s ease; }
.footer-discord:is(:hover,:focus-visible) > .icon { translate: 3px 0; }
.page-hero--privacy { --page-art: url('assets/podstrona-regulamin-v1.png'); }
.document-pending { color: #9ba8b5; }
.lower-grid { position: relative; z-index: 1; }
.lower-grid > .panel { border-color: #b8c5cf47; box-shadow: 0 10px 25px #0003; }
.lower-grid .news-card { background: linear-gradient(135deg,#131e26fa,#0d151cf5); }
.rules-card { background: linear-gradient(90deg,#0c131bf5,#0c131bce 48%,#0c131b80),url('assets/podstrona-regulamin-v1.webp') 78% 56% / cover no-repeat; }
.contact-card { background: linear-gradient(90deg,#0c131bf5,#0c131bce 48%,#0c131b80),url('assets/podstrona-kontakt-v1.webp') 78% 52% / cover no-repeat; }
.lower-grid .info-card p,.lower-grid .news-preview p { color: #c2cbd5; }
.info-card { min-height: 156px; overflow: hidden; border-color: #b9ab7838; transition: border-color .25s,transform .25s; }
.info-card::before { content: none; }
.info-card:hover { border-color: #e2c75b85; }
.recent-empty { color: #c6c8bf; font-size: 11px; line-height: 1.8; padding: 24px 2px; margin: 0; }
.profile-caption.is-signed-out { color: #aeb7c2; }
.profile-caption.is-signed-out .live-dot { background: #7f8995; box-shadow: none; animation: none; }
.profile-caption.is-stale .live-dot { background: #d9af56; box-shadow: none; animation: none; }
.account-intro { color: #bdc7d2; line-height: 1.8; }
.login-form { display: grid; gap: 12px; margin-top: 22px; }
.login-form label { font-size: 12px; font-weight: 650; }
.login-form .field-help { margin: -4px 0 0; font-size: 10px; color: #9ba8b8; line-height: 1.6; }
.login-form .input[aria-invalid="true"] { border-color: #ddb164; box-shadow: 0 0 0 3px #d6ae5014; }
.login-form .input:is(:focus,:focus-visible),.login-form .input[aria-invalid="true"] { outline: none; box-shadow: none; border-color: #8d9bab85; }
.shop-banner .shop-illustration { overflow: visible; }
.shop-banner .shop-illustration::after { content: none; }
.shop-banner .shop-illustration::before { right: -80px; mask-image: linear-gradient(90deg,#000 0%,#000 55%,transparent 100%); pointer-events: none; }
.shop-banner .shop-banner-copy,.shop-banner .payment-preview { position: relative; z-index: 1; }
#login-feedback:empty { display: none; }
.form-notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0; border: 1px solid #d1aa5a45; border-radius: 9px; background: linear-gradient(115deg,#d1aa5a0d,#121923b3); color: #e9dbc7; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; animation: form-notice-enter .18s ease-out both; }
.form-notice-icon { display: inline-flex; flex-shrink: 0; padding-top: 1px; color: #e8c16a; }
.form-notice-icon .icon { width: 17px; height: 17px; }
#checkout-feedback .form-notice { margin-top: 14px; }
.topup-error:not(:empty) { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #d1aa5a45; border-radius: 9px; background: linear-gradient(115deg,#d1aa5a0d,#121923b3); color: #e9dbc7; font-size: 11px; line-height: 1.65; animation: form-notice-enter .18s ease-out both; }
.topup-error:not(:empty)::before { content: '!'; flex-shrink: 0; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-top: 1px; border: 1px solid #e8c16a; border-radius: 50%; color: #e8c16a; font-size: 10px; font-weight: 700; line-height: 1; }
@keyframes form-notice-enter { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.login-command { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 17px; border: 1px solid #e4c44955; background: #e4c44909; border-radius: 10px; margin: 20px 0; }
.login-command code { font-size: clamp(16px,3vw,23px); color: #ffe58a; letter-spacing: 1px; }
.account-status { font-size: 12px; color: #d2bea0; line-height: 1.7; }
.account-error { color: #ffb5a4; }
.account-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.account-summary > div { border: 1px solid #ffffff12; border-radius: 9px; padding: 15px; background: #ffffff04; }
.account-summary small { display: block; color: #aeb8c5; font-size: 11px; margin-bottom: 7px; }
.account-summary strong { font-size: 20px; color: #ffe078; overflow-wrap: anywhere; }
.purchase > div:not(.purchase-price) { min-width: 0; }
.purchase small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 130px; }
.account-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.account-loading::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #ffdc5b; animation: account-pulse 1.6s ease-in-out infinite; }
.checkout-consent { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; color: #b8c2cf; line-height: 1.6; margin: 20px 0; }
.checkout-consent input { margin-top: 3px; accent-color: #ffdc5b; }
@keyframes account-pulse { 50% { opacity: .3; } }
@media(min-width:761px) and (max-width:1359px) { .activity-panel .recent-purchases { display: none; } }
@media(max-width:1050px) { .footer-columns { gap: 25px; grid-template-columns: minmax(0,1fr) minmax(250px,1fr); } .footer-community { grid-column: 2; } .footer-copy { grid-row: 1 / 3; } }
@media(max-width:760px) {
  .page-hero,.shop-page .shop-hero { --subpage-height: 315px; min-height: 315px; }
  .page-hero::before { width: 100%; background-position: 67% center; opacity: .66; mask-image: linear-gradient(90deg,#0004,#000),linear-gradient(180deg,transparent,#000 20%,#000 60%,transparent); }
  .page-hero h1 { max-width: 95%; }
  .shop-steps { gap: 11px; max-width: 290px; }
  .footer { margin-top: 40px; }
  .footer-crown { gap: 15px; margin-bottom: 26px; }
  .footer .footer-brand > .server-emblem { width: 44px; height: 44px; }
  .footer .footer-brand .brand-wordmark { width: 125px; }
  .footer-columns { grid-template-columns: minmax(0,1fr); gap: 25px; }
  .footer-copy,.footer-community { grid-column: auto; grid-row: auto; }
  .footer .footer-copy p { font-size: 10px; }
  .footer .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-relic .minecraft-icon { width: 80px; height: 80px; }
}
@media(prefers-reduced-motion:reduce) { .account-loading::before,.form-notice,.topup-error:not(:empty),.footer-rail { animation: none; } .product-card:hover .product-relic { transform: none; } .footer::after,.footer-rail { filter: none; } .footer-discord:is(:hover,:focus-visible) .discord-button-icon .icon,.footer-discord:is(:hover,:focus-visible) .discord-button-icon circle:last-of-type { animation: none; } .footer-discord:is(:hover,:focus-visible) > .icon { translate: none; } }
