/* rexnivo.com site. Proposed identity for Jay's approval: ivory canvas, deep navy ink, one terracotta accent. */
:root { --ivory:#f6efe2; --paper:#fbf6ec; --ink:#14213d; --ink2:#3a4560; --accent:#ad4520; --accent2:#8f3517; --line:#d9cdb8; color-scheme: light; }
* { box-sizing: border-box; }
body { margin:0; background:var(--ivory); color:var(--ink); font:17px/1.6 system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif; }
a { color:var(--accent2); }
a:focus-visible, .btn:focus-visible { outline:3px solid #1d4ed8; outline-offset:2px; }
.skip { position:absolute; left:-999px; } .skip:focus { left:16px; top:8px; background:#fff; padding:6px 10px; z-index:9; }
.top { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:14px clamp(16px,4vw,48px); border-bottom:1px solid var(--line); background:var(--paper); }
.mark { font-weight:900; font-size:1.35rem; letter-spacing:.02em; color:var(--ink); text-decoration:none; }
.mark { display:inline-flex; align-items:center; min-height:44px; }
.mark img { display:block; height:48px; width:auto; }
@media (max-width:760px) { .mark img { height:34px; } }
.lang .short { display:none; } /* inner pages show the language name in full; the home page swaps to the short form on tiny screens */
.top nav { display:flex; gap:4px 16px; flex-wrap:wrap; }
.top nav a { color:var(--ink); text-decoration:none; font-weight:600; padding:6px 2px; min-height:44px; display:inline-flex; align-items:center; }
.top nav a[aria-current] { border-bottom:3px solid var(--accent); }
.top nav .lang { color:var(--ink2); font-weight:500; }
main { max-width:1080px; margin:0 auto; padding:clamp(20px,4vw,48px) clamp(16px,4vw,48px); }
h1 { font-size:clamp(2rem,5vw,3.1rem); line-height:1.1; margin:.2em 0 .4em; }
h2 { margin-top:1.8em; } h3 { margin:.2em 0; }
.lead { font-size:1.18rem; color:var(--ink2); max-width:62ch; }
.kicker { text-transform:uppercase; letter-spacing:.08em; font-weight:800; font-size:.8rem; color:var(--accent); margin:0; }
.btn { display:inline-flex; align-items:center; min-height:48px; padding:.6em 1.3em; border-radius:999px; background:var(--accent); color:#fffaf3; font-weight:700; text-decoration:none; border:2px solid var(--accent); margin:4px 8px 4px 0; }
.btn:hover { background:var(--accent2); border-color:var(--accent2); }
.btn.ghost { background:transparent; color:var(--ink); border-color:var(--ink); }
.hero { display:grid; grid-template-columns:1.05fr 1fr; gap:clamp(20px,4vw,48px); align-items:center; }
.hero img, .card img, img.wide { width:100%; height:auto; border-radius:18px; border:2px solid var(--ink); display:block; background:#e9dcc5; }
.card { display:grid; grid-template-columns:1fr 1.1fr; gap:24px; background:var(--paper); border:2px solid var(--ink); border-radius:22px; padding:18px; align-items:center; }
.card img { border-radius:14px; }
.skills { font-size:.92rem; color:var(--ink2); }
.three { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:2.4em; }
.three > div { background:var(--paper); border:1px solid var(--line); border-radius:16px; padding:16px 18px; }
ul { padding-left:1.2em; } li { margin:.3em 0; }
.note { color:var(--ink2); font-size:.95rem; border-left:4px solid var(--accent); padding-left:12px; }
code { background:#fff; padding:1px 5px; border-radius:5px; border:1px solid var(--line); }
.foot { border-top:1px solid var(--line); padding:20px clamp(16px,4vw,48px); color:var(--ink2); font-size:.92rem; background:var(--paper); }
.foot p { margin:.2em 0; }
.foot-in { max-width:1080px; margin:0 auto; }
.foot-brand { color:var(--ink); font-weight:600; }
.foot-links { list-style:none; margin:.3em 0; padding:0; display:flex; flex-wrap:wrap; gap:0 18px; }
.foot-links li { margin:0; }
.foot-links a { display:inline-flex; align-items:center; min-height:44px; font-weight:600; }
.foot a { overflow-wrap:anywhere; }
.foot-small { font-size:.85rem; }
.legal { max-width:72ch; }
.legal h2 { font-size:1.25rem; margin-top:1.6em; }
.updated { color:var(--ink2); font-size:.92rem; margin:0 0 1em; }
@media (max-width:760px) { .hero, .card, .three { grid-template-columns:1fr; } }
.soon { list-style: none; padding: 0; display: grid; gap: 6px; }
.soon li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
h3.lvl { margin-top: 1.4em; }
.shelf { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.book { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; }
.book img { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.book .bt { font-weight: 700; padding: 8px 12px 0; line-height: 1.3; }
.book .bs { font-size: .85rem; color: var(--ink2); padding: 2px 12px 10px; }

/* ===== Arcade portal (v2) ===== */
:root { --sun:#f2b632; --sky:#2a7fb8; --leaf:#2f7d4f; --berry:#b3261e; }
.hero-play { position: relative; min-height: min(78vh, 680px); display: grid; align-items: center; margin: -8px calc(-1 * clamp(16px,4vw,48px)) 24px; padding: clamp(16px,4vw,48px); overflow: hidden; border-radius: 0 0 36px 36px; background: radial-gradient(circle at 20% 15%, #ffe6b0, #f6c58f 40%, #e9906a 100%); }
.collage { position: absolute; inset: 0; pointer-events: none; }
.collage .c { position: absolute; border-radius: 18px; border: 4px solid #fffaf3; box-shadow: 0 10px 0 rgb(20 33 61 / .25); object-fit: cover; animation: drift 14s ease-in-out infinite alternate; }
.collage .c.big { width: clamp(220px, 30vw, 420px); aspect-ratio: 3/2; right: 4%; top: 8%; transform: rotate(-4deg); }
.collage .c.mid { width: clamp(110px, 14vw, 200px); aspect-ratio: 3/2; }
.collage .c.cut { width: clamp(120px, 16vw, 230px); border: 0; box-shadow: none; border-radius: 0; object-fit: contain; filter: drop-shadow(0 8px 0 rgb(20 33 61 / .2)); }
.collage .c1 { right: 36%; top: 6%; transform: rotate(6deg); animation-duration: 11s; }
.collage .c2 { right: 2%; bottom: 10%; transform: rotate(5deg); animation-duration: 13s; }
.collage .c3 { right: 24%; bottom: 4%; transform: rotate(-7deg); animation-duration: 15s; }
.collage .c4 { left: 52%; top: 44%; transform: rotate(-3deg); animation-duration: 12s; }
.collage .c5 { right: 40%; bottom: 30%; transform: rotate(8deg); animation-duration: 17s; }
.collage .c6 { left: 2%; bottom: 2%; animation-duration: 16s; }
.collage .c7 { right: 12%; top: 46%; transform: rotate(-9deg); animation-duration: 10s; }
.collage .c8, .collage .c9, .collage .c10, .collage .c11 { display: none; }
.collage .c12 { left: 30%; bottom: -2%; animation-duration: 18s; }
.collage .rex { position: absolute; width: clamp(70px, 9vw, 130px); filter: drop-shadow(0 8px 0 rgb(20 33 61 / .18)); animation: hop 2.8s ease-in-out infinite; }
.collage .r0 { right: 31%; top: 30%; } .collage .r1 { right: 6%; top: 32%; animation-delay: .6s; } .collage .r2 { left: 44%; bottom: 6%; animation-delay: 1.2s; } .collage .r3 { right: 48%; top: 2%; animation-delay: 1.8s; }
@keyframes drift { from { translate: 0 0; } to { translate: 10px -14px; } }
@keyframes hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-18px) rotate(-4deg); } 90% { transform: translateY(0); } }
.hero-copy { position: relative; z-index: 2; max-width: 540px; background: rgb(251 246 236 / .9); border: 4px solid var(--ink); border-radius: 28px; padding: 22px 26px; box-shadow: 0 12px 0 rgb(20 33 61 / .3); }
.hero-copy h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: .95; text-shadow: 3px 3px 0 var(--sun); }
.hero-copy h1 span { color: var(--accent); }
.btn.big { font-size: 1.15em; min-height: 56px; padding: .6em 1.6em; box-shadow: 0 6px 0 var(--accent2); }
.genres { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 18px; }
.genres a { display: inline-flex; gap: 8px; align-items: center; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 3px solid var(--ink); font-weight: 800; color: var(--ink); text-decoration: none; background: #fff; }
.genres a span { background: var(--ink); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .85em; }
.g-action { background: #ffe1d6 !important; } .g-puzzles { background: #e6f0ff !important; } .g-strategy { background: #e3f4e6 !important; } .g-adventure { background: #fff1cf !important; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tile { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 8px 0 rgb(20 33 61 / .2); transition: transform .15s ease, box-shadow .15s ease; }
.tile > a { color: inherit; text-decoration: none; display: grid; height: 100%; }
.tile img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; background: #f3e4cc; }
.tile.live:hover, .tile.live:focus-within { transform: translateY(-4px) rotate(-.5deg); box-shadow: 0 12px 0 rgb(20 33 61 / .25); }
.tile .tb { display: grid; gap: 6px; padding: 12px 14px 14px; }
.tile h3 { margin: 0; font-size: 1.2rem; }
.tile p { margin: 0; font-size: .95rem; }
.tile .go { justify-self: start; margin-top: 4px; font-weight: 900; color: #fff; background: var(--accent); border-radius: 999px; padding: 6px 14px; }
.tile.soon { opacity: .92; border-style: dashed; box-shadow: none; }
.tile.noimg .tb { padding-top: 16px; }
.tile .fav { position: absolute; top: 10px; right: 10px; min-width: 48px; min-height: 48px; border-radius: 50%; border: 3px solid var(--ink); background: #fffaf3; font-size: 1.4rem; cursor: pointer; }
.tile .fav[aria-pressed="true"] { background: var(--sun); }
.chip { justify-self: start; font-size: .8rem; font-weight: 900; padding: 2px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.meta { color: var(--ink2); font-size: .88rem; }
.st { font-weight: 800; } .st-playable { color: var(--leaf); } .st-planned, .st-in-development { color: var(--accent2); }
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; background: var(--paper); border: 4px solid var(--ink); border-radius: 28px; overflow: hidden; margin: 18px 0 26px; box-shadow: 0 12px 0 rgb(20 33 61 / .25); }
.feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature > div { padding: 22px 24px; display: grid; gap: 8px; align-content: center; }
.feature h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.prow { margin: 10px 0 22px; } .prow h2 { font-size: 1.2rem; margin: 0 0 8px; }
.row-items { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.mini { flex: none; width: 170px; text-decoration: none; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; overflow: hidden; font-weight: 800; }
.mini img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; } .mini span { display: block; padding: 6px 10px; min-height: 44px; }
.finder { display: grid; gap: 10px; margin: 12px 0 18px; }
.finder input { font: inherit; font-size: 1.1rem; min-height: 52px; padding: 0 18px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.cats button { font: inherit; font-weight: 800; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 3px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.cats button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.news { list-style: none; padding: 0; display: grid; gap: 6px; } .news time { color: var(--ink2); font-size: .9em; }
table.pt { border-collapse: collapse; width: 100%; background: #fff; } .pt th, .pt td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.pt th, .pt td { overflow-wrap: anywhere; } /* 17 Nov: long practice names pushed the parents table 10px past a 360px screen */
@media (max-width: 760px) { .hero-play { min-height: 560px; align-items: end; } .collage .c4, .collage .c5, .collage .c7, .collage .r2 { display: none; } .feature { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .collage .c, .collage .rex { animation: none !important; } .tile { transition: none; } }
body.home .foot-brand { color:var(--cream, #fff6e3); }
