/* Original Hunyadi start-screen composition; scoped so native game HUDs remain independent. */
html { --dx-toolbar:52px; }
#hg-legacy-menu.hgs-root{display:none!important;position:fixed;inset:0;z-index:2147483000;color:#fbf3ff;font-family:"Segoe UI",system-ui,sans-serif;font-size:16px;line-height:1.5;text-align:center;--hgs-ink:#fbf3ff;--hgs-muted:#d3c8e4;}
#hg-legacy-menu.hgs-on:not([hidden]){display:block!important;}
#hg-legacy-menu[hidden]{display:none!important;}
#hg-legacy-menu *,#hg-legacy-menu *::before,#hg-legacy-menu *::after{box-sizing:border-box;}
#hg-legacy-menu .hgs-wrap{height:100dvh;padding:28px 20px;display:grid;place-items:safe center;overflow-y:auto;overscroll-behavior:contain;}
#hg-legacy-menu .hgs-panel{width:min(760px,100%);margin:auto;text-align:center;background:none!important;box-shadow:none!important;border:0!important;padding:0!important;}
#hg-legacy-menu .hgs-crest{width:88px;height:88px;border-radius:24px;font-size:44px;margin:0 auto 15px;}
#hg-legacy-menu .hgs-kicker{color:var(--hgs-accent);font-size:11px;font-weight:900;letter-spacing:.2em;margin:0 0 12px;}
#hg-legacy-menu .hgs-title{font-family:"Segoe UI",system-ui,sans-serif;font-size:clamp(30px,4.3vw,54px);font-weight:900;line-height:1.08;margin:0 0 12px;letter-spacing:-1px;background:linear-gradient(100deg,#fff 14%,var(--hgs-accent) 46%,#c5e9ff 74%,#fff 94%);background-size:220% auto;-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;text-shadow:none!important;}
#hg-legacy-menu .hgs-subtitle{display:block;font-size:.64em;letter-spacing:0;margin-top:10px;}
#hg-legacy-menu .hgs-state{font-size:10px;letter-spacing:2px;color:#e6d9bb;margin:14px 0;}
#hg-legacy-menu .hgs-sub{font-size:14px;color:#d3c8e4;line-height:1.65;max-width:66ch;margin:0 auto 20px;background:none;}
#hg-legacy-menu .hgs-menu{display:flex;flex-direction:column;gap:10px;width:min(380px,100%);margin:16px auto 0;}
#hg-legacy-menu .hgs-btn{font-family:inherit;font-size:15px;font-weight:800;border-radius:15px!important;padding:13px 18px;min-height:46px;line-height:1.25;margin:0;display:flex;align-items:center;justify-content:center;color:#281900!important;background:linear-gradient(180deg,#ffd977,#f2a007);border:1px solid #ffc966;box-shadow:0 9px 25px #f2a00730!important;text-decoration:none;transform:none;letter-spacing:0;text-shadow:none!important;cursor:pointer;}
#hg-legacy-menu .hgs-btn.hgs-ghost{background:#ffffff0c;color:#fbf3ff!important;border:1px solid #ffffff2d;box-shadow:none!important;}
#hg-legacy-menu .hgs-btn:disabled{opacity:.35;cursor:not-allowed;}
#hg-legacy-menu .hgs-btn:not(:disabled):hover,#hg-legacy-menu .hgs-btn:not(:disabled):focus-visible{color:#241404!important;background:linear-gradient(180deg,#ffe4a4,#ffc454)!important;border-color:#fff3c3;outline:3px solid #ffe099!important;outline-offset:3px;box-shadow:0 0 0 7px #ffcf5c20!important;filter:none;}
#hg-legacy-menu :focus-visible{outline:3px solid #ffe099!important;outline-offset:4px;}
#hg-legacy-menu .hgs-foot{font-size:11px;line-height:1.7;color:#bfb0d3;margin:19px 0 0;}
#hg-legacy-menu .hgs-foot a{color:#ffdb84;}
#hg-legacy-menu .hgs-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;max-width:650px;margin:18px auto;}
#hg-legacy-menu .hgs-card{background:#ffffff09;border:1px solid #ffffff21;border-radius:14px;color:#d3c8e4;padding:15px;text-align:left;font-size:13px;line-height:1.5;}
#hg-legacy-menu .hgs-card b{display:block;color:#fff0c9;font-size:14px;margin:0 0 5px;}
#hg-legacy-menu .hgs-section-title{font:800 24px "Segoe UI",system-ui,sans-serif;margin:20px 0 14px;color:#fff1d4!important;}
#hg-legacy-menu .hgs-options{width:min(570px,100%);margin:15px auto 25px;text-align:left;background:#ffffff06;padding:5px 18px;border:1px solid #ffffff22;border-radius:16px;}
#hg-legacy-menu .hgs-options label{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #ffffff15;font-size:14px;color:#fff0d8;}
#hg-legacy-menu .hgs-options label:last-child{border:0;}
#hg-legacy-menu .hgs-options small{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#c7b9da;max-width:270px;margin-top:5px;}
#hg-legacy-menu input{accent-color:#ffcf5c;}
#hg-legacy-menu input[type=checkbox]{width:22px;height:22px;flex-shrink:0;}
#hg-legacy-menu input[type=range]{width:155px;max-width:42%;}
#hg-legacy-menu select{background:#241637!important;color:#fff1d3!important;border:1px solid #d4b575!important;border-radius:9px;padding:10px;font:13px "Segoe UI",sans-serif;max-width:48%;min-height:42px;}
#hg-legacy-menu output{color:#ffdb84;margin-left:8px;}
#dx-toolbar{position:fixed;inset:0 0 auto;z-index:2147482000;display:flex;align-items:center;gap:20px;height:52px;background:#180f25f5;border-bottom:1px solid #7960476b;padding:0 18px;font:13px "Segoe UI",system-ui,sans-serif;color:#fdf0d3;text-align:left;}
#dx-toolbar[aria-hidden=true]{visibility:hidden;}
#dx-toolbar .hg-game-home{color:#f7ddb0;text-decoration:none;white-space:nowrap;}
#dx-toolbar .hg-current-title{font-size:12px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#dx-toolbar .hg-tools{display:flex;align-items:center;gap:7px;}
#dx-toolbar button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #ffffff32;border-radius:9px!important;padding:6px 12px;font:700 13px "Segoe UI",system-ui,sans-serif;min-height:34px;margin:0;background:#ffffff0b;color:#f4e7cb;box-shadow:none!important;}
#dx-toolbar [data-dx=pause]{background:#ffcf5c;color:#2b1700;border-color:#ffcf5c;}
#dx-toolbar button[aria-pressed=true]{background:#683735;color:#fff2db;}
#dx-toast{position:fixed;bottom:18px;left:50%;transform:translate(-50%,15px);pointer-events:none;opacity:0;z-index:2147483600;background:#ffe5a4;color:#2d1b00;padding:12px 20px;border:1px solid #e6b75d;border-radius:12px;font:13px "Segoe UI",system-ui,sans-serif;max-width:90vw;transition:.18s;}
#dx-toast.show{opacity:1;transform:translate(-50%,0);}
/* Unchanged games retain their old layout, with only the original corner pause control. */
html[data-legacy-original] {--dx-toolbar:0px;}
html[data-legacy-original] #dx-toolbar{inset:10px 12px auto auto;height:auto;width:auto;padding:0;border:0;background:transparent;}
html[data-legacy-original] #dx-toolbar .hg-game-home,html[data-legacy-original] #dx-toolbar .hg-current-title,html[data-legacy-original] #dx-toolbar [data-dx=sound]{display:none;}
html[data-legacy-original] #dx-toolbar [data-dx=pause]{min-height:39px;box-shadow:0 5px 15px #0004!important;}
@media(min-width:1000px){html.dx-mobile body::before{content:"HUNGAROGAMES\A MAGYAR TÖRTÉNETEK. JÁTÉKBAN."!important;}}
html.dx-is-paused body>*:not(#hg-legacy-menu):not(#dx-toolbar):not(#dx-toast),html.dx-is-paused body>*:not(#hg-legacy-menu):not(#dx-toolbar):not(#dx-toast) *{animation-play-state:paused!important;}
html.dx-is-paused #hg-legacy-menu,html.dx-is-paused #hg-legacy-menu *{animation-play-state:running!important;}
html.dx-contrast #hg-legacy-menu .hgs-sub,html.dx-contrast #hg-legacy-menu .hgs-card,html.dx-contrast #hg-legacy-menu small{color:#fff2d9;}
html.dx-reduce-motion #hg-legacy-menu *{animation:none!important;transition:none!important;}
@media(max-width:600px){#hg-legacy-menu .hgs-wrap{padding:22px 18px;}#hg-legacy-menu .hgs-crest{width:65px;height:65px;font-size:34px;margin-bottom:14px;}#hg-legacy-menu .hgs-title{font-size:31px;}#hg-legacy-menu .hgs-sub{font-size:13px;}#hg-legacy-menu .hgs-cards{grid-template-columns:1fr;}#hg-legacy-menu .hgs-btn{min-height:46px;padding:12px;font-size:14px;}#hg-legacy-menu .hgs-options{padding:0 12px;}#hg-legacy-menu .hgs-options label{gap:10px;}#dx-toolbar{padding:0 10px;gap:12px;}#dx-toolbar .hg-game-home span{display:none;}#dx-toolbar .hg-tools{gap:5px;}#dx-toolbar button{padding:7px 10px;}#dx-toolbar .hg-current-title{font-size:11px;}}
@media(max-height:780px) and (min-width:601px){#hg-legacy-menu .hgs-crest{width:60px;height:60px;font-size:33px;margin-bottom:10px;}#hg-legacy-menu .hgs-title{font-size:36px;}#hg-legacy-menu .hgs-sub{font-size:13px;margin-bottom:10px;}#hg-legacy-menu .hgs-menu{gap:8px;}#hg-legacy-menu .hgs-btn{padding:11px 16px;min-height:42px;}#hg-legacy-menu .hgs-wrap{padding:20px;}#hg-legacy-menu .hgs-state{margin:10px 0;}}

@media(max-width:999px){html.dx-mobile body::before,html.dx-mobile body::after{content:none!important;display:none!important;}}
#dx-toolbar [data-dx=sound]{display:flex!important;}
html[data-legacy-original] #dx-toolbar [data-dx=sound]{display:none!important;}
