:root {
  font-family: "Clear Sans", system-ui, sans-serif;
  color: #173b30;
  background: #faf6ed;
  --green: #103c30;
  --red: #a02d40;
  --gold: #f4cf85;
  --border: #dad9cc;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.hero { background: #0c3228; color: #fff8e9; border-bottom: 4px solid #dfb774; }
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 32px; padding-block: 26px; }
.snowflake { width: 30px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; }
h1, h2, h3 { font-family: Georgia, serif; margin: 0; }
h1 { font-size: clamp(3rem, 6.6vw, 5.75rem); line-height: .99; letter-spacing: -.048em; }
.intro p { margin: 17px 0 0; font-size: 1.13rem; line-height: 1.45; color: #f6e5c4; }
.scene { position: relative; min-width: 0; }
.scene img { display: block; width: 100%; height: clamp(240px, 30vw, 320px); object-fit: cover; object-position: center 57%; border-radius: 22px; }
.sign {
  position: absolute; left: 13%; bottom: 17%; isolation: isolate;
  padding: 10px 24px 11px 15px; background: #84263b; color: #fff7e6;
  text-decoration: none; font-weight: 750; border-radius: 5px 18px 18px 5px; outline-offset: 5px;
  box-shadow: 0 2px 0 #602635, inset 0 0 0 2px #c77b66;
  transform: rotate(-5deg);
}
.sign::after { content: ""; position: absolute; left: 20%; top: 100%; width: 8px; height: 22px; background: #664235; z-index: -1; }
.sign:hover { background: #6e2032; }
main { padding-block: 32px; flex: 1; }
h2 { font-size: clamp(1.9rem, 4vw, 2.65rem); margin-bottom: 17px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b04b19; outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--gold); }
#filters { border: 1px solid var(--border); background: #fffdf7; border-radius: 18px; padding: 18px; }
.grades { display: flex; flex-wrap: wrap; gap: 8px; }
.grades button, .reset, .copy {
  border: 1px solid #cdd5cb; color: var(--green); background: #f2f5ed;
  border-radius: 999px; padding: 9px 15px; font-weight: 650; min-height: 44px;
}
.grades button:hover, .reset:hover, .copy:hover { background: #e3ecdd; }
.grades button[aria-pressed="true"] { background: var(--green); color: #fffdf7; border-color: var(--green); }
.fields { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 15px; }
label { display: grid; gap: 5px; font-size: .94rem; font-weight: 650; }
input, select { min-width: 0; width: 100%; min-height: 45px; background-color: #fff; color: #173b30; border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: 1rem; font-weight: 400; }
select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='m4 7 5 5 5-5' fill='none' stroke='%23103c30' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; margin-top: 19px; }
.empty { grid-column: 1 / -1; text-align: center; border: 1px dashed #c9cbbb; border-radius: 18px; background: #f5f1e6; padding: 16px 15px 22px; }
.empty img { display: block; margin: auto; width: 122px; height: 112px; object-fit: contain; }
.empty p { margin: 3px 0 0; font-size: 1.08rem; font-weight: 650; }
.reset { margin-top: 14px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: #fffdf7; }
.cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #e6ede2; }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 11px; font-size: .9rem; }
.meta span { padding: 4px 9px; border-radius: 12px; background: #eaf0e5; }
h3 { font-size: 1.48rem; }
.description { line-height: 1.5; margin: 8px 0 16px; }
.actions { margin-top: auto; display: grid; gap: 8px; }
.play { color: white; background: var(--red); padding: 12px; border-radius: 9px; text-align: center; text-decoration: none; font-weight: 750; }
.play:hover { background: #792034; }
.copy { border-radius: 9px; }
footer { padding: 17px 0 22px; border-top: 1px solid var(--border); text-align: center; font-weight: 650; }
.toast { position: fixed; bottom: 16px; left: 50%; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); text-align: center; z-index: 2; }
.toast:not(:empty) { padding: 10px 18px; color: white; background: var(--green); border-radius: 10px; box-shadow: 0 3px 18px #0003; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 15px 12px; }
  .snowflake { width: 20px; }
  h1 { font-size: clamp(2rem, 8.8vw, 3.5rem); letter-spacing: -.04em; }
  h1 br { display: none; }
  .intro p { font-size: 1rem; margin-top: 7px; }
  .scene img { height: clamp(132px, 40vw, 185px); border-radius: 14px; }
  .sign { left: 10%; padding: 7px 17px 8px 12px; }
  main { padding-block: 22px; }
  #filters { padding: 12px; }
  .grades { gap: 5px; }
  .grades button { padding-inline: 10px; }
  .fields { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
}
