html.tidesty {
    --bg: #062e34;
    --header: rgba(6,46,52,.78);
    --panel: rgba(14,74,82,.55);
    --ink: #e7f6f4;
    --header-ink: #e7f6f4;
    --muted: #b7d4d0;
    --accent: #e4c99a;
    --accent-ink: #3a2e1e;
    --line: rgba(231,246,244,.2);
    --radius: 24px;
    --title: Outfit, sans-serif;
    --body: Outfit, sans-serif;
    background: var(--bg) !important;
    color: var(--ink);
    font-family: var(--body);
}
html.tidesty body,
html.tidesty .app-container,
html.tidesty #app,
html.tidesty .content {
    background: transparent !important;
    color: var(--ink);
}
html.tidesty header.main {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--header) !important;
}
html.tidesty header.main .main-section.site-top {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: min(1120px, 100%) !important;
    max-width: none !important;
    height: auto !important;
    min-height: 64px;
    margin: 0 auto !important;
    padding: 12px 16px !important;
    background: transparent !important;
    box-sizing: border-box;
}
html.tidesty header.main a.logo.default-brand { display: none !important; }
html.tidesty .tide-brand {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    order: 1;
    width: auto !important;
    margin: 0 !important;
    color: var(--header-ink) !important;
    font-family: var(--title);
    text-decoration: none;
}
html.tidesty header.main .header-right {
    position: static !important;
    order: 3;
    display: flex !important;
    align-items: center;
    gap: 8px;
    height: auto !important;
    margin: 0 0 0 auto;
}
html.tidesty .header-auth-link,
html.tidesty .header-user-trigger {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-ink) !important;
    font: 600 13px/1 var(--body);
    text-decoration: none;
    cursor: pointer;
}
html.tidesty .header-auth-link.secondary { background: transparent; color: var(--header-ink) !important; }
html.tidesty .header-user-menu { position: relative; }
html.tidesty .header-user-dropdown { top: 100%; right: 0; padding-top: 8px; }
html.tidesty .header-user-dropdown-inner { background: var(--panel); border: 1px solid var(--line); }
html.tidesty .header-user-dropdown a,
html.tidesty .header-user-dropdown button {
    display: block; width: 100%; padding: 8px 12px; border: 0; background: transparent;
    color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
html.tidesty .language-select {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    height: 32px !important;
    padding: 0 10px !important;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--header-ink) 8%, transparent) !important;
    cursor: pointer;
}
html.tidesty .language-select .value {
    position: static !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    padding: 0 !important;
    background: transparent !important;
    color: var(--header-ink) !important;
    font-size: 12px !important;
    font-weight: 700;
    line-height: 1 !important;
    letter-spacing: .06em;
    pointer-events: none;
}
html.tidesty .language-select .value::before { content: none !important; }
html.tidesty .language-select .value::after {
    content: "";
    width: 0;
    height: 0;
    margin-top: 3px;
    border: 4px solid transparent;
    border-top-color: currentColor;
}
html.tidesty .language-select select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
html.tidesty .language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: none;
    min-width: 168px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
html.tidesty .language-select.is-open .language-menu,
html.tidesty .language-menu.is-open { display: block; }
html.tidesty .language-menu li { margin: 0; padding: 0; list-style: none; }
html.tidesty .language-menu button,
html.tidesty .language-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    font: 600 13px/1 var(--body);
    text-align: left;
    cursor: pointer;
}
html.tidesty .language-option:hover,
html.tidesty .language-option.is-active {
    background: var(--header);
    color: var(--header-ink);
    box-shadow: inset 3px 0 0 var(--line);
}
html.tidesty .language-short { font-size: 11px; letter-spacing: .08em; opacity: .72; }
html.tidesty .language-menu { background: #0e4a52; }
html.tidesty .language-option:hover,
html.tidesty .language-option.is-active { background: #062e34; }
html.tidesty header.main .menuHolder {
    order: 4;
    flex: 1 1 100%;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
html.tidesty header.main .menuHolder label,
html.tidesty #navigationTrigger { display: none !important; }
html.tidesty header.main .menuHolder nav.main {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html.tidesty header.main nav.main ul { display: flex !important; flex-wrap: wrap; gap: 6px; margin: 0 !important; padding: 0 !important; }
html.tidesty header.main nav.main ul > li { display: inline-flex !important; margin: 0 !important; }
html.tidesty header.main nav.main ul > li a::before,
html.tidesty header.main nav.main ul > li a::after,
html.tidesty header.main .menuHolder nav.main ul::before,
html.tidesty header.main .menuHolder nav.main ul::after { content: none !important; display: none !important; }
html.tidesty header.main nav.main ul > li a {
    display: inline-flex !important;
    align-items: center;
    min-height: 32px;
    padding: 0 10px !important;
    border-radius: var(--radius);
    color: var(--header-ink) !important;
    font-size: 14px !important;
    text-decoration: none;
}
html.tidesty header.main nav.main a img,
html.tidesty footer.main nav.main a img,
html.tidesty .content h1 img,
html.tidesty .similarGames h2 img { display: none !important; }
html.tidesty .content {
    width: min(1120px, calc(100% - 32px)) !important;
    margin: 0 auto !important;
    padding: 20px 0 48px !important;
    box-sizing: border-box;
}
html.tidesty .content > .main-section { margin: 0 !important; padding: 0 !important; }
html.tidesty .content h1,
html.tidesty .content h2,
html.tidesty .similarGames h2 {
    color: var(--ink) !important;
    font-family: var(--title);
}
html.tidesty .content h1 a,
html.tidesty .content h2 a { color: inherit !important; text-decoration: none; }
html.tidesty .tide-home { display: block; }
html.tidesty ul.games { margin: 0 0 20px; padding: 0; list-style: none; }
html.tidesty ul.games::before,
html.tidesty ul.games::after { display: none !important; }
html.tidesty ul.games li { float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; }
html.tidesty ul.games li .clamp { display: none !important; }
html.tidesty ul.games li .icon { overflow: hidden; }
html.tidesty ul.games li .name-container { height: auto; padding: 0; }
html.tidesty [data-game-mount] { position: relative; min-height: 520px; overflow: hidden; background: #000; }
html.tidesty .wp-play-gate {
    position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; box-sizing: border-box;
}
html.tidesty .wp-play-gate[hidden] { display: none !important; }
html.tidesty .wp-game-host {
    position: absolute; inset: 0; z-index: 1; width: 100% !important; height: 100% !important;
    margin: 0 !important; background: #000;
}
html.tidesty .wp-game-host iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
html.tidesty .btn-container { margin: 16px 0 28px; }
html.tidesty footer.main { margin-top: 12px !important; padding: 28px 0 36px !important; border-top: 1px solid var(--line); background: transparent !important; color: var(--muted) !important; }
html.tidesty footer.main .footer-content { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
html.tidesty footer.main .footer-content section.tags nav.main { float: none !important; width: auto !important; background: none !important; }
html.tidesty footer.main .footer-content section.tags nav.main ul { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; }
html.tidesty footer.main .footer-content section.tags nav.main ul li { display: inline-flex !important; margin: 0 !important; }
html.tidesty footer.main .footer-content section.tags nav.main ul { justify-content: center; }
html.tidesty footer.main .footer-content section.tags nav.main ul li a {
    display: inline-flex !important;
    align-items: center;
    min-height: 32px;
    padding: 0 12px !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    background: transparent !important;
    color: var(--ink) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: .04em;
    line-height: 1 !important;
    text-transform: none !important;
    text-decoration: none;
}
html.tidesty footer.main .footer-content section.tags nav.main ul li a:hover {
    background: var(--header) !important;
    color: var(--header-ink) !important;
    border-color: var(--line) !important;
}
html.tidesty footer.main .footer-content { min-height: 0 !important; }
html.tidesty footer.main .copyright { margin: 18px 0 0 !important; }
html.tidesty footer.main .copyright,
html.tidesty footer.main .footer-operator {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}
html.tidesty footer.main .footer-operator p { margin: 2px 0; }
html.tidesty footer.main .copyright a,
html.tidesty footer.main .footer-operator a {
    color: var(--ink) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
html.tidesty .legal-article { max-width: 68ch; margin: 0 auto; padding: 12px 0 48px; }
html.tidesty .legal-article h1,
html.tidesty .legal-article h2 { font-family: var(--title); }
html.tidesty .legal-article p { color: var(--ink); line-height: 1.7; }
html.tidesty .consent-box { background: var(--panel); color: var(--ink); }
html.tidesty .consent-box a { color: var(--accent); }
html.tidesty .consent-box-button { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

html.tidesty header.main { backdrop-filter: blur(16px); border-bottom: 1px solid rgba(231,246,244,.14); }
html.tidesty .tide-drop { width: 14px; height: 18px; border-radius: 12px 12px 12px 2px; background: #e4c99a; transform: rotate(45deg); }
html.tidesty .tide-brand { font-weight: 500; letter-spacing: -0.03em; font-size: 22px; }
html.tidesty header.main nav.main ul > li a { border-radius: var(--radius) !important; background: rgba(231,246,244,.08) !important; }
html.tidesty header.main nav.main ul > li a.is-on { background: #e4c99a !important; color: #3a2e1e !important; }
html.tidesty .tide-intro h1 { margin: 12px 0 20px; font-size: clamp(40px, 6vw, 64px); font-weight: 500; letter-spacing: -0.04em; }
html.tidesty .tide-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; }
html.tidesty .tide-current { position: relative; flex: 0 0 280px; height: 360px; display: flex; align-items: flex-end; padding: 18px; overflow: hidden; border: 1px solid rgba(231,246,244,.2); border-radius: 24px; background: rgba(14,74,82,.45); color: #e7f6f4; text-decoration: none; backdrop-filter: blur(16px); }
html.tidesty .tide-current i { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .85; }
html.tidesty .tide-current b { position: relative; font-size: 22px; font-weight: 500; }
html.tidesty .tide-still { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
html.tidesty .tide-still-card, html.tidesty ul.games li a { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid rgba(231,246,244,.2); border-radius: 24px; background: rgba(14,74,82,.55); color: #e7f6f4; text-decoration: none; backdrop-filter: blur(16px); }
html.tidesty .tide-still-card img, html.tidesty ul.games li .icon img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
html.tidesty .tide-still-card em, html.tidesty .tide-gate button, html.tidesty .btn-primary { display: inline-flex; align-items: center; width: fit-content; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #e4c99a; color: #3a2e1e; font-style: normal; font-weight: 600; cursor: pointer; text-decoration: none; }
html.tidesty ul.games li .icon { border-radius: 18px; }
html.tidesty .tide-stage { border-radius: 28px; border: 1px solid rgba(231,246,244,.2); }
html.tidesty .tide-gate { background-color: #062e34; background-size: contain; background-position: center; background-repeat: no-repeat; color: #e7f6f4; border-radius: 28px; }
html.tidesty .tide-gate h1 { font-weight: 500; letter-spacing: -0.03em; }
@media (max-width: 800px) { html.tidesty .tide-still, html.tidesty ul.games { grid-template-columns: 1fr; } }

/* thumb-fix */
html.tidesty ul.games li .icon {
  position: relative !important;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
}
html.tidesty ul.games li .icon img {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1;
  object-fit: cover;
}

html.tidesty .tide-row {
  padding-bottom: 8px;
  margin-bottom: 28px;
  scrollbar-width: none;
}
html.tidesty .tide-row::-webkit-scrollbar { display: none; }
html.tidesty .tide-home h2 { margin-top: 8px; }
html.tidesty .tide-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(transparent, rgba(6, 46, 52, .88));
  pointer-events: none;
}
html.tidesty .tide-current b { z-index: 1; }

/* name-align */
html.tidesty ul.games li .name,
html.tidesty ul.games li .name-container {
  text-align: left !important;
}
html.tidesty ul.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 800px) {
  html.tidesty ul.games { grid-template-columns: 1fr; }
}
html.tidesty .tide-gate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(6, 46, 52, .12), rgba(6, 46, 52, .55));
}
html.tidesty .tide-gate h1,
html.tidesty .tide-gate p,
html.tidesty .tide-gate button { position: relative; z-index: 1; }
html.tidesty .tide-gate p {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(6, 46, 52, .88);
  color: #e7f6f4;
}
