/* ==========================================================================
   jazkALIVE Studio & WRATH Portal Stylesheet (portal.css)
   Complements styles.css with Dropdowns, Leaderboards, Boss Gallery,
   Store Showcase, Legal Documentation, and Multi-Page Navigation.
   ========================================================================== */

/* Dropdown Menu in Navigation */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-toggle i.fa-chevron-down {
  font-size: 0.72rem;
  transition: transform var(--transition-fast);
}

.nav-item-dropdown:hover .dropdown-toggle i.fa-chevron-down,
.nav-item-dropdown.active .dropdown-toggle i.fa-chevron-down {
  transform: rotate(180deg);
  color: var(--fire-gold);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 270px;
  background: rgba(14, 9, 6, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 69, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-smooth);
  z-index: 1050;
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.dropdown-item:hover {
  background: rgba(255, 140, 0, 0.12);
  border-color: rgba(255, 140, 0, 0.25);
  transform: translateX(4px);
}

.dropdown-item-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #110b07;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.dropdown-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.badge-tag-mini {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-tag-mini.live {
  background: rgba(0, 230, 118, 0.15);
  color: #00e676;
  border: 1px solid rgba(0, 230, 118, 0.3);
}
.badge-tag-mini.dev {
  background: rgba(255, 140, 0, 0.15);
  color: var(--fire-gold);
  border: 1px solid rgba(255, 140, 0, 0.3);
}

/* Language Switcher */
.lang-toggle-btn {
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
  background: rgba(255, 140, 0, 0.18);
  border-color: var(--border-bright);
  color: var(--fire-gold);
}

/* Studio Portfolio Grid (index.html) */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.portfolio-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(255, 69, 0, 0.2);
}

.portfolio-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #090604;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.06);
}

.portfolio-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(12, 8, 6, 0.95) 100%);
}

.portfolio-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.6rem;
}

.portfolio-desc {
  color: #cfbfb3;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.portfolio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 140, 0, 0.1);
  padding-top: 1.2rem;
}

/* Bosses & 3D Arenas Showcase */
.boss-card {
  background: rgba(18, 12, 8, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.boss-roster {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.boss-roster-list {
  list-style: none;
  margin: 0.4rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boss-roster-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.boss-roster-name {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #fff;
}

.boss-roster-arena {
  color: var(--fire-orange);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: right;
}

.boss-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-fire);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(255, 69, 0, 0.3);
}







.boss-info {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.boss-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}



.boss-moves-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 140, 0, 0.1);
}

.boss-move-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.boss-move-item strong {
  color: #fff;
}

.boss-move-dmg {
  color: #ff5252;
  font-weight: 700;
}

/* ==========================================================================
   In-Game Screenshots & Systems Gallery Showcase
   ========================================================================== */
.game-gallery-section {
  position: relative;
  overflow: hidden;
}

.gallery-filter-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2.2rem 0 3rem;
}

.gallery-filter-btn {
  background: rgba(22, 14, 9, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-filter-btn:hover {
  color: #fff;
  border-color: var(--border-bright);
  background: rgba(255, 140, 0, 0.08);
  transform: translateY(-2px);
}

.gallery-filter-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #ff4500, #ff8c00);
  border-color: #ff8c00;
  box-shadow: 0 4px 18px rgba(255, 69, 0, 0.4);
}

/* Screenshots are 9:20 portrait phone captures: flex-wrap keeps an incomplete last row centred */
.gallery-grid {
  --gallery-gap: 1.5rem;
  --gallery-cols: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gallery-gap);
}

.gallery-grid .gallery-card {
  flex: 0 0 calc((100% - (var(--gallery-cols) - 1) * var(--gallery-gap)) / var(--gallery-cols));
  min-width: 0;
}

@media (max-width: 1100px) {
  .gallery-grid { --gallery-cols: 4; }
}

@media (max-width: 860px) {
  .gallery-grid { --gallery-cols: 3; --gallery-gap: 1.2rem; }
}

@media (max-width: 600px) {
  .gallery-grid { --gallery-cols: 2; --gallery-gap: 0.8rem; }
  .gallery-filter-wrap { gap: 8px; margin: 1.6rem 0 2rem; }
  .gallery-filter-btn { padding: 8px 14px; font-size: 0.8rem; }
  .gallery-body { padding: 0.8rem !important; }
  .gallery-title { font-size: 0.95rem !important; }
  .gallery-desc { font-size: 0.76rem !important; line-height: 1.5 !important; }
}

.gallery-card {
  background: rgba(18, 12, 8, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  cursor: pointer;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-7px);
  border-color: var(--border-fire);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(255, 69, 0, 0.25);
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 20;
  overflow: hidden;
  background: #080503;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-media img {
  transform: scale(1.04);
}

.gallery-card:focus-visible {
  outline: 2px solid var(--fire-gold);
  outline-offset: 3px;
}

.gallery-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.55rem;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-bright);
  background: rgba(255, 140, 0, 0.08);
  color: var(--fire-gold);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  max-width: 100%;
}

.gallery-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 9, 6, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--fire-gold);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.gallery-zoom-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 69, 0, 0.9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  transform: scale(0.7);
  transition: all var(--transition-fast);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  transition: color var(--transition-fast);
}

.gallery-card:hover .gallery-title {
  color: var(--fire-gold);
}

.gallery-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

/* Lightbox Modal */
.screenshot-modal-container {
  max-width: 960px;
  width: 95%;
  background: rgba(16, 10, 7, 0.96);
  border: 1px solid var(--border-fire);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 50px rgba(255, 69, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.screenshot-modal-view {
  position: relative;
  width: 100%;
  /* screenshots are portrait (9:20): give the view height, not a 16:10 box */
  height: min(72vh, 780px);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.screenshot-modal-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease;
}

.screenshot-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 11, 7, 0.85);
  border: 1px solid var(--border-bright);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}

.screenshot-nav-btn:hover {
  background: var(--fire-orange);
  border-color: #ff8c00;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.6);
}

.screenshot-nav-btn.prev {
  left: 16px;
}

.screenshot-nav-btn.next {
  right: 16px;
}

.screenshot-modal-footer {
  padding: 1.4rem 1.8rem;
  background: rgba(12, 7, 5, 0.9);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.screenshot-modal-meta {
  flex: 1;
}

.screenshot-modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.screenshot-modal-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}




/* Legal & Compliance Page Layout (privacy.html, account-deletion.html, rules.html) */
.legal-wrapper {
  padding-top: 130px;
  padding-bottom: 80px;
  min-height: 80vh;
}

.legal-header-card {
  background: rgba(20, 13, 9, 0.85);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.legal-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--fire-gradient);
}

.legal-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.legal-card {
  background: rgba(18, 12, 8, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem;
  margin-bottom: 1.8rem;
}

.legal-card h2, .legal-card h3 {
  font-family: var(--font-heading);
  color: #fff;
  margin-bottom: 1rem;
}

.legal-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.legal-card ul, .legal-card ol {
  color: var(--text-muted);
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
  line-height: 1.75;
}

.legal-card li {
  margin-bottom: 0.5rem;
}

.legal-alert-box {
  background: rgba(255, 69, 0, 0.08);
  border: 1px solid rgba(255, 69, 0, 0.35);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  color: #ffccbc;
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.legal-success-box {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.35);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  color: #b9f6ca;
  font-size: 0.92rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* Account Deletion Request Form */
.deletion-form-card {
  background: rgba(14, 9, 6, 0.95);
  border: 1px solid var(--border-bright);
  border-radius: 18px;
  padding: 2.2rem;
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--fire-orange);
  background: rgba(255, 140, 0, 0.06);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.2);
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .nav-item-dropdown {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-item-dropdown .dropdown-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 4px;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: rgba(22, 14, 9, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    box-shadow: none;
    padding: 8px;
    margin: 4px 0 10px 0;
    width: 100%;
    transition: all var(--transition-fast);
  }
  .nav-item-dropdown.active .dropdown-menu {
    display: flex;
    flex-direction: column;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .dropdown-item {
    padding: 10px 12px;
  }
}

/* ==========================================================================
   Multi-Disciplinary Studio Extensions:
   Services, MMORPG Game Tech & Tooling, Creative Web & Graphic Studio
   ========================================================================== */

/* Core Services 4-Pillar Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.service-card {
  background: rgba(18, 12, 8, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 0, 0.45);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 69, 0, 0.15);
}

.service-card:hover::before {
  background: var(--fire-gradient);
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--fire-gold);
  margin-bottom: 1.4rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-box {
  background: var(--fire-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.4rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.service-tag-item {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.3px;
}

/* MMORPG Game Tech & Tooling Showcase */
.gametech-showcase-box {
  background: linear-gradient(135deg, rgba(22, 14, 9, 0.85) 0%, rgba(10, 7, 5, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 3rem;
  margin-top: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.gametech-grid-2col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.gametech-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.gametech-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.gametech-feature-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 10px;
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 140, 0, 0.25);
  color: var(--fire-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}

.gametech-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.gametech-feature-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.gametech-code-card {
  background: #0d0907;
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 69, 0, 0.1);
  font-family: 'JetBrains Mono', Consolas, monospace;
}

.gametech-code-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.gametech-code-dots {
  display: flex;
  gap: 6px;
}

.gametech-code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.gametech-code-body {
  padding: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
}

.gametech-code-body .kw { color: #f43f5e; font-weight: bold; }
.gametech-code-body .fn { color: #38bdf8; }
.gametech-code-body .str { color: #34d399; }
.gametech-code-body .cm { color: #64748b; font-style: italic; }
.gametech-code-body .num { color: #fbbf24; }

/* Creative Studio & Digital Showcase */
.creative-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.creative-card {
  background: rgba(18, 12, 8, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.creative-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 0, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8);
}

.creative-card-media {
  width: 100%;
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #0a0604;
}

.creative-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.creative-card:hover .creative-card-media img {
  transform: scale(1.05);
}

.creative-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 140, 0, 0.4);
  color: var(--fire-gold);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.creative-card-body {
  padding: 1.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.creative-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.creative-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.2rem;
}

/* Responsive adjustment for gametech grid */
@media (max-width: 900px) {
  .gametech-grid-2col {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gametech-showcase-box {
    padding: 1.8rem;
  }
}

/* ==========================================================================
   Full-Stack Technology Suite (4 Architecture Pillars)
   ========================================================================== */
.tech-suite-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.tech-suite-card {
  background: rgba(18, 12, 8, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.tech-suite-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 0, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 69, 0, 0.15);
}

.tech-suite-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tech-suite-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  background: rgba(255, 140, 0, 0.12);
  border: 1px solid rgba(255, 140, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--fire-gold);
}

.tech-suite-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.tech-suite-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.tech-badges-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.tech-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: all var(--transition-fast);
}

.tech-badge-pill i {
  color: var(--fire-gold);
  font-size: 0.95rem;
}

.tech-badge-pill:hover {
  background: rgba(255, 140, 0, 0.15);
  border-color: rgba(255, 140, 0, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.tech-sub-tags-wrap {
  margin-top: auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-sub-tags-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: block;
}

.tech-sub-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-micro-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 8px;
}

@media (max-width: 900px) {
  .tech-suite-grid {
    grid-template-columns: 1fr;
  }
}



/* Boss gallery (8 bosses) */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}

.boss-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.boss-tile:hover {
  border-color: var(--border-fire);
  transform: translateY(-2px);
}

.boss-tile-img {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 14px;
  border: 1px solid var(--border-bright);
  object-fit: cover;
  background: #0b0705;
}

.boss-tile-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 4px;
}

.boss-tile-arena {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--fire-orange);
  margin-bottom: 8px;
}

.boss-tile-story {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 480px) {
  .boss-tile-img { width: 80px; height: 80px; flex-basis: 80px; }
}

/* Full skill table */
.skill-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.88rem;
}

.skill-table th,
.skill-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.skill-table th {
  color: var(--fire-gold);
  font-size: 0.74rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skill-table td strong {
  color: #fff;
}

.skill-table .skill-row-scroll td:last-child {
  color: var(--fire-gold);
}

/* Image strips, wallpapers, item icons */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; }
.wp-card { display: flex; flex-direction: column; gap: 6px; background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 0.8rem; text-decoration: none; transition: border-color 0.25s ease, transform 0.25s ease; }
.wp-card:hover { border-color: var(--border-fire); transform: translateY(-3px); }
.wp-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; display: block; }
.wp-name { font-family: var(--font-heading); color: #fff; font-size: 1.05rem; }
.wp-dl { font-size: 0.78rem; font-weight: 700; color: var(--fire-gold); }
.skill-row-icon { width: 28px; height: 28px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.item-ico { width: 32px; height: 32px; object-fit: contain; vertical-align: middle; margin-right: 6px; }
.item-ico-row { display: flex; gap: 8px; margin: 0 0 10px; }
.item-ico-row .item-ico { width: 40px; height: 40px; margin: 0; }
.tactics-items-list li > .item-ico { flex: 0 0 auto; }

/* Fixed column helpers: bosses and wallpapers 2 per row everywhere, 6-card pages 3 / 2 / 1 */
.boss-grid, .wp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .boss-grid { gap: 0.7rem; }
  .boss-tile { flex-direction: column; padding: 0.7rem; gap: 0.6rem; }
  .boss-tile-img { width: 100%; height: auto; flex: none; aspect-ratio: 1 / 1; }
  .boss-tile-name { font-size: 1rem; }
  .boss-tile-story { font-size: 0.8rem; }
  .wp-grid { gap: 0.7rem; }
  .wp-card { padding: 0.5rem; }
}
.pillars-grid.pillars-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .pillars-grid.pillars-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pillars-grid.pillars-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   ABOUT: story sections with background art
   ========================================================================== */
.story-section { position: relative; overflow: hidden; padding: 4.5rem 0; isolation: isolate; }
.story-section.story-intro { padding-top: 150px; background: rgba(12, 8, 6, 0.4); }
.story-section.story-cards { padding: 4rem 0 2rem; background: rgba(12, 8, 6, 0.4); }
.story-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6; background-position: center; background-size: cover; background-repeat: no-repeat; }
.story-bg-troll > .story-bg { background-image: url("../assets/images/wrath/troll-bg.jpg"); }
.story-bg-goliath > .story-bg { background-image: url("../assets/images/wrath/goliath-bg.jpg"); }
.story-intro > .story-bg { display: none; }
/* dark scrim above the image, below the text, for readable contrast */
.story-bg-troll::after, .story-bg-goliath::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,5,4,.55) 0%, rgba(8,5,4,.35) 50%, rgba(8,5,4,.55) 100%);
}
.story-wrap { position: relative; z-index: 2; }
.story-prose { max-width: 760px; margin: 0 auto; text-align: left; text-shadow: 0 1px 3px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.6); }
.story-prose p { color: var(--text-main); font-size: 1.08rem; line-height: 1.8; margin: 0 0 1.1rem; }
.story-prose strong { color: var(--fire-gold); font-weight: 700; }
.story-prose em { color: var(--text-main); }
.story-intro .story-prose { text-align: center; }
.story-intro .story-prose p { color: var(--text-muted); }
.story-title { font-size: 2.45rem; margin-bottom: 1rem; }
.story-tagline { font-size: 1.15rem; margin-bottom: 2.25rem; }
.story-h2 { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 800; line-height: 1.25; margin: 0 0 1.4rem; color: var(--fire-gold); }
.story-h3 { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; line-height: 1.3; margin: 2.75rem 0 1.1rem; color: var(--fire-orange); }
.story-h3:first-child, .story-h2 + .story-h3 { margin-top: 1.5rem; }
.story-quote { margin: 1.75rem 0 2rem; padding: 1.1rem 1.4rem; border-left: 4px solid var(--fire-orange); background: rgba(10, 6, 4, .55); border-radius: 0 12px 12px 0; }
.story-quote p { margin: 0; font-size: 1.25rem; line-height: 1.6; font-style: italic; }
.story-closing { text-align: center; font-size: 1.2rem !important; margin-top: 2rem !important; }
@media (max-width: 640px) {
  .story-section { padding: 3rem 0; }
  .story-section.story-intro { padding-top: 120px; }
  .story-prose p { font-size: 1.02rem; line-height: 1.75; }
  .story-title { font-size: 1.9rem; }
  .story-h2 { font-size: 1.55rem; }
  .story-h3 { font-size: 1.28rem; }
  .story-quote p { font-size: 1.1rem; }
}
@media (max-width: 640px) { .story-wrap { padding-left: 16px; padding-right: 16px; } }
