/* Additive desktop layer: the mobile shell remains the source of truth. */
.desktop-only,.desktop-nav-tooltip{
  display:none
}
@media(min-width:901px){
  .desktop-layout{
    --desktop-sidebar:236px;
    --desktop-content:1640px;
    --desktop-gap:22px;
    --desktop-board-width:760px;
    --desktop-board-height:500px
  }
  .desktop-contained{
    overflow:hidden
  }
  .desktop-layout .app-shell{
    position:fixed;
    inset:0;
    top:0;
    width:100%;
    max-width:none;
    height:100vh;
    height:100dvh;
    height:var(--app-height,100dvh);
    padding:0;
    margin:0;
    display:grid;
    grid-template-columns:var(--desktop-sidebar) minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);
    gap:0;
    background:var(--color-background)
  }
  .desktop-layout .app-shell>.site-header{
    grid-column:2;
    grid-row:1;
    display:flex;
    align-items:center;
    min-height:80px;
    padding:14px 28px;
    gap:20px;
    border-bottom:1px solid var(--color-border);
    background:#FFFFFFF5;
    z-index:12
  }
  .desktop-layout .site-header>.brand{
    display:none
  }
  .desktop-layout .desktop-context{
    display:grid;
    gap:5px;
    min-width:0;
    margin-right:auto
  }
  .desktop-layout .desktop-context h1{
    font:700 clamp(1.2rem,1.6vw,1.6rem)/1.25 var(--font-heading);
    letter-spacing:-.04em;
    margin:0
  }
  .desktop-layout .desktop-context p{
    font-size:.82rem;
    line-height:1.5;
    color:var(--color-muted-ink);
    margin:0
  }
  .desktop-layout .header-tools{
    flex-wrap:nowrap;
    gap:10px
  }
  .desktop-layout .header-tools>.app-icon-button{
    display:none
  }
  .desktop-layout .language-picker select{
    min-height:44px;
    background:var(--color-background)
  }
  .desktop-layout .player-access button{
    min-height:44px;
    font-size:.85rem
  }
  .desktop-layout .desktop-balance{
    display:block;
    padding:8px 12px;
    background:transparent;
    border:1px solid transparent;
    border-radius:12px;
    color:var(--color-primary-ink);
    font-size:.85rem;
    font-weight:650;
    white-space:nowrap;
    font-variant-numeric:tabular-nums
  }
  .desktop-layout .desktop-balance[hidden]{display:none}
  .desktop-layout .app-shell>.app-nav{
    grid-column:1;
    grid-row:1/-1;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    padding:22px 16px 18px;
    gap:8px;
    border:0;
    border-right:1px solid var(--color-border);
    background:#fff;
    box-shadow:4px 0 22px #1F294004;
    position:relative;
    min-height:0;
    z-index:20
  }
  .desktop-layout .desktop-brand{
    display:flex;
    align-items:center;
    gap:11px;
    min-height:56px;
    margin:0 4px 24px;
    padding:0;
    color:var(--color-text);
    font:700 1.35rem var(--font-heading);
    text-decoration:none;
    letter-spacing:-.05em
  }
  .desktop-layout .desktop-brand img{
    width:40px;
    height:40px;
    border-radius:13px;
    flex-shrink:0
  }
  .desktop-layout .app-nav-link,.desktop-layout .desktop-utility{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    position:relative;
    flex:none;
    gap:13px;
    min-width:0;
    min-height:52px;
    width:100%;
    padding:12px 15px;
    text-align:left;
    font:650 .93rem var(--font-body);
    color:var(--color-muted-ink);
    border:1px solid transparent;
    border-radius:14px;
    background:transparent;
    text-decoration:none;
    transition:background 180ms ease,color 180ms ease,transform 180ms ease
  }
  .desktop-layout .app-nav-link svg,.desktop-layout .desktop-utility svg{
    width:23px;
    height:23px;
    flex:0 0 23px
  }
  .desktop-layout .app-nav-link[aria-current=page],.desktop-layout .desktop-utility[aria-current=page]{
    background:var(--color-primary-soft);
    color:var(--color-primary-ink);
    border-color:#D8D9FE;
    box-shadow:inset 3px 0 var(--color-primary)
  }
  .desktop-layout .app-nav-link:hover,.desktop-layout .desktop-utility:hover{
    background:#F2F4FA;
    color:var(--color-primary-ink);
    transform:translateX(2px)
  }
  .desktop-layout .desktop-utilities{
    display:grid;
    gap:6px;
    border-top:1px solid var(--color-border);
    padding-top:16px;
    margin-top:auto
  }
  .desktop-layout .app-shell>.app-content{
    grid-column:2;
    grid-row:2;
    min-height:0;
    min-width:0;
    overflow:auto;
    overscroll-behavior-y:contain;
    scrollbar-gutter:stable;
    padding:24px clamp(20px,2.2vw,40px) 28px;
    border:0;
    scroll-padding-block:20px
  }
  .desktop-layout .app-content>*{
    max-width:var(--desktop-content);
    margin-inline:auto
  }
  .desktop-layout .app-content>.site-footer{
    font-size:.8rem;
    margin-top:24px;
    padding-top:18px
  }
  .desktop-layout .app-content>.app-page-title,.desktop-layout [data-app-page=catalog] .section-heading h1,.desktop-layout .dashboard-heading h1,.desktop-layout [data-app-page=ranking] .ranking-heading h1{
    display:none
  }
  .desktop-layout .app-content>.app-section-tabs{
    position:sticky;
    top:-24px;
    z-index:9;
    background:var(--color-background);
    padding:10px 0 14px;
    margin-bottom:10px
  }
  .desktop-layout .app-section-tabs button{
    transition:background 180ms ease,box-shadow 180ms ease
  }
  .desktop-layout .app-section-tabs button:hover:not([aria-pressed=true]){
    background:#EEEEFF;
    border-color:#BEC1F4
  }
  /* A dashboard composition on the landing page, not a stretched mobile stack. */
  .desktop-layout [data-app-page=home] .app-content{
    display:grid;
    grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
    gap:var(--desktop-gap);
    align-content:start;
    align-items:start
  }
  .desktop-layout [data-app-page=home] .app-content>.sr-only{
    grid-column:1/-1
  }
  .desktop-layout [data-app-page=home] .rhythm-card{
    grid-column:1;
    grid-row:1/3;
    width:100%;
    padding:28px;
    margin:0;
    min-width:0;
    min-height:470px
  }
  .desktop-layout [data-app-page=home] .rhythm-top{
    grid-template-columns:minmax(0,1fr);
    gap:12px
  }
  .desktop-layout [data-app-page=home] .rhythm-network{
    height:180px;
    max-height:180px;
    width:100%;
    justify-self:center;
    filter:drop-shadow(0 8px 16px #5B5FF818)
  }
  .desktop-layout [data-app-page=home] .rhythm-count{
    font-size:3.6rem
  }
  .desktop-layout [data-app-page=home] .rhythm-meta{
    font-size:.85rem;
    line-height:1.6
  }
  .desktop-layout [data-app-page=home] .rhythm-bottom{
    gap:12px
  }
  .desktop-layout [data-app-page=home] .ranking-card{
    grid-column:2;
    grid-row:1;
    padding:24px;
    width:100%;
    margin:0;
    min-width:0
  }
  .desktop-layout [data-app-page=home] .ranking-heading{
    gap:8px
  }
  .desktop-layout [data-app-page=home] .ranking-heading h2{
    font-size:1.2rem
  }
  .desktop-layout .desktop-home-neighbors{
    display:block;
    border-top:1px solid var(--color-border);
    padding-top:14px;
    margin-top:18px
  }
  .desktop-layout .desktop-home-neighbors h3{
    font-size:.9rem;
    margin:0 0 10px
  }
  .desktop-layout .desktop-home-neighbors .ranking-list{
    gap:7px;
    margin:0
  }
  .desktop-layout .desktop-home-neighbors .ranking-row{
    min-height:48px;
    padding:9px 11px;
    gap:8px;
    font-size:.85rem;
    box-shadow:none
  }
  .desktop-layout .desktop-home-neighbors .ranking-coins{
    font-size:.8rem
  }
  .desktop-layout [data-app-page=home] .games-section{
    grid-column:2;
    grid-row:2;
    width:100%;
    padding:0;
    min-width:0
  }
  .desktop-layout [data-app-page=home] .section-heading{
    margin-bottom:12px;
    gap:12px
  }
  .desktop-layout [data-app-page=home] .section-heading h2{
    font-size:1rem;
    margin:0
  }
  .desktop-layout [data-app-page=home] .text-link{
    font-size:.85rem
  }
  .desktop-layout [data-app-page=home] .catalog{
    display:block
  }
  .desktop-layout [data-app-page=home] .game-card{
    display:grid;
    grid-template-columns:110px minmax(0,1fr);
    border-radius:20px
  }
  .desktop-layout [data-app-page=home] .game-art{
    height:100%;
    aspect-ratio:auto
  }
  .desktop-layout [data-app-page=home] .card-copy{
    padding:18px;
    gap:12px
  }
  .desktop-layout [data-app-page=home] .card-title{
    margin:0
  }
  .desktop-layout [data-app-page=home] .card-title h2{
    font-size:1.4rem
  }
  .desktop-layout [data-app-page=home] .category-badge,.desktop-layout [data-app-page=home] .game-subtitle,.desktop-layout [data-app-page=home] .card-description,.desktop-layout [data-app-page=home] .card-meta{
    display:none
  }
  .desktop-layout [data-app-page=home] .site-footer{
    grid-column:1/-1;
    grid-row:3;
    width:100%;
    margin-top:0
  }
  /* Catalogue: columns are bounded by actual content width. */
  .desktop-layout [data-app-page=catalog] .catalog{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(min(100%,270px),1fr));
    gap:24px;
    align-items:stretch
  }
  .desktop-layout [data-app-page=catalog] .games-section{
    padding-top:0
  }
  .desktop-layout [data-app-page=catalog] .section-heading{
    margin:0
  }
  .desktop-layout [data-app-page=catalog] .game-art{
    aspect-ratio:1.8;
    max-height:210px
  }
  .desktop-layout [data-app-page=catalog] .card-copy{
    padding:22px
  }
  .desktop-layout [data-app-page=catalog] .game-card{
    max-width:410px
  }
  .desktop-layout [data-app-page=catalog] .game-card:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow-hover);
    border-color:#B9BDF3
  }
  /* A stable playing surface keeps desktop paths/timing independent of window size. */
  .desktop-layout [data-app-page=game] .app-content{
    display:grid;
    grid-template-columns:minmax(0,var(--desktop-board-width));
    grid-template-rows:auto auto;
    justify-content:center;
    align-content:start;
    gap:10px 24px;
    padding-block:16px
  }
  .desktop-layout [data-app-page=game] .pulse-back,.desktop-layout [data-app-page=game] .site-footer,.desktop-layout [data-app-page=game] .storage-note{
    display:none
  }
  .desktop-layout [data-app-page=game] .pulse-intro{
    grid-column:1;
    grid-row:1;
    justify-content:flex-end;
    min-height:30px;
    width:100%;
    padding:0;
    margin:0
  }
  .desktop-layout [data-app-page=game] .pulse-intro>div:first-child{
    display:none
  }
  .desktop-layout [data-app-page=game] .cycle-progress{
    width:min(300px,65%)
  }
  .desktop-layout [data-app-page=game] .global-balance{
    margin:0 0 4px;
    font-size:.88rem
  }
  .desktop-layout [data-app-page=game] .game{
    grid-column:1;
    grid-row:2;
    width:100%;
    max-width:var(--desktop-board-width);
    margin:0;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 12px 30px #1F29400A
  }
  .desktop-layout [data-app-page=game] #circuit{
    height:var(--desktop-board-height);
    min-height:var(--desktop-board-height);
    max-height:var(--desktop-board-height)
  }
  .desktop-layout [data-app-page=game] .toolbar{
    min-height:48px;
    padding:5px 14px
  }
  .desktop-layout [data-app-page=game] #answer-form{
    padding:10px 14px
  }
  .desktop-layout [data-app-page=game] #answer{
    min-height:46px
  }
  .desktop-layout [data-app-page=game] .welcome h2{
    font-size:1.5rem
  }
  .desktop-layout .desktop-game-side{
    display:none
  }
  /* Ranking: summary stays in place and only the participants scroll. */
  .desktop-layout [data-app-page=ranking] .app-content{
    display:flex;
    flex-direction:column;
    overflow:hidden
  }
  .desktop-layout [data-ranking=page]{
    display:flex;
    flex-direction:column;
    min-height:0;
    flex:1;
    width:100%;
    margin:0;
    padding:0;
    background:transparent;
    border:0;
    box-shadow:none
  }
  .desktop-layout [data-ranking=page] .ranking-heading{
    justify-content:flex-end
  }
  .desktop-layout [data-ranking=page] .ranking-deadline{
    padding:7px 12px;
    background:#fff;
    border:1px solid var(--color-border);
    border-radius:10px;
    color:var(--color-primary-ink);
    font-weight:650
  }
  .desktop-layout [data-ranking=page] .ranking-period{
    margin:0 0 6px;
    font-size:.85rem
  }
  .desktop-layout [data-ranking=page] .ranking-summary{
    padding:14px 18px;
    background:white;
    border:1px solid var(--color-border);
    border-radius:16px;
    margin:6px 0 10px;
    gap:14px 26px
  }
  .desktop-layout [data-ranking=page] .ranking-gap{
    font-size:.85rem;
    margin:0 0 6px
  }
  .desktop-layout [data-ranking=page]>.app-section-tabs{
    flex-shrink:0;
    padding-bottom:12px
  }
  .desktop-layout [data-ranking=page] .app-ranking-scroll{
    min-height:0;
    overflow:auto;
    overscroll-behavior-y:contain;
    scroll-padding-block:14px;
    padding:0 4px 12px
  }
  .desktop-layout [data-ranking=page][data-desktop-view=standings] .app-ranking-scroll{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    grid-template-rows:auto minmax(160px,1fr);
    gap:18px;
    overflow:hidden;
    flex:1
  }
  .desktop-layout .desktop-podium{
    grid-column:1;
    grid-row:1;
    margin:0
  }
  .desktop-layout .desktop-podium>h2{
    font-size:1rem;
    margin:0 0 10px
  }
  .desktop-layout .ranking-podium{
    gap:14px
  }
  .desktop-layout .podium-card{
    padding:15px 12px;
    gap:7px;
    border-radius:20px
  }
  .desktop-layout .podium-medal{
    width:42px;
    height:46px;
    font-size:1.2rem
  }
  .desktop-layout .podium-card h3{
    font-size:1rem
  }
  .desktop-layout .desktop-standings{
    grid-column:1;
    grid-row:2;
    min-height:0;
    margin:0;
    display:flex;
    flex-direction:column;
    background:#fff;
    padding:16px;
    border:1px solid var(--color-border);
    border-radius:20px
  }
  .desktop-layout .desktop-standings>h2{
    font-size:1rem;
    margin:0 0 8px
  }
  .desktop-layout [data-desktop-view=standings] .desktop-standings>.ranking-list{
    min-height:0;
    overflow:auto;
    overscroll-behavior-y:contain;
    margin:0;
    padding:4px;
    flex:1;
    scroll-padding-block:8px
  }
  .desktop-layout .desktop-standings>.ranking-paging{
    flex-shrink:0;
    margin-top:12px;
    gap:8px
  }
  .desktop-layout .ranking-row{
    padding:12px 16px;
    gap:16px;
    min-height:60px;
    border-radius:14px
  }
  .desktop-layout .ranking-position{
    min-width:36px
  }
  .desktop-layout .ranking-name{
    font-size:.92rem
  }
  .desktop-layout .ranking-coins{
    min-width:110px;
    text-align:right;
    font-size:.88rem
  }
  .desktop-layout .desktop-neighbors{
    padding:20px;
    background:linear-gradient(145deg,#fff,#F1F2FF);
    border:1px solid #D8DCF4;
    border-radius:20px
  }
  .desktop-layout .desktop-neighbors>h2{
    font-size:1rem;
    margin:0 0 14px
  }
  /* Progresso retains the same section filters, data and chart adapters. */
  .desktop-layout .dashboard-heading{
    padding:0 0 10px;
    align-items:center
  }
  .desktop-layout .dashboard-heading .back-link,.desktop-layout .dashboard-heading p{
    display:none
  }
  .desktop-layout .dashboard-heading h1{
    display:none
  }
  .desktop-layout .owner-chip{
    font-size:.85rem
  }
  .desktop-layout .dashboard-play{
    min-height:44px;
    padding:9px 14px;
    font-size:.85rem;
    margin:0
  }
  .desktop-layout .dashboard-filters{
    padding:14px 18px;
    margin:0 0 18px;
    border-radius:16px
  }
  .desktop-layout .dashboard-filters select{
    min-height:42px;
    font-size:.85rem
  }
  .desktop-layout .learning-summary{
    gap:14px;
    margin:6px 0 14px
  }
  .desktop-layout .learning-summary article{
    padding:18px;
    border-radius:18px
  }
  .desktop-layout .metric-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px
  }
  .desktop-layout .metric-card{
    min-height:132px;
    padding:20px
  }
  .desktop-layout .charts-grid{
    grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);
    gap:22px
  }
  .desktop-layout .details-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px
  }
  .desktop-layout .panel{
    border-radius:20px;
    padding:22px
  }
  .desktop-layout #evolution-chart{
    height:270px
  }
  .desktop-layout .history-panel .table-scroll{
    max-height:min(52vh,560px);
    overflow:auto;
    overscroll-behavior-y:contain;
    scroll-padding-top:44px
  }
  .desktop-layout .history-panel th{
    position:sticky;
    top:0;
    z-index:1;
    background:#F4F7FC
  }
  .desktop-layout [data-app-page=profile] .app-content{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px;
    align-content:start;
    align-items:start
  }
  .desktop-layout [data-app-page=profile] .app-profile-card{
    width:100%;
    padding:26px;
    margin:0;
    min-width:0;
    min-height:270px;
    box-shadow:var(--shadow-soft)
  }
  .desktop-layout [data-app-page=profile] .app-profile-card h2{
    font-size:1.2rem;
    overflow-wrap:anywhere
  }
  .desktop-layout [data-app-page=profile] .site-footer{
    grid-column:1/-1;
    width:100%
  }
  /* All dialogs share a scrollable body and persistent actions on desktop too. */
  .desktop-layout dialog[open]{
    position:fixed;
    inset-inline:0;
    top:50%;
    bottom:auto;
    transform:translateY(-50%);
    margin:0 auto;
    width:min(500px,calc(100% - 48px));
    max-height:calc(var(--app-height,100dvh) - 48px);
    display:flex;
    flex-direction:column;
    overflow:visible;
    padding:24px;
    border-radius:26px
  }
  .desktop-layout .app-dialog-body{
    min-height:0;
    overflow:auto;
    overscroll-behavior-y:contain;
    padding:2px 4px 12px;
    scroll-padding-block:14px
  }
  .desktop-layout .app-dialog-actions{
    flex:0 0 auto;
    gap:9px;
    padding-top:12px;
    border-top:1px solid var(--color-border)
  }
  .desktop-layout .app-dialog-actions button{
    min-height:46px;
    margin:0!important
  }
  .desktop-layout .dialog-heading{
    flex:0 0 auto;
    padding-bottom:14px
  }
  .desktop-layout .dialog-heading h2{
    font-size:1.35rem
  }
  .desktop-layout .reward-dialog{
    width:min(550px,calc(100% - 48px));
    padding:24px
  }
  .desktop-layout .reward-orbit{
    width:60px;
    height:60px
  }
  .desktop-layout .reward-dialog .ranking-celebration{
    padding-top:8px
  }
  .desktop-layout .reward-dialog .ranking-row{
    min-height:58px
  }
  .desktop-layout .reward-dialog .ranking-coins{
    min-width:90px
  }
  .desktop-layout #account-status:not(:empty){
    position:fixed;
    z-index:30;
    bottom:22px;
    left:calc(var(--desktop-sidebar) + 24px);
    width:min(680px,calc(100% - var(--desktop-sidebar) - 48px));
    max-height:25vh;
    overflow:auto;
    margin:0;
    padding:14px 62px 14px 18px;
    border:1px solid #E5B9C8;
    border-radius:16px;
    background:#FFF6FA;
    box-shadow:var(--shadow-soft);
    color:#82334D
  }
  .desktop-layout .app-notice-close:not([hidden]){
    position:fixed;
    display:flex;
    z-index:31;
    left:calc(var(--desktop-sidebar) + min(680px,100vw - var(--desktop-sidebar) - 48px) - 28px);
    bottom:28px;
    font-size:1.5rem;
    border:0;
    background:#FFF6FA
  }
  /* Short windows / zoom use the document rather than clipping controls. */
  .desktop-layout.desktop-flow .app-shell{
    position:relative;
    inset:auto;
    height:auto;
    min-height:100vh;
    grid-template-rows:auto minmax(0,1fr);
    align-items:start
  }
  .desktop-layout.desktop-flow .app-shell>.app-nav{
    position:sticky;
    top:0;
    height:100vh;
    overflow-y:auto
  }
  .desktop-layout.desktop-flow .app-shell>.site-header{
    position:sticky;
    top:0
  }
  .desktop-layout.desktop-flow .app-shell>.app-content{
    overflow:visible
  }
  .desktop-layout.desktop-flow [data-ranking=page]{
    min-height:760px
  }
  .desktop-layout.desktop-flow [data-ranking=page] .app-ranking-scroll{
    overflow:visible
  }
  .desktop-layout.desktop-flow [data-desktop-view=standings] .desktop-standings>.ranking-list{
    max-height:520px
  }
}
@media(min-width:901px) and (max-width:1279px){
  .desktop-layout{
    --desktop-sidebar:84px;
    --desktop-gap:18px
  }
  .desktop-layout .app-shell>.app-nav{
    padding:18px 12px;
    gap:9px
  }
  .desktop-layout .desktop-brand{
    margin:0 auto 24px;
    justify-content:center
  }
  .desktop-layout .desktop-brand>span{
    display:none
  }
  .desktop-layout .app-nav-link,.desktop-layout .desktop-utility{
    justify-content:center;
    padding:12px;
    min-height:52px
  }
  .desktop-layout .app-nav-link>span:not(.desktop-nav-tooltip),.desktop-layout .desktop-utility>span:not(.desktop-nav-tooltip){
    position:absolute;
    width:1px;
    height:1px;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap
  }
  .desktop-layout .app-nav-link:hover>.desktop-nav-tooltip,.desktop-layout .app-nav-link:focus-visible>.desktop-nav-tooltip,.desktop-layout .desktop-utility:hover>.desktop-nav-tooltip,.desktop-layout .desktop-utility:focus-visible>.desktop-nav-tooltip{
    display:block;
    position:absolute;
    left:calc(100% + 12px);
    top:50%;
    transform:translateY(-50%);
    z-index:40;
    min-width:max-content;
    padding:8px 12px;
    border:1px solid var(--color-border);
    border-radius:10px;
    background:#1F2940;
    color:#fff;
    box-shadow:var(--shadow-soft);
    font-size:.85rem;
    pointer-events:none
  }
  .desktop-layout .desktop-context p{
    display:none
  }
  .desktop-layout .app-shell>.site-header{
    min-height:68px;
    padding:12px 20px
  }
  .desktop-layout [data-app-page=home] .app-content{
    grid-template-columns:minmax(0,1fr) minmax(310px,.9fr)
  }
}
@media(min-width:1440px){
  .desktop-layout [data-app-page=home] .app-content{
    grid-template-columns:minmax(0,1.2fr) minmax(320px,.9fr) minmax(280px,.8fr)
  }
  .desktop-layout [data-app-page=home] .rhythm-card{
    grid-row:1;
    min-height:570px
  }
  .desktop-layout [data-app-page=home] .ranking-card{
    grid-row:1;
    min-height:570px
  }
  .desktop-layout [data-app-page=home] .games-section{
    grid-column:3;
    grid-row:1
  }
  .desktop-layout [data-app-page=home] .site-footer{
    grid-row:2
  }
  .desktop-layout [data-app-page=home] .game-card{
    display:flex
  }
  .desktop-layout [data-app-page=home] .game-art{
    height:auto;
    aspect-ratio:1.7
  }
  .desktop-layout [data-app-page=home] .card-description{
    display:block;
    font-size:.85rem;
    line-height:1.6;
    margin:0
  }
  .desktop-layout [data-app-page=game] .app-content{
    grid-template-columns:minmax(0,var(--desktop-board-width)) minmax(240px,280px);
    align-items:start
  }
  .desktop-layout .desktop-game-side{
    display:flex;
    flex-direction:column;
    gap:14px;
    grid-column:2;
    grid-row:2;
    align-self:start;
    padding:24px;
    background:linear-gradient(145deg,#fff,#F0F3FF);
    border:1px solid #D3D9F2;
    border-radius:22px;
    box-shadow:var(--shadow-soft)
  }
  .desktop-layout .desktop-game-side p{
    margin:0;
    font-size:.9rem;
    line-height:1.6
  }
  .desktop-layout .desktop-side-days{
    font:700 2.4rem/1.2 var(--font-heading);
    color:#3438A3
  }
  .desktop-layout .desktop-game-side .rhythm-network{
    width:100%;
    height:150px
  }
  .desktop-layout .desktop-game-side .secondary{
    font-size:.85rem
  }
  .desktop-layout .desktop-game-side .desktop-side-note{
    font-size:.82rem;
    color:var(--color-muted-ink)
  }
  .desktop-layout [data-ranking=page][data-desktop-view=standings] .app-ranking-scroll{
    grid-template-columns:minmax(0,1fr) minmax(250px,300px)
  }
  .desktop-layout [data-ranking=page][data-desktop-view=standings] .desktop-neighbors{
    display:block!important;
    grid-column:2;
    grid-row:1/3;
    align-self:start;
    max-height:100%;
    overflow:auto;
    margin:0
  }
  .desktop-layout .desktop-neighbors .ranking-row{
    gap:7px;
    padding:10px;
    flex-wrap:wrap
  }
  .desktop-layout .desktop-neighbors .ranking-name{
    font-size:.85rem
  }
  .desktop-layout .desktop-neighbors .ranking-coins{
    min-width:0;
    font-size:.82rem
  }
  .desktop-layout .desktop-neighbors .ranking-position{
    min-width:22px
  }
  .desktop-layout .metric-grid{
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:13px
  }
  .desktop-layout .metric-card{
    padding:16px
  }
  .desktop-layout .metric-card strong{
    font-size:1.9rem
  }
  .desktop-layout [data-app-page=profile] .app-content{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
@media(min-width:2000px){
  .desktop-layout{
    --desktop-sidebar:250px
  }
  .desktop-layout .app-content{
    padding-inline:max(36px,calc((100vw - var(--desktop-sidebar) - var(--desktop-content))/2))!important
  }
  .desktop-layout .rhythm-top .rhythm-network{
    height:210px;
    max-height:210px
  }
}
@media(min-width:901px) and (max-height:820px){
  .desktop-layout .app-shell>.site-header{
    min-height:64px;
    padding-block:9px
  }
  .desktop-layout .desktop-context p{
    display:none
  }
  .desktop-layout [data-ranking=page] .ranking-summary{
    padding-block:10px
  }
  .desktop-layout [data-ranking=page]>.app-section-tabs{
    padding-bottom:8px;
    min-height:48px
  }
  .desktop-layout .desktop-podium>h2{
    display:none
  }
  .desktop-layout .podium-card{
    padding:10px;
    gap:5px
  }
  .desktop-layout .podium-medal{
    width:32px;
    height:36px;
    font-size:1rem
  }
}
@media(prefers-reduced-motion:reduce){
  .desktop-layout .app-nav-link,.desktop-layout .desktop-utility{
    transition:none
  }
  .desktop-layout .app-nav-link:hover,.desktop-layout .desktop-utility:hover{
    transform:none
  }
}
@media(min-width:901px){
  .desktop-layout .app-content>.site-footer{
    display:none
  }
  .desktop-layout [data-app-page=catalog] .catalog{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .desktop-layout [data-rhythm=dashboard] .rhythm-top{
    grid-template-columns:minmax(0,1fr) 300px
  }
  .desktop-layout [data-rhythm=dashboard] .rhythm-network{
    height:190px
  }
  .desktop-layout.app-keyboard dialog[open]{
    top:calc(var(--app-offset,0px) + 12px);
    transform:none;
    max-height:calc(var(--app-height,100dvh) - 24px)
  }
}
@media(min-width:1280px){
  .desktop-layout [data-app-page=catalog] .catalog{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
@media(min-width:1800px){
  .desktop-layout [data-app-page=catalog] .catalog{
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(min-width:901px){
  .desktop-layout .desktop-game-side{
    width:100%;
    min-width:0
  }
  .desktop-layout.desktop-flow .desktop-utility>span{
    min-width:0;
    overflow-wrap:anywhere
  }
}
@media(min-width:901px) and (max-width:1279px){
  .desktop-layout .app-nav-link,.desktop-layout .desktop-utility{
    transform:none!important
  }
  .desktop-layout .app-nav-link:hover>.desktop-nav-tooltip,.desktop-layout .app-nav-link:focus-visible>.desktop-nav-tooltip,.desktop-layout .desktop-utility:hover>.desktop-nav-tooltip,.desktop-layout .desktop-utility:focus-visible>.desktop-nav-tooltip{
    position:fixed;
    left:calc(var(--desktop-sidebar) + 12px)
  }
}
@media(min-width:2000px){
  .desktop-layout .app-shell>.site-header{
    padding-inline:max(36px,calc((100vw - var(--desktop-sidebar) - var(--desktop-content))/2))
  }
}
@media(min-width:901px){
  .desktop-layout:not(.desktop-flow) [data-app-page=dashboard] .app-content[data-desktop-section=history]{
    display:flex;
    flex-direction:column;
    overflow:hidden
  }
  .desktop-layout:not(.desktop-flow) [data-desktop-section=history]>.dashboard-heading,.desktop-layout:not(.desktop-flow) [data-desktop-section=history]>.app-section-tabs,.desktop-layout:not(.desktop-flow) [data-desktop-section=history]>.dashboard-filters,.desktop-layout:not(.desktop-flow) [data-desktop-section=history]>#source-note{
    flex-shrink:0
  }
  .desktop-layout:not(.desktop-flow) [data-desktop-section=history] #dashboard-content{
    min-height:0;
    flex:1;
    display:flex;
    flex-direction:column
  }
  .desktop-layout:not(.desktop-flow) [data-desktop-section=history] .history-panel{
    min-height:0;
    flex:1;
    display:flex;
    flex-direction:column
  }
  .desktop-layout:not(.desktop-flow) [data-desktop-section=history] .history-panel .panel-heading,.desktop-layout:not(.desktop-flow) [data-desktop-section=history] .history-panel .pagination{
    flex-shrink:0
  }
  .desktop-layout:not(.desktop-flow) [data-desktop-section=history] .history-panel .table-scroll{
    min-height:0;
    max-height:none;
    flex:1;
    overflow:auto
  }
}
@media(min-width:901px){
  .desktop-layout .desktop-skip-nav{
    display:block
  }
  .desktop-layout [data-app-page=home] .app-content>.sr-only{
    display:none
  }
}
@media(prefers-reduced-motion:reduce){
  .desktop-layout .game-card:hover{
    transform:none!important
  }
}
@media(min-width:901px){
  .desktop-layout .app-content>*{
    width:100%
  }
  .desktop-layout .app-dialog-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .desktop-layout .app-dialog-actions #reward-next,.desktop-layout .app-dialog-actions #reward-save-status,.desktop-layout .app-dialog-actions #reward-ranking-retry{
    grid-column:1/-1
  }
  .desktop-layout .app-dialog-actions #continue-cycle{
    grid-column:1
  }
  .desktop-layout .app-dialog-actions #end-session{
    grid-column:2
  }
}
@media(min-width:901px) and (max-height:420px){
  .desktop-layout dialog[open]{
    top:12px;
    transform:none;
    max-height:calc(var(--app-height,100dvh) - 24px);
    overflow-y:auto
  }
}
