* { box-sizing: border-box; }
body { font-family: sans-serif; margin: 0; background: #fff; color: #222; }
.top-bar { position: sticky; top: 0; z-index: 100; }
nav { background: #fff; border-bottom: 3px solid #FF8C00; padding: 10px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.admin-bar { background: #FFD700; padding: 6px 16px; display: flex; gap: 24px; }
.admin-bar a { color: #222; text-decoration: none; font-weight: bold; font-size: .9em; }
.admin-bar a:hover { text-decoration: underline; }
@media (max-width: 640px) { nav { flex-wrap: wrap; } nav .brand { margin-right: 0 !important; } .nav-links { flex-basis: 100%; width: 100%; order: 10; display: flex; gap: 10px; flex-wrap: wrap; padding-top: 8px; } .avatar-section { max-width: 100% !important; } .duck-grid { display: grid; grid-template-columns: repeat(4, 70px); } .btn-sm { padding: 4px 8px; font-size: .78em; } nav.nav-out { display: grid; grid-template-columns: 35% 65%; flex-wrap: unset; gap: 0; } nav.nav-out .nav-auth { justify-content: flex-end; margin-left: 0; } nav.nav-out .nav-links-public { display: flex; grid-column: 1 / -1; padding-top: 8px; } }
@media (max-width: 480px) { nav .brand { font-size: 1.4em; } .btn-sm { padding: 5px 10px; font-size: .8em; } .duck-option { width: 55px; height: 55px; } }
nav .brand { font-size: 2em; font-weight: bold; text-decoration: none; color: #222; margin-right: 90px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links-public { display: none; }
.nav-auth { display: flex; gap: 8px; align-items: center; flex-shrink: 0; margin-left: auto; }
nav a { color: #333; text-decoration: none; font-weight: bold; }
nav a:hover { text-decoration: underline; }
nav .spacer { flex: 1; }
main { max-width: 900px; margin: 30px auto; padding: 0 20px; }
h1 { color: #b8860b; margin-top: 0; }
h2 { color: #b8860b; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 4px; }
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=password],
.form-group textarea,
.form-group select { width: 100%; padding: 9px 11px; border: 1px solid #ccc; border-radius: 5px; font-size: 1em; background: #fff; }
.form-group textarea { resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: #FF8C00; border: 2px solid #FF8C00; padding: 0 24px; height: 40px; border-radius: 5px; cursor: pointer; font-weight: bold; font-size: 1em; text-decoration: none; color: #fff; box-sizing: border-box; }
.btn:hover { background: #e67e00; border-color: #e67e00; color: #fff; }
.btn-sm { padding: 0 14px; height: 30px; font-size: .9em; }
.alert { padding: 10px 16px; border-radius: 5px; margin-bottom: 16px; }
.alert-error { background: #ffe0e0; color: #900; border: 1px solid #fcc; }
.alert-success { background: #e0ffe0; color: #060; border: 1px solid #cfc; }
.alert-info { background: #e0f0ff; color: #036; border: 1px solid #cde; }
.duck-rain { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 9999; }
.rain-duck { position: absolute; top: 0; left: 0; object-fit: contain; will-change: transform; pointer-events: auto; cursor: grab; }
.rain-duck:active { cursor: grabbing; }
.duck-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.duck-lightbox[hidden] { display: none; }
.duck-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.duck-lightbox-content { position: relative; text-align: center; cursor: zoom-out; }
.duck-lightbox-content img { max-width: 88vw; max-height: 78vh; border-radius: 10px; background: #fff; box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.duck-lightbox-title { margin-bottom: 14px; color: #fff; font-size: 1.35em; font-weight: 600; max-width: 88vw; }
.duck-lightbox-title[hidden] { display: none; }
.duck-lightbox-size { margin-top: 10px; color: #fff; font-size: 1.35em; font-weight: 600; max-width: 88vw; }
.duck-lightbox-size[hidden] { display: none; }
.duck-lightbox-note { margin-top: 8px; color: #fff; font-size: 1.15em; font-style: italic; max-width: 88vw; }
.duck-lightbox-note[hidden] { display: none; }
.duck-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 380px; overflow-y: auto; border: 1px solid #ddd; padding: 10px; border-radius: 6px; background: #fff; }
.duck-option { width: 70px; height: 70px; object-fit: contain; cursor: pointer; border: 3px solid transparent; border-radius: 5px; padding: 2px; }
.duck-option:hover { border-color: #e6c200; }
.duck-option.selected { border-color: #FFD700; box-shadow: 0 0 0 2px #b8860b; }
.duck-received { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; padding: 4px; width: 72px; height: 72px; vertical-align: top; overflow: hidden; }
.duck-received img { width: 60px; height: 60px; object-fit: contain; cursor: zoom-in; }
.duck-grid img:not(.duck-option) { cursor: zoom-in; }
.duck-received .from { font-size: .75em; color: #666; text-align: center; margin-top: 4px; }
.duck-note-badge { position: absolute; top: 1px; right: 2px; font-size: 26px; line-height: 1; pointer-events: none; }
a { color: #b8860b; }
.shop-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.shop-card { padding: 16px; width: 160px; text-align: center; position: relative; }
.shop-card img { width: 120px; height: 120px; object-fit: contain; display: block; margin: 0 auto 10px; }
.shop-card .shop-title { font-weight: 600; font-size: .95em; margin-bottom: 6px; }
.shop-card .shop-price { font-weight: bold; color: #FF8C00; font-size: 1.1em; }
.shop-card .shop-oos { position: absolute; top: 10px; right: 10px; background: #e00; color: #fff; font-size: .7em; font-weight: bold; padding: 2px 7px; border-radius: 10px; }
