﻿:root{
  --bg0:#0f1220;
  --bg1:#121a33;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.10);
  --text: #e9eefc;
  --muted:#a8b1c9;
  --accentA:#667eea;
  --accentB:#764ba2;
  --warn:#fbbf24;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --r: 16px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(102,126,234,0.18), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(118,75,162,0.14), transparent 55%),
    linear-gradient(120deg, #0d1020, #0f1733);
  color: var(--text);
  padding: 28px 18px 64px;
}

.wrap{
  width: min(980px, 100%);
  margin: 0 auto;
}

.shell{
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

h1{
  margin:0 0 6px;
  font-size: 36px;
  background: linear-gradient(135deg, var(--accentA), var(--accentB));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lead{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 70ch;
}

.brand-mark{
  width: 38px;
  height: 38px;
  opacity: 0.45;
  display: block;
  margin-bottom: 10px;
  cursor: pointer;
  filter: brightness(0) invert(1);
  transition: filter 160ms ease, opacity 160ms ease;
}

.brand-mark:not(.is-rainbow):active{
  filter: brightness(0.2) invert(1);
  opacity: 0.75;
}

.brand-mark.is-rainbow{
  opacity: 0.8;
  filter: saturate(280%) hue-rotate(0deg) brightness(1.05);
  animation: donkey-rainbow 3.2s linear infinite;
}

.brand-mark:focus-visible{
  outline: 2px dashed rgba(255,255,255,0.65);
  outline-offset: 4px;
}

@keyframes donkey-rainbow{
  0%{
    filter: saturate(280%) hue-rotate(0deg) brightness(1.05);
  }
  100%{
    filter: saturate(280%) hue-rotate(360deg) brightness(1.05);
  }
}

@media (prefers-reduced-motion: reduce){
  .brand-mark.is-rainbow{
    animation: none;
  }
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 10px rgba(251,191,36,0.45);
}

ul{
  list-style:none;
  padding:0;
  margin: 0;
  display:grid;
  gap: 12px;
}

.hub-list{
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.hub-list li{
  background: var(--panel2);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.hub-list li:hover{
  transform: translateY(-2px);
  border-color: rgba(102,126,234,0.35);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.hub-list a{
  display:block;
  font-size: 15px;
}

.hero{
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.hero h2{
  margin: 0;
  font-size: 20px;
  color: #d7dcff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero p{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-grid{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card{
  display: block;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.card:hover{
  transform: translateY(-2px);
  border-color: rgba(102,126,234,0.35);
  box-shadow: 0 14px 28px rgba(0,0,0,0.28);
}

.card-title{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  color: #d8ddff;
}

.card-desc{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

li{
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

li.entry-item{
  background: var(--panel2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.item-line{
  display: inline;
}

.uid-link{
  font-weight: 800;
  color: #c9d2ff;
}

.separator{
  color: #9aa5b1;
  margin: 0 6px;
}

.section{
  color: #c9d2ff;
  font-weight: 700;
  margin-left: 6px;
  margin-right: 4px;
}

.none{
  color: var(--muted);
  font-style: italic;
}

a{
  text-decoration:none;
  color: #d8ddff;
  font-weight: 700;
}

a:hover{
  color: #ffffff;
}

.info-link{
  color: #4CBB17;
  font-weight: 700;
}

.info-link:hover{
  color: #6be72c;
}

.game-link{
  color: #BA0B3A;
  font-weight: 800;
}

.game-link:hover{
  color: #e11b54;
}

.note{
  font-size: 0.9em;
  color: rgba(255,255,255,0.55);
  text-align:center;
  margin-top: 22px;
}

.github-projects{
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--border);
}

.github-projects h2{
  margin: 0 0 10px;
  font-size: 16px;
  color: #d7dcff;
}

#github-feed{
  color: var(--muted);
  font-size: 14px;
  display: grid;
  gap: 8px;
}

.footer-note{
  margin: 12px 0 0;
  color: rgba(255,255,255,0.55);
  font-size: 0.88em;
  line-height: 1.6;
}

.bullet-list{
  list-style: disc;
  padding-left: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: block;
}

.bullet-list li{
  padding: 0;
  margin: 0 0 6px;
  background: none;
  border: none;
  box-shadow: none;
}

.period-header{
  background: linear-gradient(135deg, rgba(102,126,234,0.25), rgba(118,75,162,0.2));
  border-color: rgba(102,126,234,0.35);
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #d7dcff;
}

.missing-panel{
  margin-top: 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r);
  padding: 0.6rem 1rem;
  color: var(--text);
}

.missing-summary{
  cursor: pointer;
  font-weight: 800;
  color: #ffd6d6;
}

.missing-header{
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  font-weight: 800;
  color: #ffe6a7;
}

.spacer{
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  height: 6px;
}
  position:absolute;
  top:0;left:0;
  background:rgba(255,255,255,.8);
  font-size:.9rem;
  padding:2px 6px;
  border:1px solid #aaa;
}
/* settings panel */
.settings{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.settings input[type="number"]{
  width:80px;
  padding:4px;
  font-size:1rem;
  border:1px solid #ccc;
  border-radius:4px;
}
.settings button{
  padding:6px 12px;
  font-size:1rem;
  background:#2d89ef;
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
}
.settings button:hover{background:#1b5faa;}
/* palette */
.palette-section{
  border-top:2px solid #444;
  background:#eee;
  padding:1rem;
}
.scroll-palette{
  display:flex;
  gap:4px;
  overflow-x:auto;
  padding:.5rem 0;
}
.block-tile{
  width:32px;
  height:32px;
  border:2px solid transparent;
  cursor:pointer;
}
.block-tile.selected{border-color:red;}
/* floor manager */
.floor-controls{
  display:flex;
  flex-direction:column;
  gap:.5rem;
}
.floor-buttons{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  align-items:flex-start;
}
/* undo/redo row */
.undo-redo-row{
  display:flex;
  gap:8px;
  width:100%;
}
.undo-redo-row button{
  flex:1;
  padding:6px 12px;
  font-size:1rem;
  background:#2d89ef;
  color:#fff;
  border:none;
  border-radius:4px;
  cursor:pointer;
}
.undo-redo-row button:hover{background:#1b5faa;}

/* ---------- 6 · UTILITIES & MEDIA QUERIES ---------- */
@media(max-width:480px){
  body.showcase h1{font-size:2rem;}
  .game-card{padding:1rem;}
}


/* ---------- Custom override : make Play-button green ---------- */
:root{
  --play-green: #28a745;          /* Bootstrap-style success green */
}

.btn-load{
  background: var(--play-green);
  color: #fff;                    /* white text for contrast */
}

.btn-load:hover{
  background: #38c55e;            /* slightly lighter on hover */
}

/* ---------- style the “Review this Game” button ---------- */
.review-button{
  display:inline-block;
  margin-top:.8rem;           /* space above the button */
  padding:.5rem 1rem;
  font-size:.9rem;
  font-weight:600;
  border-radius:.5rem;
  background:transparent;     /* clear interior */
  color:var(--gold);          /* gold text */
  border:2px solid var(--gold);
  cursor:pointer;
  transition:background .25s ease, transform .25s ease;
}

.review-button:hover{
  background:var(--gold);     /* fill on hover */
  color:#000;                 /* black text for contrast */
  transform:scale(1.05);
}
