/* 369games.gg - THE STUDIO HUB: its LAYOUT (4 Dec 2026). The look - colours, type, borders - is assets/studio.css, loaded after
   this. Nothing here is shared with nibbles.gg. Mobile first; one column under 800px. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-size: 17px; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.st-wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

.st-skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 10px 16px; }
.st-skip:focus { left: 12px; }

/* ---- header */
.st-head { position: sticky; top: 0; z-index: 20; }
.st-head-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 72px; }
.st-logo { display: inline-flex; align-items: baseline; gap: .12em; text-decoration: none; white-space: nowrap; }
.st-nav { display: flex; align-items: center; gap: 6px 26px; flex-wrap: wrap; }
.st-nav a { text-decoration: none; white-space: nowrap; }
.st-nav-discord { display: inline-flex; align-items: center; gap: .45em; }
@media (max-width: 559.98px) {
  .st-head { position: static; }
  .st-head-in { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 0 12px; min-height: 0; }
  .st-nav { gap: 6px 20px; }
}

/* ---- the hero */
.st-hero { position: relative; padding: clamp(64px, 11vw, 150px) 0 clamp(56px, 9vw, 120px); }
.st-hero--page { padding: clamp(48px, 8vw, 100px) 0 clamp(28px, 4vw, 48px); }
.st-eyebrow { display: flex; align-items: center; gap: .6em; margin-bottom: 18px; }
.st-h1 { font-size: clamp(2.7rem, 7.6vw, 6.4rem); line-height: .98; max-width: 14ch; }
.st-hero--page .st-h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.st-h1-em { display: inline-block; }
.st-lead { max-width: 36em; margin-top: 26px; font-size: clamp(1.06rem, 1.7vw, 1.28rem); }
.st-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; text-decoration: none; padding: .8em 1.35em; font-weight: 700; line-height: 1.2; cursor: pointer; }

/* ---- sections */
.st-sec { position: relative; padding: clamp(60px, 8vw, 112px) 0; }
.st-sec--tight { padding-top: clamp(20px, 3vw, 36px); }
.st-sec-head { margin-bottom: clamp(26px, 4vw, 46px); }
.st-h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.04; }
.st-text { max-width: 42em; font-size: 1.08rem; }

/* ---- the games */
.st-games-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 34px); }
@media (max-width: 799.98px) { .st-games-list { grid-template-columns: minmax(0, 1fr); } }
.st-game { position: relative; display: flex; flex-direction: column; overflow: hidden; }
.st-game-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.st-game-shot { width: 100%; height: 100%; object-fit: cover; }
.st-game-nib { position: absolute; left: 50%; bottom: -9%; height: 104%; width: auto; max-width: none; transform: translateX(-50%); }
.st-game-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.st-game-status { display: inline-flex; align-items: center; gap: .55em; align-self: flex-start; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; }
.st-game-title { font-size: clamp(1.9rem, 3.2vw, 2.5rem); line-height: 1.05; }
.st-game-links { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* ---- the studio's rules */
.st-studio .st-text { margin-bottom: clamp(30px, 4vw, 48px); }
.st-rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: rule; }
@media (max-width: 999.98px) { .st-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .st-rules { grid-template-columns: minmax(0, 1fr); } }
.st-rules li { counter-increment: rule; position: relative; }
.st-rules h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 8px; }

/* ---- community */
.st-join-in { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 26px 56px; align-items: end; }
.st-join-in .st-text { margin-top: 18px; }
.st-join-in .st-actions { margin-top: 0; }
@media (max-width: 799.98px) { .st-join-in { grid-template-columns: minmax(0, 1fr); } }

/* ---- pages: cards, text, tables */
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.st-cards--two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 30px; }
.st-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.st-card-title { font-size: 1.3rem; line-height: 1.2; }
.st-fine { font-size: .9rem; }
.st-draft { padding: 12px 16px; margin-bottom: 22px; }
.st-prose > * { max-width: 760px; }   /* (the text column - the box itself keeps the page's left edge) */
.st-prose .st-h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 40px 0 14px; }
.st-prose .st-h2:first-child { margin-top: 0; }
.st-prose ul { padding-left: 1.2em; margin: 0; display: grid; gap: 10px; }
.st-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; }
.st-table th, .st-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; }
.st-table th { width: 34%; font-weight: 600; }
mark { padding: 0 .2em; }

/* ---- footer */
.st-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; padding: 36px 0 40px; }
.st-foot-links { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.st-foot-links a { text-decoration: none; }
@media (max-width: 799.98px) { .st-foot-links { margin-left: 0; width: 100%; } }
