/* Original emerald/ivory identity, scoped so the playing table is untouched. */
#hokm .home-screen:not(.has-table){background:radial-gradient(ellipse at 70% 28%,#164a3c88,transparent 58%),#091e1c;min-height:var(--app-height,100dvh);color:#f8f0dc;isolation:isolate}
#hokm .home-screen:not(.has-table) .hk-header{height:0;padding:0;border:0}#hokm .home-screen:not(.has-table) .hk-header strong{display:none}#hokm .home-screen:not(.has-table) #connection{position:absolute;top:4px;left:14px;font-size:9px;color:#b2c6ba}
#hokm .home-screen:not(.has-table) #gate{padding:24px 20px 12px;display:flex;flex-direction:column;min-height:var(--app-height,100dvh);gap:12px}
.home-user{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0 10px;border-bottom:1px solid #a9bb9a24}.home-person{display:flex;align-items:center;gap:9px;min-width:0}.home-person>div{min-width:0;display:flex;flex-direction:column;gap:4px}.home-person small{font-size:10px;color:#9eb7ac}.home-person b{font-size:13px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:180px}.home-avatar{position:relative;display:grid;place-items:center;width:38px;height:38px;flex:none;overflow:hidden;border-radius:50%;border:1px solid #94cbb5;background:#174638;font-size:20px}.home-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.home-access{flex:none;font-size:9px;border:1px solid #b4a77955;border-radius:20px;padding:6px 9px;color:#decba2;background:#183a2f}
.home-hero{text-align:center;padding:10px 0 8px}.home-brand{width:170px;height:115px;position:relative;margin:auto;display:grid;place-items:center}.home-brand:before{content:'';position:absolute;width:118px;height:118px;border:1px solid #c0d5b720;border-radius:50%;transform:rotate(-25deg)}.home-brand img{width:84px;height:84px;border-radius:21px;box-shadow:0 7px 18px #0004;position:relative}.home-orbit{font:23px Georgia,serif;position:absolute;color:#bbd5c0}.orbit-a{left:8px;top:20px;rotate:-20deg}.orbit-b{right:12px;top:8px;color:#d97b77;rotate:18deg}.orbit-c{right:6px;bottom:12px;color:#7dbaa6;rotate:-15deg}.orbit-d{left:18px;bottom:2px;color:#d3ad64;rotate:14deg}#hokm p.home-eyebrow{font-size:10px;letter-spacing:1px;color:#b6cbbd;margin:5px 0}#hokm #home-title{font-size:37px;line-height:1.4;margin:0;font-weight:800;color:#fff6de}#hokm p.home-tagline{font-size:15px;margin:4px 0 0;color:#dcc495}
.home-games{display:grid;gap:12px}#hokm #gate .home-game{width:100%;position:relative;display:flex;align-items:center;text-align:right;overflow:hidden;min-height:118px;padding:20px 18px;border-radius:19px;border:1px solid #93bfa365;background:linear-gradient(125deg,#12382f,#255444);box-shadow:inset 0 1px 0 #dae7c92c,0 7px 16px #0002;color:#fff4db}.home-game-label{display:flex;flex-direction:column;gap:7px;position:relative;z-index:1}.home-game-label small{font-size:10px;color:#c6d6bd}.home-game-label b{font-size:23px;letter-spacing:-.5px}.home-game-label>span{font-size:10px;color:#c6d6bd}.home-go{position:absolute;left:16px;bottom:12px;font:22px Arial;color:#dfd3af}.home-card-art{width:90px;height:82px;position:absolute;left:15px;top:12px;direction:ltr}.home-card-art i{position:absolute;width:37px;height:60px;border-radius:5px;background:#fcf3dc;color:#1a3731;box-shadow:0 2px 4px #0006;border:1px solid #fff6da;top:10px;font:bold 14px Georgia;font-style:normal;padding:4px}.home-card-art i span{display:block;font-size:18px;line-height:22px}.home-card-art i:nth-child(1){left:0;transform:rotate(-22deg)}.home-card-art i:nth-child(2){left:16px;top:3px;transform:rotate(-6deg);color:#b7394c}.home-card-art i:nth-child(3){left:32px;top:3px;transform:rotate(9deg)}.home-card-art i:nth-child(4){left:48px;transform:rotate(24deg);color:#b7394c}
#hokm #gate .home-two{background:linear-gradient(120deg,#eadbb7,#f5e9cf);color:#213d35;border-color:#f2ddb0;min-height:108px}.home-two .home-game-label small,.home-two .home-game-label>span{color:#5f7062}.home-two .home-go{color:#526951}.home-duel-art{position:absolute;left:24px;top:17px;width:66px;height:65px;direction:ltr}.home-duel-art i{position:absolute;display:grid;place-items:center;width:37px;height:55px;background:#fffaec;border:1px solid #cabf9f;border-radius:6px;font:28px Georgia;transform:rotate(-12deg);box-shadow:0 2px 5px #4d3e2524}.home-duel-art i:last-child{left:25px;top:4px;transform:rotate(14deg);color:#b7394c}
#hokm p.home-guide{font-size:10px;text-align:center;color:#a9c0b5;margin:2px 0}.home-nav{display:flex;justify-content:center;gap:8px;border-top:1px solid #a9bb9a24;padding-top:12px;margin-top:auto}#hokm #gate .home-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;flex:1;min-height:60px;border-radius:12px;background:#102e27;border:1px solid #a1b69b30;color:#ded7bd;font-size:10px;padding:5px}.home-nav button span{font:21px Georgia;color:#cdb887}.home-footer{display:flex;justify-content:center;align-items:center;gap:12px;font-size:11px;color:#bea777;padding:7px}.home-footer span{font-size:9px;color:#90a99b}#hokm .home-panel h2{font-size:13px;margin:0 0 8px;color:#e6d1a5}.home-panel{border:1px solid #b8b48c44;border-radius:12px;background:#12332b;padding:12px}.home-stats{display:flex;gap:20px}.home-stats span{display:flex;flex-direction:column;gap:4px;font-size:10px;color:#bfd5c8}.home-stats b{font-size:22px;color:#f4dfb3}#hokm .home-panel p{font-size:9px;color:#b9c6b8;margin-bottom:0}
@media(max-height:700px){#hokm .home-screen:not(.has-table) #gate{padding:18px 15px 6px;gap:8px}.home-hero{padding:0}.home-brand{height:81px;width:148px}.home-brand img{width:60px;height:60px;border-radius:16px}.home-brand:before{width:85px;height:85px}#hokm #home-title{font-size:29px}#hokm p.home-tagline{font-size:13px}#hokm #gate .home-game{min-height:98px;padding:13px 15px}.home-game-label b{font-size:20px}.home-game-label{gap:5px}.home-footer{padding:2px}.home-nav{padding-top:8px}}
@media(max-width:350px){.home-person b{max-width:130px}.home-card-art{left:8px;transform:scale(.85);transform-origin:left top}.home-game-label b{font-size:19px}.home-game-label>span{max-width:165px;font-size:9px}.home-duel-art{left:13px}.home-access{font-size:8px}}
/* Compact first screen on short phones; expanded account panels may scroll normally. */
@media(max-height:600px){#hokm .home-screen:not(.has-table) #gate{padding:12px 15px 5px;gap:6px}.home-user{padding:4px 0 7px}.home-brand{height:64px}.home-brand img{width:50px;height:50px;border-radius:13px}.home-brand:before{width:65px;height:65px}.home-orbit{font-size:18px}#hokm #home-title{font-size:26px}#hokm p.home-eyebrow{margin:2px 0}#hokm p.home-tagline{margin:1px 0}#hokm #gate .home-game{min-height:86px}.home-games{gap:9px}#hokm #gate .home-nav button{min-height:52px}.home-nav{padding-top:6px}}

/* Exactly one resume action; no carousel or per-room buttons. */
#hokm #gate .home-return{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;padding:8px 12px;border:1px solid #b9a575;border-radius:12px;background:#173d31;color:#f0ddb2;font-size:13px;font-weight:700}
#hokm #gate .home-return:disabled{background:#122a25;border-color:#6b7c7055;color:#84998c;cursor:default}
@media(max-height:600px){.home-screen #gate:has(.home-return) .home-eyebrow{display:none}}
