/* Shamon 2 — page layout: base, grids, sections, hero, call to action, footer. Components (sh-*) are in components.css. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg-base); color: var(--text-primary); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
a { color: var(--crimson-ink); }
a:hover { color: var(--text-primary); }
img { max-width: 100%; height: auto; }
code { padding: 1px 6px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--bg-panel); color: var(--gold-light); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; }
.page { min-height: 100vh; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icons of the sprite take their stroke from here (the width of each drawing: thin / normal / bold). */
.sh-icon { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sh-icon--thin { stroke-width: 1.25; }
.sh-icon--bold { stroke-width: 2; }


/* ---------- grids ---------- */
.wrap { position: relative; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.g2, .g3, .g4, .g5 { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }

/* ---------- sections ---------- */
.sec { position: relative; padding: 120px 0; overflow-x: clip; }
.sec--alt { background: var(--bg-section); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec--clip { overflow: hidden; }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-bottom: 48px; text-align: center; }
.sec-head--split { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; text-align: left; }
.sec-head--tight { margin-bottom: 32px; }
.sec-h2 { margin: 0; font-family: var(--font-display); font-size: 44px; line-height: 1.15; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sec-lead { margin: 0; max-width: 620px; font-size: 18px; line-height: 30px; color: var(--text-secondary); }
.sec-note { margin: 0; max-width: 440px; font-size: 16px; line-height: 26px; color: var(--text-secondary); }
.sec-foot { margin: 40px auto 0; max-width: 620px; font-size: 15px; line-height: 24px; text-align: center; color: var(--text-secondary); }
.text-lead { margin: 0; font-size: 18px; line-height: 30px; color: var(--text-secondary); }
.text-body { margin: 0; font-size: 16px; line-height: 26px; color: var(--text-secondary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* metal gradient text */
.metal { display: inline-block; padding-right: .08em; background: linear-gradient(180deg, #ffffff 0%, #c9cdd6 38%, #6f7380 62%, #a6a7af 78%, #d7b26d 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 30px rgba(166, 31, 50, .45)); }

/* atmosphere */
.rays { position: absolute; inset: 0; pointer-events: none; background: conic-gradient(from 200deg at 78% 34%, transparent 0deg, rgba(154, 114, 245, .07) 12deg, transparent 24deg, rgba(214, 59, 81, .06) 40deg, transparent 56deg, rgba(154, 114, 245, .05) 80deg, transparent 100deg); }
.fog { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.fog--hero { width: 900px; height: 260px; left: -200px; bottom: 40px; background: rgba(114, 86, 200, .12); }
.fog--stats { width: 700px; height: 400px; left: 10%; top: 120px; background: rgba(114, 86, 200, .14); }
.fog--community { width: 800px; height: 300px; right: -100px; top: 60px; background: rgba(114, 86, 200, .16); }
.fog--download { width: 700px; height: 320px; left: -120px; top: 80px; background: rgba(166, 31, 50, .14); }
.texture { position: absolute; inset: 0; opacity: .06; pointer-events: none; mix-blend-mode: overlay; background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .5) 0 1px, transparent 1px 6px); }
.embers { position: absolute; inset: 0; pointer-events: none; }
.ember { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #d63b51; box-shadow: 0 0 8px #d63b51; opacity: .7; animation: rise 14s linear infinite; }
.ember.v { background: #9a72f5; box-shadow: 0 0 8px #9a72f5; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .8; } 100% { transform: translateY(-420px) translateX(40px); opacity: 0; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 920px; overflow: hidden; background: radial-gradient(70% 60% at 78% 30%, rgba(114, 86, 200, .22), transparent 60%), radial-gradient(60% 50% at 12% 85%, rgba(166, 31, 50, .24), transparent 65%), linear-gradient(180deg, #0b0c13 0%, #090a0f 100%); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 0%; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(9, 10, 15, .94) 0%, rgba(9, 10, 15, .7) 30%, rgba(9, 10, 15, .15) 55%, rgba(9, 10, 15, 0) 70%), linear-gradient(180deg, rgba(9, 10, 15, .55) 0%, rgba(9, 10, 15, 0) 16%, rgba(9, 10, 15, 0) 68%, #090a0f 100%); }
.hero-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 64px; min-height: 920px; padding-top: 140px; padding-bottom: 64px; }
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 28px; max-width: 620px; }
.hero-title { margin: 0; font-family: var(--font-display); font-size: 120px; line-height: .92; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.hero-tagline { margin: 14px 0 0 6px; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-light); }
.hero-text { margin: 0; max-width: 520px; font-size: 18px; line-height: 30px; color: var(--text-secondary); }
.hero-status { position: relative; z-index: 2; width: 100%; max-width: 480px; }

/* ---------- about ---------- */
.about-copy { display: flex; flex-direction: column; gap: 24px; }
.about-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: var(--shadow-card), var(--glow-crimson); }
.about-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 26% 30%; }
.about-keys { margin-top: 56px; }

/* ---------- features ---------- */
.showcase { margin-bottom: 32px; }
.sh-feat .sh-gem { --g: 46px; }

/* ---------- stats panel: bar width from --v (0..100), the track has pointed ends ---------- */
.sh-prog-fill { width: calc(var(--v, 0) * 1% - var(--v, 0) * .18px); }

/* ---------- equipment ---------- */
.tier-cards { margin-bottom: 24px; }
.tier-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 16px 26px; text-align: center; }
.tier-card .sh-medal { --m: 92px; margin-bottom: 8px; }
.tier-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-primary); }
.tier-price { font-size: 13px; line-height: 18px; color: var(--a-ink, var(--text-secondary)); }

/* ---------- bosses ---------- */
.sh-boss .sh-art--empty { aspect-ratio: 4 / 5; display: grid; place-items: center; }
.sh-boss .sh-art--empty .sh-medal { --m: 96px; position: relative; z-index: 1; }

/* ---------- rankings ---------- */
.col-rank { width: 56px; }
.sh-table tr.is-empty td { padding: 40px 16px; text-align: center; color: var(--text-secondary); }

/* ---------- news : no page of their own, the whole text is shown ---------- */
.sh-news-text { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* ---------- community ---------- */
.promo-block { margin-bottom: 32px; }

/* ---------- download ---------- */
.steps { list-style: none; margin: 0 0 32px; padding: 0; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px 24px; }
.step-num { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 800; }
.step-title { font-family: var(--font-display); font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.step-text { font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.dl-card { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.dl-card .sh-btn { align-self: flex-start; }
.dl-kicker { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--a-ink); }
.dl-title { font-family: var(--font-display); font-size: 26px; letter-spacing: .04em; text-transform: uppercase; }
.dl-meta { font-size: 15px; color: var(--text-secondary); }

/* Links the owner has not filled in yet (js/config.js) : shown, not clickable. */
.is-soon { pointer-events: none; opacity: .55; }

/* ---------- call to action ---------- */
.cta-sec { position: relative; overflow: hidden; padding: 160px 0; background: #090a0f; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 12%; }
.cta-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #090a0f 0%, rgba(9, 10, 15, .85) 34%, rgba(9, 10, 15, .2) 62%, rgba(9, 10, 15, .35) 100%), linear-gradient(180deg, #090a0f 0%, rgba(9, 10, 15, 0) 18%, rgba(9, 10, 15, 0) 80%, #07080c 100%); }
.cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; text-align: left; }
.cta-sep { width: 100%; max-width: 240px; }
.cta-title { font-size: 64px; line-height: 1.05; font-weight: 800; }
.cta-text { margin: 0; max-width: 540px; font-size: 18px; line-height: 30px; color: var(--text-secondary); }
.cta-main { min-width: 340px; }

/* ---------- footer ---------- */
.site-footer { padding: 72px 0 32px; background: #07080c; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-logo { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-sub { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.footer-text { font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 48px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-title { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-primary); }
.foot-col a { font-size: 15px; line-height: 24px; color: var(--text-secondary); text-decoration: none; }
.foot-col a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; color: var(--text-secondary); }

/* ---------- town NPCs, commands, VIP, questions ---------- */
.npc .sh-feat-title { margin: 0; }
.npc-name { display: block; margin-top: 2px; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--a-ink, var(--gold-light)); }
.cmd-table { min-width: 0; }
.cmd-table td { vertical-align: top; line-height: 24px; }
.cmd-table td.cmd { width: 1%; white-space: nowrap; }
.cmd-table td.cmd code + code { margin-left: 6px; }
.offer { display: flex; flex-direction: column; padding: 32px; }
.check-list { margin: 4px 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-primary); }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--a, var(--gold)); box-shadow: 0 0 10px var(--a-glow, transparent); }
.price-list { margin: auto 0 0; display: grid; gap: 2px; }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-strong); }
.price-row:last-child { border-bottom: 0; }
.price-row dt { flex: 1; color: var(--text-secondary); }
.price-row dd { margin: 0; font-weight: 800; color: var(--a-ink, var(--gold-light)); text-align: right; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 4px; background: var(--bg-panel); }
.faq-item[open] { border-color: var(--line-magic); }
.faq-item summary { position: relative; padding: 16px 48px 16px 20px; font-weight: 700; color: var(--text-primary); cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--violet-glow); border-bottom: 2px solid var(--violet-glow); transform: rotate(45deg); transition: transform .2s; }
.faq-item[open] summary::after { margin-top: -2px; transform: rotate(-135deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--violet-glow); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.rules { padding: 32px; }
.rules-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; color: var(--text-primary); }
.rules-list li::marker { color: var(--crimson-ink); font-weight: 800; }

/* ---------- language switch (header) ---------- */
.lang-switch { display: flex; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.lang-switch button { min-width: 38px; padding: 0 8px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--text-secondary); font: 800 11px/1 var(--font-sans); letter-spacing: .06em; cursor: pointer; }
.lang-switch button:last-child { border-right: 0; }
.lang-switch button:hover { color: var(--text-primary); }
.lang-switch button[aria-pressed="true"] { color: var(--text-primary); background: linear-gradient(180deg, rgba(166, 31, 50, .35), rgba(166, 31, 50, .12)); box-shadow: inset 0 -2px 0 var(--crimson); }
.lang-switch button:focus-visible { outline: 2px solid var(--violet-glow); outline-offset: -2px; }

/* ---------- long values in the rates row ---------- */
.sh-rate-value--long { font-size: 40px; line-height: 56px; }

/* ---------- responsive ---------- */
@media (prefers-reduced-motion: reduce) { .ember { animation: none; } }
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .faq-wrap { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-img { object-position: 68% 0%; }
  .hero-shade { background: linear-gradient(90deg, rgba(9, 10, 15, .92) 0%, rgba(9, 10, 15, .55) 60%, rgba(9, 10, 15, .35) 100%), linear-gradient(180deg, rgba(9, 10, 15, .5) 0%, rgba(9, 10, 15, 0) 20%, #090a0f 100%); }
}
@media (max-width: 720px) {
  .sec { padding: 72px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .offer, .rules { padding: 24px 20px; }
  .cmd-table td.cmd { white-space: normal; }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero, .hero-inner { min-height: 760px; }
  .hero-inner { padding-top: 110px; }
  .hero-img { object-position: 74% 0%; opacity: .6; }
  .hero-title { font-size: 64px; }
  .hero-tagline { font-size: 15px; letter-spacing: .24em; }
  .sec-h2 { font-size: 32px; }
  .cta-title { font-size: 40px; }
  .cta { width: 100%; }
  .cta .sh-btn { width: 100%; min-width: 0; }
  .sh-btn--arrow { padding: 0 40px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-rate-value--long { font-size: 34px; }
  .sh-header-actions .sh-btn--sm { display: none; }
  .lang-switch button { min-width: 34px; padding: 0 6px; }
}

/* Download : account buttons under the steps (cabinet) */
.dl-account { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0 0 48px; }

/* Text for screen readers and search engines only (the full name in the hero title). */
.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; }

/* Tables : no scroll bars on wide screens (a 1px overflow of the frame ornaments showed two white bars) ; on phones a wide
   table scrolls sideways with a thin bar in the colours of the site. */
.sh-table-wrap { overflow: visible; }
@media (max-width: 900px) {
  .sh-table-wrap { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: rgba(185, 138, 74, .55) transparent; }
  .sh-table-wrap::-webkit-scrollbar { height: 6px; }
  .sh-table-wrap::-webkit-scrollbar-thumb { background: rgba(185, 138, 74, .55); border-radius: 3px; }
  .sh-table-wrap::-webkit-scrollbar-track { background: transparent; }
}

/* Boss portraits (renders with a transparent background, img/bosses) : the outline of the model glows in the colour of the
   card (gold epic, crimson raid, violet custom) over a soft aura ; on hover the portrait comes closer and its glow breathes. */
.sh-art--boss::before { content: ""; position: absolute; inset: 8% 6% 18%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, var(--a-glow, rgba(214, 59, 81, .35)), transparent 75%); opacity: .55; transition: opacity .6s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.sh-boss .sh-art .sh-boss-img { position: relative; z-index: 1; transform-origin: 50% 40%;
  filter: drop-shadow(0 0 1px var(--a, #d63b51)) drop-shadow(0 0 7px var(--a-glow, rgba(214, 59, 81, .35))) drop-shadow(0 0 18px var(--a-glow, rgba(214, 59, 81, .35)));
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .6s ease; }
.sh-boss:hover .sh-art--boss::before { opacity: 1; transform: scale(1.12); }
.sh-boss:hover .sh-art .sh-boss-img { transform: scale(1.07) translateY(-2%); animation: boss-glow 2.4s ease-in-out .3s infinite alternate; }
@keyframes boss-glow {
  from { filter: saturate(1.15) brightness(1.08) drop-shadow(0 0 1px var(--a, #d63b51)) drop-shadow(0 0 8px var(--a-glow, rgba(214, 59, 81, .35))) drop-shadow(0 0 22px var(--a-glow, rgba(214, 59, 81, .35))); }
  to { filter: saturate(1.25) brightness(1.14) drop-shadow(0 0 2px var(--a, #d63b51)) drop-shadow(0 0 14px var(--a, #d63b51)) drop-shadow(0 0 34px var(--a-glow, rgba(214, 59, 81, .35))); }
}
@media (prefers-reduced-motion: reduce) {
  .sh-boss:hover .sh-art .sh-boss-img { animation: none; transform: none; }
}
.sh-art--boss::after { z-index: 2; }
.sh-boss .sh-boss-body { z-index: 3; }

/* HopZone vote banner : fixed in the bottom right corner (the top asks for it on the site), half size on phones. */
.hz-vote { position: fixed; right: 0; bottom: 0; z-index: 900; line-height: 0; }
.hz-vote img { display: block; width: 140px; height: 120px; border: 0; }
@media (max-width: 720px) {
  .hz-vote img { width: 70px; height: 60px; }
}
