/* 2026-11-17: the game sites' current entry screen (UI78 buttons, 2026-11-14, and the
   trailer background, 2026-11-16) applied to the Tamerra hub, which has a fourth
   "choose your edition" button. */

/* UI78 title-screen look, as on the game sites (entry78.css). */
body{--entry78-ink:#37464b;--entry78-coral:#f17b6c;--entry78-paper:#fffdf3}
body .game-button{border:3px solid #fffdf5;border-radius:40px;background:linear-gradient(180deg,#fffef9,#f6f5e9);color:var(--entry78-ink);box-shadow:0 3px 0 #6d827d55,0 7px 18px #214e3626;min-height:56px;padding:12px 22px;font-weight:600;text-shadow:none;transition:transform .16s ease,box-shadow .16s ease,background .16s ease;position:relative}
body .game-button.primary{background:linear-gradient(180deg,#ffe991,#ffdb67);border-color:#fffbe1;color:#3e453f;box-shadow:0 0 0 2px #edbb52,0 4px 0 #9c8d4955,0 8px 20px #214e3626}
body .game-button.google{border:3px solid #fffdf5;border-radius:40px;background:linear-gradient(180deg,#fffef9,#f6f5e9);color:var(--entry78-ink);box-shadow:0 3px 0 #6d827d55,0 7px 18px #214e3626}
body .game-button:hover{transform:translateY(-2px);box-shadow:0 0 0 2px #f18b76,0 5px 0 #6d827d44,0 10px 22px #214e3630}
body .game-button:active{transform:translateY(1px);box-shadow:0 1px 0 #6d827d44}
body .game-button:focus-visible{outline:3px solid #f27668;outline-offset:5px}
body .game-button .action-arrow{width:20px;height:20px;margin-inline-start:auto;color:#788b80;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body .game-button>svg:not(.google-mark):not(.action-arrow){color:#78968c;width:24px;height:24px}
body .hub-google-login>svg{width:22px;height:22px}
body .game-button .ball-icon{width:28px;height:28px;flex-shrink:0;border:2px solid #596968;background:linear-gradient(#f68a75 0 45%,#596968 45% 54%,#fffdf1 54%);box-shadow:inset 0 1px 0 #fff8}
body .game-button .ball-icon::before,body .game-button .ball-icon::after{border-color:#596968}
body .start-button strong{font-family:inherit;font-size:18px;font-weight:700;line-height:1.3}
body .start-button small{font-family:inherit;font-size:11px;font-weight:400;line-height:1.45;color:#67705d;margin-top:3px}
body .edition-button{border:2px solid #fffdf5;border-radius:26px;background:#fffdf3f2;color:var(--entry78-ink);box-shadow:0 2px 0 #6d827d40;padding:9px 15px;min-height:44px}
body .brand img{max-height:100%;object-fit:contain;filter:drop-shadow(0 3px 1px #ffffff55) drop-shadow(0 5px 8px #16485924)}
body .footer{background:transparent}
body .download-button{border:1px solid #ffffffe0;border-radius:24px;background:#ffffffe8;box-shadow:none;color:var(--entry78-ink)}
html[dir=rtl] .action-arrow{transform:scaleX(-1)}

/* Full-screen trailer behind the entry controls (trailer-background-20261116). */
body.meadow-login .pkw-entry-trailer{position:fixed;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none;background:#102c35}
body.meadow-login .scene-shade{z-index:1;pointer-events:none;background:linear-gradient(180deg,#071b314d 0%,#071b3100 30%,#071b3114 56%,#071b31b3 100%)}
body.meadow-login .entry{position:relative;z-index:2}
body.meadow-login .top-bar,body.meadow-login .footer{z-index:3}
body.meadow-login .brand{filter:drop-shadow(0 3px 12px #071b3166)}
body.meadow-login .home-caption{color:#fff;text-shadow:0 2px 5px #061321}
body.meadow-login .pkw-trailer-controls{position:fixed;z-index:4;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));display:flex;align-items:center;gap:6px;direction:inherit}
.pkw-trailer-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;min-width:44px;margin:0;padding:9px 13px;border:1px solid #ffffffb3;border-radius:24px;background:#102c35cf;color:#fff;font:600 12px/1.2 system-ui,sans-serif;cursor:pointer;box-shadow:0 3px 12px #06132133;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.pkw-trailer-controls button:hover{background:#1b4652}
.pkw-trailer-controls button:focus-visible{outline:3px solid #ffe38b;outline-offset:3px}
.pkw-trailer-controls svg{width:19px;height:19px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pkw-trailer-controls .pkw-trailer-pause{width:44px;padding:10px}
body[data-trailer-state="error"] .pkw-entry-trailer{opacity:0}

/* Footer: forum link and "more info" button, as on the game sites. */
.footer-info{color:inherit;font:inherit;background:#1c4d393d;border:1px solid #ffffff75;border-radius:20px;min-height:30px;padding:5px 10px;cursor:pointer}
.footer-info:hover{background:#1c4d3977}
#info-dialog h2{margin:5px 0 0;padding-inline-end:36px}
#info-dialog .close-button{position:absolute;top:14px;inset-inline-end:14px;width:36px;height:36px;border:0;border-radius:50%;background:#e9f1f4;color:var(--ink);cursor:pointer}
.info-links{display:grid;gap:10px;margin-top:20px}
.info-links a{padding:12px 15px;background:#eef4f7;border-radius:10px;font-size:14px;color:#173f65;text-decoration:none}
.info-links a:hover{background:#e1edf3}
#info-dialog::backdrop{background:#092d4b80;backdrop-filter:blur(6px)}

/* Layout: login, signup, Google and edition choice. */
@media(orientation:landscape){
 body[data-state=home] .entry{width:100%;max-width:none;min-height:100svh;padding:0;display:block}
 body[data-state=home] .brand{position:absolute;left:6vw;top:8vh;width:min(36vw,560px);height:min(24vh,270px);max-width:none;margin:0}
 body[data-state=home] .home-screen{position:absolute;left:50%;bottom:max(100px,12vh);transform:translateX(-50%);width:min(1180px,92vw);margin:0}
 body[data-state=home] .home-actions{display:grid;grid-template-columns:1fr 1.15fr 1fr 1fr;gap:18px;align-items:stretch}
 body[data-state=home] .home-actions .game-button{min-height:62px;border-radius:40px;padding:10px 20px;font-size:16px}
 body[data-state=home] #entry-open-login{grid-column:1;grid-row:1}
 body[data-state=home] #open-registration{grid-column:2;grid-row:1}
 body[data-state=home] #hub-google-login{grid-column:3;grid-row:1;min-height:62px;font-size:16px}
 body[data-state=home] #entry-open-editions{grid-column:4;grid-row:1;font-size:15px}
 body[data-state=home] .home-caption{display:none}
 body .landscape{background-size:cover;background-position:center center}
}
@media(orientation:landscape) and (max-width:1100px){
 body[data-state=home] .home-actions{gap:12px}
 body[data-state=home] .home-actions .game-button{padding:10px 14px;font-size:14px}
 body[data-state=home] #hub-google-login{font-size:14px}
 body[data-state=home] #entry-open-editions{font-size:13px}
 body[data-state=home] .start-button strong{font-size:16px}
}
@media(orientation:portrait){
 body{min-height:100svh}
 body[data-state=home] .entry{display:block;position:relative;width:100%;max-width:none;min-height:100svh;padding:0;flex:none}
 body[data-state=home] .brand{position:absolute;top:max(72px,9svh);left:50%;transform:translateX(-50%);width:min(68vw,350px);height:auto;max-width:none;margin:0}
 body[data-state=home] .home-screen{position:absolute;left:50%;bottom:max(142px,16svh);transform:translateX(-50%);width:min(88vw,420px);margin:0}
 body[data-state=home] .home-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:stretch}
 body[data-state=home] #open-registration{grid-column:1;grid-row:1}
 body[data-state=home] #entry-open-login{grid-column:2;grid-row:1}
 body[data-state=home] #hub-google-login{grid-column:1/-1;grid-row:2}
 body[data-state=home] #entry-open-editions{grid-column:1/-1;grid-row:3}
 body[data-state=home] .home-actions .game-button{min-height:54px;padding:10px 14px;gap:8px;font-size:14px;border-radius:34px;justify-content:center}
 body[data-state=home] .start-button strong{font-size:16px}
 body[data-state=home] .start-button small{display:none}
 body[data-state=home] .home-actions .action-arrow{display:none}
 body[data-state=home] .home-caption{display:none}
 body[data-state=home] .footer{position:absolute;bottom:0;left:0;right:0;padding-bottom:max(18px,env(safe-area-inset-bottom));margin:0}
 body .landscape{background-size:cover;background-position:77% center}
 body .landscape::after{display:none}
 body .top-bar{padding:12px 14px}
 body .footer-links{font-size:11px}
 body[data-app=true][data-state=home] .home-screen{bottom:max(92px,12svh)}
}
@media(orientation:landscape) and (max-height:520px){
 body[data-state=home] .brand{top:max(66px,8vh);width:min(30vw,300px);height:26vh}
 body[data-state=home] .home-screen{bottom:62px;width:94vw}
 body[data-state=home] .home-actions .action-arrow{display:none}
 body[data-state=home] .home-actions{gap:10px}
 body[data-state=home] .home-actions .game-button,body[data-state=home] #hub-google-login{min-height:48px;padding:8px 12px;font-size:13px}
 body[data-state=home] #entry-open-editions{font-size:12px}
 body[data-state=home] .start-button strong{font-size:14px}
 body[data-state=home] .start-button small{font-size:10px}
 body .top-bar{padding:8px 14px}
 body .edition-button{min-height:40px;padding:6px 12px}
}
@media(orientation:portrait) and (max-height:680px){
 body[data-state=home] .brand{top:68px;width:60vw;max-width:240px}
 body[data-state=home] .home-screen{bottom:150px}
 body[data-state=home] .home-actions{gap:9px}
 body[data-state=home] .home-actions .game-button{min-height:48px}
}
@media(max-width:370px){
 body.meadow-login .pkw-trailer-controls{top:12px;left:10px;gap:4px}
 .pkw-trailer-controls button{padding-inline:10px;font-size:11px}
 .pkw-trailer-controls .pkw-trailer-pause{padding:10px}
}
@media(prefers-reduced-motion:reduce){body .game-button,.pkw-trailer-controls button{transition:none}}
