/*
 * The pages around the game: the hall of fame, the terms, the privacy page.
 * The game's own look: dark wood, brass, paper; Alegreya and Alegreya Sans.
 *
 * They open on anything, a TV's old browser among them, so this file is
 * written like tv.css: literal colours, no variables, nothing newer than
 * tables and floats for layout. The dark colours are the listed ones of
 * server/tones.js, so the server can serve the page in an experience's tone.
 */

* { box-sizing: border-box; }

html { background: #0b0e13; }
body {
  margin: 0;
  background: #0b0e13;
  color: #eadfc6;
  font-family: 'Alegreya Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 19px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

a { color: #ecc76b; }
a:focus { outline: 2px solid #ecc76b; outline-offset: 2px; }

/* The picture of the game, behind the top of a page that asks for it, going into the dark. */
.cover {
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 460px;
  background-position: center 22%;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.5;
}
.cover:after {
  content: '';
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(11, 14, 19, 0.55) 0%, rgba(11, 14, 19, 0.7) 45%, #0b0e13 100%);
}

.top, main, .foot { position: relative; max-width: 780px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

.top { padding-top: 16px; padding-bottom: 14px; border-bottom: 1px solid #7d6530; overflow: hidden; }
.top .brand {
  float: left;
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 1px;
  color: #ecc76b;
  text-decoration: none;
}
.top .play { float: right; margin-top: 3px; font-size: 17px; font-weight: 700; }

main { padding-top: 26px; padding-bottom: 30px; }

h1 {
  margin: 0 0 6px;
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 44px;
  line-height: 1.05;
  color: #ecc76b;
}
h2 {
  margin: 30px 0 8px;
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.15;
  color: #c9a24b;
}
p { margin: 0 0 12px; }
ul { margin: 0 0 12px; padding-left: 22px; }
li { margin-bottom: 7px; }
b { color: #eadfc6; }
.lead { font-size: 21px; color: #eadfc6; }
.updated { color: #8f9aaa; font-size: 16px; margin-bottom: 18px; }

.foot { padding-top: 16px; padding-bottom: 34px; border-top: 1px solid #334152; font-size: 17px; }
.foot a { display: inline-block; margin: 0 18px 8px 0; color: #8f9aaa; }
.foot a:hover { color: #ecc76b; }

/* ---- the hall of fame ---- */

.hero { padding: 30px 0 8px; text-align: center; }
.hero h1 { font-size: 62px; }
.hero .lead { max-width: 520px; margin: 10px auto 0; font-size: 19px; color: #eadfc6; }

.board { margin-top: 26px; }
.board h2 { margin: 0; text-align: center; font-size: 30px; color: #eadfc6; }
.board .count { margin: 2px 0 12px; text-align: center; color: #8f9aaa; }
.board .none { margin: 14px 0; padding: 22px 16px; text-align: center; background: #131922; border: 1px dashed #334152; border-radius: 8px; color: #8f9aaa; }

/* The halls of fame of several games: a card for each, which leads to that game's own list. And on a game's own
   list, the way back to them. */
.fame-cards { margin: 22px -8px 0; text-align: center; }
.fame-card {
  display: inline-block; width: 300px; max-width: 100%; margin: 8px; padding: 0 0 16px; vertical-align: top; overflow: hidden;
  background: #131922; border: 2px solid #334152; border-radius: 10px; color: #eadfc6; text-align: left; text-decoration: none;
}
.fame-card:hover, .fame-card:focus { border-color: #ecc76b; }
.fame-card .pic { display: block; height: 170px; margin: 0 0 12px; background: #161c25 62% 40% no-repeat; background-size: cover; }
.fame-card b { display: block; padding: 0 16px 6px; font-family: 'Alegreya', Georgia, serif; font-weight: 900; font-style: italic; font-size: 26px; line-height: 1.15; }
.fame-card .count { display: block; padding: 0 16px; color: #8f9aaa; }
.fame-card .best { display: block; padding: 4px 16px 0; color: #eadfc6; }
.fame-card .best i { font-family: 'Alegreya', Georgia, serif; font-weight: 900; font-style: normal; font-size: 22px; color: #ecc76b; }
.fame-back { margin: 0 0 4px; text-align: center; }
.fame-back a { color: #8f9aaa; }
.fame-back a:hover, .fame-back a:focus { color: #ecc76b; }

.fame { width: 100%; border-collapse: collapse; font-feature-settings: 'lnum' 1, 'tnum' 1; }
.fame th {
  padding: 6px 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: left;
  color: #8f9aaa;
  border-bottom: 1px solid #7d6530;
}
.fame td { padding: 10px 10px; border-bottom: 1px solid #1d2632; vertical-align: middle; }
.fame tr:nth-child(even) td { background: #0f141b; }
.fame .n { width: 52px; text-align: center; }
.fame td.n { font-family: 'Alegreya', Georgia, serif; font-weight: 900; color: #8f9aaa; }
.fame td.t { font-weight: 700; color: #eadfc6; word-break: break-word; }
.fame .h { width: 96px; text-align: center; }
.fame td.h { color: #8f9aaa; }
.fame .ms { width: 96px; text-align: right; }
.fame td.ms { font-family: 'Alegreya', Georgia, serif; font-weight: 900; font-size: 22px; color: #eadfc6; }
/* A group that did not get out: on the list, with no place and no time. */
.fame .lost td.t { font-weight: 400; color: #8f9aaa; }
.fame .lost td.ms { font-family: inherit; font-weight: 400; font-size: 16px; color: #8f9aaa; white-space: nowrap; }
/* The first three wear brass. */
.fame .top td.n { background: #c9a24b; border-bottom-color: #7d6530; color: #0b0e13; font-size: 21px; }
.fame .top td.t, .fame .top td.ms { color: #ecc76b; }

/* "Play too": one link to the shop, as a plate with a brass edge. Above the list and under it. */
.strip {
  display: block;
  overflow: hidden;
  margin: 26px 0 0;
  padding: 14px 18px 16px;
  background: #131922;
  border: 1px solid #7d6530;
  border-left: 5px solid #c9a24b;
  border-radius: 8px;
  color: #eadfc6;
  text-decoration: none;
}
.strip:hover, .strip:focus { border-color: #ecc76b; }
.strip .say { float: left; max-width: 58%; }
.strip .say b {
  display: block;
  font-family: 'Alegreya', Georgia, serif;
  font-weight: 900;
  font-style: italic;
  font-size: 30px;
  line-height: 1.1;
  color: #ecc76b;
}
.strip .go {
  float: right;
  margin-top: 10px;
  padding: 11px 18px;
  background: #c9a24b;
  color: #0b0e13;
  border-bottom: 3px solid #7d6530;
  border-radius: 8px;
  font-weight: 700;
}

@media (max-width: 520px) {
  body { font-size: 18px; }
  .top, main, .foot { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 36px; }
  h2 { font-size: 22px; }
  .hero h1 { font-size: 46px; }
  .cover { height: 380px; }
  .strip .say, .strip .go { float: none; display: block; max-width: none; }
  .strip .go { margin-top: 12px; text-align: center; }
  .fame th { padding: 6px 6px; font-size: 13px; letter-spacing: 0; }
  .fame td { padding: 9px 6px; }
  .fame .n { width: 40px; }
  .fame .h { width: 76px; }
  .fame .ms { width: 78px; }
  .fame td.ms { font-size: 20px; }
}
