/* TutorMe Interactions 1.0.0 (shared by every language version) */

/* ---- no long-press menus / callouts (taps still work; plain text stays selectable) ---- */
html{-webkit-touch-callout:none}
img,svg,video,canvas{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}
a,button,summary,label,[role="button"],.stage-card,.stage-controls,.stage-rail,.tm-wins-applause,.hero h1,.hero figure,.hero img,
.tm288-card,.tm288-ticket,.tmml-pay,.tmml-wa,.tm288-line,.tmml-ghost,.tm-card-share,.tm-leave{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}

/* ---- swipe stacks (Wins + Competitions, phone layout) ---- */
.tm-swipe{position:relative!important;display:block!important;overflow:visible!important;scroll-snap-type:none!important;touch-action:pan-y pinch-zoom;-webkit-user-select:none;user-select:none}
.tm-swipe>.stage-card{position:absolute!important;top:0;left:0;right:0;width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;
  height:auto!important;max-height:none!important;overflow:visible!important;box-sizing:border-box;transform-origin:50% 90%;transition:none!important;animation:none!important;backface-visibility:hidden}
.tm-swipe>.stage-card[hidden]{display:none!important}
.tm-swipe>.stage-card *{-webkit-user-drag:none}

/* ---- competition cards: grow to fit, no internal scroll, one family with the Wins cards ---- */
#competition-cards{max-height:none}
#competition-cards>.stage-card{height:auto;max-height:none!important;overflow:visible!important}
#competition-cards .stage-card *{max-height:none}
#competition-cards .stage-match{display:none!important}
#main #competition-cards h4,.upcoming-browser #competition-cards h4{color:#d81665}
#competition-cards>.upcoming-card{position:relative}
#competition-cards>.upcoming-card .stage-entry{padding-right:52px}
[dir=rtl] #competition-cards>.upcoming-card .stage-entry{padding-right:0;padding-left:52px}
.tm-card-share{position:absolute;right:12px;bottom:12px;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:0;margin:0;border:1px solid #ecd3de;border-radius:50%;
  background:#fff;color:#d81665;cursor:pointer;touch-action:manipulation;box-shadow:0 4px 12px -6px rgba(110,30,70,.35)}
[dir=rtl] .tm-card-share{right:auto;left:12px}
.tm-card-share:hover{background:#fff0f5}.tm-card-share:focus-visible{outline:2px solid #d81665;outline-offset:2px}
.tm-card-share svg{display:block;width:20px;height:20px}
.tm-toast{position:fixed;left:50%;top:auto;bottom:24px;z-index:2147483600;transform:translateX(-50%);padding:8px 14px;border-radius:999px;background:#302438;color:#fff;font:600 14px/1.3 Inter,system-ui,sans-serif;pointer-events:none;white-space:nowrap}

/* ---- fireworks canvas (inside the existing effects layer, behind the cards) ---- */
.tm-fw-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;display:block;z-index:6}
.tm-firework-dot{display:none!important}

/* ---- applause hands: open hands pop a little ---- */
.tm-wins-applause span{transition:filter .18s,opacity .18s,scale .18s cubic-bezier(.3,1.5,.5,1)}
.tm-wins-applause span.is-wave{scale:1.16}

/* ---- hero sparkle: whole hero, behind Peter and the text ---- */
section.hero{position:relative;isolation:isolate}
.tm-hero-sparkle{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;display:block}
section.hero{touch-action:pan-y pinch-zoom}
.tm-ix-hero .hero .belief-sparkles{display:none!important}

@media (prefers-reduced-motion:reduce){.tm-fw-canvas,.tm-hero-sparkle{display:none}.tm-wins-applause span{transition:none}}
html[data-motion-paused=true] .tm-fw-canvas,html[data-motion-paused=true] .tm-hero-sparkle{display:none}
