/* iWubbzy classic-inspired UI (uses only local assets) */
:root{
  --page-w: 960px;
  --blue: #0b86c2;
  --blue-dark: #086e9e;
  --blue-light: #19a3d6;
  --bg: #d9f1ff;
  --panel: #ffffff;
  --ink: #0b0b0b;
  --muted: #3b3b3b;
  --border: rgba(0,0,0,.18);
  --shadow: 0 2px 0 rgba(0,0,0,.12);
  --radius: 8px;
  --link: #075b89;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

a{ color: var(--link); }
a:visited{ color: var(--link); }
a:hover{ text-decoration: none; }

.site{
  max-width: var(--page-w);
  margin: 0 auto;
  background: transparent;
}

.masthead{
  margin: 0;
  padding: 0;
}

.brandbar{
  background: #ffffff;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 0;
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: inherit;
}

.brand img{
  height: 42px;
  width: auto;
  image-rendering: auto;
}

.tagline{
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.socials{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.socials a{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  color: var(--muted);
  text-decoration:none;
}
.socials a:hover{ color: var(--ink); }

.socials img{
  width: 18px;
  height: 18px;
}

.topnav{
  background: var(--blue);
  border: 1px solid var(--border);
  border-top: 0;
  padding: 6px 10px;
  color: #ffffff;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
}

.topnav a{
  color: #ffffff;
  text-decoration:none;
  font-weight: bold;
  font-size: 13px;
}

.topnav .sep{
  color: rgba(255,255,255,.85);
  font-weight: normal;
}

.page{
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 0;
  padding: 14px 14px 18px;
  box-shadow: var(--shadow);
}

.h1{
  margin: 0 0 8px;
  font-size: 22px;
}

.lede{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: #fff;
}

.card .card-h{
  background: linear-gradient(0deg, var(--blue-dark), var(--blue));
  color:#fff;
  padding: 8px 10px;
  font-weight:bold;
  font-size: 13px;
}

.card .card-b{
  padding: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.list-clean{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.list-clean li{ margin: 6px 0; }

.note{
  border-left: 4px solid var(--blue-light);
  background: rgba(25,163,214,.10);
  padding: 8px 10px;
  border-radius: 6px;
}

.hero{
  display:flex;
  gap: 12px;
  align-items: center;
}
.hero img{
  width: 170px;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.hero .hero-text{
  flex: 1;
}

.footer{
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--blue);
  color:#fff;
}

.footer-topnav{
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items:center;
}

.footer-topnav a{
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  font-size:13px;
}

.footer-cols{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
}

.footer-col{
  padding: 10px 12px 12px;
  border-right: 1px solid rgba(255,255,255,.35);
  min-height: 84px;
}

.footer-col:last-child{ border-right: 0; }

.footer-col h3{
  margin: 0 0 6px;
  font-size: 13px;
}

.footer-col a{
  color:#fff;
  text-decoration:none;
  font-size: 12px;
}
.footer-col a:hover{ text-decoration: underline; }

.footer-meta{
  border-top: 1px solid rgba(255,255,255,.35);
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255,255,255,.95);
}

.footer-meta a{ color:#fff; }

.small{ font-size: 12px; color: var(--muted); }
.tiny{ font-size: 11px; color: var(--muted); }

hr.hr{
  border:0;
  border-top:1px solid var(--border);
  margin: 10px 0;
}

.game-frame{
  width: min(100%, 960px);
  aspect-ratio: 30 / 17; /* 600x340 */
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.game-frame #player, .game-frame ruffle-player{
  width: 100%;
  height: 100%;
  display:block;
  background:#fff;
}

/* Responsive: stack columns and cards on small screens */
@media (max-width: 760px){
  .grid{ grid-template-columns: 1fr; }
  .footer-cols{ grid-template-columns: 1fr; }
  .footer-col{ border-right: 0; border-top: 1px solid rgba(255,255,255,.35); }
  .footer-col:first-child{ border-top: 0; }
  .brandbar{ flex-direction: column; align-items:flex-start; }
  .socials{ width:100%; justify-content:flex-start; flex-wrap:wrap; }
  body{ background: #cfeeff; }
}


/* Legacy components from earlier iWubbzy pages */
.box{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  margin: 0 0 12px;
}
.box-title{
  background: linear-gradient(0deg, var(--blue-dark), var(--blue));
  color:#fff;
  padding: 8px 10px;
  font-weight:bold;
  font-size: 13px;
}
.box-body{
  padding: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.hr{
  border-top: 1px solid var(--border);
  height: 0;
  margin: 10px 0;
}
.clean{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.clean li{ margin: 6px 0; }
.center{ text-align:center; }
