/* v5.7: the studio's homepage (/, assets/studio/home.js), after common.css. The tavern's look of the whole site (the
   wooden buttons and panels, the cork board, the pixel face); the SCP: NOCLIP block wears its own game's tape look,
   and (v5.8) 《乱世君侯》's its lacquer and cinnabar.
   The curator board and the community cards are the ones Dungeon Tavern's page had until v5.7 (the same rules).
   Works from 360 px wide with no horizontal scroll. Nothing here flashes: the REC dot fades slowly and stops under
   prefers-reduced-motion. */
.home{padding:0}
.home > section{padding-block:96px}
.home > section.home-band{background:var(--stone-2);border-block:2px solid var(--stone-3)}
.px{image-rendering:pixelated;image-rendering:crisp-edges}
.orn{display:block;width:min(320px,100%);height:28px;background:url(/img/ui/ornament.png) center/320px 28px no-repeat}
.home-head{display:grid;gap:14px;max-width:46em;margin-bottom:40px}
.home-head h2{font-size:36px;color:var(--text)}
.home-head p{color:var(--muted)}
.home-head-tight{margin-bottom:0}
.home-acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.home-acts-near{margin-top:12px}
.home .card h3{display:flex;align-items:center;gap:10px}
.home .card h3 svg{width:22px;height:22px;color:var(--honey);flex:none}

/* ---- hero: the motto, and a corner of each game */
.home > section.home-hero{padding-block:64px 80px;overflow:hidden;background:
  radial-gradient(55% 70% at 80% 50%,rgba(239,122,60,.14),transparent 70%),
  radial-gradient(40% 50% at 8% 20%,rgba(242,193,78,.06),transparent 70%),var(--stone)}
.home-hero-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:48px;align-items:center}
.home-hero-copy{display:grid;justify-items:start;min-width:0}
.home-hero h1{font-size:56px;line-height:1.2;margin-block:18px 22px;color:var(--text);text-shadow:0 4px 0 #0d0910}
.home-hero h1 em{font-style:normal;color:var(--honey)}
html[lang="en"] .home-hero h1{font-size:46px}
.home-lede{font-size:17px;max-width:34em}
.home-collage{position:relative;aspect-ratio:12/10;min-width:0}
.home-tile{position:absolute;display:block;line-height:0;text-decoration:none;box-shadow:0 26px 50px rgba(0,0,0,.5)}
.home-tile img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.home-tile-name{position:absolute;left:12px;bottom:10px;font:18px/1.2 var(--pixel);padding:6px 10px;letter-spacing:.04em}
.home-tile-scp{top:0;right:0;width:62%;border:2px solid #3a3526;background:#000;transform:rotate(1.6deg)}
.home-tile-scp .home-tile-name{left:auto;right:12px;background:rgba(18,17,13,.85);color:#dcc46f}
/* v5.8: 《乱世君侯》, the newest game, in front: a thin gold line round a dark mount (as its block below) */
.home-tile-ls{top:17%;left:0;width:66%;z-index:1;border:1px solid #c9a45c;padding:5px;background:#0c0907;transform:rotate(-1.2deg)}
.home-tile-ls .home-tile-name{left:12px;bottom:10px;background:rgba(22,17,13,.88);color:#efe3c8;border-left:3px solid #b23a26;
  font:700 18px/1.2 "Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;letter-spacing:.12em}
html[lang="en"] .home-tile-ls .home-tile-name{font-family:Georgia,"Times New Roman",serif;letter-spacing:.02em;word-spacing:normal}
.home-tile-dt{right:2%;bottom:0;width:58%;z-index:2;border:20px solid transparent;border-image:url(/img/ui/panel_wood.png) 28 fill / 20px round;transform:rotate(1.4deg)}
.home-tile-dt .home-tile-name{background:rgba(26,19,32,.85);color:var(--honey);left:8px;bottom:6px}
.home-bobo{position:absolute;left:70%;bottom:-6px;width:96px;height:auto;z-index:3;pointer-events:none}
/* v5.11.1: "Dungeon Tavern" is twice as long as 地牢酒馆: at the tile's bottom the slime covered its end, so in English
   the name sits at the tile's top left (and the pixel font's wide space is narrowed, as in the English headings) */
html[lang="en"] .home-tile-dt .home-tile-name{top:6px;bottom:auto;word-spacing:-.3em}
@media (hover:hover){.home-tile:hover{z-index:2}.home-tile-dt:hover{z-index:3}.home-tile-scp:hover{border-color:#dcc46f}.home-tile-ls:hover{border-color:#e3c27a}.home-tile-dt:hover{filter:brightness(1.08)}}

/* ---- the games: one wide block each, the picture on alternating sides */
.home-games{list-style:none;margin:0;padding:0;display:grid;gap:56px}
.home-game{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:40px;align-items:center}
.home-game-art{display:block;line-height:0}
.home-game-art img{display:block;width:100%;height:auto;aspect-ratio:16/9}
.home-game-dt .home-game-art{border:28px solid transparent;border-image:url(/img/ui/panel_wood.png) 28 fill / 28px round;box-shadow:0 26px 50px rgba(0,0,0,.45)}
.home-game-body{display:grid;gap:12px;align-content:center;justify-items:start;min-width:0}
.home-game-body h3{font-size:36px;line-height:1.2}
.home-game-body h3 a{color:var(--text);text-decoration:none}
.home-game-body h3 a:hover{color:var(--honey)}
.home-game-body > p:not([class]){color:var(--muted)}
.home-game-status{display:flex;align-items:center;gap:8px;font:15px/1.3 var(--pixel);color:var(--honey);letter-spacing:.06em}
.home-game-tag{font:20px/1.4 var(--pixel);color:var(--cream)}
.home-game .home-acts{margin-top:8px}
.home-facts{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 18px;font-size:14px;color:var(--muted);overflow:hidden}
.home-facts li{position:relative;margin-left:-18px;padding-left:18px}
.home-facts li::before{content:"";position:absolute;left:7px;top:50%;width:4px;height:4px;margin-top:-2px;background:var(--honey)}

/* SCP: NOCLIP in its own look (the tokens of assets/scp-noclip/scp-noclip.css): dark tape, the Backrooms' yellow */
.home-game-scp{--scp-bg:#12110d;--scp-line:#3a3526;--scp-text:#eee6cf;--scp-muted:#b3aa8f;--scp-accent:#dcc46f;--scp-red:#e0473a;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);background:var(--scp-bg);border:2px solid var(--scp-line);padding:28px;
  box-shadow:0 26px 50px rgba(0,0,0,.45)}
.home-game-scp .home-game-art{order:2;border:2px solid var(--scp-line);background:#000}
.home-game-scp .home-game-body h3{font-family:var(--pixel);letter-spacing:.06em;text-shadow:2px 0 rgba(224,71,58,.55),-2px 0 rgba(90,170,220,.45)}
.home-game-scp .home-game-body h3 a{color:var(--scp-text)}
.home-game-scp .home-game-body h3 a:hover{color:var(--scp-accent)}
.home-game-scp .home-game-status{color:var(--scp-muted)}
.home-game-scp .home-game-tag{color:var(--scp-accent)}
.home-game-scp .home-game-body > p:not([class]),.home-game-scp .home-facts{color:var(--scp-muted)}
.home-game-scp .home-facts li::before{background:var(--scp-red)}
.home-rec{flex:none;width:10px;height:10px;border-radius:50%;background:var(--scp-red);box-shadow:0 0 8px rgba(224,71,58,.7);animation:home-rec 2.4s ease-in-out infinite}
@keyframes home-rec{50%{opacity:.35}}
/* its buttons: flat, the game's own (as on its page) */
.home-game-scp .btn{border:2px solid var(--scp-accent);border-image:none;background:var(--scp-accent);color:#17150f;text-shadow:none;
  min-height:48px;padding:0 20px;box-shadow:4px 4px 0 #000}
.home-game-scp .btn:hover{background:#ecd685;border-color:#ecd685;color:#17150f}
.home-game-scp .btn:active{transform:translate(2px,2px);box-shadow:2px 2px 0 #000}
.home-game-scp .btn-alt{background:transparent;color:var(--scp-accent);filter:none}
.home-game-scp .btn-alt:hover{background:#26231a;color:var(--scp-accent)}
.home-game-scp :focus-visible{outline-color:var(--scp-accent)}

/* v5.8: 《乱世君侯》 in its own look (the tokens of assets/luanshi-junhou/luanshi-junhou.css): dark lacquer, parchment,
   cinnabar and a thin gold line; its picture on the right, so the three blocks alternate */
.home-game-ls{--ls-bg:#16110d;--ls-bg-3:#2b2119;--ls-line:#4a3a28;--ls-gold:#c9a45c;--ls-text:#efe3c8;--ls-muted:#bfae90;--ls-red:#b23a26;--ls-red-2:#d0533a;
  --ls-serif:"Noto Serif SC","Source Han Serif SC","Songti SC","STSong","SimSun",serif;
  grid-template-columns:minmax(0,5fr) minmax(0,7fr);background:var(--ls-bg);border:1px solid var(--ls-line);border-top:3px solid var(--ls-red);padding:28px;
  box-shadow:0 26px 50px rgba(0,0,0,.45)}
.home-game-ls .home-game-art{order:2;border:1px solid var(--ls-gold);padding:5px;background:#0c0907}
.home-game-ls .home-game-body h3{font-family:var(--ls-serif);font-weight:700;letter-spacing:.12em}
/* v5.11: the game page's look: its brush title (Ma Shan Zheng, the subset in /fonts/) and its burning river behind the
   words, faint */
@font-face{font-family:"LS Brush";src:url(/fonts/mashanzheng-ls-v511.woff) format("woff");font-display:swap}
.home-game-ls{background:linear-gradient(90deg,rgba(22,17,13,.97) 0%,rgba(22,17,13,.9) 45%,rgba(22,17,13,.72) 100%),
  url(/img/games/luanshi-junhou/art/hero.webp) 70% 60%/cover no-repeat,var(--ls-bg)}
.home-game-ls .home-game-body h3{font-family:"LS Brush",var(--ls-serif);font-weight:400;font-synthesis:none;font-size:clamp(34px,3.6vw,44px);line-height:1.1;letter-spacing:.06em}
html[lang="en"] .home-game-ls .home-game-body h3{letter-spacing:.02em}
/* English: a Latin serif first, and normal word spacing (common.css narrows the pixel font's spaces with -.3em,
   which swallows this serif's spaces: "LuanshiJunhou") */
html[lang="en"] .home-game-ls{--ls-serif:Georgia,"Times New Roman","Noto Serif SC","Source Han Serif SC","Songti SC","SimSun",serif}
html[lang="en"] .home-game-ls :is(h3,.btn){word-spacing:normal}
.home-game-ls .home-game-body h3 a{color:var(--ls-text)}
.home-game-ls .home-game-body h3 a:hover{color:var(--ls-gold)}
.home-game-ls .home-game-status{color:var(--ls-gold)}
.home-game-ls .home-game-tag{font-family:var(--ls-serif);color:var(--ls-gold)}
.home-game-ls .home-game-body > p:not([class]),.home-game-ls .home-facts{color:var(--ls-muted)}
.home-game-ls .home-facts li::before{background:var(--ls-red-2)}
.home-ls-mark{flex:none;width:9px;height:9px;background:var(--ls-red-2);transform:rotate(45deg)}
/* its buttons: cinnabar with a gold edge (as on its page) */
.home-game-ls .btn{border:1px solid var(--ls-gold);border-image:none;border-radius:4px;background:linear-gradient(180deg,var(--ls-red-2),var(--ls-red));
  color:#fbeedb;text-shadow:none;min-height:48px;padding:0 20px;font-family:var(--ls-serif);font-weight:700;box-shadow:0 0 0 1px #000,0 6px 14px rgba(0,0,0,.45)}
.home-game-ls .btn:hover{filter:brightness(1.12);color:#fbeedb}
.home-game-ls .btn-alt{background:transparent;color:var(--ls-text);border-color:var(--ls-line)}
.home-game-ls .btn-alt:hover{border-color:var(--ls-gold);color:var(--ls-gold);filter:none}
.home-game-ls :focus-visible{outline-color:var(--ls-gold)}

/* the registry's other games (home.js), and the way to /games/ */
.home-more{list-style:none;margin:48px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:24px}
.home-more-game{display:grid;gap:12px;align-content:start;min-width:0}
.home-more-art{display:block;line-height:0;border:2px solid var(--stone-3)}
.home-more-art img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.home-more-body{display:grid;gap:8px;justify-items:start}
.home-more-body h3 a{color:var(--text);text-decoration:none}
.home-more-body > p:not([class]){color:var(--muted);font-size:15px}
.home-all{margin-top:40px;text-align:right;font:18px/1.3 var(--pixel)}

/* ---- curator: the guild cork board */
.home-curator{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:48px;align-items:start}
.home-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-block:28px 8px}
.asof{font-size:12px;color:var(--muted)}
.cork{border:28px solid transparent;border-image:url(/img/ui/panel_wood.png) 28 fill / 28px round;position:relative}
.cork-in{background:url(/img/ui/cork.png) 0 0/256px 256px;image-rendering:pixelated;padding:28px 22px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.note{position:relative;border:20px solid transparent;border-image:url(/img/ui/panel_parchment.png) 20 fill / 14px stretch;color:var(--ink);padding:6px 4px 2px;box-shadow:0 8px 14px rgba(40,22,10,.35);display:grid;gap:4px;image-rendering:auto}
.note:nth-child(odd){transform:rotate(-1.2deg)}
.note:nth-child(even){transform:rotate(1deg)}
.note::before{content:"";position:absolute;top:-22px;left:50%;width:12px;height:12px;margin-left:-6px;background:#c8413b;box-shadow:inset -3px -3px 0 #8a2622,inset 3px 3px 0 #f07a6a}
.note h3{font-size:18px;color:var(--ink)}
.note p{font-size:13px;line-height:1.6;color:var(--ink-2)}
.note.wide{grid-column:1/-1}
.note.wide h3{font-size:24px}

/* ---- on this site: the other pages */
.home-links{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:20px}
.home-links li{display:grid;min-width:0}
a.home-link{color:var(--text);text-decoration:none}
a.home-link h3{color:var(--text)}
@media (hover:hover){a.home-link:hover{filter:brightness(1.15)}a.home-link:hover h3{color:var(--honey)}}

/* ---- community: the door */
.contact{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.card .val{font:18px/1.4 var(--pixel);color:var(--cream);overflow-wrap:anywhere;user-select:all}
.card .qq-name{font-size:13px;color:var(--muted);margin-top:6px;margin-bottom:-6px}
.copy{font:14px/1 var(--pixel);color:var(--honey);background:none;border:0;padding:6px 0;cursor:pointer;text-align:left;justify-self:start}
.copy:hover{color:var(--cream)}
.card a.go{font:18px/1.4 var(--pixel);word-break:break-all}
.forum-card{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 28px}
.forum-card > div{display:grid;gap:8px}
.forum-card p{max-width:52em}
.home-top{margin-top:40px;text-align:right;font-size:14px}

/* the order notice (home.js), as assets/shop/home.css draws it on Dungeon Tavern's page */
.shop-pending{background:var(--stone-2);border-bottom:2px solid var(--stone-3);padding-block:10px;font-size:15px}
.shop-pending a{color:var(--honey)}

/* 「最新动态」 (home.js): the strip of Dungeon Tavern's page (assets/home/site.css), at the top of <main> */
section.news-strip{padding-block:18px;background:var(--stone-2);border-bottom:2px solid var(--stone-3)}
.news-in{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px 24px}
.news-h{margin:0;font:18px/1.3 var(--pixel);color:var(--honey);letter-spacing:.06em}
.news-list{margin:0;padding:0;list-style:none;display:grid;gap:4px;min-width:0}
.news-list li{display:flex;gap:12px;align-items:baseline;min-width:0}
.news-list time{flex:0 0 auto;color:var(--muted);font-size:14px}
.news-list a{color:var(--cream);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.news-list a:hover{color:var(--honey)}
.news-more{margin:0;display:flex;gap:16px;font-size:14px;white-space:nowrap}

@media (max-width:1020px){
  .home-hero-grid{grid-template-columns:1fr;gap:40px}
  .home-hero h1,html[lang="en"] .home-hero h1{font-size:46px}
  .home-collage{max-width:620px;width:100%;justify-self:center}
  .home-game,.home-game-scp,.home-game-ls{grid-template-columns:1fr;gap:24px}
  .home-game-scp .home-game-art,.home-game-ls .home-game-art{order:0}
  .home-curator{grid-template-columns:1fr}
  .contact{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .news-in{grid-template-columns:1fr}
  .news-list a{white-space:normal}
  .news-more{flex-wrap:wrap;white-space:normal}
  .news-list li,.news-more a{min-height:24px}
}
@media (max-width:640px){
  .home > section{padding-block:64px}
  .home > section.home-hero{padding-block:36px 56px}
  .home-hero h1,html[lang="en"] .home-hero h1{font-size:36px}
  .home-head h2{font-size:30px}
  .home-game-body h3{font-size:30px}
  .home-game-dt .home-game-art{border-width:14px;border-image-width:14px}
  .home-game-scp,.home-game-ls{padding:16px}
  .home-tile-dt{border-width:12px;border-image-width:12px}
  .home-tile-name{font-size:15px;padding:4px 8px}
  .home-tile-scp .home-tile-name{top:8px;bottom:auto} /* the tavern covers its lower left corner more here */
  .home-bobo{width:72px}
  .home-stats{gap:10px}
  .home-stats .stat{padding-left:10px}
  .home-stats .stat b{font-size:24px}
  .cork-in{grid-template-columns:1fr;padding:22px 14px}
  .contact{grid-template-columns:1fr}
  .forum-card{grid-template-columns:1fr}
  .forum-card .btn{justify-self:start}
}
@media (prefers-reduced-motion:reduce){.home-rec{animation:none}.home-game-scp .btn:active{transform:none}}
