/* LIGHTKEEPERS · GaiaVerse 0.26 visual system */
:root{--j-ink:#183e42;--j-night:#102e35;--j-gold:#f6d68c;--j-mint:#bdf2da;--j-paper:#fffbf0}
#bg{filter:saturate(1.08) contrast(1.03);transition:filter 1.6s}
#viewport::after{content:'';position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 48% 35%,transparent 38%,#092e2928 100%);z-index:18;box-shadow:inset 0 0 120px #11272e22}
#atmosphere{position:absolute;inset:0;width:1916px;height:821px;pointer-events:none;z-index:15;mix-blend-mode:screen}
#sunbeams{position:absolute;inset:0;pointer-events:none;background:linear-gradient(112deg,transparent 34%,#ffe9a51c 35%,transparent 44%,#fffbd31a 45%,transparent 53%);z-index:3;transform-origin:50% 0;animation:rays 19s ease-in-out infinite alternate}
@keyframes rays{to{transform:translateX(70px) skewX(5deg);opacity:.55}}
.char{will-change:transform;filter:drop-shadow(0 5px 3px #1a352f23)}
.walkBob{animation:none!important}
.npc{animation:idleBob 3.8s ease-in-out infinite;transform-origin:center bottom}
.pill,.roundBtn{background:linear-gradient(140deg,#173c40f2,#0e2837f2);border:1px solid #dcefc33b;box-shadow:0 5px 18px #0b242d35,inset 0 1px #ffffff1c}
.roundBtn{border-radius:17px;transition:transform .18s,background .18s}
.roundBtn:hover{transform:translateY(-3px);background:#2d5c5c}
#goal{border-radius:18px;border-color:#fff4c166;color:#fff6dc;line-height:1.45;padding:11px 22px;max-width:min(46vw,540px)}
#actionBtn{background:radial-gradient(circle at 35% 25%,#fcdfa2,#d2a350);color:#173e42;border:3px solid #fff7db;box-shadow:0 0 0 6px #153e3b60,0 10px 26px #0c272e77;transition:scale .15s}
#actionBtn:hover{scale:1.06}
#dialog{background:linear-gradient(135deg,#fffdf6fa,#eff9eafa);border:1px solid #d8e4cd;border-radius:24px;box-shadow:0 20px 80px #071f3666,inset 0 2px #fff;color:var(--j-ink)}
#portrait{border-radius:22px;border:3px solid #eac781;box-shadow:0 5px 16px #21443d22}
#speaker{color:#2f6b58;background:#e3f1ea;border:1px solid #b9dccb;font-size:15px;letter-spacing:.03em}
#card{background:linear-gradient(155deg,#fffdf6,#f1f5e9);border:1px solid #f6df9d;border-radius:28px;box-shadow:0 25px 100px #061e3d66;color:var(--j-ink)}
#card h2{color:#21584e}
#modal{background:#081f3d78;backdrop-filter:blur(6px)}
.answers button,.cBtn,.dBtn{border-radius:14px;background:#e6f2eb;box-shadow:0 4px 0 #bfd5c7;color:var(--j-ink);transition:transform .14s,box-shadow .14s}
.answers button:hover,.cBtn:hover,.dBtn:hover{transform:translateY(-2px)}
.answers button.primary,.cBtn.primary,.dBtn{background:linear-gradient(140deg,#ffe7ac,#f0ca74);box-shadow:0 4px 0 #caa55c}
#journeyHud{position:absolute;left:22px;top:86px;z-index:45;width:230px;pointer-events:none;color:#fff;direction:rtl}
.j-world{font-size:12px;letter-spacing:.08em;color:#f5dea0;margin:0 0 7px}
.j-chapter{padding:14px 16px;border-radius:19px;background:linear-gradient(130deg,#123936ee,#153044e0);border:1px solid #dfedc935;box-shadow:0 10px 30px #0d252b33}
.j-chapter strong{font-size:17px;font-weight:500;display:block}.j-chapter small{display:block;font-size:12px;color:#d5e6d6;line-height:1.7;margin-top:5px}
.j-crystals{display:flex;gap:9px;margin-top:12px;direction:ltr;align-items:center}.j-crystals i{display:block;width:16px;height:22px;clip-path:polygon(50% 0,100% 30%,84% 82%,50% 100%,16% 82%,0 30%);background:linear-gradient(130deg,#648580,#294746);box-shadow:inset 0 0 6px #ffffff55}.j-crystals i.lit{background:linear-gradient(120deg,#fffad7,#83efc7 50%,#4fa9db);filter:drop-shadow(0 0 6px #bdfbe5)}
.j-crystals span{font-size:11px;margin-left:4px;color:#c6e9da}
#journeyTools{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);z-index:51;display:flex;gap:8px;padding:8px;border-radius:22px;border:1px solid #dbebc838;background:#102c37ec}
#journeyTools button{width:47px;height:45px;border:0;border-radius:14px;background:#e8f2db13;color:#fff;font-size:22px;cursor:pointer;position:relative}
#journeyTools button:hover{background:#ffffff26}#journeyTools .charged{box-shadow:inset 0 0 0 2px #f9d990,0 0 14px #ffd35d55}
#journeyTools .badge{position:absolute;right:0;top:-3px;border-radius:8px;background:#ffdfa0;color:#214345;font-size:11px;padding:2px 4px}
.j-object{position:absolute;transform:translate(-50%,-50%);z-index:10;pointer-events:none}.j-object svg{overflow:visible}.j-object.gate{filter:drop-shadow(0 0 12px #b1ffdb66)}
.j-bubble{position:absolute;z-index:19;transform:translate(-50%,-100%);background:#fff9e8;border:1px solid #ebd392;border-radius:18px 18px 4px 18px;color:#244a44;max-width:260px;padding:10px 16px;font-size:18px;text-align:center;box-shadow:0 8px 20px #16383944;pointer-events:none}
#worldTask{position:absolute;inset:0;z-index:55;pointer-events:none;display:none;direction:rtl}
.j-task-head{position:absolute;top:88px;right:24px;width:min(38vw,440px);max-height:48vh;overflow:auto;pointer-events:auto;border:1px solid #dcebb655;border-radius:20px;background:#123d3aeF;color:#fffae6;padding:18px 22px;box-shadow:0 16px 45px #061f3655}
.j-task-head h2{font-size:22px;margin:0 0 10px;color:#f6dba0}.j-task-head p{font-size:18px;line-height:1.55;margin:8px 0}.j-task-head .passage{color:#1d4445;font-size:18px;padding:12px;background:#fff9e8;border:0}
.j-task-head button{border:1px solid #f5df9933;border-radius:12px;padding:7px 10px;background:#fff8;color:#153d3c;cursor:pointer}
.j-workbench{position:absolute;left:50%;bottom:102px;transform:translateX(-50%);width:min(810px,88vw);pointer-events:auto;text-align:center}
.j-runes{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;direction:rtl;align-items:center}
.j-rune{min-width:92px;max-width:350px;min-height:76px;font-size:25px;padding:14px 22px;border-radius:22px;border:2px solid #c7f4d7;background:linear-gradient(140deg,#fffdf0f5,#d7efdbf5);box-shadow:0 8px 0 #447f76,0 13px 26px #0d2d4170;color:#214f48;cursor:pointer;touch-action:none;position:relative}
.j-rune:hover{translate:0 -5px;box-shadow:0 12px 0 #447f76,0 20px 35px #0d2d4150}.j-rune:disabled{opacity:.65}.j-rune.j-right{background:#c6ffcf;box-shadow:0 0 38px #b5ffd5;transform:scale(1.08)}
.j-machine{margin:0 auto 22px;min-height:90px;max-width:600px;border-radius:24px;background:linear-gradient(160deg,#244a4bea,#153437f0);border:2px solid #f3d797;color:#fff0cb;padding:16px;box-shadow:0 16px 45px #092e4966,inset 0 0 25px #72f5cb22;font-size:28px;direction:ltr;transition:box-shadow .25s}
.j-machine.hot{box-shadow:0 0 40px #baf9d7;border-color:#fff}.j-machine small{font-size:15px;display:block;color:#c3ddcf;direction:rtl}.j-machine .stored{display:flex;justify-content:center;gap:5px;margin-top:8px;font-size:20px;flex-wrap:wrap}
.j-task-foot{display:flex;justify-content:center;gap:8px;margin-top:16px;flex-wrap:wrap}.j-task-foot button{border:1px solid #fff5;border-radius:13px;padding:10px 17px;font-size:16px;color:#fff8db;background:#173e42ed;cursor:pointer}
#worldHint{color:#fff5cf;background:#123d3be8;display:inline-block;padding:8px 15px;border-radius:13px;margin:13px auto 0;line-height:1.5;max-width:700px;font-size:17px}#worldHint:empty{display:none}
#rewardReveal{position:absolute;inset:0;z-index:68;display:none;place-items:center;background:radial-gradient(ellipse,#0b344150,#092334d9);backdrop-filter:blur(2px);direction:rtl}
.j-reward{width:min(530px,92vw);text-align:center;color:#fff4d7;border:1px solid #f3d18d77;border-radius:32px;padding:35px;background:linear-gradient(145deg,#184e48ed,#172c43f5);box-shadow:0 0 110px #b8f7cf22,0 35px 80px #061e3566;animation:rewardIn .65s cubic-bezier(.2,1,.3,1)}
@keyframes rewardIn{from{opacity:0;transform:translateY(35px) scale(.93)}}
.j-reward .sigil{font-size:68px;filter:drop-shadow(0 0 24px #ffd987);margin-bottom:12px}.j-reward h2{font-size:30px;margin:6px 0 15px;font-weight:500}.j-reward p{line-height:1.65;font-size:18px}.j-reward .loot{display:flex;justify-content:center;gap:10px;margin:23px 0}.j-reward .loot span{background:#ffffff0e;border:1px solid #ffffff26;padding:13px;border-radius:16px}.j-reward .mystery{font-size:15px;color:#c8e1dc;border-top:1px solid #ffffff20;padding-top:17px}.j-reward button{padding:12px 22px;margin:5px;border-radius:15px;border:1px solid #ffe5ad;background:#f4d28c;color:#20413d;font-size:18px;cursor:pointer}.j-reward button.secondary{background:transparent;color:#fff0c5}
.j-category{display:flex;overflow:auto;gap:8px;margin:18px 0;padding-bottom:9px}.j-category button{white-space:nowrap;border:1px solid #c6d7c5;background:#e9f1e5;border-radius:14px;padding:10px;cursor:pointer;font-size:16px}.j-category button.on{background:#245d53;color:#fff6db}
.j-collection{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.j-item{border:1px solid #d4dfcd;border-radius:20px;background:#fffcf2;padding:18px 12px;line-height:1.5;min-height:155px;text-align:center}.j-item .icon{display:block;font-size:47px;margin:5px}.j-item small{display:block;font-size:13px;color:#60786e;margin-top:6px}.j-item.unknown .icon{filter:brightness(0);opacity:.25}.j-item.unknown{background:#e9ede3}.j-item button{margin-top:10px}
.j-letter{text-align:right;padding:20px;margin:12px 0;border:1px solid #dbcfae;border-radius:17px;background:#fffcf0}.j-letter p{font-size:18px!important}.j-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.j-stat{padding:14px;background:#e5eee0;border-radius:15px;text-align:center}.j-stat b{display:block;font-size:25px}.j-stat small{font-size:13px}
.j-accessory{position:absolute;z-index:14;pointer-events:none;transform-origin:50% 100%;filter:drop-shadow(0 4px 3px #1233)}
.j-silhouette{filter:brightness(0);opacity:.25}.j-free{animation:free-hop .55s ease-out}@keyframes free-hop{50%{translate:0 -38px}}
.j-milestone{position:absolute;width:25px;height:36px;clip-path:polygon(50% 0,100% 30%,85% 85%,50% 100%,15% 85%,0 30%);background:linear-gradient(110deg,#fffaac,#80edc5,#6caecc);filter:drop-shadow(0 0 10px #e0ff9d);z-index:9;pointer-events:none}
.j-reduced *{animation-duration:.001ms!important;transition-duration:.001ms!important}.j-reduced #sunbeams{display:none}
@media(max-width:900px){#journeyHud{top:78px;left:12px;width:190px}.j-chapter{padding:10px 12px}.j-chapter strong{font-size:15px}.j-task-head{top:78px;right:12px;width:43vw;padding:12px}.j-task-head h2{font-size:19px}.j-task-head p{font-size:16px}.j-workbench{bottom:88px}.j-rune{font-size:20px;min-height:65px;min-width:68px;padding:12px}.j-machine{margin-bottom:14px;min-height:65px;padding:10px}#journeyTools{bottom:14px}#journeyTools button{width:38px;height:38px;font-size:20px}#goal{max-width:37vw;font-size:14px;padding:8px}.roundBtn{width:42px;height:42px;font-size:19px}#hudRight,#hudLeft{gap:5px}}
@media(max-width:600px){#journeyHud{width:170px;top:118px}.j-chapter small{display:none}#hud{flex-wrap:wrap}#goal{order:3;max-width:100%;width:100%;padding:7px;font-size:13px}#journeyTools{bottom:18px;gap:3px;padding:6px}#journeyTools button{width:33px;height:36px;font-size:18px}#pad{scale:.68;transform-origin:left bottom;bottom:75px}#actionBtn{width:74px;height:74px;right:12px;bottom:92px}#worldTask .j-task-head{top:115px;right:10px;width:calc(100% - 20px);max-height:30vh;padding:12px 16px}body.j-tasking #journeyHud{display:none}.j-workbench{bottom:83px;width:94vw}.j-runes{gap:8px}.j-rune{font-size:19px;padding:10px;min-height:56px;min-width:58px;max-width:90vw}.j-task-foot{margin-top:10px}.j-task-foot button{padding:8px;font-size:14px}.j-machine{font-size:24px}#worldHint{font-size:14px}.j-reward{padding:24px}.j-reward h2{font-size:25px}.j-reward .sigil{font-size:52px}.j-collection{grid-template-columns:repeat(2,1fr)}.j-stats{grid-template-columns:1fr}.j-reward p{font-size:16px}#dialog{gap:8px;padding:12px}#dialogText{font-size:17px}}
@media(max-height:550px) and (min-width:601px){#journeyHud{top:70px;width:180px}.j-chapter small{display:none}.j-task-head{top:65px;width:34vw;max-height:38vh}.j-task-head h2{font-size:17px}.j-task-head p{font-size:14px}.j-workbench{bottom:70px;left:51%;width:72vw}.j-rune{min-height:48px;padding:8px 14px;font-size:18px}.j-machine{min-height:50px;font-size:22px;margin-bottom:10px;padding:8px}.j-task-foot{margin-top:8px}.j-task-foot button{padding:7px 12px;font-size:14px}#journeyTools{bottom:8px;padding:5px}#journeyTools button{height:34px;width:35px}#pad{scale:.7;transform-origin:left bottom}#worldHint{font-size:14px;margin-top:8px}.j-reward{padding:16px;max-width:520px}.j-reward .sigil{font-size:36px;margin:0}.j-reward h2{font-size:24px;margin:5px}.j-reward p{font-size:16px;margin:7px}.j-reward .loot{margin:12px}.j-reward .loot span{padding:8px}.j-reward .mystery{font-size:13px;padding-top:8px}}
/* Specialist surfaces (clock, mirror, payment) retain their precise manipulatives in the scene. */
#modal.j-native{background:transparent;backdrop-filter:none;place-items:end center;padding:75px 12px 82px;pointer-events:none}
#modal.j-native #card{pointer-events:auto;max-height:calc(100vh - 158px);width:min(720px,88vw);background:linear-gradient(145deg,#fffdf2f5,#e0efe5f5);box-shadow:0 12px 0 #477a6c,0 20px 60px #0a233d77}
@media(max-width:600px){#modal.j-native{padding:115px 10px 80px}#modal.j-native #card{max-height:calc(100vh - 195px);width:100%}}
img.gv-emoji{display:inline-block!important;width:1em!important;height:1em!important;vertical-align:-.16em;filter:none!important;margin:0 .035em;max-width:none;pointer-events:none}
.j-reward .loot span{animation:rewardIn .7s backwards}.j-reward .loot span:nth-child(1){animation-delay:.5s}.j-reward .loot span:nth-child(2){animation-delay:1.1s}.j-reward .loot span:nth-child(3){animation-delay:1.7s}.j-reward .mystery{animation:rewardIn 1s 2.3s backwards}

/* ===== 0.38 home multiplayer mini-games ===== */
#homeGameMenu,#homeGamePanel{position:fixed;inset:0;z-index:72;place-items:center;padding:18px;pointer-events:none}
#homeGameMenu{background:rgba(22,35,48,.2);backdrop-filter:blur(2px)}
#homeGameMenu>.hg-card,#homeGamePanel>.hg-board{pointer-events:auto;width:min(92vw,760px);border:2px solid rgba(255,255,255,.8);box-shadow:0 18px 55px #20384a55,0 2px 0 #fff8 inset;color:#18394a}
#homeGameMenu>.hg-card{position:relative;background:rgba(255,251,237,.96);border-radius:28px;padding:24px;text-align:center}
.hg-x{border:0;background:#ffffffc9;color:#375267;width:38px;height:38px;border-radius:50%;font-size:28px;line-height:34px;cursor:pointer;box-shadow:0 4px 14px #2334;position:absolute;left:16px;top:14px}
.hg-kicker{font-size:14px;font-weight:800;letter-spacing:.03em;color:#6b7d66}.hg-card h2,.hg-board h2{margin:4px 0 7px;font-size:28px}.hg-card p{font-size:17px;margin:0 auto 16px;max-width:600px}
.hg-decks{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.hg-deck{border:0;border-radius:20px;padding:14px 8px;background:#f3ead4;box-shadow:0 5px 0 #d2c5a7;cursor:pointer;color:#17384c;font-family:inherit}.hg-deck:hover{transform:translateY(-1px)}.hg-deck b{display:block;font-size:18px}.hg-deck span{display:block;font-size:28px;font-weight:900;margin:5px}.hg-deck small{display:block;font-size:12px;opacity:.7}.hg-note{display:block;margin-top:14px;opacity:.7}
#homeGamePanel{background:transparent;align-items:end;padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
#homeGamePanel>.hg-board{position:relative;background:linear-gradient(180deg,rgba(255,251,235,.97),rgba(238,248,240,.97));border-radius:30px;padding:16px 18px 18px;max-height:calc(100vh - 115px);overflow:auto}
.hg-top{display:flex;justify-content:space-between;align-items:flex-start;text-align:right}.hg-top .hg-x{position:static;flex:0 0 auto}.hg-players{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;margin:8px 0 10px}.hg-player{background:#fff;border:2px solid #dbe7df;border-radius:14px;padding:6px 11px;min-width:92px;text-align:center;transition:.2s}.hg-player b,.hg-player span{display:block}.hg-player span{font-size:12px;opacity:.7}.hg-player.turn{border-color:#e4b84d;box-shadow:0 0 0 4px #ffe9a3}.hg-player.me b:after{content:' · אני';font-size:11px;opacity:.55}
.hg-message{text-align:center;font-weight:800;color:#806431;min-height:23px;margin:2px 0 8px}.hg-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;max-width:680px;margin:auto;direction:ltr}.hg-memory-card{position:relative;aspect-ratio:4/5;border:0;border-radius:16px;background:linear-gradient(145deg,#345c75,#1f3f58);box-shadow:0 5px 0 #142c3e,0 9px 16px #2235;cursor:pointer;transform-style:preserve-3d;transition:transform .28s,opacity .25s;font-family:inherit}.hg-memory-card:not(:disabled):active{transform:translateY(2px)}.hg-memory-card .hg-back,.hg-memory-card .hg-front{position:absolute;inset:0;display:grid;place-items:center;border-radius:16px;backface-visibility:hidden}.hg-memory-card .hg-back{font-size:34px;color:#f7dd91;text-shadow:0 0 16px #fff8}.hg-memory-card .hg-front{background:#fff9e8;color:#17384a;transform:rotateY(180deg);padding:4px;text-align:center;overflow:hidden}.hg-memory-card.open{transform:rotateY(180deg)}.hg-memory-card.matched{opacity:.64;box-shadow:0 0 0 3px #8ad29b,0 0 18px #82d990aa}.hg-memory-card:disabled{cursor:default}.hg-value{font-size:clamp(18px,3.4vw,31px);font-weight:900;direction:rtl}.hg-value.letter{font-family:Arial,sans-serif;font-size:clamp(27px,5vw,46px);direction:ltr}.hg-dots{display:grid;grid-template-columns:repeat(3,12px);gap:5px;justify-content:center}.hg-dots i{width:12px;height:12px;border-radius:50%;background:#3f78a1;box-shadow:0 1px 0 #fff inset}.hg-tip{text-align:center;font-size:14px;opacity:.7;margin-top:10px}.hg-finish{text-align:center;background:#fff8;border-radius:18px;padding:10px;margin-top:10px}.hg-finish>b{font-size:19px;display:block;margin-bottom:8px}.hg-finish>div{display:flex;gap:7px;justify-content:center;flex-wrap:wrap}

.hg-game-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}.hg-game-choice{border:0;border-radius:22px;padding:16px 14px;background:linear-gradient(145deg,#f5edda,#e4f0e5);box-shadow:0 6px 0 #c8d4c7,0 10px 20px #2342;cursor:pointer;color:#17384c;font-family:inherit;text-align:center}.hg-game-choice:hover{transform:translateY(-1px)}.hg-game-choice b{display:block;font-size:20px;margin:4px 0}.hg-game-choice small{display:block;font-size:13px;line-height:1.45;opacity:.72}.hg-game-icon{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 6px;border-radius:50%;background:#fff9;color:#c79535;font-size:30px;box-shadow:0 3px 12px #2632}.hg-back-menu{position:absolute;right:16px;top:16px;border:0;background:#fff8;border-radius:16px;padding:7px 10px;font-family:inherit;font-weight:800;color:#43616d;cursor:pointer}.hg-number-board{max-width:700px!important}.hg-number-stage{display:flex;align-items:center;justify-content:center;gap:15px;margin:12px auto 10px}.hg-number-orb,.hg-number-target{width:132px;aspect-ratio:1;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:0 8px 18px #2233,0 2px 0 #fff9 inset}.hg-number-orb{background:radial-gradient(circle at 35% 28%,#fffdf4,#cde9d8 62%,#83b69c)}.hg-number-target{background:radial-gradient(circle at 35% 28%,#fffbe7,#f4d985 62%,#d69e39)}.hg-number-orb small,.hg-number-target small{font-size:12px;font-weight:800;opacity:.67}.hg-number-orb strong,.hg-number-target strong{font-size:48px;line-height:1;color:#214b59}.hg-number-arrow{font-size:34px;color:#9a7a34;font-weight:900}.hg-number-track{height:14px;background:#dbe7dd;border-radius:999px;overflow:hidden;max-width:500px;margin:8px auto 12px;box-shadow:0 2px 5px #2342 inset}.hg-number-track i{display:block;height:100%;background:linear-gradient(90deg,#7ec594,#edcb65);border-radius:999px;transition:width .28s ease}.hg-number-actions{margin-top:10px}.hg-number-buttons{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:9px}.hg-number-move{min-width:92px;border:0;border-radius:20px;padding:13px 18px;font:900 26px/1 inherit;color:#fff;background:linear-gradient(145deg,#467ba0,#285974);box-shadow:0 5px 0 #1d4258,0 8px 16px #2343;cursor:pointer}.hg-number-move:not(:disabled):active{transform:translateY(3px);box-shadow:0 2px 0 #1d4258}.hg-number-move:disabled{opacity:.33;cursor:default}.hg-number-board .hg-message{background:#fff9;border-radius:14px;padding:6px 10px;max-width:560px;margin:7px auto}.hg-number-board .hg-tip{font-size:16px;font-weight:700;opacity:.78}
#visitPlay{font-size:15px;padding:8px 12px}
@media(max-width:650px){.hg-game-list{grid-template-columns:1fr}.hg-decks{grid-template-columns:1fr}.hg-grid{grid-template-columns:repeat(4,1fr);gap:6px}.hg-card h2,.hg-board h2{font-size:23px}.hg-memory-card{border-radius:13px}.hg-memory-card .hg-front,.hg-memory-card .hg-back{border-radius:13px}.hg-player{min-width:72px;padding:4px 7px}.hg-player b{font-size:13px}#homeGamePanel>.hg-board{padding:12px}.hg-dots{grid-template-columns:repeat(3,9px);gap:4px}.hg-dots i{width:9px;height:9px}.hg-number-orb,.hg-number-target{width:100px}.hg-number-orb strong,.hg-number-target strong{font-size:38px}.hg-number-arrow{font-size:27px}.hg-number-move{min-width:76px;padding:11px 14px;font-size:22px}.hg-back-menu{right:10px;top:10px;font-size:12px}}

/* ===== 0.40 home games: five additional shared games ===== */
.hg-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:620px;margin:12px auto}
.hg-story-board,.hg-build-board,.hg-cafe-board,.hg-who-board,.hg-puzzle-board{max-width:760px!important}
.hg-story-strip{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:10px auto;max-width:680px}
.hg-story-strip span{background:#fff8;border:2px solid #e7dcc0;border-radius:15px;padding:7px 10px;min-width:110px;text-align:center}.hg-story-strip small,.hg-story-strip b{display:block}.hg-story-strip small{font-size:10px;opacity:.5}.hg-story-stage h3{margin:10px 0 4px;text-align:center}.hg-story-option,.hg-who-answer{border:0;border-radius:18px;padding:13px 10px;background:#f6ead0;box-shadow:0 4px 0 #d5c59f;font:800 17px/1.25 inherit;color:#23465a;cursor:pointer}.hg-story-option:disabled,.hg-who-answer:disabled{opacity:.45;cursor:default}.hg-story-result{max-width:620px;margin:16px auto;background:#fff9e8;border:2px solid #e3cf96;border-radius:22px;padding:18px;font-size:20px;line-height:1.65;text-align:right;box-shadow:0 8px 20px #2342}
.hg-shape-needs{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:10px}.hg-shape-need{background:#fff8;border:2px solid #d9e4db;border-radius:16px;padding:8px 12px;min-width:105px;text-align:center}.hg-shape-need i,.hg-shape-need b,.hg-shape-need span{display:block}.hg-shape-need i{font-style:normal;font-size:30px}.hg-shape-need span{font-size:12px;opacity:.65}.hg-build-stage{min-height:210px;display:flex;flex-direction:column-reverse;align-items:center;justify-content:flex-start;gap:2px;padding:16px;background:linear-gradient(#eaf7ff,#f2e3b8);border-radius:22px;box-shadow:0 4px 12px #2342 inset;margin:10px auto;max-width:520px;overflow:hidden}.hg-built-piece{font-style:normal;font-size:36px;line-height:.78;text-shadow:0 3px 3px #2343}.hg-empty-build{opacity:.55;margin:auto}.hg-shape-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin:12px}.hg-shape-btn{border:0;border-radius:20px;padding:10px 18px;min-width:105px;background:#fff;box-shadow:0 5px 0 #c8d6da;font:900 31px/1 inherit;cursor:pointer}.hg-shape-btn small{display:block;font-size:12px;margin-top:7px}.hg-shape-btn:disabled{opacity:.35;cursor:default}.shape-square{color:#4579c7}.shape-triangle{color:#e1a43b}.shape-circle{color:#66a96f}
.hg-role-line{text-align:center;margin:8px auto;background:#eef5ee;border-radius:13px;padding:7px 12px;max-width:560px}.hg-order-ticket{display:flex;align-items:center;gap:18px;max-width:560px;margin:12px auto;background:#fff9df;border:2px dashed #d5a85a;border-radius:20px;padding:16px;text-align:right}.hg-food{font-size:58px;flex:0 0 auto}.hg-order-ticket b,.hg-order-ticket small,.hg-order-ticket strong{display:block}.hg-order-ticket b{font-size:19px}.hg-order-ticket small{margin:4px 0;opacity:.7}.hg-order-ticket strong{font-size:17px;color:#8a5e18}.hg-cafe-options{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.hg-cafe-answer{border:0;border-radius:20px;background:#5d8b75;color:white;padding:13px 18px;min-width:105px;font:900 22px/1 inherit;box-shadow:0 5px 0 #3d6653;cursor:pointer}.hg-cafe-answer:disabled{opacity:.35;cursor:default}
.hg-mystery-card{max-width:560px;margin:12px auto;background:linear-gradient(145deg,#253f67,#442e69);color:white;border-radius:24px;padding:16px 20px;text-align:right;box-shadow:0 8px 22px #2235}.hg-mystery-card>span{float:left;width:62px;height:62px;border-radius:50%;display:grid;place-items:center;background:#fff2;color:#ffe08a;font:900 42px/1 inherit;margin:0 0 8px 14px}.hg-mystery-card p{margin:8px 0;font-size:17px;line-height:1.45}.hg-who-board .hg-choice-grid{clear:both}
.hg-puzzle-hint{text-align:center;font-size:17px;font-weight:800;margin:8px auto;color:#5f6e5d}.hg-puzzle-line{min-height:74px;display:flex;gap:7px;align-items:center;justify-content:center;flex-wrap:wrap;background:#fff8;border-radius:18px;padding:10px;margin:10px auto;max-width:680px}.hg-puzzle-line em{opacity:.5}.hg-puzzle-pool{display:flex;gap:9px;justify-content:center;flex-wrap:wrap;max-width:680px;margin:10px auto}.hg-puzzle-piece{border:0;border-radius:16px;padding:11px 15px;background:#e7eff6;color:#24485d;box-shadow:0 4px 0 #b7cad6;font:800 17px/1.2 inherit;cursor:pointer}.hg-puzzle-piece.placed{background:#dff1d8;box-shadow:0 3px 0 #a9c9a0}.hg-puzzle-piece:disabled{opacity:.26;cursor:default}
@media(max-width:650px){.hg-choice-grid{grid-template-columns:1fr}.hg-order-ticket{gap:10px;padding:12px}.hg-food{font-size:44px}.hg-build-stage{min-height:165px}.hg-story-result{font-size:17px}.hg-game-choice{padding:12px 10px}.hg-game-icon{width:44px;height:44px;font-size:25px}}

/* ===== 0.41 just-for-fun shared home games ===== */
.hg-fun-board{max-width:760px!important}
.hg-ready-row,.hg-vote-row{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:10px auto}
.hg-ready,.hg-vote-dot{border:2px solid #d9e3dc;background:#fff9;border-radius:14px;padding:7px 11px;min-width:92px;text-align:center}
.hg-ready b,.hg-ready span{display:block}.hg-ready span{font-size:12px;opacity:.6}.hg-ready.yes,.hg-vote-dot.yes{border-color:#d7b65d;box-shadow:0 0 0 3px #ffe9a355}
.hg-rps-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:560px;margin:16px auto}.hg-rps-btn{border:0;border-radius:22px;padding:18px 10px;background:#fff9e8;box-shadow:0 6px 0 #d5c49b;font-family:inherit;color:#294b58;cursor:pointer}.hg-rps-btn b{display:block;font-size:44px;line-height:1}.hg-rps-btn span{display:block;font-weight:900;font-size:18px;margin-top:7px}.hg-rps-btn:disabled{opacity:.4;cursor:default}
.hg-fun-result{max-width:620px;margin:12px auto;padding:14px 16px;border-radius:18px;background:#fff4cf;border:2px solid #e2c36e;font-size:19px;font-weight:900;text-align:center}
.hg-wyr-grid{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;max-width:650px;margin:18px auto}.hg-wyr-grid button{border:0;border-radius:22px;padding:20px 14px;min-height:100px;background:#edf2ff;box-shadow:0 6px 0 #bdcbe7;font:900 19px/1.35 inherit;color:#2e4561;cursor:pointer}.hg-wyr-grid button+span{font-weight:900;color:#887548}.hg-wyr-grid button:disabled{opacity:.45;cursor:default}
.hg-wheel{width:120px;height:120px;border-radius:50%;margin:12px auto;display:grid;place-items:center;font-size:74px;background:radial-gradient(circle,#fff7cd,#e6c972);box-shadow:0 8px 0 #b99b4f,0 12px 24px #2343}.hg-big-fun{display:block;margin:14px auto;border:0;border-radius:22px;padding:14px 24px;background:#365f75;color:#fff;font:900 20px/1 inherit;box-shadow:0 5px 0 #244759;cursor:pointer}.hg-big-fun:disabled{opacity:.4;cursor:default}.hg-challenge{max-width:590px;margin:12px auto;background:#fff9e8;border:2px dashed #d7b65d;border-radius:22px;padding:17px;text-align:center}.hg-challenge small,.hg-challenge strong{display:block}.hg-challenge small{opacity:.6;margin-bottom:6px}.hg-challenge strong{font-size:22px}
.hg-box-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:650px;margin:15px auto}.hg-box{min-height:105px;border:0;border-radius:18px;background:linear-gradient(#d8e8f0,#acc9d6);box-shadow:0 6px 0 #789cab;color:#244554;font-family:inherit;cursor:pointer;padding:8px}.hg-box b,.hg-box small{display:block}.hg-box b{font-size:28px}.hg-box small{font-size:11px;opacity:.65;margin-top:5px}.hg-box.open{background:linear-gradient(#fff2c9,#e7cf85);box-shadow:0 5px 0 #bba05b}.hg-box.open b{font-size:15px;line-height:1.25}.hg-box:disabled{cursor:default}
.hg-dance-seq{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;max-width:680px;min-height:70px;margin:12px auto;padding:12px;background:#fff8;border-radius:18px}.hg-dance-seq span{background:#e7f0ef;border:2px solid #c6dbd6;border-radius:14px;padding:8px 11px;font-weight:900}.hg-dance-seq span small{display:block;font-size:10px;opacity:.5}.hg-dance-seq em{opacity:.5;margin:auto}.hg-dance-btn{border:0;border-radius:18px;padding:13px 10px;background:#f4e8d3;box-shadow:0 4px 0 #d1bfa0;font:800 17px/1.25 inherit;color:#2b4d59;cursor:pointer}.hg-dance-btn:disabled{opacity:.4;cursor:default}
@media(max-width:650px){.hg-rps-actions{grid-template-columns:repeat(3,1fr);gap:6px}.hg-rps-btn{padding:12px 6px}.hg-rps-btn b{font-size:34px}.hg-rps-btn span{font-size:14px}.hg-wyr-grid{grid-template-columns:1fr;gap:8px}.hg-wyr-grid>span{display:none}.hg-box-grid{grid-template-columns:repeat(3,1fr)}.hg-wheel{width:95px;height:95px;font-size:58px}}

/* illustrated icons are richer than flat emoji: a touch larger so the detail reads */
img.gv-emoji[src*="assets/icons/"]{width:1.22em!important;height:1.22em!important;vertical-align:-.27em;margin:0 .05em}

/* ===== 0.96 classic board games (ICQ style) ===== */
.hg-classic .hg-players{flex-wrap:wrap}
.hg-classic .hg-message{margin:8px auto}
.hg-classic button:disabled{cursor:default}
/* X-O */
.hg-ttt{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:min(78vw,330px);margin:12px auto;padding:10px;background:#2b4d66;border-radius:22px;box-shadow:inset 0 3px 10px #0004}
.hg-ttt-cell{aspect-ratio:1;border:0;border-radius:14px;background:#fffdf5;font-size:min(16vw,68px);font-weight:900;line-height:1;cursor:pointer;color:#2b4d66;display:grid;place-items:center;box-shadow:0 4px 0 #d9cfae}
.hg-ttt-cell:not(:disabled):hover{background:#fff4c9}
.hg-ttt-cell.mX{color:#e4572e}.hg-ttt-cell.mO{color:#2e86de}
.hg-ttt-cell.win{background:#ffe066;animation:hgPop .5s}
/* Connect Four */
.hg-c4{width:min(86vw,420px);margin:10px auto}
.hg-c4-heads{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin-bottom:4px}
.hg-c4-drop{border:0;border-radius:10px;background:#ffffffaa;color:#2e5c8a;font-size:16px;padding:4px 0;cursor:pointer}
.hg-c4-drop:disabled{opacity:.25}
.hg-c4-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;padding:8px;background:#2e6fd0;border-radius:18px;box-shadow:inset 0 -6px 0 #1f4f9a}
.hg-c4-cell{aspect-ratio:1;border:0;border-radius:50%;background:#eaf3ff;box-shadow:inset 0 3px 6px #0003;cursor:pointer;padding:0}
.hg-c4-cell.mR{background:radial-gradient(circle at 35% 30%,#ff8a7a,#e0332a);box-shadow:inset 0 -3px 0 #a5211b}
.hg-c4-cell.mY{background:radial-gradient(circle at 35% 30%,#fff3a0,#f6c315);box-shadow:inset 0 -3px 0 #c4950a}
.hg-c4-cell.last{outline:3px solid #fff;outline-offset:-3px}
.hg-c4-cell.win{animation:hgPulse .9s infinite alternate}
/* Battleship */
.hg-bs-wrap{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin:8px 0}
.hg-bs-board{background:#e7f4ff;border-radius:18px;padding:8px}
.hg-bs-label{font-weight:800;font-size:15px;margin:2px 0 6px;color:#2b4d66}
.hg-bs-grid{display:grid;grid-template-columns:18px repeat(6,var(--bs,30px));gap:3px;align-items:center;justify-content:center}
.hg-bs-board.big .hg-bs-grid{--bs:min(11vw,46px)}
.hg-bs-h{font-weight:800;font-size:13px;color:#4a6a83;text-align:center}
.hg-bs-cell{width:var(--bs,30px);height:var(--bs,30px);border:0;border-radius:7px;background:#9fd3f5;display:grid;place-items:center;font-size:calc(var(--bs,30px)*.55);padding:0}
button.hg-bs-cell{cursor:pointer;background:#7cc3ef}
button.hg-bs-cell:hover{background:#ffe066}
.hg-bs-cell.ship{background:#6b7f8e}
.hg-bs-cell.hit{background:#ffb4a2}
.hg-bs-cell.ship.hit{background:#e4572e}
.hg-bs-cell.miss{background:#d8ecfa}
/* Checkers */
.hg-ck{display:grid;grid-template-columns:repeat(8,1fr);width:min(84vw,420px);margin:10px auto;border:6px solid #7a4b2a;border-radius:10px;overflow:hidden;box-shadow:0 8px 20px #0003}
.hg-ck-sq{aspect-ratio:1;display:grid;place-items:center;border:0;padding:0;position:relative}
.hg-ck-sq.light{background:#f3dfb8}.hg-ck-sq.dark{background:#a86b3c}
button.hg-ck-sq{cursor:pointer}
.hg-ck-sq.sel{background:#d9a441}
.hg-ck-sq.target::after{content:'';width:34%;height:34%;border-radius:50%;background:#ffe066;box-shadow:0 0 0 3px #fff8;position:absolute}
.hg-ck-sq.last{box-shadow:inset 0 0 0 3px #ffe06699}
.hg-ck-p{width:76%;height:76%;border-radius:50%;display:grid;place-items:center;font-size:min(4.2vw,20px);box-shadow:inset 0 -4px 0 #0003,0 2px 4px #0005}
.hg-ck-p.red{background:radial-gradient(circle at 35% 30%,#ff8a7a,#d8342b)}
.hg-ck-p.blue{background:radial-gradient(circle at 35% 30%,#8cc4ff,#2463c7)}
/* Dots & Boxes */
.hg-db{display:grid;width:min(82vw,380px);aspect-ratio:1;margin:12px auto;align-items:stretch;justify-items:stretch}
.hg-db-dot{width:14px;height:14px;border-radius:50%;background:#2b4d66;z-index:2;pointer-events:none}
.hg-db-box{display:grid;place-items:center;font-weight:900;font-size:min(7vw,30px);border-radius:6px}
.hg-db-line{border:0;padding:0;background:transparent;position:relative;cursor:pointer;z-index:1;-webkit-tap-highlight-color:transparent}
.hg-db-line.h{margin:-11px 3px}.hg-db-line.v{margin:3px -11px}
.hg-db-line::after{content:'';position:absolute;border-radius:6px;background:#2b4d6622}
.hg-db-line.h::after{left:-5px;right:-5px;top:calc(50% - 4px);height:8px}
.hg-db-line.v::after{top:-5px;bottom:-5px;left:calc(50% - 4px);width:8px}
button.hg-db-line:not(:disabled):hover::after{background:var(--lc);opacity:.55}
.hg-db-line.on::after{background:var(--lc)}
.hg-db-line.last::after{box-shadow:0 0 0 3px #ffe066}
.hg-db-sw{display:inline-block;width:12px;height:12px;border-radius:50%;margin-inline-end:5px;vertical-align:-1px}
@keyframes hgPop{0%{transform:scale(.8)}60%{transform:scale(1.08)}100%{transform:scale(1)}}
@keyframes hgPulse{from{filter:brightness(1)}to{filter:brightness(1.35) drop-shadow(0 0 6px #fff)}}
@media(max-width:650px){.hg-bs-wrap{gap:6px;margin:4px 0}.hg-bs-board{padding:6px}.hg-bs-grid{grid-template-columns:14px repeat(6,var(--bs,22px));gap:2px}.hg-bs-board.big .hg-bs-grid{--bs:min(9.6vw,40px)}.hg-bs-board:not(.big) .hg-bs-grid{--bs:20px}.hg-bs-board:not(.big) .hg-bs-h{font-size:10px}.hg-bs-label{font-size:13px;margin-bottom:3px}.hg-classic .hg-message{margin:4px auto}}
/* 0.96: the games menu scrolls and is more compact (17 games) */
#homeGameMenu{padding:12px}
#homeGameMenu>.hg-card{box-sizing:border-box;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:20px 18px}
#homeGameMenu .hg-x{position:sticky;top:0;float:left;z-index:2}
.hg-game-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 12px}
.hg-game-choice{padding:12px 10px;border-radius:18px;box-shadow:0 5px 0 #c8d4c7,0 8px 16px #2342}
.hg-game-icon{width:42px;height:42px;font-size:23px;margin-bottom:4px}
.hg-game-choice b{font-size:17px;margin:2px 0}
.hg-game-choice small{font-size:12px;line-height:1.35}
.hg-game-choice.classic{background:linear-gradient(145deg,#e3eef8,#f3ecd9)}
.hg-game-choice.classic .hg-game-icon{background:#2b4d66;color:#ffe066}
.hg-group-title{font-weight:900;font-size:16px;color:#806431;text-align:right;margin:12px 4px 0}
@media(max-width:650px){.hg-game-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hg-game-choice{padding:10px 6px}.hg-game-choice b{font-size:15px}.hg-game-choice small{font-size:11px}#homeGameMenu>.hg-card{padding:16px 12px}}
