:root {
  --red: #b3202a; --red-dark: #8c1820; --green: #1f6f4a; --green-light: #e6f3ec;
  --gold: #d9a441; --bg: #fbf7f2; --card: #fff; --text: #2b2b2b; --muted: #6f6a64;
  --radius: 14px; --shadow: 0 2px 10px rgba(0,0,0,.07);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
header { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; text-align: center; padding: 2.5rem 1rem 2rem; position: relative; overflow: hidden; }
header h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.8rem); }
header p { margin: .5rem auto 0; max-width: 560px; opacity: .92; }
.snow { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(#fff 1.2px, transparent 1.5px), radial-gradient(#fff 1px, transparent 1.3px); background-size: 60px 60px, 37px 37px; background-position: 0 0, 20px 15px; opacity: .25; animation: snow 20s linear infinite; }
@keyframes snow { to { background-position: 0 600px, 20px 385px; } }
main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { border: 1px solid #ddd; background: #fff; padding: .4rem .9rem; border-radius: 999px; cursor: pointer; font: inherit; }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.stats { color: var(--muted); font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 2px solid transparent; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card.reserved { opacity: .75; }
.card.mine { border-color: var(--green); opacity: 1; }
.card img { width: 100%; height: 180px; object-fit: contain; background: #fff; border-bottom: 1px solid #f0ebe5; }
.card .body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card h3 { margin: 0; font-size: 1.1rem; }
.card .desc { margin: 0; color: var(--muted); font-size: .95rem; white-space: pre-line; }
.meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; font-size: .9rem; }
.price { font-weight: 600; color: var(--green); }
.prio { font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; background: #fff3dc; color: #8a5a00; }
.card .actions { margin-top: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding-top: .5rem; }
.btn { border: 0; border-radius: 10px; padding: .6rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid #ddd; }
.btn-green { background: var(--green); color: #fff; }
.btn-small { padding: .35rem .7rem; font-size: .85rem; }
.badge { background: var(--green-light); color: var(--green); padding: .45rem .7rem; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.badge small { display: block; font-weight: 400; color: var(--muted); font-style: italic; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
dialog { border: 0; border-radius: var(--radius); padding: 0; max-width: 420px; width: calc(100% - 2rem); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog form { padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; }
dialog h2 { margin: 0; font-size: 1.25rem; }
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .95rem; }
input, textarea, select { font: inherit; padding: .6rem .7rem; border: 1px solid #ccc; border-radius: 8px; font-weight: 400; }
textarea { resize: vertical; min-height: 70px; }
.row { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); background: #222; color: #fff; padding: .75rem 1.2rem; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: 90%; text-align: center; z-index: 10; }
.toast.show { opacity: 1; }
.notice { background: #fff3dc; border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 1rem; }
footer a { color: var(--muted); }
.admin-list { display: flex; flex-direction: column; gap: .6rem; }
.admin-item { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: .8rem 1rem; display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.admin-item .info { flex: 1; min-width: 200px; }
.admin-item .info strong { display: block; }
.admin-item .info span { color: var(--muted); font-size: .9rem; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.5rem; }
.panel form { display: grid; gap: .8rem; grid-template-columns: 1fr 1fr; }
.panel form .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .panel form { grid-template-columns: 1fr; } }
.hidden { display: none !important; }
.preview { display: flex; align-items: center; gap: .75rem; background: #faf7f3; border-radius: 10px; padding: .6rem .8rem; font-size: .95rem; color: var(--muted); }
.preview img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }
.preview img:not([src]), .preview img[src=""] { display: none; }
.card .placeholder { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: linear-gradient(135deg, #fbeaea, #e6f3ec); border-bottom: 1px solid #f0ebe5; }
.back { margin: 0 0 .5rem; position: relative; }
.back a, header a { color: #fff; opacity: .9; }
.list-card { text-decoration: none; color: inherit; flex-direction: row; align-items: center; }
.list-card .list-emoji { font-size: 2.6rem; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fbeaea, #e6f3ec); flex-shrink: 0; }
.list-card .body { padding: .8rem 1rem; gap: .2rem; }
.hint { margin: 0; color: var(--muted); font-size: .9rem; }
.share { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.share input { flex: 1; min-width: 220px; }
