@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --orange: #ff6b2b;
  --orange-soft: #ffb08a;
  --bg: #11110f;
  --panel: #191917;
  --text: #f4f2e9;
  --muted: #92928a;
  --line: #ffffff1c;
  --ok: #9fe0a8;
  --bad: #ff8a80;
  --wait: #e9d9a6;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

/*
 * AICODE-NOTE: The page is two "screens" paged with CSS scroll snap on the
 * root scroller.
 * - scroll-snap-type must be on <html> (the viewport scroller), not <body>.
 * - Both screens use scroll-snap-align: start, so one swipe / wheel tick /
 *   PageDown from the photo lands exactly on the top of the auction screen,
 *   and scrolling up from the top of the auction lands back on the photo.
 * - Screen 2 is several screens tall (day picker, photos, «Мои ставки», how it
 *   works). Per the CSS Scroll Snap spec a snap area larger than the snapport
 *   is a valid snap position anywhere while it covers the viewport, so
 *   `mandatory` does not trap the user: they scroll freely through all of
 *   screen 2 (down to the footer) and back up to the photo.
 * - Re-checked 2026-10-18 in Chromium with the long, live screen 2 (about
 *   4.5 phone screens): touch drags and flings from the photo land on the
 *   auction top or carry on into it, drags/wheel/keys inside screen 2 move
 *   freely down to the footer and back, a swipe down from the auction top
 *   returns to the photo, the #my / #how links land in place, and live
 *   re-renders or opening/closing a modal deep in screen 2 keep the scroll
 *   position. So `mandatory` stays: `proximity` would allow a
 *   half-photo/half-auction resting state. (On the photo, a precise wheel or
 *   trackpad scroll of less than half a screen springs back to it, larger
 *   ones move on to the auction - unchanged from the two-screen version.)
 */
html {
  scroll-snap-type: y mandatory;
}

html.has-modal {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, Arial, sans-serif;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Screens ---------- */

.screen {
  scroll-snap-align: start;
}

/* Screen 1 (the framed photo on a wall) is styled in wall.css. */

.screen-auction {
  min-height: 100vh;
}

/* ---------- Top bar ---------- */

header {
  max-width: 1440px;
  margin: auto;
  padding: 28px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #ffffff18;
}

.logo {
  font-size: 26px;
  letter-spacing: -2px;
  font-weight: 800;
}

.logo span {
  color: var(--orange);
}

nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

nav a:hover {
  color: var(--orange);
}

.tag {
  border: 1px solid #ffffff25;
  border-radius: 24px;
  padding: 9px 15px;
  font-size: 11px;
  color: #b5b5aa;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  margin-right: 7px;
  flex: none;
}

/* ---------- Auction layout ---------- */

main {
  max-width: 1440px;
  margin: auto;
  padding: 36px 5% 36px;
}

/*
 * AICODE-NOTE: DOM order is intro -> days -> day (panel, photos): the h1 comes
 * first for screen readers, and the intro has no focusable elements, so tab
 * order is unaffected. Visual order is set with grid areas: on desktop the
 * intro, the day picker, then photos left / panel right (sticky); on <=850px
 * the day picker and the panel come FIRST, so bidding is visible right after
 * the swipe, and the intro moves below the photos.
 */
.auction {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "days"
    "day";
  gap: 34px;
}

.day {
  grid-area: day;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  grid-template-areas: "photos panel";
  gap: 18px;
  align-items: start;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
}

.section-note {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- Intro ---------- */

.intro {
  grid-area: intro;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.eyebrow {
  color: var(--orange);
  letter-spacing: 2px;
  font-size: 10px;
  font-weight: 800;
}

h1 {
  font-size: clamp(46px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -5px;
  margin: 20px 0 0;
  font-weight: 500;
}

h1 em {
  font-style: normal;
  color: var(--orange);
}

.intro p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  max-width: 360px;
  margin: 0 0 6px;
}

/* ---------- Day picker ---------- */

.days {
  grid-area: days;
  min-width: 0;
}

.day-strip {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, 1fr);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: #ffffff30 transparent;
  padding: 3px 3px 10px;
  margin: -3px;
}

.day-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  transition: border-color .15s, background-color .15s;
}

.day-card:hover {
  border-color: #ffffff3a;
}

.day-card[aria-selected="true"] {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
  background: #1e1a16;
}

.day-date {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.day-state {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.day-time {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: none;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.day-card[data-phase="open"] .day-state,
.day-card[data-phase="closing"] .day-state {
  color: var(--orange);
}

.day-card[data-phase="checking"] .dot {
  background: var(--wait);
}

.day-card[data-phase="live"] .dot {
  background: var(--text);
}

.day-card[data-phase="checking"] .day-time,
.day-card[data-phase="live"] .day-time {
  color: #c9c7bd;
}

.day-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.day-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  overflow: hidden;
  flex: none;
  background: #262622;
}

.day-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.day-card.no-leader .day-thumb {
  background: repeating-linear-gradient(45deg, #25251f 0 5px, #1c1c19 5px 10px);
}

.day-card.no-leader .day-thumb img {
  display: none;
}

.day-total {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.day-total b {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.day-total small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.placeholder,
.empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #ffffff22;
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.offline {
  margin: 12px 0 0;
  color: var(--bad);
  font-size: 12px;
}

/* ---------- Day panel ---------- */

.panel {
  grid-area: panel;
  position: sticky;
  top: 24px;
  border: 1px solid #ffffff20;
  border-radius: 18px;
  padding: 32px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
}

.panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}

.panel-top h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.live {
  display: inline-flex;
  align-items: center;
  color: var(--orange);
  text-align: right;
}

.live[data-phase="checking"] {
  color: var(--wait);
}

.live[data-phase="checking"] .dot {
  background: var(--wait);
}

.live[data-phase="live"] {
  color: var(--text);
}

.live[data-phase="live"] .dot {
  background: var(--text);
}

.price {
  font-size: 70px;
  letter-spacing: -4px;
  margin: 25px 0 0;
  font-variant-numeric: tabular-nums;
}

.price span {
  color: var(--muted);
  font-size: 40px;
}

.note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin-top: 5px;
}

.timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #ffffff18;
  border-bottom: 1px solid #ffffff18;
  padding: 22px 0;
  margin: 25px 0 18px;
  font-size: 12px;
  color: var(--muted);
}

.timer strong {
  font-size: 22px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  white-space: nowrap;
}

.extended {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #ff6b2b66;
  border-radius: 10px;
  background: #ff6b2b14;
  color: var(--orange-soft);
  font-size: 12px;
  line-height: 1.6;
}

.timeline {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.timeline span {
  display: block;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.hint.warn {
  color: var(--orange-soft);
}

.primary {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 18px;
  background: var(--orange);
  color: #111;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.primary:hover {
  background: #ff8652;
}

.primary:disabled {
  background: #5a3a2b;
  color: #11110f99;
}

.secondary {
  border: 1px solid #ff6b2b88;
  border-radius: 10px;
  padding: 12px 14px;
  background: transparent;
  color: var(--orange);
  font-weight: 800;
  font-size: 12px;
}

.secondary:hover {
  background: #ff6b2b18;
}

.status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--orange);
  min-height: 20px;
  margin: 10px 0 0;
}

.status:empty {
  min-height: 0;
  margin: 0;
}

.status[data-tone="error"] {
  color: var(--bad);
}

.status[data-tone="ok"] {
  color: var(--ok);
}

.disclaimer {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .3px;
  margin: 14px 0 0;
}

/* ---------- Amount input ---------- */

.bid-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff28;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 12px 0;
}

.bid-row:focus-within {
  border-color: var(--orange);
}

.bid-row:has(input[aria-invalid="true"]) {
  border-color: var(--bad);
}

.bid-row label {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}

.bid-row input {
  width: 110px;
  min-width: 0;
  background: transparent;
  border: 0;
  color: white;
  text-align: right;
  font-size: 18px;
  outline: none;
}

.bid-row span {
  color: var(--muted);
}

.bid-row input::-webkit-inner-spin-button,
.bid-row input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.bid-row input[type="number"] {
  appearance: textfield;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid #ffffff2a;
  border-radius: 999px;
  padding: 8px 12px;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.chip:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- Acceptance of the rules (payment dialogs) ---------- */

/* Proposal: the one required checkbox, a row like the amount input. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #ffffff28;
  border-radius: 10px;
  color: #d8d6cc;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.consent:has(input:checked) {
  border-color: #ff6b2b88;
}

.consent:has(input[aria-invalid="true"]) {
  border-color: var(--bad);
}

.consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  color-scheme: dark; /* a dark box when unticked, not a white square on the panel */
  accent-color: var(--orange);
  cursor: pointer;
}

/* Top-up: the click-wrap line right above the button. */
.clickwrap {
  margin: 12px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.consent a,
.clickwrap a,
.my-about a {
  color: var(--orange-soft);
  font-size: inherit;
  text-decoration: underline;
  text-decoration-color: #ffb08a66;
  text-underline-offset: 2px;
}

.consent a:hover,
.clickwrap a:hover,
.my-about a:hover {
  color: var(--orange);
  text-decoration-color: currentColor;
}

/* A submit that is blocked until the checkbox is ticked: it looks disabled but
   stays focusable and clickable, so pressing it explains what is missing. */
.primary[aria-disabled="true"],
.primary[aria-disabled="true"]:hover {
  background: #5a3a2b;
  color: #11110f99;
}

/* ---------- Photos of the day ---------- */

.photos {
  grid-area: photos;
  min-width: 0;
}

.photos .section-head h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.5px;
}

.photo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.photo-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
}

.photo-card.is-leader {
  border-color: var(--orange);
}

.photo-card.is-out {
  opacity: .5;
}

.photo-frame {
  position: relative;
  aspect-ratio: 1;
  background: #232320;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.photo-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 16px 0;
}

.photo-total {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}

.photo-count {
  font-size: 11px;
  color: var(--muted);
}

.photo-topup {
  margin: 12px 16px 16px;
}

.photo-card .photo-meta:last-child {
  padding-bottom: 16px;
}

.bump {
  display: inline-block;
  animation: bump .9s ease-out;
}

@keyframes bump {
  0% {
    color: var(--orange);
    transform: scale(1.12);
  }

  100% {
    transform: none;
  }
}

/* ---------- My bids ---------- */

.my {
  padding: 72px 0 0;
}

.my h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -1.5px;
}

.count {
  margin-left: 4px;
  color: var(--orange);
  font-size: .5em;
  letter-spacing: 0;
  vertical-align: super;
}

.my-about {
  max-width: 680px;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.my-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 12px;
}

.bid {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.bid-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: repeating-linear-gradient(45deg, #25251f 0 5px, #1c1c19 5px 10px);
}

.bid-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bid.no-thumb .bid-thumb img {
  display: none;
}

.bid-title {
  margin: 2px 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.bid-sub {
  margin: 0 0 6px;
  font-size: 12px;
  color: #d8d6cc;
}

.bid-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

/* The moderator's comment on a rejected photo, written for its author: a little brighter than the hint. */
.bid-comment {
  margin: 6px 0 0;
  padding-left: 10px;
  border-left: 2px solid #ffffff2a;
  font-size: 12px;
  line-height: 1.6;
  color: #d8d6cc;
  overflow-wrap: anywhere;
}

.bid-comment[hidden] {
  display: none;
}

.bid-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.bid-reason {
  font-size: 11px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.tone-lead {
  border-color: var(--orange);
  background: var(--orange);
  color: #111;
}

.tone-active {
  border-color: #ff6b2b77;
  color: var(--orange);
}

.tone-wait {
  border-color: #e9d9a655;
  color: var(--wait);
}

.tone-done {
  border-color: #9fe0a866;
  color: var(--ok);
}

.tone-muted {
  border-color: #ffffff2a;
  color: #c9c7bd;
}

.tone-bad {
  border-color: #ff8a8077;
  color: var(--bad);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 72px 0 52px;
}

.steps-title {
  grid-column: 1 / -1;
  margin: 0 0 -14px;
}

.step {
  display: flex;
  gap: 18px;
}

.step .idx {
  color: var(--orange);
  font-size: 11px;
  padding-top: 4px;
  white-space: nowrap;
}

.step h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
}

.step p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid #ffffff18;
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  color: var(--muted);
  font-size: 10px;
}

footer .logo {
  font-size: 17px;
}

/* The documents, on index.html and every legal page: a full-width last row. */
.footer-docs {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 22px;
  padding-top: 12px;
  border-top: 1px solid #ffffff10;
}

.footer-docs a {
  padding: 6px 0;
  color: #c9c7bd;
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: #ffffff30;
  text-underline-offset: 3px;
}

.footer-docs a:hover {
  color: var(--orange);
  text-decoration-color: currentColor;
}

.footer-docs a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.footer-mail {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- Modals ---------- */

.modal {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 1px solid #ffffff22;
  border-radius: 18px;
  background: var(--panel);
  color: var(--text);
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-wide {
  width: min(940px, calc(100vw - 24px));
}

.modal-wide.is-done {
  width: min(520px, calc(100vw - 24px));
}

.modal::backdrop {
  background: rgb(8 8 7 / .82);
}

/* Browsers without <dialog>.showModal() (common.js adds .no-dialog): the
   open attribute only, so the overlay and hiding are done here. */
.no-dialog .modal:not([open]) {
  display: none;
}

.no-dialog .modal[open] {
  position: fixed;
  inset: 0;
  z-index: 100;
  box-shadow: 0 0 0 100vmax rgb(8 8 7 / .82);
}

.modal-body {
  padding: 22px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.modal-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff25;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.topup-photo {
  display: flex;
  justify-content: center;
}

.topup-photo img {
  display: block;
  width: min(100%, 42vh);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  background: #232320;
}

.topup-meta {
  margin: 14px 0 0;
  font-size: 13px;
  color: #d8d6cc;
}

.propose-form {
  display: grid;
  gap: 18px;
}

.propose-side .hint:first-child {
  margin-top: 0;
}

.crop-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #0b0b0a;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.crop-viewport.is-dragging {
  cursor: grabbing;
}

.crop-image {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  max-height: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.crop-guides {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px var(--orange);
  background:
    linear-gradient(to right, transparent calc(33.333% - .5px), #ffffff4d 0 calc(33.333% + .5px), transparent 0 calc(66.666% - .5px), #ffffff4d 0 calc(66.666% + .5px), transparent 0),
    linear-gradient(to bottom, transparent calc(33.333% - .5px), #ffffff4d 0 calc(33.333% + .5px), transparent 0 calc(66.666% - .5px), #ffffff4d 0 calc(66.666% + .5px), transparent 0);
  opacity: .75;
  transition: opacity .2s;
}

.crop-viewport.is-dragging .crop-guides {
  opacity: 1;
}

.zoom-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.zoom-row label {
  font-size: 11px;
  color: var(--muted);
}

.zoom-row input {
  flex: 1;
  min-width: 0;
  accent-color: var(--orange);
}

.modal-done {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 6px 4px 2px;
  text-align: center;
}

.done-preview {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 30px #0009;
}

.done-title {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.done-title:focus {
  outline: none;
}

.done-text {
  max-width: 440px;
  margin: 0;
  color: #d0cec4;
  font-size: 13px;
  line-height: 1.7;
}

.modal-done .disclaimer {
  margin: 0;
}

.modal-done .primary {
  max-width: 380px;
  margin-top: 6px;
}

.noscript {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--panel);
  text-align: center;
}

/* ---------- Focus ---------- */

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #ff9f74;
  outline-offset: 3px;
}

.bid-row input:focus-visible,
.modal:focus-visible {
  outline: none;
}

/* ---------- Responsive ---------- */

@media (min-width: 860px) {
  .propose-form {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 24px;
  }
}

/* Wide screens: the headline on one line and a tighter panel, so the
   selected day's panel with its button fits on the first screen of the
   auction (1440 x 900). */
@media (min-width: 1101px) {
  h1 {
    font-size: clamp(48px, 4.6vw, 68px);
    letter-spacing: -4px;
    margin-top: 14px;
  }

  h1 br {
    display: none;
  }

  .auction {
    gap: 30px;
  }

  .days .section-head {
    margin-bottom: 12px;
  }

  .panel {
    padding: 28px;
  }

  .price {
    margin-top: 14px;
  }

  .timer {
    padding: 18px 0;
    margin: 18px 0 16px;
  }
}

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  main {
    padding-top: 28px;
  }

  .auction {
    grid-template-areas:
      "days"
      "day"
      "intro";
    gap: 40px;
  }

  .day {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "panel"
      "photos";
    gap: 32px;
  }

  .panel {
    position: static;
  }

  .day-strip {
    grid-auto-columns: 148px;
  }

  .intro {
    display: block;
  }

  .intro p {
    max-width: 100%;
    margin-top: 24px;
  }

  h1 {
    letter-spacing: -3px;
  }

  .steps {
    gap: 22px;
  }

  .tag {
    display: none;
  }
}

@media (max-width: 520px) {
  header {
    padding: 22px 6%;
  }

  nav {
    gap: 16px;
  }

  main {
    padding-left: 6%;
    padding-right: 6%;
  }

  .panel {
    padding: 25px;
  }

  .price {
    font-size: 62px;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .photo-meta {
    padding: 12px 12px 0;
  }

  .photo-total {
    font-size: 18px;
  }

  .photo-topup {
    margin: 10px 12px 12px;
  }

  .bid {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .bid-thumb {
    width: 56px;
    height: 56px;
  }

  .bid-status {
    grid-column: 2;
    flex-flow: row wrap;
    align-items: center;
    text-align: left;
  }

  .steps {
    grid-template-columns: 1fr;
    padding: 56px 0 36px;
    gap: 25px;
  }

  .steps-title {
    margin-bottom: 0;
  }

  .modal-body {
    padding: 18px;
  }

  footer {
    gap: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bump {
    animation: none;
  }

  .day-card,
  .crop-guides {
    transition: none;
  }
}
