/* Shared top bar in the Word Stars style (index.html, more.html and the older practice pages). */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;600;800;900&family=Lilita+One&display=swap");

.topnav{
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
  /* full width even on pages that mount it inside a centered container */
  width: 100vw;
  width: 100dvw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: linear-gradient(#1d3fb3, #152f8f);
  border-bottom: 4px solid #1b1335;
  direction: rtl;
  font-family: Rubik, system-ui, sans-serif;
}
.topnav .tn-in{
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}
.topnav .tn-logo{
  font-family: 'Lilita One', Rubik, sans-serif;
  font-size: 32px;
  color: #ffc928;
  text-decoration: none;
  white-space: nowrap;
  direction: ltr;
  transform: rotate(-3deg);
  text-shadow: 0 4px 0 #1b1335, 3px 0 0 #1b1335, -3px 0 0 #1b1335, 0 -3px 0 #1b1335, 2px 2px 0 #1b1335, -2px -2px 0 #1b1335, 2px -2px 0 #1b1335, -2px 2px 0 #1b1335;
}
.topnav .tn-tabs{ display: flex; gap: 8px; margin-inline-start: 10px; }
.topnav .tn-tabs a{
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  padding: 8px 16px;
  border-radius: 14px;
  border: 3px solid transparent;
  white-space: nowrap;
}
.topnav .tn-tabs a:hover{ background: rgba(255,255,255,.1); }
.topnav .tn-tabs a.active{ background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); }
.topnav .tn-sp{ flex: 1; }
.topnav .tn-play{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
  font-size: 16px;
  text-decoration: none;
  color: #1b1335;
  padding: 8px 18px;
  border: 3px solid #1b1335;
  border-radius: 16px;
  box-shadow: 0 4px 0 #1b1335;
  background: linear-gradient(#ffe066, #ffc928 55%, #ff9f1c);
  white-space: nowrap;
}
.topnav .tn-play:hover{ transform: translateY(-1px); }

@media (max-width: 820px){
  .topnav .tn-in{ height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .topnav .tn-logo{ font-size: 26px; }
  .topnav .tn-tabs{ order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .topnav .tn-tabs a{ font-size: 15px; padding: 6px 12px; }
}
