:root {
  --bg: #0f1120;
  --panel: #181a2f;
  --text: #e8eaf6;
  --muted: #b3b7cd;
  --accent: #5c7cfa;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: url('./background.png');
  /* background-size: 100%; */
  background-repeat: repeat;
  color: var(--text);
}

h2 {
  color: navy;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.header {
  text-align: center;
}

.header h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.3px;
}

h3 {
  padding: 0.5em 2em 0.5em 1.5em;
  background-color: #47A9FF;
  border-top-right-radius: 1.5em;
  color: black;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4em;
  font-style: normal;
  display: inline-block;
}

.back {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
}

.source-note {
  font-size: 12px;
  color: var(--muted);
}

.bx-wrapper img {
  width: 100%;
  aspect-ratio: 1024/500;
}

/* Accordion headings for index */
#rubrics-accordion .ui-accordion-header {
  background: var(--panel);
  border: 1px solid rgba(0, 255, 255, 0.6);
  color: var(--text);
  border-radius: 10px;
  margin-top: 12px;
}

#rubrics-accordion .ui-accordion-content {
  background: transparent;
  border: none;
  padding: 12px 4px 8px;
}

/* Cards and grids */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}

.game-card {
  background: rgba(255, 255, 255, 0.03);
  border: 0px solid rgba(0, 255, 255, 0.6);
  border-radius: 12px;
  /* padding: 10px; */
  text-align: center;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: "Montserrat", sans-serif;
  font-size: 1.4em;
  font-style: normal;
  color: black;
}

.game-card:hover {
  transform: translateY(-2px);
  background: rgba(92, 124, 250, 0.08);
  border-color: rgba(92, 124, 250, 0.4);
}

.game-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.game-thumb {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  /* margin-bottom: 8px; */
}

.game-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  background: #22263f;
}

.radius-small img {
  border-radius: 8px;
}

.radius-big img {
  border-radius: 16px;
}

.game-title {
  font-size: 14px;
  font-weight: 600;
  color: black;
  padding-top: 0.8em;
}

.badge {
  display: inline-block;
  font-size: 10px;
  color: #0b1020;
  background: #a5b4fc;
  border-radius: 999px;
  padding: 2px 6px;
  margin-left: 8px;
  vertical-align: middle;
}

.empty-note {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 4px 16px;
}

.error {
  background: #411b1f;
  border: 1px solid #b83a48;
  color: #ffdfe3;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* Game page specific */
/* Detailed Game page */
.iframe-wrap {
  position: relative;
  width: 100%;
  background: #0c0f1f;
  border: 1px solid rgba(0, 255, 255, 0.6);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* Simple Game page */
.iframe-wrap-simple {
  width: 100%;
  background: #0c0f1f;
  border: 1px solid rgba(0, 255, 255, 0.6);
  border-radius: 12px;
  overflow: hidden;
}

.iframe-wrap-simple iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 18px;
}

.chip {
  background: rgba(0, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}

.section-title {
  margin: 18px 0 10px;
  font-size: 16px;
}

.description {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 255, 255, 0.6);
  border-radius: 12px;
  padding: 12px;
  color: var(--text);
  line-height: 1.5;
}

.note {
  padding: 16px;
  color: var(--muted);
}

/* Draggable handle styles */
.draggable-handle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), #4c6ef5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  user-select: none;
}

.draggable-handle:hover {
  background: linear-gradient(135deg, #4c6ef5, #3b5bdb);
  transform: translateY(-50%) translateX(4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.draggable-handle.dragging {
  background: linear-gradient(135deg, #3b5bdb, #2c4edb);
  transform: translateY(-50%) translateX(2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.handle-icon {
  font-size: 20px;
  margin-bottom: 4px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.handle-text {
  font-size: 10px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* Ensure handle is above iframe */

/*# sourceMappingURL=styles.css.map */
