* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-image: url("../images/lstar.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: Verdana, sans-serif;
  font-size: 13px;
}

#wrapper {
  width: 1000px;
  margin: 40px auto;
  background: #fcd681;
  border: 4px solid #ffffff;
  border-radius: 25px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* ===== HEADER ===== */
#header {
  position: relative;
}

#header > img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

#header h1 {
  margin: 0;
  text-align: center;
  font-family: "Cherry Bomb One", system-ui;
  font-size: 97px;
  color: #e77b6e;
}

/* ===== LOGO overlaid on banner ===== */
#logo {
  position: absolute;
  bottom: 67px;
  left: 171px;
}

#logo img {
  width: 100px;
  height: auto;
}
/* ===== TOP NAV — raised tab-style buttons ===== */
#topnav {
  text-align: center;
  padding: 10px 8px;
  background: #fcd681;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

#topnav a {
  display: inline-block;
  padding: 5px 14px;
  background: #fcd681;
  color: rgb(251, 117, 117);
  text-decoration: none;
  font-family: "ms ui gothic", Tahoma, sans-serif;
  font-size: 12px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #999999;
  border-right: 2px solid #999999;
  cursor: pointer;
}

#topnav a:hover {
  background: #ffffff;
  border-top: 2px solid #999999;
  border-left: 2px solid #999999;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

/* ===== THREE-COLUMN LAYOUT ===== */
#content-area {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  width: 100%;
}

/* ===== LEFT SIDEBAR ===== */
#left-sidebar {
  width: 160px;
  min-width: 160px;
  flex-shrink: 0;
  background: #fff8e1;
  border: 1px solid #f0b030;
  font-size: 12px;
}

#left-sidebar h3 {
  margin: 0;
  padding: 5px 8px;
  background: #f9b234;
  color: #ffffff;
  font-size: 12px;
  font-family: Tahoma, Verdana, sans-serif;
  border-bottom: 1px solid #e09010;
}

#left-sidebar a {
  display: block;
  padding: 5px 10px;
  color: #885500;
  text-decoration: none;
  border-bottom: 1px dotted #f0c060;
  font-size: 12px;
}

#left-sidebar a:hover {
  background: #ffe082;
  color: #cc4400;
}

/* ===== SIDEBAR IMAGE ===== */
#sidebar-image {
  padding: 8px 0 0 0;
  text-align: center;
}

#sidebar-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== MAIN CONTENT ===== */
#main-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #f0b030;
  padding: 12px 14px;
  min-height: 400px;
  font-size: 13px;
  line-height: 1.6;
  color: #333;
}

#main-content h2 {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-style: italic;
  color: #e07800;
  font-family: Tahoma, Verdana, sans-serif;
  font-weight: bold;
}

#main-content p {
  margin: 0 0 8px 0;
}

/* ===== NOW PLAYING BOX ===== */
.now-playing {
  margin-top: 12px;
  margin-bottom: 4px;
  border: 2px solid #f9b234;
  background: #fffde7;
  padding: 8px 12px;
  font-size: 12px;
  color: #444;
}

.now-playing h4 {
  margin: 0 0 4px 0;
  color: #cc6600;
  font-size: 12px;
  font-family: Tahoma, Verdana, sans-serif;
}

.now-playing p {
  margin: 0 0 4px 0;
  font-size: 12px;
}

/* ===== BLOG POST ===== */
.blog-post {
  margin-top: 14px;
  border: 2px dashed #f0b030;
  background: #fffde7;
  padding: 10px 12px;
  font-size: 12px;
  color: #444;
}

.blog-post h4 {
  margin: 0 0 4px 0;
  color: #555;
  font-size: 12px;
  font-family: Tahoma, Verdana, sans-serif;
}

.blog-post p {
  margin: 0 0 6px 0;
  font-size: 12px;
}

/* ===== BOTTOM STAMPS ===== */
.bottom-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  margin-top: auto;
  padding-top: 16px;
}

.bottom-stamps img {
  width: 93px;
  height: 70px;
  object-fit: cover;
}

/* ===== RIGHT SIDEBAR ===== */
#right-sidebar {
  width: 160px;
  min-width: 160px;
  flex-shrink: 0;
  background: #fff8e1;
  border: 1px solid #f0b030;
  font-size: 12px;
}

#right-sidebar h3 {
  margin: 0;
  padding: 5px 8px;
  background: #f9b234;
  color: #ffffff;
  font-size: 12px;
  font-family: Tahoma, Verdana, sans-serif;
  border-bottom: 1px solid #e09010;
}

#right-sidebar p {
  padding: 6px 10px 0 10px;
  margin: 0;
  font-size: 12px;
  color: #333;
  line-height: 1.5;
}

#right-sidebar strong {
  color: #cc6600;
  display: block;
  margin-bottom: 2px;
}

/* ===== FAKE ADS ===== */
.fake-ads {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px;
}

.fake-ads img {
  width: 100%;
  height: auto;
}


/* ===== FOOTER ===== */
#footer {
  text-align: center;
  padding: 10px;
  background: #fcd681;
  border-top: 2px solid #f0b030;
  color: #888;
  font-size: 12px;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

/* ===== FILTER BAR (game library) ===== */
#filter-bar {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #885500;
}

.filter-btn {
  padding: 3px 10px;
  font-size: 11px;
  font-family: Tahoma, Verdana, sans-serif;
  background: #fcd681;
  color: #885500;
  cursor: pointer;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #999999;
  border-right: 2px solid #999999;
}

.filter-btn:hover,
.filter-btn.active {
  background: #ffffff;
  border-top: 2px solid #999999;
  border-left: 2px solid #999999;
  border-bottom: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
}

/* ===== GAME GRID (game library) ===== */
#game-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-card {
  display: flex;
  flex-direction: column;
  width: 120px;
  background: #fff8e1;
  border: 1px solid #f0b030;
  font-size: 11px;
  text-align: center;
}

.card-cover img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #ffe082;
}

.card-info {
  padding: 5px 4px;
}

.card-title {
  margin: 0 0 2px 0;
  font-weight: bold;
  color: #553300;
  font-size: 11px;
  line-height: 1.3;
}

.card-genre {
  margin: 0 0 2px 0;
  color: #888;
  font-size: 10px;
}

.card-rating {
  margin: 0 0 4px 0;
  color: #f9b234;
  font-size: 11px;
  letter-spacing: 1px;
}

.card-status {
  margin: 0;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 4px;
  display: inline-block;
}

.card-status.completed {
  background: #c8e6c9;
  color: #2e7d32;
}
.card-status.playing {
  background: #fff9c4;
  color: #f57f17;
}
.card-status.dropped {
  background: #ffcdd2;
  color: #b71c1c;
}
.card-status.wishlist {
  background: #e1bee7;
  color: #6a1b9a;
}

/* ===== ART GRID ===== */
#art-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.art-thumb {
  display: flex;
  flex-direction: column;
  width: 130px;
  background: #fff8e1;
  border: 1px solid #f0b030;
  cursor: pointer;
  transition: border-color 0.15s;
}

.art-thumb:hover {
  border-color: #e07800;
  background: #ffe082;
}

.art-thumb img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  display: block;
  background: #ffe082;
}

.thumb-label {
  padding: 4px 5px;
  font-size: 10px;
  color: #553300;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#lightbox-box {
  background: #fff8e1;
  border: 3px solid #f9b234;
  max-width: 600px;
  width: 90%;
  position: relative;
  padding: 12px;
}

#lightbox-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #fcd681;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #999999;
  border-right: 2px solid #999999;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 7px;
  color: #553300;
}

#lightbox-close:hover {
  background: #ffffff;
}

#lightbox-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 450px;
  object-fit: contain;
  background: #fffde7;
}

#lightbox-info {
  padding: 8px 4px 2px 4px;
  font-size: 12px;
  color: #333;
}

#lightbox-title {
  margin: 0 0 2px 0;
  font-weight: bold;
  color: #cc6600;
  font-size: 13px;
}

#lightbox-medium {
  margin: 0 0 4px 0;
  color: #888;
  font-size: 11px;
}

#lightbox-desc {
  margin: 0;
  font-size: 12px;
}
