/* PawClawStudios website. Tokens first; one bold moment (the claw-slash hero), everything else quiet. */
@font-face { font-family: "Bagel Fat One"; src: url("/assets/fonts/bagel-fat-one.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/assets/fonts/lexend.woff") format("woff"); font-weight: 100 900; font-display: swap; }

:root {
	--night: #1d2145;
	--night-2: #131637;
	--night-3: #2a2f63;
	--cream: #fff4e2;
	--paper: #fffaf1;
	--claw: #ff7a45;
	--claw-deep: #b8400f;       /* orange for text on cream (contrast) */
	--ink: #1d2145;
	--ink-soft: #4b5080;
	--line: #eadcc4;
	--pop: #38b6ff;
	--paw: #13c4b5;
	--pets: #5cc8f5;
	--funky: #8e4bd6;
	--bubble: #ff8fd2;
	--display: "Bagel Fat One", "Lexend", system-ui, sans-serif;
	--body: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 70rem;
	--cut: clamp(1.6rem, 4vw, 3.2rem);
	--radius: 1.1rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); }
img, video, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--claw-deep); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--claw); outline-offset: 3px; border-radius: .3rem; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--cream); color: var(--ink); padding: .6rem 1rem; border-radius: .5rem; z-index: 100; }
.skip:focus { left: .5rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 .6em; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.2rem; line-height: 1.6; max-width: 56ch; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: 999px; border: 3px solid var(--night); background: var(--claw); color: var(--night); font: 700 1.05rem/1 var(--body); text-decoration: none; box-shadow: 0 5px 0 var(--night); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.btn:hover { color: var(--night); transform: translateY(-2px); box-shadow: 0 7px 0 var(--night); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--night); }
.btn.alt { background: var(--cream); }
.btn.ghost { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 0 5px 0 rgba(255, 244, 226, .35); }
.btn.ghost:hover { color: var(--cream); box-shadow: 0 7px 0 rgba(255, 244, 226, .35); }
.btn.small { padding: .6rem 1.1rem; font-size: .95rem; box-shadow: 0 4px 0 var(--night); }
.row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- header ---------- */
.site-head { background: var(--night); color: var(--cream); position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.brand img { height: 3rem; width: auto; }
.nav { display: flex; align-items: center; gap: .4rem; }
.nav a { color: var(--cream); text-decoration: none; font-weight: 500; padding: .55rem .9rem; border-radius: 999px; }
.nav a:hover { background: var(--night-3); color: #fff; }
.nav a[aria-current="page"] { background: var(--night-3); }
.nav .btn { margin-left: .6rem; color: var(--night); padding: .6rem 1.2rem; box-shadow: 0 4px 0 #0c0e26; border-color: #0c0e26; }
.nav .btn:hover { background: #ff9366; }
.menu { display: none; }
@media (max-width: 52rem) {
	.menu { display: block; }
	.menu summary { list-style: none; cursor: pointer; padding: .55rem 1rem; border: 2px solid var(--cream); border-radius: 999px; font-weight: 600; }
	.menu summary::-webkit-details-marker { display: none; }
	.menu[open] summary { background: var(--night-3); }
	.nav.full { display: none; }
	.menu .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--night); padding: .5rem 1.25rem 1.25rem; border-top: 1px solid var(--night-3); }
	.menu .nav a { padding: .85rem 1rem; }
	.menu .nav .btn { margin: .6rem 0 0; justify-content: center; }
}

/* ---------- hero: four claw slashes ---------- */
.hero { background: var(--night); color: var(--cream); position: relative; overflow: hidden; padding: clamp(1.4rem, 3vw, 2.6rem) 0 clamp(3.2rem, 6vw, 5rem); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60rem 28rem at 85% -10%, rgba(255, 122, 69, .22), transparent 60%), radial-gradient(40rem 24rem at 0% 100%, rgba(56, 182, 255, .16), transparent 60%); z-index: -1; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: 22ch; margin-bottom: .35em; }
.hero .lead { color: #e9e4f2; margin-bottom: 1.2rem; font-size: 1.1rem; max-width: 60ch; }
.slashes { display: flex; gap: clamp(.5rem, 1.4vw, 1.1rem); height: clamp(19rem, 46vh, 31rem); margin-top: clamp(1.5rem, 3vw, 2.4rem); padding-inline: max(2.4rem, calc((100% - var(--wrap)) / 2)); }
.slash { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; transform: skewX(-9deg); transition: flex-grow .55s cubic-bezier(.2, .8, .2, 1); text-decoration: none; color: #fff; border-radius: .4rem; background: var(--c); animation: cut .85s cubic-bezier(.2, .85, .25, 1) both; animation-delay: calc(var(--i) * .16s + .15s); }
.slash:hover, .slash:focus-visible { flex-grow: 2.3; }
.slash-art { position: absolute; inset: -6% -18%; transform: skewX(9deg); background-size: cover; background-position: center 30%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.slash:hover .slash-art, .slash:focus-visible .slash-art { transform: skewX(9deg) scale(1.08); }
.slash::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .38rem; background: var(--claw); z-index: 2; transform-origin: top; animation: claw .5s ease-out both; animation-delay: calc(var(--i) * .16s + .55s); }
.slash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(19, 22, 55, .92) 0%, rgba(19, 22, 55, .35) 38%, transparent 62%); }
.slash-label { position: absolute; left: 1.7rem; right: 1rem; bottom: 1.2rem; z-index: 3; transform: skewX(9deg); display: grid; gap: .3rem; }
.slash-label b { font: 400 clamp(1.15rem, 2.2vw, 1.8rem)/1.05 var(--display); text-shadow: 0 2px 0 rgba(19, 22, 55, .6); }
.slash-label i { font-style: normal; font-weight: 600; font-size: .9rem; color: var(--night); background: var(--cream); justify-self: start; padding: .15rem .7rem; border-radius: 999px; }
.slash.soon .slash-label i { background: transparent; color: var(--cream); border: 2px solid var(--cream); padding: .05rem .65rem; }
@keyframes cut { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes claw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (max-width: 52rem) {
	.slashes { flex-direction: column; height: auto; padding-inline: 0; gap: .6rem; }
	.slash { transform: none; height: 7.2rem; flex: none; animation-name: cutm; }
	.slash:hover, .slash:focus-visible { flex-grow: 0; }
	.slash-art { transform: none; inset: 0; background-position: center 28%; }
	.slash:hover .slash-art { transform: scale(1.05); }
	.slash-label { transform: none; left: 1.3rem; bottom: .9rem; }
	@keyframes cutm { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* floating bubbles (pop them!) */
.bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bubble { position: absolute; pointer-events: auto; border: 3px solid rgba(255, 255, 255, .75); background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 55%); border-radius: 50%; padding: 0; cursor: pointer; animation: drift var(--t, 9s) ease-in-out infinite alternate; width: var(--s); height: var(--s); left: var(--x); top: var(--y); }
.bubble.pop { animation: pop .28s ease-out forwards; }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx, 14px), var(--dy, -26px)); } }
@keyframes pop { 0% { transform: scale(1); opacity: 1; } 60% { transform: scale(1.35); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section.night { background: var(--night); color: var(--cream); }
.section.paper { background: var(--paper); }
.cut-top::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--cut) * -1 + 1px); height: var(--cut); background: inherit; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.cut-top.flip::before { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }

/* playable games: big rows, not equal cards */
.play-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.play-row:last-child { margin-bottom: 0; }
.play-row.rev .media { order: 2; }
.media { position: relative; border-radius: var(--radius); overflow: hidden; border: 4px solid var(--night); box-shadow: .7rem .7rem 0 var(--accent, var(--claw)); aspect-ratio: 16 / 9; background: var(--night); }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.tags li { background: var(--night); color: var(--cream); padding: .25rem .8rem; border-radius: 999px; font-size: .9rem; }
@media (max-width: 52rem) { .play-row { grid-template-columns: 1fr; } .play-row.rev .media { order: 0; } }

/* coming soon: compact art strips */
.soon-list { display: grid; gap: 1.2rem; }
.soon-item { display: grid; grid-template-columns: minmax(10rem, 17rem) 1fr; gap: 1.6rem; align-items: center; background: var(--night-3); border-radius: var(--radius); overflow: hidden; color: var(--cream); }
.soon-item img { width: 100%; height: 100%; object-fit: cover; min-height: 8.5rem; }
.soon-item > div { padding: 1.2rem 1.4rem 1.2rem 0; }
.soon-item h3 { margin-bottom: .3em; }
.soon-item p { color: #dcd8ee; margin-bottom: .6rem; }
.pill { display: inline-block; border: 2px solid currentColor; border-radius: 999px; padding: .1rem .8rem; font-size: .9rem; font-weight: 600; }
@media (max-width: 40rem) { .soon-item { grid-template-columns: 1fr; } .soon-item > div { padding: 0 1.2rem 1.3rem; } .soon-item img { min-height: 0; aspect-ratio: 2 / 1; } }

/* plain fact list (parents) */
.facts { display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr; margin: 0; border-top: 2px solid currentColor; }
.facts dt, .facts dd { padding: .9rem 0; margin: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent); }
.facts dt { font-weight: 700; padding-right: 1rem; }
@media (max-width: 40rem) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 52rem) { .two-col { grid-template-columns: 1fr; } }

/* ---------- game page ---------- */
.game-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 75%, var(--night)) 0%, var(--night) 100%); color: var(--cream); padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem); }
.game-hero .wrap { display: grid; grid-template-columns: 1fr minmax(14rem, 26rem); gap: 2.5rem; align-items: center; }
.game-hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); }
.game-hero .art { border-radius: var(--radius); border: 4px solid var(--night); box-shadow: .6rem .6rem 0 rgba(19, 22, 55, .55); overflow: hidden; transform: rotate(2deg); }
@media (max-width: 52rem) { .game-hero .wrap { grid-template-columns: 1fr; } .game-hero .art { transform: none; max-width: 26rem; } }
.player { margin-top: -2.4rem; position: relative; z-index: 3; }
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--night); border: 5px solid var(--night); border-radius: var(--radius); box-shadow: .8rem .8rem 0 var(--accent); overflow: hidden; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.frame .poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: var(--night) center / cover no-repeat; display: grid; place-items: center; }
.frame .poster::before { content: ""; position: absolute; inset: 0; background: rgba(19, 22, 55, .35); transition: background .2s; }
.frame .poster:hover::before { background: rgba(19, 22, 55, .15); }
.frame .poster .btn { position: relative; font-size: clamp(1.1rem, 2.6vw, 1.7rem); padding: 1rem 2.4rem; pointer-events: none; }
.player-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; margin-top: 1.8rem; }
.player-bar p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.controls { width: 100%; border-collapse: collapse; margin: 0 0 1rem; }
.controls th, .controls td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.controls th { font-weight: 600; width: 36%; }
kbd { display: inline-block; font: 600 .85rem/1 var(--body); background: #fff; border: 2px solid var(--night); border-bottom-width: 4px; border-radius: .5rem; padding: .3rem .55rem; margin: 0 .15rem .15rem 0; min-width: 1.8rem; text-align: center; }
.gallery { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .4rem .2rem 1.2rem; margin: 0 -.2rem; }
.gallery button { flex: 0 0 min(78%, 28rem); scroll-snap-align: start; padding: 0; border: 3px solid var(--night); border-radius: var(--radius); overflow: hidden; background: var(--night); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 78rem); }
dialog.lightbox::backdrop { background: rgba(19, 22, 55, .9); }
dialog.lightbox img { border-radius: var(--radius); width: 100%; }
dialog.lightbox form { text-align: right; margin-bottom: .6rem; }
.more-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; }
.more-games a { display: grid; gap: .5rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.more-games img { border-radius: var(--radius); border: 3px solid var(--night); aspect-ratio: 2 / 1; object-fit: cover; }

/* ---------- prose pages ---------- */
.page-title { background: var(--night); color: var(--cream); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; }
.page-title h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.8rem); }
.page-title p { margin: .8rem 0 0; color: #dcd8ee; }
.prose { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.prose .wrap { max-width: 46rem; }
.prose h2 { font-size: 1.8rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; max-width: 62ch; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.6rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; border-bottom: 2px solid var(--night); }
.note { background: var(--paper); border: 2px solid var(--night); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.6rem 0; }
.note p:last-child { margin-bottom: 0; }

/* contact */
.contact-box { display: grid; gap: 1rem; }
.contact-box label { font-weight: 600; display: grid; gap: .35rem; }
.contact-box input, .contact-box textarea { font: inherit; padding: .8rem 1rem; border-radius: .8rem; border: 3px solid var(--night); background: #fff; color: var(--ink); width: 100%; }
.contact-box textarea { min-height: 9rem; resize: vertical; }
.mail-line { font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2.2rem); word-break: break-all; }

/* ---------- mascot + footer ---------- */
.mascot { width: clamp(9rem, 20vw, 14rem); margin-inline: auto; margin-bottom: -2px; }
.mascot .eye { transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.mascot .ear-l { transform-box: fill-box; transform-origin: 100% 100%; animation: ear 7s infinite; }
@keyframes blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.08); } }
@keyframes ear { 0%, 88%, 100% { transform: rotate(0); } 92% { transform: rotate(-9deg); } 96% { transform: rotate(3deg); } }
.about-cat { background: var(--night); position: relative; }
.site-foot { background: var(--night); color: #dcd8ee; padding: 3.2rem 0 2.2rem; font-size: .95rem; }
.site-foot a { color: var(--cream); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.foot-grid h2 { font: 700 1rem/1.3 var(--body); margin: 0 0 .7rem; color: var(--cream); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.foot-grid img { height: 3.4rem; width: auto; margin-bottom: .8rem; }
.foot-note { border-top: 1px solid var(--night-3); margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.mascot .eye { animation: none !important; }
}

.play-row h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.night a:not(.btn), .page-title a, .soon-item a { color: #ffb08f; }
.night a:not(.btn):hover, .soon-item a:hover { color: #fff; }

.frame:fullscreen { aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.frame:-webkit-full-screen { aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
@media (max-width: 52rem) { .bubbles { display: none; } }

/* portrait games: a tall 9:16 frame beside the instructions */
.play-row.portrait { grid-template-columns: minmax(11rem, 17rem) 1fr; }
.play-row.portrait .media.portrait { aspect-ratio: 9 / 16; width: 100%; max-width: 17rem; margin-inline: auto; }
.play-row.portrait.rev .media { order: 0; }
.play-row.portrait.rev { grid-template-columns: 1fr minmax(11rem, 17rem); }
.play-row.portrait.rev .media { order: 2; }
@media (max-width: 52rem) { .play-row.portrait, .play-row.portrait.rev { grid-template-columns: 1fr; } .play-row.portrait .media.portrait { max-width: 15rem; } .play-row.portrait.rev .media { order: 0; } }
.player-grid { display: grid; grid-template-columns: minmax(16rem, 26rem) 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.frame.portrait { aspect-ratio: 9 / 16; width: 100%; max-height: 82vh; justify-self: center; }
.player-side .steps { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.player-side .steps li { margin-bottom: .35rem; }
.gallery.portrait button { flex: 0 0 min(46%, 13rem); }
.gallery.portrait img { aspect-ratio: 9 / 16; }
@media (max-width: 52rem) { .player-grid { grid-template-columns: 1fr; } .frame.portrait { max-width: 24rem; margin-inline: auto; } }
