/* Hexatan client styles (auto-linked by the portal when present). */

/* Nunito (SIL OFL, assets/fonts/LICENSE-Nunito-OFL.txt): bold weights in latin, latin-ext, cyrillic, cyrillic-ext subsets */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/nunito-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/nunito-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/nunito-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: 'Nunito'; font-style: normal; font-weight: 700; font-display: block; src: url('assets/fonts/nunito-cyrillic-ext-700-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: block; src: url('assets/fonts/nunito-latin-800-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: block; src: url('assets/fonts/nunito-latin-ext-800-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: block; src: url('assets/fonts/nunito-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: block; src: url('assets/fonts/nunito-cyrillic-ext-800-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: block; src: url('assets/fonts/nunito-latin-900-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: block; src: url('assets/fonts/nunito-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: block; src: url('assets/fonts/nunito-cyrillic-900-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 900; font-display: block; src: url('assets/fonts/nunito-cyrillic-ext-900-normal.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

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

/* portal chat panel restyled to the parchment & oak palette; position/size are set from JS (chat region) */
#game-chat-div { background: rgba(244, 233, 210, 0.94) !important; border: 3px solid #5B3A21 !important; border-radius: 12px !important; box-sizing: border-box; overflow: hidden; }
/* lobby.css sizes the portal's chat markup for its own 250 px panel (187 px text box, then the input under it). This panel
   follows the chat region, which is often shorter: the input fell out of the clipped box and only the smile button (pinned
   to the bottom) was left. A column instead: the text box takes the leftover height, the input stays at the bottom. */
#game-chat-div { display: flex; flex-direction: column; padding-bottom: 6px; }
#game-chat-div #game-chat-title { flex: none; margin: 0; padding: 6px 12px 2px; color: #3B2A1E; font: 800 14px 'Nunito', sans-serif; }
#game-chat-div #game-chat-text { flex: 1 1 0; min-height: 0; height: auto; width: auto; margin: 2px 6px 0; box-sizing: border-box; border: 1px solid #8A5A33; border-radius: 6px; padding: 2px 6px; overflow-wrap: anywhere; color: #3B2A1E; font: 700 14px 'Nunito', sans-serif; }
#game-chat-div input { font: 700 14px 'Nunito', sans-serif; border: 2px solid #8A5A33; border-radius: 8px; }
#game-chat-div #game-chat-input { flex: none; width: calc(100% - 12px); height: 30px; margin: 6px 6px 0; padding: 0 38px 0 8px; box-sizing: border-box; background: rgba(255, 255, 255, 0.55); color: #3B2A1E; }
#game-chat-div #game-chat-input:focus { outline: none; border-color: #5B3A21; background: #fff; }
/* the smile button sits inside the input's right end (bottom 6 + (30 - 26) / 2, right 6 margin + 2 border + 2) */
#game-chat-div #smiles-btn-open-game { bottom: 8px; right: 10px; }

/* the portal's seat-out / tournament panels stay centred in fullscreen */
#root-div:fullscreen #seatOut, #root-div:-webkit-full-screen #seatOut { left: 50%; top: 50%; transform: translate(-50%, -50%); }
