#treb-menu{width:min(94vw,540px);height:min(700px,94dvh);max-height:94dvh;overflow:hidden}
#treb-menu .page{padding:10px 24px 18px;display:flex;flex-direction:column;height:100%}
#treb-menu .menu{display:flex;flex-direction:column;min-height:0;flex:1}
#treb-menu h1{font-size:clamp(30px,6dvh,43px);line-height:1.12;margin:2px 0 4px;flex:none}
#treb-menu .ornament{margin:2px auto 5px;flex:none}
#treb-menu .intro{font-size:16px;margin:3px 0;flex:none}
#treb-menu .menu-illustration{width:100%;height:clamp(85px,18dvh,145px);flex:1 1 125px;min-height:55px;max-height:155px;object-fit:contain;margin:4px auto 10px;mix-blend-mode:multiply}
#treb-menu .game-list{display:block;flex:none}
.game-entry{border-top:1px solid #956c394f;text-align:center}
.game-choice{position:relative;display:block;width:100%;padding:12px 70px;min-height:62px;border:0;background:transparent;color:#422714;font:31px/1.12 'IM Fell English',Georgia,serif;cursor:pointer}
.game-choice:hover,.game-choice:focus-visible{background:#fff3d530}
.game-choice:focus-visible,.mode-choice:focus-visible{outline:2px solid #7c4a2e;outline-offset:-3px}
.game-choice.siege-choice{font-size:33px;min-height:74px;padding:15px 78px}
.game-panel{padding:0 12px 9px}.game-panel[hidden]{display:none}
.mode-choice{display:block;width:100%;min-height:43px;border:0;background:transparent;color:#55351f;font:18px/1.15 'IM Fell English',Georgia,serif;padding:8px 10px;cursor:pointer}
.mode-choice small{display:block;font-size:14px;margin-top:2px}
.mode-choice:hover{background:#fff3d54d}
.game-choice .gate{position:absolute;top:50%;width:72px;height:65px;object-fit:contain;transform:translateY(-50%) scale(.9);opacity:0;transition:opacity .18s,transform .18s;pointer-events:none;mix-blend-mode:multiply}
.gate-left{left:3px}.gate-right{right:3px}
.game-choice:hover .gate,.game-choice:focus-visible .gate,.selected .game-choice .gate{opacity:.95;transform:translateY(-50%) scale(1)}
.soon .game-choice{font-size:23px;padding:10px;min-height:60px;color:#80654b;cursor:default;opacity:1}
.soon small{display:block;font-size:13px;margin-top:3px;font-style:italic}
#treb-menu .close{min-height:34px;font-size:17px;padding:3px 10px;margin-bottom:0}
@media(max-width:420px){#treb-menu .page{padding:8px 15px 14px}.game-choice{font-size:28px;padding-left:55px;padding-right:55px}.game-choice.siege-choice{font-size:29px;padding-left:59px;padding-right:59px}.game-choice .gate{width:55px;height:54px}.mode-choice{font-size:17px}}
@media(max-height:500px) and (min-width:580px){#treb-menu{width:min(94vw,760px)}#treb-menu .menu{display:grid;grid-template-columns:.85fr 1.15fr;grid-template-rows:auto auto auto 1fr;column-gap:22px}#treb-menu h1,#treb-menu .ornament,#treb-menu .intro{grid-column:1}#treb-menu .menu-illustration{grid-column:1;grid-row:4;max-height:180px;height:100%;min-height:0}#treb-menu .game-list{grid-column:2;grid-row:1/5;align-self:center}.game-choice{min-height:42px;padding-top:8px;padding-bottom:8px;font-size:25px}.game-choice.siege-choice{min-height:57px;font-size:27px}.soon .game-choice{min-height:43px;padding:5px;font-size:20px}.mode-choice{min-height:34px;font-size:16px;padding:5px}.game-panel{padding-bottom:4px}.game-choice .gate{height:53px;width:60px}}
@media(prefers-reduced-motion:reduce){.game-choice .gate{transition:none}}
.game-panel{display:flex;align-items:stretch;justify-content:center;gap:8px;padding:0 10px 12px}
.game-panel[hidden]{display:none}
.game-panel .mode-choice{width:auto;flex:1 1 0;min-width:0;padding:8px 5px}
#treb-options .mode-choice{font-size:17px}
#treb-options .mode-choice+ .mode-choice{border-left:1px solid #956c3933}
#siege-options{padding-left:42px;padding-right:42px;gap:12px}
#siege-options .mode-choice{font-size:20px}
@media(max-width:420px){#treb-options .mode-choice{font-size:15px}#treb-options .mode-choice small{font-size:12px}#siege-options{padding-left:15px;padding-right:15px;gap:5px}#siege-options .mode-choice{font-size:18px}}
@media(max-height:500px) and (min-width:580px){#treb-options .mode-choice{font-size:15px}#siege-options{padding-left:10px;padding-right:10px}#siege-options .mode-choice{font-size:18px}}
/* Ornaments belong to the whole game section, including its play choices. */
.game-choice .game-emblem{position:absolute;top:50%;width:78px;height:62px;object-fit:contain;opacity:0;transform:translateY(-50%) scaleX(var(--facing,1));transition:opacity .16s;pointer-events:none;mix-blend-mode:multiply;filter:grayscale(1) sepia(1) saturate(.9) brightness(.88)}
.game-emblem.emblem-left{left:0}.game-emblem.emblem-right{right:0}.game-emblem.mirrored{--facing:-1}
.game-entry:hover .game-emblem,.game-entry:focus-within .game-emblem,.game-entry.selected .game-emblem{opacity:.95}
.game-choice .portrait-emblem{width:70px;height:65px}
.game-choice .charge-emblem{width:86px;height:65px}
#treb-menu .menu-illustration{max-height:105px;height:clamp(50px,13dvh,105px);flex:1 1 90px;min-height:40px;margin-bottom:5px}
.game-choice{min-height:52px;padding-top:9px;padding-bottom:9px}
.game-choice.siege-choice{min-height:64px;padding-top:10px;padding-bottom:10px}
.game-panel{padding-bottom:8px}
.soon .game-choice{min-height:62px;padding:8px 75px;cursor:pointer}
.regicide .game-choice{min-height:78px}
.soon .availability{font-size:12px;line-height:1.15;color:#8b7254}
.regicide small:not(.availability){font-size:14px;font-style:normal;margin-top:2px}
@media(max-width:420px){.game-choice .game-emblem{width:57px;height:54px}.game-choice .portrait-emblem{width:55px;height:58px}.game-choice .charge-emblem{width:62px;height:54px}.soon .game-choice{padding-left:62px;padding-right:62px}}
@media(max-height:500px) and (min-width:580px){.game-choice{min-height:34px;padding-top:5px;padding-bottom:5px}.game-choice.siege-choice{min-height:48px;padding-top:6px;padding-bottom:6px}.game-choice .game-emblem{width:59px;height:47px}.game-choice .charge-emblem{width:67px;height:49px}.game-choice .portrait-emblem{width:49px;height:52px}.soon .game-choice{min-height:43px;padding:5px 62px}.regicide .game-choice{min-height:58px}.soon .availability{font-size:11px}.regicide small:not(.availability){font-size:12px}.game-panel{padding-bottom:4px}}
@media(prefers-reduced-motion:reduce){.game-choice .game-emblem{transition:none}}

/* Compact the heading gap and warm every hover ornament to brown ink. */
#treb-menu .menu-illustration{margin-top:0}
@media(max-height:500px) and (min-width:580px){#treb-menu .menu{grid-template-rows:auto auto 1fr}#treb-menu .menu-illustration{grid-row:3}#treb-menu .game-list{grid-row:1/4}}

/* Short descriptions stay clear of the title's hover ornaments. */
#treb-menu .game-tagline{font:italic 14px/1.2 'IM Fell English',Georgia,serif;color:#745033;margin:-3px 8px 7px;text-align:center}
.pac-monk .game-choice{min-height:49px;padding-top:6px;padding-bottom:5px}
.pac-monk p.availability{font:italic 12px/1.15 'IM Fell English',Georgia,serif;margin:0 0 9px}
@media(max-width:420px){#treb-menu .game-tagline{font-size:13px;margin-left:0;margin-right:0}}
@media(max-height:500px) and (min-width:580px){#treb-menu .game-tagline{font-size:12px;margin-top:-1px;margin-bottom:4px}.game-choice{min-height:30px;padding-top:3px;padding-bottom:3px}.game-choice.siege-choice{min-height:39px;padding-top:3px;padding-bottom:3px}.pac-monk .game-choice{min-height:30px;padding:3px 62px}.regicide .game-choice{min-height:53px}.pac-monk p.availability{margin-bottom:4px;font-size:11px}.game-panel{padding-bottom:2px}.game-panel .mode-choice{min-height:29px;padding-top:4px;padding-bottom:4px}}
@media(max-width:420px){#treb-menu h1{font-size:34px;white-space:nowrap}}

/* Restore the large header illustration without letting flex shrink it. */
#treb-menu .menu-illustration{flex:0 0 105px;height:105px;min-height:105px;max-height:105px;margin:0 auto 3px}
#treb-menu .game-tagline{color:#987c5e}
#treb-menu .game-emblem{filter:grayscale(1) sepia(1) saturate(1.6) hue-rotate(-18deg) brightness(.86)}
#treb-menu .game-choice{min-height:43px;padding-top:4px;padding-bottom:4px}
#treb-menu .siege-choice{min-height:48px;padding-top:5px;padding-bottom:5px}
#treb-menu .regicide .game-choice{min-height:66px;padding-top:3px;padding-bottom:3px}
#treb-menu .pac-monk .game-choice{min-height:38px;padding-top:3px;padding-bottom:3px}
@media(max-height:500px) and (min-width:580px){#treb-menu .menu-illustration{height:150px;min-height:0;max-height:150px;align-self:start}#treb-menu .game-choice{min-height:30px;padding-top:3px;padding-bottom:3px}#treb-menu .siege-choice{min-height:39px}#treb-menu .regicide .game-choice{min-height:53px}#treb-menu .pac-monk .game-choice{min-height:30px}}
@media(max-width:420px){#treb-menu .page .menu h1#mini-games-title{font-size:34px;white-space:nowrap}}

/* Match Regicide to the other descriptions and keep trebuchets below the divider. */
#treb-menu .regicide .game-choice{min-height:38px;padding-top:3px;padding-bottom:3px}
#treb-menu .regicide p.availability{font:italic 12px/1.15 'IM Fell English',Georgia,serif;margin:0 0 9px}
#treb-menu [data-game="treb"] .game-emblem{top:calc(50% + 5px)}
@media(max-height:500px) and (min-width:580px){#treb-menu .regicide .game-choice{min-height:30px}#treb-menu .regicide p.availability{font-size:11px;margin-bottom:4px}}

/* Two short lines sit below the trebuchet ornaments, away from their edges. */
#treb-menu .treb-tagline{font-size:13px;line-height:1.2;margin:4px 12px 6px}
@media(max-width:420px){#treb-menu .treb-tagline{font-size:11.5px;margin-top:5px;margin-left:0;margin-right:0}}
@media(max-height:500px) and (min-width:580px){#treb-menu .treb-tagline{font-size:11.5px;line-height:1.15;margin-top:3px;margin-bottom:3px}}
#treb-menu .portrait-emblem{top:calc(50% + 16px)}

/* Five games share the parchment menu; horse archers point inward on hover or selection. */
#treb-menu .game-choice{font-size:28px;min-height:36px;padding-top:3px;padding-bottom:3px}
#treb-menu .siege-choice{font-size:30px;min-height:40px}
#treb-menu .game-panel .mode-choice{min-height:36px;padding-top:5px;padding-bottom:5px}
#treb-menu .game-panel{padding-bottom:6px}
#treb-menu .game-tagline{margin-bottom:6px}
#treb-menu .caravan-carnage .game-choice{font-size:28px;min-height:40px;padding:5px 80px;color:#422714}
#treb-menu .caravan-emblem{width:78px;height:58px;top:calc(50% + 7px)}
#treb-menu .caravan-carnage .availability{font:italic 12px/1.15 'IM Fell English',Georgia,serif;color:#8b7254;margin:0 0 6px}
#treb-menu .game-list{min-height:0;overflow-y:auto;scrollbar-width:thin}
@media(max-width:420px){#treb-menu .game-choice{font-size:25px}#treb-menu .siege-choice{font-size:27px}#treb-menu .caravan-carnage .game-choice{font-size:25px;padding-left:58px;padding-right:58px}#treb-menu .caravan-emblem{width:56px;height:48px}}
@media(max-height:700px) and (max-width:579px){#treb-menu .menu-illustration{height:80px;min-height:80px;max-height:80px;flex-basis:80px}}
@media(max-height:500px) and (min-width:580px){#treb-menu .game-choice{font-size:24px;min-height:28px}#treb-menu .siege-choice{font-size:26px;min-height:34px}#treb-menu .game-panel .mode-choice{min-height:28px;padding-top:3px;padding-bottom:3px}#treb-menu .caravan-carnage .game-choice{font-size:24px;min-height:32px;padding-top:3px;padding-bottom:3px}#treb-menu .caravan-emblem{width:59px;height:45px}#treb-menu .game-list{max-height:100%;align-self:stretch}}

/* Equal-height lower entries with overlaid wax coming-soon stamps. */
#treb-menu .regicide,#treb-menu .pac-monk,#treb-menu .caravan-carnage{position:relative;display:grid;grid-template-rows:38px 28px;align-content:center;height:72px;min-height:72px}
#treb-menu :is(.regicide,.pac-monk,.caravan-carnage) .game-choice{min-height:38px;height:38px;padding-top:3px;padding-bottom:3px;font-size:28px;line-height:1.12}
#treb-menu :is(.regicide,.pac-monk,.caravan-carnage) .game-tagline{display:flex;align-items:center;justify-content:center;min-height:28px;margin:0 8px;line-height:1.15}
#treb-menu .coming-seal{position:absolute;right:66px;top:8px;width:43px;height:43px;display:grid;place-items:center;border-radius:46% 51% 45% 49% / 48% 43% 53% 46%;background:radial-gradient(circle at 33% 25%,#af5c42,#853724 65%,#682718);box-shadow:1px 2px 3px #46200c55,inset 0 0 0 2px #a54c32,inset 0 0 0 4px #67271c,inset 0 0 0 5px #ba66474d;color:#efd3a2;transform:rotate(-13deg);pointer-events:none;z-index:2;text-shadow:0 1px #582619}
#treb-menu .coming-seal>span{font:9px/1.18 'Uncial Antiqua',Georgia,serif;text-align:center;letter-spacing:.2px}
#treb-menu .soon .game-choice{cursor:default}
@media(max-width:420px){#treb-menu :is(.regicide,.pac-monk,.caravan-carnage) .game-choice{font-size:25px}#treb-menu .coming-seal{right:1px;top:25px;width:37px;height:37px}#treb-menu .coming-seal>span{font-size:8px}#treb-menu :is(.regicide,.pac-monk,.caravan-carnage) .game-tagline{font-size:12px;margin-left:6px;margin-right:39px}}
@media(max-height:500px) and (min-width:580px){#treb-menu .regicide,#treb-menu .pac-monk,#treb-menu .caravan-carnage{height:60px;min-height:60px;grid-template-rows:30px 24px}#treb-menu :is(.regicide,.pac-monk,.caravan-carnage) .game-choice{height:30px;min-height:30px;font-size:24px}#treb-menu :is(.regicide,.pac-monk,.caravan-carnage) .game-tagline{min-height:24px;font-size:12px}#treb-menu .coming-seal{right:1px;top:19px;width:35px;height:35px}#treb-menu .coming-seal>span{font-size:7.5px}}

/* Coming-soon titles share the same muted ink. */
#treb-menu .soon .game-choice{color:#80654b}

/* Caravan is released; no wax-seal spacing is needed. */
#treb-menu .caravan-carnage .game-choice{color:#422714;cursor:pointer}@media(max-width:420px){#treb-menu .caravan-carnage .game-tagline{margin-left:8px;margin-right:8px}}

/* Six games: parchment stays fixed; only the list scrolls vertically. */
#treb-menu,#treb-menu .page,#treb-menu .menu,#treb-menu .game-list{box-sizing:border-box;min-width:0}
#treb-menu{overflow:hidden}
#treb-menu .page{overflow:hidden}
#treb-menu .game-list{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#956c3970 transparent;padding-bottom:8px}
#treb-menu .game-list::-webkit-scrollbar{width:5px;height:0}
#treb-menu .game-list::-webkit-scrollbar-track{background:transparent}
#treb-menu .game-list::-webkit-scrollbar-thumb{background:#956c3970;border-radius:5px}
#treb-menu .fishnets{position:relative;min-height:72px;padding-top:3px}
#treb-menu .fishnets .game-choice{height:38px;font-size:28px;padding:3px 80px}
#treb-menu .fishnets .game-tagline{min-height:28px;margin:0 8px;display:flex;align-items:center;justify-content:center}
#treb-menu .fishnets-emblem{width:74px;height:64px;top:calc(50% + 7px)}
@media(max-width:420px){#treb-menu .fishnets .game-choice{font-size:25px;padding-inline:58px}#treb-menu .fishnets-emblem{width:54px;height:54px}}
@media(max-height:500px) and (min-width:580px){#treb-menu .menu{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:auto auto minmax(0,1fr)}#treb-menu .game-list{height:100%;max-height:100%;align-self:stretch}#treb-menu .fishnets{min-height:60px}#treb-menu .fishnets .game-choice{height:30px;min-height:30px;font-size:24px}#treb-menu .fishnets .game-tagline{min-height:24px;font-size:12px}}
