@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --purple: #7455b8;
  --purple-deep: #493477;
  --purple-soft: #eee8f8;
  --purple-pale: #f8f5fc;
  --ink: #272333;
  --muted: #777385;
  --line: #e9e5ef;
  --white: #fff;
  --surface: #fbfaff;
  --shadow: 0 18px 55px rgba(47, 34, 77, .09);
  --radius: 22px;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--surface);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--surface); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }
.topline { min-height: 32px; display: flex; justify-content: center; align-items: center; gap: 9px; background: #f4effb; color: #625080; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 700; }
.topline-dot { width: 6px; height: 6px; border-radius: 50%; background: #8b70c5; box-shadow: 0 0 0 4px rgba(139,112,197,.12); }
.nav-wrap { height: 78px; max-width: 1240px; margin: auto; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 5; }
#site-header { background: rgba(255,255,255,.94); border-bottom: 1px solid rgba(230,225,238,.9); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px 13px 13px 5px; background: linear-gradient(145deg, #8b6dcc, #5b438d); color: white; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 23px; box-shadow: 0 6px 15px rgba(101,75,157,.23); }
.brand-word { font-family: 'Space Grotesk', sans-serif; font-size: 20px; line-height: 1.05; font-weight: 700; letter-spacing: -.055em; }
.brand-word > span { color: var(--purple); }
.brand-word small { display: block; margin-top: 5px; font: 700 8px/1 'DM Sans', sans-serif; letter-spacing: .18em; color: #91899f; }
.main-nav { display: flex; gap: 25px; align-items: center; justify-content: center; }
.nav-link { font-size: 13px; color: #625e6d; font-weight: 600; transition: color .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--purple); }
.nav-link.active { position: relative; }
.nav-link.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; border-radius: 2px; background: var(--purple); }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; border-radius: 99px; background: var(--purple); color: #fff; padding: 11px 17px; font-size: 12px; font-weight: 700; box-shadow: 0 7px 15px rgba(116,85,184,.2); transition: transform .2s, background .2s; }
.nav-cta:hover { background: var(--purple-deep); transform: translateY(-2px); }
.menu-toggle { display: none; border: 0; padding: 8px; background: transparent; cursor: pointer; }
.menu-toggle span { width: 23px; height: 2px; background: var(--ink); display: block; margin: 5px; border-radius: 3px; }

.hero { min-height: 570px; padding: 80px 26px 56px; background: linear-gradient(90deg, rgba(21,18,32,.74) 0%, rgba(32,25,43,.54) 43%, rgba(32,25,43,.12) 100%), linear-gradient(0deg, rgba(24,18,36,.45), transparent 48%), url('/assets/images/village-hero.webp') center 53% / cover no-repeat; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(23,19,31,.13)); pointer-events: none; }
.hero-inner { width: 100%; max-width: 1188px; margin: auto; position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 45px; align-items: center; }
.hero-copy { max-width: 660px; color: #fff; }
.hero-kicker, .eyebrow { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 800; color: #8d76bd; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 99px; background: rgba(255,255,255,.12); color: #fff; backdrop-filter: blur(8px); }
.hero-kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #d7c8f5; }
.hero h1 { font: 700 clamp(46px, 7vw, 82px)/.98 'Space Grotesk', sans-serif; letter-spacing: -.075em; margin: 23px 0 17px; max-width: 700px; text-shadow: 0 4px 24px rgba(0,0,0,.22); }
.hero h1 span { color: #d8c8fa; }
.hero-copy > p { max-width: 520px; color: rgba(255,255,255,.86); font-size: 16px; line-height: 1.75; margin: 0 0 27px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 45px; border: 0; border-radius: 12px; padding: 0 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: #fff; color: var(--purple-deep); box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.button-primary:hover { background: #f4effc; }
.button-purple { background: var(--purple); color: #fff; box-shadow: 0 8px 20px rgba(116,85,184,.2); }
.button-purple:hover { background: var(--purple-deep); }
.button-outline { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(5px); }
.button-outline:hover { background: rgba(255,255,255,.2); }
.hero-status { padding: 23px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 22px; box-shadow: 0 20px 55px rgba(17,13,25,.22); backdrop-filter: blur(12px); color: var(--ink); }
.status-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.status-heading strong { font: 700 15px 'Space Grotesk', sans-serif; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; color: #736b7e; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.status-indicator { width: 7px; height: 7px; border-radius: 50%; background: #a5a0ad; display: inline-block; }
.status-indicator.is-online { background: #39a875; box-shadow: 0 0 0 4px rgba(57,168,117,.11); }
.status-indicator.is-offline { background: #d58b71; }
.status-ip { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); background: #fbfaff; border-radius: 12px; padding: 11px 12px; }
.status-ip code { font: 700 12px 'Space Grotesk', monospace; color: #51456b; overflow-wrap: anywhere; }
.copy-button { border: 0; background: var(--purple-soft); color: var(--purple-deep); padding: 7px 10px; border-radius: 8px; font-size: 10px; font-weight: 800; cursor: pointer; flex: 0 0 auto; }
.status-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.status-stat { border-radius: 12px; background: #f8f6fb; padding: 12px; }
.status-stat span { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.status-stat strong { display: block; font: 700 19px 'Space Grotesk', sans-serif; margin-top: 3px; color: #45365f; }
.demo-caption { font-size: 10px; color: #8c8597; margin: 12px 0 0; line-height: 1.5; }

.section { padding: 82px 26px; }
.section-inner { max-width: 1188px; margin: auto; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }
.section-head h2, .page-intro h1 { font: 700 clamp(30px, 4vw, 43px)/1.1 'Space Grotesk', sans-serif; letter-spacing: -.06em; margin: 8px 0 0; }
.section-head p { margin: 0; max-width: 390px; color: var(--muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-card, .news-card, .staff-card, .rule-row, .profile-panel, .store-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(44,32,70,.035); }
.feature-card { padding: 25px; transition: transform .22s, box-shadow .22s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 14px; background: var(--purple-soft); color: var(--purple); font-size: 19px; margin-bottom: 19px; }
.feature-card h3, .news-card h3, .staff-card h3, .rule-row h3 { font: 700 17px 'Space Grotesk', sans-serif; margin: 0 0 8px; letter-spacing: -.025em; }
.feature-card p, .news-card p, .staff-card p, .rule-row p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0; }
.soft-band { background: linear-gradient(120deg, #f0eafa, #f9f7fc 70%); border-top: 1px solid #ebe4f5; border-bottom: 1px solid #ebe4f5; }
.callout { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 32px; background: #fff; border: 1px solid #e7def3; border-radius: 21px; box-shadow: 0 12px 35px rgba(66,48,100,.06); }
.callout h2 { font: 700 24px 'Space Grotesk', sans-serif; margin: 0 0 5px; letter-spacing: -.05em; }
.callout p { margin: 0; color: var(--muted); font-size: 12px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.news-card { padding: 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 10px; color: #958da1; }
.news-meta span { padding: 5px 8px; border-radius: 99px; color: var(--purple-deep); background: var(--purple-soft); font-weight: 800; }
.news-meta time { font-weight: 600; }
.news-card h3 { font-size: 16px; }

.page-hero { padding: 65px 26px 54px; background: radial-gradient(circle at 87% 12%, rgba(160,137,203,.17), transparent 28%), linear-gradient(135deg, #f1ebfa, #fbfaff 66%); border-bottom: 1px solid var(--line); }
.page-intro { max-width: 1188px; margin: auto; }
.page-intro p { max-width: 640px; color: var(--muted); font-size: 14px; margin: 13px 0 0; }
.page-body { padding: 48px 26px 82px; }
.page-body-inner { max-width: 1188px; margin: auto; }
.page-note { margin: 0 0 24px; padding: 14px 17px; border: 1px solid #e5d9f3; border-radius: 13px; background: #f7f2fc; color: #5e4e7e; font-size: 12px; line-height: 1.7; }
.empty-state { text-align: center; padding: 44px 25px; background: #fff; border: 1px dashed #dcd4e8; border-radius: var(--radius); color: var(--muted); }
.empty-state.wide { grid-column: 1 / -1; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 14px; background: var(--purple-soft); color: var(--purple); font-size: 20px; }
.empty-state h3 { font: 700 18px 'Space Grotesk', sans-serif; color: var(--ink); margin: 0 0 5px; }
.empty-state p { font-size: 12px; margin: 0; }
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.staff-card { text-align: center; padding: 26px; }
.staff-avatar { width: 74px; height: 74px; border-radius: 24px; margin: 0 auto 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #9a82c8, #58417e); font: 700 27px 'Space Grotesk', sans-serif; }
.staff-card h3 { margin: 6px 0; }
.rule-list { display: grid; gap: 12px; }
.rule-row { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 22px; align-items: start; }
.rule-number { font: 700 20px 'Space Grotesk', sans-serif; color: #a18cce; }
.rule-row h3 { margin-bottom: 5px; }

.player-search { display: flex; max-width: 650px; gap: 10px; margin-bottom: 20px; }
.input { width: 100%; min-width: 0; border: 1px solid #ddd7e8; border-radius: 12px; background: #fff; outline: none; padding: 13px 15px; color: var(--ink); font-size: 13px; transition: border .2s, box-shadow .2s; }
.input:focus { border-color: #9b83cc; box-shadow: 0 0 0 4px rgba(116,85,184,.1); }
.player-card-result { max-width: 650px; display: flex; align-items: center; gap: 19px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow); }
.player-card-result img { image-rendering: pixelated; border-radius: 12px; background: var(--purple-pale); }
.player-card-result h3 { font: 700 22px 'Space Grotesk', sans-serif; margin: 3px 0; }
.player-card-result p { margin: 5px 0 0; }
.uuid { color: #8c8498; font: 10px monospace; overflow-wrap: anywhere; }
.muted { color: var(--muted); font-size: 11px; }
.notice { border: 1px solid #e7def2; background: #f8f4fc; color: #63537f; padding: 13px 15px; border-radius: 12px; font-size: 12px; }
.notice-warn { border-color: #ecdcc8; background: #fff9f0; color: #80613e; }

.store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.store-panel { padding: 22px; }
.store-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.category-list { display: flex; flex-wrap: wrap; gap: 7px; }
.category-chip { border: 1px solid #e5deed; color: #6b6478; background: #fff; border-radius: 99px; padding: 8px 12px; font-size: 10px; font-weight: 800; cursor: pointer; }
.category-chip.active { color: #fff; background: var(--purple); border-color: var(--purple); }
.store-count { font-size: 10px; color: var(--muted); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.product-card { border: 1px solid var(--line); background: #fff; border-radius: 17px; padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.product-image { height: 112px; border-radius: 12px; background: linear-gradient(135deg, #f2ecfa, #faf8fd); display: grid; place-items: center; overflow: hidden; margin-bottom: 14px; color: #9077c1; font-size: 35px; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font: 700 15px 'Space Grotesk', sans-serif; margin: 0 0 6px; }
.product-card p { min-height: 42px; color: var(--muted); font-size: 11px; line-height: 1.6; margin: 0 0 14px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; }
.product-price { font: 700 16px 'Space Grotesk', sans-serif; color: var(--purple-deep); }
.product-add { border: 0; background: var(--purple-soft); color: var(--purple-deep); border-radius: 9px; padding: 9px 11px; font-size: 10px; font-weight: 800; cursor: pointer; }
.product-add:hover:not(:disabled) { background: #e4d9f4; }
.product-add:disabled { opacity: .55; cursor: not-allowed; }
.cart-panel { position: sticky; top: 20px; }
.cart-panel h2 { font: 700 18px 'Space Grotesk', sans-serif; margin: 0 0 5px; }
.cart-subtitle { color: var(--muted); font-size: 11px; margin: 0 0 16px; }
.cart-empty { color: var(--muted); background: #faf8fc; border-radius: 12px; padding: 18px; text-align: center; font-size: 11px; }
.cart-item { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-item strong { display: block; font-size: 11px; }
.cart-item span { color: var(--muted); font-size: 10px; }
.cart-remove { border: 0; background: transparent; color: #9a779f; font-size: 11px; font-weight: 800; cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; padding: 15px 0; font-size: 12px; font-weight: 800; }
.cart-total strong { font: 700 17px 'Space Grotesk', sans-serif; color: var(--purple-deep); }
.cart-panel label { display: block; font-size: 10px; font-weight: 800; color: #625a70; margin: 6px 0 7px; }
.cart-panel .input { padding: 11px 12px; font-size: 12px; }
.cart-panel .button { width: 100%; margin-top: 12px; }
.cart-help { margin-top: 12px; color: #8c8498; font-size: 10px; line-height: 1.6; }
.demo-mode { margin-bottom: 18px; }

#site-footer { background: #292438; color: #fff; padding: 49px 26px 20px; }
.footer-main { max-width: 1188px; margin: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 45px; padding-bottom: 38px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word small { color: #b4a9c9; }
.footer-brand p { max-width: 290px; color: #b9b2c5; font-size: 11px; line-height: 1.8; margin: 17px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 11px; color: #b9b2c5; }
.footer-links strong { color: #fff; font: 700 12px 'Space Grotesk', sans-serif; margin-bottom: 4px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1188px; margin: auto; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 14px; color: #92899f; font-size: 9px; }

@media (max-width: 920px) {
  .main-nav { gap: 15px; }
  .nav-wrap { gap: 14px; }
  .hero-inner { grid-template-columns: 1fr 300px; gap: 25px; }
  .store-layout { grid-template-columns: 1fr; }
  .cart-panel { position: static; }
}
@media (max-width: 720px) {
  .nav-wrap { height: 69px; padding: 0 18px; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav-cta { padding: 9px 12px; font-size: 10px; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 16px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 25px rgba(40,30,60,.08); flex-direction: column; align-items: flex-start; gap: 15px; }
  .main-nav.open { display: flex; }
  .nav-link.active::after { display: none; }
  .hero { min-height: auto; padding: 63px 20px 30px; background-position: 56% center; }
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { font-size: clamp(48px, 13vw, 70px); }
  .hero-copy > p { font-size: 14px; }
  .hero-status { max-width: 420px; }
  .section { padding: 57px 20px; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .feature-grid, .news-grid, .staff-grid { grid-template-columns: 1fr; }
  .callout { display: block; padding: 24px; }
  .callout .button { margin-top: 18px; }
  .page-hero { padding: 48px 20px 38px; }
  .page-body { padding: 34px 20px 60px; }
  .product-grid { grid-template-columns: 1fr; }
  .player-search { flex-direction: column; }
  .player-search .button { width: 100%; }
  .player-card-result { align-items: flex-start; }
  #site-footer { padding: 40px 20px 18px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
