:root {
    --bg: #0b0e12;
    --panel: #121621;
    --accent: #e63946;
    --text: #e6e6e6;
    --muted: #8a8f98;
    --card: #181c27;
    --card-border: #23283a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, system-ui, sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -2;
  background: url('DeadDrop.png') center center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: rgba(10, 12, 18, 0.72); /* dark overlay */
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    background: url("../assets/noise.png");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-bg {
    display: none !important;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
    padding: 4rem 2rem 6rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-logo {
    width: 320px;
    max-width: 95vw;
    margin-bottom: 0.3rem;
    margin-top: -1.2rem;
    filter: drop-shadow(0 2px 12px #000a);
}

.hero h1 {
    font-size: 3rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--muted);
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 0.95rem;
    background: rgba(18,22,33,0.7);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 2px 8px #0004;
}

.hero-stats span {
    color: var(--accent);
    font-weight: bold;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 3rem 2rem;
}

.panel {
    background: var(--panel);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    box-shadow: 0 2px 12px #0002;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.contract-card {
    background: #0f1320;
    padding: 1.5rem;
    border: 1px solid #1f2535;
    border-radius: 8px;
    transition: transform 0.2s ease, border-color 0.2s ease;
    box-shadow: 0 2px 8px #0002;
}

.contract-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.item-card {
    background: var(--card);
    border: 2px solid var(--card-border);
    border-radius: 12px;
    width: 220px;
    padding: 18px 14px 16px 14px;
    box-shadow: 0 4px 16px #0005;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
    position: relative;
}

.item-card:hover {
    transform: scale(1.04);
    border-color: var(--accent);
}

.item-img-wrapper {
    position: relative;
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.item-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    border-radius: 6px;
    opacity: 0.85;
    pointer-events: none;
}

.item-img {
    position: relative;
    z-index: 2;
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 4px;
    background: none;
    background-color: transparent;
}

.item-name {
    font-size: 1.1em;
    color: var(--accent);
    margin-bottom: 6px;
    text-align: center;
    font-weight: 600;
}

.item-type {
    color: var(--muted);
    font-size: 0.95em;
    margin-bottom: 8px;
    text-align: center;
}

.item-price {
    color: var(--text);
    margin-bottom: 4px;
    font-size: 1em;
}

.item-rarity {
    color: var(--muted);
    font-size: 0.9em;
    margin-bottom: 2px;
    text-align: center;
}

.muted {
    color: var(--muted);
    font-size: 0.9rem;
}

footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--muted);
    border-top: 1px solid #1f2535;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.tab-btn {
    background: var(--panel);
    color: var(--text);
    border: 2px solid var(--card-border);
    border-radius: 6px 6px 0 0;
    padding: 0.6rem 1.4rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    outline: none;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: bold;
}

.tab-btn:hover {
    background: #23283a;
    color: var(--accent);
    border-color: var(--accent);
}

/* Carousel styles for Hot Session Highlights */
.carousel-outer {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.carousel-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  transition: transform 0.7s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
#hot-card-container .item-card {
  min-width: 260px;
  max-width: 260px;
  margin-right: 1.2em;
  flex-shrink: 0;
}
.hot-game-label {
  font-size: 0.95em;
  color: var(--muted, #888);
  margin-top: 0.3em;
  font-weight: 500;
  text-align: right;
}
@media (max-width: 1200px) {
  #hot-card-container .item-card { min-width: 220px; max-width: 220px; }
}
@media (max-width: 900px) {
  #hot-card-container .item-card { min-width: 170px; max-width: 170px; }
}
@media (max-width: 700px) {
  .carousel-outer { max-width: 100vw; }
  #hot-card-container .item-card { min-width: 120px; max-width: 120px; }
}

main.tos-content {
  max-width: 900px;
  margin: 4rem auto;
  background: rgba(18,22,33,0.98);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 32px #0007;
}
.tos-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--accent);
}
.tos-content .muted {
  margin-bottom: 2rem;
}
.tos-content section {
  margin-bottom: 2rem;
}
.tos-content h2 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.tos-content ul {
  margin: 0 0 1.2rem 1.5em;
  padding: 0;
  list-style: disc;
}
.tos-content p, .tos-content li {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.7;
}
.tos-content .back-link {
  display: inline-block;
  margin-top: 2.5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

/* Header Bar styles */
.header-bar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(18,22,33,0.96);
    border-bottom: 1px solid #23283a;
    box-shadow: 0 2px 12px #0003;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 2.5rem;
    min-height: 58px;
}

.header-bar .header-logo {
    display: flex;
    align-items: center;
    gap: 0.7em;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.header-bar nav {
    display: flex;
    gap: 1.5em;
}

.header-bar nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.2em 0.5em;
    border-radius: 4px;
}

.header-bar nav a:hover,
.header-bar nav a.active {
    color: var(--accent);
    background: #181c27;
}

/* API Integration Section Styles */
.api-section {
    background: rgba(24, 28, 39, 0.98);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px #0003;
    border-left: 4px solid var(--accent);
}
#arc-api-output, #arc-map-output, #arc-events-output {
    margin-top: 1.2em;
    min-height: 2em;
    color: var(--muted);
    font-size: 1.08em;
}
#arc-events-output {
    display: block;
}
.arc-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5em;
    width: 100%;
    margin: 0 auto;
}
@media (max-width: 700px) {
    .header-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.7rem 1rem;
    }
    .header-bar nav {
        gap: 0.8em;
        margin-top: 0.5em;
    }
    .header-bar .header-logo {
        font-size: 1.05rem;
    }
}
@media (max-width: 900px) {
    .arc-events-grid {
        grid-template-columns: 1fr;
    }
}