.od1-ultimate-page { display: grid; place-items: center; overflow: auto; }
.od1-ultimate-shell { width: min(100%, 680px); margin: auto; padding: 32px 0 10px; }
.od1-ultimate-header { margin: 0 56px 16px; text-align: center; }
.od1-ultimate-header p { margin: 0 0 6px; color: var(--od1-game-accent); font-size: .64rem; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.od1-ultimate-header h1 { margin: 0; color: #fff; font-size: clamp(1.7rem, 5vw, 3rem); font-weight: 950; letter-spacing: -.06em; line-height: .95; }
.od1-ultimate-options { display: grid; margin: 0 auto 10px; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.od1-ultimate-segments { display: grid; padding: 3px; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(16,18,25,.86); }
.od1-ultimate-segments button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; color: rgba(255,255,255,.55); background: transparent; font: inherit; font-size: .68rem; font-weight: 900; cursor: pointer; }
.od1-ultimate-segments button.is-selected { color: #050607; background: var(--od1-game-accent); }
.od1-ultimate-options label { display: flex; min-width: 132px; padding: 3px 9px 3px 11px; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: var(--od1-game-accent); background: rgba(16,18,25,.86); font-size: .56rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
.od1-ultimate-options label[hidden] { display: none; }
.od1-ultimate-options select { min-height: 36px; padding: 0 20px 0 4px; border: 0; outline: 0; color: #fff; background: transparent; font: inherit; font-size: .68rem; font-weight: 900; }
.od1-ultimate-status { display: grid; min-height: 55px; margin: 0 auto 12px; padding: 8px 10px; grid-template-columns: 40px minmax(0,1fr) 38px; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(16,18,25,.86); }
.od1-ultimate-status > span:nth-child(2) { display: grid; gap: 1px; }
.od1-ultimate-status small { color: var(--od1-game-accent); font-size: .58rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.od1-ultimate-status strong { color: #fff; font-size: .82rem; }
.od1-ultimate-status button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; background: transparent; font: inherit; font-weight: 950; cursor: pointer; }
.od1-ultimate-turn-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--od1-game-accent) 12%, #080a0d); }
.od1-ultimate-turn-mark .od1-ultimate-mark { width: 72%; height: 72%; font-size: 2.15rem; }
.od1-ultimate-board { display: grid; width: 100%; aspect-ratio: 1; padding: clamp(7px, 1.5vw, 11px); grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: clamp(7px, 1.5vw, 11px); box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--od1-game-accent) 32%, rgba(255,255,255,.1)); border-radius: clamp(18px, 4vw, 28px); background: #080a0d; box-shadow: 0 28px 90px rgba(0,0,0,.55), 0 0 50px color-mix(in srgb, var(--od1-game-accent) 9%, transparent); }
.od1-ultimate-small-board { position: relative; display: grid; overflow: hidden; min-width: 0; min-height: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 1px; border: 2px solid rgba(255,255,255,.13); border-radius: clamp(8px, 2vw, 14px); background: rgba(255,255,255,.12); opacity: .42; transform: scale(.975); transition: border-color .2s ease, box-shadow .2s ease, opacity .2s ease, transform .2s ease; }
.od1-ultimate-small-board.is-active { border-color: var(--od1-game-accent); opacity: 1; transform: scale(1); box-shadow: 0 0 0 2px color-mix(in srgb, var(--od1-game-accent) 13%, transparent), 0 0 24px color-mix(in srgb, var(--od1-game-accent) 25%, transparent); }
.od1-ultimate-small-board.is-complete { opacity: .86; }
.od1-ultimate-small-board.is-draw { opacity: .3; background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 4px, transparent 4px 9px); }
.od1-ultimate-cell { display: grid; overflow: hidden; width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; place-items: center; border: 0; border-radius: 0; color: #fff; background: #10131a; cursor: pointer; appearance: none; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; }
.od1-ultimate-cell:not(:disabled):hover { background: color-mix(in srgb, var(--od1-game-accent) 10%, #10131a); }
.od1-ultimate-cell:focus-visible { position: relative; z-index: 2; outline: 2px solid #fff; outline-offset: -3px; }
.od1-ultimate-cell:disabled { cursor: default; }
.od1-ultimate-mark { display: grid; overflow: hidden; width: 92%; height: 92%; min-width: 0; min-height: 0; place-items: center; color: var(--od1-game-accent); font-family: Arial, Helvetica, sans-serif; font-size: clamp(1.15rem, 6vw, 2.8rem); font-weight: 800; line-height: 1; text-align: center; animation: od1-ultimate-place .22s cubic-bezier(.2,.9,.28,1.35) both; }
.od1-ultimate-mark.is-o { color: #32d8ff; }
.od1-ultimate-mark img,
.od1-ultimate-claim-mark img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; object-position: center; filter: drop-shadow(0 0 7px rgba(255,255,255,.2)); }
@keyframes od1-ultimate-place { from { opacity: 0; transform: scale(.35) rotate(-14deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
.od1-ultimate-claim { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, #07090d 88%, var(--od1-game-accent)); }
.od1-ultimate-claim::before { content: ""; position: absolute; inset: 9%; border: 2px solid color-mix(in srgb, var(--od1-game-accent) 56%, transparent); border-radius: 50%; opacity: .55; }
.od1-ultimate-claim-mark { position: relative; z-index: 2; display: grid; width: 64%; height: 64%; place-items: center; color: var(--od1-game-accent); font-size: clamp(3.1rem, 15vw, 7.2rem); font-weight: 800; line-height: 1; }
.od1-ultimate-claim-mark.is-o { color: #32d8ff; }
.od1-ultimate-claim.is-new { animation: od1-ultimate-claim-bg .62s ease both; }
.od1-ultimate-claim.is-new::before { animation: od1-ultimate-ring .72s ease-out both; }
.od1-ultimate-claim.is-new .od1-ultimate-claim-mark { animation: od1-ultimate-claim-pop .65s cubic-bezier(.16,1.25,.3,1) both; }
.od1-ultimate-claim.is-new::after { content: "✦"; position: absolute; z-index: 3; top: 8%; right: 11%; color: #fff; font-size: clamp(.8rem, 3vw, 1.5rem); text-shadow: -75px 35px var(--od1-game-accent), -42px 92px #32d8ff, 10px 105px #fff, 66px 75px var(--od1-game-accent); animation: od1-ultimate-spark .7s ease-out both; }
@keyframes od1-ultimate-claim-bg { 0% { background: #fff; } 28% { background: var(--od1-game-accent); } 100% { background: color-mix(in srgb, #07090d 88%, var(--od1-game-accent)); } }
@keyframes od1-ultimate-claim-pop { 0% { opacity: 0; transform: scale(.18) rotate(-24deg); } 55% { opacity: 1; transform: scale(1.18) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes od1-ultimate-ring { from { opacity: 1; transform: scale(.2); } to { opacity: 0; transform: scale(1.45); } }
@keyframes od1-ultimate-spark { 0% { opacity: 0; transform: scale(.2) rotate(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6) rotate(55deg); } }
.od1-ultimate-legend { display: flex; margin-top: 10px; align-items: center; justify-content: space-between; color: rgba(255,255,255,.55); font-size: .65rem; font-weight: 800; }
.od1-ultimate-legend span { display: flex; align-items: center; gap: 7px; }
.od1-ultimate-legend i { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--od1-game-accent); box-shadow: 0 0 10px var(--od1-game-accent); }
.od1-ultimate-legend button { padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 99px; color: rgba(255,255,255,.72); background: transparent; font: inherit; font-weight: 850; cursor: pointer; }
.od1-ultimate-legend button:disabled { opacity: .55; cursor: default; }
.od1-ultimate-modal[hidden] { display: none; }
.od1-ultimate-modal { position: fixed; z-index: 2147483050; inset: 0; display: grid; padding: 22px; place-items: center; background: rgba(2,3,5,.86); backdrop-filter: blur(12px); }
.od1-ultimate-modal__panel { position: relative; width: min(100%, 480px); padding: clamp(26px, 6vw, 44px); box-sizing: border-box; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; text-align: center; background: #11141a; box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.od1-ultimate-modal h2 { margin: 0; color: #fff; font-size: clamp(2.1rem, 8vw, 4.2rem); letter-spacing: -.07em; line-height: .92; }
.od1-ultimate-modal__panel > p:not(.od1-game-eyebrow) { margin: 14px 0 0; color: rgba(255,255,255,.62); line-height: 1.5; }
.od1-ultimate-result-mark { display: grid; width: 90px; height: 90px; margin: 0 auto 18px; place-items: center; border-radius: 24px; background: color-mix(in srgb, var(--od1-game-accent) 12%, #080a0d); }
.od1-ultimate-result-mark:empty { display: none; }
.od1-ultimate-result-mark .od1-ultimate-mark { width: 72px; height: 72px; font-size: 5rem; }
.od1-ultimate-actions { display: grid; margin-top: 24px; grid-template-columns: 1fr 1fr; gap: 10px; }
.od1-ultimate-actions a,
.od1-ultimate-actions button,
.od1-ultimate-rules > button:last-child { display: grid; min-height: 48px; padding: 0 20px; place-items: center; border: 1px solid var(--od1-game-accent); border-radius: 99px; color: #050607; background: var(--od1-game-accent); font: inherit; font-size: .78rem; font-weight: 950; text-decoration: none; cursor: pointer; }
.od1-ultimate-actions a { color: #fff; border-color: rgba(255,255,255,.18); background: transparent; }
.od1-ultimate-modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: #fff; background: transparent; font-size: 1.4rem; cursor: pointer; }
.od1-ultimate-rules { text-align: left; }
.od1-ultimate-rules h2 { font-size: clamp(2rem, 7vw, 3.5rem); }
.od1-ultimate-rules ol { margin: 20px 0; padding-left: 1.3rem; color: rgba(255,255,255,.72); font-size: .85rem; line-height: 1.55; }
.od1-ultimate-rules li + li { margin-top: 9px; }
.od1-ultimate-rules > button:last-child { width: 100%; }
.od1-ultimate-online-panel > p:not(.od1-game-eyebrow) { margin-bottom: 20px; }
.od1-ultimate-online-start { display: grid; gap: 11px; }
.od1-ultimate-online-start > button,
.od1-ultimate-online-start form button { min-height: 48px; padding: 0 18px; border: 1px solid var(--od1-game-accent); border-radius: 13px; color: #050607; background: var(--od1-game-accent); font: inherit; font-size: .76rem; font-weight: 950; cursor: pointer; }
.od1-ultimate-online-start > span { color: rgba(255,255,255,.38); font-size: .62rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.od1-ultimate-online-start form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.od1-ultimate-online-start input { min-width: 0; height: 48px; padding: 0 14px; box-sizing: border-box; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; outline: 0; color: #fff; background: #090b0f; font: inherit; font-size: 1rem; font-weight: 950; letter-spacing: .13em; text-align: center; text-transform: uppercase; }
.od1-ultimate-online-start input:focus { border-color: var(--od1-game-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--od1-game-accent) 12%, transparent); }
.od1-ultimate-room { display: grid; justify-items: center; }
.od1-ultimate-room[hidden] { display: none; }
.od1-ultimate-room > small { color: var(--od1-game-accent); font-size: .58rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.od1-ultimate-room > strong { margin-top: 5px; color: #fff; font-size: clamp(2.4rem, 12vw, 4.5rem); letter-spacing: .12em; line-height: 1; }
.od1-ultimate-room > p { margin: 12px 0 4px; color: rgba(255,255,255,.64); font-size: .8rem; }
.od1-ultimate-room .od1-ultimate-actions { width: 100%; }
.od1-ultimate-actions button.is-secondary { color: #fff; border-color: rgba(255,255,255,.18); background: transparent; }
.od1-ultimate-actions .od1-ultimate-share-rematch { grid-column: 1 / -1; color: #fff; border-color: rgba(255,255,255,.18); background: transparent; }
.od1-ultimate-share-rematch[hidden] { display: none !important; }
.od1-ultimate-online-message { display: block; min-height: 1.4em; margin-top: 12px; color: var(--od1-game-accent); font-size: .68rem; font-weight: 800; }
.od1-ultimate-online-message.is-error { color: #ff6571; }
.od1-ultimate-invite__panel { overflow: auto; max-height: min(720px, calc(100dvh - 32px)); }
.od1-ultimate-invite__logo { display: grid; width: 74px; height: 74px; margin: 0 auto 18px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: #090b0f; }
.od1-ultimate-invite__logo[hidden] { display: none; }
.od1-ultimate-invite__logo img { width: 100%; height: 100%; object-fit: contain; }
.od1-ultimate-invite__panel h2 { font-size: clamp(2.5rem, 10vw, 4.6rem); }
.od1-ultimate-invite__panel > p strong { color: #fff; }
.od1-ultimate-invite__room { display: grid; margin: 20px auto 0; justify-items: center; }
.od1-ultimate-invite__room small { color: var(--od1-game-accent); font-size: .58rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.od1-ultimate-invite__room strong { margin-top: 4px; color: #fff; font-size: 2rem; letter-spacing: .16em; }
.od1-ultimate-invite__actions { display: grid; margin-top: 20px; gap: 10px; }
.od1-ultimate-invite__actions button { min-height: 50px; padding: 0 20px; border: 1px solid var(--od1-game-accent); border-radius: 99px; color: #050607; background: var(--od1-game-accent); font: inherit; font-size: .78rem; font-weight: 950; cursor: pointer; }
.od1-ultimate-invite__actions button.is-secondary { color: #fff; border-color: rgba(255,255,255,.18); background: transparent; }
.od1-ultimate-invite__actions button:disabled { opacity: .62; cursor: wait; }
.od1-ultimate-invite__steps { margin: 18px 0 0; padding: 16px 16px 16px 34px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.035); font-size: .76rem; line-height: 1.5; text-align: left; }
.od1-ultimate-invite__steps li + li { margin-top: 7px; }
@media (max-width: 560px) {
  .od1-ultimate-page { padding: max(58px, env(safe-area-inset-top)) 10px max(10px, env(safe-area-inset-bottom)); align-items: start; }
  .od1-ultimate-shell { padding: 0; }
  .od1-ultimate-header { margin-bottom: 10px; }
  .od1-ultimate-header h1 { font-size: 1.72rem; }
  .od1-ultimate-status { margin-bottom: 8px; }
  .od1-ultimate-options { grid-template-columns: minmax(0,1fr) 108px; margin-bottom: 7px; }
  .od1-ultimate-segments button { padding-inline: 6px; font-size: .61rem; }
  .od1-ultimate-options label { min-width: 0; padding-inline: 8px; }
  .od1-ultimate-board { gap: 6px; padding: 6px; border-radius: 17px; }
  .od1-ultimate-small-board { gap: 1px; border-width: 1px; border-radius: 7px; }
}
@media (max-height: 710px) and (orientation: portrait) {
  .od1-ultimate-header p { display: none; }
  .od1-ultimate-header h1 { font-size: 1.35rem; }
  .od1-ultimate-header { margin-bottom: 6px; }
  .od1-ultimate-options { margin-bottom: 5px; }
  .od1-ultimate-status { min-height: 46px; margin-bottom: 6px; padding-block: 4px; }
  .od1-ultimate-turn-mark { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .od1-ultimate-mark,
  .od1-ultimate-claim.is-new,
  .od1-ultimate-claim.is-new::before,
  .od1-ultimate-claim.is-new::after,
  .od1-ultimate-claim.is-new .od1-ultimate-claim-mark { animation-duration: .01ms !important; }
}
