/* Pixel Paint - cozy cafe room (dev). Stage coordinates (1920x1080). All frames/cards/icons are canvases from
   paint-cozy-art.js at 3x; sizes here are multiples of 3 and LanaPixel sizes are multiples of 11 so both stay crisp. */
#gameScreen.czRoom { --ink: #2b2233; --cream: #fff6e6; --cream2: #f3e4cc; --muted: #8b7b6a; --gold: #ffd23f; font-family: LanaPixel, monospace; }
#gameScreen.czRoom .gameTop, #gameScreen.czRoom .gameFrame, #gameScreen.czRoom .gameLeftPanel, #gameScreen.czRoom .gameRightPanel,
#gameScreen.czRoom .gameBottom, #gameScreen.czRoom .gameRolls, #gameScreen.czRoom .gameMenuButton, #gameScreen.czRoom .gameEquipButton,
#gameScreen.czRoom .gameInviteButton { display: none !important; }

/* cafe wall: sage wallpaper everywhere around the room (replaces the old brick page background and the stage tiles) */
html:has(body.czInRoom), body.czInRoom { background: #9cb398 var(--cz-wall) 0 0 / 72px 96px repeat !important; image-rendering: pixelated; }
body.czInRoom #stage { background: #9cb398 var(--cz-wall) 0 0 / 72px 96px repeat !important; animation: none !important; }
/* the moving tiles now live only inside the board frame, in warm latte colors */
#stage #gameScreen.czRoom .boardViewport { inset: auto; left: 405px; top: 186px; width: 969px; height: 810px; background: #f0debe; }
#stage #gameScreen.czRoom .boardViewport::before { background-image: url('/assets/paint/cozy-board_bg.png?v=1'); animation-duration: 6s; }

#gameScreen .cz { position: absolute; z-index: 6; color: var(--ink); }
#gameScreen .cz, #gameScreen .cz * { font-family: LanaPixel, monospace !important; }
#gameScreen .czSprite, #gameScreen .czSkin { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
#gameScreen .czSkin { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
#gameScreen .czPanel, #gameScreen .czBtn, #gameScreen .czJar, #gameScreen .czLead, #gameScreen .czMe, #gameScreen .czPlaque, #gameScreen .czTitle, #gameScreen .czStat, #gameScreen .czCard, #gameScreen .czCardAv { isolation: isolate; }
#gameScreen.czRoom .czAwning, #gameScreen.czRoom .czLights, #gameScreen.czRoom .czWainscot { position: absolute; left: 0; z-index: 5; pointer-events: none; }
#gameScreen.czRoom .czAwning { top: 99px; z-index: 6; filter: drop-shadow(0 6px 0 rgba(43, 34, 51, .2)); }
#gameScreen.czRoom .czLights { top: 126px; }
#gameScreen.czRoom .czWainscot { top: 1014px; }

#gameScreen .czPanel { padding: 18px; box-sizing: border-box; filter: drop-shadow(6px 6px 0 rgba(43, 34, 51, .3)); }
#gameScreen .czPlaque { position: absolute; left: 24px; top: -48px; height: 45px; padding: 0 30px; box-sizing: border-box; display: grid; place-items: center; z-index: 2;
  font-size: 33px; line-height: 33px; color: var(--cream); text-shadow: 3px 3px 0 #6e3c1e; white-space: nowrap; filter: drop-shadow(3px 3px 0 rgba(43, 34, 51, .3)); }
#gameScreen .czPlaque > span { padding-top: 3px; }
#gameScreen .czPlaque .czSprig { position: absolute; top: -18px; }
#gameScreen .czPlaque .czSprig.l { left: -6px; } #gameScreen .czPlaque .czSprig.r { right: -6px; }
#gameScreen .czProp { position: absolute; pointer-events: none; z-index: 3; }
#gameScreen .czPlant { right: 12px; top: -75px; }
#gameScreen .czMug { right: 30px; top: -75px; }
#gameScreen .czCat { right: 3px; top: -84px; }

/* ---------- top wooden bar ---------- */
#gameScreen .czTop { left: 0; top: 0; width: 1920px; height: 102px; background: url('/assets/paint/cozy-plank.png?v=1') 0 0 / 96px 51px repeat; image-rendering: pixelated; border-bottom: 6px solid var(--ink); box-sizing: border-box; display: flex; align-items: center; gap: 30px; padding: 0 24px; z-index: 7; }
#gameScreen .czBtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 57px; padding: 0 21px; box-sizing: border-box; border: 0;
  font-size: 22px; line-height: 22px; color: var(--ink); cursor: pointer; background: none; filter: drop-shadow(3px 3px 0 rgba(43, 34, 51, .4)); }
#gameScreen .czBtn:active { transform: translateY(3px); filter: none; }
#gameScreen .czBtn:disabled { cursor: default; opacity: .7; }
#gameScreen .czBtn > span { padding-top: 3px; }
#gameScreen .czTitle { position: relative; width: 450px; height: 90px; flex: none; display: flex; align-items: center; justify-content: center; gap: 24px; padding-right: 12px; box-sizing: border-box; filter: drop-shadow(3px 3px 0 rgba(43, 34, 51, .4)); }
#gameScreen .czTitle b { font-size: 44px; line-height: 44px; padding-top: 6px; font-weight: 400; color: var(--ink); text-shadow: 3px 3px 0 #ead9bb; white-space: nowrap; }
#gameScreen .czProg { position: relative; flex: 1; height: 51px; border: 6px solid var(--ink); background: #4a2f1c; box-shadow: inset 0 6px 0 #3a2414, 3px 3px 0 rgba(43, 34, 51, .4); }
#gameScreen .czProgFill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: url('/assets/paint/cozy-bar_fill.png?v=1') 0 0 / 24px 100% repeat-x; image-rendering: pixelated; transition: width .3s ease-out; }
#gameScreen .czProgHandle { position: absolute; top: -15px; width: 24px; height: 69px; margin-left: -12px; background: url('/assets/paint/cozy-bar_handle.png?v=1') 0 0 / 100% 100%; image-rendering: pixelated; transition: left .3s ease-out; }
#gameScreen .czProgText { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 22px; color: var(--cream); text-shadow: 3px 3px 0 var(--ink); }
#gameScreen .czMe { position: relative; display: flex; align-items: center; gap: 15px; height: 87px; padding: 0 18px 0 12px; box-sizing: border-box; width: 450px; flex: none; filter: drop-shadow(3px 3px 0 rgba(43, 34, 51, .4)); }
#gameScreen .czMeText { display: grid; gap: 6px; padding-top: 3px; flex: 1; min-width: 0; }
#gameScreen .czMeText b { font-size: 22px; line-height: 22px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gameScreen .czCombo { display: flex; justify-content: space-between; font-size: 22px; line-height: 22px; color: var(--muted); }
#gameScreen .czCombo[data-tier="talented"] .czComboName { color: #4f9a3e; } #gameScreen .czCombo[data-tier="prodigy"] .czComboName { color: #3f86c4; } #gameScreen .czCombo[data-tier="genius"] .czComboName { color: #c45a50; }
#gameScreen .czComboX { color: var(--ink); display: inline-block; }
#gameScreen .czComboX.pop { animation: czPop .22s ease-out; }
@keyframes czPop { 40% { transform: translateY(-3px); color: #c45a50; } }
#gameScreen .czComboBar { height: 12px; border: 3px solid var(--ink); background: #ead9bb; position: relative; overflow: hidden; }
#gameScreen .czComboBar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: url('/assets/paint/cozy-bar_fill.png?v=1') 0 0 / 12px 100% repeat-x; image-rendering: pixelated; transition: width .1s linear; }
#gameScreen.czRoom .czHiddenCounter { position: absolute !important; left: 30px !important; top: 30px !important; visibility: hidden !important; }

/* avatars: smooth (they are painted portraits, not pixel art) and clickable */
#gameScreen .czAv { flex: none; width: 45px; height: 45px; padding: 0; border: 3px solid var(--ink); background: var(--cream2); overflow: hidden; box-sizing: content-box; cursor: pointer; display: block; }
#gameScreen .czAv img, #gameScreen .czCardAv img { width: 100%; height: 100%; display: block; object-fit: cover; image-rendering: auto !important; }
#gameScreen .czAv:hover { border-color: #c45a50; }
#gameScreen .czMe > .czAv { width: 57px; height: 57px; }

/* ---------- panels ---------- */
#gameScreen .czPaints { left: 33px; top: 168px; width: 327px; height: 846px; }
#gameScreen .czBoard { left: 387px; top: 168px; width: 1005px; height: 846px; pointer-events: none; background: none !important; }
#gameScreen .czLeaders { left: 1419px; top: 168px; width: 477px; height: 411px; }
#gameScreen .czChat { left: 1419px; top: 612px; width: 477px; height: 402px; display: flex; flex-direction: column; }

/* paint jars */
#gameScreen .czJars { position: absolute; inset: 15px; overflow-y: auto; scrollbar-width: none; display: grid; gap: 9px; align-content: start; }
#gameScreen .czJar { position: relative; display: grid; grid-template-columns: 60px 1fr 12px; align-items: center; gap: 15px; height: 93px; padding: 0 15px 0 12px; box-sizing: border-box; border: 0; cursor: pointer; background: none; color: inherit; text-align: left; }
#gameScreen .czJar.done { opacity: .8; cursor: default; }
#gameScreen .czJarImg { position: relative; width: 60px; height: 69px; }
#gameScreen .czJarImg b { position: absolute; left: 0; right: 0; top: 39px; padding-left: 3px; text-align: center; font-size: 22px; line-height: 22px; font-weight: 400; color: var(--ink);
  text-shadow: 3px 0 var(--sw), -3px 0 var(--sw), 0 3px var(--sw), 0 -3px var(--sw); }
#gameScreen .czJarImg b.light { color: var(--cream); }
#gameScreen .czJarTxt { display: grid; gap: 9px; line-height: 1; }
#gameScreen .czJarTxt b { font-size: 33px; line-height: 33px; font-weight: 400; }
#gameScreen .czJarTxt small { font-size: 22px; line-height: 22px; color: var(--muted); display: flex; align-items: center; gap: 9px; }
#gameScreen .czJar.done .czJarTxt small { color: #4f9a3e; }
#gameScreen .czPointer { visibility: hidden; }
#gameScreen .czJar.on .czPointer { visibility: visible; animation: czNudge .9s steps(2) infinite; }
@keyframes czNudge { 50% { transform: translateX(-3px); } }

/* leaderboard */
#gameScreen .czRows { position: absolute; inset: 18px 15px 15px; display: grid; gap: 9px; align-content: start; }
#gameScreen .czLead { position: relative; display: grid; grid-template-columns: 45px 51px 1fr auto; align-items: center; gap: 12px; height: 81px; padding: 0 15px 0 12px; box-sizing: border-box; }
#gameScreen .czRank { width: 45px; height: 57px; background: center / contain no-repeat; image-rendering: pixelated; display: grid; place-items: center; font-size: 22px; line-height: 22px; }
#gameScreen .czRank.n { width: 39px; height: 39px; margin-left: 3px; background-image: url('/assets/paint/cozy-rank_badge.png?v=1'); padding-top: 3px; box-sizing: border-box; }
#gameScreen .czLeadAv { width: 42px; height: 42px; }
#gameScreen .czLeadMid { display: grid; gap: 9px; min-width: 0; }
#gameScreen .czLeadMid b { font-size: 22px; line-height: 22px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gameScreen .czMini { height: 12px; border: 3px solid var(--ink); background: #ead9bb; width: 150px; position: relative; }
#gameScreen .czMini i { position: absolute; left: 0; top: 0; bottom: 0; background: url('/assets/paint/cozy-bar_fill.png?v=1') 0 0 / 12px 100% repeat-x; image-rendering: pixelated; }
#gameScreen .czLeadPx { font-size: 22px; line-height: 22px; white-space: nowrap; }
#gameScreen .czEmpty { padding: 21px 9px; font-size: 22px; line-height: 33px; color: var(--muted); text-align: center; }

/* chat */
#gameScreen .czRoomInfo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 3px 9px; border-bottom: 3px solid #ead9bb; font-size: 22px; line-height: 22px; color: var(--muted); }
#gameScreen .czRoomInfo b { font-weight: 400; color: var(--ink); }
#gameScreen .czRoomInfo button { border: 0; background: none; padding: 0; font-size: 22px; line-height: 22px; color: #a5652f; cursor: pointer; }
#gameScreen .czRoomInfo button:hover { color: #c45a50; }
#gameScreen .czLog { flex: 1; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 9px; padding: 12px 0 6px; }
#gameScreen .czMsg { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; flex-shrink: 0; }
#gameScreen .czMsg .czAv { width: 36px; height: 36px; }
#gameScreen .czBubble { padding: 9px 12px; border: 3px solid var(--ink); background: #fffaf0; box-shadow: 3px 3px 0 rgba(43, 34, 51, .2); min-width: 0; }
#gameScreen .czMsg.me .czBubble { background: #eaf6df; }
#gameScreen .czBubble b { display: block; font-size: 22px; line-height: 22px; font-weight: 400; color: #b8743f; margin-bottom: 6px; }
#gameScreen .czBubble span { font-size: 22px; line-height: 27px; word-break: break-word; }
#gameScreen .czSys { flex-shrink: 0; font-size: 22px; line-height: 22px; color: var(--muted); text-align: center; }
#gameScreen .czSend { display: flex; gap: 12px; padding-top: 9px; }
#gameScreen .czSend input { flex: 1; min-width: 0; height: 57px; padding: 3px 15px 0; box-sizing: border-box; border: 6px solid var(--ink); background: #fffaf0; font-size: 22px; color: var(--ink); outline: none; box-shadow: inset 0 3px 0 #ead9bb; }
#gameScreen .czSend .czSendBtn { width: 78px; padding: 0; }

/* ---------- player card ---------- */
#gameScreen .czCard { z-index: 20; width: 504px; padding: 24px; box-sizing: border-box; display: grid; gap: 18px; filter: drop-shadow(6px 6px 0 rgba(43, 34, 51, .35)); animation: czCardIn .16s ease-out; }
@keyframes czCardIn { from { transform: translateY(9px); opacity: 0; } }
#gameScreen .czCardHead { display: grid; grid-template-columns: 117px 1fr 42px; gap: 18px; align-items: center; }
#gameScreen .czCardAv { position: relative; width: 117px; height: 117px; padding: 9px; box-sizing: border-box; display: block; }
#gameScreen .czCardAv img { border: 3px solid var(--ink); box-sizing: border-box; background: var(--cream2); }
#gameScreen .czCardWho { display: grid; gap: 9px; min-width: 0; }
#gameScreen .czCardWho b { font-size: 33px; line-height: 33px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gameScreen .czCardStatus { font-size: 22px; line-height: 22px; color: #4f9a3e; }
#gameScreen .czCardStatus:empty { display: none; }
#gameScreen .czCardLevel { font-size: 22px; line-height: 22px; color: #a5652f; }
#gameScreen .czCardX { align-self: start; width: 42px; height: 42px; border: 0 !important; box-shadow: none !important; background: none !important; cursor: pointer; display: grid; place-items: center; opacity: .55; }
#gameScreen .czCardX:hover { opacity: 1; }
#gameScreen .czCardStats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 9px; }
#gameScreen .czStat { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 6px; }
#gameScreen .czStat b { font-size: 22px; line-height: 22px; font-weight: 400; }
#gameScreen .czStat small { font-size: 22px; line-height: 22px; color: var(--muted); }
#gameScreen .czCardActions { display: flex; gap: 12px; align-items: center; }
#gameScreen .czCardActions .czBtn:not(.czIconBtn) { flex: 1; }
#gameScreen .czIconBtn { width: 57px; padding: 0; }
#gameScreen .czTag { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 57px; font-size: 22px; line-height: 22px; color: #a5652f; background: #fbeedb; box-shadow: inset 0 0 0 3px #ead9bb; }
#gameScreen .czTag > span { padding-top: 3px; }
#gameScreen .czCardNote { margin: 0; font-size: 22px; line-height: 27px; color: var(--muted); }
#gameScreen .czCardNote:empty { display: none; }
#gameScreen .czReport { display: grid; gap: 12px; }
#gameScreen .czReport > b { font-size: 22px; line-height: 22px; font-weight: 400; color: #c45a50; }
#gameScreen .czReasons { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
#gameScreen .czReasons .czBtn { height: 51px; }
