 .room1078-scratch-social {
  width: 100%;
  background:
    radial-gradient(circle at 50% 0%, rgba(199,184,144,.09), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%),
    var(--r1078-bg, #050505);
  color: var(--r1078-paper, #e8e2d6);
  padding: clamp(34px, 5vw, 62px) 18px;
  box-sizing: border-box;
  overflow: hidden;
}

.room1078-scratch-inner {
  position: relative;
  max-width: var(--r1078-scratch-width, 860px);
  margin: 0 auto;
}

.room1078-scratch-align-left .room1078-scratch-inner { margin-left: 0; }
.room1078-scratch-align-right .room1078-scratch-inner { margin-right: 0; }

.room1078-scratch-head {
  margin-bottom: 24px;
  max-width: 620px;
}

.room1078-scratch-head span {
  display: block;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--r1078-muted, #6a6255);
}

.room1078-scratch-head h2 {
  margin: 0;
  font-family: "Cormorant Local", "Cormorant Garamond", Garamond, serif;
  font-weight: 400;
  font-size: clamp(38px, 6vw, 78px);
  line-height: .92;
  letter-spacing: -.045em;
  color: var(--r1078-paper, #e8e2d6);
}

.room1078-scratch-head p {
  margin: 12px 0 0;
  max-width: 520px;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(232,226,214,.62);
}

.room1078-scratch-tickets {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 24px);
  align-items: center;
}

.room1078-ticket {
  position: relative;
  width: var(--r1078-ticket-w, 210px);
  height: var(--r1078-ticket-h, 118px);
  transform: rotate(var(--ticket-rot, 0deg));
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 18%, rgba(0,0,0,.06)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.03) 0 1px, transparent 1px 7px),
    var(--r1078-paper, #e8e2d6);
  color: var(--r1078-text, #111);
  box-shadow:
    0 18px 36px rgba(0,0,0,.32),
    inset 0 0 0 1px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.10);
  overflow: hidden;
  cursor: none;
  transition: transform .24s ease, filter .24s ease;
  clip-path: polygon(0 7%, 5% 6%, 7% 0, 93% 0, 95% 5%, 100% 7%, 100% 92%, 95% 93%, 93% 100%, 8% 100%, 6% 95%, 0 92%);
}

.room1078-ticket:nth-child(2) {
  margin-top: 18px;
}

.room1078-ticket:hover {
  transform: rotate(calc(var(--ticket-rot, 0deg) * .45)) translateY(-6px);
  filter: brightness(1.04);
  z-index: 5;
}

.room1078-ticket-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: var(--r1078-text, #111);
  text-decoration: none !important;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  padding: 16px;
  box-sizing: border-box;
  pointer-events: none;
}

.room1078-ticket.is-revealed .room1078-ticket-link {
  pointer-events: auto;
}

.room1078-ticket-link small,
.room1078-ticket-link em {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--r1078-muted, #6a6255);
}

.room1078-ticket-link strong {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 17px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--r1078-text, #111);
}

.room1078-ticket-link em {
  color: var(--r1078-accent, #c7b890);
}

.room1078-ticket-link:hover strong {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 5px;
}

.room1078-scratch-canvas {
  position: absolute;
  inset: 9px;
  z-index: 3;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  border: 1px dashed rgba(0,0,0,.16);
  box-sizing: border-box;
  cursor: none;
  touch-action: none;
}

.room1078-ticket-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 10px;
  letter-spacing: .24em;
  color: rgba(0,0,0,.48);
  transition: opacity .2s ease;
}

.room1078-ticket.is-scratching .room1078-ticket-hint,
.room1078-ticket.is-revealed .room1078-ticket-hint {
  opacity: 0;
}

.room1078-scratch-coin {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999999;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-18deg);
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.42), transparent 22%),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(0,0,0,.12)),
    var(--r1078-coin, #c7b890);
  color: rgba(0,0,0,.60);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 8px;
  letter-spacing: -.05em;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.16),
    inset 0 0 0 5px rgba(0,0,0,.08),
    0 10px 22px rgba(0,0,0,.34);
}

.room1078-scratch-social.is-coin-active .room1078-scratch-coin {
  display: flex;
}

.room1078-scratch-auto {
  clear: both;
}

@media only screen and (max-width: 767px) {
  .room1078-scratch-social {
    padding: 34px 14px 42px;
  }

  .room1078-scratch-tickets {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
  }

  .room1078-ticket {
    width: min(100%, var(--r1078-ticket-mobile-w, 250px));
    height: var(--r1078-ticket-h, 118px);
  }

  .room1078-ticket:nth-child(2) {
    margin-top: 0;
  }

  .room1078-scratch-coin {
    display: none !important;
  }
}


/* ROOM.1078 Scratch Social v1.1 – mince se ukazuje už při hoveru nad losem */
.room1078-ticket:not(.is-revealed):hover .room1078-scratch-canvas {
  filter: brightness(1.04);
}

.room1078-scratch-coin {
  transition: opacity .08s linear, transform .08s linear;
}
