:root { --bg: #f3f8fc; --bg-accent: #e3eff8; --primary: #2f80ed; --primary-dark: #1d6bd8; --primary-darker: #134c9c; --primary-soft: #dbeafe; --primary-light: #82b3f4; --text: #1e3a5f; --text-soft: #5b7a9d; --danger: #e0483e; --ship: #1d3a5f; --fire-fg: #f0564a; --fire-bg: #ffbba8; --radius: 14px; font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif; font-size: 16pt; } @font-face { font-family: 'Comfortaa'; src: url('./assets/fonts/Comfortaa-VariableFont_wght.ttf'); } @font-face { font-family: 'Nunito'; src: url('./assets/fonts/Nunito-VariableFont_wght.ttf'); } * { box-sizing: border-box; } body { margin: 0; background: radial-gradient(1000px 500px at 80% -10%, var(--bg-accent), transparent), radial-gradient(800px 400px at 10% 110%, #e8f6f3, transparent), var(--bg); color: var(--text); min-height: 100vh; } h1, h2, h3, h4, h5, h6 { font-family: 'Comfortaa'; } .page { min-height: 100vh; display: flex; flex-direction: column; } .menu { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 40px 20px 80px; } .title { font-size: clamp(44px, 8vw, 84px); font-weight: 800; letter-spacing: 2px; margin: 0; color: var(--text); text-shadow: 0 4px 0 rgba(47, 128, 237, 0.12); } .menu-buttons { display: flex; flex-direction: column; gap: 18px; width: min(360px, 90vw); } .btn { font-family: 'Comfortaa'; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 700; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; } .btn:disabled { cursor: default; background: var(--primary-light); } .btn-big { padding: 18px 28px; font-size: 22px; color: #fff; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); box-shadow: 0 6px 0 rgba(29, 107, 216, 0.35), 0 10px 20px rgba(47, 128, 237, 0.25); } .btn-big:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(29, 107, 216, 0.35), 0 14px 24px rgba(47, 128, 237, 0.3); } .btn-big:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 3px 0 rgba(29, 107, 216, 0.35); } .btn-primary { padding: 10px 22px; font-size: 16px; color: #fff; background: var(--primary); } .btn-primary:hover:not(:disabled) { background: var(--primary-dark); } .btn-primary:active:not(:disabled) { background: var(--primary-darker); } .join-section { display: flex; flex-direction: column; align-items: center; gap: 12px; } .join-label { font-size: 17px; font-weight: 600; color: var(--text-soft); letter-spacing: 0.5px; } .code-input-row { display: flex; align-items: center; gap: 14px; } .code-inputs { display: flex; gap: 10px; } input:not([type]), input[type="text"] { font-size: 32px; font-weight: 700; color: var(--text); background: #fff; border: 2px solid #c9dcee; border-radius: 12px; outline: none; transition: border-color 0.12s ease, box-shadow 0.12s ease; caret-color: var(--primary); } .code-cell { width: 58px; height: 68px; font-size: 32px; font-weight: 700; text-align: center; text-transform: uppercase; color: var(--text); background: #fff; border: 2px solid #c9dcee; border-radius: 12px; outline: none; transition: border-color 0.12s ease, box-shadow 0.12s ease; caret-color: var(--primary); } .code-cell:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); } .code-submit { width: 58px; height: 68px; font-size: 30px; border: none; border-radius: 12px; background: var(--primary); color: #fff; cursor: pointer; transition: background 0.12s ease, transform 0.12s ease; } .code-submit:hover:not(:disabled) { background: var(--primary-dark); transform: translateX(2px); } .code-submit:disabled { background: #b9cfe4; cursor: default; } /* Экран поиска соперника */ .search-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px 20px 80px; } .search-label { font-family: 'Comfortaa'; font-size: clamp(24px, 4vw, 36px); font-weight: 700; color: var(--text); letter-spacing: 0.5px; } .search-error { font-family: 'Comfortaa'; font-size: clamp(20px, 3.5vw, 28px); font-weight: 700; color: var(--danger); text-align: center; max-width: min(520px, 90vw); } .search-actions { display: flex; flex-direction: column; gap: 14px; width: min(320px, 90vw); } .btn-secondary { color: var(--primary); background: #fff; border: 2px solid var(--primary-light); box-shadow: 0 4px 0 rgba(29, 107, 216, 0.15); } .btn-secondary:hover:not(:disabled) { background: var(--primary-soft); } /* Три прыгающие точки */ .bouncing-dots { display: flex; gap: 14px; } .bouncing-dots span { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, var(--primary), var(--primary-dark)); animation: dot-bounce 1s infinite ease-in-out; } .bouncing-dots span:nth-child(2) { animation-delay: 0.15s; } .bouncing-dots span:nth-child(3) { animation-delay: 0.3s; } @keyframes dot-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.5; } 40% { transform: translateY(-16px); opacity: 1; } } /* Профиль внизу */ .profile-bar { display: flex; justify-content: center; align-items: center; padding: 16px; border-top: 1px solid rgba(30, 58, 95, 0.08); background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(6px); } .profile-user { display: flex; align-items: center; gap: 12px; } .profile-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(30, 58, 95, 0.2); } .profile-avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 20px; } .profile-name { font-weight: 700; font-size: 17px; } .profile-loading { color: var(--text-soft); } .link-button { background: none; border: none; color: var(--primary); font-size: 15px; cursor: pointer; font-family: inherit; padding: 4px 6px; } .link-button:hover { text-decoration: underline; } /* Модальное окно */ .modal-overlay { position: fixed; inset: 0; background: rgba(30, 58, 95, 0.35); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 10; } .modal { position: relative; background: #fff; border-radius: 20px; padding: 32px; width: min(400px, 100%); box-shadow: 0 20px 60px rgba(30, 58, 95, 0.3); display: flex; flex-direction: column; gap: 16px; } .modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 28px; color: var(--text-soft); cursor: pointer; line-height: 1; } .modal-title { margin: 0; font-size: 26px; text-align: center; } .auth-form { display: flex; flex-direction: column; gap: 14px; } .field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-soft); } .field input[type='text'], .field input[type='password'] { padding: 12px 14px; font-size: 16px; border: 2px solid #c9dcee; border-radius: 10px; outline: none; font-family: inherit; } .field input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); } .avatar-picker { display: flex; align-items: center; gap: 12px; } .avatar-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid #c9dcee; } .avatar-placeholder { display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: 24px; font-weight: 700; } .form-error { background: #fdecea; color: var(--danger); padding: 10px 14px; border-radius: 10px; font-size: 14px; } .sea-grid { padding: 3px; display: inline-grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(10, 1fr); gap: 3px; background-color: var(--primary-soft); } .sea-cell { width: 30px; height: 30px; background: var(--bg); display: table-cell; vertical-align: center; text-align: center; } .miss-cell { position: relative; } .miss-cell::before { display: block; content: ' '; width: 8px; height: 8px; position: relative; left: calc(50% - 4px); top: calc(50% - 4px); border-radius: 50%; background-color: var(--primary-light); } .ship-cell, .damaged-ship-cell { background-color: var(--ship); } .damaged-ship-cell { color: var(--fire-fg); } .damaged-ship-cell::before, .destroyed-ship-cell::before { display: block; content: 'X'; } .destroyed-ship-cell { background-color: var(--fire-bg); color: var(--fire-fg); } @media (max-width: 480px) { .code-cell { width: 48px; height: 58px; font-size: 26px; } .code-submit { width: 48px; height: 58px; } }