:root { --ink:#18201b; --muted:#6b756e; --paper:#f7f6f0; --card:#fff; --accent:#e85535; --accent-dark:#bd3d25; --line:#dfe2da; --green:#236c4d; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
a { color:inherit; }
.site-header { position:sticky; top:0; z-index:10; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:18px max(20px,calc((100vw - 1180px)/2)); background:rgba(247,246,240,.92); border-bottom:1px solid var(--line); backdrop-filter:blur(12px); }
.brand { font-weight:900; text-decoration:none; letter-spacing:-.03em; }
nav { display:flex; gap:18px; font-size:14px; } nav a { text-decoration:none; color:var(--muted); } nav a:hover { color:var(--ink); }
.container { width:min(1180px,calc(100% - 32px)); margin:auto; min-height:calc(100vh - 145px); }
.hero { padding:76px 0 38px; max-width:760px; } .hero.compact { padding-bottom:26px; }
.eyebrow { display:inline-block; color:var(--accent); font-size:13px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
h1 { margin:12px 0 14px; font-size:clamp(36px,6vw,70px); line-height:.96; letter-spacing:-.055em; } h2 { letter-spacing:-.03em; }
.hero p,.admin-panel p { color:var(--muted); font-size:18px; line-height:1.6; }
.photo-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; padding-bottom:110px; }
.photo-card { position:relative; display:block; background:var(--card); border:2px solid transparent; border-radius:18px; overflow:hidden; cursor:pointer; box-shadow:0 8px 28px rgba(38,43,39,.06); transition:.18s ease; }
.photo-card:hover { transform:translateY(-3px); box-shadow:0 14px 34px rgba(38,43,39,.11); }
.photo-card input { position:absolute; opacity:0; }
.photo-card:has(input:checked) { border-color:var(--accent); transform:translateY(-3px); }
.image-wrap { display:block; aspect-ratio:1; background:#e8e9e4; overflow:hidden; }.image-wrap img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s; }.photo-card:hover img { transform:scale(1.025); }
.photo-meta { display:flex; align-items:center; gap:9px; min-height:56px; padding:12px 14px; }.photo-meta b { color:var(--accent); }.photo-meta span:nth-child(2) { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.check { margin-left:auto; display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#eceee9; color:transparent; }.photo-card:has(input:checked) .check { color:#fff; background:var(--accent); }
.vote-bar { position:fixed; left:50%; bottom:18px; z-index:8; width:min(720px,calc(100% - 28px)); transform:translateX(-50%); display:flex; align-items:center; justify-content:space-between; gap:20px; padding:12px 12px 12px 22px; border-radius:18px; background:#18201bf2; color:#fff; box-shadow:0 18px 50px #1118; }
button,.button { display:inline-block; border:0; border-radius:12px; padding:13px 20px; background:var(--accent); color:#fff; font:inherit; font-weight:800; text-decoration:none; cursor:pointer; } button:hover,.button:hover { background:var(--accent-dark); }.button.secondary { background:var(--ink); }
.notice { margin:0 0 22px; padding:16px 18px; border-radius:14px; }.notice.success { color:#17593d; background:#dcf2e6; }.notice.error { color:#822915; background:#ffe1d9; }.notice a { font-weight:800; }
.empty,.login-card,.admin-panel { max-width:660px; margin:30px auto 70px; padding:36px; border-radius:22px; background:#fff; box-shadow:0 16px 45px rgba(38,43,39,.08); text-align:center; }.empty p { color:var(--muted); line-height:1.6; }
.ranking { display:grid; gap:12px; padding-bottom:60px; }.rank-row { display:flex; align-items:center; gap:16px; padding:12px; border:1px solid var(--line); border-radius:18px; background:#fff; }.place { width:44px; text-align:center; font-size:22px; font-weight:900; color:var(--accent); }.rank-row img { width:74px; height:74px; border-radius:12px; object-fit:cover; }.rank-info { flex:1; min-width:0; }.rank-title { display:flex; justify-content:space-between; gap:15px; margin-bottom:10px; }.rank-title strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.rank-title span { color:var(--muted); white-space:nowrap; }.bar { height:9px; border-radius:20px; background:#eceee9; overflow:hidden; }.bar span { display:block; height:100%; min-width:0; border-radius:inherit; background:var(--accent); }
.login-card { margin-top:90px; text-align:left; }.login-card h1 { font-size:44px; }.login-card form { display:grid; gap:14px; }.login-card label { display:grid; gap:8px; font-weight:800; }
input[type=password],input[type=file] { width:100%; padding:14px; border:1px solid var(--line); border-radius:12px; background:#fff; font:inherit; }
.admin-panel { max-width:none; margin-top:0; text-align:left; }.upload-form { display:flex; align-items:center; gap:12px; }.admin-actions { display:flex; gap:18px; margin-top:22px; font-weight:800; }
.mini-grid { display:grid; grid-template-columns:repeat(8,1fr); gap:10px; padding-bottom:50px; }.mini-grid figure { margin:0; min-width:0; }.mini-grid img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }.mini-grid figcaption { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--muted); }
footer { padding:28px 16px; border-top:1px solid var(--line); color:var(--muted); text-align:center; font-size:13px; }
@media (max-width:850px) { .photo-grid { grid-template-columns:repeat(3,1fr); }.mini-grid { grid-template-columns:repeat(5,1fr); } }
@media (max-width:600px) { .site-header { align-items:flex-start; }.site-header nav { gap:10px; font-size:12px; }.hero { padding-top:46px; }.photo-grid { grid-template-columns:repeat(2,1fr); gap:10px; }.photo-meta { font-size:13px; }.vote-bar span { display:none; }.vote-bar button { width:100%; }.rank-row { gap:9px; }.place { width:26px; }.rank-row img { width:58px; height:58px; }.rank-title { display:block; }.rank-title span { display:block; margin-top:4px; font-size:12px; }.upload-form { align-items:stretch; flex-direction:column; }.mini-grid { grid-template-columns:repeat(3,1fr); }.empty,.login-card,.admin-panel { padding:24px; } }
