/* ===== COLORS (pastel pink + mint; blue + white accents) ===== */
:root{
  --pink:#ffc2cb;
  --mint:#b7e4c7;
  --white:#fff;
  --ink:#222;
  --pink-strong:#ff9ebc;
  --green:#bfe3bf;
  --green-strong:#7dcf92;
  --blue:#a7c9ff;
  --border:#4f4f4f;
  --win:#f7f7f7;
  --shadow:#3c3c3c;

  --radius:10px;
  --px:8px;

  --bg-grad: radial-gradient(1200px 600px at 70% 10%, rgba(255,255,255,0.5), transparent 60%),
             linear-gradient(135deg, #ffe7ee, #e7fff6 45%, #e9f3ff 85%);
}

/* ===== RESET ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg-grad); /* fixed gradient */
  color:var(--ink);
  font-family: "VT323", system-ui, monospace;
  letter-spacing: .3px;
}

/* ===== PIXEL FRAME ===== */
.pixel-frame{
  border:3px solid var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--white), 4px 4px 0 var(--ink);
}

/* ===== HUD ===== */

.level-title {
  font-family:"Press Start 2P", monospace;
  background:var(--pink);
  border:3px solid var(--border);
  padding:8px 12px;
  margin-left: 25px;
  display:inline-block;
  border-radius:8px;
  box-shadow:3px 3px 0 var(--border);
  margin-bottom:16px;
}


.hud{
  position:sticky; top:0; z-index:10;
  display:flex; justify-content:space-between; align-items:center;
  margin:2px; padding:10px 14px; background:rgba(255,255,255,.9);
}
.brand{ font-family:"Press Start 2P", monospace; font-size:14px; color:#ff6fa0; }
.hud-left{ display:flex; align-items:center; gap:14px; }
.stats .chip{
  display:inline-block; padding:4px 8px; margin-right:6px;
  border:2px solid var(--ink); background:#fff; box-shadow:2px 2px 0 var(--ink);
  font-size:16px;
}
.stats .chip.mint{ background:var(--mint); }
.hud-nav a{
  font-family:"Press Start 2P", monospace; font-size:12px; text-decoration:none;
  padding:8px 10px; margin-left:8px; border:2px solid var(--ink); background:var(--pink);
  color:var(--ink); box-shadow:2px 2px 0 var(--ink);
}
.hud-nav a:hover{ transform:translateY(1px); }

/* ===== GLOBAL CARD STYLE ===== */
.char-box,
.dialog,
.wardrobe-box,
.polaroid,
.group,
.card,
.office,
.reward-box,
.pixel-book {
  background: #fff; /* all cards white */
  border: 3px solid var(--border);
  box-shadow: 3px 3px 0 var(--shadow);
}


/*=================HOME===============*/

.hero { 
  padding: 10px 16px 10px; 
  background-color: var(--bg-grad)} 
  
.stage{ 
  max-width:1620px; 
  margin:0 auto; 
  padding:18px; 
  background:rgba(255,255,255,.85); 
  display:grid; 
  grid-template-columns: 1.1fr 1fr; 
  gap:16px; } 
  
  
  /* Avatar */ 

.avatar-wrap{ 
  position:relative; 
  min-height:420px; 
  display:flex; 
  align-items:flex-end; 
  justify-content:center; 
  background: linear-gradient(#e3fff4, #fff) padding-box, linear-gradient(135deg, var(--mint), var(--pink)) border-box; 
  border:3px solid transparent; 
  border-radius:10px; } 
  
/* Stage split into 2 columns */ 

.stage { 
  width: 1480px; 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px; margin-bottom: 16px; } 
  
/* Character Box */ 
.char-box { 
  background: url('../portfolio images/ambient -- room.jpg') center/cover no-repeat; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  box-shadow: 3px 3px 0 var(--border); 
  padding: 16px; 
  border: 3px solid var(--ink); 
  border-radius: 5px; } 
  
.char-box img { 
  max-height: 400px;
  margin-right: 30px;
  margin-top: 30px;
  image-rendering: pixelated; } 
  
/* Wardrobe Box */ 

.wardrobe-box { 
  background: center/cover no-repeat; 
  border: 3px solid var(--ink); 
  box-shadow: 3px 3px 0 var(--border); 
  padding: 16px; 
  margin-left: -19px; 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  border-top-right-radius: 5px; 
  border-bottom-right-radius: 5px; } 
  
.wardrobe-title { 
  font-family: 'Press Start 2P', monospace; 
  font-size: 14px; margin-bottom: 12px; } 
  
.outfits { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
 } 
  
.outfit-slot { 
  background: var(--mint); 
  border: 2px solid var(--border); 
  text-align: center; 
  padding: 20px; 
  font-family: 'VT323', monospace; 
  font-size: 18px; 
  cursor: pointer; 
  box-shadow: 2px 2px 0 var(--border); 
  transition: background 0.2s; 
  width: 320px;
  height: 200px;
} 

.outfit-slot img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.outfit-slot p {
  margin-top: -5px;
}
  
.outfit-slot:hover { 
  background: var(--pastel); } 
  
/* Dialogue */ 

.dialog { 
  margin-top: 20px; 
  margin-bottom: 20px;
  padding: 14px; 
  border: 3px solid var(--border); 
  background: #fff; 
  position: relative; } 
  
.dialog .nameplate { 
  position: absolute; 
  top: -14px; 
  left: 16px; 
  padding: 6px 10px; 
  background: var(--pink); 
  border: 3px solid var(--border); 
  font-family: "Press Start 2P", monospace; 
  font-size: 12px; 
}
  
#dialog-text{ 
  min-height:92px; 
  font-size:22px; 
  line-height:1.25; 
  margin:6px 0 10px; } 
  
  
  
/* Wardrobe */ 

.wardrobe{ 
  grid-column: 1 / -1; 
  display:flex; 
  align-items:center; 
  gap:16px; 
  flex-wrap:wrap; 
  padding:12px; 
  background: linear-gradient(180deg,#fff, #fef7fb); } 
  
.wardrobe h3{ 
  margin:0; 
  font-family:"Press Start 2P"; 
  font-size:14px; } 
  
.wardrobe h4{ 
  margin:0 0 2px; 
  font-size:14px; } 
  
.swatches{ 
  display:flex; 
  gap:10px; } 
  
.outfit{ 
  width:36px; 
  height:36px; 
  border:2px solid var(--ink); 
  background: var(--white); 
  box-shadow:2px 2px 0 var(--ink); 
  cursor:pointer; } 
  
.outfit:not(.none){ 
  background: var(--white); 
  position:relative; } 
  
.outfit:not(.none)::after{ 
  content:""; 
  display:block; 
  width:100%; 
  height:100%; 
  background: var(--sw); 
  opacity:.75; } 

.outfit.none{ 
  font-family:"Press Start 2P"; 
  background:#fff; } 
  
.badges{ 
  display:flex; 
  gap:8px; } 
  
.badge{ 
  border:2px solid var(--ink); 
  background:#fff; 
  box-shadow:2px 2px 0 var(--ink); 
  padding:6px 8px; cursor:pointer; 
  font-size:16px; }

/* ===== Buttons ===== */
.dialog-buttons {
  display: flex;
  gap: 10px;
}

.dialog-buttons button {
  padding: 8px 12px;
  cursor: pointer;
  font-family: "Press Start 2P";
  border: 3px solid var(--border);
  box-shadow: 4px 4px 0 var(--border);
}

.dialog-buttons button:hover { transform: translateY(1px); }
.start-btn { background: var(--pink); }
.next-btn  { background: var(--mint); }
.back-btn  { background: var(--mint); }
.start-btn-L { background: var(--pink); margin-left: 700px; margin-top: 8px; margin-bottom: 30px;}

/* ===== Scene Wrapper (shared) ===== */
.scene {
  padding: 40px 20px;
  border-top: 3px solid var(--border);
  background: transparent; /* gradient shows now */
  min-height: 100vh;
}

#transition-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease; 
}

body.page-leave #transition-overlay {
  opacity: 1;
  pointer-events: all;
}


/*map*/

.scene-intro {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.scene-intro .char-box {
  width: 220px;
  min-height: 260px;
  border: 3px solid var(--border);
  border-radius: 6px;
  background: #fff;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 3px 3px 0 var(--border);
}
.scene-intro .dialog {
  flex: 1;
  border: 3px solid var(--border);
  background: #fff;
  padding: 16px;
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--border);
}

/* Map container */
.map-wrap {
  margin: 30px 0;
  text-align: center;
}

/* Nodes */
.node {
  cursor: pointer;
  transition: transform 0.2s;
}
.node:hover {
  transform: scale(1.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex; justify-content: center; align-items: center;
}
.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  text-align: center;
}
.close-btn {
  position: absolute;
  top: 10px; right: 16px;
  font-size: 20px;
  cursor: pointer;
}
