:root{color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:#f2f3f8;background:#12141c}
*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{overscroll-behavior:none;background:radial-gradient(ellipse at 75% 0%,#24263a88,transparent 60%),radial-gradient(#b9bdce12 .8px,transparent .8px);background-size:auto,24px 24px}a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}a:focus-visible{outline:3px solid #b5e778;outline-offset:-4px}svg{display:block}h1,h2,p{margin:0}[hidden]{display:none!important}
.home-shell{width:min(1120px,100%);height:100vh;height:100svh;height:100dvh;margin:auto;padding:max(22px,env(safe-area-inset-top)) max(26px,env(safe-area-inset-right)) max(26px,env(safe-area-inset-bottom)) max(26px,env(safe-area-inset-left));display:grid;grid-template-rows:64px minmax(0,1fr);gap:28px}
.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ffffff14;padding:0 2px 16px}.site-brand{display:flex;gap:12px;align-items:center}.arcade-mark{width:42px;height:42px}.arcade-mark rect{fill:#242834;stroke:#3b414f}.arcade-mark path{fill:#bee58a}.arcade-mark circle{fill:#a999d9}.arcade-mark circle:last-child{fill:#e8b96e}h1{display:flex;align-items:baseline;gap:9px;font-size:29px;line-height:1;letter-spacing:-1.2px;font-weight:800}h1 span{font-size:12px;letter-spacing:2.8px;text-transform:uppercase;font-weight:500;color:#b6b9c8}.arcade-lights{display:flex;gap:5px}.arcade-lights i{display:block;width:5px;height:5px;border-radius:1px;background:#bee58a}.arcade-lights i:nth-child(2){background:#a999d9}.arcade-lights i:nth-child(3){background:#e8b96e}
.home-main{min-height:0;display:flex;align-items:center}.library{width:100%;height:100%;max-height:600px;min-height:0;display:grid;grid-auto-rows:100%;gap:24px;padding:5px 3px 8px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
/* Each game keeps its own identity inside the arcade collection. */
.game-card{--rose:#bd6376;color-scheme:light;color:#294637;width:100%;min-height:0;display:grid;grid-template-columns:1.05fr 1fr;position:relative;border-radius:29px;background:#fffbf0;border:1px solid #dce1cf;box-shadow:0 5px 0 #05060b70;isolation:isolate;transition:transform .25s ease;overflow:hidden}.game-art{position:relative;min-height:0;overflow:hidden;background:#dce8c7;border-radius:28px 0 0 28px}.game-art picture{display:block;width:100%;height:100%}.game-art img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s cubic-bezier(.2,.8,.2,1)}.art-label{position:absolute;top:22px;left:22px;display:flex;align-items:center;gap:7px;border:1px solid #fdfaea9c;border-radius:100px;padding:7px 10px;background:#f7fae699;color:#547057;font-size:7px;font-weight:700;letter-spacing:1.5px}.art-label>span{font-size:10px;color:#bb6f7d;line-height:1}
.game-details{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:36px clamp(24px,3.9vw,48px);min-height:0}.game-genre{display:flex;align-items:center;gap:7px;font-size:9px;letter-spacing:1.7px;font-weight:600;color:#727a65;margin-bottom:16px}.game-genre>span{height:5px;width:5px;border-radius:50%;background:#d0858f}h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(42px,5.4vw,65px);line-height:1.02;letter-spacing:-2.8px;view-transition-name:love-birds-title}h2>span{color:var(--rose)}.game-description{font-size:13px;line-height:1.7;color:#65715e;margin-top:18px}.play-row{width:100%;margin-top:27px}.play-button{min-height:56px;padding:13px 19px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#466b52;color:#fffdf0;border-radius:16px;box-shadow:0 3px 0 #33543f;font-size:13px;font-weight:600;transition:background-color .2s,transform .2s}.play-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;transition:transform .25s}.saved-progress{display:block;font-size:10px;color:#798270;margin-top:13px;text-align:center;font-variant-numeric:tabular-nums}
@media(hover:hover){.game-card:hover{transform:translateY(-3px)}.game-card:hover .play-button{background:#365a43}.game-card:hover .play-button svg{transform:translateX(3px)}.game-card:hover .game-art img{transform:scale(1.025)}}.game-card:active .play-button{transform:translateY(2px);box-shadow:0 1px 0 #33543f}
@media(max-width:699px) and (orientation:portrait){.home-shell{max-width:540px;padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right));grid-template-rows:56px minmax(0,1fr);gap:20px}.site-header{padding-bottom:14px}.arcade-mark{width:38px;height:38px}h1{font-size:27px}h1 span{font-size:10px;letter-spacing:2px}.library{max-height:620px}.game-card{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;border-radius:25px}.game-art{border-radius:24px 24px 0 0}.game-art img{object-position:center 48%}.art-label{left:16px;top:15px;padding:6px 8px;font-size:6px;letter-spacing:1.2px}.game-details{padding:21px 23px 23px}.game-heading{width:100%;display:flex;align-items:baseline;justify-content:space-between;flex-direction:row-reverse;gap:8px}.game-genre{font-size:8px;letter-spacing:1.1px;margin:0;gap:5px}.game-genre>span{width:4px;height:4px}h2{font-size:39px;letter-spacing:-1.8px;white-space:nowrap}.game-description{font-size:12px;margin-top:8px}.play-row{margin-top:18px}.play-button{min-height:52px;border-radius:14px;padding:12px 16px;font-size:12px}.saved-progress{font-size:9px;margin-top:11px}}
@media(max-width:369px) and (orientation:portrait){.home-shell{padding-left:14px;padding-right:14px;gap:15px}h1{font-size:25px}.site-brand{gap:10px}.arcade-mark{width:36px;height:36px}.game-details{padding:17px 18px 19px}h2{font-size:34px}.game-genre{font-size:7px}.game-description{font-size:11px}.play-row{margin-top:14px}.play-button{min-height:50px}.art-label{top:12px;left:13px}}
@media(max-height:620px) and (orientation:portrait){.home-shell{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom));grid-template-rows:50px minmax(0,1fr);gap:14px}.site-header{padding-bottom:10px}.game-details{padding-top:15px;padding-bottom:17px}.play-row{margin-top:12px}.saved-progress{margin-top:9px}}
@media(orientation:landscape) and (max-height:650px){.home-shell{padding:8px max(20px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));grid-template-rows:44px minmax(0,1fr);gap:11px}.site-header{padding-bottom:7px}.arcade-mark{width:32px;height:32px}.site-brand{gap:9px}h1{font-size:25px}h1 span{font-size:9px}.game-card{grid-template-columns:1fr 1fr;border-radius:21px}.game-art{border-radius:20px 0 0 20px}.art-label{top:11px;left:10px;font-size:5px;letter-spacing:.8px;padding:5px 6px;gap:4px}.art-label>span{font-size:7px}.game-details{padding:16px 22px}.game-genre{font-size:7px;letter-spacing:1px;margin-bottom:10px}h2{font-size:38px;letter-spacing:-1.5px;white-space:nowrap}.game-description{font-size:11px;margin-top:9px}.play-row{margin-top:17px}.play-button{min-height:48px;padding:10px 12px;font-size:11px;border-radius:12px;gap:8px}.play-button svg{width:18px;height:18px}.saved-progress{font-size:8px;margin-top:9px}}
@media(prefers-reduced-motion:no-preference){.home-main{animation:arrive .4s both}@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}::view-transition-old(root){animation:home-out .15s ease both}::view-transition-new(root){animation:home-in .25s ease both}@keyframes home-out{to{opacity:0;transform:translateY(-4px)}}@keyframes home-in{from{opacity:0;transform:translateY(6px)}}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* The experimental collection appears only after an explicit, tab-scoped opt-in. */
.beta-actions{display:flex;gap:8px}.exit-beta{min-height:48px;min-width:76px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #505268;border-radius:13px;padding:0 12px;font-size:11px;color:#dbd6ef;white-space:nowrap}.online-link{background:#302b42;border-color:#786085;color:#f1d9fc}
.beta-library{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(510px,1fr);align-content:start;max-height:none}
.beta-library .game-card{grid-template-columns:1fr;grid-template-rows:minmax(180px,1fr) auto}
.beta-library .game-art{border-radius:28px 28px 0 0}
.beta-library .game-details{padding:25px 30px 29px}
.beta-library .game-genre{margin-bottom:13px}
.beta-library h2{font-size:48px;letter-spacing:-2px}
.beta-library .game-description{margin-top:12px}
.beta-library .play-row{margin-top:20px}
.halfway-card{--rose:#c67c8e;background:#f4eef9;border-color:#c4b5d5;color:#493f63}
.halfway-card .game-art{background:#aaa5d0}
.halfway-card .art-label{background:#f6edffb8;border-color:#fff4fa90;color:#625375}
.halfway-card .art-label>span{color:#937b62}
.halfway-card .game-heading{display:block}
.halfway-card .game-genre{color:#776986}
.halfway-card .game-genre>span:first-child{background:#a58bbb}
.halfway-card .beta-badge{display:inline-block;width:auto;height:auto;border:1px solid #c6b3d6;background:transparent;border-radius:5px;padding:3px 5px;margin-left:3px;font-size:8px;line-height:1;letter-spacing:1px;color:#786089}
.halfway-card h2{view-transition-name:halfway-title;white-space:normal;line-height:1.01}
.halfway-card .game-description{color:#786c84}
.halfway-card .play-button{background:#766287;box-shadow:0 3px 0 #594968;color:#fffbf2}
@media(hover:hover){.halfway-card:hover .play-button{background:#645073}}
.halfway-card:active .play-button{box-shadow:0 1px 0 #594968}
@media(max-width:799px){.beta-library{grid-template-columns:1fr;grid-auto-rows:max-content;gap:18px}.beta-library .game-card{grid-template-rows:220px auto;min-height:440px}.beta-library .game-details{padding:22px 25px 25px}.beta-library .game-heading{display:block}.beta-library .game-genre{margin-bottom:10px}.beta-library h2{font-size:41px}.beta-library .game-art{border-radius:24px 24px 0 0}.beta-library .game-art img{object-position:center 53%}.beta-library .game-description{margin-top:10px}.beta-library .play-row{margin-top:17px}}
@media(max-width:369px) and (orientation:portrait){.exit-beta{min-width:64px;padding:0 9px;font-size:10px}.beta-library .game-card{grid-template-rows:190px auto}.beta-library .game-details{padding:20px}.beta-library h2{font-size:39px}}
@media(max-height:620px) and (orientation:portrait){.beta-library .game-card{grid-template-rows:150px auto;min-height:0}.beta-library .game-details{padding:16px 20px 19px}.beta-library h2{font-size:35px}.beta-library .game-genre{margin-bottom:8px}.beta-library .game-description{margin-top:8px}.beta-library .play-row{margin-top:13px}}
@media(orientation:landscape) and (max-height:650px){.beta-library{grid-template-columns:1fr;grid-auto-rows:auto}.beta-library .game-card{grid-template-columns:1fr 1fr;grid-template-rows:auto;min-height:244px}.beta-library .game-art{border-radius:20px 0 0 20px}.beta-library .game-details{padding:18px 22px}.beta-library h2{font-size:35px;letter-spacing:-1.5px}.beta-library .game-genre{margin-bottom:9px}.beta-library .play-row{margin-top:13px}.beta-library .game-description{margin-top:8px}.exit-beta{margin-top:4px}}
@media(max-width:600px){.site-header:has(.beta-actions:not([hidden])) h1{flex-direction:column;align-items:flex-start;gap:5px}.site-header:has(.beta-actions:not([hidden])) h1 span{font-size:8px;letter-spacing:2px}.beta-actions{gap:6px;flex-shrink:0}}

/* The stable collection shares one screen. Portrait tiles keep generous artwork
   alongside their controls; desktop gives each illustration its own canvas. */
.library:has(.jigsaw-card){grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);max-height:650px;gap:22px;overflow:hidden}
.library:has(.jigsaw-card) .game-card{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
.library:has(.jigsaw-card) .game-art{border-radius:28px 28px 0 0}
.library:has(.jigsaw-card) .game-details{padding:25px 29px 28px}
.library:has(.jigsaw-card) .game-heading{display:block}
.library:has(.jigsaw-card) .game-genre{margin-bottom:12px;font-size:8px;letter-spacing:1.3px}
.library:has(.jigsaw-card) h2{font-size:clamp(32px,3.9vw,48px);letter-spacing:-1.9px;white-space:normal}
.library:has(.jigsaw-card) .game-description{margin-top:12px;font-size:12px}
.library:has(.jigsaw-card) .play-row{margin-top:19px}
.jigsaw-card{--rose:#e3b866;background:linear-gradient(#211a3e,#191431);border-color:#e3b86659;color:#f8e6bf}
.jigsaw-card .game-art{background:#1a1a40}
.jigsaw-card h2{font-family:"Snell Roundhand","Apple Chancery","Segoe Script","Z003","URW Chancery L","Palatino Linotype",Palatino,Georgia,serif;letter-spacing:0;text-shadow:0 0 22px #ffbe6a40}
.jigsaw-card .game-description{color:#c3b3d8}.jigsaw-card .saved-progress{color:#c3b3d8}
.jigsaw-card .game-genre{color:#e3b866}.jigsaw-card .game-genre>span{background:#e3b866}
.jigsaw-card h2{view-transition-name:jigsaw-title}
.jigsaw-card .art-label{background:#120f27c4;color:#f8e6bf;border-color:#e3b86659}
.jigsaw-card .art-label>span{color:#e3b866}
.jigsaw-card .play-button{background:linear-gradient(#f8dc94,#e3ad55 55%,#cc8c3c);color:#2a1733;box-shadow:0 3px 0 #8c5a24}
@media(hover:hover){.jigsaw-card:hover .play-button{background:linear-gradient(#fbe3a6,#e8b562 55%,#d29444)}}
.jigsaw-card:active .play-button{box-shadow:0 1px 0 #8c5a24}
.library.beta-library:has(.jigsaw-card){grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.library.beta-library:has(.jigsaw-card) .game-details{padding:20px}
.library.beta-library:has(.jigsaw-card) h2{font-size:36px}
.library.beta-library:has(.jigsaw-card) .game-card{min-height:0}

@media(max-width:799px) and (orientation:portrait){
  .library:has(.jigsaw-card),.library.beta-library:has(.jigsaw-card){grid-template-columns:1fr;grid-template-rows:repeat(2,minmax(0,1fr));max-height:710px;gap:17px}
  .library:has(.jigsaw-card) .game-card,.library.beta-library:has(.jigsaw-card) .game-card{grid-template-columns:36% minmax(0,1fr);grid-template-rows:1fr;border-radius:23px;min-height:0}
  .library:has(.jigsaw-card) .game-art,.library.beta-library:has(.jigsaw-card) .game-art{border-radius:22px 0 0 22px}
  .library:has(.jigsaw-card) .game-art img{object-position:48% 50%}
  .library:has(.jigsaw-card) .art-label{display:none}
  .library:has(.jigsaw-card) .game-details,.library.beta-library:has(.jigsaw-card) .game-details{padding:20px 17px}
  .library:has(.jigsaw-card) .game-genre{font-size:7px;letter-spacing:1px;margin-bottom:10px}
  .library:has(.jigsaw-card) h2,.library.beta-library:has(.jigsaw-card) h2{font-size:35px;letter-spacing:-1.5px;line-height:1.02}
  .library:has(.jigsaw-card) .game-description{font-size:11px;line-height:1.5;margin-top:9px}
  .library:has(.jigsaw-card) .play-row{margin-top:17px}
  .library:has(.jigsaw-card) .play-button{padding:10px 12px;min-height:48px;font-size:11px;gap:6px}
  .library:has(.jigsaw-card) .play-button svg{width:18px;height:18px}
  .library:has(.jigsaw-card) .saved-progress{font-size:9px;margin-top:8px}
  .library.beta-library:has(.jigsaw-card){grid-template-rows:repeat(3,minmax(0,1fr));gap:12px}
  .library.beta-library:has(.jigsaw-card) .game-description{display:none}
  .library.beta-library:has(.jigsaw-card) h2{font-size:28px}
  .library.beta-library:has(.jigsaw-card) .game-details{padding:13px 16px}
  .library.beta-library:has(.jigsaw-card) .game-genre{margin-bottom:6px}
  .library.beta-library:has(.jigsaw-card) .play-row{margin-top:10px}
  .library.beta-library:has(.jigsaw-card) .saved-progress{margin-top:5px}
}
@media(max-width:369px) and (orientation:portrait){
  .library:has(.jigsaw-card){gap:14px}
  .library:has(.jigsaw-card) .game-card{grid-template-columns:31% minmax(0,1fr)}
  .library:has(.jigsaw-card) .game-details{padding:15px 14px}
  .library:has(.jigsaw-card) h2{font-size:29px;letter-spacing:-1.2px}
  .library:has(.jigsaw-card) .game-genre{font-size:6.5px;letter-spacing:.8px}
  .library:has(.jigsaw-card) .play-button{font-size:10px;padding:10px}
}
@media(max-height:620px) and (orientation:portrait){
  .library:has(.jigsaw-card) .game-details{padding-top:12px;padding-bottom:12px}
  .library:has(.jigsaw-card) .game-description{display:none}
  .library:has(.jigsaw-card) h2{font-size:29px;line-height:1.02}
  .library:has(.jigsaw-card) .game-genre{margin-bottom:7px}
  .library:has(.jigsaw-card) .play-row{margin-top:11px}
  .library:has(.jigsaw-card) .saved-progress{margin-top:6px}
  .library.beta-library:has(.jigsaw-card){gap:9px;padding-top:2px;padding-bottom:4px}
  .library.beta-library:has(.jigsaw-card) .game-card{grid-template-columns:27% minmax(0,1fr);border-radius:18px}
  .library.beta-library:has(.jigsaw-card) .game-art{border-radius:17px 0 0 17px}
  .library.beta-library:has(.jigsaw-card) .game-details{padding:7px 12px}
  .library.beta-library:has(.jigsaw-card) h2{font-size:23px;letter-spacing:-.9px;line-height:1}
  .library.beta-library:has(.jigsaw-card) h2 br{display:none}
  .library.beta-library:has(.jigsaw-card) .game-genre{display:none}
  .library.beta-library:has(.jigsaw-card) .play-row{margin-top:7px}
  .library.beta-library:has(.jigsaw-card) .saved-progress{font-size:8px;margin-top:4px}
}
@media(orientation:landscape) and (max-height:650px){
  .library:has(.jigsaw-card),.library.beta-library:has(.jigsaw-card){grid-template-rows:minmax(0,1fr);gap:14px}
  .library:has(.jigsaw-card) .game-card,.library.beta-library:has(.jigsaw-card) .game-card{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;min-height:0;border-radius:19px}
  .library:has(.jigsaw-card) .game-art,.library.beta-library:has(.jigsaw-card) .game-art{border-radius:18px 18px 0 0}
  .library:has(.jigsaw-card) .game-art img{object-position:50% 48%}
  .library:has(.jigsaw-card) .game-details,.library.beta-library:has(.jigsaw-card) .game-details{padding:11px 14px 14px}
  .library:has(.jigsaw-card) .game-genre{font-size:6px;margin-bottom:5px}
  .library:has(.jigsaw-card) h2,.library.beta-library:has(.jigsaw-card) h2{font-size:27px;letter-spacing:-1px}
  .library:has(.jigsaw-card) .game-description{display:none}
  .library:has(.jigsaw-card) .play-row{margin-top:10px}
  .library:has(.jigsaw-card) .saved-progress{font-size:8px;margin-top:5px}
  .library:has(.jigsaw-card) .play-button{font-size:10px;min-height:48px;padding:9px 10px}
  .library.beta-library:has(.jigsaw-card){gap:10px}
  .library.beta-library:has(.jigsaw-card) .game-details{padding:8px 10px 10px}
  .library.beta-library:has(.jigsaw-card) h2{font-size:22px;line-height:1.02}
  .library.beta-library:has(.jigsaw-card) .game-genre,.library.beta-library:has(.jigsaw-card) .art-label{display:none}
  .library.beta-library:has(.jigsaw-card) .play-button{font-size:9px;padding:7px 9px;gap:3px}
  .library.beta-library:has(.jigsaw-card) .play-button svg{width:14px;height:14px}
}

/* Clack joins as a third stable tile with its own printed-toy identity. */
.clack-card{--rose:#e4472f;background:#f6efe0;border-color:#16172a;color:#16172a}
.clack-card .game-art{background:#2537a8}
.clack-card .art-label{background:#f6efe0e6;border-color:#16172a;color:#16172a}
.clack-card .art-label>span{color:#e4472f}
.clack-card .game-genre{color:#4b4c63}.clack-card .game-genre>span{background:#f3b52c;border-radius:1px}
.clack-card h2{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-weight:900;letter-spacing:-2.2px;view-transition-name:clack-title}
.clack-card .game-description{color:#4b4c63}
.clack-card .play-button{background:#2537a8;box-shadow:0 3px 0 #16172a}
@media(hover:hover){.clack-card:hover .play-button{background:#1a2780}}
.clack-card:active .play-button{box-shadow:0 1px 0 #16172a}
.clack-card .saved-progress{color:#5a5b70}

.library:has(.clack-card){grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.library:has(.clack-card) h2{font-size:clamp(30px,3.3vw,44px)}
.library:has(.clack-card) .game-details{padding:22px 24px 25px}
.library.beta-library:has(.clack-card){grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.library.beta-library:has(.clack-card) h2{font-size:clamp(26px,2.6vw,34px);letter-spacing:-1.4px}
.library.beta-library:has(.clack-card) .game-details{padding:17px 18px 20px}
.library.beta-library:has(.clack-card) .game-description{font-size:11px}
.library.beta-library:has(.clack-card) .play-button{font-size:12px;padding:10px 12px;gap:6px}

@media(max-width:799px) and (orientation:portrait){
  .library:has(.clack-card),.library.beta-library:has(.clack-card){grid-template-columns:1fr;grid-template-rows:repeat(3,minmax(0,1fr));gap:12px;max-height:760px}
  .library:has(.clack-card) .game-description{display:none}
  .library:has(.clack-card) h2,.library.beta-library:has(.clack-card) h2{font-size:30px;letter-spacing:-1.2px}
  .library:has(.clack-card) .clack-card h2{letter-spacing:-1.4px}
  .library:has(.clack-card) .game-details,.library.beta-library:has(.clack-card) .game-details{padding:13px 16px}
  .library:has(.clack-card) .game-genre{margin-bottom:6px}
  .library:has(.clack-card) .play-row{margin-top:10px}
  .library:has(.clack-card) .saved-progress{margin-top:5px}
  .library:has(.clack-card) .art-label{display:none}
  .library.beta-library:has(.clack-card){grid-template-rows:repeat(4,minmax(0,1fr));gap:10px}
  .library.beta-library:has(.clack-card) .game-card{grid-template-columns:30% minmax(0,1fr);border-radius:19px}
  .library.beta-library:has(.clack-card) .game-art{border-radius:18px 0 0 18px}
  .library.beta-library:has(.clack-card) h2{font-size:25px;letter-spacing:-1px;line-height:1}
  .library.beta-library:has(.clack-card) h2 br{display:none}
  .library.beta-library:has(.clack-card) .game-genre{display:none}
  .library.beta-library:has(.clack-card) .game-details{padding:8px 14px}
  .library.beta-library:has(.clack-card) .play-row{margin-top:8px}
  .library.beta-library:has(.clack-card) .play-button{font-size:11px;padding:8px 12px}
  .library.beta-library:has(.clack-card) .saved-progress{font-size:8px;margin-top:3px}
}
@media(max-width:369px) and (orientation:portrait){
  .library:has(.clack-card) h2{font-size:26px}
  .library:has(.clack-card) .game-card{grid-template-columns:31% minmax(0,1fr)}
}
@media(max-height:620px) and (orientation:portrait){
  .library:has(.clack-card){gap:9px;padding-top:2px;padding-bottom:4px}
  .library:has(.clack-card) .game-card{grid-template-columns:27% minmax(0,1fr);border-radius:18px}
  .library:has(.clack-card) .game-art{border-radius:17px 0 0 17px}
  .library:has(.clack-card) .game-details{padding:7px 12px}
  .library:has(.clack-card) h2{font-size:23px;letter-spacing:-.9px;line-height:1}
  .library:has(.clack-card) h2 br{display:none}
  .library:has(.clack-card) .game-genre{display:none}
  .library:has(.clack-card) .play-row{margin-top:7px}
  .library:has(.clack-card) .saved-progress{font-size:8px;margin-top:3px}
  .library.beta-library:has(.clack-card){gap:7px}
  .library.beta-library:has(.clack-card) .game-details{padding:5px 12px}
  .library.beta-library:has(.clack-card) h2{font-size:21px}
  .library.beta-library:has(.clack-card) .play-row{margin-top:5px}
  .library.beta-library:has(.clack-card) .saved-progress{font-size:7.5px;margin-top:2px;line-height:1.1}
}
@media(orientation:landscape) and (max-height:650px){
  .library:has(.clack-card){grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:12px}
  .library:has(.clack-card) h2{font-size:24px;letter-spacing:-1px}
  .library:has(.clack-card) .game-details{padding:9px 12px 12px}
  .library:has(.clack-card) .play-button{font-size:10px;padding:8px 10px;gap:4px}
  .library:has(.clack-card) .play-button svg{width:15px;height:15px}
  .library:has(.clack-card) .art-label{display:none}
  .library.beta-library:has(.clack-card){grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:9px}
  .library.beta-library:has(.clack-card) .game-card{grid-template-columns:34% minmax(0,1fr);grid-template-rows:1fr;border-radius:17px}
  .library.beta-library:has(.clack-card) .game-art{border-radius:16px 0 0 16px}
  .library.beta-library:has(.clack-card) .game-details{padding:6px 10px}
  .library.beta-library:has(.clack-card) h2{font-size:21px;line-height:1}
  .library.beta-library:has(.clack-card) h2 br{display:none}
  .library.beta-library:has(.clack-card) .play-row{margin-top:6px}
  .library.beta-library:has(.clack-card) .saved-progress{font-size:7.5px;margin-top:2px;line-height:1.1}
}
/* Tall desktop tiles show the whole board; its cobalt background fills the rest. */
@media(min-width:800px) and (min-height:651px){.clack-card .game-art img{object-fit:contain}}

/* Spin the Word joins as a fourth stable tile, lit like a teal game-show studio. */
.spin-card{--rose:#f2c14e;background:linear-gradient(#0e534d,#073a37);border-color:#f2c14e59;color:#fbf3dc}
.spin-card .game-art{background:#0b4a45}
.spin-card .art-label{background:#06302dd9;border-color:#f2c14e66;color:#fbf3dc}
.spin-card .art-label>span{color:#f2c14e}
.spin-card .game-genre{color:#f2c14e}.spin-card .game-genre>span{background:#e2475a;border-radius:50%}
.spin-card h2{font-family:ui-rounded,"SF Pro Rounded","Arial Rounded MT Bold",system-ui,-apple-system,sans-serif;font-weight:900;letter-spacing:-1.2px;text-shadow:0 2px 0 #04201e,0 0 22px #f2c14e40;view-transition-name:spin-title}
.spin-card h2>span{color:#f2c14e}
.spin-card .game-description,.spin-card .saved-progress{color:#b8ddd3}
.spin-card .play-button{background:linear-gradient(#ee5d6e,#c92f45 60%,#a91f37);color:#fff6e6;box-shadow:0 3px 0 #5e0f1f}
@media(hover:hover){.spin-card:hover .play-button{background:linear-gradient(#f26f7e,#d23a50 60%,#b42740)}}
.spin-card:active .play-button{box-shadow:0 1px 0 #5e0f1f}

.library:has(.spin-card){grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.library:has(.spin-card) h2{font-size:clamp(26px,2.6vw,34px);letter-spacing:-1.3px}
.library:has(.spin-card) .game-details{padding:17px 18px 20px}
.library:has(.spin-card) .game-description{font-size:11px}
.library:has(.spin-card) .play-button{font-size:12px;padding:10px 12px;gap:6px}
.library.beta-library:has(.spin-card){grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.library.beta-library:has(.spin-card) h2{font-size:clamp(22px,2.1vw,28px);letter-spacing:-1px}
.library.beta-library:has(.spin-card) .game-details{padding:15px 14px 17px}
.library.beta-library:has(.spin-card) .art-label{display:none}
.library.beta-library:has(.spin-card) .play-button{font-size:11px;padding:9px 10px}

@media(max-width:799px) and (orientation:portrait){
  .library:has(.spin-card),.library.beta-library:has(.spin-card){grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(0,1fr));gap:11px;max-height:780px}
  .library:has(.spin-card) .game-card{grid-template-columns:34% minmax(0,1fr);grid-template-rows:1fr;border-radius:21px}
  .library:has(.spin-card) .game-art{border-radius:20px 0 0 20px}
  .library:has(.spin-card) h2,.library.beta-library:has(.spin-card) h2{font-size:28px;letter-spacing:-1.1px;line-height:1}
  .library:has(.spin-card) h2 br{display:none}
  .library:has(.spin-card) .game-details,.library.beta-library:has(.spin-card) .game-details{padding:12px 16px}
  .library.beta-library:has(.spin-card){grid-template-rows:repeat(5,minmax(0,1fr));gap:9px}
  .library.beta-library:has(.spin-card) .game-card{grid-template-columns:30% minmax(0,1fr);border-radius:19px}
  .library.beta-library:has(.spin-card) .game-art{border-radius:18px 0 0 18px}
  .library.beta-library:has(.spin-card) h2{font-size:24px}
  .library.beta-library:has(.spin-card) .game-details{padding:7px 14px}
  .library.beta-library:has(.spin-card) .play-row{margin-top:7px}
}
@media(max-width:369px) and (orientation:portrait){
  .library:has(.spin-card) .game-card,.library.beta-library:has(.spin-card) .game-card{grid-template-columns:29% minmax(0,1fr)}
  .library:has(.spin-card) h2,.library.beta-library:has(.spin-card) h2{font-size:24px}
}
/* Short portrait screens use a compact row: title on the left and an
   arrow-only 48px play button on the right (the label stays for assistive tech). */
@media(max-height:620px) and (orientation:portrait){
  .library.beta-library:has(.spin-card) .game-card{grid-template-columns:26% minmax(0,1fr);border-radius:17px}
  .library.beta-library:has(.spin-card) .game-art{border-radius:16px 0 0 16px}
  .library.beta-library:has(.spin-card) .game-details{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;column-gap:10px;padding:6px 10px 6px 13px}
  .library.beta-library:has(.spin-card) .game-heading{grid-column:1}
  .library.beta-library:has(.spin-card) .game-genre{display:none}
  .library.beta-library:has(.spin-card) h2{font-size:22px;letter-spacing:-.8px}
  .library.beta-library:has(.spin-card) .play-row{display:contents}
  .library.beta-library:has(.spin-card) .play-button{grid-column:2;grid-row:1/span 2;width:48px;min-height:48px;padding:0;justify-content:center}
  .library.beta-library:has(.spin-card) .play-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .library.beta-library:has(.spin-card) .play-button svg{width:20px;height:20px}
  .library.beta-library:has(.spin-card) .saved-progress{grid-column:1;grid-row:2;margin-top:3px;font-size:8px;text-align:left}
}
@media(max-height:520px) and (orientation:portrait){
  .library:has(.spin-card) .game-card{grid-template-columns:26% minmax(0,1fr);border-radius:17px}
  .library:has(.spin-card) .game-art{border-radius:16px 0 0 16px}
  .library:has(.spin-card) .game-details{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;column-gap:10px;padding:6px 10px 6px 13px}
  .library:has(.spin-card) .game-heading{grid-column:1}
  .library:has(.spin-card) .game-genre{display:none}
  .library:has(.spin-card) h2{font-size:22px;letter-spacing:-.8px}
  .library:has(.spin-card) .play-row{display:contents}
  .library:has(.spin-card) .play-button{grid-column:2;grid-row:1/span 2;width:48px;min-height:48px;padding:0;justify-content:center}
  .library:has(.spin-card) .play-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .library:has(.spin-card) .play-button svg{width:20px;height:20px}
  .library:has(.spin-card) .saved-progress{grid-column:1;grid-row:2;margin-top:3px;font-size:8px;text-align:left}
}
@media(max-height:620px) and (orientation:portrait){
  .library:has(.spin-card),.library.beta-library:has(.spin-card){gap:8px}
  .library:has(.spin-card) .game-genre{display:none}
  .library:has(.spin-card) .play-row{margin-top:8px}
}
@media(orientation:landscape) and (max-height:650px){
  .library:has(.spin-card){grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:10px}
  .library:has(.spin-card) h2{font-size:22px;letter-spacing:-.8px;line-height:1.02}
  .library:has(.spin-card) .game-details{padding:8px 10px 11px}
  .library:has(.spin-card) .play-button{font-size:9px;padding:8px 9px;gap:3px}
  .library:has(.spin-card) .play-button svg{width:14px;height:14px}
  .library.beta-library:has(.spin-card){grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}
  .library.beta-library:has(.spin-card) .game-card{grid-template-columns:32% minmax(0,1fr);grid-template-rows:1fr;border-radius:16px}
  .library.beta-library:has(.spin-card) .game-art{border-radius:15px 0 0 15px}
  .library.beta-library:has(.spin-card) .game-details{padding:6px 9px}
  .library.beta-library:has(.spin-card) h2{font-size:19px;line-height:1}
  .library.beta-library:has(.spin-card) .game-genre{display:none}
  .library.beta-library:has(.spin-card) .play-row{margin-top:6px}
}

/* Factory Floor beta: charcoal workshop, safety yellow and kraft cardboard. */
.factory-card{--rose:#f2c230;background:#2b2824;border-color:#4a443d;color:#fbf3e2}
.factory-card .game-art{background:#2b2824}
.factory-card .art-label{background:#1f1c19d0;border-color:#f2c23066;color:#fbf3e2}
.factory-card .art-label>span{color:#f2c230}
.factory-card .game-heading{display:block}
.factory-card .game-genre{color:#f2c230}
.factory-card .game-genre>span:first-child{background:#e8692b}
.factory-card .beta-badge{display:inline-block;width:auto;height:auto;border:1px solid #6a6258;background:transparent;border-radius:5px;padding:3px 5px;margin-left:3px;font-size:8px;line-height:1;letter-spacing:1px;color:#cfc4b1}
.factory-card h2{view-transition-name:factory-title;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-weight:900;letter-spacing:-1.5px;white-space:normal;line-height:1}
.factory-card .game-description,.factory-card .saved-progress{color:#cfc4b1}
.factory-card .play-button{background:#f2c230;color:#1f1c19;box-shadow:0 3px 0 #1f1c19}
@media(hover:hover){.factory-card:hover .play-button{background:#ffd447}}
.factory-card:active .play-button{box-shadow:0 1px 0 #1f1c19}
/* Six beta tiles: two rows of three on wide screens, one more row on phones. */
.library.beta-library:has(.factory-card){grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);max-height:640px;gap:14px}
.library.beta-library:has(.factory-card) .game-card{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
.library.beta-library:has(.factory-card) .game-art{border-radius:28px 28px 0 0}
.library.beta-library:has(.factory-card) .game-details{padding:14px 18px 16px}
.library.beta-library:has(.factory-card) .game-heading{display:block}
.library.beta-library:has(.factory-card) .game-genre{margin-bottom:6px}
.library.beta-library:has(.factory-card) .game-description{margin-top:6px}
.library.beta-library:has(.factory-card) .play-row{margin-top:10px}
.library.beta-library:has(.factory-card) h2{font-size:clamp(24px,2.3vw,30px)}
.library.beta-library:has(.factory-card) h2 br{display:none}
@media(max-width:799px) and (orientation:portrait){
  .library.beta-library:has(.factory-card){grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));max-height:none;gap:9px}
  .library.beta-library:has(.factory-card) .game-card{grid-template-columns:30% minmax(0,1fr);grid-template-rows:1fr}
  .library.beta-library:has(.factory-card) .game-art{border-radius:18px 0 0 18px}
  .library.beta-library:has(.factory-card) .game-details{padding:7px 14px}
  .library.beta-library:has(.factory-card) .play-row{margin-top:7px}
  .library.beta-library:has(.factory-card) h2{font-size:24px}
}
@media(max-height:620px) and (orientation:portrait){.library.beta-library:has(.factory-card) .game-card{grid-template-columns:26% minmax(0,1fr)}.library.beta-library:has(.factory-card) h2{font-size:22px}}
@media(max-width:369px) and (orientation:portrait){.library.beta-library:has(.factory-card) .game-card{grid-template-columns:29% minmax(0,1fr)}}
@media(orientation:landscape) and (max-height:650px){
  .library.beta-library:has(.factory-card){grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;max-height:none}
  .library.beta-library:has(.factory-card) .game-card{grid-template-columns:32% minmax(0,1fr);grid-template-rows:1fr}
  .library.beta-library:has(.factory-card) .game-details{padding:6px 9px}
  .library.beta-library:has(.factory-card) .play-row{margin-top:6px}
  .library.beta-library:has(.factory-card) .game-art{border-radius:15px 0 0 15px}
  .library.beta-library:has(.factory-card) h2{font-size:19px}
}

/* Ivory: black lacquer, ivory keys and stage gold. */
.ivory-card{--rose:#d9b26a;background:linear-gradient(#1e1712,#110d0a);border-color:#d9b26a40;color:#f4ecdc}
.ivory-card .game-art{background:#140f0b}
.ivory-card .art-label{background:#120e0bd9;border-color:#d9b26a66;color:#f4ecdc}
.ivory-card .art-label>span{color:#d9b26a}
.ivory-card .game-genre{color:#d9b26a}.ivory-card .game-genre>span{background:#f4ecdc;border-radius:2px}
.ivory-card h2{font-family:"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,serif;font-weight:400;letter-spacing:.5px;view-transition-name:ivory-title}
.ivory-card h2>span{color:#d9b26a}
.ivory-card .game-description,.ivory-card .saved-progress{color:#cfc4b0}
.ivory-card .play-button{background:linear-gradient(#fbf5e9,#e3d5b9);color:#1e1712;box-shadow:0 3px 0 #000}
@media(hover:hover){.ivory-card:hover .play-button{background:linear-gradient(#fffaf0,#ecdfc4)}}
.ivory-card:active .play-button{box-shadow:0 1px 0 #000}

/* Five stable tiles in one row; seven beta tiles in two rows of four. */
.library:has(.ivory-card){grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.library:has(.ivory-card) .game-card{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
.library:has(.ivory-card) .game-art{border-radius:28px 28px 0 0}
.library:has(.ivory-card) h2{font-size:clamp(22px,2.1vw,28px);letter-spacing:-1px}
.library:has(.ivory-card) .ivory-card h2{letter-spacing:0}
.library:has(.ivory-card) .game-heading{display:block}
.library:has(.ivory-card) .game-genre{margin-bottom:6px}
.library:has(.ivory-card) .game-details{padding:15px 14px 17px}
.library:has(.ivory-card) .game-description{font-size:11px}
.library:has(.ivory-card) .art-label{display:none}
.library:has(.ivory-card) .play-button{font-size:11px;padding:9px 10px;gap:5px}
.library.beta-library:has(.ivory-card){grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);max-height:660px;gap:12px}
.library.beta-library:has(.ivory-card) h2 br{display:none}
@media(max-width:799px) and (orientation:portrait){
  .library:has(.ivory-card),.library.beta-library:has(.ivory-card){grid-template-columns:1fr;grid-template-rows:repeat(5,minmax(0,1fr));gap:9px;max-height:820px}
  .library.beta-library:has(.ivory-card){grid-template-rows:repeat(7,minmax(0,1fr));gap:8px;max-height:none}
  .library:has(.ivory-card) .game-card,.library.beta-library:has(.ivory-card) .game-card{grid-template-columns:30% minmax(0,1fr);grid-template-rows:1fr;border-radius:19px}
  .library:has(.ivory-card) .game-art{border-radius:18px 0 0 18px}
  .library:has(.ivory-card) h2,.library.beta-library:has(.ivory-card) h2{font-size:24px;line-height:1}
  .library:has(.ivory-card) h2 br{display:none}
  .library:has(.ivory-card) .game-details,.library.beta-library:has(.ivory-card) .game-details{padding:7px 14px}
  .library:has(.ivory-card) .game-genre{display:none}
  .library:has(.ivory-card) .game-description{display:none}
  .library:has(.ivory-card) .play-row{margin-top:7px}
  .library:has(.ivory-card) .saved-progress{font-size:8px;margin-top:3px}
}
/* Short phones and the seven-tile beta list: icon-only play buttons beside the title. */
@media(max-width:799px) and (orientation:portrait) and (max-height:700px){
  .library:has(.ivory-card) .game-card{grid-template-columns:26% minmax(0,1fr);border-radius:17px}
  .library:has(.ivory-card) .game-art{border-radius:16px 0 0 16px}
}
@media(max-width:799px) and (orientation:portrait){
  .library.beta-library:has(.ivory-card) .game-card{grid-template-columns:26% minmax(0,1fr);border-radius:17px}
  .library.beta-library:has(.ivory-card) .game-art{border-radius:16px 0 0 16px}
  .library.beta-library:has(.ivory-card) .game-details{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;column-gap:10px;padding:5px 10px 5px 13px}
  .library.beta-library:has(.ivory-card) .game-heading{grid-column:1}
  .library.beta-library:has(.ivory-card) h2{font-size:21px;letter-spacing:-.8px}
  .library.beta-library:has(.ivory-card) .play-row{display:contents}
  .library.beta-library:has(.ivory-card) .play-button{grid-column:2;grid-row:1/span 2;width:48px;min-height:48px;padding:0;justify-content:center}
  .library.beta-library:has(.ivory-card) .play-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .library.beta-library:has(.ivory-card) .play-button svg{width:20px;height:20px}
  .library.beta-library:has(.ivory-card) .saved-progress{grid-column:1;grid-row:2;margin-top:2px;font-size:8px;text-align:left}
}
@media(max-height:620px) and (orientation:portrait){
  .library:has(.ivory-card) .game-details{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;column-gap:10px;padding:5px 10px 5px 13px}
  .library:has(.ivory-card) .game-heading{grid-column:1}
  .library:has(.ivory-card) h2{font-size:21px;letter-spacing:-.8px}
  .library:has(.ivory-card) .play-row{display:contents}
  .library:has(.ivory-card) .play-button{grid-column:2;grid-row:1/span 2;width:48px;min-height:48px;padding:0;justify-content:center}
  .library:has(.ivory-card) .play-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .library:has(.ivory-card) .play-button svg{width:20px;height:20px}
  .library:has(.ivory-card) .saved-progress{grid-column:1;grid-row:2;margin-top:2px;font-size:8px;text-align:left}
}
@media(orientation:landscape) and (max-height:650px){
  .library:has(.ivory-card){grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;max-height:none}
  .library.beta-library:has(.ivory-card){grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
  .library:has(.ivory-card) .game-card{grid-template-columns:32% minmax(0,1fr);grid-template-rows:1fr;border-radius:16px}
  .library:has(.ivory-card) .game-art{border-radius:15px 0 0 15px}
  .library:has(.ivory-card) .game-details{padding:6px 9px}
  .library:has(.ivory-card) .game-genre,.library:has(.ivory-card) .game-description{display:none}
  .library:has(.ivory-card) .play-row{margin-top:6px}
  .library:has(.ivory-card) h2{font-size:19px;line-height:1}
  .library:has(.ivory-card) .play-button{font-size:9px;padding:7px 8px}
}
@media(orientation:landscape) and (max-height:650px) and (max-width:700px){
  .library.beta-library:has(.ivory-card) .game-card{grid-template-columns:1fr}
  .library.beta-library:has(.ivory-card) .game-art{display:none}
  .library.beta-library:has(.ivory-card) h2{font-size:17px}
}

/* Bible Trivia: night indigo vellum, parchment and gold leaf. */
.trivia-card{--rose:#e2b23f;background:linear-gradient(#2c2659,#1c1838);border-color:#e2b23f59;color:#f6ecd4}
.trivia-card .game-art{background:#1c1838}
.trivia-card .art-label{background:#151230d9;border-color:#e2b23f66;color:#f6ecd4}
.trivia-card .art-label>span{color:#e2b23f}
.trivia-card .game-genre{color:#e2b23f}.trivia-card .game-genre>span{background:#d2452f;border-radius:2px;transform:rotate(45deg)}
.trivia-card h2{font-family:Georgia,"Iowan Old Style","Times New Roman",serif;font-weight:700;letter-spacing:-.3px;view-transition-name:trivia-title}
.trivia-card h2>span{color:#d2452f}
.trivia-card .game-description,.trivia-card .saved-progress{color:#c5bfe2}
.trivia-card .play-button{background:linear-gradient(#f0c75c,#d9a52f);color:#2b2440;box-shadow:0 3px 0 #8a6a22}
@media(hover:hover){.trivia-card:hover .play-button{background:linear-gradient(#f6d47a,#e2b23f)}}
.trivia-card:active .play-button{box-shadow:0 1px 0 #8a6a22}
/* Six tiles (eight in beta): two rows on wide screens, one compact list on phones. */
.library:has(.trivia-card){grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);max-height:660px;gap:12px}
.library:has(.trivia-card) .trivia-card h2{letter-spacing:0}
.library:has(.trivia-card) h2 br{display:none}
.library.beta-library:has(.trivia-card){grid-template-columns:repeat(4,minmax(0,1fr))}
@media(min-width:800px),(orientation:landscape){
  .library:not(.beta-library):has(.trivia-card) .game-card{grid-template-columns:42% minmax(0,1fr);grid-template-rows:1fr}
  .library:not(.beta-library):has(.trivia-card) .game-art{border-radius:28px 0 0 28px}
  .library:not(.beta-library):has(.trivia-card) .game-details{align-self:center}
}
@media(max-width:799px) and (orientation:portrait){
  .library:has(.trivia-card){grid-template-columns:1fr;grid-template-rows:repeat(6,minmax(0,1fr));gap:8px;max-height:860px}
  .library.beta-library:has(.trivia-card){grid-template-columns:1fr;grid-template-rows:repeat(8,minmax(0,1fr));gap:7px;max-height:none}
  .library:has(.trivia-card) .game-card{grid-template-columns:26% minmax(0,1fr);border-radius:17px}
  .library:has(.trivia-card) .game-art{border-radius:16px 0 0 16px}
  .library:has(.trivia-card) .game-details{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;align-items:center;column-gap:10px;padding:5px 10px 5px 13px}
  .library:has(.trivia-card) .game-heading{grid-column:1}
  .library:has(.trivia-card) h2{font-size:21px;letter-spacing:-.8px}
  .library:has(.trivia-card) .play-row{display:contents}
  .library:has(.trivia-card) .play-button{grid-column:2;grid-row:1/span 2;width:48px;min-height:48px;padding:0;justify-content:center}
  .library:has(.trivia-card) .play-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .library:has(.trivia-card) .play-button svg{width:20px;height:20px}
  .library:has(.trivia-card) .saved-progress{grid-column:1;grid-row:2;margin-top:2px;font-size:8px;text-align:left}
}
/* Short phones keep every tile on one screen: tighter rows, then two columns of title-and-button tiles. */
@media(max-width:799px) and (orientation:portrait) and (max-height:640px){
  .library:has(.trivia-card){gap:6px}
  .library.beta-library:has(.trivia-card){gap:5px}
  .library.beta-library:has(.trivia-card) .game-card{border-radius:14px}
  .library.beta-library:has(.trivia-card) .game-art{border-radius:13px 0 0 13px}
}
@media(max-width:799px) and (orientation:portrait) and (max-height:540px){
  .library.beta-library:has(.trivia-card){grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:6px}
  .library.beta-library:has(.trivia-card) .game-card{grid-template-columns:minmax(0,1fr)}
  .library.beta-library:has(.trivia-card) .game-art{display:none}
  .library.beta-library:has(.trivia-card) .game-details{padding:5px 6px 5px 10px;column-gap:6px}
  .library.beta-library:has(.trivia-card) h2{font-size:16px;letter-spacing:-.4px;line-height:1.05}
  .library.beta-library:has(.trivia-card) .saved-progress{font-size:8px;line-height:1.1;margin-top:1px}
}
@media(orientation:landscape) and (max-height:650px){
  .library:has(.trivia-card){grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;max-height:none}
  .library.beta-library:has(.trivia-card){grid-template-columns:repeat(4,minmax(0,1fr))}
  .library:not(.beta-library):has(.trivia-card) .game-card{grid-template-columns:32% minmax(0,1fr)}
  .library:not(.beta-library):has(.trivia-card) .game-art{border-radius:15px 0 0 15px}
}

/* An online session: the game master picks the next game for everyone here. */
.home-main:has(.session-bar:not([hidden])){flex-direction:column;align-items:stretch;gap:12px}
.home-main:has(.session-bar:not([hidden])) .library{flex:1}
.session-bar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 16px;border-radius:18px;background:#1d2030;border:1px solid #bee58a55}
.session-bar p{min-width:0;display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.3;color:#b6b9c8}
.session-bar strong{font-size:14px;color:#f2f3f8;font-weight:750}
.session-bar strong::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#bee58a;margin-right:8px;vertical-align:1px}
.session-actions{display:flex;gap:8px;flex-shrink:0}
.session-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border-radius:13px;border:1px solid #3b414f;background:#242834;color:#f2f3f8;font:inherit;font-size:12px;font-weight:650;cursor:pointer}
.session-button.primary{background:#bee58a;border-color:#bee58a;color:#17210c}
.session-button[aria-pressed="true"]{border-color:#bee58a;color:#bee58a}
.session-button:focus-visible{outline:3px solid #b5e778;outline-offset:2px}
/* Only the games that seat everyone are shown, sized to fill the space. */
.home-main .library.session-library{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));grid-template-rows:minmax(0,1fr);grid-auto-rows:minmax(0,1fr);max-height:520px;gap:14px}
.home-main .library.session-library .game-card{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto}
.home-main .library.session-library .game-art{border-radius:28px 28px 0 0;display:block}
.home-main .library.session-library .game-details{display:block;padding:16px 18px 18px}
.home-main .library.session-library .play-row{display:flex;margin-top:12px}
.home-main .library.session-library .play-button{width:auto;min-height:48px;padding:10px 14px}
.home-main .library.session-library .play-button>span{position:static;width:auto;height:auto;clip-path:none}
.home-main .library.session-library .saved-progress{display:none}
@media(max-width:799px) and (orientation:portrait){
  .session-bar{flex-wrap:wrap;padding:10px 12px}
  .session-actions{width:100%}.session-actions>*{flex:1}
  .home-main .library.session-library{grid-template-columns:1fr;grid-template-rows:none;grid-auto-rows:minmax(84px,150px);max-height:none;align-content:start;gap:9px}
  .home-main .library.session-library .game-card{grid-template-columns:34% minmax(0,1fr);grid-template-rows:1fr}
  .home-main .library.session-library .game-art{border-radius:18px 0 0 18px}
  .home-main .library.session-library .game-details{align-self:center;padding:10px 14px}
}
@media(orientation:landscape) and (max-height:650px){
  .session-bar{padding:4px 8px 4px 14px}.session-bar p{flex-direction:row;gap:10px;align-items:baseline}
  .home-main:has(.session-bar:not([hidden])){gap:6px}
  .home-main .library.session-library .game-card{grid-template-columns:36% minmax(0,1fr);grid-template-rows:1fr}
  .home-main .library.session-library .game-art{border-radius:15px 0 0 15px}
  .home-main .library.session-library .game-details{align-self:center;padding:8px 12px}
}
