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

* { box-sizing: border-box; }

:root {
  --bg:          #f0ede8;
  --bg2:         #e8e4dd;
  --panel:       rgba(255,255,255,0.72);
  --panel-solid: #ffffff;
  --border:      rgba(0,0,0,0.10);
  --border2:     rgba(0,0,0,0.07);
  --nav-bg:      rgba(245,242,237,0.82);
  --accent:      #2d8f6f;
  --accent-soft: rgba(45,143,111,0.12);
  --accent2:     #4f9ef5;
  --text:        #1c1c1e;
  --text2:       #636366;
  --text3:       #aeaeb2;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-xs:   6px;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 20% -10%, rgba(45,143,111,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 105%, rgba(79,158,245,0.07) 0%, transparent 55%);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  margin: 0;
  color: var(--text);
  min-height: 100vh;
}

.wrapper { max-width: 95%; margin: auto; padding: 0 12px; }

/* NAVBAR */
.navbar {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), var(--shadow-sm);
}
.navbar .wrapper {
  max-width: none;
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 6px;
}
.logo {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
  padding: 5px 14px;
  margin-right: 8px;
  white-space: nowrap;
  letter-spacing: -0.2px;
}
.menu { display: flex; gap: 3px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.menu a {
  display: block;
  color: var(--text2);
  text-decoration: none;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
.menu a:hover { background: var(--accent-soft); color: var(--accent); }

/* WINDOW */
.window { margin-top: 20px; margin-bottom: 28px; }
.window-body { padding: 16px 20px; }

/* CONTENT PANEL */
.content {
  background: var(--panel);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow-md);
}

/* TYPOGRAPHY */
h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
h2 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 18px;
  margin-bottom: 8px;
}
p { line-height: 1.65; color: var(--text2); font-size: 13px; }

/* INSIDE BOXES */
.inside-boxes { display: flex; gap: 10px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.inside-box {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  min-width: 120px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-weight: 700;
  font-size: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 5px;
  margin-bottom: 8px;
}
.sidebar-list { list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--text2); line-height: 1.9; text-align: center; }
.visitor-count { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 22px; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; margin: 4px 0; }
.sidebar-note { font-size: 10px; color: var(--text3); margin: 0; }

/* SPRITES */
.sprites-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin-top: 10px;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sprite {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: pixelated;
  cursor: pointer;
  border-radius: var(--radius-sm);
  background-color: var(--panel-solid);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.sprite:hover { transform: translateY(-2px) scale(1.06); box-shadow: var(--shadow-md); }

/* DRAWINGS */
.year { display: block; margin: 16px auto; text-align: center; border: none; background: none; padding: 0; }
.year summary {
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(45,143,111,0.2);
  text-align: center;
  list-style: none;
  padding: 6px 20px;
  border-radius: 20px;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.year summary:hover { background: var(--accent); color: #fff; }
.year summary::-webkit-details-marker { display: none; }
.drawings-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }
.drawing {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  width: 165px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.drawing:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.drawing img {
  max-width: 100%;
  height: 125px;
  width: 100%;
  object-fit: contain;
  background: var(--bg2);
  display: block;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
}
.drawing p { margin-top: 6px; font-size: 11px; color: var(--text2); line-height: 1.3; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; right: 22px; background: rgba(0,0,0,0.4); border: none; color: white; font-size: 16px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.lightbox-close:hover { background: rgba(0,0,0,0.65); }

/* FOOTER */
.footer { margin-top: 16px; padding: 8px 0; text-align: center; font-size: 11px; color: var(--text3); }

/* CORNER GIF */
.corner-gif { position: fixed; width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; z-index: 999; pointer-events: none; }
.top-left    { top: 52px; left: 12px; }
.top-right   { top: 52px; right: 12px; }
.bottom-left  { bottom: 12px; left: 12px; }
.bottom-right { bottom: 12px; right: 12px; }