/* Fogline client styles (loaded by online-html.phtml next to client.js). Fonts are OFL, self-hosted subsets. */
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: block; src: url('assets/fonts/oswald-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: block; src: url('assets/fonts/oswald-latin-ext-500-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: block; src: url('assets/fonts/oswald-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: block; src: url('assets/fonts/oswald-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: block; src: url('assets/fonts/oswald-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 600; font-display: block; src: url('assets/fonts/oswald-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400; font-display: block; src: url('assets/fonts/roboto-condensed-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400; font-display: block; src: url('assets/fonts/roboto-condensed-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 400; font-display: block; src: url('assets/fonts/roboto-condensed-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/roboto-condensed-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/roboto-condensed-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Roboto Condensed'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/roboto-condensed-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/caveat-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/caveat-cyrillic-700-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* the lobby forces crisp-edges on every canvas (lobby.css); the art must be smoothed */
#game-div canvas.fog-canvas { image-rendering: auto !important; display: block; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }

/* No chat panel: the portal's chat element becomes a slim paper-and-brass input bar (multiplayer only; the lines show as
   balloons on the canvas). Position, size and font size come from JS (layout: chatBar); sizes below are in em. */
#game-chat-div.fog-chatbar { display: flex; align-items: center; gap: 0.45em; padding: 0 0.4em 0 0.5em; box-sizing: border-box; overflow: hidden; z-index: 2;
	background: linear-gradient(#f3ead2, #d8c69b) !important; border: 2px solid #5e4a2a !important; border-radius: 10px !important;
	box-shadow: 0 0.15em 0.5em rgba(0, 0, 0, 0.5); font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; }
#game-chat-div.fog-chatbar #game-chat-title, #game-chat-div.fog-chatbar #game-chat-text, #game-chat-div.fog-chatbar #smiles-btn-open-game { display: none !important; }
#game-chat-div.fog-chatbar #game-chat-input { flex: 1 1 0; width: 0; min-width: 0; height: 70%; margin: 0; padding: 0 0.6em; box-sizing: border-box;
	font: 400 1em 'Roboto Condensed', 'Arial Narrow', sans-serif; color: #2b2a26; background: #fffaf0; border: 1px solid #8a7446; border-radius: 6px; outline: none; }
#game-chat-div.fog-chatbar #game-chat-input:focus { box-shadow: 0 0 0 2px #c9a14a; }
#game-chat-div.fog-chatbar #game-chat-input::placeholder { color: #8a7c60; opacity: 1; }
#game-chat-div.fog-chatbar #fog-chat-send { flex: 0 0 auto; height: 70%; margin: 0; padding: 0 0.8em; box-sizing: border-box; cursor: pointer;
	font: 600 0.9em 'Oswald', 'Arial Narrow', sans-serif; color: #33240c; background: linear-gradient(#fff0b8, #d9aa48 42%, #8a6120 60%, #e0bb62);
	border: 1px solid #4d3410; border-radius: 6px; }
#game-chat-div.fog-chatbar #fog-chat-send:hover { filter: brightness(1.08); }
#game-chat-div.fog-chatbar #fog-chat-send:active { transform: translateY(1px); }
/* chat-banned: the portal's notice (inline-styled) replaces the input */
#game-chat-div.fog-chatbar > span { color: #8e2a21 !important; font-size: 0.75em !important; padding: 0 0.6em !important; }

/* formation code entry */
#fg-code-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(420px, 86%);
	padding: 18px; box-sizing: border-box; background: linear-gradient(#f6efdc, #dccba0); border: 2px solid #5e4a2a; border-radius: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.65); font-family: 'Roboto Condensed', 'Arial Narrow', sans-serif; }
#fg-code-box label { grid-column: 1 / 3; font: 600 20px 'Oswald', sans-serif; color: #2b2a26; text-align: center; }
#fg-code-box input { grid-column: 1 / 3; height: 42px; padding: 0 12px; box-sizing: border-box; font-size: 17px; text-transform: uppercase; border: 2px solid #8a7446; border-radius: 8px; background: #fffaf0; color: #2b2a26; outline: none; width: 100%; }
#fg-code-box.bad input { border-color: #b3291c; background: #fbe6e0; }
#fg-code-box button { height: 42px; cursor: pointer; font: 600 17px 'Oswald', sans-serif; color: #33240c; border: 1px solid #4d3410; border-radius: 8px; background: linear-gradient(#fff0b8, #d9aa48 42%, #8a6120 60%, #e0bb62); }
#fg-code-box button.no { background: linear-gradient(#f6efdc, #cdbb92); }
