/* Nunito (SIL OFL, src/fonts/OFL-Nunito.txt), served from satido.lt itself. Variable font, weights 200-1000.
   Chosen because it has every Lithuanian letter (Fredoka lacked ą č ę ė į ų ū). */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/fonts/nunito-latin.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: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(/fonts/nunito-latin-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --sky-1: #EDF2FB;
  --sky-2: #D7E3FC;
  --sky-3: #CCDBFD;
  --sky-4: #C1D3FE;
  --sky-5: #ABC4FF;
  --ink: #1F2A52;
  --ink-soft: #4A5785;
  --white: #FFFFFF;
  --ok: #DDF5E6;
  --ok-ink: #1E5B36;
  --err: #FFE1E1;
  --err-ink: #7A1F1F;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sky-4) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}
a { color: var(--ink); }
.top { width: 100%; max-width: 440px; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; }
.logo { font-size: 28px; font-weight: 700; text-decoration: none; letter-spacing: -0.5px; }
.lang { font-weight: 600; font-size: 14px; text-decoration: none; background: rgba(255,255,255,.7); padding: 6px 12px; border-radius: 999px; }
.card { width: 100%; max-width: 440px; background: var(--white); border-radius: 28px; padding: 28px 24px; box-shadow: 0 12px 40px rgba(31,42,82,.10); }
h1 { margin: 0 0 18px; font-size: 26px; }
h2 { margin: 28px 0 10px; font-size: 18px; padding-top: 20px; border-top: 1px solid var(--sky-2); }
p { line-height: 1.5; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px;
  border: 2px solid #8C9BC0; border-radius: 14px; background: var(--sky-1); color: var(--ink);
}
input:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); background: var(--white); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 16px; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-soft); }
button {
  margin-top: 20px; width: 100%; font: inherit; font-weight: 600; font-size: 17px;
  padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--ink); color: var(--white);
  box-shadow: 0 6px 0 var(--sky-5);
}
button:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sky-5); }
button.danger { background: #8A2B2B; box-shadow: 0 6px 0 #F2B8B8; }
button.ghost { background: var(--sky-1); color: var(--ink); box-shadow: none; border: 2px solid var(--sky-3); }
.notice { padding: 12px 14px; border-radius: 14px; margin-bottom: 14px; font-size: 15px; line-height: 1.4; }
.notice.ok { background: var(--ok); color: var(--ok-ink); }
.notice.error { background: var(--err); color: var(--err-ink); }
.links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: 15px; }
.meta { color: var(--ink-soft); margin-top: -8px; }
.foot { padding: 24px 0 32px; font-size: 13px; color: var(--ink-soft); }
.foot a { color: var(--ink-soft); }
.profile-now { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.profile-now img { border-radius: 50%; image-rendering: pixelated; background: var(--sky-1); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 8px; }
.avatar-choice { margin: 0; cursor: pointer; position: relative; }
.avatar-choice input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-choice img { display: block; width: 100%; height: auto; border-radius: 14px; image-rendering: pixelated; border: 3px solid transparent; }
.avatar-choice input:focus-visible + img { outline: 3px solid var(--ink); outline-offset: 2px; }
.avatar-choice:hover img { border-color: var(--sky-5); }
.avatar-choice input:checked + img { border-color: var(--ink); }
.avatar-grid.accents { grid-template-columns: repeat(5, minmax(0, 64px)); }
.avatar-form fieldset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.avatar-form legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 6px; }
.avatar-now { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.avatar-now img { border-radius: 18px; image-rendering: pixelated; }
#avatar-preview-name { flex: 1; min-width: 8em; font-weight: 600; }
button.dice { width: auto; margin-top: 0; padding: 10px 16px; font-size: 15px; }
input[type=file] { width: 100%; font: inherit; font-size: 14px; }
.crop-box { margin-top: 10px; }
.crop-stage { position: relative; display: inline-block; max-width: 100%; touch-action: none; cursor: crosshair; user-select: none; border-radius: 12px; overflow: hidden; line-height: 0; }
.crop-stage img { display: block; max-width: 100%; max-height: 360px; }
.crop-square { position: absolute; border-radius: 50%; box-shadow: 0 0 0 9999px rgba(31, 42, 82, .5); outline: 3px solid #FFFFFF; pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.crop-zoom input { flex: 1; }
.btn-back { display: block; text-align: center; margin: -4px 0 16px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none; box-shadow: 0 5px 0 var(--sky-5); }
.btn-back:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sky-5); }

/* Rules, privacy and newsletter pages */
.card ul { padding-left: 20px; line-height: 1.5; }
.card li { margin: 4px 0; }
.card code { font-size: 13px; background: var(--sky-1); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere; }
textarea {
  width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; resize: vertical;
  border: 2px solid #8C9BC0; border-radius: 14px; background: var(--sky-1); color: var(--ink);
}
textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink); background: var(--white); }
