/* ============================================================
   USM-eM WINDS EDITION — THEME CSS v3
   Reference: Super Smash Bros. Wii U main menu
   Light background · Pill + circle buttons · Thick outlines
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@700;800;900&family=Exo+2:wght@400;600&display=swap');

/* ---- TOKENS ---- */
:root {
  --c-bg:      #1a1a1a;
  --c-bg2:     #242424;
  --c-bg3:     #2e2e2e;
  --c-green:   #3ecb31;
  --c-green-d: #2aaa20;
  --c-white:   #f0f0f0;
  --c-grey:    #888888;
  --c-border:  #3a3a3a;
  --c-black:   #0a0a0a;

  --font-ui:   'Nunito', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  --outline-w: 3px;
  --outline:   var(--outline-w) solid var(--c-border);

  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background-color: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin-bottom: 1em; }
ul, ol { padding-left: 1.5em; }

/* ================================================================
   PAGE WRAPPER
   ================================================================ */
#page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ================================================================
   HEADER / NAV
   ================================================================ */
#masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: var(--c-bg2);
  border-bottom: var(--outline);
}

/* Branding */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.site-branding .custom-logo { height: 38px; width: auto; }
.site-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--c-white);
}
.site-title a { color: inherit; }

/* Pill nav buttons */
#primary-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}
#primary-nav ul li a {
  display: inline-flex;
  align-items: center;
  padding: 6px 18px;
  background: var(--c-bg3);
  border: var(--outline);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--c-white);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
#primary-nav ul li a:hover {
  background: var(--c-green);
  color: var(--c-bg);
  border-color: var(--c-green);
}
#primary-nav ul li.current-menu-item > a,
#primary-nav ul li.current_page_item > a {
  background: var(--c-green);
  color: var(--c-bg);
  border-color: var(--c-green);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 3px;
  background: var(--c-bg);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 999;
  background: var(--c-bg2);
  border-bottom: var(--outline);
  padding: 1rem 1.5rem;
  transition: transform 0.3s var(--ease);
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mobile-nav ul li a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--c-bg2);
  border: var(--outline);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--c-white);
}
.mobile-nav ul li a:hover { background: var(--c-green); }

/* ================================================================
   BUTTONS
   ================================================================ */

/* Pill — primary action, large menu items */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 14px 28px;
  background: var(--c-green);
  border: 3px solid var(--c-green);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--c-bg);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-pill:hover {
  background: var(--c-grey);
  border-color: var(--c-grey);
  color: var(--c-bg);
}
.btn-pill.secondary {
  background: var(--c-bg3);
  border-color: var(--c-border);
  color: var(--c-white);
}
.btn-pill.secondary:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-bg);
}

/* Circle — secondary items */
.btn-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 3px solid var(--c-border);
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.62rem;
  text-align: center;
  color: var(--c-white);
  cursor: pointer;
  text-decoration: none;
  background: var(--c-bg3);
  line-height: 1.2;
  gap: 2px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-circle:hover {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-bg);
}
.btn-circle.green  { background: var(--c-green); border-color: var(--c-green); color: var(--c-bg); }
.btn-circle.blue   { background: #2a6fa8; border-color: #2a6fa8; }
.btn-circle.yellow { background: #8a7010; border-color: #8a7010; }

/* ================================================================
   CONTENT WRAPPER (inner pages)
   ================================================================ */
#content {
  flex: 1;
  padding-top: 64px;
}

/* ================================================================
   FRONT PAGE — game screen layout
   ================================================================ */
body.game-screen-page {
  overflow: hidden;
  height: 100vh;
}

.game-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  padding: 2rem 3rem;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.game-left {
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-logo-wrap {
  max-width: 480px;
  width: 100%;
}
.game-logo-wrap img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(62, 203, 49, 0.3));
}
.game-logo-text {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  color: var(--c-white);
}

.game-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.game-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.game-right .usmem-nav-btn svg {
  display: block;
}

/* ================================================================
   INNER PAGE — post cards
   ================================================================ */
.site-section {
  padding: 3rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--c-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 3px;
  background: var(--c-bg);
  border-radius: 2px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.post-card {
  background: var(--c-bg2);
  border: var(--outline);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  
}
.post-card:hover {
}

.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--c-bg);
}
.post-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.post-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
}
.post-card-cat {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--c-green-d);
  margin-bottom: 0.35rem;
}
.post-card-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.post-card-title a { color: inherit; }
.post-card:hover .post-card-title { color: var(--c-green-d); }
.post-card-excerpt {
  font-size: 0.85rem;
  color: var(--c-grey);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--c-grey);
  font-family: var(--font-ui);
  font-weight: 700;
}
.post-card-readmore {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: var(--c-green);
  border: 2px solid var(--c-black);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--c-white);
  
}
.post-card-readmore:hover {
}

/* ================================================================
   SINGLE POST
   ================================================================ */
.entry-header {
  padding: 5rem 2rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.entry-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  background: var(--c-green);
  border: var(--outline);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--c-white);
  margin-bottom: 1.25rem;
}
.entry-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}
.entry-meta-bar {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--c-grey);
  font-family: var(--font-ui);
  font-weight: 700;
  padding: 0.75rem 0;
  border-top: 2px solid var(--c-border);
  border-bottom: 2px solid var(--c-border);
}
.entry-featured {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 2rem;
}
.entry-featured img {
  width: 100%;
  border: var(--outline);
  border-radius: 16px;
}
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}
.entry-content p { color: var(--c-grey); margin-bottom: 1.5em; }
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-ui);
  font-weight: 900;
  color: var(--c-white);
  margin: 2.5em 0 0.75em;
}
.entry-content a {
  color: var(--c-green-d);
  font-weight: 700;
  border-bottom: 2px solid var(--c-green);
}
.entry-content blockquote {
  border-left: 4px solid var(--c-green);
  padding: 1rem 1.5rem;
  background: var(--c-bg2);
  border-radius: 0 12px 12px 0;
  margin: 2em 0;
  font-weight: 700;
}
.entry-content code {
  background: var(--c-bg3);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
}
.entry-content pre {
  background: var(--c-bg);
  color: var(--c-green);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5em 0;
}
.entry-content pre code { background: none; border: none; padding: 0; color: inherit; }

/* Post navigation */
.post-navigation {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.nav-previous, .nav-next {
  background: var(--c-bg2);
  border: var(--outline);
  border-radius: 16px;
  padding: 1.1rem;
  
}
.nav-previous:hover, .nav-next:hover {
}
.nav-next { text-align: right; }
.nav-direction {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--c-green-d);
  margin-bottom: 0.3rem;
}
.nav-post-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.9rem;
}
.nav-post-title a { color: inherit; }

/* ================================================================
   ARCHIVE / SEARCH / PAGE
   ================================================================ */
.archive-header, .page-header, .search-header {
  padding: 5rem 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.archive-prefix {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--c-grey);
  margin-bottom: 0.25rem;
}
.archive-title, .page-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
}
.page-content { max-width: 720px; margin: 0 auto; padding: 1rem 2rem 5rem; }
.page-content p { color: var(--c-grey); margin-bottom: 1.5em; }
.page-content h2, .page-content h3 {
  font-family: var(--font-ui);
  font-weight: 900;
  margin: 2em 0 0.5em;
}

/* ================================================================
   404
   ================================================================ */
.error-404-wrap {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.5rem;
}
.error-circle {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--c-bg2);
  border: var(--outline);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.error-code {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--c-white);
  line-height: 1;
}
.error-sublabel {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--c-grey);
}
.error-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2rem);
}
.error-message { color: var(--c-grey); max-width: 420px; }

/* ================================================================
   WIDGETS
   ================================================================ */
.widget-area { display: flex; flex-direction: column; gap: 1rem; }
.widget {
  background: var(--c-bg2);
  border: var(--outline);
  border-radius: 16px;
  padding: 1.25rem;
}
.widget-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--c-border);
}
.widget ul li a { color: var(--c-grey); font-weight: 600; }
.widget ul li a:hover { color: var(--c-green-d); }

/* ================================================================
   COMMENTS
   ================================================================ */
.comments-area { max-width: 720px; margin: 0 auto; padding: 0 2rem 5rem; }
.comments-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-border);
}
.comment-list { list-style: none; padding: 0; }
.comment {
  background: var(--c-bg2);
  border: var(--outline);
  border-radius: 14px;
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.comment-author-name { font-family: var(--font-ui); font-weight: 800; font-size: 0.9rem; }
.comment-date { font-size: 0.72rem; color: var(--c-grey); font-weight: 600; margin-bottom: 0.75rem; }
.comment-text p { color: var(--c-grey); font-size: 0.9rem; }
.comment-form label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--c-bg2);
  border: var(--outline);
  border-radius: 10px;
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
  outline: none;
  
}
.comment-form input:focus,
.comment-form textarea:focus {
}
.comment-form textarea { min-height: 110px; resize: vertical; }
.form-submit #submit {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: var(--c-green);
  border: var(--outline);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--c-white);
  cursor: pointer;
  
}
.form-submit #submit:hover {
}

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 0;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background: var(--c-bg2);
  border: var(--outline);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--c-white);
  transition: background 0.15s;
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--c-green);
}

/* ================================================================
   FOOTER
   ================================================================ */

#colophon {
  background: var(--c-bg2);
  border-top: var(--outline);
  padding: 2rem 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 1.2rem;
}
.footer-brand .dot { color: var(--c-green-d); }
.footer-tagline {
  font-size: 0.75rem;
  color: var(--c-grey);
  font-weight: 600;
}
.footer-bottom {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--c-border);
  font-size: 0.78rem;
  color: var(--c-grey);
  font-weight: 600;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom a { color: var(--c-grey); font-weight: 700; }
.footer-bottom a:hover { color: var(--c-green-d); }

/* ================================================================
   SCROLL REVEAL (inner pages only)
   ================================================================ */
.reveal {
  transition: opacity 0.45s, transform 0.45s;
}
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}
.reveal.visible { opacity: 1; transform: none; }

/* ================================================================
   WP COMPATIBILITY
   ================================================================ */
.alignleft  { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { margin: 1.5em auto; display: block; }
.screen-reader-text {
  clip: rect(1px,1px,1px,1px);
  position: absolute !important;
  height: 1px; width: 1px; overflow: hidden;
}
.skip-link {
  position: absolute;
  top: -100%; left: 1rem;
  padding: 8px 20px;
  background: var(--c-green);
  border: var(--outline);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 0.82rem;
  z-index: 9999;
}
.skip-link:focus { top: 1rem; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 860px) {
  #primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
  .post-navigation { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ================================================================
   PRELOADER
   ================================================================ */
#usmem-preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 2rem;
  transition: opacity 0.5s ease;
}
#usmem-preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}
.preloader-gif {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
}

/* ================================================================
   NAV SVG BUTTONS
   ================================================================ */
.usmem-nav-btn {
  position: relative;
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.usmem-nav-btn .nav-btn-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  padding-right: 1rem;
}
.usmem-nav-btn:hover .btn-fill {
  fill: var(--c-green);
}
.usmem-nav-btn:hover .nav-btn-label {
  color: #111 !important;
}
.usmem-nav-btn .btn-fill {
  transition: fill 0.18s;
}
