/* The website, built from the game's own rendered wood, iron and parchment. */
@font-face { font-family: Cinzel; src: url(assets/Cinzel.ttf); font-weight: 400 900; font-display: swap; }
@font-face { font-family: Alegreya; src: url(assets/Alegreya.ttf); font-weight: 400 900; font-display: swap; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: #f5e6bd; font: 500 19px/1.5 Alegreya, Georgia, serif; text-align: center;
  background: radial-gradient(circle at 50% 0%, #5a2b10 0%, #1c120a 520px, #0d0907 100%) fixed; }
a { color: #ffcc61; }
h1, h2, h3, .big { font-family: Cinzel, Georgia, serif; font-weight: 800; }
h1 { margin: 0 0 8px; font-size: clamp(44px, 10vw, 112px); line-height: 1; letter-spacing: 4px; color: #ffcc61;
  text-shadow: 0 4px 0 #3a1c06, 0 0 40px rgba(255, 150, 40, .45); }
.logo { display: block; width: min(780px, 94vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
main.gate .logo { width: min(620px, 94vw); }
h2 { margin: 0 0 18px; font-size: clamp(28px, 4vw, 40px); color: #ffcc61; }
main.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.panel { border: 24px solid transparent; border-image: url(assets/panel.png) 40 fill / 24px round; padding: 12px 20px; }
.parchment { border: 24px solid transparent; border-image: url(assets/parchment.png) 40 fill / 24px round; color: #301a0a; padding: 4px 16px; }
.big { display: inline-block; min-width: 260px; margin: 8px; padding: 2px 26px; font-size: 24px; line-height: 44px; color: #f5e6bd;
  text-decoration: none; cursor: pointer; background: none; border: 18px solid transparent;
  border-image: url(assets/button.png) 20 40 fill / 18px 40px stretch; border-left-width: 40px; border-right-width: 40px;
  text-shadow: 0 2px 0 #140a02; transition: transform .08s; }
.big:hover { transform: scale(1.04); border-image-source: url(assets/button_hover.png); color: #fff2b8; }
.big.red { border-image-source: url(assets/button_red.png); }
.big.red:hover { border-image-source: url(assets/button_red_hover.png); }
.big.huge { font-size: 38px; line-height: 62px; min-width: 360px; }
.link { background: none; border: 0; color: #ffcc61; font: inherit; text-decoration: underline; cursor: pointer; }
.small { color: #bfae88; font-size: 16px; }
input { display: block; width: 300px; margin: 0 auto 10px; padding: 12px; text-align: center; font: 800 26px Cinzel, Georgia, serif;
  color: #301a0a; background: #e9d6a4; border: 3px solid #9d7938; border-radius: 6px; }
#error { color: #ffb08a; min-height: 1.5em; }
[hidden] { display: none !important; }

/* front page */
header { padding: 64px 16px 8px; position: relative; }
.account { position: absolute; top: 10px; right: 14px; }
.account .big { min-width: 130px; font-size: 19px; line-height: 34px; }
.tagline { font-size: clamp(20px, 2.6vw, 28px); margin: 14px auto 10px; max-width: 760px; }
.host { display: block; width: min(1100px, 96%); height: auto; margin: 10px auto 0; image-rendering: auto; }
.online { margin: 0 0 6px; font-weight: 700; color: #a6e57f; }
.online.asleep { color: #bfae88; font-weight: 500; }
nav { margin-top: 6px; }
section { max-width: 1080px; margin: 56px auto; padding: 0 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.cards h3 { margin: 4px 0 6px; font-size: 22px; color: #ffcc61; }
.races { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.races img { width: 92px; height: auto; }
.races b { display: block; font: 800 21px Cinzel, Georgia, serif; color: #ffcc61; }
.races span { font-size: 17px; color: #d9c79d; }
.lead { max-width: 760px; margin: 0 auto 22px; }
#log { max-width: 820px; margin: 0 auto; text-align: left; }
#log details { margin-bottom: 14px; border-image: url(assets/panel.png) 40 / 24px round; background: #1d1209; background-clip: padding-box; }
#log summary { cursor: pointer; font: 800 23px Cinzel, Georgia, serif; color: #ffcc61; padding: 6px 0; }
#log summary span { font: 500 16px Alegreya, Georgia, serif; color: #bfae88; margin-left: 10px; }
#log h4 { margin: 14px 0 4px; font: 800 15px Cinzel, Georgia, serif; letter-spacing: 1px; color: #f5e6bd; }
#log h4.buffs { color: #9fe06a; }
#log h4.nerfs { color: #ff9a76; }
#log h4.fixes { color: #8ccfff; }
#log ul { margin: 0; padding-left: 22px; }
.matches { max-width: 980px; margin: 0 auto; width: 100%; text-align: left; }
.match { margin-bottom: 12px; background: #1d1209; border: 2px solid #9d7938; border-radius: 8px; }
.match summary { cursor: pointer; padding: 10px 16px; }
.match summary b { font: 800 19px Cinzel, Georgia, serif; color: #ffcc61; margin-right: 12px; }
.match .when { float: right; color: #bfae88; font-size: 15px; }
.match .who { display: block; color: #e8d9ae; }
.match .won { color: #a6e57f; font-weight: 700; }
.scroll { overflow-x: auto; padding: 0 16px 12px; }
.match table { width: 100%; border-collapse: collapse; font-size: 16px; }
.match th, .match td { text-align: right; padding: 4px 8px; border-bottom: 1px solid #4a3418; white-space: nowrap; }
.match th:first-child, .match td:first-child { text-align: left; }
.match th { color: #bfae88; font-weight: 500; }
label.mine { display: block; margin: 6px 0 14px; }
label.mine input { display: inline; width: auto; margin-right: 8px; }
footer { padding: 30px 16px 40px; color: #8f805f; font-size: 15px; }
