/* Fit the actual browser-content surface, including Safari toolbar changes.
   These values are set only for touch devices by viewport() in app.js. */
.clarity-build main.touch-device,.clarity-build main.chaos.touch-device{
  inset:var(--visual-top,0px) auto auto var(--visual-left,0px);
  width:var(--visual-width,100vw)!important;
  height:var(--visual-height,100dvh)!important;
  max-width:none;
}
/* Phone presentation only. The camera reads these base reservations; each
   includes 6px of minimum safe padding. Larger device insets add their excess.
   A 667 x 311 content viewport retains a 205px central playing lane. */
#mobile-cargo-toggle{display:none}
.touch-input-copy{display:none}
.touch-device .desktop-input-copy{display:none}
.touch-device .touch-input-copy{display:inline}
.clarity-build main.mobile-match{
  --safe-top:max(6px,env(safe-area-inset-top));
  --safe-bottom:max(6px,env(safe-area-inset-bottom));
  --edge:max(8px,env(safe-area-inset-left),env(safe-area-inset-right));
  --mobile-arena-top:50px;
  --mobile-arena-bottom:56px;
}
.clarity-build main.mobile-match[data-mobile-layout="portrait"]{
  --mobile-arena-top:72px;
  --mobile-arena-bottom:142px;
}

/* Scores, clock and sale share the upper edge in landscape. Sound keeps a
   full 44px target; the power button carries the held-power status. */
.clarity-build main.mobile-match.in-match header{
  left:auto;right:var(--edge);top:var(--safe-top);width:44px;height:44px;
}
.clarity-build main.mobile-match.in-match header .wordmark,
.clarity-build main.mobile-match.in-match #connection,
.clarity-build main.mobile-match.in-match #power-slot,
.clarity-build main.mobile-match.in-match .play-strip,
.clarity-build main.mobile-match.in-match footer{display:none!important}
.clarity-build main.mobile-match.in-match #sound{
  width:44px;min-width:44px;height:44px;min-height:44px;padding:4px;
  border-radius:11px;font-size:9px;line-height:1.2;letter-spacing:0;white-space:normal;
}
.clarity-build main.mobile-match.in-match .matchbar,
.clarity-build main.mobile-match.in-match .matchbar.chaos{
  top:var(--safe-top);left:var(--edge);right:calc(var(--edge) + 236px);
  width:auto;height:40px;transform:none;gap:4px;
}
.clarity-build main.mobile-match.in-match .scorecard,
.clarity-build main.mobile-match.in-match .chaos .scorecard{
  height:40px;padding:2px 4px;gap:0;justify-content:center;
  border-radius:5px;box-shadow:none;flex-wrap:nowrap;
}
.clarity-build main.mobile-match.in-match .scorecard>div:not(.carry){min-width:0}
.clarity-build main.mobile-match.in-match .scorecard .eyebrow{
  font-size:9px;line-height:11px;letter-spacing:0;white-space:nowrap;
}
.clarity-build main.mobile-match.in-match .scorecard strong{
  font-size:19px;line-height:20px;letter-spacing:-.5px;
}
.clarity-build main.mobile-match.in-match .scorecard strong.long-cash{font-size:16px}
.clarity-build main.mobile-match.in-match .scorecard .kit-tag{display:none}
.clarity-build main.mobile-match.in-match .scorecard[data-scoring="rally"]{padding-top:0;padding-bottom:0}
.clarity-build main.mobile-match.in-match .scorecard[data-scoring="rally"] .kit-tag{
  display:block;font-size:8px;line-height:9px;margin:0;letter-spacing:0;
}
.clarity-build main.mobile-match.in-match .scorecard[data-scoring="rally"] strong{font-size:16px;line-height:16px}
.clarity-build main.mobile-match.in-match .scorecard .score-rule b{font-size:9px}
.clarity-build main.mobile-match.in-match .clock{min-width:56px;max-width:64px;padding:0 2px;gap:0}
.clarity-build main.mobile-match.in-match .clock strong{font-size:23px;line-height:24px;letter-spacing:-.7px}
.clarity-build main.mobile-match.in-match .clock span{font-size:7px;line-height:8px;letter-spacing:0;white-space:normal}
.clarity-build main.mobile-match.in-match #run-progress{height:3px;margin-top:2px;gap:3px}
.clarity-build main.mobile-match.in-match .sale-board{
  top:var(--safe-top);bottom:auto;left:auto;right:calc(var(--edge) + 50px);
  width:180px;max-width:none;height:40px;min-height:0;padding:4px 7px;
  margin:0;transform:none;border-radius:5px;box-shadow:none;overflow:hidden;
}
.clarity-build main.mobile-match.in-match .sale-main{height:100%;display:flex;align-items:center;gap:5px}
.clarity-build main.mobile-match.in-match .sale-copy{display:block;min-width:0}
.clarity-build main.mobile-match.in-match .sale-copy>span,
.clarity-build main.mobile-match.in-match #sale-rule{display:none}
.clarity-build main.mobile-match.in-match .sale-copy>b{display:block;font-size:10px;line-height:12px;letter-spacing:0}
.clarity-build main.mobile-match.in-match #sale-clock{min-width:41px;margin-left:auto;font-size:12px;line-height:13px;white-space:normal}
.clarity-build main.mobile-match.in-match #sale-announcement{
  position:absolute;inset:0 48px 0 0;width:auto;max-width:none;height:auto;
  padding:4px 6px;transform:none;border:0;border-radius:3px;box-shadow:none;
  display:flex;align-items:center;animation:none;
}
.clarity-build main.mobile-match.in-match #sale-announcement b{font-size:12px;line-height:13px;letter-spacing:0;white-space:normal}
.clarity-build main.mobile-match.in-match #sale-announcement span{display:none}

/* Cash, occupied slots, scan value and both Hot List ingredients stay visible.
   The 44px BAG button opens readable item/coupon details above this rail. */
.clarity-build main.mobile-match.in-match .cargo-tray{
  position:absolute;left:calc(var(--edge) + 86px);right:calc(var(--edge) + 146px);
  bottom:var(--safe-bottom);width:auto;height:50px;padding:3px 5px 3px 54px;
  margin:0;display:block;transform:none;overflow:visible;border-radius:8px;
  background:#142d32f5;box-shadow:0 3px 10px #10232533;
}
.clarity-build main.mobile-match.in-match #mobile-cargo-toggle{
  display:flex;position:absolute;left:3px;top:2px;width:44px;height:44px;
  min-width:44px;min-height:44px;padding:3px;pointer-events:auto;touch-action:manipulation;
  flex-direction:column;align-items:center;justify-content:center;gap:1px;
  background:#304c44;color:#fff1c9;border:1px solid #8eb099;border-radius:6px;
  font-size:10px;letter-spacing:.2px;box-shadow:none;
}
.clarity-build main.mobile-match.in-match #mobile-cargo-toggle span{font-size:12px;line-height:12px}
.clarity-build main.mobile-match.in-match #mobile-cargo-toggle[aria-expanded="true"]{background:#ffe099;color:#193f32;border-color:#fff0c7}
.clarity-build main.mobile-match.in-match #mobile-cargo-toggle[aria-expanded="true"] span{transform:rotate(180deg)}
.clarity-build main.mobile-match.in-match .cargo-tray>b{
  display:flex;align-items:center;justify-content:space-between;gap:5px;
  height:12px;margin:0 0 2px;font-size:10px;line-height:12px;letter-spacing:0;white-space:nowrap;
}
.clarity-build main.mobile-match.in-match .cargo-tray>b span{float:none;font-size:9px;line-height:12px;letter-spacing:0}
.clarity-build main.mobile-match.in-match #hot-list{height:29px;max-height:29px;margin:0;overflow:hidden}
.clarity-build main.mobile-match.in-match .hot-race{height:29px}
.clarity-build main.mobile-match.in-match .hot-heading{height:11px;line-height:11px;gap:4px}
.clarity-build main.mobile-match.in-match .hot-heading b,
.clarity-build main.mobile-match.in-match .hot-heading>span{font-size:9px;line-height:11px}
.clarity-build main.mobile-match.in-match .hot-heading>span{overflow:hidden;text-overflow:ellipsis}
.clarity-build main.mobile-match.in-match .hot-ingredients{height:17px;margin-top:1px;gap:4px}
.clarity-build main.mobile-match.in-match .hot-ingredient{height:17px;padding:1px 3px}
.clarity-build main.mobile-match.in-match .hot-item-line{height:13px;line-height:13px;gap:3px}
.clarity-build main.mobile-match.in-match .hot-item-line strong{font-size:10px;line-height:13px}
.clarity-build main.mobile-match.in-match .hot-item-line>span{font-size:9px;line-height:13px}
.clarity-build main.mobile-match.in-match .hot-ingredient>small{display:none}
.clarity-build main.mobile-match.in-match .hot-have .hot-item-line strong:before{content:"✓ "}
.clarity-build main.mobile-match.in-match .hot-missing .hot-item-line strong:before{content:"○ "}
.clarity-build main.mobile-match.in-match .hot-settled .hot-item-line strong:before{content:"· "}
.clarity-build main.mobile-match.in-match .hot-closed{padding-top:4px;font-size:10px;line-height:16px}
.clarity-build main.mobile-match.in-match #rally-guide{
  display:flex;align-items:center;min-height:28px;margin:0;padding:0;font-size:11px;line-height:14px;letter-spacing:0;
}
.clarity-build main.mobile-match.in-match #rally-guide[hidden]{display:none}
.clarity-build main.mobile-match.in-match[data-scoring="rally"] #hot-list{display:none}
.clarity-build main.mobile-match.in-match #cargo-detail{display:none}
.clarity-build main.mobile-match.in-match.cargo-expanded #cargo-detail{
  position:absolute;left:0;right:0;bottom:calc(100% + 7px);display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px;
  max-height:calc(var(--visual-height,100dvh) - 124px);overflow:auto;
  border:1px solid #abc6a7;border-radius:9px;background:#132f2ff7;
  box-shadow:0 6px 22px #061d2b66;pointer-events:auto;touch-action:pan-y;
}
.clarity-build main.mobile-match.in-match.cargo-expanded .cargo-item{
  grid-column:auto!important;min-height:45px;height:auto;padding:5px 7px;gap:3px;align-items:flex-start;
}
.clarity-build main.mobile-match.in-match.cargo-expanded .cargo-item b{font-size:12px;line-height:15px}
.clarity-build main.mobile-match.in-match.cargo-expanded .cargo-item>span{font-size:11px;line-height:14px}
.clarity-build main.mobile-match.in-match.cargo-expanded .cargo-item i{position:static;font-size:10px;line-height:13px;white-space:normal;padding:2px 3px}
.clarity-build main.mobile-match.in-match.cargo-expanded .cargo-empty{grid-column:auto!important;min-height:26px;height:auto;padding:5px;font-size:9px}

/* Controls occupy the lower corners. Their upper edges may enter the arena at
   the corners; they never form another full-width reserved band. */
.clarity-build main.mobile-match.in-match .touch-controls{
  display:flex;left:var(--edge);right:var(--edge);bottom:var(--safe-bottom);height:76px;padding:0;align-items:flex-end;
}
.clarity-build main.mobile-match.in-match #joystick{width:76px;height:76px;min-width:76px;min-height:76px;flex:none}
.clarity-build main.mobile-match.in-match #stick{width:32px;height:32px;top:20px;left:20px}
.clarity-build main.mobile-match.in-match .action-buttons{
  position:relative;display:flex!important;width:138px;height:76px;align-items:flex-end;justify-content:flex-end;gap:8px;
}
.clarity-build main.mobile-match.in-match #touch-use,
.clarity-build main.mobile-match.in-match #touch-ram{position:static;flex:none;transform:none}
.clarity-build main.mobile-match.in-match #touch-use{
  width:58px;height:58px;min-width:58px;min-height:58px;margin-bottom:4px;padding:3px;gap:4px;border-radius:16px;font-size:11px;
}
.clarity-build main.mobile-match.in-match #touch-use b{font-size:10px;line-height:12px}
.clarity-build main.mobile-match.in-match #touch-use span{font-size:9px;line-height:11px}
.clarity-build main.mobile-match.in-match #touch-use[data-power="coupon"] b,
.clarity-build main.mobile-match.in-match #touch-use[data-power="goldCoupon"] b{font-size:9px}
.clarity-build main.mobile-match.in-match #touch-ram{width:68px;height:68px;min-width:68px;min-height:68px;font-size:12px}
.clarity-build main.mobile-match.in-match #touch-ram span{font-size:19px}

/* Remove passive duplicate instructions. Active hit/payoff and scan feedback
   keeps a compact, legible place above the cargo rail. */
.clarity-build main.mobile-match.in-match .feedback-row{
  position:absolute!important;left:calc(var(--edge) + 86px)!important;
  right:calc(var(--edge) + 146px);bottom:calc(var(--safe-bottom) + 55px)!important;
  width:auto!important;height:auto!important;min-height:0!important;max-height:none;
  overflow:visible!important;transform:none;display:flex!important;margin:0;font-size:10px;line-height:13px;text-align:center;
}
.clarity-build main.mobile-match.in-match #feedback,
.clarity-build main.mobile-match.in-match #ram-status{display:none}
.clarity-build main.mobile-match.in-match .feedback-row:has(#payoff-card[hidden]) #feedback[data-tone]:not([data-tone=""]){
  display:block;visibility:visible;width:100%;min-width:0;padding:5px 8px;
  border:1px solid #9fc1a675;border-radius:6px;background:#143830f5;
  color:#f3f1d6;font-size:11px;line-height:14px;letter-spacing:0;
  white-space:normal;overflow-wrap:anywhere;text-shadow:none;
}
.clarity-build main.mobile-match.in-match .feedback-row:has(#payoff-card[hidden]) #feedback[data-tone="danger"]{
  border-color:#ffae83;color:#ffe1ca;background:#532e2cf5;
}
.clarity-build main.mobile-match.in-match .feedback-row:has(#payoff-card[hidden]) #feedback[data-tone="good"]{
  border-color:#bee49d;color:#e4ffd0;
}
.clarity-build main.mobile-match.in-match .feedback-row:has(#payoff-card:not([hidden])) #rush-status,
.clarity-build main.mobile-match.in-match .feedback-row:has(#feedback[data-tone]:not([data-tone=""])) #rush-status{display:none}
.clarity-build main.mobile-match.in-match #payoff-card{margin:0;padding:4px 7px;border-radius:6px;background:#163d36ef}
.clarity-build main.mobile-match.in-match #payoff-card b{font-size:11px;line-height:13px;letter-spacing:0}
.clarity-build main.mobile-match.in-match #payoff-card>span{font-size:10px;line-height:12px}
.clarity-build main.mobile-match.in-match #rush-status{
  padding:4px 7px;border-radius:5px;background:#654126ed;color:#ffe3a1;font-size:10px;line-height:13px;
}
.clarity-build main.mobile-match.in-match .arena-banner,
.clarity-build main.mobile-match.in-match .checkout-progress{
  top:auto;left:50%;right:auto;bottom:calc(var(--safe-bottom) + 55px);
  width:auto;max-width:calc(100% - 260px);min-height:0;margin:0;padding:5px 8px;transform:translateX(-50%);border-radius:6px;
  font-size:10px;line-height:13px;letter-spacing:0;white-space:normal;
}
.clarity-build main.mobile-match.in-match .checkout-progress>div{min-width:120px;margin-top:3px}
.clarity-build main.mobile-match.in-match:has(.checkout-progress:not([hidden])) .feedback-row,
.clarity-build main.mobile-match.in-match:has(.arena-banner:not([hidden])) .feedback-row{display:none!important}
.clarity-build main.mobile-match.in-match:has(.checkout-progress:not([hidden])) .arena-banner{display:none}

/* Portrait has a separate, shallow sale rail and a cargo rail above the two
   thumb areas. Neither score nor control targets is proportionally scaled. */
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .matchbar,
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .matchbar.chaos{right:calc(var(--edge) + 50px);gap:3px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .scorecard{padding:2px 3px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .scorecard strong{font-size:18px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .scorecard strong.long-cash{font-size:15px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .scorecard[data-scoring="rally"]{padding-top:0;padding-bottom:0}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .scorecard[data-scoring="rally"] strong{font-size:16px;line-height:16px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .clock{min-width:49px;max-width:55px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .sale-board{
  top:calc(var(--safe-top) + 44px);left:var(--edge);right:var(--edge);width:auto;height:20px;padding:1px 6px;border-radius:4px;
}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .sale-copy>b{font-size:11px;line-height:16px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] #sale-clock{font-size:11px;line-height:16px;white-space:nowrap}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] #sale-announcement{right:75px;padding:1px 6px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] #sale-announcement b{font-size:12px;line-height:16px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .cargo-tray{left:var(--edge);right:var(--edge);bottom:calc(var(--safe-bottom) + 82px)}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"].cargo-expanded #cargo-detail{max-height:max(72px,calc(var(--visual-height,100dvh) - 304px - var(--safe-top) - var(--safe-bottom)))}
/* Rally keeps deliveries on the live rail. Opening BAG also reveals the
   secondary Hot List cash objective without replacing that delivery status. */
.clarity-build main.mobile-match.in-match.cargo-expanded[data-scoring="rally"] #hot-list{
  display:block;position:absolute;left:0;right:0;bottom:calc(100% + 7px);
  height:44px;max-height:44px;margin:0;padding:6px 8px;overflow:hidden;
  border:1px solid #abc6a7;border-radius:8px;background:#132f2ff7;
  box-shadow:0 4px 15px #061d2b44;
}
.clarity-build main.mobile-match.in-match.cargo-expanded[data-scoring="rally"] #cargo-detail{
  bottom:calc(100% + 51px);max-height:calc(var(--visual-height,100dvh) - 168px);
}
.clarity-build main.mobile-match.in-match.cargo-expanded[data-scoring="rally"][data-mobile-layout="portrait"] #cargo-detail{
  max-height:max(72px,calc(var(--visual-height,100dvh) - 348px - var(--safe-top) - var(--safe-bottom)));
}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .feedback-row{
  left:var(--edge)!important;right:var(--edge);bottom:calc(var(--safe-bottom) + 138px)!important;
  max-height:none;min-height:0;
}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] #payoff-card{width:100%;padding:5px 8px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] #payoff-card>span{display:block;font-size:10px;line-height:13px}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .arena-banner,
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .checkout-progress{
  left:calc(var(--edge) + 82px);right:calc(var(--edge) + 145px);
  bottom:calc(var(--safe-bottom) + 8px);width:auto;max-width:none;min-height:48px;transform:none;padding:5px;font-size:10px;
  display:flex;flex-direction:column;justify-content:center;
}
.clarity-build main.mobile-match.in-match[data-mobile-layout="portrait"] .checkout-progress>div{min-width:0;width:100%}

/* Tutorials use the lesson instead of a second stack of match HUD. The guide
   is measured by tutorial-view.js; no assumed fixed camera reserve. */
.clarity-build main.mobile-match.tutorial-active .matchbar{display:none!important}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete){
  top:var(--safe-top);left:var(--edge);right:calc(var(--edge) + 50px);width:auto;transform:none;padding:8px 10px;border-radius:9px;
}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) .tutorial-heading{display:flex;min-height:44px;padding-right:50px;gap:8px}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) .tutorial-heading>span{max-width:none;font-size:9px;line-height:12px;letter-spacing:.3px}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) h2{margin:3px 0 4px;font-size:17px;line-height:20px}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) p{font-size:12px;line-height:16px;margin:0}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide .tutorial-actions{position:static;display:flex;margin-top:5px;justify-content:flex-start}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide #tutorial-controls{display:none}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide .tutorial-progress{margin-top:5px}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide button{min-width:44px;min-height:44px;padding:7px 9px;font-size:10px;line-height:13px}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) #tutorial-skip,
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) #tutorial-retry{
  width:44px;min-width:44px;height:44px;padding:3px;font-size:0;flex:none;
}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) #tutorial-skip:after{content:"SKIP";font-size:10px}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) #tutorial-retry:after{content:"RESET";font-size:9px}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) .tutorial-actions{position:absolute;right:10px;top:8px;margin:0}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide:not(.complete) .tutorial-heading>span{padding-right:0}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide.complete{
  top:50%;left:50%;right:auto;width:calc(100% - var(--edge) - var(--edge));max-width:480px;
  max-height:calc(100% - var(--safe-top) - var(--safe-bottom));overflow:auto;transform:translate(-50%,-50%);padding:18px;touch-action:pan-y;
}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide.complete .tutorial-heading{min-height:0}
.clarity-build main.mobile-match.tutorial-active #tutorial-guide.complete .tutorial-actions{display:none}

/* A short landscape lesson uses two text rows beside the two touch actions.
   The measured guide height follows prompt wrapping instead of reserving a
   separate full-width action row above the scene. */
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete){
  display:grid;grid-template-columns:minmax(0,1fr) 94px;
  grid-template-rows:18px auto 3px;column-gap:8px;row-gap:3px;
  padding:5px 8px;min-height:60px;
}
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete) .tutorial-heading{display:contents}
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete) .tutorial-heading>span{
  position:absolute;top:5px;left:8px;width:124px;font-size:8px;line-height:18px;
  padding:0;letter-spacing:0;white-space:nowrap;
}
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete) h2{
  grid-column:1;grid-row:1;min-width:0;padding-left:126px;margin:0;
  font-size:15px;line-height:18px;white-space:nowrap;
}
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete) p{
  grid-column:1;grid-row:2;margin:0;font-size:12px;line-height:15px;
}
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete) .tutorial-progress{
  grid-column:1;grid-row:3;height:3px;margin:0;
}
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete) #tutorial-skip{
  position:absolute;top:5px;right:58px;
}
.clarity-build main.mobile-match.tutorial-active[data-mobile-layout="landscape"] #tutorial-guide:not(.complete) .tutorial-actions{
  position:absolute;top:5px;right:8px;margin:0;
}

/* End screens remain real results. Optional detail can scroll, while the
   rematch action keeps a usable touch target at every tested content height. */
.clarity-build main.mobile-match:not(.in-match) .overlay{padding:max(6px,env(safe-area-inset-top)) var(--edge) max(6px,env(safe-area-inset-bottom))}
.clarity-build main.mobile-match #results{max-height:calc(100% - var(--safe-top) - var(--safe-bottom));overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.clarity-build main.mobile-match #results #rematch{min-height:44px;height:auto;padding:10px 12px;font-size:12px}
.clarity-build main.mobile-match #results .result-actions .text-link,
.clarity-build main.mobile-match #results .result-details>summary{min-height:44px;display:flex;align-items:center}
.clarity-build main.mobile-match #results .result-actions .text-link{margin:0}

@media(prefers-reduced-motion:reduce){
  .clarity-build main.mobile-match #sale-announcement,
  .clarity-build main.mobile-match #mobile-cargo-toggle{animation:none;transition:none}
}
