/* Collections, progression and shared rooms */
.shortcuts9{display:flex;gap:8px;margin:12px 0 21px}
.shortcuts9 a,.hub9 .link9,.go9{display:flex;justify-content:center;align-items:center;text-align:center;gap:7px;min-height:44px;font-weight:800;font-size:14px;color:var(--brand);background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:9px;flex:1}
.shortcuts9 a:hover,.hub9 .link9:hover,.go9:hover,.paths9 a:hover{border-color:var(--brand);background:var(--mint)}
.shortcuts9 svg,.hub9 .icon{flex:none}
.hub9 h1{display:block;overflow-wrap:anywhere;font-size:clamp(32px,4.5vw,52px);letter-spacing:-.04em;margin:8px 0 12px;line-height:1.08}
.hub9{margin-block:30px 50px}
.hub9 .front9{padding:32px 32px 28px;border-radius:24px;border:1px solid var(--line);background:linear-gradient(125deg,var(--paper) 38%,var(--mint));text-align:left}
.hub9 .front9 p{max-width:720px;margin:0;font-size:16px;line-height:1.65}
.hub9 .front9 a,.hub9 .below9 a,.hub9 .open9{font-size:14px;color:var(--brand);font-weight:800}
.hub9 .front9 a+a{margin-left:18px}
.deck9{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:22px 0 36px}
.box9{padding:25px;border:1px solid var(--line);box-shadow:0 3px 8px #17104b06;background:var(--paper);border-radius:20px;display:flex;flex-direction:column;text-align:left}
.box9 h2{margin:0;font-size:clamp(21px,2.3vw,28px);letter-spacing:-.03em;line-height:1.15}
.box9>p,.below9 p{font-size:15px;line-height:1.55;color:var(--dim);margin:16px 0}
.bar9 h2{overflow-wrap:anywhere}.bar9{display:flex;align-items:center;gap:15px}
.bar9 svg,.bar9 .art{display:block;width:57px;height:57px;flex-shrink:0}
.bar9 output{color:var(--brand);margin-left:auto;white-space:nowrap;font-weight:800}
.box9 progress{appearance:none;display:block;border:none;width:100%;background:var(--soft);height:6px;margin:auto 0 14px;border-radius:7px;overflow:hidden}
.box9 progress::-webkit-progress-bar{background:var(--soft)}.box9 progress::-webkit-progress-value{background:var(--brand)}
.paths9{display:grid;gap:6px}
.paths9 a{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:700;border-radius:12px;min-height:47px;padding:7px 14px 7px 8px;background:var(--soft);border:1px solid transparent}
.paths9 i{border-radius:8px;background:var(--paper);display:grid;place-items:center;min-width:30px;height:30px;font-weight:800;font-style:normal;color:var(--brand)}
.paths9 a:after{content:'›';margin-left:auto;font-size:21px;color:var(--brand)}
.paths9 .won9 i{background:var(--hit);color:white}
.hub9 .files9{display:flex;gap:12px;margin:auto 0 16px}
.hub9 .link9{background:var(--mint);border-color:transparent;min-height:52px}
.hub9 .open9{align-self:flex-start}
.hub9 .below9{padding:0 6px}
.hub9 .below9 h2{font-size:27px;margin:14px 0}
#badges9{display:grid;grid-template-columns:repeat(auto-fit,minmax(176px,1fr));gap:12px;margin:18px auto 26px}
#badges9>div{padding:15px;border-radius:14px;background:var(--paper);border:1px solid var(--line)}
#badges9 b,#badges9 small{display:block}
#badges9 small{color:var(--dim);line-height:1.45;margin-top:8px}
#badges9 .earned9{background:var(--mint);border-color:var(--brand)}
.chapters9{display:flex;gap:5px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.chapters9 .soft{font-size:13px;padding:8px 10px}
.chapters9 button[aria-pressed=true]{background:var(--hit);color:white}
.map7 button[hidden]{display:none!important}
.map7 button:disabled{opacity:.66}
#play .map7{grid-template-columns:repeat(5,minmax(0,1fr))}
.suggest9 button{font-size:13px;padding:6px 11px;min-height:36px}
.back9{font-size:14px;font-weight:700;color:var(--brand)}
#elo{border:1px solid var(--line);background:var(--mint);padding:14px 12px;border-radius:16px;margin:16px auto;scroll-margin-top:12px}
#elo .buttons{margin:10px auto 0}
#elo .soft{background:var(--paper)}
#elo>strong{color:var(--brand);font-size:16px}
#room9:empty,#net9:empty{display:none}
.online9 #jatek>:is(.topline,#play,.intro,#context,#elo,#days8,#finish,#skipRound,#message){display:none!important}
#net9{color:var(--ink);padding:12px;border:1px solid #dd9146;background:var(--paper);border-radius:12px;margin:10px auto}
#room9{margin:20px auto 6px;max-width:490px}
#room9 h2{font-size:25px;margin:12px 0}
#room9 .sub,.meta9{font-size:14px;line-height:1.55;overflow-wrap:anywhere;color:var(--dim)}
.entry9{display:grid;gap:13px;text-align:left;margin:20px auto}
.entry9 label{font-size:14px;font-weight:750}
.entry9 input,#invite9{display:block;width:100%;margin:5px 0 0;font-size:16px;height:47px;background:var(--paper);color:var(--ink);min-width:0}
.entry9 input{border:1px solid var(--border)}
#invite9{margin:12px auto 8px;font-size:14px}
.code9{margin:20px 0 10px;border-radius:17px;background:var(--mint);padding:18px 6px}
.code9 strong{display:block;color:var(--brand);font-size:clamp(24px,5.5vw,34px);letter-spacing:.1em;overflow-wrap:anywhere}
#room9 .bar7{font-variant-numeric:tabular-nums;position:sticky;top:6px;z-index:3;background:var(--mint);padding:12px;border-radius:14px;box-shadow:0 1px 4px #17104b0f}
#time9{font-size:22px}
.ranking9{display:grid;gap:6px;margin:18px auto}
.ranking9>div{display:flex;justify-content:space-between;align-items:center;padding:10px 14px;border-radius:11px;background:var(--soft);gap:8px;overflow-wrap:anywhere}
.ranking9 span{flex:none;color:var(--brand);font-weight:800}
.review9{padding-top:12px;text-align:left}
.vote9{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) 45px;gap:10px;width:100%;text-align:left;align-items:center;overflow-wrap:anywhere;font-size:14px;background:var(--soft);margin:5px 0;border-radius:9px;min-height:44px;padding:9px}
.vote9 b{color:var(--brand);text-align:right}
.reject9 strong{text-decoration:line-through}
.exit9{display:block;margin:16px auto 0;font-weight:bold;font-size:14px;background:none;color:var(--dim);padding:10px}
@media(max-width:800px){.deck9{grid-template-columns:1fr;gap:14px}.hub9{margin-block:16px 30px}.box9,.hub9 .front9{padding:19px}.bar9{gap:11px}.bar9 svg,.bar9 .art{width:46px;height:46px}.hub9 .front9 p{font-size:15px}.bar9 output{font-size:13px}.hub9 .files9{gap:8px}.hub9 .link9{font-size:13px}.hub9 .front9 a+a{margin-left:10px}}
@media(max-width:400px){.box9,.hub9 .front9{padding:16px}.bar9 h2{font-size:21px}.shortcuts9 a,.hub9 .front9 a{font-size:13px}.chapters9 .soft{font-size:11px;padding:5px 6px}.shortcuts9 a{gap:4px}.hub9 .link9{font-size:12px;padding:6px}.bar9{gap:8px}#elo .buttons button{font-size:13px;padding:9px}}
@media print{#elo,.shortcuts9,#room9,#net9,.suggest9{display:none!important}}

#tools10:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin:0 0 15px}
#tools10 a{display:inline-flex;align-items:center;min-height:42px;padding:6px 12px;text-decoration:underline;text-underline-offset:3px;border-radius:12px;color:var(--brand);background:var(--soft);font-weight:700}
@media(max-width:760px){
 #catalog7 input,#catalog7 select,#linkbox #linkfield,#play #linkfield{font-size:16px;min-height:44px}
 #catalog7 select{padding-inline:8px}
 #catalog7 #genre7{grid-column:1/-1}
 #catalog7 #remove7{grid-column:1/-1;min-height:42px}
 #play label:has(input[type=checkbox]){min-height:38px;cursor:pointer}
 #play input[type=checkbox]{width:20px;height:20px;vertical-align:middle;flex-shrink:0}
}
/* Home copy */
#jatek h1.original10{font-size:clamp(21px,5.9vw,37px);max-width:96%;text-wrap:balance}
article.old10{display:block;text-align:left}
.old10 .copy10,.old10 .letters10{max-width:72ch;margin-inline:auto}
.old10 .copy10 p{font-size:clamp(15px,1.6vw,17px);line-height:1.64;margin:0 0 .9em}
.old10 .copy10 h2{margin:1.05em 0 .55em}
.old10 .letters10{margin-top:22px;padding-top:18px;border-top:1px solid var(--border)}
.old10 .letters10 h2{font-size:21px}
@media(max-width:520px){
 #jatek h1.original10{font-size:clamp(19px,6.1vw,29px)}
 #jatek h1.original10 .sunburst{display:none}
 #lookup .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #lookup .fields select{padding-inline:6px}
 #lookup .fields:has(#sound){grid-template-columns:1fr}
 #lookup .fields:has(#len:first-child){align-items:end}
}
@media(max-width:365px){#lookup .fields:has(#len,#beats){grid-template-columns:1fr}}

/* Directory, sidebar and reading sizes. Keep the game grids independent. */
@media screen{
 .cards{gap:16px;margin-top:20px}
 .cards .other{gap:14px;padding:17px 16px;min-height:112px}
 .cards .art,.bar9 svg,.bar9 .art{width:72px;height:72px;border-radius:19px}
 .cards .other b,.other-list .other b{font-size:19px;line-height:1.26;letter-spacing:-.4px}
 .cards .other small,.other-list .other small,#gameCards .item a small{font-size:15px;line-height:1.4;margin-top:5px}
 #gameCards .other span em{font-size:13.5px;margin-top:6px;line-height:1.32}
 #gameCards .other{padding-right:48px}
 #gameCards .fav{font-size:29px;width:44px;right:2px}
 .other-list .art{width:68px;height:68px}
 .other-list .other{gap:14px;padding:14px 16px}
 .other .icon,.sidehead .icon,.daycard .icon{width:20px;height:20px}
 .sidehead h2,.collection h2,.partners h2{font-size:31px}
 .sidehead a,.daycard small,.dayCount,#catalog7 input,#catalog7 select,#catalog7 #remove7,.shortcuts9 a,footer.wrap,.hub9 .front9 a,.hub9 .below9 a,.hub9 .open9{font-size:16px}
 #jatekok>.filters button{font-size:15px;min-height:43px}
 #catalog7 input,#catalog7 select,#catalog7 #remove7{min-height:46px}
 .daycard b{font-size:22px}
 aside .sidehead h2{font-size:28px}
 .partners a{font-size:17px}
 .partners img{width:58px;height:58px;object-fit:contain}
 article p,dialog p,.box9>p,.below9 p,.hub9 .front9 p,.intro,#lookup label{font-size:17px}
 .old10 .copy10 p{font-size:18px;line-height:1.7}
 .old10 .copy10 p:last-child{margin-bottom:0}
 article h2{font-size:28px}
 .old10{margin-top:36px}
 .old10 .letters10{margin:0 auto 23px;padding:0 0 20px;border:0;border-bottom:1px solid var(--line)}
 .old10 .letters10 h2{font-size:24px}
 .old10 .copy10,.old10 .letters10{max-width:760px}
 .sub,.progress,.defs p,#date,.modes button{font-size:15px}
 nav{font-size:16px}
 .brand svg{width:53px}
 .brand{font-size:36px}
 .actions .icon{width:24px;height:24px}
 #lookup input:not([type=checkbox]),#lookup select,#lookup textarea{font-size:17px}
 #play .buttons .soft,#play .buttons .primary,#lookup .primary,#lookup .soft{font-size:16px}
}
@media screen and (min-width:1100px){
 .wrap{width:min(1180px,calc(100% - 64px))}
 .layout{grid-template-columns:minmax(0,1.6fr) minmax(350px,1fr)}
}
@media screen and (min-width:791px) and (max-width:1099px){
 .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .other-list .other{padding:12px;gap:10px}
 .other-list .art{width:59px;height:59px}
 .other-list .other b{font-size:18px}
 .other-list .other small{font-size:14px}
 aside .sidehead h2{font-size:24px}
 .shortcuts9 a,.sidehead a,.daycard small,nav{font-size:15px}
 header .wrap{gap:22px}
 nav{gap:18px}
 .partners>div{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media screen and (max-width:790px){
 .brand{font-size:31px}
 .brand svg{width:44px}
 .sidehead h2,.collection h2,.partners h2,aside .sidehead h2{font-size:27px}
 .sidehead a,.shortcuts9 a,.daycard small,footer.wrap,.hub9 .front9 a,.hub9 .below9 a,.hub9 .open9{font-size:15px}
 #jatekok>.filters button{font-size:14px;min-height:42px}
 .cards{gap:12px;margin-top:15px}
 .cards .art,.bar9 .art,.bar9 svg,.other-list .art{width:66px;height:66px}
 .cards .other,.other-list .other{padding:15px 14px;gap:12px}
 .cards .other{min-height:104px}
 .cards .other b,.other-list .other b{font-size:18px}
 .cards .other small,.other-list .other small,#gameCards .item a small{font-size:14.5px}
 #gameCards .other span em{font-size:13px}
 .intro,#lookup label,.sub,.progress,#play .buttons .soft,#play .buttons .primary{font-size:15px}
 .modes button,#date{font-size:14px}
 .partners img{width:46px;height:46px}
 .partners a{font-size:15px}
 article h2{font-size:25px}
 .old10 .copy10 p,article p,dialog p,.box9>p,.below9 p,.hub9 .front9 p,#lookup input:not([type=checkbox]),#lookup select,#lookup textarea{font-size:16px}
}
@media screen and (max-width:530px){
 .sidehead{flex-wrap:wrap;row-gap:6px}
 .sidehead a{font-size:14px;gap:3px}
 .partners .icon{display:none}
 .partners a{padding:10px 8px;gap:8px;overflow-wrap:anywhere}
 .partners img{width:38px;height:38px}
 .modes button,#date{font-size:13px}
 .intro{font-size:14px}
 #play .buttons .soft,#play .buttons .primary{font-size:14px}
 #gameCards .other{padding-right:44px}
 #gameCards .fav{font-size:27px;right:0}
 .old10{margin-top:26px;padding:21px 17px}
 .old10 .copy10 p{line-height:1.6}
}
@media screen and (max-width:370px){
 .brand{font-size:27px}
 .brand svg{width:40px}
 .actions .icon{width:22px;height:22px}
 .cards .other,.other-list .other{padding:13px 10px;gap:9px}
 .cards .art,.other-list .art,.bar9 .art,.bar9 svg{width:58px;height:58px;border-radius:15px}
 .cards .other b,.other-list .other b{font-size:17px}
 .cards .other small,.other-list .other small,#gameCards .item a small{font-size:14px}
 .modes button,#date{font-size:12px}
 .partners a{font-size:14px;padding:10px 6px;gap:6px}
 .partners img{width:35px;height:35px}
 .shortcuts9 a,.sidehead a{font-size:13px}
 .intro{font-size:13px}
 #jatekok>.filters button{font-size:13px;padding-inline:9px}
}
