/* Foxel Games site styles.
   Page content uses a small set of building blocks:
   .band (full-width section, optional --bg, --bg-img, --overlay, --pt/--pb, --max)
   .wrap (centred content), .cols/.col (--w column width), .text, .btn, .img,
   .gallery (--cols), .yt (YouTube), .vid (video), .cards, .feed, .accordion, .sp (--h spacer),
   .panel (coloured box, optional --bg), .btn-light (white button for coloured backgrounds). */

/* Layout variables apply only to the element that sets them */
@property --bg { syntax: "*"; inherits: false; }
@property --bg-img { syntax: "*"; inherits: false; }
@property --overlay { syntax: "*"; inherits: false; }
@property --overlay-op { syntax: "*"; inherits: false; }
@property --pt { syntax: "*"; inherits: false; }
@property --pb { syntax: "*"; inherits: false; }
@property --pl { syntax: "*"; inherits: false; }
@property --pr { syntax: "*"; inherits: false; }
@property --w { syntax: "*"; inherits: false; }
@property --h { syntax: "*"; inherits: false; }

:root {
  --primary: #4214c1;
  --accent: #4214c1;
  --btn: #ffa300;
  --btn-hover: #4214c1;
  --text: #3a3a3a;
  --heading: #000;
  --page-bg: #fff;
  --footer-bg: #1c1a24;
  --badge: #4214c1;
  --font: "axia", system-ui, sans-serif;
  /* Elementor global colours used in converted pages */
  --e-global-color-primary: #4214c1;
  --e-global-color-secondary: #ffa300;
  --e-global-color-accent: #40f;
  --e-global-color-text: #000;
  --radius: 8px;
  --max-width: 1140px;
  --gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font: 400 1rem/1.85 var(--font);
}
img, video { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--text); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); line-height: 1.3; margin: 0 0 .5em; }
h1, h2, h3, h4, h5, h6 { font-weight: 400; }
h2, h3, h4, h5, h6 { font-style: italic; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.333rem; }
h5 { font-size: 1.2rem; font-weight: 400; }
h6 { font-size: 1rem; font-weight: 400; }
p, ul, ol, table, blockquote { margin: 0 0 1em; }
::selection { background: var(--accent); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 16px; z-index: 1000; }
.skip:focus { left: 16px; }
.ico { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; }
.ta-left { text-align: left; } .ta-center { text-align: center; } .ta-right { text-align: right; }

/* ---------- header ---------- */
.site-header { background: var(--primary); position: relative; z-index: 50; }
.header-in { max-width: 1366px; margin: 0 auto; padding: 18px 40px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.logo { justify-self: center; line-height: 0; }
.logo img { width: 147px; height: auto; }
.social { display: flex; gap: 2px; margin: 0; }
.social a { color: #fff; padding: 6px 7px; font-size: 1.1rem; line-height: 1; }
.social a:hover { color: var(--btn); }
.site-nav { justify-self: end; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.site-nav li { position: relative; margin: 0; }
.site-nav a { color: #fff; display: inline-block; padding: 8px 14px; font-size: 1.1rem; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--btn); }
.site-nav .has-sub { display: flex; align-items: center; }
.sub-toggle { background: none; border: 0; padding: 4px; margin-left: -12px; color: #fff; cursor: pointer; font-size: .8rem; border-radius: 0; }
.sub-toggle:hover, .sub-toggle:focus-visible { background: none; color: var(--btn); }
.site-nav .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; right: 0; min-width: 240px; background: #fff;
  border-top: 2px solid var(--btn); box-shadow: 0 4px 12px rgba(0,0,0,.1); opacity: 0; visibility: hidden; transition: opacity .2s; }
.site-nav .sub a { display: block; padding: 6px 20px; color: var(--text); font-size: 1rem; }
.site-nav .sub a:hover { color: var(--primary); }
.has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { opacity: 1; visibility: visible; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.6rem; padding: 4px 8px; cursor: pointer; border-radius: 0; justify-self: end; }
.nav-toggle:hover, .nav-toggle:focus-visible { background: none; color: var(--btn); }

@media (max-width: 920px) {
  .header-in { padding: 14px 16px; grid-template-columns: 1fr auto; }
  .header-in > .social { display: none; }
  .logo { justify-self: start; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; justify-self: stretch; background: var(--primary); box-shadow: 0 6px 12px rgba(0,0,0,.15); }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .site-nav a { display: block; padding: 10px 20px; }
  .site-nav .has-sub { flex-wrap: wrap; }
  .site-nav .has-sub > a { flex: 1; }
  .sub-toggle { margin: 0; padding: 10px 20px; }
  .site-nav .sub { position: static; display: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; width: 100%; padding: 0 0 0 16px; background: none; }
  .site-nav .sub a { color: #fff; }
  .has-sub.open > .sub { display: block; }
  .has-sub:hover > .sub { display: none; }
  .has-sub.open:hover > .sub { display: block; }
}

/* ---------- content building blocks ---------- */
.band {
  position: relative;
  background-color: var(--bg, transparent);
  background-image: var(--bg-img, none);
  background-size: cover;
  background-position: center;
  padding: var(--pt, 10px) var(--pr, 0) var(--pb, 10px) var(--pl, 0);
}
.band[style*="--overlay"]::before { content: ""; position: absolute; inset: 0; background: var(--overlay); opacity: var(--overlay-op, .5); }
.band > * { position: relative; }
.band-inner { padding-left: 10px; padding-right: 10px; max-width: var(--max, none); margin-left: auto; margin-right: auto; }
.wrap { max-width: var(--max, var(--max-width)); margin: 0 auto; padding: 10px 16px; }
.band-full > .wrap { max-width: none; }
.wrap > :not(:last-child), .col > :not(:last-child), .band-inner > :not(:last-child) { margin-bottom: var(--gap); }
.wrap > :last-child, .col > :last-child { margin-bottom: 0; }

.cols { display: flex; margin: 0 -10px; }
.cols-middle { align-items: center; }
.col { width: var(--w, 100%); padding: 10px; background-color: var(--bg, transparent); background-image: var(--bg-img, none); background-size: cover; }
@media (max-width: 767px) {
  .cols { flex-direction: column; }
  .col { width: 100%; }
}

.text > :last-child { margin-bottom: 0; }
.text ul, .text ol { padding-left: 1.4em; }
.text img { border-radius: var(--radius); }
.text table { border-collapse: collapse; width: 100%; }
.text td, .text th { border: 1px solid rgba(0,0,0,.1); padding: 6px 10px; }
.img { text-align: center; line-height: 0; }
.img img, .imgbox img { border-radius: var(--radius); }
figure { margin: 0; }
figcaption { font-size: .9rem; line-height: 1.5; margin-top: 8px; }
.sp { height: var(--h, 50px); margin: 0 !important; }
hr { border: 0; border-top: 1px solid rgba(0,0,0,.15); }

.btn, button, input[type="submit"] {
  display: inline-block;
  background: var(--btn-bg, var(--btn));
  color: var(--btn-fg, #fff);
  border: 0;
  border-radius: 1000px;
  padding: 12px 24px;
  font: 400 1rem/1 var(--font);
  cursor: pointer;
  transition: background .2s;
}
.btn:hover, .btn:focus-visible, button:hover, button:focus-visible { background: var(--btn-hover); color: var(--btn-fg, #fff); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--heading); }
.btn-light:hover, .btn-light:focus-visible { background: var(--btn); color: #fff; }
p:has(> .btn:only-child) { margin-bottom: 0; }

/* YouTube embeds load only when clicked */
.yt { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; line-height: 0; }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; border-radius: 12px;
  background: var(--btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat; transition: transform .2s; }
.yt:hover::after { transform: scale(1.08); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.framed { box-shadow: 0 0 0 8px var(--btn); border-radius: var(--radius); margin: 8px; overflow: hidden; line-height: 0; }
.vid { display: block; width: 100%; border-radius: var(--radius); background: #000; }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap); align-items: start; }
.gallery a, .gallery img { display: block; line-height: 0; }
.gallery img { width: 100%; border-radius: var(--radius); transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
@media (max-width: 767px) { .gallery { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); } }

.slides { position: relative; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius); }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.slides img.on, .slides img:first-child:not(.off) { opacity: 1; }

.accordion details { border: 1px solid #d4d4d4; background: #fff; }
.accordion details + details { border-top: 0; }
.accordion summary { cursor: pointer; padding: 14px 20px; font-weight: 600; list-style: none; position: relative; padding-left: 44px; }
.accordion summary::before { content: "+"; position: absolute; left: 20px; color: var(--accent); font-weight: 700; }
.accordion summary { font-weight: 400; font-size: 1.1rem; }
.accordion details[open] summary::before { content: "\2212"; }
.accordion details > div { padding: 0 20px 14px; border-top: 1px solid #eee; padding-top: 14px; }

.quote { text-align: center; font-size: 1.3rem; font-style: italic; color: #000; margin: 0; }
.quote cite { display: block; font-size: 1rem; font-style: normal; color: var(--text); margin-top: 6px; }
.quote cite::before { content: "\2014 "; }

.imgbox { text-align: center; }

/* Coloured box (Discord card on the help page) */
.panel { height: 100%; background: var(--bg, var(--primary)); color: #fff; border-radius: 10px; padding: 40px; }
.panel h2 { color: #fff; font-size: 2.2rem; }
.panel p { max-width: 440px; }
.cols:has(.panel) .img, .cols:has(.panel) .img img { height: 100%; border-radius: 10px; }
@media (max-width: 767px) { .panel { padding: 28px 24px; } }

/* Map details box (map pages) */
.details { background: var(--primary); color: #fff; border-radius: 10px; padding: 14px 20px 18px; }
.details h2 { color: #fff; font-size: 1.75rem; margin-bottom: 8px; }
.details p { font-size: .9rem; line-height: 1.75; }
.imgbox h3 { margin-top: 12px; }

/* ---------- map cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 30px; text-align: center; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card[hidden] { display: none; }
.card-img { display: block; line-height: 0; margin-bottom: 14px; }
.card-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.badge { display: inline-block; background: var(--badge); color: #fff; font-size: .8rem; line-height: 1; padding: 6px 8px; border-radius: 5px; margin: 0 0 10px; }
.card-title { font-size: 1.5rem; color: #000; margin: 0 0 8px; }
.card-title a { color: #000; }
.card-title a:hover { color: var(--accent); }
.card-text { font-size: .9rem; line-height: 1.75; }
@media (max-width: 1024px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* Boxed cards (skin packs) */
.card-box { background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.15); border-radius: 3px; overflow: hidden; text-align: left; }
.card-box .card-img { margin: 0; }
.card-box .card-img img { border-radius: 0; }
.card-box .card-title { font-size: 1.75rem; padding: 20px 30px 0; margin: 0; }
.card-box .card-title a { color: var(--primary); }
.card-more { padding: 10px 30px 24px; margin: 0; font: 700 .75rem/1 system-ui, sans-serif; text-transform: uppercase; }
.card-more a { color: var(--btn); }

/* Map feed (home page): image with an overlapping text box */
.feed { display: grid; gap: 60px; max-width: 1000px; margin: 0 auto; }
.feed-item { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.feed-item .card-img { margin: 0; }
.feed-item .card-img img { border-radius: 4px; }
.feed-body { background: #fff; box-shadow: 0 0 30px rgba(0,0,0,.08); padding: 30px; margin-left: -30px; position: relative; }
.feed-body .badge { border-radius: 0; }
.feed-body .card-title { font-size: 1.4rem; }
.feed-body .card-text { margin-bottom: 16px; }
@media (max-width: 767px) {
  .feed-item { grid-template-columns: 1fr; }
  .feed-body { margin: -20px 12px 0; }
}
@media (max-width: 767px) { .cards, .cards-2 { grid-template-columns: 1fr; } }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px !important; }
.filters button { border-radius: 8px; padding: 6px 12px; font-size: .85rem; font-weight: 400; }
.filters button { background: var(--primary); }
.filters button:hover, .filters button[aria-pressed="true"] { background: var(--btn); }
.map-search { max-width: 420px; margin: -10px auto 30px !important; }

/* ---------- forms ---------- */
input[type="text"], input[type="email"], input[type="search"], input:not([type]), textarea {
  width: 100%; font: inherit; color: #666; background: #fff; border: 1px solid #ccc; border-radius: 10px; padding: 8px 12px;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg:empty { display: none; }
.form-msg { font-weight: 600; }
.form-msg.ok { color: #1b7f3b; }
.form-msg.err { color: #c21f1f; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: #fff; border-top: 3px solid var(--btn); }
.footer-in { max-width: 1366px; margin: 0 auto; padding: 50px 40px 40px; display: grid; grid-template-columns: 1fr 1.6fr 2.4fr; gap: 40px; align-items: start; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--btn); }
.site-footer h2 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.site-footer p { margin: 0 0 24px; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 1.9; font-size: .95rem; }
.footer-discord { align-self: center; }
.footer-discord img { width: 280px; }
.copyright { text-align: center; font-size: .95rem; margin: 0 !important; padding: 18px 20px; background: #000; }
.newsletter { position: relative; display: flex; max-width: 580px; flex-wrap: wrap; }
.newsletter label { flex: 1; }
.newsletter input[type="email"] { border-radius: 100px; height: 45px; padding: 0 130px 0 14px; border: 0; background: #fafafa; }
.newsletter button { position: absolute; right: 0; top: 0; height: 45px; padding: 0 40px; background: var(--primary); }
.newsletter button:hover { background: var(--btn); }
.newsletter .form-msg { flex-basis: 100%; margin: 10px 0 0; }
.site-footer .form-msg.ok { color: #8fe3a8; }
.site-footer .form-msg.err { color: #ffb4b4; }
@media (max-width: 920px) { .footer-in { grid-template-columns: 1fr 1fr; padding: 40px 20px; } .footer-in > :last-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer-in { grid-template-columns: 1fr; } }

/* ---------- cookie banner, lightbox ---------- */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; background: rgba(0,0,0,.92); color: #fff; font-size: .85rem; padding: 12px 20px;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie button { padding: 8px 22px; font-size: .85rem; background: var(--primary); }
.cookie .link { background: none; text-decoration: underline; padding: 8px; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 88vh; width: auto; border-radius: 4px; }
.lightbox button { position: absolute; background: none; font-size: 2rem; padding: 12px 16px; color: #fff; }
.lightbox button:hover { background: rgba(255,255,255,.1); }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* Elementor visibility classes kept by the converter */
@media (max-width: 767px) { .hide-phone, .hide-mobile { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .hide-tablet { display: none !important; } }
@media (min-width: 1025px) { .hide-desktop { display: none !important; } }

@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.667rem; }
  h3 { font-size: 1.333rem; }
  .band[style*="--pt"] { padding-top: min(var(--pt), 60px); padding-bottom: min(var(--pb), 60px); }
  .band { padding-left: 0; padding-right: 0; }
}
