/* ===== Purrfect Paws - Game UI Theme ===== */

* { box-sizing: border-box; }

:root{
  --bg1:#fff6f7;
  --bg2:#fcebed;
  --panel:#ffffffcc;
  --card:#ffffffd9;
  --border:#3b2a2a;
  --ink:#2d1f1f;
  --muted:#6f5656;
  --pink:#f7a7b3;
  --pink2:#ff8fa6;
  --pill:#f4c3cb;
  --shadow: 12px 12px 0 rgba(59,42,42,0.20);
  --radius: 22px;
}

body{
  margin:0;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color:var(--ink);

  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  min-height:100vh;

  animation: fadeIn 0.55s ease-in;
  overflow-x:hidden;
}

@keyframes fadeIn{
  from{opacity:0; transform: translateY(6px);}
  to{opacity:1; transform: translateY(0);}
}

/* subtle pattern overlay */
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:
    radial-gradient(circle at 20% 15%, rgba(247,167,179,0.20), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255,143,166,0.16), transparent 42%),
    radial-gradient(circle at 40% 85%, rgba(247,167,179,0.12), transparent 45%);
  pointer-events:none;
  z-index:0;
}

/* floating stickers */
.sticker{
  position:fixed;
  opacity:0.18;
  pointer-events:none;
  z-index:0;
  filter: drop-shadow(0 10px 0 rgba(0,0,0,0.03));
}

.sticker.pawA{ width:120px; top:14%; left:4%; transform: rotate(-12deg); }
.sticker.flowerA{ width:140px; bottom:10%; left:6%; transform: rotate(10deg); }
.sticker.pawB{ width:160px; bottom:8%; right:5%; transform: rotate(14deg); opacity:0.13; }
.sticker.flowerB{ width:110px; top:10%; right:10%; transform: rotate(-8deg); opacity:0.12; }

/* ===== Header / Nav ===== */
.topbar{
  position: sticky;
  top:0;
  z-index:50;
  background: #fff;
  border-bottom: 3px solid rgba(59,42,42,0.15);
  backdrop-filter: blur(6px);

  padding: 16px 18px;
}

.brandRow{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.brandTitle{
  font-size: 34px;
  font-weight: 900;
  letter-spacing:0.3px;
  color:#d65b73;
  text-align:center;
}

.brandIcon{
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 12px;
  background: #ffe2e7;
  border: 2px solid rgba(214,91,115,0.25);
  user-select:none;
}

.nav{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:12px;
}

.navLink{
  text-decoration:none;
  color:var(--ink);
  padding: 10px 16px;
  border-radius: 14px;
  background: #f1d7dc;
  border: 2px solid rgba(59,42,42,0.12);
  transition: transform .18s, background .18s, box-shadow .18s;
  font-weight: 700;
}

.navLink:hover{
  transform: translateY(-2px);
  background:#f6c2cc;
  box-shadow: 0 10px 0 rgba(59,42,42,0.08);
}

.navLink.active{
  background: #d88a97;
  color:#fff;
}

/* ===== Layout ===== */
.screen{
  display:flex;
  justify-content:center;
  padding: 30px 16px 60px;
  position:relative;
  z-index:2;
}

.panel{
  width: min(1060px, 95vw);
  background: var(--panel);
  border-radius: var(--radius);
  border: 3px solid rgba(59,42,42,0.15);
  box-shadow: var(--shadow);
  padding: 26px;
}

/* status bar (game UI) */
.statusBar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;

  background:#ffe7eb;
  border: 2px dashed rgba(214,91,115,0.35);
  border-radius: 18px;
  padding: 10px 14px;
  margin-bottom: 18px;

  font-weight: 800;
  color:#5a3d3d;
}

.statusLeft{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.badgePill{
  background:#fff;
  border: 2px solid rgba(59,42,42,0.10);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  white-space:nowrap;
}

.statusRight{ display:flex; gap:10px; align-items:center; }

/* buttons */
.btn{
  border:none;
  border-radius: 16px;
  padding: 10px 14px;
  background: var(--pink);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  transition: transform .16s, background .16s, box-shadow .16s;
  box-shadow: 0 8px 0 rgba(59,42,42,0.12);
}

.btn:hover{ transform: translateY(-2px); background: var(--pink2); }
.btn:active{ transform: translateY(1px); box-shadow: 0 4px 0 rgba(59,42,42,0.10); }

.btn.secondary{
  background:#ffd7df;
  color:#5a3d3d;
}

h1{
  margin: 8px 0 8px;
  font-size: 34px;
  color:#d65b73;
}

.subtext{
  color:var(--muted);
  margin: 0 0 18px;
  line-height:1.6;
  font-size: 16px;
}

/* info box */
.bigBox{
  background: var(--card);
  border-radius: 22px;
  border: 2px solid rgba(59,42,42,0.12);
  padding: 18px;
  box-shadow: 0 10px 0 rgba(59,42,42,0.06);
}

/* home layout */
.twoCol{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:18px;
  align-items:stretch;
}

@media (max-width: 900px){
  .twoCol{ grid-template-columns: 1fr; }
  .brandTitle{ font-size: 28px; }
}

/* progress meter */
.meter{
  margin-top: 12px;
  background:#fff;
  border: 2px solid rgba(59,42,42,0.15);
  border-radius: 14px;
  padding: 10px;
}

.meterLabel{
  font-weight:900;
  color:#5a3d3d;
  margin-bottom: 8px;
}

.barOuter{
  height: 16px;
  border-radius: 999px;
  background:#f0f0f0;
  border: 2px solid rgba(59,42,42,0.12);
  overflow:hidden;
}

.barFill{
  height:100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9fb2, #ff6f90);
  transition: width .35s ease;
}

/* cat cards grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top: 14px;
}

@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
}

.catCard{
  position:relative;
  background: var(--card);
  border-radius: 22px;
  border: 2px solid rgba(59,42,42,0.12);
  padding: 18px;
  box-shadow: 0 10px 0 rgba(59,42,42,0.06);

  transition: transform .25s, box-shadow .25s;
  overflow:hidden;
}

.catCard:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 0 rgba(59,42,42,0.09);
}

.catImg{
  width: 170px;
  max-width: 70%;
  display:block;
  margin: 0 auto 10px;
}

.catName{
  text-align:center;
  font-size: 22px;
  font-weight: 900;
  margin: 6px 0 6px;
}

.catTags{
  text-align:center;
  color:var(--muted);
  font-weight: 700;
  margin: 0 0 8px;
}

.catExtra{
  text-align:center;
  margin: 0;
  color:#5a3d3d;
  font-weight: 800;
}

.cardActions{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top: 12px;
  flex-wrap:wrap;
}

/* tiny sparkle */
.catCard:hover::after{
  content:"✨";
  position:absolute;
  top:10px;
  right:14px;
  font-size: 18px;
  opacity:0.9;
}

/* footer note */
.footerNote{
  text-align:center;
  margin-top: 18px;
  color: rgba(45,31,31,0.55);
  font-weight: 700;
}

/* ===== Modal ===== */
.modalBack{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.25);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:100;
  padding: 14px;
}

.modal{
  width:min(720px, 95vw);
  background:#fff;
  border-radius: 22px;
  border: 3px solid rgba(59,42,42,0.12);
  box-shadow: 0 18px 0 rgba(59,42,42,0.18);
  padding: 18px;
  position:relative;
}

.modalTop{
  display:flex;
  gap:14px;
  align-items:center;
}

.modalImg{
  width: 160px;
  flex:0 0 auto;
}

.modalTitle{
  font-size: 26px;
  font-weight: 950;
  color:#d65b73;
  margin: 0 0 6px;
}

.modalText{
  margin: 0;
  color: #5a3d3d;
  line-height:1.6;
  font-weight: 700;
}

.closeX{
  position:absolute;
  top:10px;
  right:12px;
  background:#ffe2e7;
  border: 2px solid rgba(59,42,42,0.12);
  border-radius: 12px;
  cursor:pointer;
  font-weight: 950;
  padding: 6px 10px;
}

.closeX:hover{ background:#ffc9d4; }

/* ===== 404 ===== */
.big404{
  font-size: 56px;
  margin: 0;
  color:#d65b73;
  text-align:center;
  font-weight: 1000;
}

.centerAll{ text-align:center; }

/* accessibility */
a:focus, button:focus{
  outline: 3px solid rgba(255,111,144,0.45);
  outline-offset: 3px;
}
