:root {
  --yellow: #ffd43b;
  --red: #ef3340;
  --blue: #195ccb;
  --navy: #102a5a;
  --green: #65b84a;
  --cream: #fff7d6;
  --white: #fffdf4;
  --ink: #102a5a;
  --shadow: 7px 7px 0 var(--navy);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10px 10px, rgba(16, 42, 90, .07) 2px, transparent 2px) 0 0 / 28px 28px,
    var(--cream);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 700;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.top-stripe {
  height: 9px;
  background: repeating-linear-gradient(90deg, var(--red) 0 48px, var(--yellow) 48px 96px, var(--blue) 96px 144px, var(--green) 144px 192px);
  border-bottom: 4px solid var(--navy);
}

.hero {
  min-height: 195px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 5vw, 64px);
  padding: 13px max(24px, calc((100vw - 1040px) / 2)) 27px;
  background-color: var(--yellow);
  background-image: repeating-conic-gradient(from -8deg at 70% 65%, rgba(255,255,255,.27) 0 8deg, transparent 8deg 17deg);
  border-bottom: 6px solid var(--navy);
}

.auth-controls { position: absolute; top: 14px; right: max(18px, calc((100vw - 1120px) / 2)); z-index: 6; display: flex; align-items: center; gap: 8px; }
.account-button, .sign-out-button { min-height: 42px; border: 3px solid var(--navy); font-weight: 900; cursor: pointer; }
.account-button { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; color: var(--navy); background: var(--white); border-radius: 999px; box-shadow: 3px 3px 0 var(--navy); }
.account-avatar { display: block; width: 30px; height: 30px; }
.sign-out-button { padding: 7px 11px; color: var(--white); background: var(--red); border-radius: 999px; }
.account-button:hover, .sign-out-button:hover { transform: translateY(-1px); }

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 15px;
  background: repeating-linear-gradient(135deg, var(--red) 0 15px, var(--white) 15px 30px);
  border-top: 4px solid var(--navy);
}

.hero-copy { position: relative; z-index: 2; }

h1, h2, h3 { margin: 0; font-family: "Archivo Black", Impact, sans-serif; text-transform: uppercase; }
h1 { font-size: clamp(52px, 6.2vw, 78px); line-height: .84; letter-spacing: -.065em; text-shadow: 5px 5px 0 var(--white); }
h1 span { color: var(--red); display: block; margin-left: 48px; }
.mascot-stage { position: relative; z-index: 1; width: clamp(180px, 21vw, 235px); flex: none; }
.mascot { display: block; width: 100%; max-height: 205px; filter: drop-shadow(7px 8px 0 rgba(16,42,90,.2)); }

.burst {
  position: absolute;
  z-index: 3;
  padding: 10px 9px;
  color: var(--white);
  background: var(--blue);
  border: 4px solid var(--navy);
  border-radius: 50%;
  font: 14px "Archivo Black", sans-serif;
  transform: rotate(11deg);
}
.burst-one { right: -32px; top: 18px; }
.burst-two { left: 14px; bottom: 4px; background: var(--red); transform: rotate(-12deg); }

main { width: min(1120px, calc(100% - 36px)); margin: 20px auto 72px; }

.auth-gate { display: flex; align-items: center; gap: 24px; width: min(700px, calc(100% - 36px)); margin: 28px auto 82px; padding: 22px 28px 22px 20px; background: var(--white); border: 6px solid var(--navy); border-radius: 24px 24px 36px 24px; box-shadow: var(--shadow); }
.auth-gate img { width: 150px; flex: none; filter: drop-shadow(5px 6px 0 rgba(16,42,90,.15)); }
.auth-gate h2 { margin: 3px 0 8px; font-size: clamp(25px, 4vw, 38px); line-height: 1.05; }
.auth-gate p { margin: 0 0 16px; color: #596885; }
.auth-eyebrow { color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.auth-gate .primary-button { width: auto; }

.feeder {
  background: var(--white);
  border: 6px solid var(--navy);
  border-radius: 24px 24px 36px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feeder-heading, .collection-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.feeder-heading { padding: 13px 20px; background: var(--red); color: var(--white); border-bottom: 4px solid var(--navy); }
.collection-title-wrap { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; gap: 15px; }
.feeder-heading p { margin: 0; text-align: right; }

form { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 15px; padding: 13px 20px 15px; }
textarea {
  width: 100%;
  resize: vertical;
  height: 108px;
  min-height: 108px;
  padding: 13px 16px;
  color: var(--ink);
  background: #fffefa;
  border: 4px solid var(--navy);
  border-radius: 16px;
  outline: none;
  transition: box-shadow .15s, transform .15s;
}
textarea:focus { box-shadow: 5px 5px 0 var(--yellow); transform: translate(-2px, -2px); }
textarea::placeholder { color: #74809a; opacity: 1; }
.form-footer { display: flex; align-items: stretch; flex-direction: column; gap: 7px; margin-top: 0; }
.form-footer > span { color: #596885; font-size: 14px; }
.form-footer .primary-button { order: -1; }

.primary-button, .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 4px solid var(--navy);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--navy);
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.primary-button { min-width: 170px; padding: 10px 17px; }
.primary-button:hover, .action-button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy); }
.primary-button:active, .action-button:active { transform: scale(.97); box-shadow: 2px 2px 0 var(--navy); }
.primary-button:disabled { filter: grayscale(.4); opacity: .65; cursor: wait; }
.form-status { margin: 0 20px 18px; padding: 10px 13px; border: 3px solid var(--navy); border-radius: 12px; background: #ffe7e9; }
.form-status.success { background: #e4f6d9; }

.bookmarklet-dock { position: fixed; left: 14px; bottom: 18px; z-index: 9; display: grid; gap: 7px; width: min(255px, calc(100vw - 28px)); padding: 15px 14px 13px; background: var(--white); border: 4px solid var(--navy); border-radius: 18px; box-shadow: 5px 5px 0 var(--red); transform: rotate(-1deg); }
.bookmarklet-dismiss { position: absolute; top: -13px; right: -12px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0 0 2px; color: var(--white); background: var(--navy); border: 3px solid var(--white); border-radius: 50%; box-shadow: 2px 2px 0 var(--red); font-size: 20px; font-weight: 900; line-height: 1; cursor: pointer; transition: transform 140ms cubic-bezier(.23,1,.32,1); }
.bookmarklet-dismiss:hover { transform: scale(1.08); }
.bookmarklet-dismiss:active { transform: scale(.94); }
.bookmarklet-eyebrow { padding-right: 14px; color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.bookmarklet-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 11px; color: var(--navy); background: var(--yellow); border: 3px solid var(--navy); border-radius: 999px; box-shadow: 3px 3px 0 var(--blue); font-size: 13px; font-weight: 900; text-align: center; text-decoration: none; cursor: grab; transition: transform 140ms cubic-bezier(.23,1,.32,1), box-shadow 140ms cubic-bezier(.23,1,.32,1); }
.bookmarklet-button:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--blue); }
.bookmarklet-button:active { cursor: grabbing; transform: scale(.97); box-shadow: 2px 2px 0 var(--blue); }
.bookmarklet-note { color: #596885; font-size: 11px; line-height: 1.25; text-align: center; }

.collection { margin-top: 28px; }
.collection-head { width: 100%; min-width: 0; margin-bottom: 18px; }
.collection-head h2 { font-size: clamp(28px, 3.5vw, 40px); }
.collection-head p { margin: 4px 0 0; color: #64708a; }
.collection-tools { display: flex; flex: 0 1 500px; align-items: center; justify-content: flex-end; min-width: 0; max-width: 100%; gap: 10px; }
.search-wrap { display: flex; flex: 1 1 300px; align-items: center; gap: 8px; width: 310px; min-width: 0; height: 60px; padding: 10px 15px; background: var(--white); border: 4px solid var(--navy); border-radius: 999px; }
.search-wrap > span { font-size: 25px; }
.search-wrap input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.sort-wrap { display: flex; flex: 0 1 176px; align-items: center; gap: 8px; min-width: 0; height: 60px; padding: 10px 13px; background: var(--white); border: 4px solid var(--navy); border-radius: 999px; white-space: nowrap; }
.sort-wrap > span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sort-wrap select { width: 100%; min-width: 0; max-width: 112px; color: var(--ink); background: transparent; border: 0; outline: 0; font-weight: 900; cursor: pointer; }
.tag-filters { display: flex; flex-wrap: nowrap; gap: 7px; margin: -2px 0 15px; padding: 2px 3px 8px; overflow: visible; }
.tag-filters::after { content: ""; flex: 0 0 1px; }
.tag-filter { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; max-width: 180px; padding: 6px 10px; color: var(--ink); background: var(--white); border: 3px solid var(--navy); border-radius: 999px; font-size: 12px; font-weight: 900; cursor: pointer; transition: transform 140ms cubic-bezier(.23,1,.32,1), color 140ms ease, background 140ms ease; }
.tag-filter-overflow { display: none; }
.tag-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-count { flex: none; margin-left: 3px; color: #66728d; }
.tag-filter:hover, .tag-filter.active { color: var(--white); background: var(--blue); }
.tag-filter.active .tag-count, .tag-filter:hover .tag-count { color: var(--yellow); }
.tag-filter:active { transform: scale(.96); }

.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.recipe-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  overflow: hidden;
  background: var(--white);
  border: 5px solid var(--navy);
  border-radius: 18px 18px 26px 18px;
  box-shadow: 6px 6px 0 var(--navy);
  transition: transform .15s, box-shadow .15s;
}
.recipe-card:hover { transform: translate(-3px, -3px) rotate(-.25deg); box-shadow: 9px 9px 0 var(--navy); }
.card-color { height: 12px; background: var(--red); border-bottom: 4px solid var(--navy); }
.recipe-card:nth-child(4n+2) .card-color { background: var(--green); }
.recipe-card:nth-child(4n+3) .card-color { background: var(--blue); }
.recipe-card:nth-child(4n+4) .card-color { background: var(--yellow); }
.card-body { flex: 1; padding: 20px 20px 15px; cursor: pointer; }
.source-label { display: block; color: var(--red); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recipe-card h3 { margin-top: 9px; font-size: 23px; line-height: 1.08; text-transform: none; }
.card-description { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: #58647e; font-size: 14px; line-height: 1.45; }
.card-meta { display: flex; flex-wrap: wrap; gap: 5px 0; margin-top: 16px; color: #68728a; font-size: 12px; font-weight: 800; }
.meta-item { display: inline-flex; align-items: center; }
.meta-item + .meta-item::before { content: '·'; margin: 0 7px; color: var(--red); font-weight: 900; }
.pill { padding: 5px 9px; border: 2px solid var(--navy); border-radius: 999px; background: var(--cream); font-size: 12px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.recipe-tag { color: var(--ink); font-weight: 800; line-height: 1.2; }
.rating-summary { color: #9b4e00; }
.card-makers { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: #596885; font-size: 12px; font-weight: 900; }
.avatar-stack { display: flex; padding-left: 7px; }
.avatar-stack .recipeboy-avatar { margin-left: -7px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 4px solid var(--navy); }
.card-actions button { min-height: 52px; border: 0; background: var(--yellow); font-weight: 900; cursor: pointer; }
.card-actions button + button { border-left: 4px solid var(--navy); background: var(--red); color: var(--white); }
.card-actions button:hover { filter: brightness(.96); }
.card-actions button:disabled { color: var(--navy); background: #bce3ac; cursor: default; filter: none; }

.empty-state { display: flex; align-items: center; justify-content: center; gap: 25px; padding: 38px; background: var(--white); border: 5px dashed var(--navy); border-radius: 20px; }
.empty-state img { width: 135px; height: 135px; }
.empty-state h3 { font-size: 24px; }
.empty-state p { margin: 5px 0 0; }

dialog { width: min(820px, calc(100% - 28px)); max-height: calc(100vh - 34px); padding: 0; color: var(--ink); background: transparent; border: 0; overflow: visible; }
dialog::backdrop { background: rgba(16, 42, 90, .72); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; max-height: calc(100vh - 34px); overflow: auto; background: var(--white); border: 6px solid var(--navy); border-radius: 24px; box-shadow: 10px 10px 0 var(--yellow); }
.close-button { position: sticky; float: right; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; margin: 14px; border: 4px solid var(--navy); border-radius: 50%; background: var(--red); color: var(--white); font-size: 28px; line-height: 1; cursor: pointer; }
.detail-hero { padding: 28px 30px 25px; background: var(--yellow); border-bottom: 5px solid var(--navy); }
.detail-hero h2 { max-width: 650px; overflow-wrap: anywhere; font-size: clamp(30px, 6vw, 55px); line-height: 1; }
.detail-hero p { max-width: 620px; margin-bottom: 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 5px 0; margin-top: 17px; color: #4f5870; font-size: 13px; font-weight: 900; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 22px 30px 0; }
.action-button { padding: 10px 16px; background: var(--white); }
.action-button.made { color: var(--white); background: var(--red); }
.action-button.made:disabled { color: var(--navy); background: #bce3ac; box-shadow: none; cursor: default; transform: none; }
.action-button.delete { margin-left: auto; color: #8c2630; background: transparent; border-color: #8c2630; box-shadow: none; }
.action-button.delete:hover { box-shadow: 4px 4px 0 #8c2630; }
.action-button.delete.confirm { color: var(--white); background: #8c2630; }
.recipe-columns { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; padding: 27px 30px 38px; }
.recipe-columns h3 { margin-bottom: 14px; font-size: 20px; }
.ingredient-list { margin: 0; padding: 0; list-style: none; }
.ingredient-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 2px dotted #c2bfae; line-height: 1.35; }
.ingredient-name { min-width: 0; color: var(--ink); font-weight: 900; overflow-wrap: anywhere; }
.ingredient-quantity { color: #68738a; font-size: 13px; font-weight: 800; text-align: right; white-space: nowrap; }
.steps { margin: 0; padding: 0; counter-reset: steps; list-style: none; }
.steps li { position: relative; padding: 0 0 21px 45px; line-height: 1.5; }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; color: var(--white); background: var(--blue); border: 3px solid var(--navy); border-radius: 50%; font-weight: 900; }
.source-link { color: var(--blue); }

.recipeboy-avatar { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; overflow: visible; border: 3px solid var(--navy); border-radius: 50%; box-shadow: 2px 2px 0 rgba(16,42,90,.2); }
.recipeboy-avatar img { display: block; width: 88%; height: 88%; object-fit: contain; }
.avatar-sunshine { background: var(--yellow); }
.avatar-tomato { background: #ff6975; }
.avatar-blueberry { background: #72a9ff; }
.avatar-mint { background: #9cdb88; }
.avatar-accessory { position: absolute; top: -12%; left: -12%; z-index: 2; font-size: .55em; filter: drop-shadow(1px 1px 0 var(--white)); }
.avatar-badge { position: absolute; right: -15%; bottom: -10%; z-index: 2; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px; color: var(--red); background: var(--white); border: 2px solid var(--navy); border-radius: 50%; font-size: 10px; line-height: 1; }
.avatar-tiny { width: 29px; height: 29px; border-width: 2px; box-shadow: none; }
.avatar-tiny .avatar-badge { display: none; }
.avatar-small { width: 42px; height: 42px; }
.avatar-large { width: 150px; height: 150px; border-width: 5px; box-shadow: 6px 6px 0 var(--navy); }
.avatar-large .avatar-badge { right: -6%; bottom: -5%; min-width: 36px; height: 36px; font-size: 19px; border-width: 3px; }
.avatar-account { width: 30px; height: 30px; border-width: 0; box-shadow: none; }
.avatar-account .avatar-badge { right: -8px; bottom: -5px; min-width: 14px; height: 14px; padding: 0 2px; border-width: 1px; font-size: 8px; }

.recipe-social { padding: 28px 30px 36px; background: #f7f3e8; border-top: 5px solid var(--navy); }
.social-summary { display: grid; grid-template-columns: minmax(180px,.7fr) minmax(300px,1.3fr); gap: 30px; align-items: start; }
.social-eyebrow { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.social-summary h3 { margin-top: 5px; font-size: 23px; }
.social-summary p { margin: 4px 0 0; color: #64708a; }
.social-summary .big-stars { color: var(--red); font-size: 27px; letter-spacing: 2px; }
.review-form { display: block; padding: 17px; background: var(--white); border: 4px solid var(--navy); border-radius: 18px; box-shadow: 4px 4px 0 var(--yellow); }
.review-form fieldset, .profile-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.review-form legend, .review-form > label, .profile-form legend, .profile-name { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.review-form > label { margin-top: 12px; }
.review-form > label span { color: #7b8499; font-weight: 700; }
.review-form textarea { height: 88px; min-height: 88px; padding: 10px 12px; border-width: 3px; border-radius: 12px; }
.star-picker { display: flex; gap: 3px; }
.star-choice { padding: 0 2px; color: #cbc4ad; background: transparent; border: 0; font-size: 31px; line-height: 1; cursor: pointer; transition: color 140ms ease, transform 140ms cubic-bezier(.23,1,.32,1); }
.star-choice.selected { color: var(--red); }
.star-choice:active { transform: scale(.9); }
.review-form-actions, .profile-actions { display: flex; align-items: center; gap: 14px; margin-top: 13px; }
.review-form-actions .primary-button { width: auto; min-width: 140px; padding: 8px 15px; }
.text-button { padding: 7px 3px; color: var(--blue); background: transparent; border: 0; font-weight: 900; text-decoration: underline; cursor: pointer; }
.friend-columns { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; margin-top: 30px; }
.friend-columns h3 { margin-bottom: 12px; font-size: 18px; }
.friend-columns p { margin: 0; color: #64708a; }
.maker-list { display: flex; flex-wrap: wrap; gap: 9px; }
.maker-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; background: var(--white); border: 2px solid var(--navy); border-radius: 999px; font-size: 13px; font-weight: 900; }
.review-list { display: grid; gap: 10px; }
.friend-review { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px; background: var(--white); border: 3px solid var(--navy); border-radius: 14px; }
.review-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
.review-heading span { color: var(--red); letter-spacing: 1px; }
.friend-review p { margin-top: 5px; color: var(--ink); white-space: pre-wrap; }

.profile-dialog { width: min(720px, calc(100% - 28px)); }
.profile-shell { box-shadow: 10px 10px 0 var(--blue); }
.profile-hero { display: flex; align-items: center; gap: 26px; padding: 30px; background: var(--yellow); border-bottom: 5px solid var(--navy); }
.profile-hero h2 { margin-top: 4px; font-size: clamp(30px,5vw,48px); line-height: 1; }
.profile-hero p { max-width: 400px; margin-bottom: 0; }
.profile-form { display: block; padding: 24px 30px 30px; }
.profile-name input { display: block; width: 100%; margin-top: 7px; padding: 10px 13px; color: var(--ink); background: var(--white); border: 3px solid var(--navy); border-radius: 12px; outline: none; text-transform: none; }
.profile-form fieldset { margin-top: 20px; }
.avatar-options { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-option { position: relative; display: grid; place-items: center; gap: 3px; min-width: 82px; min-height: 68px; padding: 8px; background: var(--white); border: 3px solid #c5c0af; border-radius: 13px; cursor: pointer; transition: transform 140ms cubic-bezier(.23,1,.32,1), border-color 140ms ease, box-shadow 140ms ease; }
.avatar-option:has(input:checked) { border-color: var(--navy); box-shadow: 3px 3px 0 var(--navy); transform: translate(-1px,-1px); }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-option strong { font-size: 11px; }
.color-option > span { width: 30px; height: 30px; border: 2px solid var(--navy); border-radius: 50%; }
.option-emoji { height: 32px; font-size: 25px; line-height: 32px; }
.profile-actions { justify-content: space-between; margin-top: 25px; }
.profile-actions .primary-button { width: auto; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; transform: translate(-50%, 120px); padding: 12px 18px; color: var(--white); background: var(--navy); border: 3px solid var(--white); border-radius: 999px; box-shadow: 4px 4px 0 var(--red); opacity: 0; transition: .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast button { margin-left: 12px; padding: 3px 8px; color: var(--navy); background: var(--yellow); border: 0; border-radius: 999px; font: inherit; font-weight: 900; text-decoration: underline; cursor: pointer; }
.toast button:disabled { opacity: .6; cursor: wait; }
.floating-recipeboy { position: fixed; right: 12px; bottom: 13px; z-index: 8; width: 82px; pointer-events: none; filter: drop-shadow(4px 5px 0 rgba(16,42,90,.22)); }
.floating-recipeboy img { display: block; width: 100%; height: auto; }
footer { height: 12px; background: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .hero { min-height: 210px; gap: 10px; }
  .mascot-stage { width: 42vw; }
  .burst-two { display: none; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .recipe-columns { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
  .bookmarklet-dock { display: none; }
  .auth-controls { top: 10px; right: 9px; gap: 5px; }
  .account-button { min-height: 38px; padding-right: 6px; }
  .account-button #account-label { display: none; }
  .sign-out-button { min-height: 38px; padding: 6px 8px; font-size: 11px; }
  .auth-gate { align-items: center; flex-direction: column; padding: 20px; text-align: center; }
  .auth-gate img { width: 120px; }
  .auth-gate .primary-button { width: 100%; }
  .hero { min-height: 235px; align-items: flex-start; justify-content: flex-start; padding-top: 28px; }
  .mascot-stage { position: absolute; right: -10px; bottom: 3px; width: 172px; }
  h1 { font-size: 51px; }
  h1 span { margin-left: 34px; }
  .burst-one { top: 8px; right: 24px; }
  main { width: min(100% - 22px, 1120px); margin-top: 20px; }
  .feeder-heading, .collection-head, .form-footer { align-items: stretch; flex-direction: column; }
  .feeder-heading { gap: 10px; }
  .feeder-heading p { text-align: left; font-size: 14px; }
  form, .feeder-heading { padding-left: 18px; padding-right: 18px; }
  form { grid-template-columns: 1fr; }
  .primary-button { width: 100%; }
  textarea { height: 108px; min-height: 108px; }
  .form-footer > span { display: none; }
  .collection-title-wrap { align-items: flex-start; }
  .search-wrap { flex: none; width: 100%; }
  .collection-tools { flex: none; align-items: stretch; flex-direction: column; width: 100%; }
  .sort-wrap { flex: none; justify-content: space-between; width: 100%; }
  .tag-filters { margin-right: -11px; padding-right: 11px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tag-filters::-webkit-scrollbar { display: none; }
  .tag-filter { flex: none; }
  .tag-filter-overflow { display: inline-flex; }
  .floating-recipeboy { right: 7px; bottom: 9px; width: 62px; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card { min-height: 285px; }
  .empty-state { flex-direction: column; text-align: center; }
  .detail-hero, .detail-actions, .recipe-columns { padding-left: 20px; padding-right: 20px; }
  .recipe-social { padding-left: 20px; padding-right: 20px; }
  .social-summary, .friend-columns { grid-template-columns: 1fr; }
  .profile-hero { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .avatar-large { width: 115px; height: 115px; }
  .profile-form { padding: 20px; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .profile-actions .primary-button { width: 100%; }
}

@media (hover: hover) and (pointer: fine) {
  .star-choice:hover { color: var(--red); transform: translateY(-2px); }
  .avatar-option:hover { border-color: var(--navy); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
