/* TopHop — page layout: the game canvas is centred and scaled to fit the window. */

/* The game's font: Fredoka, a rounded typeface (SIL Open Font License, fonts/Fredoka-LICENSE.txt),
   shipped with the game so it works offline. One variable file covers every weight from 300 to 700. */
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(../fonts/Fredoka.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url(../fonts/Fredoka-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

html, body { margin: 0; height: 100%; background: #f6eef6; overflow: hidden; font-family: 'Fredoka', ui-rounded, sans-serif; }
body { display: flex; align-items: center; justify-content: center; }
canvas { display: block; }

/* Chat box in the online room (js/chat.js) */
.chat-box {
  position: fixed; display: none; left: 16px; bottom: 16px;
  width: min(440px, calc(100vw - 32px)); height: 48px; box-sizing: border-box; padding: 0 14px;
  -webkit-appearance: none; appearance: none; background-clip: padding-box;
  border: 2px solid #9a84d6; border-radius: 22px; background: rgba(255, 255, 255, 0.96); color: #4a3b63; outline: none;
  font-family: 'Fredoka', ui-rounded, sans-serif; font-weight: 600; font-size: 19px;
}
.chat-box::placeholder { color: rgba(74, 59, 99, 0.45); }
/* Private room password box (js/private.js) */
.priv-box {
  position: fixed; display: none; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, 86vw); box-sizing: border-box; padding: 26px 28px 20px; text-align: center;
  background: #ffffff; border: 3px solid #9a84d6; border-radius: 26px; box-shadow: 0 8px 0 #c8b6f2;
  font-family: 'Fredoka', ui-rounded, sans-serif; color: #4a3b63;
}
.priv-title { font-weight: 700; font-size: 28px; letter-spacing: 1px; }
.priv-sub { font-weight: 600; font-size: 14px; color: rgba(74, 59, 99, 0.6); margin: 4px 0 16px; }
.priv-input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 48px; box-sizing: border-box; padding: 0 18px;
  border: 2px solid #9a84d6; border-radius: 24px; outline: none; background: #faf7ff; color: #4a3b63;
  font-family: 'Fredoka', ui-rounded, sans-serif; font-weight: 600; font-size: 19px; text-align: center;
}
.priv-input:focus { border-color: #6cbf9f; background: #ffffff; }
.priv-input::placeholder { color: rgba(74, 59, 99, 0.4); }
.priv-hint { font-weight: 600; font-size: 13px; color: rgba(74, 59, 99, 0.5); margin-top: 12px; }
