:root { --bg: #f5f3ed; --paper: #fffefb; --ink: #24352d; --muted: #7a8178; --green: #365d45; --line: #dedfd5; --lime: #d6e6a4; --dark-square: #8caa8c; --light-square: #e9edde } * { box-sizing: border-box } body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif } button, a, input { -webkit-tap-highlight-color: transparent } button, .button { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 11px 16px; font-weight: 600; transition: background .15s, transform .15s } button:hover, .button:hover { filter: brightness(.95) } button:disabled { cursor: default; opacity: .55 } button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #c19042; outline-offset: 3px } a { color: inherit } h1, h2, h3, p { margin: 0 } h1 { font-size: 44px; letter-spacing: -2px; font-weight: 650; line-height: 1.2 } h2 { font-size: 18px; letter-spacing: -.4px } h3 { font-size: 18px } .brand-dot { color: #789254 } .topbar { height: 88px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 44px; gap: 38px; background: var(--paper) } .brand { display: flex; align-items: center; text-decoration: none; font-size: 25px; font-weight: 750; letter-spacing: -1.2px } .brandmark { background: var(--green); color: #fff; border-radius: 10px; width: 38px; height: 38px; line-height: 34px; text-align: center; margin-right: 12px; font-family: Georgia, serif; font-size: 30px; font-weight: 700; position: relative } .brandmark span { font: 14px system-ui; position: absolute; right: 2px; top: 0; color: var(--lime) } .tagline { font-size: 13px; color: var(--muted) } .account-nav { margin-left: auto; display: flex; align-items: center; gap: 8px } .quiet { background: transparent; color: var(--muted) } .layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: calc(100vh - 88px) } main { padding: 44px; min-width: 0 } .page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 43px } .eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 2px; color: var(--green); display: block; margin-bottom: 12px } .page-heading p { color: var(--muted); margin-top: 11px; font-size: 14px } .primary, .button.primary { background: var(--green); color: white; box-shadow: 0 2px 3px #24352d12; text-decoration: none; white-space: nowrap } .section-heading { display: flex; justify-content: space-between; align-items: center; margin: 0 0 19px; gap: 12px } .section-heading h2 { display: flex; align-items: center; gap: 10px } .section-heading>span { font-size: 11px; color: var(--muted) } .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #688447; box-shadow: 0 0 0 4px #6884470c } .muted-dot { background: #a7ada1 } .count { font-size: 11px; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); font-weight: 500 } .game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px } .game-card { background: var(--paper); border: 1px solid #dbdfd3; border-radius: 13px; overflow: hidden; box-shadow: 0 3px 5px #24352d04; min-width: 0 } .card-header { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-bottom: 1px solid #e4e6dc } .avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e8ecdf; color: #56634b; font-size: 11px; font-weight: 750; flex-shrink: 0 } .card-header strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap } .rating { font-size: 11px; font-weight: 500; color: #56634b; } .color-tag { margin-left: auto; font-size: 10px; display: flex; align-items: center; gap: 5px; color: var(--muted) } .color-disc { width: 9px; height: 9px; border-radius: 50%; background: white; border: 1px solid #8d978b } .color-disc.black { background: #28382e; border-color: #28382e } .board-wrap { padding: 15px; position: relative } .board { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 5px; overflow: hidden; aspect-ratio: 4/5; touch-action: pan-y } .square { position: relative; aspect-ratio: 1; background: var(--light-square); display: grid; place-items: center; border: 0; border-radius: 0; padding: 0; min-width: 0; touch-action: none } .square.dark { background: var(--dark-square) } .square:disabled { opacity: 1; cursor: default } .square:hover { filter: none } .square img { width: 82%; height: 82%; pointer-events: none; user-select: none; filter: drop-shadow(0 2px 1px #00000016) } .square.selected { background: #d6d98b } .square.last:after { content: ""; position: absolute; inset: 0; background: #e6df5350; pointer-events: none } .square.selected:after { background: transparent } .square.legal:before { content: ""; width: 23%; height: 23%; background: #294d4560; border-radius: 50%; position: absolute; z-index: 2; pointer-events: none } .square.legal.occupied:before { width: 90%; height: 90%; border: 5px solid #294d4560; background: transparent } .square.checked { background: #ce8e77 } .coordinate { position: absolute; bottom: 2px; right: 4px; font-size: 9px; font-weight: 600; color: #38543c; z-index: 1; line-height: 1 } .rank { top: 4px; left: 4px; bottom: auto; right: auto } .card-footer { padding: 0 16px 14px; display: flex; justify-content: space-between; align-items: center; gap: 5px; color: var(--muted); font-size: 11px } .card-footer .turn-label { color: var(--green); font-weight: 600 } .text-button { background: transparent; color: var(--green); padding: 3px 0; font-size: 12px } .waiting-heading { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 34px } .waiting .board { filter: saturate(.62) } .empty { grid-column: 1/-1; min-height: 200px; border: 1px dashed #ced4c5; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px; color: var(--muted); gap: 10px } .empty .empty-icon { font: 40px Georgia; color: #859673 } .empty h3 { color: var(--ink); font-size: 16px } .empty p { font-size: 13px; max-width: 340px } .pending-content, .end-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 15px; min-height: 300px; padding: 24px } .pending-content .big-icon, .end-content .big-icon { font-size: 48px; font-family: Georgia; color: #759160 } .pending-content p, .end-content p { font-size: 13px; color: var(--muted) } .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center } .secondary { background: #eaece3; color: var(--ink) } .danger { color: #9c4c3a; background: #f4e9e2 } .end-content { min-height: 0; aspect-ratio: 4/5 } .rematch-note { background: #edf2df; padding: 8px; border-radius: 7px } .promotion { position: absolute; inset: 0; background: #fffefbf5; z-index: 4; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 18px; gap: 15px } .promotion-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100% } .promotion-options button { background: #edf0e5; display: flex; align-items: center; flex-direction: column; font-size: 11px } .promotion-options img { height: 54px; width: 54px } .promotion p { font-size: 12px; color: var(--muted) } aside { border-left: 1px solid var(--line); padding: 39px 25px; display: flex; flex-direction: column; background: #f0f0e8 } .sidebar-heading { display: flex; align-items: center; justify-content: space-between } .sidebar-heading h2 { font-size: 22px; letter-spacing: -.8px } .sidebar-intro { font-size: 12px; color: var(--muted); margin: 8px 0 23px } .invite-friend { background: transparent; border: 1px solid #cbd1bf; color: var(--green); text-align: left; font-size: 12px; width: 100% } .invite-friend span { float: right } .friends-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; margin: 30px 0 15px; color: #858c7f; display: flex; justify-content: space-between } .friend { display: flex; gap: 10px; align-items: center; width: 100%; background: transparent; padding: 11px 0; text-align: left; border-radius: 6px } .friend .avatar { width: 35px; height: 35px } .friend strong { font-size: 12px; display: block; max-width: 165px; overflow: hidden; text-overflow: ellipsis } .friend small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 2px } .friend>span:last-child { margin-left: auto; color: #9aa38d } .sidebar-note { margin: auto 0 0; padding: 65px 0 35px; text-align: center } .sidebar-note>span { font-size: 46px; color: #879777 } .sidebar-note h3 { font-size: 14px; margin: 9px 0 } .sidebar-note p { font-size: 12px; color: var(--muted); line-height: 1.8 } #account-summary { border-top: 1px solid var(--line); padding-top: 18px; display: flex; align-items: center; gap: 10px; font-size: 12px } #account-summary small { display: block; font-size: 10px; color: var(--muted) } footer { display: flex; align-items: center; gap: 10px; color: #969b8f; font-size: 10px; margin-top: 40px } footer button { margin-left: auto } .mobile-friends, #friends-close { display: none } dialog { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); padding: 36px; width: min(460px, calc(100% - 32px)); box-shadow: 0 25px 80px #15231830 } dialog::backdrop { background: #25352c66; backdrop-filter: blur(3px) } dialog h2 { font-size: 25px; margin-bottom: 13px; letter-spacing: -1px } dialog p { font-size: 14px; color: var(--muted); margin-bottom: 20px } dialog .actions { justify-content: flex-start; margin-top: 20px } .modal-close { position: absolute; right: 8px; top: 6px } dialog input { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; background: #f5f5ee; color: var(--ink) } .stats { display: grid; grid-template-columns: repeat(3, 1fr); background: #eff1e7; border-radius: 10px; padding: 20px; margin: 22px 0; text-align: center } .stats strong { display: block; font-size: 27px } .stats span { font-size: 11px; color: var(--muted) } .settings-actions { display: flex; flex-direction: column; gap: 10px } .settings-actions a { text-align: center; text-decoration: none } #toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 13px 20px; border-radius: 9px; z-index: 20; max-width: calc(100% - 30px); font-size: 13px; box-shadow: 0 5px 25px #0002; display: none } #toast.visible { display: block } .login { max-width: 900px; margin: 10vh auto } .login h1 { font-size: 70px; line-height: 1.05; margin: 20px 0 } .login p { font-size: 18px; color: var(--muted); max-width: 500px; margin-bottom: 32px } .login .button { display: inline-flex; gap: 25px } .login small { display: block; margin-top: 16px; color: var(--muted) } .drag-ghost { position: fixed; width: 65px; height: 65px; pointer-events: none; z-index: 50; transform: translate(-50%, -50%) } .rules-list { padding-left: 20px; font-size: 14px; color: var(--muted) } .rules-list li { margin-bottom: 8px } .inline-note { font-size: 11px; color: var(--muted) } @media(min-width:1450px) { .layout { grid-template-columns: minmax(0, 1fr) 330px } main { padding: 48px 60px } .game-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) } } @media(max-width:1050px) { main { padding: 30px 25px } .topbar { padding: 0 25px } .layout { grid-template-columns: minmax(0, 1fr) 260px } aside { padding: 30px 20px } .game-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)) } .section-heading>span { display: none } } @media(max-width:760px) { .topbar { height: 70px; padding: 0 20px; position: sticky; top: 0; z-index: 7 } .brand { font-size: 22px } .brandmark { width: 32px; height: 32px; font-size: 26px; line-height: 29px; margin-right: 9px } .tagline { display: none } .account-nav>.quiet { font-size: 11px; padding: 8px } .mobile-friends { display: block; background: #e7ecde; color: var(--green); font-size: 12px; padding: 9px 10px } .mobile-friends span { margin-left: 5px } .layout { display: block } main { padding: 30px 20px } h1 { font-size: 36px } .page-heading { align-items: flex-start; margin-bottom: 30px; gap: 10px } .page-heading>.primary { font-size: 12px; padding: 10px 12px; margin-top: 27px } .page-heading p { font-size: 12px; max-width: 200px } .eyebrow { font-size: 9px; letter-spacing: 1.6px } .game-grid { grid-template-columns: minmax(0, 1fr); gap: 20px } .game-card { max-width: 460px; width: 100%; justify-self: center } .board-wrap { padding: 18px } .card-header { padding: 15px 18px } .card-header strong { font-size: 14px } .card-footer { padding: 0 18px 16px } .layout aside { position: fixed; right: 0; top: 0; bottom: 0; width: min(320px, 90vw); z-index: 12; transform: translateX(100%); transition: transform .2s; overflow-y: auto } .layout aside.open { transform: translateX(0) } #friends-close { display: block } #sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; background: #25352c66; z-index: 11 } footer { flex-wrap: wrap; font-size: 9px } .login { padding: 45px 25px; margin: 4vh auto } .login h1 { font-size: 52px } .login p { font-size: 16px } .sidebar-note { padding-top: 40px } .section-heading h2 { font-size: 16px } .square img { max-width: 90px } .end-content { aspect-ratio: auto; min-height: 340px } } @media(prefers-reduced-motion:reduce) { * { transition: none !important } } @media(max-width:760px) { body.sidebar-open { overflow: hidden } } .avatar img { width: 90%; height: 90%; object-fit: contain } #avatar-button { padding: 0; color: inherit; outline-offset: 4px; flex-shrink: 0 } #avatar-button:hover { background: #dce6cb; box-shadow: 0 0 0 3px #dce6cb } dialog.avatar-picker { width: min(700px, calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto } .avatar-filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 } .avatar-tabs { display: flex; gap: 5px } .avatar-tabs button { font-size: 12px; padding: 8px 12px } .avatar-tabs button[aria-pressed=true] { background: var(--green); color: white } #avatar-color { font: inherit; font-size: 12px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 7px; padding: 8px; max-width: 100% } .avatar-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; max-height: 390px; overflow-y: auto; padding: 4px } .avatar-choice { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 7px; min-height: 108px; padding: 9px 5px; background: #eff1e7; border: 2px solid transparent; font-size: 10px; line-height: 1.3; font-weight: 500 } .avatar-choice img { width: 54px; height: 54px; object-fit: contain } .avatar-choice[aria-pressed=true] { border-color: var(--green); background: #dde8cc } .avatar-picker-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 18px } dialog .avatar-credits { font-size: 10px; margin: 16px 0 0; line-height: 1.6 } .avatar-no-results { grid-column: 1/-1; padding: 25px 10px; text-align: center } #avatar-color:focus-visible { outline: 3px solid #c19042; outline-offset: 3px } @media(max-width:760px) { dialog.avatar-picker { padding: 30px 20px 22px } .avatar-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 42dvh } .avatar-tabs button { padding: 8px 10px; font-size: 11px } } .ended-board { position: relative } .ended-board .end-content { position: absolute; left: 15px; right: 15px; top: 50%; transform: translateY(-50%); min-height: 0; aspect-ratio: auto; padding: 12px 8px; display: flex; flex-direction: row; justify-content: space-between; gap: 8px; text-align: left; background: rgb(255 254 251 / 82%); opacity: .72; transition: opacity .72s, background .18s } .end-content:hover, .end-content:focus-within { background: rgb(255 254 251 / 94%); opacity: 1 } .end-status { min-width: 0 } .end-status h3 { font-size: 13px; line-height: 1.3 } .end-status small { display: block; font-size: 10px } .end-content .actions { flex-wrap: nowrap; gap: 4px } .end-content button { font-size: 10px; padding: 8px 6px } .stop-inactive { margin-left: auto; background: #b73535; color: white; font-size: 22px; line-height: 1; padding: 3px 7px; flex-shrink: 0 } .card-header:has(.stop-inactive) .color-tag { margin-left: auto } .card-header:has(.stop-inactive) { gap: 6px } @media(hover:none) { .ended-board .end-content { opacity: 1; background: rgb(255 254 251 / 82%) } } @media(min-width:761px) { #sidebar { position: sticky; top: 0; align-self: start; height: 100dvh; overflow-y: auto; padding-top: 24px; padding-bottom: 105px } #sidebar>* { flex-shrink: 0 } #friend-list { flex: 1 1 auto; min-height: 60px; overflow-y: auto } .sidebar-note { padding: 18px 0 } .sidebar-note>span { font-size: 30px } } /* One-time tactical move feedback. */ .game-card { position: relative } .move-feedback { position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: 12px; border: 3px solid var(--feedback); box-shadow: inset 0 0 38px var(--feedback-glow); background: var(--feedback-tint); opacity: 0 } .move-feedback.good { --feedback: #3188ea; --feedback-glow: #3188ea77; --feedback-tint: #3188ea16 } .move-feedback.poor { --feedback: #d94a48; --feedback-glow: #d94a4890; --feedback-tint: #d94a4818 } .move-quality { position: absolute; bottom: 38px; right: 10px; padding: 6px 10px; border-radius: 7px; background: var(--paper); border-left: 4px solid var(--feedback); color: var(--ink); font-size: 12px; font-weight: 700; box-shadow: 0 2px 12px #0002 } .move-quality small { display: block; font-size: 9px; font-weight: 400; color: var(--muted) } /* Remaining material, with White always on the left. */ .opponent-info { flex: 1; min-width: 0 } .opponent-info strong { display: block } .material-bar { height: 7px; max-width: 160px; margin-top: 5px; border: 1px solid #879187; border-radius: 5px; background: #202823; overflow: hidden; direction: ltr } .material-white { display: block; width: 100%; height: 100%; background: #fffefb; transform: scaleX(.5); transform-origin: left center } .material-bar:focus-visible { outline: 2px solid #c19042; outline-offset: 3px } .opponent-name { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; } .opponent-name:hover { text-decoration: underline; } .friend-request { display: flex; align-items: center; gap: 10px; margin: 12px 0; } .friend-request > div { min-width: 0; } .friend-request strong { overflow-wrap: anywhere; font-size: 13px; } .friend-request .actions { margin-top: 8px; flex-wrap: wrap; } .friend-request button { padding: 7px 10px; font-size: 12px; } #history-button { margin-left: auto; flex-shrink: 0; font-size: 22px; } .history-list { display: grid; gap: 8px; max-height: 65vh; overflow-y: auto; } .history-entry { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; text-align: left; } .history-entry strong { overflow-wrap: anywhere; } dialog.replay-modal { width: min(400px, calc(100vw - 24px)); } .replay-controls { display: flex; justify-content: space-between; gap: 6px; margin-top: 18px; } #replay-progress { font-size: 12px; text-align: center; } .saved-hourglass { position: fixed; z-index: 100; pointer-events: none; font-size: 24px; } .replay-players { justify-content: center; gap: 8px; font-size: 12px; } .replay-players span { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-wrap: anywhere; } .replay-players img { width: 24px; height: 24px; flex-shrink: 0; } .replay-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } #replay-share { margin-left: auto; font-size: 22px; } .replay-controls button { font-size: 18px; min-width: 0; flex: 1; padding-inline: 8px; } body.replay-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px 12px; } #replay-page { width: min(360px, 100%); }