/* Paemonteon Studios — site styles (measured from the original Wix site at 1512px wide) */
:root {
  --cyan: #00e5ff;
  --orange: #ff5c00;
  --bg: #191919;
  --panel: #111111;
  --black: #000000;
  --text: #ffffff;
  --soft: #e0e0e0;
  --muted: #b1b1b1;
  --line: rgba(255, 255, 255, 0.6);
  --pad: 35px;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --plex: "IBM Plex Sans", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 21px;
  line-height: 1.38;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1512px; margin: 0 auto; padding: 0 var(--pad); }
@media (max-width: 640px) { :root { --pad: 16px; } body { font-size: 18px; } }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0;
}
.h-xl { font-size: clamp(48px, 6.55vw, 99px); line-height: 0.9; }
.h-lg { font-size: clamp(40px, 5.03vw, 76px); }
.h-md { font-size: clamp(26px, 2.2vw, 33px); line-height: 1.09; }
.cyan { color: var(--cyan); }
.orange { color: var(--orange); }

/* Elements waiting for their entrance animation */
.anim-ready [data-anim] { will-change: transform, opacity; }

/* ---------- Header (scrolls away, like the original) ---------- */
.site-header { position: relative; z-index: 50; background: #fff; color: #000; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 149px; padding-left: 0; }
.logo img { width: 240px; height: auto; }
.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav a { text-decoration: none; font-size: 21px; color: #000; padding: 0 18px; line-height: 77px; }
.nav a:hover { color: var(--cyan); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 50px; border: 0; background: transparent; cursor: pointer; color: var(--cyan); padding: 0;
}
.cart-btn svg { width: 34px; height: 40px; }
.cart-count {
  position: absolute; left: 0; right: 0; top: 19px; text-align: center;
  color: #000; font-size: 13px; font-weight: 600; font-family: var(--body);
}
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: #000; margin: 5px auto; }
@media (max-width: 1000px) {
  .site-header .wrap { min-height: 84px; padding-left: var(--pad); }
  .logo img { width: 170px; }
  .menu-toggle { display: block; order: 3; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; background: #fff; border-top: 1px solid #eee; border-bottom: 1px solid #ddd;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0 16px; line-height: 54px; border-top: 1px solid #f0f0f0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--cyan); color: #000; text-decoration: none;
  font-family: var(--body); font-size: 21px; line-height: 1.38; text-transform: uppercase;
  min-height: 52px; padding: 0 28px; border: 1px solid var(--cyan); cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: #000; color: var(--cyan); }
.btn.outline { background: transparent; color: var(--cyan); text-transform: none; min-height: 83px; padding: 0 32px; text-align: center; }
.btn.outline:hover { background: var(--cyan); color: #000; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }

/* ---------- Home: hero ---------- */
.hero { background: #000; padding-bottom: 106px; }
.hero > img { width: 100%; height: auto; aspect-ratio: 1509 / 639; object-fit: cover; }
.hero .intro { width: min(529px, 100%); margin: 40px 0 0 56.15%; }
.hero .intro p { color: var(--soft); }
.hero .intro .btn { margin-top: 19px; }
@media (max-width: 900px) {
  .hero { padding-bottom: 64px; }
  .hero .intro { margin: 32px var(--pad) 0; width: auto; }
}

/* ---------- Home: featured games ---------- */
.section { padding: 94px 0 95px; }
.featured .cards { display: grid; grid-template-columns: 836fr 558fr; gap: 48px; margin-top: 24px; align-items: stretch; }
@media (max-width: 900px) { .featured .cards { grid-template-columns: 1fr; } }
.game-card { display: flex; flex-direction: column; transform-origin: 50% 50%; }
.game-card .tilt-inner { display: flex; flex-direction: column; flex: 1; transform-origin: 50% 0; border: 1px solid var(--line); background: #000; }
.game-card .cover { width: 100%; object-fit: cover; }
.game-card.inkan .cover { aspect-ratio: 836 / 523; }
.game-card.treasure .cover { aspect-ratio: 558 / 349; }
.game-card .body { padding: 37px 37px 37px; display: flex; flex-direction: column; flex: 1; }
.game-card h3 { color: var(--cyan); }
.game-card p { margin-top: 29px; font-size: 19px; line-height: 1.32; flex: 1; }
.game-card .btn { align-self: flex-start; margin-top: 28px; }

/* ---------- Home: loyalty ---------- */
.loyalty h2 { color: var(--cyan); letter-spacing: 0.05em; }
.loyalty .lead { max-width: 910px; color: var(--soft); margin-top: 19px; }
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 57px; }
@media (max-width: 900px) { .perk-grid { grid-template-columns: 1fr; } }
.perk { border: 1px solid var(--line); background: var(--panel); padding: 37px 37px 36px; min-height: 205px; }
.perk h3 { color: var(--cyan); }
.perk p { margin-top: 19px; font-size: 19px; line-height: 1.32; }

/* ---------- Home: mission ---------- */
.mission { position: relative; background-size: cover; background-position: center; min-height: 878px; padding: 143px 0 178px; }
.mission .box {
  position: relative; width: min(833px, calc(100% - 2 * var(--pad))); margin-left: 42px;
  background: #000; border: 1px solid var(--line); padding: 59px 128px 64px;
}
.mission .box p { color: var(--soft); margin-top: 37px; }
@media (max-width: 900px) {
  .mission { min-height: 0; padding: 80px 0; }
  .mission .box { margin: 0 var(--pad); padding: 40px 28px; }
}

/* Marquee band (scrolls to the right, like the original) */
.band { background: var(--orange); color: #000; overflow: hidden; white-space: nowrap; height: 126px; display: flex; align-items: center; }
.band .track { display: inline-flex; animation: marquee-right 166s linear infinite; font-family: var(--display); font-size: 43px; line-height: 51px; text-transform: uppercase; }
.band .track span { padding-right: 0.3em; }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .band .track { animation: none; } }

/* ---------- Games page ---------- */
.games-hero { background: #000; padding: 114px 0 115px; }
.games-row { display: grid; grid-template-columns: 386fr 792fr 253fr; gap: 7px 27px; padding: 0 24px 0 23px; }
@media (max-width: 900px) { .games-row { grid-template-columns: 1fr; gap: 40px; padding: 0 var(--pad); } }
.tile { display: flex; flex-direction: column; align-items: center; }
.tile .pic { position: relative; width: 100%; height: 482px; overflow: hidden; }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; }
.tile .pic .label { position: absolute; left: 0; right: 0; bottom: 46px; text-align: center; font-family: var(--display); font-size: 33px; line-height: 36px; text-transform: none; color: #fff; }
.tile .pic .label small { display: block; font-family: var(--body); font-size: 15px; line-height: 1.3; margin-top: 4px; }
.tile .pic .label.left { text-align: left; left: 22px; }
.tile .btn { margin-top: 0; }
.tile .btn.two-line { flex-direction: column; line-height: 1.3; }
@media (max-width: 900px) { .tile .pic { height: auto; aspect-ratio: 4 / 5; } .tile.wide .pic { aspect-ratio: 792 / 482; } }

.expand { display: grid; grid-template-columns: 768fr 744fr; min-height: 828px; background: var(--bg); }
.expand .text { padding: 217px 60px 80px 47px; }
.expand .text p { margin-top: 47px; max-width: 661px; }
.expand .pic { background-size: cover; background-position: center; min-height: 420px; }
@media (max-width: 900px) { .expand { grid-template-columns: 1fr; min-height: 0; } .expand .text { padding: 64px var(--pad); } }

/* Game player page */
.player { background: #000; padding: 32px 0 64px; }
.player .frame { position: relative; width: 100%; max-width: 1284px; margin: 0 auto; aspect-ratio: 1284 / 804; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .controls { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1284px; margin: 20px auto 0; flex-wrap: wrap; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: 873fr 639fr; min-height: 854px; background: #000; }
.story .text { padding: 124px 41px 80px 38px; }
.story .text h1 { color: var(--orange); }
.story .text p { margin-top: 48px; max-width: 794px; }
.story .photo { background-size: cover; background-position: center; min-height: 480px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; min-height: 0; } .story .text { padding: 64px var(--pad); } }
.values { display: grid; grid-template-columns: 697fr 697fr; gap: 50px; padding: 119px 34px 119px; }
.values article { border: 1px solid var(--line); background: #000; padding: 46px; align-self: start; }
.values article:nth-child(2) { margin-top: 95px; }
.values article p { margin-top: 37px; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; padding: 64px var(--pad); } .values article:nth-child(2) { margin-top: 0; } .values article { padding: 32px 24px; } }

/* ---------- Contact ---------- */
.contact { background: #000; text-align: center; padding: 93px 0 130px; min-height: 507px; }
.contact p.intro { max-width: 662px; margin: 0 auto 40px; }
.contact h1 { font-size: clamp(36px, 3.8vw, 57px); line-height: 1; text-transform: none; }
.contact a.big { display: block; font-family: var(--display); font-size: clamp(22px, 2vw, 30px); line-height: 36px; color: var(--cyan); text-decoration: none; }
.contact a.big:hover { text-decoration: underline; }
.contact .phone { font-family: var(--display); font-size: clamp(18px, 1.6vw, 24px); line-height: 29px; }
.contact .phone a { text-decoration: none; }

/* ---------- Shop ---------- */
.shop-head { padding: 64px 0 24px; }
.shop-head .lead { color: var(--soft); margin-top: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 96px; }
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
.product {
  background: var(--panel); border: 1px solid #2a2a2a; cursor: pointer; text-align: left;
  color: inherit; font: inherit; padding: 0; display: flex; flex-direction: column;
}
.product:hover { border-color: var(--cyan); }
.product:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.product .img { background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.product .img img { width: 100%; height: 100%; object-fit: contain; }
.product .meta { padding: 14px 16px 18px; }
.product .name { font-size: 16px; margin: 0 0 4px; }
.product .price { color: var(--cyan); font-weight: 600; font-size: 16px; }
.notice { border: 1px solid var(--line); padding: 24px; background: var(--panel); color: #ddd; font-size: 17px; }

/* Dialogs (product + cart) */
dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: 100vw; max-height: 100vh; font-size: 17px; }
dialog::backdrop { background: rgba(0,0,0,.7); }
.modal { background: #141414; border: 1px solid #333; width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .modal { grid-template-columns: 1fr; } }
.modal .pic { background: #fff; display: flex; align-items: center; justify-content: center; }
.modal .pic img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.modal .info { padding: 28px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; font-size: 28px; cursor: pointer; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
select, input[type="email"], input[type="number"] {
  font: inherit; color: var(--text); background: #0b0b0b; border: 1px solid #444; padding: 10px 12px;
}
select:focus, input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

.drawer { position: fixed; inset: 0 0 0 auto; height: 100vh; width: min(440px, 100vw); margin: 0 0 0 auto; }
.drawer .panel { height: 100%; background: #141414; border-left: 1px solid #333; display: flex; flex-direction: column; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #333; }
.drawer header h2 { font-size: 32px; margin: 0; }
.drawer .lines { flex: 1; overflow: auto; padding: 8px 24px; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #262626; }
.line img { width: 64px; height: 64px; object-fit: contain; background: #fff; }
.line .t { font-size: 14px; }
.line .t small { display: block; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid #444; }
.qty button { width: 30px; height: 30px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 16px; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.drawer footer { padding: 20px 24px; border-top: 1px solid #333; display: flex; flex-direction: column; gap: 12px; }
.drawer .total { display: flex; justify-content: space-between; font-weight: 600; }
.drawer .fine { font-size: 13px; color: var(--muted); }
.err { color: #ff8a8a; font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: var(--soft); min-height: 336px; padding: 63px 0 33px; overflow: hidden; }
.site-footer .wrap { position: relative; }
.site-footer .top { display: grid; grid-template-columns: 206px 1fr 288px; gap: 0 0; align-items: start; }
.site-footer .badge { width: 364px; height: 205px; margin: 3px 0 0 -111px; }
.site-footer .badge img { width: 364px; height: 205px; max-width: none; object-fit: cover; }
.news { font-family: var(--plex); margin-top: 24px; }
.news h3 { font-family: var(--plex); text-transform: none; font-size: 24px; line-height: 36px; font-weight: 400; color: #fff; }
.news form { display: grid; grid-template-columns: 623fr 306fr; gap: 0 36px; align-items: end; margin-top: 24px; max-width: 965px; }
.news label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.news input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid #555; color: #fff;
  font: 14px var(--plex); padding: 8px 11px; height: 33px;
}
.news input::placeholder { color: var(--muted); }
.news input:focus { outline: none; border-bottom-color: var(--cyan); }
.news button {
  height: 43px; border: 0; background: var(--muted); color: #fff; font: 700 16px var(--plex); cursor: pointer;
}
.news button:hover { background: #8f8f8f; }
.news .msg { grid-column: 1 / -1; font-size: 14px; color: var(--cyan); min-height: 1.2em; margin: 6px 0 0; }
.footer-right { justify-self: end; width: 288px; margin-top: 49px; }
.social { display: flex; gap: 20px; justify-content: flex-end; }
.social a { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social a svg { width: 15px; height: 15px; fill: currentColor; }
.social a.ig { background: radial-gradient(circle at 30% 110%, #ffdb8b 0%, #ee653d 25%, #d42e81 50%, #a237b6 75%, #3e57bc 100%); }
.social a.yt { background: #e21f1f; }
.social a.x { background: transparent; color: #d8d8d8; }
.social a.x svg { width: 20px; height: 20px; }
.social a.li { background: #0a66c2; }
.social a.tt { background: transparent; }
.social a.tt svg { width: 18px; height: 18px; }
.social a:hover { filter: brightness(1.15); }
.riddle { margin-top: 8px; text-align: right; font-size: 14.2px; line-height: 1.27; color: var(--soft); }
.site-footer .bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 0; font-size: 16.5px; line-height: 21px; }
.site-footer .bottom .legal { text-align: right; }
.site-footer .bottom a.vault { text-decoration: none; font-weight: 700; font-style: italic; }
@media (max-width: 1000px) {
  .site-footer .top { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .badge { margin: -40px 0 -20px -100px; }
  .news form { grid-template-columns: 1fr; gap: 16px; }
  .footer-right { justify-self: start; width: auto; margin-top: 0; }
  .social { justify-content: flex-start; }
  .riddle { text-align: left; max-width: 300px; }
  .site-footer .bottom { flex-direction: column; }
  .site-footer .bottom .legal { text-align: left; }
}

/* ---------- Legal / simple pages ---------- */
.prose { max-width: 860px; padding: 72px 0 96px; font-size: 18px; }
.prose h1 { font-size: clamp(36px, 5vw, 60px); }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose p, .prose li { color: #ddd; margin-top: 1em; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Games page: thin cyan divider between text and image */
.expand { position: relative; }
.expand .vline { position: absolute; left: 50%; margin-left: 0; top: 303px; width: 2px; height: 454px; background: var(--cyan); }
@media (min-width: 901px) { .expand .vline { left: calc(768 / 1512 * 100% - 12px); } }
@media (max-width: 900px) { .expand .vline { display: none; } .tile .pic .label { left: 16px !important; } }

/* Legal pages */
.prose { font-size: 17px; line-height: 1.6; }
.prose h1 { font-size: clamp(40px, 5vw, 64px); margin-bottom: 8px; }
.prose .updated { color: var(--muted); margin-top: 0; }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; margin-top: 56px; color: var(--cyan); scroll-margin-top: 24px; }
.prose h3 { font-family: var(--body); text-transform: none; font-size: 19px; font-weight: 700; margin-top: 28px; color: #fff; scroll-margin-top: 24px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 1em 0; }
.prose li { margin-top: 0.5em; }
.prose a { color: var(--cyan); }
.prose .toc { columns: 2; column-gap: 40px; }
.prose .toc li { break-inside: avoid; }
@media (max-width: 760px) { .prose .toc { columns: 1; } }
