:root { --bg: #42d7f1; --ink: #0b2a33; --card: #ffffff; --accent: #ff7a1a; --accent2: #7a3bff; --shadow: 0 8px 24px rgba(8, 60, 80, .25); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Apple Sans", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: linear-gradient(180deg, #5be0f7 0%, #42d7f1 45%, #2fb9d6 100%); min-height: 100vh; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.hero { padding: 54px 0 26px; text-align: center; }
header.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 58px); letter-spacing: -.02em; text-shadow: 0 3px 0 rgba(255, 255, 255, .45); }
header.hero p { margin: 10px auto 0; max-width: 560px; font-size: 18px; opacity: .8; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.badge { background: rgba(255, 255, 255, .55); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
h2.section { margin: 38px 0 14px; font-size: 20px; letter-spacing: .02em; text-transform: uppercase; opacity: .75; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(8, 60, 80, .35); }
.card .thumb { aspect-ratio: 16/10; display: grid; place-items: center; font-size: 56px; background: #101018; }
.card .body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card p { margin: 0; font-size: 14px; opacity: .72; line-height: 1.4; }
.tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #e7f9fd; color: #0b6a80; }
.tag.fan { background: #ffefd9; color: #a24a00; } .tag.soon { background: #eee; color: #666; }
footer { margin: 50px 0 30px; text-align: center; font-size: 13px; opacity: .75; line-height: 1.6; }
/* game pages */
body.game { background: #0a0710; color: #f3e9d0; }
.bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #14101c; border-bottom: 1px solid #2a2236; font-size: 15px; }
.bar a { text-decoration: none; background: #ff7a1a; color: #1a0c00; font-weight: 700; padding: 7px 14px; border-radius: 999px; }
.bar .title { font-weight: 700; flex: 1; }
.bar .hint { opacity: .6; font-size: 13px; }
.stage { display: grid; place-items: center; padding: 14px; }
.credit { max-width: 820px; margin: 6px auto 30px; padding: 0 16px; text-align: center; font-size: 13px; opacity: .65; line-height: 1.6; }
.credit a { color: #ffb347; }
canvas.game { display: block; max-width: 100%; background: #000; border-radius: 10px; touch-action: none; image-rendering: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); outline: none; }

.card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .thumb { overflow: hidden; }
.tag.new { background: #e9e0ff; color: #5a2ad0; }

/* the "made a game?" box */
.dev { margin-top: 44px; background: rgba(255, 255, 255, .62); border-radius: 20px; padding: 24px 26px 20px; text-align: center; box-shadow: var(--shadow); }
.dev h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.01em; }
.dev p { margin: 8px auto; max-width: 640px; font-size: 16px; line-height: 1.5; }
.dev .fine { font-size: 13px; opacity: .7; }
.dev-actions { margin: 14px 0 4px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--accent); color: #1a0c00; font-weight: 800; font-size: 16px; padding: 12px 22px; border-radius: 14px; text-decoration: none; box-shadow: 0 4px 0 #a24a00; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #a24a00; } .btn.alt { background: var(--accent2); color: #fff; box-shadow: 0 4px 0 #3a1a9a; }

/* the gun logo */
header.hero .logo { display: block; width: 92px; height: 92px; margin: 0 auto 14px; filter: drop-shadow(0 4px 0 rgba(8, 60, 80, .25)); }
.bar .logo { width: 28px; height: 28px; flex: none; margin-right: -4px; }

/* fullscreen button + fullscreen game stage (Tower of Destiny page) */
.bar .fs { background: #2a2236; color: #f3e9d0; border: 1px solid #4a3d63; font: inherit; font-weight: 700; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.bar .fs:hover { background: #3a2f4f; }
.stage:fullscreen { background: #000; padding: 0; display: block; }
.stage:-webkit-full-screen { background: #000; padding: 0; display: block; }
.stage:fullscreen iframe { width: 100vw !important; height: 100vh !important; max-width: none !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; }
.stage:-webkit-full-screen iframe { width: 100vw !important; height: 100vh !important; max-width: none !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; }
/* fallback fullscreen (the game fills the whole window when the browser will not do real fullscreen) */
.stage.fake { position: fixed; inset: 0; z-index: 9999; background: #000; padding: 0; display: block; }
.stage.fake iframe { width: 100vw !important; height: 100vh !important; max-width: none !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; }
.fsx { display: none; position: absolute; top: 8px; right: 8px; z-index: 2; background: rgba(20, 16, 28, .8); color: #f3e9d0; border: 1px solid #4a3d63; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.stage.fake .fsx { display: block; }

/* play timer pages (timer/ and timesup/) */
.tbox { background: rgba(255, 255, 255, .7); border-radius: 20px; padding: 22px 26px 24px; margin: 18px auto; max-width: 600px; box-shadow: var(--shadow); }
.tbox h2 { margin: 0 0 8px; font-size: 22px; }
.tbox h3 { margin: 18px 0 4px; font-size: 16px; }
.tbox p { margin: 8px 0; line-height: 1.5; }
.tbox label { display: block; font-weight: 700; margin: 14px 0 6px; }
.tbox input, .tbox select { font: inherit; font-size: 18px; padding: 10px 12px; border: 2px solid rgba(11, 42, 51, .25); border-radius: 12px; width: 100%; max-width: 280px; background: #fff; color: var(--ink); }
.trow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 0; }
.tbox button.btn { border: 0; cursor: pointer; font-family: inherit; }
.tbox .btn.small { font-size: 15px; padding: 9px 16px; border-radius: 12px; }
.tbox .btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 4px 0 rgba(11, 42, 51, .25); }
.tbox button.btn[disabled] { opacity: .5; cursor: not-allowed; }
.tmsg { min-height: 1.3em; font-weight: 700; margin-top: 10px; }
.tmsg.ok { color: #0b6a3a; } .tmsg.err { color: #b3261e; }
.tnote { font-size: 14px; opacity: .8; line-height: 1.5; }
.tstat { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; } .tstat span { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.tbox[hidden], .tbox [hidden] { display: none !important; }
