/* ROCK ON on a computer screen: under the site's top bar the page is one slab of rock that fills the window. The game's tabs are
   stone push buttons along the top, the page sits in windows cut into the stone that scroll inside themselves, so the slab never moves.
   Phones, the app and narrow windows keep the ordinary page. (The Battle Arena carries its own copy of the slab rules, with its three columns.) */
#slabBg, .afoot { display: none; }
html.full, html.full body { height: 100%; overflow: hidden; scrollbar-gutter: auto; }
html.full body { display: flex; flex-direction: column; min-height: 0; height: 100dvh; }
html.full .s0nav { flex: none; }
html.full body > footer { display: none; }
html.full #slab { flex: 1; min-height: 0; width: 100%; max-width: 2100px; margin: 0 auto; padding: 40px 46px 48px; position: relative; display: flex; flex-direction: column; gap: 10px; }
html.full #slabBg { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#slabBg svg, #slabBg .face { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#slabBg .face { background: #9b9ba5 url(/assets/rock-tile.webp?v=1) 0 0 / 256px 256px; }
/* the stone buttons: a lighter block of the same rock, outlined like the logo; they sink when pressed.
   The game's tabs get the look by themselves; a page gives its own buttons the class "stn" */
html.full body.rk #slab > .subnav.rkbar a:not(.ron), html.full .stn { background: linear-gradient(#ffffff4d, #ffffff38), url(/assets/rock-tile.webp?v=1) 0 0 / 256px 256px; color: var(--rk-ink); border: 3px solid var(--rk-ink); border-radius: 11px; box-shadow: 0 5px 0 var(--rk-ink); text-shadow: 0 1px 0 #ffffff80; font-family: var(--rk-disp), sans-serif; font-weight: 400; letter-spacing: .3px; cursor: pointer; transition: transform .08s, filter .08s; }
html.full body.rk #slab > .subnav.rkbar a:not(.ron) { min-width: 104px; height: 56px; margin-bottom: 5px; padding: 0 16px; font-size: 18px; line-height: 1.02; }
html.full body.rk #slab > .subnav.rkbar a:not(.ron):hover, html.full .stn:hover { filter: brightness(1.12); transform: translateY(-1px); color: var(--rk-ink); }
html.full body.rk #slab > .subnav.rkbar a:not(.ron):active, html.full .stn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--rk-ink); filter: brightness(.94); }
html.full body.rk #slab > .subnav.rkbar a.on, html.full body.rk #slab > .subnav.rkbar a.on:hover, html.full .stn.on, html.full .stn.on:hover { background: #d3202a; color: #fff; text-shadow: 0 2px 0 #7d0d14; border-color: var(--rk-ink); }
html.full body.rk #slab > .subnav.rkbar a:focus-visible, html.full .stn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* top row: the game's pages on the left, the logo on the right (clear of the site's own logo) */
html.full body.rk #slab > .subnav.rkbar { position: relative; z-index: 2; flex: none; display: flex; width: auto; max-width: none; margin: 0 !important; padding: 0; gap: 8px; height: 70px; flex-wrap: nowrap; align-items: center; background: none; border: 0; border-radius: 0; box-shadow: none; }
html.full body.rk #slab > .subnav.rkbar a.ron.sm { order: 9; width: 186px; margin: 0 0 0 auto; }
/* a window cut into the stone: dark inside, and it scrolls inside itself */
html.full .slabwin { position: relative; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: #0e0d10; border: 4px solid var(--rk-ink); border-radius: 12px; box-shadow: 0 2px 0 #ffffff59; scrollbar-width: thin; scrollbar-color: #6d6e7a #17161b; }
/* a whole page in one window (My rocks, About): kept to the width the page was made for */
html.full .slabpage { flex: 1; padding: 0 max(22px, calc((100% - 1156px) / 2)) 28px; }
html.full .slabpage > .pagehead { padding-top: 24px; }
/* words chiselled into the stone, and small text written on it */
html.full .carve { margin: 0; height: 57px; flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; font: 400 21px/1 "Titan One", var(--rk-disp), sans-serif; letter-spacing: .5px; text-transform: uppercase; color: #2b2a31; text-shadow: 0 1.5px 0 #ffffff99, 0 -1px 0 #00000059; }
html.full .slabtxt { margin: 0; color: #1d1c22; font: 600 13px/1.45 Inter, sans-serif; }
html.full .slabtxt b { color: #000; }
html.full .slabtxt a { color: #7d0d14; font-weight: 800; }
/* small print, cut into the bottom edge */
html.full .afoot { display: block; position: absolute; z-index: 1; left: 56px; right: 56px; bottom: 25px; text-align: center; font: 600 11px/1.2 Inter, sans-serif; color: #2b2a31; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.afoot a { color: inherit; text-decoration: underline; }
/* a short window (a laptop, or a screen zoomed in): everything tightens up */
html.short #slab { padding: 34px 42px 42px; gap: 8px; }
html.short body.rk #slab > .subnav.rkbar { height: 58px; }
html.short body.rk #slab > .subnav.rkbar a.ron.sm { width: 150px; }
html.short body.rk #slab > .subnav.rkbar a:not(.ron) { height: 46px; min-width: 92px; padding: 0 12px; font-size: 16px; }
html.short .afoot { bottom: 21px; font-size: 10.5px; }
html.short .carve { height: 49px; font-size: 18px; }
html.short .slabtxt { font-size: 12px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { html.full body.rk #slab > .subnav.rkbar a, html.full .stn { transition: none; } }
