/* One look for every Ludowars page */
:root {
    --bg: #fafbfa;
    --ink: black;
    --muted: #6b6b6b;
    --line: #dddddd;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: helvetica, arial, sans-serif;
    font-size: 18px;
    line-height: 1.4;
}
.page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px 60px 16px;
}
h1 {
    font-size: 40px;
    margin: 10px 0 20px 0;
}
h2 {
    font-size: 26px;
    margin: 36px 0 10px 0;
}
h3 {
    margin: 24px 0 8px 0;
}
a {
    color: blue;
}
img, canvas {
    max-width: 100%;
}
canvas {
    height: auto;
}
.detail {
    font-size: 85%;
    font-weight: bold;
    color: var(--muted);
}
.error {
    color: red;
    font-weight: bold;
}
.note {
    color: green;
    font-weight: bold;
}
.winner {
    font-weight: bold;
}
pre {
    background: white;
    border: 1px solid var(--line);
    padding: 8px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.3;
}
code {
    font-size: 90%;
}
.code-panel {
    max-height: 340px;
    overflow: auto;
    text-align: left;
    font-weight: normal;
}
table {
    border-collapse: collapse;
    width: 100%;
}
th, td {
    padding: 4px 8px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
td.number, th.number {
    text-align: right;
}
.scroll {
    overflow-x: auto;
}
button, input[type=submit], input[type=button] {
    font: inherit;
    font-size: 90%;
    padding: 4px 12px;
    border: 1px solid black;
    background: white;
    cursor: pointer;
}
button:disabled, input[type=submit]:disabled {
    opacity: .5;
    cursor: default;
}
button.on {
    background: black;
    color: white;
}
input[type=text], input[type=password], input[type=email], textarea, select {
    font: inherit;
    padding: 4px;
    margin: 2px 0;
    max-width: 100%;
}
textarea {
    width: 100%;
    font-family: monospace;
    font-size: 13px;
}
label {
    display: block;
    margin-top: 8px;
}

/* the player colours: yellow can only be read as a chip */
.chip {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid black;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}
.yellow { background: yellow; color: black; }
.green { background: green; color: white; }
.red { background: red; color: white; }
.blue { background: blue; color: white; }

/* a board with its controls beside it, or above it on a phone */
.game {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    align-items: flex-start;
    margin: 12px 0;
}
.game canvas {
    width: 460px;
    flex: 0 1 460px;
    min-width: 0;
}
.game-side {
    flex: 1 1 170px;
    max-width: 300px;
    min-width: 170px;
}
.game-side .chip {
    display: block;
    margin: 3px 0;
    text-align: left;
    overflow-wrap: anywhere;
}
.game-side h3 {
    margin-top: 12px;
}
.speed button {
    display: block;
    width: 100%;
    margin: 3px 0;
    text-align: left;
}
.call-to-action {
    display: inline-block;
    margin: 4px;
    padding: 8px 16px;
    border: 1px solid black;
    background: white;
    color: black;
    font-weight: bold;
    text-decoration: none;
}
.call-to-action:hover {
    background: black;
    color: white;
}
.steps > li {
    margin-bottom: 14px;
}

/* the banner on every page */
.banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
    padding: 6px 12px;
    background: white;
    border-bottom: 1px solid black;
    font-size: 16px;
}
.banner a, .banner-menu-button {
    font: inherit;
    font-weight: bold;
    color: black;
    text-decoration: none;
    background: none;
    border: 1px solid transparent;
    padding: 4px 10px;
    cursor: pointer;
    white-space: nowrap;
}
.banner a:hover, .banner-menu-button:hover, .banner .current {
    background: black;
    color: white;
}
.banner .banner-home {
    font-size: 18px;
    margin-right: 8px;
}
.banner-menu {
    position: relative;
}
.banner-right {
    margin-left: auto;
}
.banner-panel {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 4px;
    background: white;
    border: 1px solid black;
}
.banner-right .banner-panel {
    left: auto;
    right: 0;
    min-width: 260px;
    padding: 10px;
}
.banner-panel a {
    display: block;
}
.banner-panel form input[type=email] {
    width: 100%;
}
.banner-panel p {
    margin: 6px 0;
    font-size: 15px;
    font-weight: normal;
}
.banner-user {
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
}
[hidden] {
    display: none !important;
}
[v-cloak] {
    display: none;
}
