:root {
  --premium-bg: #eef1f8;
  --premium-bg-deep: #dfe5f1;
  --premium-surface: rgba(255, 255, 255, 0.82);
  --premium-surface-strong: rgba(255, 255, 255, 0.94);
  --premium-surface-soft: rgba(72, 58, 140, 0.06);
  --premium-text: #17182a;
  --premium-muted: #686b82;
  --premium-line: rgba(52, 44, 105, 0.12);
  --premium-accent: #ff8a32;
  --premium-accent-2: #ffbd55;
  --premium-teal: #21c7bd;
  --premium-violet: #7558ee;
  --premium-success: #25bd87;
  --premium-danger: #ed5f70;
  --premium-shadow: 0 24px 64px rgba(42, 37, 83, 0.14);
  --premium-shadow-soft: 0 12px 32px rgba(42, 37, 83, 0.1);
  --premium-radius-xl: 30px;
  --premium-radius-lg: 22px;
  --premium-radius-md: 16px;
  --bg: var(--premium-bg);
  --bg-top: #f8f9fd;
  --panel: var(--premium-surface);
  --panel-strong: var(--premium-surface-strong);
  --ink: var(--premium-text);
  --muted: var(--premium-muted);
  --line: var(--premium-line);
  --accent: var(--premium-accent);
  --accent-2: var(--premium-accent-2);
  --green: var(--premium-teal);
  --shadow: var(--premium-shadow);
  --chip-bg: var(--premium-surface-soft);
  color-scheme: light;
}

body[data-theme="dark"] {
  --premium-bg: #090b15;
  --premium-bg-deep: #05060d;
  --premium-surface: rgba(20, 23, 41, 0.82);
  --premium-surface-strong: rgba(25, 28, 50, 0.95);
  --premium-surface-soft: rgba(255, 255, 255, 0.065);
  --premium-text: #f7f7ff;
  --premium-muted: #a8a9bd;
  --premium-line: rgba(210, 208, 255, 0.12);
  --premium-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --premium-shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.28);
  --bg: var(--premium-bg);
  --bg-top: #14162a;
  --panel: var(--premium-surface);
  --panel-strong: var(--premium-surface-strong);
  --ink: var(--premium-text);
  --muted: var(--premium-muted);
  --line: var(--premium-line);
  --accent: #ff963f;
  --accent-2: #ffc65c;
  --green: #32d8cc;
  --shadow: var(--premium-shadow);
  --chip-bg: var(--premium-surface-soft);
  color-scheme: dark;
}

html { background: var(--premium-bg-deep); }

body {
  color: var(--premium-text);
  background:
    radial-gradient(circle at 12% 5%, rgba(255, 139, 50, 0.18), transparent 24rem),
    radial-gradient(circle at 88% 16%, rgba(117, 88, 238, 0.2), transparent 28rem),
    radial-gradient(circle at 54% 92%, rgba(33, 199, 189, 0.12), transparent 32rem),
    linear-gradient(145deg, var(--premium-bg), var(--premium-bg-deep)) fixed;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

::selection { background: rgba(117, 88, 238, 0.35); color: var(--premium-text); }

:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(50, 216, 204, 0.48) !important;
  outline-offset: 3px;
}

:where(.panel, .auth-card, .hero-card, .game-card, .modal__card, .feed, .words-panel, .team-tile, .score-row, .status-strip article) {
  border-color: var(--premium-line) !important;
  background-color: var(--premium-surface) !important;
  box-shadow: var(--premium-shadow-soft) !important;
  backdrop-filter: blur(22px) saturate(135%);
}

:where(.panel, .auth-card, .modal__card, .feed, .words-panel) {
  border-radius: var(--premium-radius-lg) !important;
}

:where(input, select, textarea, .team-name-input) {
  min-height: 48px;
  border: 1px solid var(--premium-line) !important;
  border-radius: 14px !important;
  background: var(--premium-surface-soft) !important;
  color: var(--premium-text) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

:where(input, select, textarea)::placeholder { color: var(--premium-muted); opacity: .72; }

:where(button, .primary-button, .accent-button, .primary-link, .ghost-button, .ghost-link, .text-button) {
  border-radius: 14px !important;
  font-weight: 800;
  letter-spacing: -0.01em;
}

:where(.primary-button, .primary-link) {
  border: 0 !important;
  color: #17111f !important;
  background: linear-gradient(135deg, var(--premium-accent-2), var(--premium-accent)) !important;
  box-shadow: 0 12px 28px rgba(255, 138, 50, 0.25), inset 0 1px 0 rgba(255,255,255,.45) !important;
}

:where(.accent-button) {
  color: #071717 !important;
  background: linear-gradient(135deg, #52ebe0, var(--premium-teal)) !important;
  box-shadow: 0 12px 28px rgba(33, 199, 189, 0.2) !important;
}

:where(.ghost-button, .ghost-link, .text-button, .code-chip, .icon-chip, .team-icon, .team-join) {
  border-color: var(--premium-line) !important;
  background: var(--premium-surface-soft) !important;
  color: var(--premium-text) !important;
}

@media (hover: hover) {
  :where(button:not(:disabled), .primary-link, .ghost-link):hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
  }
  :where(.game-card, .auth-card, .team-tile):hover {
    border-color: rgba(117, 88, 238, 0.28) !important;
  }
}

.theme-toggle {
  border: 1px solid var(--premium-line) !important;
  border-radius: 16px !important;
  background: var(--premium-surface-strong) !important;
  color: var(--premium-text) !important;
  box-shadow: var(--premium-shadow-soft) !important;
  backdrop-filter: blur(22px) saturate(140%);
}

.home-shell { width: min(1220px, calc(100% - 36px)); padding-top: 86px; }

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px) !important;
  border-radius: 34px !important;
  background:
    radial-gradient(circle at 72% 30%, rgba(117, 88, 238, .24), transparent 32%),
    radial-gradient(circle at 10% 90%, rgba(255, 138, 50, .13), transparent 30%),
    var(--premium-surface) !important;
  box-shadow: var(--premium-shadow) !important;
}

.hero-card::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -170px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255,255,255,.025), 0 0 0 108px rgba(255,255,255,.018);
  pointer-events: none;
}

.hero-layout { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; }
.hero-main { gap: 18px; position: relative; z-index: 1; }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 5.2rem); line-height: .9; max-width: 13ch; }
.hero-title em { background: linear-gradient(90deg, var(--premium-accent), var(--premium-accent-2)); -webkit-background-clip: text; color: transparent; }
.hero-card .site-brand, .hero-online { background: var(--premium-surface-soft) !important; border-color: var(--premium-line) !important; box-shadow: none; }
.hero-side { position: relative; z-index: 1; }
.hero-visual { min-height: 360px; }
.hero-visual::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: rgba(117,88,238,.34); filter: blur(55px); }
.hero-visual__image { width: min(100%, 430px) !important; max-height: 430px; object-fit: contain; position: relative; filter: drop-shadow(0 28px 35px rgba(0,0,0,.32)); animation: premium-float 5.5s ease-in-out infinite; }

.section-head { margin-top: 42px; }
.section-head__title { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.games-grid { gap: 20px; }
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--premium-radius-xl) !important;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.game-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 95% 8%, rgba(117,88,238,.16), transparent 34%); }
.game-card--featured::before { background: radial-gradient(circle at 95% 8%, rgba(255,138,50,.2), transparent 36%); }
.game-card--tetris::before { background: radial-gradient(circle at 95% 8%, rgba(33,199,189,.18), transparent 36%); }
.game-card--match3::before { background: radial-gradient(circle at 95% 8%, rgba(255,198,92,.18), transparent 36%); }
.game-card__title { font-size: clamp(1.5rem, 2vw, 2rem); }
.game-card__preview span { border: 1px solid var(--premium-line); background: var(--premium-surface-soft) !important; }

.share-drawer { left: 18px; }
.share-drawer__card {
  border: 1px solid rgba(255, 174, 81, .22) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 20% 0, rgba(255,138,50,.19), transparent 40%),
    var(--premium-surface-strong) !important;
  box-shadow: var(--premium-shadow) !important;
  backdrop-filter: blur(24px) saturate(145%);
}
.share-drawer__bite { background: radial-gradient(circle at 50% 100%, rgba(117,88,238,.22), transparent 55%) !important; }
.share-drawer__peek {
  border: 1px solid rgba(255, 174, 81, .28) !important;
  background: linear-gradient(145deg, rgba(34,28,58,.96), rgba(18,20,38,.96)) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,.36), 0 0 30px rgba(255,138,50,.14) !important;
}
.share-drawer__peek::after { content: "Поделиться"; position: absolute; right: -88px; top: 17px; padding: 8px 11px; border: 1px solid var(--premium-line); border-radius: 999px; background: var(--premium-surface-strong); color: var(--premium-text); font: 800 11px/1 Manrope, sans-serif; opacity: 0; transform: translateX(-8px); transition: .2s ease; white-space: nowrap; }
.share-drawer__peek:hover::after { opacity: 1; transform: translateX(0); }
.share-drawer__peek-image, .share-drawer__image { filter: drop-shadow(0 14px 18px rgba(0,0,0,.25)); }
.share-drawer__primary { background: linear-gradient(135deg, var(--premium-accent-2), var(--premium-accent)) !important; color: #17111f !important; box-shadow: 0 10px 24px rgba(255,138,50,.22); }
.share-drawer__ghost { background: var(--premium-surface-soft) !important; color: var(--premium-text) !important; border-color: var(--premium-line) !important; }

.auth-hero__copy h1, .topbar h1, .topbar h2 { letter-spacing: -.055em; }
.auth-hero__chips span, .status-pill { border: 1px solid var(--premium-line); background: var(--premium-surface-soft) !important; }
.word-card, .timer, .winner-banner { border-radius: var(--premium-radius-lg) !important; box-shadow: var(--premium-shadow-soft); }
.timer { background: linear-gradient(145deg, #121526, #090b15) !important; }
.event-log__item { border: 1px solid var(--premium-line); border-radius: 14px !important; }

@keyframes premium-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

@media (max-width: 940px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-side { display: grid !important; }
  .hero-visual { min-height: 240px; }
  .hero-visual__image { max-height: 280px; }
  .hero-title { max-width: 15ch; }
}

@media (max-width: 760px) {
  .home-shell { width: min(100%, calc(100% - 20px)); padding-top: 76px; }
  .hero-card { padding: 20px !important; border-radius: 24px !important; }
  .hero-title { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .hero-visual { min-height: 205px; }
  .hero-visual__image { max-height: 230px; }
  .game-card { border-radius: 22px !important; }
  .share-drawer { left: 10px; }
  .share-drawer__peek::after { display: none; }
}

@media (max-width: 390px) {
  .hero-title { font-size: 2rem; }
  .site-brand__name { font-size: 1.35rem; }
  .site-brand__logo { width: 46px; height: 46px; }
  .hero-card { padding: 16px !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Structural redesign: hero, entry lobby and in-room hierarchy */
.hero-copy { max-width: 54ch; font-size: clamp(.98rem, 1.4vw, 1.12rem); }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.hero-action { min-height: 52px; padding-inline: 24px !important; }
.hero-trust { display: inline-flex; align-items: center; gap: 9px; max-width: 230px; color: var(--premium-muted); font-size: .86rem; line-height: 1.3; }
.hero-trust strong { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid rgba(50,216,204,.28); border-radius: 12px; background: rgba(50,216,204,.1); color: var(--green); font-size: 1.05rem; }
.hero-visual__image { object-fit: cover !important; border: 1px solid rgba(255,255,255,.1); border-radius: 38px; box-shadow: 0 26px 60px rgba(0,0,0,.34); }

.auth-shell { gap: 22px !important; }
.auth-hero { position: relative; min-height: 220px; align-items: center !important; padding: 26px 28px !important; border: 1px solid var(--premium-line); border-radius: var(--premium-radius-xl); background: linear-gradient(115deg, rgba(117,88,238,.12), transparent 48%), var(--premium-surface); box-shadow: var(--premium-shadow); overflow: hidden; }
.auth-hero::after { content: ""; position: absolute; right: -70px; top: -100px; width: 320px; height: 320px; border-radius: 50%; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 0 0 48px rgba(117,88,238,.035), 0 0 0 96px rgba(33,199,189,.025); pointer-events: none; }
.auth-hero > * { position: relative; z-index: 1; }
.auth-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr) !important; gap: 18px !important; }
.auth-card { position: relative; min-height: 360px; padding: 28px !important; overflow: hidden; transition: transform .22s ease, border-color .22s ease; }
.auth-card::before { position: absolute; right: 18px; top: 8px; font: 800 clamp(4rem,8vw,7rem)/1 Manrope,sans-serif; color: rgba(255,255,255,.035); pointer-events: none; }
.auth-card:first-child::before { content: "01"; }
.auth-card:last-child::before { content: "02"; }
.auth-card:first-child { background-image: radial-gradient(circle at 0 100%, rgba(255,138,50,.14), transparent 44%) !important; }
.auth-card:last-child { background-image: radial-gradient(circle at 100% 100%, rgba(33,199,189,.13), transparent 44%) !important; }
.auth-card form { position: relative; z-index: 1; height: 100%; align-content: start; }
.auth-card :where(.primary-button,.accent-button) { min-height: 54px; margin-top: auto; }
.topbar { border: 1px solid var(--premium-line); border-radius: 20px; background: var(--premium-surface); box-shadow: var(--premium-shadow-soft); backdrop-filter: blur(20px); }
.compact-layout, .team-lobby { gap: 18px !important; }
.panel--sidebar { position: relative; overflow: hidden; }
.panel--sidebar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: linear-gradient(var(--premium-violet),var(--premium-teal)); }
.share-drawer__peek-image, .share-drawer__image { object-fit: cover !important; object-position: center 36% !important; border-radius: 18px; }

@media (max-width: 940px) {
  .auth-grid { grid-template-columns: 1fr !important; }
  .auth-card { min-height: auto; }
}

/* Home v2: a new page composition rather than a reskin of the old cards */
.site-nav {
  position: sticky;
  top: 14px;
  z-index: 24;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  margin-bottom: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid var(--premium-line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--premium-surface-strong) 88%, transparent);
  box-shadow: var(--premium-shadow-soft);
  backdrop-filter: blur(24px) saturate(150%);
}
.site-nav__brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--premium-text); text-decoration: none; font-weight: 800; letter-spacing: -.035em; }
.site-nav__brand img { width: 38px; height: 38px; object-fit: contain; }
.site-nav__links { display: flex; align-items: center; gap: 28px; }
.site-nav__links a { color: var(--premium-muted); text-decoration: none; font-size: .88rem; font-weight: 700; }
.site-nav__status { display: inline-flex; align-items: center; gap: 8px; color: var(--premium-muted); font-size: .82rem; font-weight: 700; }
.site-nav__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--premium-success); box-shadow: 0 0 0 5px rgba(37,189,135,.12); }
.site-nav__cta { justify-self: end; display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 18px; border-radius: 13px; color: #17111f; background: linear-gradient(135deg,var(--premium-accent-2),var(--premium-accent)); text-decoration: none; font-size: .88rem; font-weight: 800; box-shadow: 0 10px 24px rgba(255,138,50,.2); }
.site-nav__cta span { font-size: 1.2rem; }

.home-shell { width: min(1380px, calc(100% - 40px)); padding-top: 14px; }
.home-shell .hero-card { min-height: 660px; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; overflow: visible; }
.home-shell .hero-card::after { display: none; }
.home-shell .hero-layout { grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: clamp(34px,6vw,92px); min-height: 660px; }
.home-shell .hero-main { align-content: center; padding: clamp(24px,4vw,64px); border-left: 1px solid var(--premium-line); }
.home-shell .hero-title { max-width: 10ch; font-size: clamp(3.4rem,6.6vw,6.8rem); line-height: .82; letter-spacing: -.085em; }
.home-shell .hero-title__line:first-child { color: var(--premium-text); }
.home-shell .hero-copy { margin-top: 10px; font-size: 1.05rem; }
.home-shell .hero-online { position: absolute; left: clamp(24px,4vw,64px); bottom: 28px; display: flex; gap: 10px; padding: 0 !important; border: 0 !important; background: transparent !important; }
.home-shell .hero-online__meta { grid-column: auto; }
.home-shell .hero-side { min-height: 620px; }
.home-shell .hero-visual { min-height: 620px; border-radius: 42px 42px 140px 42px; overflow: hidden; background: linear-gradient(145deg,#14172d,#080a15); box-shadow: var(--premium-shadow); }
.home-shell .hero-visual::before { inset: 8%; filter: blur(80px); }
.home-shell .hero-visual::after { content: "PLAY / TOGETHER"; position: absolute; right: -45px; bottom: 100px; transform: rotate(-90deg); color: rgba(255,255,255,.28); font: 800 11px/1 Manrope,sans-serif; letter-spacing: .26em; }
.home-shell .hero-visual__image { width: 100% !important; max-height: none; height: 100%; border: 0; border-radius: 0; box-shadow: none; animation: none; object-fit: cover !important; }

.home-main { margin-top: 74px; }
.home-shell .section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; margin: 0 0 24px; padding: 0 4px 18px; border-bottom: 1px solid var(--premium-line); }
.home-shell .section-head__title { font-size: clamp(2.4rem,5vw,4.8rem); letter-spacing: -.07em; }
.home-shell .games-grid { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 16px; }
.home-shell .game-card { min-height: 360px; padding: 0 !important; border: 1px solid var(--premium-line) !important; border-radius: 26px !important; box-shadow: none !important; }
.home-shell .game-card:hover { transform: translateY(-6px); box-shadow: var(--premium-shadow) !important; }
.home-shell .game-card--featured { grid-column: span 7; min-height: 470px; }
.home-shell .game-card--tetris { grid-column: span 5; min-height: 470px; }
.home-shell .game-card--match3, .home-shell .game-card--whoami, .home-shell .game-card--codenames { grid-column: span 4; }
.home-shell .game-card--spyfall { grid-column: 3 / span 8; min-height: 330px; }
.home-shell :where(.featured-card,.tetris-card,.match3-card,.whoami-card,.codenames-card,.spyfall-card) { height: 100%; padding: clamp(22px,3vw,38px); grid-template-columns: 1fr !important; align-content: space-between; }
.home-shell :where(.featured-card__visual,.tetris-card__visual,.match3-card__visual,.whoami-card__visual,.codenames-card__visual,.spyfall-card__visual) { position: absolute; right: 18px; bottom: 18px; width: 42%; max-width: 240px; min-height: 150px; opacity: .9; transform: rotate(2deg); }
.home-shell .game-card__body { max-width: 62%; }
.home-shell .game-card__title { font-size: clamp(2rem,3.5vw,3.8rem); letter-spacing: -.065em; }
.home-shell .game-card p { max-width: 40ch; }
.home-shell .game-card__preview { margin-top: 18px; }
.home-shell .game-card__actions { position: relative; z-index: 2; width: fit-content; }
.home-shell .primary-link { min-height: 48px; }

@media (max-width: 1000px) {
  .site-nav { grid-template-columns: 1fr auto; }
  .site-nav__links { display: none; }
  .home-shell .hero-layout { grid-template-columns: 1fr 42%; gap: 24px; }
  .home-shell .hero-title { font-size: clamp(3rem,7.4vw,5rem); }
  .home-shell .game-card--featured, .home-shell .game-card--tetris { grid-column: span 6; }
  .home-shell .game-card--match3, .home-shell .game-card--whoami, .home-shell .game-card--codenames, .home-shell .game-card--spyfall { grid-column: span 6; }
}

@media (max-width: 760px) {
  .home-shell { width: min(100%,calc(100% - 20px)); padding-top: 10px; }
  .site-nav { top: 8px; min-height: 60px; margin-bottom: 20px; padding-left: 12px; border-radius: 16px; }
  .site-nav__brand span { font-size: .84rem; }
  .site-nav__brand img { width: 34px; height: 34px; }
  .site-nav__cta { min-height: 40px; padding: 0 12px; font-size: .75rem; }
  .theme-toggle { top: auto !important; right: 12px !important; bottom: 12px; z-index: 40; }
  .home-shell .hero-card { min-height: auto; }
  .home-shell .hero-layout { grid-template-columns: 1fr; min-height: auto; gap: 18px; }
  .home-shell .hero-main { padding: 36px 18px 70px; border: 1px solid var(--premium-line); border-radius: 26px; background: var(--premium-surface); }
  .home-shell .hero-title { font-size: clamp(2.8rem,15vw,4.3rem); }
  .home-shell .hero-online { left: 18px; bottom: 22px; }
  .home-shell .hero-online { max-width: calc(100% - 36px); flex-wrap: wrap; }
  .home-shell .hero-side, .home-shell .hero-visual { min-height: 390px; }
  .home-shell .hero-visual { border-radius: 26px 26px 76px 26px; }
  .home-main { margin-top: 58px; }
  .home-shell .section-head { grid-template-columns: 1fr; gap: 12px; }
  .home-shell .games-grid { grid-template-columns: 1fr; }
  .home-shell .game-card--featured, .home-shell .game-card--tetris, .home-shell .game-card--match3, .home-shell .game-card--whoami, .home-shell .game-card--codenames, .home-shell .game-card--spyfall { grid-column: 1; min-height: 410px; }
  .home-shell .game-card__body { max-width: 100%; }
  .home-shell :where(.featured-card__visual,.tetris-card__visual,.match3-card__visual,.whoami-card__visual,.codenames-card__visual,.spyfall-card__visual) { width: 54%; opacity: .66; }
  .share-drawer { left: 8px; }
}

/* Compact mascot launcher: it must never cover the page until requested */
.share-drawer { width: min(330px,calc(100vw - 24px)) !important; height: 96px !important; }
.share-drawer__card { bottom: 86px !important; }
.share-drawer__peek { width: 68px !important; height: 68px !important; border-radius: 22px !important; overflow: hidden; }
.share-drawer__peek::before { display: none !important; }
.share-drawer__peek-image { inset: 0 !important; width: 100% !important; height: 100% !important; transform: none !important; border-radius: 20px !important; }
.share-drawer__image { width: 100% !important; height: 100% !important; bottom: 0 !important; border-radius: 16px !important; }
