@font-face { font-family: Vazirmatn; src: url('/vazirmatn.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 18px; }
html.size-1 { font-size: 21px; }
html.size-2 { font-size: 24px; }
body { margin: 0; background: #F8FBFB; color: #243B40; font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.7; }
#app { max-width: 560px; margin: 0 auto; }
.page { padding: 18px 16px 120px; }
.page > * { margin-bottom: 14px; }
.center { text-align: center; padding: 40px 16px; }
h1 { margin: 0 0 6px; font-size: 1.55rem; color: #2F6F73; }
h2 { margin: 0; font-size: 1.2rem; }
.top { display: grid; grid-template-columns: 1fr auto; grid-gap: 10px; align-items: center; }
button, .btn { display: block; width: 100%; min-height: 58px; padding: 8px 14px; border: 2px solid transparent; border-radius: 16px; background: #BFE6DD; color: #173F43; font: inherit; font-weight: 800; text-align: center; cursor: pointer; }
button:disabled { opacity: .6; }
button.pink { background: #F8D0DA; color: #6B2238; }
button.outline { background: #fff; border-color: #2F6F73; }
button.on { background: #F5BCCB; border-color: #8E3A53; color: #5E1C31; }
button.small { width: auto; min-height: 48px; font-size: .9rem; }
button.big { min-height: 88px; font-size: 1.35rem; border-radius: 22px; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #8E3A53; outline-offset: 2px; }
label { display: block; font-weight: 800; }
input, textarea { display: block; width: 100%; min-height: 58px; margin-top: 4px; padding: 10px 14px; border: 2px solid #5F7B7F; border-radius: 16px; background: #fff; color: #243B40; font: inherit; font-weight: 400; }
textarea { min-height: 90px; resize: vertical; }
.card { padding: 16px; border-radius: 22px; background: #fff; border: 1px solid #DDEBE9; }
.card > * { margin: 0 0 10px; }
.card > *:last-child { margin-bottom: 0; }
.login { min-height: 100vh; padding: 28px 22px; background: #D3EEE7; }
.login > * { margin-bottom: 18px; }
.login h1 { font-size: 2.4rem; text-align: center; }
.login .card > * { margin-bottom: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; }
.tile { min-height: 92px; }
.tile.yellow { background: #FDF0D2; } .tile.blue { background: #E3EDFC; } .tile.green { background: #E2F3E3; } .tile.lilac { background: #F6E4F1; }
.tile span { display: block; font-size: .8rem; font-weight: 400; }
.photo img { display: block; width: 100%; border-radius: 16px; background: #E3F1EF; }
.meta { display: grid; grid-template-columns: 1fr auto; grid-gap: 8px; align-items: center; }
.who { font-weight: 800; color: #8E3A53; }
.muted { color: #4A6367; font-size: .85rem; }
.text { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: break-word; }
.comment { padding: 8px 12px; border-radius: 14px; background: #E6F3F1; }
.bubble { max-width: 85%; margin: 0 0 10px auto; padding: 10px 14px; border-radius: 18px; background: #fff; border: 1px solid #DDEBE9; }
.bubble.mine { margin: 0 auto 10px 0; background: #D8F0EA; }
.link { display: inline-block; width: auto; min-height: 44px; padding: 4px 8px; background: none; color: #8E3A53; font-size: .85rem; text-decoration: underline; }
.composer { position: fixed; bottom: 79px; left: 0; right: 0; max-width: 560px; margin: 0 auto; padding: 8px 12px; background: #F8FBFB; border-top: 1px solid #DDEBE9; display: grid; grid-template-columns: 1fr auto; grid-gap: 8px; }
.composer textarea { min-height: 58px; height: 58px; margin: 0; resize: none; }
.composer button { min-width: 90px; }
.chat-page { padding-bottom: 190px; }
nav { position: fixed; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 4px; padding: 8px; background: #fff; border-top: 2px solid #DDEBE9; }
nav button { background: #fff; min-height: 60px; padding: 4px 0; font-size: .85rem; }
nav button.active { background: #BFE6DD; }
#toast { position: fixed; top: 14px; left: 14px; right: 14px; max-width: 520px; margin: 0 auto; padding: 14px 16px; border: 3px solid #8E3A53; border-radius: 16px; background: #F8D0DA; color: #5E1C31; font-weight: 800; z-index: 10; }
.file { position: absolute; width: 1px; height: 1px; opacity: 0; }

button.yellow { background: #FDF0D2; border-color: #E6C77A; color: #4A3608; }
a.btn { display: block; padding: 14px; text-decoration: none; }
a.btn.pink { background: #F8D0DA; color: #6B2238; }
.three { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 8px; }
.three button { padding: 8px 4px; font-size: .9rem; }
.row { display: grid; grid-template-columns: 1fr auto; grid-gap: 8px; padding: 8px 12px; border-radius: 14px; }
.row.me { background: #D8F0EA; font-weight: 800; }
.cheer { background: #E2F3E3; border-color: #8CC97E; text-align: center; }
.alert { background: #FCE4EA; border: 3px solid #8E3A53; }
.badge { padding: 2px 12px; border-radius: 12px; background: #FDF0D2; font-weight: 800; }
.hidden-item { background: #EEF2F3; border-style: dashed; }
/* sudoku */
.sudoku { display: grid; grid-template-columns: repeat(9, 1fr); border: 3px solid #243B40; background: #243B40; grid-gap: 1px; margin-left: -8px; margin-right: -8px; }
.sudoku button { min-height: 0; height: 2.1rem; padding: 0; border: 0; border-radius: 0; background: #fff; color: #1E6A9C; font-size: 1.15rem; line-height: 1; }
.sudoku button.given { color: #172A2E; background: #F1F6F6; }
.sudoku button.edge-r { margin-right: 2px; }
.sudoku button.edge-b { margin-bottom: 2px; }
.sudoku button.near { background: #DDF1EC; }
.sudoku button.same { background: #FDE7A8; }
.sudoku button.sel { background: #A8DCD1; box-shadow: inset 0 0 0 3px #2F6F73; }
.sudoku button.bad { background: #F8C3D0; color: #7A1230; }
.pad { position: -webkit-sticky; position: sticky; bottom: 79px; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 6px; padding: 6px 0; background: #F8FBFB; }
.pad button { min-height: 50px; padding: 0; font-size: 1.25rem; }
/* crossword */
.cross { display: grid; grid-gap: 2px; margin-left: -8px; margin-right: -8px; }
.cols-5 { grid-template-columns: repeat(5, 1fr); } .cols-6 { grid-template-columns: repeat(6, 1fr); } .cols-7 { grid-template-columns: repeat(7, 1fr); } .cols-8 { grid-template-columns: repeat(8, 1fr); } .cols-9 { grid-template-columns: repeat(9, 1fr); }
.cross .sq { position: relative; min-height: 0; height: 2.2rem; padding: 0; border: 2px solid #5F7B7F; border-radius: 6px; background: #fff; color: #172A2E; }
.cross .sq.near { background: #FDE7A8; border-color: #8E3A53; }
.cross small { position: absolute; top: 0; right: 2px; font-size: .55rem; font-weight: 400; line-height: 1.2; }
.cross b { font-size: 1.1rem; line-height: 2.2rem; }
.hole { background: #E6EFEE; border-radius: 6px; }
button.clue { min-height: 48px; text-align: right; background: #F1F6F6; font-weight: 400; }
button.clue.on { background: #FDE7A8; }
button.clue.solved { background: #E2F3E3; text-decoration: line-through; }
form button { margin-top: 10px; }
/* snakes and ladders */
.board { display: block; width: 100%; height: auto; border: 3px solid #243B40; border-radius: 10px; }
.die { display: block; width: 76px; height: 76px; margin: 0 auto 10px; }
.dot { display: inline-block; width: 14px; height: 14px; margin-left: 8px; border-radius: 7px; }
.dot-0 { background: #C0392B; } .dot-1 { background: #2369A8; } .dot-2 { background: #2E7D32; } .dot-3 { background: #7B3FA0; }
/* colouring */
button.pick { padding: 8px; }
.thumb { display: block; width: 100%; height: auto; margin-bottom: 4px; }
.canvas-box { overflow: auto; -webkit-overflow-scrolling: touch; max-height: 70vh; border: 2px solid #5F7B7F; border-radius: 12px; background: #fff; }
.canvas { display: block; width: 100%; height: auto; }
.canvas.zoom-1 { width: 150%; } .canvas.zoom-2 { width: 220%; } .canvas.zoom-3 { width: 300%; }
.paint-page { padding-left: 8px; padding-right: 8px; }
.palette { position: -webkit-sticky; position: sticky; bottom: 79px; display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 6px; padding: 8px; background: #F8FBFB; border-top: 2px solid #DDEBE9; }
.swatch { min-height: 56px; padding: 2px; border: 3px solid #fff; box-shadow: 0 0 0 1px #5F7B7F; }
.swatch b, .swatch span { display: block; margin: 0 auto; width: -webkit-max-content; width: max-content; min-width: 1.5em; padding: 0 5px; border-radius: 8px; background: rgba(255,255,255,.9); color: #172A2E; line-height: 1.4; }
.swatch span { font-size: .65rem; font-weight: 400; background: rgba(255,255,255,.75); }
.swatch.on { border-color: #243B40; box-shadow: 0 0 0 4px #243B40; }
/* exercise */
.figure { display: block; width: 100%; max-width: 300px; height: auto; max-height: 34vh; margin: 0 auto; }
.count { text-align: center; font-size: 2rem; font-weight: 800; color: #2F6F73; }
progress { display: block; width: 100%; height: 18px; }
/* breathing room inside the unnamed containers that screens fill in later */
.page div:not([class]) > * + * { margin-top: 14px; }
