:root {
  --bg-top: #1b2a55;
  --bg-bottom: #0b1020;
  --accent: #f5c85b;
  --card: #141c38;
  --card-border: #26314f;
  --text: #ffffff;
  --muted: #d3dbf5;
  --s: 1.2; /* skala ukuran halaman depan: 1 = normal, 1.2 = 120% */
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--bg-top), transparent 70%),
    var(--bg-bottom);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrap { width: 100%; max-width: calc(1080px * var(--s)); margin: 0 auto; padding: calc(18px * var(--s)) calc(24px * var(--s)) calc(6px * var(--s)); flex: 1; display: flex; flex-direction: column; justify-content: center; }
header.top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(10px * var(--s)); margin-bottom: calc(16px * var(--s)); text-align: center; }
.titles { min-width: 0; text-align: center; }
h1 { white-space: pre-line; text-wrap: balance; font-size: clamp(calc(20px * var(--s)), 3.4vw, calc(30px * var(--s))); line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 calc(4px * var(--s)); color: #ffffff; text-shadow: 0 2px 12px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6); }
.sub { color: #e8edff; text-shadow: 0 1px 8px rgba(0,0,0,.75); margin: 0; font-size: calc(14px * var(--s)); }

.grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  gap: calc(14px * var(--s));
}
.card {
  display: flex;
  flex-direction: column;
  gap: calc(10px * var(--s));
  padding: calc(14px * var(--s)) calc(16px * var(--s));
  background: linear-gradient(160deg, rgba(255,255,255,.035), rgba(255,255,255,0) 60%), var(--card);
  border: 1px solid var(--card-border);
  border-radius: calc(18px * var(--s));
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease;
}
.card-top { display: grid; grid-template-columns: var(--tile, calc(52px * var(--s))) minmax(0, 1fr); column-gap: calc(14px * var(--s)); align-items: center; flex: 1; }
.card-top .icon-tile { --tile: calc(52px * var(--s)); }
.txt { min-width: 0; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--card-border)); }
.card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.card .name { color: #ffffff; font-size: calc(18px * var(--s)); font-weight: 800; margin: 0 0 calc(2px * var(--s)); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.card .desc { color: var(--muted); font-size: calc(13px * var(--s)); line-height: 1.4; margin: 0; }
.card .open { color: var(--accent); font-weight: 700; font-size: calc(14px * var(--s)); }
.card .open span { display: inline-block; transition: transform .15s ease; }
.card:hover .open span { transform: translateX(4px); }

.icon-tile {
  --tile: 72px;
  width: var(--tile); height: var(--tile);
  border-radius: calc(var(--tile) * .25);
  display: grid; place-items: center;
  color: #fff;
  flex: none;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 18px -8px rgba(0,0,0,.6);
}
.icon-tile svg { width: 48%; height: 48%; }
.icon-tile .emoji { font-size: calc(var(--tile) * .5); line-height: 1; }
.icon-tile.has-img { background: rgba(255,255,255,.08); }
.icon-tile.has-img img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed var(--card-border); border-radius: 18px; max-width: 460px; margin: 0 auto; grid-column: 1 / -1; }

footer { text-align: center; color: var(--muted); text-shadow: 0 1px 6px rgba(0,0,0,.8); font-size: calc(12px * var(--s)); padding: calc(8px * var(--s)) calc(24px * var(--s)) calc(14px * var(--s)); }
footer a { color: var(--muted); opacity: .9; text-decoration: none; margin-left: 10px; }
footer a:hover { opacity: 1; text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .wrap { padding-top: calc(20px * var(--s)); } }

.logo { display: block; flex: none; height: auto; width: auto; max-height: calc(var(--logo-h, 90px) * var(--s)); max-width: min(80vw, calc(360px * var(--s))); object-fit: contain; }
.logo[hidden] { display: none; }
