/* UKF Premier 1.34.2
   Responsive layer: phone + tablet layouts without changing the desktop design. */

/* 1.34.2 – defensive media/layout guards.
   Uploaded logos may have extreme portrait/landscape aspect ratios. Their intrinsic
   dimensions must never be allowed to stretch cards or navigation unexpectedly. */
:where(img,svg,video,canvas){max-inline-size:100%}
.organizer-panel{grid-template-columns:minmax(0,180px) minmax(0,1fr)}
.organizer-panel>img{
  inline-size:140px!important;
  block-size:140px!important;
  width:140px!important;
  height:140px!important;
  max-inline-size:140px!important;
  max-block-size:140px!important;
  object-fit:contain!important;
  justify-self:center;
  align-self:center;
}
.organizer-panel>div{min-width:0}
.login-brand{
  inline-size:92px;
  block-size:92px;
  width:92px;
  height:92px;
  object-fit:contain;
}
.tournament-showcase-copy,.tournament-list-copy,.public-entity-copy,.card,.organizer-panel>div{min-width:0}
.hero-mobile-banner{display:none}

@media (max-width:1180px){
  .page>.container,
  .predictions-page>.container,
  .player-profile-page>.container,
  .account-setup-page>.container{min-width:0;max-width:100%}
  .page-head>*{min-width:0;max-width:100%}
  .section-bar>*{min-width:0;max-width:100%}
  .card,.card-soft,.competition-shell,.competition-shell-head,.competition-shell-body,
  .prediction-hero,.prediction-stage-panel,.prediction-batch-form,.prediction-group-card,
  .organization-panel,.organization-context,.admin-detail-pane,.admin-detail-card{min-width:0;max-width:100%}
  h1,h2,h3,h4,.lead,p,strong,small,a,button,label,summary{overflow-wrap:anywhere}
  .text-link{white-space:normal}
  .competition-shell-identity>div,.prediction-match-head>div,.match-side-copy,.team-row>div,
  .organization-page-title>div,.tournament-list-copy,.tournament-showcase-copy{min-width:0}
  .competition-shell-identity h1{font-size:clamp(2rem,5vw,3.7rem)}
  .prediction-hero h1{font-size:clamp(2rem,5.2vw,3.8rem)}
  .table-wrap,.my-match-table-wrap{max-width:100%;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .bracket-scroll,.bracket-tree-scroll,.prediction-bracket-tree-scroll{scroll-snap-type:x proximity}
  .bracket-round,.bracket-tree-round,.prediction-bracket-round{scroll-snap-align:start}
}

@media (max-width:900px){
  body{font-size:16px}
  .container,.hero-content,.flash-stack,
  .account-setup-page .container{width:min(100% - 28px,1376px)}
  .page{padding:36px 0 64px}
  .page-head{gap:15px;margin-bottom:22px;padding-bottom:16px}
  .page-head h1{font-size:clamp(2.2rem,8vw,3.5rem)}
  .page-head h2{font-size:clamp(1.75rem,6vw,2.6rem)}
  .lead{font-size:1.08rem;line-height:1.5}
  .section-bar{flex-wrap:wrap;align-items:flex-start}
  .section-bar h2{font-size:clamp(1.55rem,5vw,2.25rem)}
  .hero{display:block;min-height:0}
  .hero-background{display:none}
  .hero-mobile-banner{display:block;position:relative;z-index:3;width:100%;height:auto;max-height:none;object-fit:contain;background:#080808}
  .hero::before{background:linear-gradient(180deg,rgba(15,15,15,0) 0%,rgba(15,15,15,.14) 32%,rgba(15,15,15,.96) 58%,#0f0f0f 100%)}
  .hero::after{display:none}
  .hero-content{padding:36px 0 54px}
  .card-actions,.button-row{max-width:100%}
  .btn{max-width:100%;white-space:normal;text-align:center}
  .sidebar-layout,.organization-summary,.admin-split-grid{grid-template-columns:1fr}
  .tournament-showcase{min-height:0}
  .tournament-showcase-copy{padding:32px}
  .showcase-stats{grid-template-columns:repeat(3,minmax(0,1fr));padding:26px}
  .competition-shell-identity{gap:18px;padding:20px}
  .competition-shell-logo{width:88px;height:88px}
  .competition-shell-nav{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .competition-shell-nav a{flex:0 0 auto}
  .prediction-hero{gap:22px;padding:28px}
  .prediction-hero-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
  .prediction-stage-switch{grid-template-columns:1fr}
  .prediction-stage-switch-label{border-right:0;border-bottom:1px solid #333}
  .prediction-stage-tabs{grid-template-columns:1fr 1fr}
  .prediction-stage-tabs button{min-width:0}
  .prediction-groups,.prediction-match-list{grid-template-columns:1fr}
  .prediction-join-card{grid-template-columns:1fr}
  .prediction-save-bar{max-width:100%}
  .match-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}
  .notification-channel-note{grid-template-columns:1fr}
  .admin-master-detail,.ticket-workspace{grid-template-columns:1fr}
  .admin-detail-card,.admin-ticket-conversation{padding:18px}
  body.admin-layout .admin-content{max-width:100%;overflow-x:hidden}
  body.admin-layout .admin-content>.page-head h1{font-size:clamp(2.15rem,7.2vw,3.6rem)!important}
  body.admin-layout .admin-topbar-title{max-width:calc(100vw - 160px)}
  body.admin-layout .admin-topbar-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.admin-layout .admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (max-width:720px){
  html{scroll-padding-top:78px}
  body{min-width:0;font-size:16px;line-height:1.48}
  body,main,.page,.admin-root{max-width:100%;overflow-x:hidden}
  .container,.hero-content,.flash-stack,
  .account-setup-page .container{width:min(100% - 24px,1376px)}
  .page{padding:28px 0 52px}
  .page-head{align-items:flex-start;gap:12px;margin-bottom:18px;padding-bottom:14px}
  .page-head h1{font-size:clamp(2rem,10.8vw,3rem);line-height:1.02}
  .page-head .lead{font-size:1rem}
  h2{font-size:clamp(1.55rem,8vw,2.15rem)}
  h3{line-height:1.15}
  .eyebrow,.card-kicker{letter-spacing:.11em}
  .card{padding:18px 16px}
  .card-soft{padding:15px}
  .section-bar{align-items:flex-start;flex-direction:column;gap:8px;margin-bottom:12px}
  .section-bar>span,.section-bar>.status,.section-bar>.data-source-note{align-self:flex-start}
  .button-row,.card-actions{display:grid;grid-template-columns:1fr;width:100%}
  .button-row .btn,.card-actions .btn,.button-row>a,.card-actions>a{width:100%}
  .input,select,textarea{max-width:100%;font-size:16px}
  .form-grid,.grid-2,.grid-3,.grid-4,.admin-summary-grid{grid-template-columns:1fr!important}
  .field,.field-full{grid-column:auto!important;min-width:0}
  .checkbox{min-width:0}
  .checkbox>span{min-width:0}
  .role-editor{display:grid;grid-template-columns:1fr;min-width:0;width:100%}
  .role-editor select{min-width:0;width:100%}

  /* Header / navigation */
  .nav-shell{padding:0 14px;gap:12px}
  .brand{min-width:0;max-width:calc(100% - 100px)}
  .brand img{flex:0 0 auto}
  .brand-copy{min-width:0}
  .brand-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .main-nav{padding:12px 14px 18px}
  .main-nav a,.nav-account-menu>summary,.nav-account-links button{min-height:44px;display:flex;align-items:center}
  .nav-account-links{margin-left:0}
  .notification-popover{top:74px;right:10px;left:10px;width:auto;max-height:calc(100dvh - 90px);overflow:auto}

  /* Home / lists / cards */
  .hero{min-height:0}
  .hero-content{padding:30px 0 44px}
  .hero h1{font-size:clamp(2.55rem,14vw,4rem)}
  .hero p{font-size:1.05rem}
  .announcement .container{padding-block:11px}
  .tournament-showcase{display:block}
  .tournament-showcase-copy{padding:24px 20px}
  .showcase-logo{width:88px;height:88px}
  .showcase-stats{grid-template-columns:1fr 1fr;padding:20px;gap:14px}
  .tournament-list-card{grid-template-columns:1fr!important;padding:18px!important}
  .tournament-list-logo-wrap{height:auto!important;min-height:94px!important;padding:0!important;justify-items:start!important}
  .tournament-list-logo{max-width:108px!important;max-height:108px!important}
  .tournament-list-side{grid-template-columns:1fr!important}
  .card-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px}
  .organizer-panel{grid-template-columns:1fr;gap:20px;padding:22px 18px}
  .organizer-panel>img{inline-size:96px!important;block-size:96px!important;width:96px!important;height:96px!important;max-inline-size:96px!important;max-block-size:96px!important;justify-self:start}
  .organization-summary{grid-template-columns:72px minmax(0,1fr)!important;gap:14px!important}
  .organization-logo,.organization-logo-placeholder{width:72px!important;height:72px!important}
  .organization-context{padding:14px 15px!important}
  .organization-page-title{display:grid;grid-template-columns:68px minmax(0,1fr);gap:14px;align-items:center}
  .organization-page-title .organization-logo,.organization-page-title .organization-logo-placeholder{width:68px!important;height:68px!important}
  .subteam-switcher{grid-template-columns:1fr}
  .registered-subteam-row,.invite-list>div{align-items:flex-start;flex-direction:column}

  /* Competition shell */
  .competition-shell,.competition-shell-head,.competition-shell-body{width:100%;min-width:0;max-width:100%;overflow:hidden}
  .competition-shell-identity{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:start;gap:14px;padding:16px}
  .competition-shell-logo{width:68px;height:68px}
  .competition-shell-identity h1{font-size:clamp(1.9rem,9.5vw,2.65rem);line-height:1.05;margin:.1rem 0 .55rem;overflow-wrap:anywhere;word-break:normal}
  .competition-shell-identity .eyebrow{font-size:.72rem;line-height:1.35}
  .competition-shell-badges{gap:6px}
  .competition-shell-badges .status{font-size:.7rem;padding:.2rem .48rem}
  .competition-shell-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:visible;padding:0}
  .competition-shell-nav a{display:grid;place-items:center;min-width:0;min-height:54px;padding:.7rem .25rem;font-size:.78rem;line-height:1.15;text-align:center;white-space:normal}
  .competition-description{padding:16px}
  .competition-stage-heading{margin-top:20px}
  .group-stage-grid{gap:20px}
  .group-panel-head{padding:14px 15px}
  .group-panel-head h2{font-size:1.5rem}

  /* Predictions */
  .predictions-page,.predictions-page *:not(.prediction-bracket-rounds):not(.prediction-bracket-round):not(.prediction-bracket-node):not(.prediction-match-card.is-tree-match){min-width:0}
  .prediction-hero{display:block;padding:20px 16px}
  .prediction-hero h1{font-size:clamp(2rem,10vw,2.85rem);line-height:1.04}
  .prediction-hero p{font-size:1rem}
  .prediction-prize{padding:14px 15px}
  .prediction-prize strong{white-space:normal}
  .prediction-hero-stats{grid-template-columns:1fr 1fr;gap:8px;margin-top:18px}
  .prediction-hero-stats>div{padding:13px}
  .prediction-hero-stats strong{font-size:1.4rem}
  .prediction-stage-switch{overflow:visible}
  .prediction-stage-switch-label{padding:13px 14px}
  .prediction-stage-tabs{grid-template-columns:1fr 1fr}
  .prediction-stage-tabs button{min-width:0;min-height:72px;padding:12px}
  .prediction-stage-tab-title{gap:6px}
  .prediction-stage-tab-title strong{font-size:.84rem}
  .prediction-stage-tab-title em{padding:2px 5px;font-size:.6rem}
  .prediction-group-card>header{padding:14px}
  .prediction-placement-fields{padding:14px}
  .prediction-match-card{padding:15px 13px}
  .prediction-match-head{align-items:flex-start;flex-direction:column;gap:4px}
  .prediction-vote{grid-template-columns:1fr;gap:7px}
  .prediction-vote>b{display:none}
  .prediction-team-option,.prediction-consent,.prediction-vote>.btn{grid-column:1;width:100%}
  .prediction-result{grid-template-columns:1fr;gap:7px}
  .prediction-result>b{display:none}
  .prediction-result>div,.prediction-result>div:last-child{justify-content:space-between;text-align:left}
  .prediction-phase-head{align-items:flex-start;flex-direction:column;padding:14px}
  .prediction-window-list>div{align-items:flex-start;flex-direction:column;gap:3px}
  .prediction-window-list span{text-align:left}
  .prediction-save-bar{position:sticky;bottom:8px;align-items:stretch;flex-direction:column;gap:8px;padding:11px}
  .prediction-save-bar .btn{width:100%}
  .prediction-bracket-lane>header{position:sticky;left:0;max-width:calc(100vw - 40px)}
  .prediction-bracket-tree-scroll,.bracket-tree-scroll,.bracket-scroll{padding-bottom:14px}
  .prediction-bracket-rounds,.bracket-tree{gap:34px!important;padding-right:14px!important}
  .prediction-bracket-round,.prediction-bracket-node,.bracket-tree-round,.bracket-round{width:min(270px,calc(100vw - 54px))!important;flex-basis:min(270px,calc(100vw - 54px))!important}
  .prediction-match-card.is-tree-match{width:100%!important}

  /* Match room */
  .match-checkin-time{white-space:normal}
  .match-checkin-versus{grid-template-columns:1fr!important;gap:8px}
  .match-side-card,.match-side-card.is-home,.match-side-card.is-away{padding:8px 0}
  .match-side-main,.match-side-card.is-away .match-side-main{grid-template-columns:58px minmax(0,1fr)!important;gap:12px}
  .match-side-main .team-logo{grid-column:1!important;grid-row:1!important;width:58px;height:58px}
  .match-side-card.is-away .match-side-copy{grid-column:2!important;grid-row:1!important;justify-items:start;text-align:left}
  .match-side-meta,.match-side-card.is-away .match-side-meta{justify-content:space-between}
  .match-side-card.is-away .match-ready-state{justify-self:start}
  .match-team-ready-action,.match-team-ready-action .btn{width:100%;min-width:0}
  .match-versus-center{grid-template-columns:auto auto;min-height:34px}
  .match-versus-center span{width:38px;height:38px}
  .match-current-action,.match-section-heading,.match-mapban-head,.reschedule-proposal{align-items:flex-start;flex-direction:column}
  .match-mapban-stage .map-grid{grid-template-columns:1fr 1fr}
  .match-lobby-data,.match-reschedule-form{grid-template-columns:1fr}
  .played-row{align-items:flex-start;gap:10px}
  .played-row>span:first-child{min-width:0}
  .match-progress-step{min-height:68px}

  /* Profiles / account / onboarding */
  .player-profile-page .player-profile-hero{grid-template-columns:72px minmax(0,1fr);padding:16px;gap:14px}
  .player-profile-page .player-avatar{width:72px;height:72px}
  .player-profile-page .player-identity h1{font-size:clamp(2rem,10vw,2.8rem)}
  .player-profile-page .player-profile-aside{grid-column:1/-1;grid-template-columns:1fr;gap:14px}
  .player-profile-page .player-profile-actions{grid-column:auto;display:grid;width:100%}
  .player-profile-page .player-profile-actions .btn{width:100%}
  .profile-premier-score-badge{width:92px;height:92px}
  .player-profile-page .player-facts,.player-profile-page .player-stat-grid{grid-template-columns:1fr 1fr}
  .account-setup-card{padding:17px 14px}
  .account-setup-form{display:grid;grid-template-columns:1fr;gap:16px}
  .account-setup-form>.profile-image-editor{padding:15px}
  .account-setup-form .privacy-settings{padding:15px}
  .account-setup-form .privacy-settings-grid .checkbox{min-height:0}
  .account-setup-form .game-profile-toggle{padding:13px}
  .account-setup-form .game-profile-fields{padding:14px}
  .onboarding-head{align-items:flex-start;flex-direction:column}
  .onboarding-score{min-width:0;width:100%;justify-items:start}
  .onboarding-grid{grid-template-columns:1fr}
  .onboarding-step{grid-template-columns:36px minmax(0,1fr);gap:11px;padding:15px 13px}
  .onboarding-number{width:34px;height:34px}
  .onboarding-step>.btn{grid-column:1/-1;width:100%}

  /* Tickets / notifications */
  .ticket-state-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .ticket-state-tabs a{justify-content:space-between;min-width:0}
  .ticket-meta{align-items:flex-start;flex-direction:column}
  .ticket-thread{max-height:none;overflow:visible;padding-right:0}
  .ticket-message{max-width:100%}
  .composer-options{grid-template-columns:1fr}
  .notification-page-item{grid-template-columns:8px minmax(0,1fr);padding:14px}
  .notification-actions{grid-column:2;display:grid;grid-template-columns:1fr;width:100%}
  .notification-actions .btn{width:100%}

  /* 1.35.4: Tabellen bleiben auch mobil echte Tabellen.
     Spalten werden nie untereinander gestapelt; bei Bedarf scrollt nur der Tabellenbereich. */
  .table-wrap,.my-match-table-wrap,.standings-table,.group-standing-table{
    max-width:100%;
    overflow-x:auto!important;
    overflow-y:hidden;
    overscroll-behavior-x:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .table-wrap>table,.my-match-table-wrap>table,.standings-table>table,.group-standing-table>table{
    width:100%;
    min-width:540px!important;
  }
  .my-match-table-wrap>table{min-width:600px!important}
  .standings-table>table,.group-standing-table>table{min-width:520px!important}
  .table-wrap th,.table-wrap td,.my-match-table-wrap th,.my-match-table-wrap td{white-space:nowrap;padding:9px 10px;font-size:.875rem;line-height:1.35}
  .table-wrap th,.my-match-table-wrap th{font-size:.8rem;letter-spacing:.02em}
  .standings-table th,.standings-table td,.group-standing-table th,.group-standing-table td{padding:9px 8px;font-size:.875rem;line-height:1.35}
  .standings-table th,.group-standing-table th{font-size:.8rem;letter-spacing:.02em}
  .table-wrap .btn,.my-match-table-wrap .btn{min-height:44px!important;min-width:44px!important;padding:.5rem .65rem!important;font-size:.875rem!important}
  .table-wrap select,.my-match-table-wrap select{height:44px!important;min-height:44px!important;padding:.5rem .6rem!important;font-size:1rem!important}
  .table-wrap .status,.my-match-table-wrap .status{font-size:.8rem;padding:4px 7px}
  .table-wrap td:first-child,.my-match-table-wrap td:first-child{white-space:normal}
  .organization-member-table{min-width:820px!important}
  .notification-preferences-table{min-width:560px!important}
  .schedule-negotiation-table{min-width:560px!important}

  body.admin-layout{min-width:0!important}
  body.admin-layout .admin-topbar{gap:8px;padding:0 10px!important}
  body.admin-layout .admin-menu-toggle{flex:0 0 40px}
  body.admin-layout .admin-topbar-title{max-width:calc(100vw - 126px)}
  body.admin-layout .admin-topbar-title strong{font-size:.82rem!important}
  body.admin-layout .admin-topbar-actions{gap:4px}
  body.admin-layout .admin-topbar-actions button{min-width:38px;padding:7px!important}
  body.admin-layout .admin-content{width:100%;min-width:0;padding:calc(var(--admin-topbar-height) + 16px) 12px 34px!important}
  body.admin-layout .admin-content>.page-head{gap:10px!important;padding-bottom:16px!important}
  body.admin-layout .admin-content>.page-head h1{font-size:clamp(2rem,10vw,3rem)!important;line-height:.98!important}
  body.admin-layout .card{padding:16px 14px!important}
  body.admin-layout .admin-summary-grid{grid-template-columns:1fr!important}
  body.admin-layout .admin-team-filters,.admin-filter-form,.user-filter-form,
  body.admin-layout .admin-inline-setting,.data-terminal-query{grid-template-columns:1fr!important}
  body.admin-layout .admin-organization>summary{grid-template-columns:42px minmax(0,1fr) 18px!important;gap:10px!important;padding:13px 12px!important}
  body.admin-layout .admin-organization-owner,
  body.admin-layout .admin-organization>summary>.status{grid-column:2!important;grid-row:auto!important;justify-self:start!important}
  body.admin-layout .admin-organization-toggle{grid-column:3!important;grid-row:1!important}
  body.admin-layout .admin-subteam-list{padding:10px}
  body.admin-layout .admin-subteam-card{grid-template-columns:1fr!important;padding:12px}
  body.admin-layout .admin-subteam-state{grid-column:auto!important}
  body.admin-layout .admin-detail-header{align-items:flex-start;flex-direction:column}
  body.admin-layout .detail-facts,body.admin-layout .ticket-facts{grid-template-columns:1fr!important}
  body.admin-layout .detail-facts>div{border-right:0!important;border-bottom:1px solid var(--line)}
  body.admin-layout .detail-facts>div:last-child{border-bottom:0}
  body.admin-layout .health-check-row{grid-template-columns:28px minmax(0,1fr)}
  body.admin-layout .health-check-row>.status,body.admin-layout .health-check-row>.btn{grid-column:2;justify-self:start}
  body.admin-layout .game-admin-card-head,body.admin-layout .game-admin-section-head{align-items:flex-start;flex-direction:column}
  body.admin-layout .game-admin-stats{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  body.admin-layout .platform-tag-entry{grid-template-columns:1fr}
  body.admin-layout .platform-tag-entry .btn{width:100%}
  body.admin-layout .rating-editor-row{grid-template-columns:1fr!important}
  body.admin-layout .admin-match-card>summary{grid-template-columns:minmax(0,1fr) 18px!important;gap:10px}
  body.admin-layout .admin-match-card>summary>.status,body.admin-layout .admin-match-result,body.admin-layout .admin-match-round{display:none!important}
  body.admin-layout .ticket-settings-section-head{padding:16px}
  body.admin-layout .ticket-type-item{padding:11px}
}

@media (max-width:480px){
  .container,.hero-content,.flash-stack,
  .account-setup-page .container{width:min(100% - 20px,1376px)}
  .card{padding:16px 13px}
  .page-head h1{font-size:clamp(1.9rem,11.5vw,2.65rem)}
  .brand-copy{display:none}
  .brand{max-width:none}
  .nav-shell{padding-inline:10px}
  .hero{min-height:0}
  .hero-content{padding:24px 0 36px}
  .hero h1{font-size:clamp(2.35rem,14vw,3.35rem)}
  .showcase-stats{grid-template-columns:1fr}
  .card-facts{grid-template-columns:1fr}
  .organization-summary{grid-template-columns:1fr!important}
  .organization-page-title{grid-template-columns:58px minmax(0,1fr)}
  .organization-page-title .organization-logo,.organization-page-title .organization-logo-placeholder{width:58px!important;height:58px!important}
  .competition-shell-identity{grid-template-columns:58px minmax(0,1fr);gap:11px;padding:13px}
  .competition-shell-logo{width:58px;height:58px}
  .competition-shell-identity h1{font-size:clamp(1.75rem,9.8vw,2.35rem)}
  .competition-shell-nav a{min-height:50px;font-size:.72rem;padding:.6rem .12rem}
  .prediction-hero{padding:17px 13px}
  .prediction-hero h1{font-size:clamp(1.85rem,10.5vw,2.45rem)}
  .prediction-hero-stats{grid-template-columns:1fr 1fr}
  .prediction-stage-tabs{grid-template-columns:1fr}
  .prediction-stage-tabs button{border-right:0;border-bottom:1px solid #303030}
  .prediction-stage-tabs button:last-child{border-bottom:0}
  .prediction-bracket-round,.prediction-bracket-node,.bracket-tree-round,.bracket-round{width:min(252px,calc(100vw - 42px))!important;flex-basis:min(252px,calc(100vw - 42px))!important}
  .prediction-bracket-rounds,.bracket-tree{gap:26px!important}
  .match-mapban-stage .map-grid{grid-template-columns:1fr}
  .player-profile-page .player-profile-hero{grid-template-columns:60px minmax(0,1fr);padding:13px}
  .player-profile-page .player-avatar{width:60px;height:60px}
  .player-profile-page .player-profile-aside{grid-column:1/-1}
  .player-profile-page .player-facts,.player-profile-page .player-stat-grid{grid-template-columns:1fr}
  .ticket-state-tabs{grid-template-columns:1fr}
  .stats-range-buttons{display:grid;grid-template-columns:1fr 1fr}
  body.admin-layout .admin-topbar-title{max-width:calc(100vw - 112px)}
}

@media (pointer:coarse) and (max-width:1024px){
  .btn,button,.tabs a,.competition-shell-nav a,.ticket-state-tabs a,
  .prediction-team-option,.subteam-switch,.main-nav a{min-height:44px}
}

/* 1.34.3: semantische Homepage-Hervorhebungen ohne uebermaessige strong/b-Tags */
.organizer-line .organizer-name{color:#fff;font-weight:700}
.stat .stat-value{display:block;font-family:var(--heading);font-size:2rem;font-weight:700;color:#fff}
.showcase-stats .stat .stat-value{font-size:1.65rem}
.showcase-stats .stat:first-child .stat-value{font-size:clamp(.92rem,1.5vw,1.35rem);line-height:1.15;overflow-wrap:anywhere}
.card-facts .fact-value{display:block;color:#fff;font-family:var(--heading);font-size:1.2rem;font-weight:700}
.prediction-home-callout .prediction-prize{display:block;margin-top:8px;color:var(--gold-light);font-weight:700}
.match-card-public .match-team-name{font-weight:700;overflow-wrap:anywhere}
.match-card-public .match-team-score{min-width:34px;text-align:center;font-family:var(--heading);font-size:1.45rem;font-weight:700;color:#fff}

/* 1.35.4: Tabellenaktionen bleiben auf kleinen Displays nebeneinander und scrollen mit der Tabelle. */
@media (max-width:720px){
  .team-roster-table .role-editor{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;width:max-content!important;min-width:max-content!important}
  .team-roster-table .role-editor select{width:auto!important;min-width:138px!important}
  .team-roster-table .actions-cell{white-space:nowrap}
  .organization-member-membership{grid-template-columns:minmax(150px,1fr) auto auto}
  .organization-role-editor{display:flex;flex-wrap:nowrap;width:max-content}
  .organization-role-editor select{width:auto;min-width:130px}
}

/* 1.35.6 · Feedback */
@media (max-width:760px){.faq-fab,.feedback-fab{right:12px;bottom:12px;min-width:44px;min-height:44px;padding:10px 12px}.faq-fab strong,.feedback-fab strong{display:none}.faq-fab{bottom:68px}.feedback-choice-grid{grid-template-columns:1fr}.feedback-choice-card{min-height:0;padding:16px;grid-template-columns:40px minmax(0,1fr) 18px}.feedback-choice-icon{width:40px;height:40px}.feedback-reference-options,.feedback-topic-grid{grid-template-columns:1fr}.feedback-form{padding:17px 14px}.feedback-stars{justify-content:space-between;gap:4px}.feedback-stars label{width:min(50px,17vw);height:min(50px,17vw);font-size:1.55rem}.feedback-submit-row{align-items:stretch;flex-direction:column}.feedback-submit-row .btn{width:100%}}

/* 1.35.7 · Feedback-Mehrfachbewertungen */
@media (max-width:760px){.feedback-rating-item{grid-template-columns:1fr;gap:10px;padding:12px}.feedback-rating-item .feedback-stars{justify-content:flex-start}.feedback-rating-breakdown>div{grid-template-columns:1fr;gap:5px}.feedback-rating-breakdown strong{white-space:normal}}


/* 1.35.8 · Feedback-Startseite */
@media (max-width:760px){.feedback-primary-card{grid-template-columns:44px minmax(0,1fr) 18px;min-height:0;padding:19px 16px}.feedback-primary-card .feedback-choice-icon{width:44px;height:44px;font-size:1.35rem}.feedback-primary-card h2{font-size:1.4rem}.feedback-primary-card p{font-size:.96rem}.feedback-ticket-callout{grid-template-columns:40px minmax(0,1fr) 18px;padding:14px}.feedback-ticket-callout .feedback-choice-icon{width:40px;height:40px}}

/* Homepage tournament carousel */
@media(max-width:760px){.tournament-carousel{padding-bottom:54px}.tournament-carousel-dots{bottom:8px}.tournament-carousel-arrow{top:auto;bottom:3px;width:42px;height:42px;transform:none}.tournament-carousel-arrow-prev{left:10px}.tournament-carousel-arrow-next{right:10px}.tournament-carousel .tournament-showcase-copy{padding-bottom:32px}}

/* 1.35.16 · Mobile Medien und kompaktere echte Tabellen */

/* 1.36.0 · schmale Startseiten-Typografie */
@media (max-width:480px){.hero h1{font-size:clamp(2rem,10.8vw,2.85rem);line-height:1.02;letter-spacing:-.035em;overflow-wrap:normal;word-break:normal;text-wrap:balance}}

/* 1.38.1: current action precedes a compact, fully visible mobile progress grid. */
@media(max-width:760px){
  .match-progress{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px}
  .match-progress-step{min-height:54px;padding:8px 5px;gap:5px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .match-progress-step strong{font-size:.68rem;overflow-wrap:anywhere}
  .match-progress-step:nth-child(n+5){border-bottom:0}
  .match-progress-step:nth-child(4),.match-progress-step:last-child{border-right:0}
  .match-current-action{padding:16px;margin-top:20px}
}

/* Competition artwork contains information: preserve the complete image on small screens. */
@media (max-width: 760px) {
  .competition-hero { height: auto; min-height: 0; }
  .competition-hero img { display: block; width: 100%; height: auto; object-fit: contain; }
}
.registration-readiness { display: grid; gap: 6px; margin-top: 8px; }
.registration-readiness .status { width: fit-content; max-width: 100%; white-space: normal; }
.registration-readiness small { display: block; color: var(--muted); }

/* 1.40.3 · Matchdetails / Mapban */
@media (max-width:900px){
  .mapban-workspace-grid{grid-template-columns:1fr}
  .mapban-order-panel{order:-1}
  .mapban-turn-timer{grid-template-columns:1fr 1fr;text-align:left}
  .mapban-turn-timer>small,.mapban-turn-timer>b{text-align:right}
}
@media (max-width:720px){
  .public-match-scoreboard{grid-template-columns:1fr auto 1fr;gap:10px}
  .public-match-side>strong{font-size:1.2rem}.public-match-final-score{min-width:82px;padding:10px}.public-match-final-score strong{font-size:2rem}
  .public-match-meta-row,.public-lineup-grid{grid-template-columns:1fr}
  .public-map-row{grid-template-columns:36px minmax(0,1fr)}.public-map-row>span:last-child{grid-column:2}
  .mapban-turn-timer{grid-template-columns:1fr;text-align:center}.mapban-turn-timer>small,.mapban-turn-timer>b{text-align:center}
  .mapban-map-row{grid-template-columns:1fr}.mapban-map-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
}

@media (max-width:760px){.faq-search-row{align-items:stretch;flex-direction:column}.faq-categories{gap:6px}.faq-item summary{padding:15px}.faq-answer{padding:0 15px 15px}}

/* Premier Score: rank, name, level and points remain visible together on phones. */
@media (max-width:600px) {
  .table-wrap > .premier-ranking-table { min-width:0!important; width:100%; table-layout:fixed; }
  .premier-ranking-table th,.premier-ranking-table td { padding:10px 5px; font-size:.75rem; white-space:normal; overflow-wrap:anywhere; }
  .premier-ranking-table th:nth-child(1) { width:15%; }
  .premier-ranking-table th:nth-child(2) { width:37%; }
  .premier-ranking-table th:nth-child(3) { width:23%; }
  .premier-ranking-table th:nth-child(4) { width:25%; }
  .premier-ranking-table .premier-ranking-user { flex-wrap:wrap; gap:4px; min-width:0; }
  .premier-ranking-table .premier-ranking-user img,.premier-ranking-table .premier-ranking-user > span { width:24px; height:24px; flex:none; }
  .premier-ranking-table .premier-ranking-user strong { min-width:0; max-width:100%; }
  .premier-ranking-table .premier-ranking-stage { flex-direction:column; align-items:flex-start; gap:4px; }
  .premier-ranking-table td:last-child { white-space:normal; }
}
