/* Shared page chrome. Game fields, timing and rules stay in their own stylesheets. */
@font-face{font-family:Underdog;src:url('vendor/underdog/Underdog-Regular.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--realm-body:"Segoe UI",Arial,sans-serif;--realm-title:Underdog,Georgia,serif}
body{font-family:var(--realm-body);font-size:15px;line-height:1.45}
h1,h2,h3,summary,.brand{font-family:var(--realm-title);font-weight:400}
button,input,select,textarea{font-family:var(--realm-body)}
body h1.sorting-title,body .page-title,body .heading h1,body .game-heading h1{font:400 32px/1.05 var(--realm-title);color:#ffe0a2;margin:8px 0 16px}
body .instructions h2,body .rules h2{font:400 23px/1.15 var(--realm-title)}
body .orchard-profile h2,body .dragon-panel h2{font:400 25px/1.2 var(--realm-title)}
body .greeting-skip,body .presets button,body .crow-tools button,body .orchard-tools button{font-family:var(--realm-body)}
body .play>.actions>button,body .play-area .controls>button{font:600 16px/1.25 var(--realm-body)}
body #result,body #result .result-actions button{font-family:var(--realm-body)}
body #result h2{font:400 27px/1.3 var(--realm-title)}
body .masthead{position:relative;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding:10px 26px;border:3px solid #92663b;background:repeating-linear-gradient(0deg,#0000 0 7px,#130b0630 8px 9px),linear-gradient(90deg,#352117,#68432a 48%,#352117);box-shadow:inset 0 0 0 3px #21150e,inset 0 5px #b3894d,0 6px 0 #180e09,0 8px 24px #0009;color:#f6e2b8}
body .masthead::before,body .masthead::after{content:"";position:absolute;top:14px;width:5px;height:5px;background:#b4935a;box-shadow:1px 2px #160d09}
body .masthead::before{left:10px}body .masthead::after{right:10px}
body .masthead .brand{flex:0 1 auto;min-width:0;color:#f1ce91;font:400 29px/1 var(--realm-title);text-decoration:none;text-shadow:2px 3px #21130f}
body .masthead .brand span{display:block;margin-top:8px;color:#d8b888;font:15px/1.4 var(--realm-body)}
body .masthead .tavern-logo{flex:0 0 70px;width:70px;height:62px;background:url('assets/red-moustache-v1.webp') center/contain no-repeat;image-rendering:pixelated}
body .shell>.masthead{max-width:none;margin:0 0 20px}
body.realm-orchard>.masthead{box-sizing:border-box;max-width:1180px;margin:16px auto 0}
body .game-heading{display:block;margin-bottom:18px}
body .game-heading>p{margin:0;color:#d7c19e;font:15px/1.45 var(--realm-body)}
body.realm-orchard .heading{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
body.realm-orchard .heading .back-to-dragons{order:-1}
body footer.site-project-footer{box-sizing:border-box;max-width:1080px;margin:0 auto;padding:18px 4px 24px;text-align:left;color:#e3c9a0;font:14px/1.5 var(--realm-body)}
body .shell>footer.site-project-footer{max-width:none}
body.realm-orchard>footer.site-project-footer{max-width:1180px;padding-left:20px;padding-right:20px}
body footer .site-project-links{margin-top:0;font:14px/1.5 var(--realm-body)}
body footer .project-rights,body footer .project-rights summary{font:13px/1.5 var(--realm-body)}
body .legal-copy h1{font:400 32px/1.15 var(--realm-title);color:#35251f}
body .legal-copy h2{font:400 23px/1.2 var(--realm-title);color:#35251f}
.legal-copy .legal-status{padding:10px 12px;border:1px solid #967049;background:#fff2cf;color:#35251f}
.legal-copy .legal-back{display:inline-block;margin-bottom:12px}
@media(max-width:1120px){body footer.site-project-footer{margin:0 20px}}
@media(max-width:760px){body .masthead{padding:10px 16px;gap:8px}body .masthead .brand{font-size:24px}body .masthead .brand span{font-size:13px}body .masthead .tavern-logo{flex-basis:58px;width:58px;height:56px}body h1.sorting-title,body .page-title,body .heading h1,body .game-heading h1{font-size:28px}body.realm-orchard>.masthead{margin:8px 12px 0}body .play>.actions>button,body .play-area .controls>button{font-size:14px}body footer.site-project-footer{margin:0 12px;padding:14px 0 20px}body .shell>footer.site-project-footer{margin:0}body.realm-orchard>footer.site-project-footer{padding-left:0;padding-right:0}}

/* Shared form/action components for account, keeper and game pages. */
:root{--realm-gold:#b78a4e;--realm-paper:#fff6df;--realm-ink:#3d2b20;--realm-light:#ffedc2}
body .realm-panel h2{font:400 25px/1.2 var(--realm-title)}
body :is(.realm-main button:not(.greeting-skip),.play>.actions>button,.play-area .controls>button,#result .actions>button,#result .controls>button,#result .result-actions>button){min-height:46px;border:3px solid var(--realm-gold);border-radius:0;padding:8px 17px;background:linear-gradient(#61432c,#39271e);color:var(--realm-light);font:600 16px/1.25 var(--realm-body);text-shadow:2px 2px #241613;box-shadow:inset 2px 2px #ddb97950,inset -2px -2px #170e0b,0 4px #170e0b;touch-action:manipulation}
body :is(.realm-main button.primary,.play>.actions>button.primary,.play-area .controls>button.primary,#result button.primary){background:linear-gradient(#8d4852,#532c37);border-color:#dbb572}
body :is(.realm-main button,.play>.actions>button,.play-area .controls>button,#result button):disabled{cursor:default;color:#b59c7e;border-color:#786044}
body :is(.realm-panel,.dragon-tile,.panel,.flight-controls,.controls,.loadout-slot) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]),select,textarea){box-sizing:border-box;min-height:44px;border:2px solid #9e7941;border-radius:0;padding:8px 10px;font:15px/1.4 var(--realm-body)}
body :is(.realm-panel,.dragon-tile,.panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]):not(:disabled):not([readonly]),select:not(:disabled),textarea:not(:disabled)){background:var(--realm-paper);color:var(--realm-ink)}
body :is(button,input,select,textarea,a,summary):focus-visible{outline:3px solid #ffe2a0;outline-offset:4px}
body .greeting-person{flex:0 0 76px;width:76px;text-align:center}
body .greeting-speaker{display:block;margin-top:6px;color:#f1ce91;font:14px/1.2 var(--realm-title)}
body footer .development-notice{margin:0 0 10px;color:#d4bd9b;font:12px/1.5 var(--realm-body);text-shadow:0 1px 2px #160c08}
body footer .project-rights[open]{padding:12px;border:1px solid #98714c;background:#241a13ed}
@media(max-width:760px){body :is(.realm-main button:not(.greeting-skip),.play>.actions>button,.play-area .controls>button,#result .actions>button,#result .controls>button,#result .result-actions>button){font-size:14px;padding:8px 12px}}

@media(max-width:600px){body .greeting-person{flex-basis:56px;width:56px}body .greeting-speaker{font-size:12px;overflow-wrap:anywhere}}

body .account-help{margin-top:20px;padding-top:14px;border-top:1px solid #bca17c;font-size:14px;line-height:1.5}body .account-help p{margin:0 0 10px}

body .pc-notice{margin:20px 0 16px;padding:12px 16px;border:1px solid #d5ad68;border-left:4px solid #d5ad68;background:#302016f0;color:#ffe4ae;font:600 15px/1.5 var(--realm-body)}
