/* Chompyard: a game portal with the Sharks & Minnows glossy cartoon look
   (gradients + white bevel + chunky dark drop, white outlined lettering). */
:root {
  --ink: #15111f;
  --minnow: #4cc9f0;
  --shark: #ff3b55;
  --gold: #ffe14d;
  --g-gold: linear-gradient(#fff07a 0%, #ffcc1f 45%, #ff9d00 100%);
  --g-blue: linear-gradient(#a6f0ff 0%, #3fc4ff 45%, #1d7bff 100%);
  --g-pink: linear-gradient(#ffc2e0 0%, #ff6fae 50%, #f0367f 100%);
  --g-purple: linear-gradient(#e6c9ff 0%, #b07cff 50%, #7c3cff 100%);
  --bevel: inset 0 3px 0 rgba(255, 255, 255, 0.6), inset 0 -5px 0 rgba(0, 0, 0, 0.2);
  --lift: 0 5px 0 var(--ink), 0 10px 16px rgba(10, 5, 30, 0.35);
  --panel:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 14px, transparent 14px 28px),
    linear-gradient(#3d3170, #221a42 40%, #17122e);
  --head: 'Bangers', 'Impact', sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --top: 64px;
  --side: 230px;
}

* { box-sizing: border-box; }
body {
  margin: 0; color: #fff; font-family: var(--body); font-size: 16px; line-height: 1.5; min-height: 100vh;
  background: #1b1533;
  background-image:
    radial-gradient(ellipse at 60% -10%, rgba(76, 201, 240, 0.28), transparent 55%),
    radial-gradient(ellipse at 100% 50%, rgba(255, 59, 85, 0.14), transparent 45%),
    linear-gradient(#251d4a, #1b1533 40%, #120e26);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.ink {
  font-family: var(--head); font-weight: 400; letter-spacing: 1px;
  -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink);
}

/* ---------- top bar ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 30;
  display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: linear-gradient(#2b2156, #1f1842); border-bottom: 3px solid var(--ink);
  box-shadow: 0 4px 0 rgba(10, 5, 30, 0.35);
}
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); font-size: 22px; cursor: pointer; }
.logo {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  font-family: var(--head); font-size: 30px; line-height: 1; transform: skew(-8deg);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink);
}
.logo .fin { width: 36px; height: 36px; transform: skew(8deg); filter: drop-shadow(0 3px 0 var(--ink)); }
.logo .a { color: var(--shark); }
.logo .b { color: var(--minnow); }
.search { position: relative; flex: 1; max-width: 460px; margin: 0 auto; }
.search input {
  width: 100%; height: 42px; padding: 0 16px 0 42px; border-radius: 999px; border: 3px solid var(--ink);
  background: rgba(0, 0, 0, 0.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9b2e0' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") 14px center / 18px no-repeat;
  color: #fff; font: 700 16px var(--body); outline: none; box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.35);
}
.search input:focus { border-color: var(--minnow); }
.search input::placeholder { color: #9d95c4; }
#search-drop {
  position: absolute; top: 50px; left: 0; right: 0; padding: 8px; border-radius: 16px; border: 3px solid var(--ink);
  background: linear-gradient(#3d3170, #221a42); box-shadow: 0 8px 0 var(--ink), 0 16px 30px rgba(0, 0, 0, 0.5);
}
#search-drop a { display: flex; align-items: center; gap: 12px; padding: 6px; border-radius: 10px; font-weight: 800; }
#search-drop a:hover { background: rgba(255, 255, 255, 0.1); }
#search-drop img { width: 72px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
#search-drop p { margin: 6px 8px; color: #cfc8ef; }

/* ---------- sidebar ---------- */
.side {
  position: fixed; top: var(--top); left: 0; bottom: 0; width: var(--side); z-index: 20; overflow-y: auto;
  padding: 14px 10px; background: rgba(18, 13, 38, 0.75); border-right: 3px solid rgba(0, 0, 0, 0.4);
}
.side a {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 2px; border-radius: 12px;
  font-weight: 800; color: #ddd8f5; transition: background 0.12s;
}
.side a i { font-style: normal; width: 24px; text-align: center; font-size: 18px; }
.side a span { flex: 1; }
.side a em { font-style: normal; font-size: 12px; color: #9d95c4; background: rgba(255, 255, 255, 0.08); padding: 0 8px; border-radius: 999px; }
.side a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side a.on { background: var(--g-blue); color: #fff; box-shadow: var(--bevel), 0 3px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; }
.side a.on em { color: #fff; background: rgba(0, 0, 0, 0.25); -webkit-text-stroke: 0; }
.side hr { border: 0; border-top: 2px solid rgba(255, 255, 255, 0.08); margin: 10px 6px; }
.shade { display: none; }

.page { margin-left: var(--side); padding: calc(var(--top) + 22px) 26px 10px; max-width: calc(1500px + var(--side)); }
footer.page { padding: 30px 26px 36px; color: #9d95c4; font-size: 14px; }

/* ---------- buttons + tags ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; cursor: pointer;
  font-family: var(--head); font-size: 28px; letter-spacing: 1px; line-height: 1.1;
  padding: 10px 30px; border-radius: 16px; border: 4px solid var(--ink);
  color: #fff; -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 3px 0 var(--ink);
  background: var(--g-gold); box-shadow: var(--bevel), var(--lift); transform: skew(-6deg); transition: transform 0.1s;
}
.btn > span { transform: skew(6deg); }
.btn.shine::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; pointer-events: none;
}
@keyframes shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
.tag {
  display: inline-block; font-family: var(--head); font-size: 17px; letter-spacing: 1px; line-height: 1.3; padding: 0 10px;
  border-radius: 999px; border: 3px solid var(--ink); color: #fff;
  -webkit-text-stroke: 1px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 var(--ink);
}
.tag.new { background: var(--g-pink); }
.tag.p2 { background: var(--g-purple); }

/* ---------- hero (featured game) ---------- */
.hero {
  position: relative; display: block; border-radius: 24px; overflow: hidden; border: 4px solid var(--ink);
  aspect-ratio: 21 / 8; max-height: 460px; width: 100%;
  box-shadow: 0 0 0 3px rgba(255, 210, 63, 0.5), 0 10px 0 var(--ink), 0 20px 36px rgba(0, 0, 0, 0.45);
}
/* slideshow: only the "on" slide takes up space, the others sit on top of it, faded out */
.hero-wrap { position: relative; }
.hero-wrap .hero { transition: opacity 0.6s; }
.hero-wrap .hero:not(.on) { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.hero-dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 3px solid var(--ink); background: rgba(255, 255, 255, 0.5); cursor: pointer; }
.hero-dots button.on { background: var(--gold); width: 34px; border-radius: 10px; }
.tag.hot { background: linear-gradient(#ffd27a, #ff7a2f 50%, #e8402a); }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; transition: transform 0.5s; }
.hero:hover img { transform: scale(1.03); }
.hero-txt {
  position: absolute; inset: 0; padding: 28px 34px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 8px;
  background: linear-gradient(90deg, rgba(16, 10, 40, 0.85), rgba(16, 10, 40, 0.45) 45%, transparent 70%);
}
.hero h1 { margin: 0; font-size: clamp(36px, 4.4vw, 62px); line-height: 1; color: var(--c); transform: skew(-8deg); -webkit-text-stroke: 3px var(--ink); text-shadow: 0 5px 0 var(--ink); }
.hero p { margin: 0 0 8px; max-width: 420px; font-size: 18px; font-weight: 800; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }

/* ---------- section titles ---------- */
.sec { margin: 34px 0 14px; font-size: 34px; line-height: 1; color: var(--gold); transform: skew(-6deg); transform-origin: left; }
.empty { color: #cfc8ef; font-weight: 700; }
.empty a { color: var(--minnow); }

/* ---------- game cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { display: block; transition: transform 0.15s; }
.card .pic {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 3px solid var(--ink);
  background: #2a2250; box-shadow: 0 5px 0 var(--ink); transition: box-shadow 0.15s;
}
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.card .tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; }
.card .play-dot {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; display: grid; place-items: center;
  border-radius: 50%; border: 3px solid var(--ink); background: var(--g-gold); box-shadow: var(--bevel), 0 4px 0 var(--ink);
  font-size: 22px; color: #fff; -webkit-text-stroke: 1px var(--ink); opacity: 0; transform: scale(0.6); transition: 0.15s;
}
.card .name { margin-top: 8px; padding: 0 2px; font-weight: 900; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.card:hover { transform: translateY(-4px); }
a.card:hover .pic { box-shadow: 0 9px 0 var(--ink), 0 0 0 3px var(--c), 0 0 24px var(--c); }
a.card:hover .pic img { transform: scale(1.07); }
a.card:hover .play-dot { opacity: 1; transform: scale(1); }
.card.soon .pic {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 12px, transparent 12px 24px), rgba(255, 255, 255, 0.03);
  border: 3px dashed rgba(255, 255, 255, 0.2); box-shadow: none; color: #9d95c4; font-weight: 900;
}
.card.soon .pic span { font-size: 30px; opacity: 0.7; }

/* ---------- play page ---------- */
.play { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 26px; align-items: start; }
.frame {
  position: relative; aspect-ratio: 16 / 9; width: 100%; max-height: calc(100vh - var(--top) - 130px);
  margin-inline: auto; border-radius: 18px 18px 0 0; overflow: hidden; border: 4px solid var(--ink); border-bottom: 0; background: #000;
}
.frame:fullscreen { border: 0; border-radius: 0; max-height: none; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame .start {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse at center, rgba(16, 10, 40, 0.25), rgba(16, 10, 40, 0.75)), var(--cover) center / cover;
}
.frame .start small { font-weight: 800; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.frame .start:hover .btn { transform: skew(-6deg) scale(1.06); }
.bar {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 4px solid var(--ink); border-radius: 0 0 18px 18px;
  background: linear-gradient(#3d3170, #221a42); box-shadow: 0 6px 0 var(--ink);
}
.bar > img { width: 64px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 2px solid var(--ink); }
.bar > div { flex: 1; min-width: 0; }
.bar h1 { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 900; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.cats a { font-size: 12px; font-weight: 800; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #ddd8f5; }
.cats a:hover { background: rgba(255, 255, 255, 0.2); }
.icon-btn {
  width: 46px; height: 46px; border-radius: 12px; border: 3px solid var(--ink); cursor: pointer; font-size: 22px;
  background: var(--g-blue); box-shadow: var(--bevel), 0 3px 0 var(--ink); -webkit-text-stroke: 1px var(--ink);
}
.icon-btn:hover { transform: scale(1.06); }
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-top: 26px; }
.about section {
  padding: 18px 22px; border-radius: 18px; background: var(--panel); border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16), 0 6px 0 var(--ink);
}
.about h2 { margin: 0 0 8px; font-size: 28px; color: var(--minnow); transform: skew(-6deg); transform-origin: left; }
.about p { margin: 0 0 10px; color: #ddd8f5; }
.keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; color: #ddd8f5; }
.keys li { display: flex; gap: 10px; align-items: center; }
.keys li > span { display: flex; gap: 4px; flex-shrink: 0; }
kbd {
  font-family: var(--body); font-weight: 900; font-size: 13px; color: var(--ink); background: #fff;
  border-radius: 6px; padding: 0 7px; box-shadow: 0 3px 0 #9aa0bd; min-width: 26px; text-align: center;
}
.keys .ph { font-size: 20px; line-height: 1; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.shots img { border-radius: 14px; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.more h2 { margin: 0 0 12px; font-size: 28px; color: var(--gold); transform: skew(-6deg); transform-origin: left; }
.more .grid { grid-template-columns: 1fr; }

/* ---------- smaller screens ---------- */
@media (max-width: 1150px) {
  .play { grid-template-columns: 1fr; }
  .more .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 860px) {
  :root { --top: 58px; }
  .burger { display: block; }
  .side { transform: translateX(-100%); transition: transform 0.2s; z-index: 25; background: #1d1640; }
  body.menu-open .side { transform: none; }
  body.menu-open .shade { display: block; position: fixed; inset: 0; z-index: 22; background: rgba(0, 0, 0, 0.5); }
  .page { margin-left: 0; padding: calc(var(--top) + 16px) 16px 10px; }
  footer.page { padding: 26px 16px 30px; }
  .logo { font-size: 24px; }
  .logo .fin { width: 30px; height: 30px; }
  .logo .c { display: none; }
  .hero { aspect-ratio: auto; max-height: none; background: var(--panel); }
  .hero img { aspect-ratio: 16 / 9; height: auto; }
  .hero-txt { position: static; padding: 14px 16px 18px; background: none; }
  .hero p { font-size: 15px; }
  .hero .btn { font-size: 22px; padding: 6px 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card .play-dot { display: none; }
  .sec { font-size: 28px; margin-top: 28px; }
  .about { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .frame .btn { font-size: 24px; padding: 8px 22px; }
}
@media (max-width: 420px) {
  .search input { padding-left: 36px; background-position: 11px center; font-size: 15px; }
  .logo span { display: none; }
}

/* ---------- share button + "link copied" toast ---------- */
.share-btn {
  height: 46px; padding: 0 16px; border-radius: 12px; border: 3px solid var(--ink); cursor: pointer;
  font-family: var(--head); font-size: 20px; letter-spacing: 1px; color: #fff;
  -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 0 2px 0 var(--ink);
  background: var(--g-pink); box-shadow: var(--bevel), 0 3px 0 var(--ink); transform: skew(-6deg);
}
.share-btn > span { display: inline-block; transform: skew(6deg); }
.share-btn:hover { transform: skew(-6deg) scale(1.06); }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%);
  padding: 10px 20px; border-radius: 14px; border: 3px solid var(--ink); background: var(--g-blue);
  font-weight: 900; color: var(--ink); box-shadow: var(--bevel), 0 4px 0 var(--ink); animation: toast-in 0.2s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- About / Privacy / Contact ---------- */
.info { max-width: 820px; }
.info section {
  margin-top: 20px; padding: 18px 22px; border-radius: 18px; background: var(--panel); border: 4px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.16), 0 6px 0 var(--ink);
}
.info h2 { margin: 0 0 8px; font-size: 26px; color: var(--minnow); transform: skew(-6deg); transform-origin: left; font-family: var(--head); font-weight: 400; letter-spacing: 1px; }
.info p, .info li { color: #ddd8f5; }
.info p { margin: 0 0 10px; }
.info a { color: var(--minnow); font-weight: 800; }
footer.page nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
footer.page nav a { color: #cfc8ef; font-weight: 800; }
footer.page nav a:hover { color: #fff; }
.share-btn b { font-weight: inherit; }
@media (max-width: 520px) {
  .bar > img { display: none; }
  .share-btn { width: 46px; padding: 0; }
  .share-btn b { display: none; }
}
