/* Portrait uses the original Chicken War panel atlas, symbols, and switches. */
.portraitPanelBackdrop,
.portraitPanelClose,
.portraitDeveloperButton { display: none; }

@media (orientation: portrait) {
  html[data-slot-orientation="portrait"] .portraitPanelBackdrop {
    position: absolute;
    z-index: 45;
    inset: 0;
    display: block;
    background: rgba(3, 6, 9, .76);
    backdrop-filter: blur(4px);
    touch-action: none;
  }
  html[data-slot-orientation="portrait"] .popover {
    z-index: 46;
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(100%, 540px, calc(var(--slot-cabinet-height, 100dvh) * .83));
    aspect-ratio: 836 / 941;
    transform: translate(-50%, -43%) scale(.96);
    transform-origin: center;
    filter: drop-shadow(0 14px 20px #000);
  }
  html[data-slot-orientation="portrait"] .popover.open { transform: translate(-50%, -50%); }
  html[data-slot-orientation="portrait"] .popover button { touch-action: manipulation; }
  html[data-slot-orientation="portrait"] .popover .portraitPanelClose {
    position: absolute;
    z-index: 3;
    top: 8.5%;
    right: 8%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0 0 3px;
    border: 2px solid #d69d43;
    border-radius: 50%;
    color: #ffe6a1;
    background: linear-gradient(#5c3419, #21150f);
    box-shadow: inset 0 0 0 2px #1d1711, 0 3px 9px #000b;
    font: 900 29px/1 Georgia, serif;
  }
  html[data-slot-orientation="portrait"] .autoSpinOptions button { min-height: 44px; gap: .4em; }
  html[data-slot-orientation="portrait"] .autoSpinOptions button strong { font-size: clamp(25px, 7vw, 40px); }
  html[data-slot-orientation="portrait"] .autoSpinOptions button small { font-size: clamp(11px, 3vw, 16px); }
  html[data-slot-orientation="portrait"] .menuOptions button {
    min-height: 44px;
    gap: 7px;
    padding-inline: 5%;
  }
  html[data-slot-orientation="portrait"] .menuOptions button:nth-child(n + 2) { padding-right: 19%; }
  html[data-slot-orientation="portrait"] .menuIcon { width: clamp(27px, 8vw, 44px); }
  html[data-slot-orientation="portrait"] .menuCopy strong { font-size: clamp(15px, 4.2vw, 24px); }
  html[data-slot-orientation="portrait"] .menuCopy small { margin-top: 4px; font-size: clamp(10px, 2.6vw, 14px); line-height: 1.15; white-space: normal; overflow: visible; text-overflow: clip; }
  html[data-slot-orientation="portrait"] .menuOptions button > i:not(.menuSwitch) { font-size: 30px; }
  html[data-slot-orientation="portrait"] .popover .portraitDeveloperButton {
    position: absolute;
    left: 20%;
    bottom: 2%;
    display: block;
    width: 60%;
    min-height: 44px;
    padding: 5px 8px;
    border: 1px solid #a27939;
    border-radius: 7px;
    color: #e8d7ad;
    background: #171c19;
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  html[data-slot-orientation="portrait"] .testMenuButton { display: none; }
  html[data-slot-orientation="portrait"] .testControls { z-index: 48; }
  html[data-slot-orientation="portrait"] .testMenuPanel {
    position: fixed;
    inset: auto 7% 8%;
    width: 86%;
    max-height: 72%;
    overflow-y: auto;
    padding: 16px;
    gap: 8px;
  }
  html[data-slot-orientation="portrait"] .testMenuPanel button { min-height: 44px; font-size: 14px; }

  html[data-slot-orientation="portrait"] #paytableDialog {
    width: min(640px, calc(100vw - var(--slot-safe-left) - var(--slot-safe-right) - 12px));
    height: calc(var(--slot-viewport-height, 100dvh) - var(--slot-safe-top) - var(--slot-safe-bottom) - 12px);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 15px;
    overflow: hidden;
    background: #111711;
    color: #fff1cf;
  }
  html[data-slot-orientation="portrait"] #paytableDialog::backdrop { background: rgba(2, 5, 6, .84); backdrop-filter: blur(5px); }
  html[data-slot-orientation="portrait"] #paytableDialog .dialogFrame {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 78px;
    align-content: stretch;
    height: 100%;
    padding: 10px;
    border: 2px solid #b28039;
    border-radius: 15px;
    background: #101610 url('../assets/chicken/mobile/portrait-field-manual.webp') center / 100% 100% no-repeat;
    box-shadow: inset 0 0 0 3px #211a10, inset 0 0 35px #000a;
  }
  html[data-slot-orientation="portrait"] #closeDialogButton {
    z-index: 5;
    top: 13px;
    right: 13px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 29px;
    touch-action: manipulation;
  }
  html[data-slot-orientation="portrait"] .paytableContent {
    display: block;
    min-height: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    touch-action: pan-y;
  }
  html[data-slot-orientation="portrait"] .paytableStage {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  html[data-slot-orientation="portrait"] .paytablePage {
    position: relative;
    display: grid;
    grid-template-rows: minmax(73px, 13%) minmax(0, 1fr);
    height: 100%;
    overflow: hidden;
  }
  html[data-slot-orientation="portrait"] .paytablePage::before,
  html[data-slot-orientation="portrait"] .paytablePage::after { display: none; }
  html[data-slot-orientation="portrait"] .paytablePageTitle {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    padding: 0 18% 10px;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    text-align: left;
  }
  html[data-slot-orientation="portrait"] .paytablePageTitle span { align-self: auto; font-size: 10px; letter-spacing: .15em; text-shadow: 0 1px 3px #000; }
  html[data-slot-orientation="portrait"] .paytablePageTitle strong { align-self: auto; font-size: clamp(16px, 4.9vw, 29px); line-height: 1.1; white-space: nowrap; }
  html[data-slot-orientation="portrait"] .paytablePageBody {
    position: relative;
    inset: auto;
    padding: 9px 7px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #a06f35 #151a14;
    -webkit-overflow-scrolling: touch;
    background: rgba(7, 12, 9, .56);
    border: 1px solid #b58d454a;
    border-radius: 9px;
  }
  html[data-slot-orientation="portrait"] .paytablePageLead {
    height: auto;
    margin: 0 3px 12px;
    color: #eee0c3;
    font-size: 12px;
    line-height: 1.45;
  }
  html[data-slot-orientation="portrait"] .paytablePayoutCards,
  html[data-slot-orientation="portrait"] .paytablePayoutCards.premium,
  html[data-slot-orientation="portrait"] .paytablePayoutCards.low {
    height: auto;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0;
  }
  html[data-slot-orientation="portrait"] .paytablePayoutCard {
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-rows: auto 58px;
    column-gap: 9px;
    min-height: 114px;
    padding: 9px;
    align-items: center;
  }
  html[data-slot-orientation="portrait"] .paytablePayoutSymbol { grid-column: 1; grid-row: 1 / 3; height: 91px; }
  html[data-slot-orientation="portrait"] .paytablePayoutCard h3 { grid-column: 2; min-height: 0; margin: 0 0 7px; font-size: 13px; line-height: 1.18; }
  html[data-slot-orientation="portrait"] .paytablePayoutMatrix { grid-column: 2; height: 58px; min-height: 0; width: 100%; }
  html[data-slot-orientation="portrait"] .paytablePayoutMatrix span { font-size: 11px; }
  html[data-slot-orientation="portrait"] .paytablePayoutMatrix strong,
  html[data-slot-orientation="portrait"] .paytablePayoutCard.topAward .paytablePayoutMatrix strong { font-size: clamp(12px, 3.2vw, 18px); }
  html[data-slot-orientation="portrait"] .paytableSpecialGrid,
  html[data-slot-orientation="portrait"] .paytableFeatureGrid,
  html[data-slot-orientation="portrait"] .paytableFreeGrid,
  html[data-slot-orientation="portrait"] .paytableEpicFlow,
  html[data-slot-orientation="portrait"] .paytableRulesLayout {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
    gap: 10px;
  }
  html[data-slot-orientation="portrait"] .paytableSpecialGrid .paytableRuleCard,
  html[data-slot-orientation="portrait"] .paytableFeatureGrid .paytableRuleCard {
    grid-template-columns: 84px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    min-height: 148px;
    padding: 10px 7px;
    text-align: left;
  }
  html[data-slot-orientation="portrait"] .paytableRuleSymbol { height: 110px; }
  html[data-slot-orientation="portrait"] .paytableRuleCopy { padding: 3px 4px 3px 8px; }
  html[data-slot-orientation="portrait"] .paytableRuleCopy > span,
  html[data-slot-orientation="portrait"] .paytableMissionHero span,
  html[data-slot-orientation="portrait"] .paytableMissionCard span { font-size: 10px; line-height: 1.3; }
  html[data-slot-orientation="portrait"] .paytableRuleCopy h3 { margin: 5px 0 7px; font-size: 15px; line-height: 1.12; }
  html[data-slot-orientation="portrait"] .paytableRuleCopy p,
  html[data-slot-orientation="portrait"] .paytableMissionHero p,
  html[data-slot-orientation="portrait"] .paytableMissionCard p,
  html[data-slot-orientation="portrait"] .paytableFlowStep p,
  html[data-slot-orientation="portrait"] .paytableRuleList p,
  html[data-slot-orientation="portrait"] .paytableInfoNotes p { font-size: 12px; line-height: 1.45; }
  html[data-slot-orientation="portrait"] .paytableRibbon { width: 100%; height: auto; min-height: 49px; margin-top: 10px; padding: 10px; font-size: 11px; line-height: 1.45; }
  html[data-slot-orientation="portrait"] .paytableMissionHero {
    grid-template-columns: 89px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 12px;
    align-items: center;
    min-height: 162px;
    padding: 12px;
    text-align: left;
  }
  html[data-slot-orientation="portrait"] .paytableMissionHero > .paytableSymbolCanvas { height: 120px; }
  html[data-slot-orientation="portrait"] .paytableMissionHero strong { margin: 7px 0; font-size: 21px; line-height: 1.08; }
  html[data-slot-orientation="portrait"] .paytableMissionCard { min-height: 145px; padding: 14px 20px; }
  html[data-slot-orientation="portrait"] .paytableMissionCard strong { margin: 7px 0; font-size: 39px; }
  html[data-slot-orientation="portrait"] .paytableFlowStep { grid-template-columns: 97px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 12px; min-height: 136px; padding: 14px; text-align: left; }
  html[data-slot-orientation="portrait"] .paytableFlowStep > span { width: 24px; font-size: 12px; }
  html[data-slot-orientation="portrait"] .paytableFlowArt { grid-row: 1 / 3; height: 102px; }
  html[data-slot-orientation="portrait"] .paytableFlowStep > strong { align-self: end; margin-bottom: 3px; font-size: 16px; line-height: 1.15; }
  html[data-slot-orientation="portrait"] .paytableFlowStep p { align-self: start; }
  html[data-slot-orientation="portrait"] .paytableEpicFlow::before { display: none; }
  html[data-slot-orientation="portrait"] .paytableLineGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; height: auto; gap: 7px; }
  html[data-slot-orientation="portrait"] .paytableLineCard { grid-template-columns: 16px minmax(0, 1fr); min-height: 51px; padding: 4px; }
  html[data-slot-orientation="portrait"] .paytableLineCard > strong { font-size: 11px; }
  html[data-slot-orientation="portrait"] .paytableLineCard .paylineMini { gap: 2px; aspect-ratio: 5 / 3; }
  html[data-slot-orientation="portrait"] .paytableWildHero { grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; height: 123px; padding: 9px; }
  html[data-slot-orientation="portrait"] .paytableWildHero .paytableSymbolCanvas { grid-row: 1 / 3; }
  html[data-slot-orientation="portrait"] .paytableWildHero strong { align-self: end; font-size: 19px; line-height: 1.2; }
  html[data-slot-orientation="portrait"] .paytableWildHero span { align-self: start; margin-top: 6px; font-size: 11px; line-height: 1.3; }
  html[data-slot-orientation="portrait"] .paytableRuleList { grid-template-rows: none; gap: 9px; }
  html[data-slot-orientation="portrait"] .paytableRuleList article { grid-template-columns: 28px minmax(0, 1fr); gap: 7px; min-height: 76px; padding: 12px 9px; }
  html[data-slot-orientation="portrait"] .paytableRuleList b { width: 25px; font-size: 12px; }
  html[data-slot-orientation="portrait"] .paytableStatsGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; height: auto; gap: 9px; }
  html[data-slot-orientation="portrait"] .paytableStatCard { min-height: 106px; padding: 14px 6px; }
  html[data-slot-orientation="portrait"] .paytableStatCard strong { font-size: clamp(24px, 6.2vw, 36px); }
  html[data-slot-orientation="portrait"] .paytableStatCard span { margin-top: 9px; font-size: 10px; line-height: 1.3; }
  html[data-slot-orientation="portrait"] .paytableInfoNotes { grid-template-columns: 1fr; height: auto; margin-top: 10px; }
  html[data-slot-orientation="portrait"] .paytableInfoNotes p { padding: 12px; border-left: 0; border-top: 1px solid #ffd16b33; }
  html[data-slot-orientation="portrait"] .paytableInfoNotes p:first-child { border-top: 0; }
  html[data-slot-orientation="portrait"] #paytableTabs.paytableControls {
    position: relative;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 5px;
    width: 100%;
    min-height: 72px;
    margin: 6px 0 0;
    padding: 5px;
    border-color: #c995424f;
    background: #0b100eed;
  }
  html[data-slot-orientation="portrait"] #paytableTabs .paytableNavButton { height: 48px; font-size: 33px; touch-action: manipulation; }
  html[data-slot-orientation="portrait"] .paytablePager { gap: 5px; }
  html[data-slot-orientation="portrait"] .paytableCurrentPage { font-size: clamp(9px, 2.45vw, 13px); line-height: 1.25; text-align: center; }
  html[data-slot-orientation="portrait"] .paytableDots { width: 100%; justify-content: center; gap: 0; }
  html[data-slot-orientation="portrait"] #paytableTabs .paytableDot {
    position: relative;
    flex: 1 1 0;
    max-width: 32px;
    width: auto;
    min-width: 0;
    height: 31px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
    touch-action: manipulation;
  }
  html[data-slot-orientation="portrait"] #paytableTabs .paytableDot::after { content: ''; position: absolute; inset: 50% auto auto 50%; width: 8px; height: 8px; border: 1px solid #b88a48; border-radius: 50%; background: #403421; transform: translate(-50%, -50%); }
  html[data-slot-orientation="portrait"] #paytableTabs .paytableDot.active::after { border-color: #ffe1a0; background: #f9c758; box-shadow: 0 0 8px #f8bc4b80; }
  html[data-slot-orientation="portrait"] #paytableDialog button:focus-visible { outline: 2px solid #fff0b4; outline-offset: 2px; }
}

@media (orientation: portrait) and (max-width: 350px) {
  html[data-slot-orientation="portrait"] .paytablePayoutCard { grid-template-columns: 66px minmax(0, 1fr); column-gap: 6px; padding: 7px; }
  html[data-slot-orientation="portrait"] .paytablePayoutSymbol { height: 78px; }
  html[data-slot-orientation="portrait"] .paytablePayoutMatrix strong,
  html[data-slot-orientation="portrait"] .paytablePayoutCard.topAward .paytablePayoutMatrix strong { font-size: 11px; }
  html[data-slot-orientation="portrait"] .paytableSpecialGrid .paytableRuleCard,
  html[data-slot-orientation="portrait"] .paytableFeatureGrid .paytableRuleCard { grid-template-columns: 63px minmax(0, 1fr); }
  html[data-slot-orientation="portrait"] .paytableLineGrid { gap: 5px; }
  html[data-slot-orientation="portrait"] .paytableLineCard { grid-template-columns: 13px minmax(0, 1fr); padding: 3px; }
  html[data-slot-orientation="portrait"] .menuCopy small { font-size: 9px; }
}



